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 newOCRPageDimensions
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
getDpi()
Dots per inch of the page-image.Height of the image in pixels.getWidth()
Width of the image in pixels.int
hashCode()
void
Dots per inch of the page-image.void
Height of the image in pixels.void
Width of the image in pixels.toString()
-
Constructor Details
-
OCRPageDimensions
public OCRPageDimensions() -
OCRPageDimensions
Creates a newOCRPageDimensions
instance.- 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
-