CameraXCompatibleModel
interface CameraXCompatibleModel
Content copied to clipboard
Interface represents models which can be used with CameraX API, i.e. support setting of target image rotation.
Properties
targetRotation
Link copied to clipboard
Inheritors
ImageRecognitionModel
Link copied to clipboard
FaceDetectionModel
Link copied to clipboard
Fan2D106FaceAlignmentModel
Link copied to clipboard
SSDLikeModel
Link copied to clipboard
SinglePoseDetectionModel
Link copied to clipboard
Extensions
doWithRotation
Link copied to clipboard
fun <R> CameraXCompatibleModel.doWithRotation(rotation: Int, function: () -> R): R
Content copied to clipboard
Convenience function to execute arbitrary code with a preliminary updated target rotation. After the code is executed, the target rotation is restored to its original value.