Page

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

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

parametricFilters

filters to apply


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

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

parametricFilter

filter to apply


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

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


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

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

parametricFilters

filters to apply

documentImageSizeLimit

the limit of size of the page


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)

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


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

Deprecated

Deprecated constructor. Use constructor with parametricFilter instead.

Replace with

Page(pageId, polygon, detectionStatus, parametricFilter)

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

filter to apply