Modifying Host_lib Programs to PLUS Programs in Python

To rewrite host_lib programs to PLUS-compatible programs, please feel free to refer to the below files that could be downloaded at: https://www.kneron.com/tw/support/education-center/?folder=%E8%80%90%E8%83%BD%E7%9B%83%E7%AB%B6%E8%B3%BD%E5%B0%88%E5%8D%80/&download=39

The zip file contains the following:

-KL520CamMultithreadPostYoloV5.py (should be placed in ${PLUS_FOLDER}/python/example)

This program in PLUS turns on the camera for the OS (Windows, Linux, etc.) and detects objects such as faces and cellphones. It works similarly to cam_dme_async_post_host_yolov5.py in host_lib, so comparing these two programs could help with getting an idea of converting certain functions from host_lib to PLUS.


-coco_name_lists (should be placed in ${PLUS_FOLDER}/python/example/utils)

This file lists the Yolo object name in their class number order. This is used in both cam_dme_async_post_host_yolov5.py and KL520CamMultithreadPostYoloV5.py for identifying the objects detected.


-host_lib_to_PLUS_SW_wrapper.png

This image compares the functions in host_lib programs with the ones in PLUS programs.


Notes:

*Before running programs in PLUS, install the dependencies for PLUS written in http://doc.kneron.com/docs/#plus/introduction/install_dependency/ and ${PLUS_FOLDER}/python/doc/markdown/introduction/install_dependency.md

*To run programs in PLUS, the AI device (e.g. AI dongle) needs to be upgraded to KDP2 Firmware. The instructions are written in http://doc.kneron.com/docs/#plus/introduction/upgrade_ai_device_to_kdp2/


Please feel free to ask any questions about migrating from host_lib to PLUS.

Sign In or Register to comment.