{"id":13643471,"url":"https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference","last_synced_at":"2025-04-21T01:32:54.274Z","repository":{"id":241604351,"uuid":"807142268","full_name":"rlggyp/YOLOv10-OpenVINO-CPP-Inference","owner":"rlggyp","description":"YOLOv10 C++ implementation using OpenVINO for efficient and accurate real-time object detection.","archived":false,"fork":false,"pushed_at":"2025-03-15T07:33:56.000Z","size":32037,"stargazers_count":67,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-15T08:25:13.303Z","etag":null,"topics":["cpp","object-detection","opencv","opencv-cpp","openvino","openvino-cpp","real-time","yolov10"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlggyp.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-05-28T14:55:44.000Z","updated_at":"2025-03-15T07:34:00.000Z","dependencies_parsed_at":"2024-06-23T02:03:05.635Z","dependency_job_id":"ad1c52e1-e5d3-456e-a601-5f98465095ac","html_url":"https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference","commit_stats":null,"previous_names":["rlggyp/yolov10-openvino-cpp-inference"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlggyp%2FYOLOv10-OpenVINO-CPP-Inference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlggyp%2FYOLOv10-OpenVINO-CPP-Inference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlggyp%2FYOLOv10-OpenVINO-CPP-Inference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlggyp%2FYOLOv10-OpenVINO-CPP-Inference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlggyp","download_url":"https://codeload.github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982649,"owners_count":21355737,"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","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":["cpp","object-detection","opencv","opencv-cpp","openvino","openvino-cpp","real-time","yolov10"],"created_at":"2024-08-02T01:01:48.052Z","updated_at":"2025-04-21T01:32:49.250Z","avatar_url":"https://github.com/rlggyp.png","language":"C++","funding_links":[],"categories":["Lighter and Deployment Frameworks"],"sub_categories":[],"readme":"# YOLOv10 OpenVINO C++ Inference\n\nImplementing YOLOv10 object detection using OpenVINO for efficient and accurate real-time inference in C++.\n\n## Features\n- [x] Support for `ONNX` and `OpenVINO IR` model formats\n- [x] Support for `FP32`, `FP16` and `INT8` precisions\n- [x] Support for loading model with dynamic shape\n\nTested on Ubuntu `18.04`, `20.04`, `22.04`.\n\n## Dependencies\n| Dependency | Version  |\n| ---------- | -------- |\n| OpenVINO   | \u003e=2023.3 |\n| OpenCV     | \u003e=3.2.0  |\n| C++        | \u003e=14     |\n| CMake      | \u003e=3.10.2 |\n\n## Installation Options\n\nYou have two options for setting up the environment: manually installing dependencies or using Docker.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eManual Installation\u003c/b\u003e\u003c/summary\u003e\n\n#### Install Dependencies\n```bash\napt-get update\napt-get install -y \\\n    libtbb2 \\\n    cmake \\\n    make \\\n    git \\\n    libyaml-cpp-dev \\\n    wget \\\n    libopencv-dev \\\n    pkg-config \\\n    g++ \\\n    gcc \\\n    libc6-dev \\\n    make \\\n    build-essential \\\n    sudo \\\n    ocl-icd-libopencl1 \\\n    python3 \\\n    python3-venv \\\n    python3-pip \\\n    libpython3.8\n```\n\n#### Install OpenVINO\nYou can download OpenVINO from [here](https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux).\n```bash\nwget -O openvino.tgz https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux/l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64.tgz \u0026\u0026 \\\nsudo mkdir /opt/intel\nsudo mv openvino.tgz /opt/intel/\ncd /opt/intel\nsudo tar -xvf openvino.tgz\nsudo rm openvino.tgz\nsudo mv l_openvino* openvino\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eUsing Docker\u003c/b\u003e\u003c/summary\u003e\n\n#### Building the Docker Image\nTo build the Docker image yourself, use the following command:\n```bash\ndocker build . -t yolov10\n```\n\n#### Pulling the Docker Image\nAlternatively, you can pull the pre-built Docker image from Docker Hub (available for Ubuntu 18.04, 20.04, and 22.04):\n```bash\ndocker pull rlggyp/yolov10:18.04\ndocker pull rlggyp/yolov10:20.04\ndocker pull rlggyp/yolov10:22.04\n```\n\nFor detailed usage information, please visit the [Docker Hub repository page](https://hub.docker.com/repository/docker/rlggyp/yolov10/general).\n\n#### Running a Container\nGrant the Docker container access to the X server by running the following command:\n```bash\nxhost +local:docker\n````\nTo run a container from the image, use the following `docker run` command:\n\n```bash\ndocker run -it --rm --mount type=bind,src=$(pwd),dst=/repo \\\n    --env DISPLAY=$DISPLAY \\\n    -v /tmp/.X11-unix:/tmp/.X11-unix \\\n    -v /dev:/dev \\\n    -w /repo \\\n    rlggyp/yolov10:\u003ctag\u003e\n```\n\n\u003c/details\u003e\n\n## Build \n```bash\ngit clone https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference.git\ncd YOLOv10-OpenVINO-CPP-Inference/src\n\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n## Usage\nYou can download the YOLOv10 model from here: [ONNX](https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference/raw/model/assets/yolov10n.onnx), \n[OpenVINO IR FP32](https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference/raw/model/assets/yolov10n_fp32_openvino.zip), \n[OpenVINO IR FP16](https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference/raw/model/assets/yolov10n_fp16_openvino.zip), \n[OpenVINO IR INT8](https://github.com/rlggyp/YOLOv10-OpenVINO-CPP-Inference/raw/model/assets/yolov10n_int8_openvino.zip)\n### Using an ONNX Model Format\n```bash\n# For video input: \n./video \u003cmodel_path.onnx\u003e \u003cvideo_path\u003e\n# For image input: \n./detect \u003cmodel_path.onnx\u003e \u003cimage_path\u003e\n# For real-time inference with a camera: \n./camera \u003cmodel_path.onnx\u003e \u003ccamera_index\u003e\n```\n\n### Using an OpenVINO IR Model Format\n```bash\n# For video input: \n./video \u003cmodel_path.xml\u003e \u003cvideo_path\u003e\n# For image input: \n./detect \u003cmodel_path.xml\u003e \u003cimage_path\u003e\n# For real-time inference with a camera: \n./camera \u003cmodel_path.xml\u003e \u003ccamera_index\u003e\n```\n\u003cp align=\"center\"\u003e \n  \u003cimg alt=\"traffic_gif\" src=\"assets/traffic.gif\", width=\"80%\"\u003e\n  \u003cimg alt=\"result_bus\" src=\"assets/result_bus.png\", width=\"80%\"\u003e\n  \u003cimg alt=\"result_zidane\" src=\"assets/result_zidane.png\", width=\"80%\"\u003e\n\u003c/p\u003e\n\n## References\n- [How to export the YOLOv10 model](https://github.com/THU-MIG/yolov10?tab=readme-ov-file#export)\n- [Convert and Optimize YOLOv10 with OpenVINO](https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/yolov10-optimization/yolov10-optimization.ipynb)\n- [Exporting the model into OpenVINO format](https://docs.ultralytics.com/integrations/openvino/#usage-examples)\n- [Model Export with Ultralytics YOLO](https://docs.ultralytics.com/modes/export/)\n- [Supported models by OpenVINO](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Integrate_OV_with_your_application.html#step-2-compile-the-model)\n- [YOLOv10 exporter notebooks](notebooks/YOLOv10_exporter.ipynb)\n\n## Contributing\nContributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.\n\n## License\nThis project is licensed under the [MIT License](LICENSE). See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlggyp%2FYOLOv10-OpenVINO-CPP-Inference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlggyp%2FYOLOv10-OpenVINO-CPP-Inference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlggyp%2FYOLOv10-OpenVINO-CPP-Inference/lists"}