Package nl.dannyj.mistral.models.ocr
Class OCRPageDimensions
java.lang.Object
nl.dannyj.mistral.models.ocr.OCRPageDimensions
Represents the dimensions of a PDF page's screenshot image.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOCRPageDimensions(Integer dpi, Integer height, Integer width) Creates a newOCRPageDimensionsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetDpi()Dots per inch of the page-image.Height of the image in pixels.getWidth()Width of the image in pixels.inthashCode()voidDots per inch of the page-image.voidHeight of the image in pixels.voidWidth of the image in pixels.toString()
-
Constructor Details
-
OCRPageDimensions
public OCRPageDimensions() -
OCRPageDimensions
Creates a newOCRPageDimensionsinstance.- Parameters:
dpi- Dots per inch of the page-image.height- Height of the image in pixels.width- Width of the image in pixels.
-
-
Method Details
-
builder
-
getDpi
Dots per inch of the page-image.- Returns:
- The DPI of the page image.
-
getHeight
Height of the image in pixels.- Returns:
- The height of the image.
-
getWidth
Width of the image in pixels.- Returns:
- The width of the image.
-
setDpi
Dots per inch of the page-image. -
setHeight
Height of the image in pixels. -
setWidth
Width of the image in pixels. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-