LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert video to frame for image processing

Hi,

 

I need help. I'm a new learner and currently using Labview 8.5.1 version. I want to capture video of moving object using Logitech webcam and do online image processing to keep track it movement. I manage to capture the video and display it. And then I know how to grayscale single image. Somebody told me, if I want to do online image processing, I have to capture the video, turn it into frame and can start process it (greyscale and so on..).

 

My problem is, I can't find function that can convert my video into individual frame. Can somebody help me with this?

 

Thanks

0 Kudos
Message 1 of 12
(14,742 Views)

What is your video file format?

I have AVI to BMP

 

Or you can use NI IMAX/Vision toolkit.

 

 

 George Zou

http://www.geocities.com/gzou999

 

George Zou
Message 2 of 12
(14,724 Views)

Thanks for your reply, Zou.

 

My video is in AVI format. I can't open your VI demo because of the different version of Labview. The error prompted says 'LabView load error code 11: VI version (7.1) cannot be converted to the current LabView version (8.5) because it has no block diagram'.

 

What should I do then?

 

Regards,

Amila

 

0 Kudos
Message 3 of 12
(14,713 Views)

Hi Amila,

 

You will not be able to open the demo previously posted as it was originally saved without its block diagram.  This was a function available in older versions of LabVIEW with a view to saving space.  However LabVIEW still requires the block diagram to run the code, so when an upgrade was installed, one would have to load a copy of the VI that did have the block diagram.  So unless Zou has a copy with the block diagram, or you have a copy of LabVIEW 7.1 you will not be able to open or use that particular VI I'm afraid.

 

You can however, as Zou mentioned, use the NI IMAQ functions.  In particular, I think IMAQ AVI Read Frame.vi will be of most use to you in this instance.  You can find it on the functions pallette under Vision & Motion > Vision Utilities > Files > AVI.  There is also an example that illustrates its use (along with other AVI functions), in the example finder browse to Toolkits and Modules > Vision > Functions > AVI Read Write with Data Example.vi

 

I hope this helps you,

 

 

Sheela Sujeeun

Applications Engineer
National Instruments UK
0 Kudos
Message 4 of 12
(14,692 Views)

Hi.. I'm really sorry.. I've give wrong information. I captured movement of an object using Logitech Webcam and in the same time I have to process it so that I can track the movement of the object. I think the format of the image being captured is wmv. What should I do if I want to process the image being captured? Should I need to convert it into readible format so that image processing like edge detection can be done?

 

I found a VI: acquire USB grab image. Can I just continue adding more function to complete my application? 

 

Please excuse me as I just really new to this LabView.

 

Many thanks.

0 Kudos
Message 5 of 12
(14,677 Views)

Hi,

 

I hope you are doing fine. I have looked into your program. Can you please be more specific how you are capturing the video ,how is your device setup and what video format are  you capturing ? Do  you want to do processing while you are capturing the video or do you want to do processing once you have captured it ?

 

Best regards,

 

 

Fawad Nisar
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 6 of 12
(14,648 Views)

Hi..

I'm doing a LabView program which can detect edges of a strip. I've already can detect edges that I want but using the clamp vi. But this vi will give result in term of distance measured between two points (in red color), please refer to my 'image result' file. What I want is the distance measured between horizontal edges (yellow points). My result should have the coordinates of every yellow points so that I can calculate the mid point for these edges.

How can I do this? Please help me.. Many thanks

Download All
0 Kudos
Message 7 of 12
(14,516 Views)

I am doing my project in image processing.My intial stage of my project is to detect a object moving in conveyor belt using camera.Now i am using a intex webcam.I detected the object using color spectrum.Now i given a boolean led to blink when the object came into the area of region.Now what i need is when the object is detected i want to take the particular image of the object which is in the are of region.As i said above there is an boolean led given to notice whether the object is in ROI.so please help me to take the picture of that particular frame when it is detected.

0 Kudos
Message 8 of 12
(7,400 Views)

Please make a new post.  Much has changed in 6 years.  Make a new post, probably in the Machine Vision section. 

0 Kudos
Message 9 of 12
(7,388 Views)

how much work have u done.....and can u send me the work till yet u worked...am also student and want help

0 Kudos
Message 10 of 12
(7,343 Views)