Prediction class

Prediction class will be used to store the data received from "prediction" key in Result class. Result class will contain List of Prediction class implying that there will be a list of predictions stored in the list which will be of Prediction type.

Prediction class will have id, score, label, ocrText etc. label will be the category of the OCR model assigned to that prediction and ocrText will be the value of that particular category.

Constructors

Prediction({required String? id, required String? label, required int? xmin, required int? ymin, required int? xmax, required int? ymax, required double? score, required String? ocrText, required String? type, required String? status, required int? pageNo, required String? labelId, required List<Cell> cells})
Prediction.fromJson(Map<String, dynamic> json)
factory

Properties

cells List<Cell>
final
hashCode int
The hash code for this object.
no setterinherited
id String?
id contains id of the prediction.
final
label String?
label conatains label/category of the prediction.
final
labelId String?
labelId conatins id of the label/category.
final
ocrText String?
ocrText conatains value of the label/category predicted by the OCR.
final
pageNo int?
pageNo contains page of the prediction made.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double?
score conatins prediction score of the prediction result.
final
status String?
status tells about the status of the prediction i.e. wrong or right prediction.
final
type String?
type tells about the type of the label e.g. field, table etc.
final
xmax int?
final
xmin int?
final
ymax int?
final
ymin int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited