Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For detailed function implementation, please refer to the following file:

View file
namevnnyolov8sDetection_u8_post_process-yolov8s-u8.zip

2.2. Program Compile

When compiling NN-related applications, SDK's headers and libraries must be included.

...

3. Example flow of the program build and run

Unzipped

View file
namevnnyolov8sDetection_u8_post_process-yolov8s-u8.zip
and
View file
nameMakefile.zip
then placed them in ~/c3v/Models/yolov8s-detection/wksp/yolov8s_uint8_nbg_unify Folder. The brief folder of the project is like this:

...

Code Block
/mnt/yolov8s_uint8_nbg_unify # ./yolov8s-detection-uint8 ./network_binary.nb
./input.jpg
Create Neural Network: 28ms or 28375us
Verify...
Verify Graph: 21ms or 21116us
Start run graph [1] times...
Run the 1 time: 57.55ms or 57548.24us
vxProcessGraph execution time:
Total   58.05ms or 58053.36us
Average 58.05ms or 58053.36us
obj: L: 0 P:0.93, [(0, 42) - (200, 599)]
obj: L: 0 P:0.91, [(309, 279) - (180, 361)]
obj: L: 0 P:0.58, [(344, 171) - (170, 301)]

3.2. ImageWriter Tool

If you want to show the detection results in an image, we suggest using ImageWriter tools.

Please download

View file
nameimageWriter.zip
and compile it in c3v:

Code Block
cd imageWriter
make -j

Then you can run the imageWriter application directly on c3v:

Param1 is the image which is the same as yolov8s-detection-uint8 param2. The yolov8s-detection-uint8 is the application that is built in step 3.1. build in c3v.

Param2 is the file detect_result.raw which was generated after the program yolov8s-detection-uint8 runs.

Param3 is the output name, which format is jpg.

Code Block
./imageWriter ./input.jpg ./detect_result.raw ./output.jpg

The result is like this:

...