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