Skip to content

[HOW-TO] Specify classes to be detected by IMX500 AI Camera #1223

Open
@kustusch

Description

@kustusch

Is it possible to specify or filter certain classes of objects to be detected?

I would like to modify demo script:
https://github.com/raspberrypi/picamera2/blob/main/examples/imx500/imx500_object_detection_demo.py

Per my understanding, models based on COCO dataset are able to detect around 80 classes of objects listed here:
https://github.com/raspberrypi/picamera2/blob/main/examples/imx500/assets/coco_labels.txt

In my project I would like to narrow down number of classes detected for specific model used (eg. YOLOx).

Such capability is implemented by Ultralytics. The model.predict() accepts "classes" argument to filter classes to be detected.

Is it possible to accomplish something similar with IMX500?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions