I've searched all the forum and I cannot find the answer (and this is my first post, so sorry for possible errors).
I've downloaded Zxing pack and I would like to get the qr code decoder work (in c#, a WPF application). The problem is that I get no error while compiling, and the application goes well (I take the input stream from kinect rgb camera) but it seems it does nothing.
I report some code (probably I've made some error...):
RGBLuminanceSource ls = new RGBLuminanceSource(bit, frame.Width,frame.Height);
Result result = new QRCodeReader().decode(new BinaryBitmap(new HybridBinarizer(ls)));
if (result != null)
Console.WriteLine("yahoo!");
else
Console.WriteLine("oh no");
with frame that is the frame captured by the kinect, and bit is the byte[] array that RGBLuminanceSource want as input, and I've made it by this:
byte[] bit= new byte[frame.PixelDataLength];
colorFrame.CopyPixelDataTo(bit);
What pass is that, when I put the paper with the qr code in front of the camera, it always return me the message "oh no", and I cannot figure out what I'm doing wrong.