I noticed that the Spinnaker_Camera should check if num_frames, failed_frames, underrun_frames are None before printing. Sorry, I am not sure if this was the right place to put it!
` def stop_acquisition(self):
print('Stopping acquisition...')
self.camera.EndAcquisition()
# This is supposed to provide debugging info, but as with most things
# in PySpin, it appears to be completely useless:.
num_frames=self.get_attribute('StreamTotalBufferCount', stream_map=True)
failed_frames=self.get_attribute('StreamFailedBufferCount', stream_map=True)
underrun_frames=self.get_attribute('StreamBufferUnderrunCount', stream_map=True)
print('Stream info: %d frames acquired, %d failed, %d underrun' %
(num_frames, failed_frames, underrun_frames))`
I noticed that the Spinnaker_Camera should check if num_frames, failed_frames, underrun_frames are None before printing. Sorry, I am not sure if this was the right place to put it!
` def stop_acquisition(self):
print('Stopping acquisition...')
self.camera.EndAcquisition()