Package ai.extend.types
Class ParseRunOutputOcrWordsItem
- java.lang.Object
-
- ai.extend.types.ParseRunOutputOcrWordsItem
-
public final class ParseRunOutputOcrWordsItem extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParseRunOutputOcrWordsItem._FinalStagestatic interfaceParseRunOutputOcrWordsItem.BoundingBoxStagestatic classParseRunOutputOcrWordsItem.Builderstatic interfaceParseRunOutputOcrWordsItem.ConfidenceStagestatic interfaceParseRunOutputOcrWordsItem.ContentStagestatic interfaceParseRunOutputOcrWordsItem.PageNumberStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParseRunOutputOcrWordsItem.ContentStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getBlockId()BoundingBoxgetBoundingBox()doublegetConfidence()java.lang.StringgetContent()doublegetPageNumber()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getContent
public java.lang.String getContent()
- Returns:
- The text content of the word.
-
getBoundingBox
public BoundingBox getBoundingBox()
- Returns:
- The bounding box coordinates of the word.
-
getConfidence
public double getConfidence()
- Returns:
- The confidence score of the OCR detection for this word, between 0 and 1.
-
getPageNumber
public double getPageNumber()
- Returns:
- The page number where the word was detected.
-
getBlockId
public java.util.Optional<java.lang.String> getBlockId()
- Returns:
- The
idof the block (see theBlockschema) this word was assigned to, based on bounding-box overlap. Omitted when the word doesn't fall within any block's bounding box.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ParseRunOutputOcrWordsItem.ContentStage builder()
-
-