Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to acquire images in jpeg with CVI and NI-IMAQ

I am working on real time acquisition and I want to save the images in jpeg format. I had already done it with bmp format. I've got the ni-imaq 2.2.1 version. Am I obliged to get a more recent version or can I do it with mine ?
0 Kudos
Message 1 of 4
(3,680 Views)
Do you have the Vision software? If so, you can use the imaqWriteJPEGFile function. If not, there is no way to save your image as a JPEG file. But, you can save your images as either BMP, TIFF, or PNG with only the NI-IMAQ driver.

Here is a link to an example of how to do this in CVI:
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/8a0a83d8462c7e2586256ab00056836e

Jack Arnold
National Instruments
0 Kudos
Message 2 of 4
(3,680 Views)
I don't have the Vision Software because I don't need all the library functions. I'd already done the acquisition in BMP. Isn't there a cheaper way to save the image in Jpeg in Lab Windows CVI?
0 Kudos
Message 3 of 4
(3,680 Views)
Writing JPEG files is not supported by NI-IMAQ and CVI doesn't have any built in JPEG writing functions like LabVIEW. You might be able to use GDI in the WIndows SDK to write JPEG files. I know that GDI+ (which is on Windows XP and .NET servers) can do it. Try searching Microsoft's website for more information.

Jack Arnold
National Instruments
0 Kudos
Message 4 of 4
(3,680 Views)