Scanbot SDK
Loading...
Searching...
No Matches
Field

Generic document field. More...

Public Member Functions

None __init__ (self, *, FieldType type, Optional[OcrResult] value, float confidence_weight=1.0, Optional[ImageRef] image=None, Sequence[PointF] polygon_in_root, FieldValidationStatus validation_status=FieldValidationStatus.NONE, Optional[Sequence[FieldParsedData]] parsed_data=None)
 Constructs Field with the given params.
 
FieldType type (self)
 Getter for type field.
 
Optional[OcrResultvalue (self)
 Getter for value field.
 
float confidence_weight (self)
 Getter for confidence_weight field.
 
Optional[ImageRefimage (self)
 Getter for image field.
 
Sequence[PointFpolygon_in_root (self)
 Getter for polygon_in_root field.
 
FieldValidationStatus validation_status (self)
 Getter for validation_status field.
 
Sequence[FieldParsedDataparsed_data (self)
 Getter for parsed_data field.
 

Public Attributes

 polygon_in_root
 
 parsed_data
 

Detailed Description

Generic document field.

Constructor & Destructor Documentation

◆ __init__()

None __init__ ( self,
* ,
FieldType type,
Optional[OcrResult] value,
float confidence_weight = 1.0,
Optional[ImageRef] image = None,
Sequence[PointF] polygon_in_root,
FieldValidationStatus validation_status = FieldValidationStatus.NONE,
Optional[Sequence[FieldParsedData]] parsed_data = None )

Constructs Field with the given params.

Parameters
typeThe type of the field.
valueValue of the field. Applicable only to text fields.
confidence_weightConfidence weight. Default is 1.0
imageCrop of the field.
polygon_in_rootCoordinates of the field in the root document coordinate system.
validation_statusField validation status. Applicable only to fields that support some kind of validation. Default is NONE
parsed_dataParsed data.

Member Function Documentation

◆ confidence_weight()

float confidence_weight ( self)

Getter for confidence_weight field.

See __init__ method documentation for more information about the field.

◆ image()

Optional[ImageRef] image ( self)

Getter for image field.

See __init__ method documentation for more information about the field.

◆ parsed_data()

Sequence[FieldParsedData] parsed_data ( self)

Getter for parsed_data field.

See __init__ method documentation for more information about the field.

◆ polygon_in_root()

Sequence[PointF] polygon_in_root ( self)

Getter for polygon_in_root field.

See __init__ method documentation for more information about the field.

◆ type()

FieldType type ( self)

Getter for type field.

See __init__ method documentation for more information about the field.

◆ validation_status()

FieldValidationStatus validation_status ( self)

Getter for validation_status field.

See __init__ method documentation for more information about the field.

◆ value()

Optional[OcrResult] value ( self)

Getter for value field.

See __init__ method documentation for more information about the field.


The documentation for this class was generated from the following file: