| 223 | |
| 224 | == Hailo Examples |
| 225 | |
| 226 | Hailo has some pre-built examples. |
| 227 | |
| 228 | Use the following steps: |
| 229 | * Checkout example code: |
| 230 | {{{ |
| 231 | git clone https://github.com/hailo-ai/Hailo-Application-Code-Examples.git |
| 232 | }}} |
| 233 | |
| 234 | * Run example which will take an input picture and then label any objects detected in the picture. |
| 235 | * Original image: |
| 236 | * [[Image(bike.png,300px)]] |
| 237 | * Processed Image: |
| 238 | * [[Image(bike-after.jpg,300px)]] |
| 239 | Code example: |
| 240 | {{{ |
| 241 | gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolo_general_inference$ python3 ./yolo_inference.py --labels ./coco2017.txt ./yolov7.hef ./bike.jpg yolo_v7 |
| 242 | Warning! Unable to query CPU for the list of supported features. |
| 243 | DEBUG:tensorflow:Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client. |
| 244 | i | Input layer: yolov7/input_layer1 (640, 640, 3) |
| 245 | i | Output layer: yolov5_nms_postprocess (80, 5, 80) |
| 246 | Labels detected in image0: |
| 247 | person: 89.02% |
| 248 | bicycle: 92.16% |
| 249 | gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolo_general_inference$ |
| 250 | |
| 251 | }}} |