Static Image Bounding Box Drawer

A dog has a bounding box drawn around it, along with a number of other objects in the scene.

This CLI sample shows how you can use Xnornet to create applications that don’t need live input/output, or a desktop environment at all. It uses the Xnor object detection API to draw bounding boxes around objects in an image file, saving the result to another image file.

Language

Python

Location

xnor-sdk-<hardware-target>/samples/python/static_image_bounding_box.py

Dependencies

Python “Pillow” package and installed Xnor model.

Compatible Xnor Models

All object detection models

Example Usage

python3 static_image_bounding_box.py ../test-images/dog.jpg