Open simple3030 opened 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); } } }
@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()); }