CameraXCompatibleModel

interface CameraXCompatibleModel

Interface represents models which can be used with CameraX API, i.e. support setting of target image rotation.

Properties

targetRotation
Link copied to clipboard
abstract var targetRotation: Int

Target image rotation.

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

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.