Trigger camera at evenly spaced times

조회 수: 13 (최근 30일)
Laura
Laura 2012년 4월 18일
댓글: Phong Phan 2015년 4월 10일
I have a USB camera and I am trying to acquire images at a certain frame rate. However, for this particular camera (Thorlabs DCC1545M) when I use the get() command, FrameRate is not shown as a parameter I can change.
Since I can't change the frame rate directly, I am trying to figure how how I can trigger it to acquire a single image every XX seconds. I'm aiming for a frame rate of 460, so XX ~ 2.3 ms. InitialTriggerTime is read only and since the default frame rate is lower than I want, I can't just skip a certain number of frames. I know the camera is capable of this frame rate using a ROI.
Does anyone have any suggestions?
  댓글 수: 1
Hilton
Hilton 2013년 10월 15일
Hi Laura,
How did you manage to make Matlab to recognize your camera (Thorlabs DCC1545)?

댓글을 달려면 로그인하십시오.

답변 (2개)

Geoff
Geoff 2012년 4월 19일
I had a look at the camera's manual here: http://www.thorlabs.us/Thorcat/15900/15982-D02/index.html
It apparently comes with an SDK. If you know C, it's pretty trivial to MEX up a simple wrapper to setup the ROI and frame rate.
There are some relevant API calls:
is_AOI()
is_SetFrameRate()
is_SetExposureTime()
Apparently you can interface with VB / ActiveX. This might be easier to do via MatLab, especially if you are not familiar with C.
As for your snapshot idea, I would be very surprised if you could set up a reliable trigger to snapshot an image 460 times a second.
  댓글 수: 6
ichi
ichi 2014년 5월 3일
Hi everyone, I have problem, how to run Thorlabs camera on matlab: I installed camera’s driver and package & Microsoft Visual C++ (2005/2008/2010 redistributed edition), but i can’t connect the camera to matlab. What is routine way to run these codes? We use matlab 2011a, a thorlabs DCC1545M camera (USB2), and want to capture image in matlab or maybe have live view. It is essential to control camera parameters. I would be thankful for any helps.
Phong Phan
Phong Phan 2015년 4월 10일
Ichi , have you figured out how to connect the camera to malab , your help would be really appreciated !!
Phong

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2012년 4월 22일
Laura: the free run frame rate for your camera at 1280x1024 pixels is 25 frames per second. I think the only way you can get up to 460 frames per second, if it's even possible (which it may not be), is to grab a smaller chunk of the CMOS sensor. That's usually how cameras go to higher frame rates than the free run frame rate. 460 fps is fairly high unless you have a special high speed camera.
I don't know if this camera has a MATLAB adapter written for it - they are usually written by the camera manufacturer. If it does, the image matrix size and frame rate may or may not be an exposed property or method that you can adjust. If they aren't you'll have to make API calls to the SDK. Hopefully the manufacturer can help you with that.
  댓글 수: 1
Geoff
Geoff 2012년 4월 22일
I would expect a resolution of about 300x200 at 460fps. Hopefully there is a pretty big lens attached to this camera, or some really good lighting.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by