LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read from .mpg or .avi file and display on interface through LabWindows/CVI

I want to read a frame from an .avi or .mpeg file one by one, how can I do it.
Is there any function (builtin) or any vision library that has image processing and vision function
I actually want to read each frame as can be read in matlab
 
Its urgent please
 
 
Thanks
Nouman
0 Kudos
Message 1 of 6
(3,710 Views)

Hello Numan,

If you have Matlab compiler, you can compile your code as a DLL and simply call it from CVI.
Or you can develop the whole application using Matlab (with GUIDE to create a user interface) and compile as a stand-alone executable.

As 3rd party libraries, there are Intel's image processing library, IPL, and OpenCV. But I am not sure if they are capable of doing what you want.

If you have SDK installed with CVI then you can use SDK functions to use the Windows' native multimedia access.
Just look up the keywords avi mpg in SDK help.

Hope this helps.

S. Eren BALCI
IMESTEK
Message 2 of 6
(3,700 Views)
Thanks S. Eren BALCI,
       You have shared good information. I'll try them(will take time).
I'll tell u in case of any problem.
 
Still other suggesstions are always welcome. 🙂
 
Nouman
0 Kudos
Message 3 of 6
(3,691 Views)
Hi again,
 
                I have downloaded NI Vision developer, I want to use the function imaqReadAVIFrames but it gives error that "No image file".
What this error points to and how can it be removed??
 
 
Nouman
0 Kudos
Message 4 of 6
(3,651 Views)
Hi again,
 
                I have downloaded NI Vision developer, I want to use the function imaqReadAVIFrames but it gives error that "No image file".
What this error points to and how can it be removed??
 
 
Nouman
0 Kudos
Message 5 of 6
(3,651 Views)

Hi Nouman,

Personally I never used NI Vision (software or hardware) components.
But from the error message I guess that the file name is wrong.

Do you type it as a string or construct the file name within the program?
Are you using '\' instead of '\\' within the file name string?. That is a common mistake.

S. Eren BALCI
IMESTEK
0 Kudos
Message 6 of 6
(3,641 Views)