ResolutionCameraConfig

Deprecated

相机配置:根据尺寸配置相机的目标图像大小,使输出分析的图像的分辨率尽可能的接近屏幕尺寸

Author

Jenly

Follow me

Deprecated

后续版本可能会删除此类;请使用 AdaptiveCameraConfig

Constructors

Link copied to clipboard
constructor(context: Context)
构造
constructor(context: Context, imageQuality: Int)
构造

Properties

Link copied to clipboard
1080P
Link copied to clipboard
720P

Functions

Link copied to clipboard
配置 CameraSelector.Builder;可参考:AspectRatioCameraConfigResolutionCameraConfig 如配置前置摄像头:builder.requireLensFacing(CameraSelector.LENS_FACING_FRONT) 切记,外部请勿直接调用 options
配置 ImageAnalysis.Builder;可参考:AspectRatioCameraConfigResolutionCameraConfig 如配置目标旋转角度为90度:builder.setTargetRotation(Surface.ROTATION_90) 切记,外部请勿直接调用 options
配置 Preview.Builder;可参考:AspectRatioCameraConfigResolutionCameraConfig 如配置目标旋转角度为90度:builder.setTargetRotation(Surface.ROTATION_90) 切记,外部请勿直接调用 options