LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying video image to array at video rate

Hey there!

 

My goal is to map image data of my webcam in an array. I can't get it to work though.

I use the IMAQ image to array function to 'split' it into 8-bit or 16-bit image data (or whatever data format I want to use).

The input is image data from a webcam. When I however use an indicator to display the 8-bit array output, it turns up empty.

Why is that, and how can I fix it?

 

In the file attached you can see a large drawn loop. It contains one part with the IMAQ image to array function with an indicator hooked up to it. If you run the program, you will see that the array turns up empty. Ofcourse, you need some sort of webcam for this.

 

Thanks for reading!

0 Kudos
Message 1 of 2
(2,188 Views)

I solved it!

Apparently, if you want to display 8-bit data, you need to give it 8-bit data first. So I used the 'Cast Image VI' of the IMAQ set (with an easily recognisable yellow logo showing a block going through a filter with a cylinder coming out) to get the 8-bit data. Then I hooked that 'Cast Image' up with a control for the image type. Now, if I want to view the 8-bit data, I have to filter it to 8bit data and the 8-bit 'image to array VI' output will give me data. If I set it to 16-bit data, the 16-bit grayscale gives me a 16-bit array. Both are updated in real-time (though at a slow refreshrate)

0 Kudos
Message 2 of 2
(2,174 Views)