Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simple3030 opened this issue May 24, 2023 · 0 comments

Comments

@simple3030
Copy link

@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_ROTATION_270, HyperLPR3.STREAM_YUV_NV21);
for (Plate plate : plates) {
Log.i(TAG, "" + plate.toString());
}

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

    }
}
@simple3030 simple3030 changed the title 从相册识别出来,角度一定要传270吗?换成其他的角度,为什么识别不了呢? 从相机回调回来,角度一定要传270吗?换成其他的角度,为什么识别不了呢? May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant