11-27-2020 05:05 AM
Hello all,
I am using the zxing library to read the Barcode, it supports very well when I use the correct image path of the image (as shown below).
The problem here is that I want to read the image directly from IMAQ. I used the below method to read the picture, but it can only read when the picture is 32bit RGB, and the 8 bit image cannot be read (when using the image path, it is 8bit, 32bit picture it can read). So is there a way to read the 8bit image to pass through the bitmap to use the zxing library?
Any advice welcome!
Vuka, Thank all.
11-27-2020 07:31 AM
Can't you change the format property node to some type that would match an 8bit image ?
Otherwise an (ugly) workaround could be that you create an intermediate RGB32 IMAQ image you would fill with the 8bits you acquire using the ReplaceColorRGB Plane vi and feeding the 8bit source image to all R, G and B plane inputs.
11-27-2020 11:19 AM
Thank for reply,
I tried yours but I don't understand how the ReplaceColorPlan Vi function works. The figure below shows the list of bitmap formats to choose from.
I attach the Vi below, can you help me out?