如何旋转摄像头?
zhaoxiuyu opened this issue · comments
zhaoxiuyu commented
如何设置摄像头旋转 多少度?
Simon_Lee commented
CameraScanner.CameraListener有一个回调方法
void openCameraSuccess(int surfaceWidth, int surfaceHeight, int surfaceDegree)
会返回图像帧的宽高及旋转角度,在回调中调用
mTextureView.setImageFrameMatrix(frameWidth, frameHeight, frameDegree);
即可校正图像。