{"id":28909667,"url":"https://github.com/qengineering/yolov5-npu-multithread","last_synced_at":"2025-10-05T12:46:17.989Z","repository":{"id":268551710,"uuid":"904722497","full_name":"Qengineering/YoloV5-NPU-Multithread","owner":"Qengineering","description":"YoloV5 NPU multithread for the RK3566/68/88 (200 FPS)","archived":false,"fork":false,"pushed_at":"2024-12-24T16:58:04.000Z","size":34145,"stargazers_count":19,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-21T17:10:22.537Z","etag":null,"topics":["deep-","multithreading","npu","rk3566","rk3568","rk3588","rock5c","yolov5"],"latest_commit_sha":null,"homepage":"https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qengineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-17T12:36:16.000Z","updated_at":"2025-06-02T01:57:35.000Z","dependencies_parsed_at":"2024-12-17T13:42:16.198Z","dependency_job_id":null,"html_url":"https://github.com/Qengineering/YoloV5-NPU-Multithread","commit_stats":null,"previous_names":["qengineering/https-github.com-qengineering-yolov5-npu-multi-thread"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Qengineering/YoloV5-NPU-Multithread","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FYoloV5-NPU-Multithread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FYoloV5-NPU-Multithread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FYoloV5-NPU-Multithread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FYoloV5-NPU-Multithread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qengineering","download_url":"https://codeload.github.com/Qengineering/YoloV5-NPU-Multithread/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FYoloV5-NPU-Multithread/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457485,"owners_count":25989954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-","multithreading","npu","rk3566","rk3568","rk3588","rock5c","yolov5"],"created_at":"2025-06-21T17:09:56.882Z","updated_at":"2025-10-05T12:46:17.984Z","avatar_url":"https://github.com/Qengineering.png","language":"C++","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL"],"categories":[],"sub_categories":[],"readme":"# YoloV5 NPU Multithread (200 FPS)\n\n![Screenshot from 2024-12-17 12-46-03](https://github.com/user-attachments/assets/96072118-8567-4f1f-a90c-451d08bd2526)\n\n\n## YoloV5 for RK3566/68/88 NPU (Rock 5, Orange Pi 5, Radxa Zero 3). \u003cbr/\u003e\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\u003cbr/\u003e\u003cbr/\u003e\nPaper: https://towardsdatascience.com/yolo-v5-is-here-b668ce2a4908\u003cbr/\u003e\u003cbr/\u003e\nSpecial made for the NPU, see [Q-engineering deep learning examples](https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html)\n\n------------\n\n**This example is unsuitable for use with a camera.** \u003cbr\u003e\n**Typically, cameras operate at a maximum of 30 FPS, a rate most NPU models can easily handle within a single thread.**\n\n------------\n\n## Dependencies.\nTo run the application, you have to:\n- OpenCV 64-bit installed.\n- Optional: Code::Blocks. (```$ sudo apt-get install codeblocks```)\n\n### Installing the dependencies.\nStart with the usual \n```\n$ sudo apt-get update \n$ sudo apt-get upgrade\n$ sudo apt-get install cmake wget curl\n```\n#### OpenCV\nFollow the Raspberry Pi 4 [guide](https://qengineering.eu/install-opencv-on-raspberry-64-os.html).\u003cbr\u003e\n\n#### RKNPU2\n```\n$ git clone https://github.com/airockchip/rknn-toolkit2.git\n```\nWe only use a few files.\n```\nrknn-toolkit2-master\n│      \n└── rknpu2\n    │      \n    └── runtime\n        │       \n        └── Linux\n            │      \n            └── librknn_api\n                ├── aarch64\n                │   └── librknnrt.so\n                └── include\n                    ├── rknn_api.h\n                    ├── rknn_custom_op.h\n                    └── rknn_matmul_api.h\n\n$ cd ~/rknn-toolkit2-master/rknpu2/runtime/Linux/librknn_api/aarch64\n$ sudo cp ./librknnrt.so /usr/local/lib\n$ cd ~/rknn-toolkit2-master/rknpu2/runtime/Linux/librknn_api/include\n$ sudo cp ./rknn_* /usr/local/include\n```\nSave 2 GB of disk space by removing the toolkit. We do not need it anymore.\n```\n$ cd ~\n$ sudo rm -rf ./rknn-toolkit2-master\n```\n\n------------\n\n## Installing the app.\nTo extract and run the network in Code::Blocks \u003cbr/\u003e\n```\n$ mkdir *MyDir* \u003cbr/\u003e\n$ cd *MyDir* \u003cbr/\u003e\n$ git clone https://github.com/Qengineering/YoloV5-NPU.git \u003cbr/\u003e\n```\n\n------------\n\n## Running the app.\nYou can use **Code::Blocks**.\n- Load the project file *.cbp in Code::Blocks.\n- Select _Release_, not Debug.\n- Compile and run with F9.\n- You can alter command line arguments with _Project -\u003e Set programs arguments..._ \n\nOr use **Cmake**.\n```\n$ cd *MyDir*\n$ mkdir build\n$ cd build\n$ cmake ..\n$ make -j4\n```\nMake sure you use the model fitting your system.\u003cbr\u003e\u003cbr\u003e\n\n------------\n\n[![paypal](https://qengineering.eu/images/TipJarSmall4.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Fyolov5-npu-multithread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqengineering%2Fyolov5-npu-multithread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Fyolov5-npu-multithread/lists"}