Package nl.dannyj.mistral.models.ocr
Class OCRPageObject
java.lang.Object
nl.dannyj.mistral.models.ocr.OCRPageObject
Represents the OCR information for a single page.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOCRPageObject
(Integer index, String markdown, List<OCRImageObject> images, OCRPageDimensions dimensions) Creates a newOCRPageObject
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
The dimensions of the PDF Page's screenshot image.List of all extracted images in the page.getIndex()
The page index in a PDF document starting from 0.The markdown string response of the page.int
hashCode()
void
setDimensions
(OCRPageDimensions dimensions) The dimensions of the PDF Page's screenshot image.void
setImages
(List<OCRImageObject> images) List of all extracted images in the page.void
The page index in a PDF document starting from 0.void
setMarkdown
(String markdown) The markdown string response of the page.toString()
-
Constructor Details
-
OCRPageObject
public OCRPageObject() -
OCRPageObject
public OCRPageObject(Integer index, String markdown, List<OCRImageObject> images, OCRPageDimensions dimensions) Creates a newOCRPageObject
instance.- Parameters:
index
- The page index in a PDF document starting from 0.markdown
- The markdown string response of the page.images
- List of all extracted images in the page.dimensions
- The dimensions of the PDF Page's screenshot image.
-
-
Method Details
-
builder
-
getIndex
The page index in a PDF document starting from 0.- Returns:
- The page index.
-
getMarkdown
The markdown string response of the page.- Returns:
- The markdown string response.
-
getImages
List of all extracted images in the page.- Returns:
- The list of extracted images.
-
getDimensions
The dimensions of the PDF Page's screenshot image.- Returns:
- The dimensions of the page.
-
setIndex
The page index in a PDF document starting from 0. -
setMarkdown
The markdown string response of the page. -
setImages
List of all extracted images in the page. -
setDimensions
The dimensions of the PDF Page's screenshot image. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-