不需要经过算法处理,底层API封装好了。
mTextureView = findViewById(R.id.surface_yuv);
mTextureView.setRotation(90); // 顺时针旋转90°
mTextureView.setRotationY(180); // 镜面对称
只是预览的处理,原始数据不变。
时间:2024-04-26 23:51:40
不需要经过算法处理,底层API封装好了。
mTextureView = findViewById(R.id.surface_yuv);
mTextureView.setRotation(90); // 顺时针旋转90°
mTextureView.setRotationY(180); // 镜面对称
只是预览的处理,原始数据不变。
Android编程中调用Camera时预览画面有旋转问题的解决方法
2023-09-20
android camera textureview textureview_learn
2021-01-20
android开发之textureview绑定camera实现拍照功能
2023-04-19