SaveCameraFrameUseCase

class SaveCameraFrameUseCase(draftPageFileStorage: DraftPageFileStorage)

Saves camera frame in the in-memory repository

Constructors

Link copied to clipboard
constructor(draftPageFileStorage: DraftPageFileStorage)

Functions

Link copied to clipboard
fun saveCameraFrame(nv21Image: ByteArray, imageWidth: Int, imageHeight: Int, imageOrientation: Int, imageScale: Float = PageStorageProcessor.Configuration.DEFAULT().imageScale, requiredAspectRatios: List<AspectRatio> = PageStorageProcessor.Configuration.DEFAULT().requiredAspectRatios, documentImageSizeLimit: PageStorageProcessor.Configuration.Size = PageStorageProcessor.Configuration.DEFAULT().documentImageSizeLimit): <Error class: unknown class><Page>

Stores camera frame in DraftPageFileStorage throws IOException that need to be handled with catch {} in flow api