Simon-Leeeeeeeee / XCodeScanner

A new frame for decode QR code and bar code on Android. It's faster, simpler and more accurate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如何旋转摄像头?

zhaoxiuyu opened this issue · comments

如何设置摄像头旋转 多少度?

CameraScanner.CameraListener有一个回调方法
void openCameraSuccess(int surfaceWidth, int surfaceHeight, int surfaceDegree)
会返回图像帧的宽高及旋转角度,在回调中调用
mTextureView.setImageFrameMatrix(frameWidth, frameHeight, frameDegree);
即可校正图像。