darcyai.perceptor.coral.object_detection_perceptor
ObjectDetectionPerceptor Objects
class ObjectDetectionPerceptor(CoralPerceptorBase)
ObjectDetectionPerceptor is a class that implements the Perceptor interface for object detection.
Arguments
- threshold (
float
): The threshold for object detection. - labels_file (
str
): The path to the labels file. - labels (
dict
): A dictionary of labels.
run
def run(input_data: Any, config: ConfigRegistry = None) -> List[Object]
Runs the object detection model on the input data.
Arguments
- input_data (
Any
): The input data to run the model on. - config (
ConfigRegistry
): The configuration for the Perceptor.
Returns
list[Object]
: A list of detected objects.
load
def load(accelerator_idx: [int, None]) -> None
Loads the object detection model.
Arguments
- accelerator_idx (
int
): The index of the Edge TPU to use.
Returns
None