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 newOCRPageObjectinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanThe 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.inthashCode()voidsetDimensions(OCRPageDimensions dimensions) The dimensions of the PDF Page's screenshot image.voidsetImages(List<OCRImageObject> images) List of all extracted images in the page.voidThe page index in a PDF document starting from 0.voidsetMarkdown(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 newOCRPageObjectinstance.- 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
-