06-24-2016 06:48 AM
Hi, Im reading in an existing video file and then analysing each frame for when an led comes on. This will be done using histograms or intensity methods. The problem i have is that it does this in real time. As in when i run the program it will pull each frame and analyse at the frame rate of the video. Ideally I would like to do this as fast a possible instead of waiting the 10 or so seconds it takes for the LED to come on.
In short I would like to know how to read the frames faster than the frame rate, and analyse these so that I can find the frame of interest?
Thanks for any suggestions.
06-24-2016 06:55 AM
06-24-2016 07:38 AM
there is some method to increase it
send your vi I could tell you witch one is better for you
06-24-2016 08:15 AM - edited 06-24-2016 08:16 AM
Here is the VI. As far as I know i haven't done anything with a delay
06-24-2016 08:30 AM
06-24-2016 09:13 AM
I thought about that but it doesnt affect it. When i set the delay to 0 nothing changes. the producer loop is what I need to speed up. the images I believe are being sent out to the queue at the frame rate per second of the video
06-24-2016 11:13 AM
i use there method for incease speed
1 cut ROI
2 use all CPU core
3 reduce number of frame that you need
for example some times you just need half of frame or every there frame just one
check witch is better for you
06-24-2016 10:07 PM
A trick I would consider is to do two iterations. In the first iteration, look at every tenth or twentieth image, and check if the LED is on. Once you find an image with the LED on, you have to go back and analyze the last ten or twenty images to see which one the LED turned on in. This will be much faster than checking every single image.
Bruce
06-29-2016 08:43 AM
hi im now going to use histograms but my problem is the same. I'm using a producer and consumer arctitecture. How would i be able to implement your suggestion of using two iterations?
Thanks
06-30-2016 10:08 AM