videoinput versus videodevice for realtime processing
이전 댓글 표시
Hello all,
I have written a simple machine vision script in my lab to detect objects moving around in a pre-recorded video. It works really well and I am happy with its performance. I would now like to move it into real time tracking and I am looking for a little guidance on the best way to handle this. We are using a new i7 PC running Matlab R2013b with a solid state hard drive. We have a pointgrey gige blackfly camera. I'm hoping this should be a fast enough set up. Our algorithm basically just takes a lot of frames initially to get a "mean frame". This is then subtracted from each frame of the video so that only the objects moving are now visible. So basically, we would take a single frame, process it, then take another single frame, and repeat.
There are two main points which I'm not sure of. The first is whether I should use videoinput and trigger each frame individually between processing of if we should use videodevice, since it is designed for single frames. The issues with videodevice is that I could not figure out how to get a timestamp for each frame (we would like millisecond precision ideally). Next is the issue of collecting many frames. Is there an easy way to have matlab stream this information to the hard drive so that we could collect tens of minutes of processed video data?
Any tips would be greatly appreciated. Ciao, Quentin
댓글 수: 2
Quentin
2014년 2월 5일
William Chamberlain
2016년 8월 19일
Glad to hear that you resolved your issues, because I have almost exactly the same requirements!
Could you post code snippets for your configuration, or a list of properties & values to set, or links to any code that you have released?
Thanks, Will
답변 (3개)
Quentin
2014년 2월 10일
편집: Walter Roberson
2015년 9월 9일
댓글 수: 1
Andrew Davies
2015년 9월 9일
Did you ever solve this problem? I am also having trouble getting my camera to take an external trigger when using VideoDevice rather then videoinput.
Andy
Sean de Wolski
2014년 2월 5일
Use the 'TimerPeriod' option in the videoinput object.
imaqhelp videoinput
Shankar Subramanian
2015년 10월 13일
Hi Quentin and Andy,
While using VideoDevice System Object with gige cameras, you need to use the "DeviceProperties" field which consists of device specific properties (in this case Pointgrey blackfly) to specify the hardware triggering mode/condition.
deviceSpecificProps = vid.DeviceProperties
Browse through deviceSpecificProps and you will find the specific trigger properties that need to be set. An example from a display from another camera used through gige interface is shown below.
....
....
FrameStartTriggerActivation = RisingEdge
FrameStartTriggerDelayAbs = 0
FrameStartTriggerMode = Off
FrameStartTriggerSource = Line1
....
....
HTH,
Shankar
카테고리
도움말 센터 및 File Exchange에서 GigE Vision Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!