无法获取扫描数据,而我得到的结果为空

问题描述

我正在尝试从相机预览中扫描数据,但它正在检索 null 而不是扫描。它返回 results = null

        PlanarYUVluminanceSource src = new PlanarYUVluminanceSource(data,width,height,false);
        BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(src));

        Result result = null;
        try {
            result = barcode.decodeWithState(bitmap);
        } catch (ReaderException exception) {
            // do nothing.
            // throws exception
        } finally {
            barcode.reset();
        }

请帮帮我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)