nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

Consistency in getting fresh camera images #9

Closed rwb27 closed 9 years ago

rwb27 commented 9 years ago

Camera.raw_snapshot() should probably have some mechanism for getting a "fresh" frame (e.g. using the take_snapshot function on Lumenera, or discarding 2/3 frames on OpenCV). Currently this functionality is inelegantly shoehorned into camera_stage_mapper.

rwb27 commented 9 years ago

I've slightly changed the mechanism for getting frames from the camera - there's a new method get_image, which will either call raw_snapshot or extract frames from the video stream, as appropriate. The only issue with this is that you'll want to discard different numbers of frames depending on which method is used... Said code is not yet in master, but is here 7d710f214a7a2f53692058acf98cf96608826420

rwb27 commented 9 years ago

Now in master - closing.