public static class ImageCaptureScenario.DocumentSize
The physical size of the documents. Can be chosen from the preset values or defined manually.
@JvmField @NotNull public static com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.DocumentSize ANY
The captured document can have any size.
@JvmField @NotNull public static com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.DocumentSize A4
Document size is 210x297 millimeters.
@JvmField @NotNull public static com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.DocumentSize LETTER
Document size is 215.9x279.4 millimeters
@JvmField @NotNull public static com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.DocumentSize BUSINESS_CARD
Document size is 53.98x85.6 millimeters.
Note: It is recommended to define aspect ratio using setAspectRatioMin
and setAspectRatioMax
methods
for business cards capture. Otherwise only business cards with 53.98x85.6 aspect ratio will be captured.
setAspectRatioMin
,
setAspectRatioMax
public DocumentSize(float width, float height)
The physical size of the documents. Can be chosen from the preset values or defined manually.
width
- Document width in millimeters.height
- Document height in millimeterspublic float getWidth()
Document width in millimeters.
public float getHeight()
Document height in millimeters
public float component1()
Document width in millimeters.
public float component2()
Document height in millimeters
@NotNull public com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.DocumentSize copy(float width, float height)
The physical size of the documents. Can be chosen from the preset values or defined manually.
width
- Document width in millimeters.height
- Document height in millimeters@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)