videoinput versus videodevice for realtime processing
Afficher commentaires plus anciens
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 commentaires
Quentin
le 5 Fév 2014
William Chamberlain
le 19 Août 2016
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
Réponses (3)
Quentin
le 10 Fév 2014
Modifié(e) : Walter Roberson
le 9 Sep 2015
1 commentaire
Andrew Davies
le 9 Sep 2015
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
le 5 Fév 2014
Use the 'TimerPeriod' option in the videoinput object.
imaqhelp videoinput
Shankar Subramanian
le 13 Oct 2015
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
Catégories
En savoir plus sur GigE Vision Hardware dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!