core.models.picsellia_prediction¶
picsellia_prediction
¶
Classes:
Name | Description |
---|---|
PicselliaLabel |
Label associated with a prediction. |
PicselliaConfidence |
Confidence score for a prediction (typically between 0 and 1). |
PicselliaRectangle |
Bounding box in [x, y, width, height] format. |
PicselliaText |
Recognized text from OCR predictions. |
PicselliaPolygon |
Polygon represented by a list of points. |
PicselliaClassificationPrediction |
Prediction result for classification tasks. |
PicselliaRectanglePrediction |
Prediction result for object detection (rectangles). |
PicselliaOCRPrediction |
Prediction result for OCR tasks. |
PicselliaPolygonPrediction |
Prediction result for segmentation tasks. |
PicselliaLabel(value)
dataclass
¶
PicselliaConfidence(value)
dataclass
¶
PicselliaRectangle(x, y, w, h)
dataclass
¶
PicselliaText(value)
dataclass
¶
PicselliaPolygon(points)
dataclass
¶
PicselliaClassificationPrediction(asset, label, confidence)
dataclass
¶
Prediction result for classification tasks.
Attributes:
Name | Type | Description |
---|---|---|
asset |
Asset
|
|
label |
PicselliaLabel
|
|
confidence |
PicselliaConfidence
|
|
PicselliaRectanglePrediction(asset, boxes, labels, confidences)
dataclass
¶
Prediction result for object detection (rectangles).
Attributes:
Name | Type | Description |
---|---|---|
asset |
Asset
|
|
boxes |
list[PicselliaRectangle]
|
|
labels |
list[PicselliaLabel]
|
|
confidences |
list[PicselliaConfidence]
|
|
PicselliaOCRPrediction(asset, boxes, labels, texts, confidences)
dataclass
¶
Prediction result for OCR tasks.
Attributes:
Name | Type | Description |
---|---|---|
asset |
Asset
|
|
boxes |
list[PicselliaRectangle]
|
|
labels |
list[PicselliaLabel]
|
|
texts |
list[PicselliaText]
|
|
confidences |
list[PicselliaConfidence]
|
|
PicselliaPolygonPrediction(asset, polygons, labels, confidences)
dataclass
¶
Prediction result for segmentation tasks.
Attributes:
Name | Type | Description |
---|---|---|
asset |
Asset
|
|
polygons |
list[PicselliaPolygon]
|
|
labels |
list[PicselliaLabel]
|
|
confidences |
list[PicselliaConfidence]
|
|