Android : converting RGB888 to Y800

戏子无情 提交于 2019-12-11 11:53:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!