Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Motion Detection on multiple .avi

Hi all!!

I have modified the version of motion detection here  http://decibel.ni.com/content/docs/DOC-4717 and i set the program to write an avi file when there are motion... but for my project i must create an .avi file EVERY movement (1 motion detected, 1 avi file).

I attach here my project, can help me??beacuse actually i register only one frame in a 1 file.avi!!

Another question: when motion is detected, its possible register 5 second before the motion detection??

Thanks a lot!!

 

detectavi.jpg

0 Kudos
Message 1 of 2
(3,521 Views)

Hi Redmercury,

 

Thank you for posting your question on NI forum.

I took a look to your snapshot. First of all i would suggest you to move the IMAQ AVI Close out of the main while loop. I figure out that you are destroying all frames you store by running this subVI every time the while loop execute the next iteration step.

Then, keep in mind that it would a good programming practice the use of the error cluster wires through all SubVIs you use in the block diagram. Lastly make sure your code is readable so that another developer could simply evaluate and undestand the code you edited Smiley Happy  

Matteo
0 Kudos
Message 2 of 2
(3,499 Views)