| | 260 | |
| | 261 | === Webcam Yolo Example |
| | 262 | |
| | 263 | Connect a known working webcam to the Venice SBC. |
| | 264 | The example used was a Logitech C930. |
| | 265 | |
| | 266 | Be sure it shows up using v4l2-ctl command: |
| | 267 | {{{ |
| | 268 | gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$ v4l2-ctl --list-devices |
| | 269 | Logitech Webcam C930e (usb-ci_hdrc.1-1.1): |
| | 270 | /dev/video0 |
| | 271 | |
| | 272 | }}} |
| | 273 | |
| | 274 | Update permissions of the webcam device on Venice SBC for all users just for the demo: |
| | 275 | {{{ |
| | 276 | chmod 777 /dev/video0 |
| | 277 | }}} |
| | 278 | |
| | 279 | Add a user to the Venice SBC other than root, as X11 doesn't work well as root |
| | 280 | {{{ |
| | 281 | sudo adduser frank |
| | 282 | }}} |
| | 283 | |
| | 284 | SSH into the Venice SBC (headless) with a Linux desktop machine using X11 forwarding. This will allow a GUI window to popup on the Linux desktop machine because the Venice SBC has no monitor: |
| | 285 | {{{ |
| | 286 | ssh frank@192.168.1.23-X #change IP to Venice SBC |
| | 287 | }}} |
| | 288 | |
| | 289 | From the ssh session on the desktop, run the example code like below: |
| | 290 | {{{ |
| | 291 | gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$ ./yolox_stream_inference.py |
| | 292 | ['0000:42:00.0'] |
| | 293 | gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$ |
| | 294 | |
| | 295 | }}} |
| | 296 | |
| | 297 | Screenshot of video detection with webcam (x11 window pops up on Linux desktop) |
| | 298 | * [[Image(yoloxstream.jpg,500px)]] |
| | 299 | |
| | 300 | |