问题
I am getting image captured from vuforia as RGB888 bytes[] . I want to pass this to zbar which is expecting the format to be Y800 . How can i do that.
i tried
Image barcode = new Image(width, height, "RGB3");
barcode.setData(imgRGB888);
int result = scanner.scanImage(barcode.convert("Y800"));
but its not giving right result
回答1:
check this Thread and Review Your Full Code :
http://sourceforge.net/p/zbar/discussion/2308158/thread/ce0d36f8
By the Way : zbar Accepts GRAY format too..
来源:https://stackoverflow.com/questions/22892557/android-converting-rgb888-to-y800