Package ai.extend.types
Class ParserRunOcrWordsItem.Builder
- java.lang.Object
-
- ai.extend.types.ParserRunOcrWordsItem.Builder
-
- All Implemented Interfaces:
ParserRunOcrWordsItem._FinalStage,ParserRunOcrWordsItem.BoundingBoxStage,ParserRunOcrWordsItem.ConfidenceStage,ParserRunOcrWordsItem.ContentStage,ParserRunOcrWordsItem.PageNumberStage
- Enclosing class:
- ParserRunOcrWordsItem
public static final class ParserRunOcrWordsItem.Builder extends java.lang.Object implements ParserRunOcrWordsItem.ContentStage, ParserRunOcrWordsItem.BoundingBoxStage, ParserRunOcrWordsItem.ConfidenceStage, ParserRunOcrWordsItem.PageNumberStage, ParserRunOcrWordsItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParserRunOcrWordsItem.ConfidenceStageboundingBox(ParserRunOcrWordsItemBoundingBox boundingBox)The bounding box coordinates of the word.ParserRunOcrWordsItembuild()ParserRunOcrWordsItem.PageNumberStageconfidence(double confidence)The confidence score of the OCR detection for this word, between 0 and 1.ParserRunOcrWordsItem.BoundingBoxStagecontent(java.lang.String content)The text content of the word.ParserRunOcrWordsItem.Builderfrom(ParserRunOcrWordsItem other)ParserRunOcrWordsItem._FinalStagepageNumber(double pageNumber)The page number where the word was detected.
-
-
-
Method Detail
-
from
public ParserRunOcrWordsItem.Builder from(ParserRunOcrWordsItem other)
- Specified by:
fromin interfaceParserRunOcrWordsItem.ContentStage
-
content
public ParserRunOcrWordsItem.BoundingBoxStage content(@NotNull java.lang.String content)
The text content of the word.
The text content of the word.
- Specified by:
contentin interfaceParserRunOcrWordsItem.ContentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
boundingBox
public ParserRunOcrWordsItem.ConfidenceStage boundingBox(@NotNull ParserRunOcrWordsItemBoundingBox boundingBox)
The bounding box coordinates of the word.
The bounding box coordinates of the word.
- Specified by:
boundingBoxin interfaceParserRunOcrWordsItem.BoundingBoxStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public ParserRunOcrWordsItem.PageNumberStage confidence(double confidence)
The confidence score of the OCR detection for this word, between 0 and 1.
The confidence score of the OCR detection for this word, between 0 and 1.
- Specified by:
confidencein interfaceParserRunOcrWordsItem.ConfidenceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageNumber
public ParserRunOcrWordsItem._FinalStage pageNumber(double pageNumber)
The page number where the word was detected.
The page number where the word was detected.
- Specified by:
pageNumberin interfaceParserRunOcrWordsItem.PageNumberStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ParserRunOcrWordsItem build()
- Specified by:
buildin interfaceParserRunOcrWordsItem._FinalStage
-
-