Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to increase avi read rate

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. 

Labview 14.0, Labview 12.0
CLAD
Mechanical Engineering Student
0 Kudos
Message 1 of 13
(4,317 Views)
Remove the delay.. 🙂
0 Kudos
Message 2 of 13
(4,314 Views)

there is some method to increase it 
send your vi I could tell you witch one is better for you 

0 Kudos
Message 3 of 13
(4,311 Views)

Here is the VI. As far as I know i haven't done anything with a delay

Labview 14.0, Labview 12.0
CLAD
Mechanical Engineering Student
0 Kudos
Message 4 of 13
(4,309 Views)
I can see the delay of 25ms.. o.O
0 Kudos
Message 5 of 13
(4,302 Views)

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

Labview 14.0, Labview 12.0
CLAD
Mechanical Engineering Student
0 Kudos
Message 6 of 13
(4,297 Views)

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 

0 Kudos
Message 7 of 13
(4,287 Views)

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

Bruce Ammons
Ammons Engineering
0 Kudos
Message 8 of 13
(4,279 Views)

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

Labview 14.0, Labview 12.0
CLAD
Mechanical Engineering Student
0 Kudos
Message 9 of 13
(4,229 Views)
did you check last vi that i sent to you ?
0 Kudos
Message 10 of 13
(4,206 Views)