Page

data class Page(val pageId: String = UUID.randomUUID().toString(), val polygon: List<PointF> = emptyList(), val detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, val filter: ImageFilterType = ImageFilterType.NONE, val parametricFilters: List<ParametricFilter> = emptyList(), val documentImageSizeLimit: Page.Size = Size(), val pageImageSource: PageImageSource = PageImageSource.UNDEFINED) : Parcelable, Serializable

Deprecated

Use new Document API instead.

Object which represents snapped document

Parameters

pageId

id of the page

polygon

polygon of the cropped page

detectionStatus

information about the state of detection of the document on this page

filter

deprecated filter type to apply

parametricFilters

filters to apply

documentImageSizeLimit

the limit of size of the page

pageImageSource

type of the source of the image

Constructors

Link copied to clipboard
constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, filter: ImageFilterType)

Object which represents snapped document

constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, parametricFilters: List<ParametricFilter> = emptyList())

Object which represents snapped document

constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, parametricFilter: ParametricFilter? = null)

Object which represents snapped document

constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK)

Object which represents snapped document

constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, parametricFilters: List<ParametricFilter> = emptyList(), documentImageSizeLimit: Page.Size)

Object which represents snapped document

constructor(pageId: String = UUID.randomUUID().toString(), polygon: List<PointF> = emptyList(), detectionStatus: DocumentDetectionStatus = DocumentDetectionStatus.OK, filter: ImageFilterType = ImageFilterType.NONE, parametricFilters: List<ParametricFilter> = emptyList(), documentImageSizeLimit: Page.Size = Size(), pageImageSource: PageImageSource = PageImageSource.UNDEFINED)

Types

Link copied to clipboard
data class Size(val width: Int = Int.MAX_VALUE, val height: Int = Int.MAX_VALUE) : Serializable

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard