szad670401 / HyperLPR

基于深度学习高性能中文车牌识别 High Performance Chinese License Plate Recognition Framework.
Apache License 2.0
5.68k stars 2.01k forks source link

从相机回调回来,角度一定要传270吗?换成其他的角度,为什么识别不了呢? #369

Open simple3030 opened 1 year ago

simple3030 commented 1 year ago

@Override public void onPreviewFrame(final byte[] data, final Camera camera) { synchronized (lock) { // 处理data Camera.Size previewSize = camera.getParameters().getPreviewSize(); Plate[] plates = HyperLPR3.getInstance().plateRecognition(data, previewSize.height, previewSize.width, _HyperLPR3.CAMERA_ROTATION270, HyperLPR3.STREAM_YUV_NV21); for (Plate plate : plates) { Log.i(TAG, "" + plate.toString()); }

        if (!isStopReg && plates.length > 0) {
            sendPlate(plates);
        }

    }
}