Hello,
I'm using Zbar with a jevois and I try to read a QR code in a ROI.
I don't know why but if I use the whole image, zbar detect and read the QR code without problem. But not when I use a region of interest.
This is my code :
:::c
cv::Mat grayImg = inframe.getCvGRAY(); // a 1280 * 920 grayscale image
cv::Rect rect(x,y,h,w);
cv::Mat roi = grayImg(rect); // about 290 * 290
Image image(roi.cols, roi.rows, "Y800", (uchar )roi.data, roi.total());
int n = scanner.scan(image);
for(Image::SymbolIterator symbol = image.symbolbegin(); symbol != image.symbolend(); ++symbol){
cout << "Data : " << symbol->getdata() << endl;
}
:::
I attach a photo of my ROI.
Hope you can help me.
FYI: zbar has moved to https://git.linuxtv.org/zbar.git/
zbarimg V0.23 from there did decode your image as BASTIEN out-of-the-box.