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

裁剪出来的图片不是扫码框内的部分,无法正确演示效果 #8

Closed
bananaCaptain opened this issue Sep 19, 2018 · 1 comment

Comments

@bananaCaptain
Copy link

作者你好:demo裁剪出来的图片不是扫码框内的部分 是不是以下代码需要对原始数据进行方向判断并转换方向?麻烦了
@OverRide
public void onPictureTaken(CameraView cameraView, byte[] data) {
super.onPictureTaken(cameraView, data);
//TODO data的方向与预览的不一致
mCameraView.cropImage(data, new SmartCameraView.CropCallback() {
@OverRide
public void onCropped(Bitmap cropBitmap) {
if (cropBitmap != null) {
showPicture(cropBitmap);
}
}
});
}

@pqpo
Copy link
Owner

pqpo commented Sep 19, 2018

扫描预览是正常的?就拍照裁剪不正常?手机是关闭屏幕旋转还是开启状态?

CameraView.cropImage 里面已经做过方向判断了。

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

2 participants