Changes between Version 7 and Version 8 of hailoai


Ignore:
Timestamp:
03/25/2024 11:06:13 PM (7 weeks ago)
Author:
Ryan Erbstoesser
Comment:

add yolostream example

Legend:

Unmodified
Added
Removed
Modified
  • hailoai

    v7 v8  
    224224== Hailo Examples
    225225
     226
    226227Hailo has some pre-built examples.
    227228
     
    232233}}}
    233234
     235=== Static Image YOLO Example
     236YOLO stands for You only look once.
     237
     238COCO is Common Objects in Context.
     239
     240The coco text file is needed to label the objects in the image.
     241
    234242* Run example which will take an input picture and then label any objects detected in the picture.
    235243 * Original image:
    236   * [[Image(bike.png,300px)]]
     244  * [[Image(bike.jpg,300px)]]
    237245 * Processed Image:
    238246   * [[Image(bike-after.jpg,300px)]]
     
    250258
    251259}}}
     260
     261=== Webcam Yolo Example
     262
     263Connect a known working webcam to the Venice SBC.
     264The example used was a Logitech C930.
     265
     266Be sure it shows up using v4l2-ctl command:
     267{{{
     268gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$ v4l2-ctl --list-devices
     269Logitech Webcam C930e (usb-ci_hdrc.1-1.1):
     270        /dev/video0
     271
     272}}}
     273
     274Update permissions of the webcam device on Venice SBC for all users just for the demo:
     275{{{
     276chmod 777 /dev/video0
     277}}}
     278
     279Add a user to the Venice SBC other than root, as X11 doesn't work well as root
     280{{{
     281sudo adduser frank
     282}}}
     283
     284SSH 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{{{
     286ssh frank@192.168.1.23-X #change IP to Venice SBC
     287}}}
     288
     289From the ssh session on the desktop, run the example code like below:
     290{{{
     291gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$ ./yolox_stream_inference.py
     292['0000:42:00.0']
     293gateworks@jammy-venice:~/apps/apps/Hailo-Application-Code-Examples/runtime/python/yolox_streaming_inference$
     294
     295}}}
     296
     297Screenshot of video detection with webcam (x11 window pops up on Linux desktop)
     298   * [[Image(yoloxstream.jpg,500px)]]
     299
     300
    252301== Hailo Tappas
    253302