GithubHelp home page GithubHelp logo

yolov8.openvino.cpp's Introduction

YOLOv8.OpenVino.cpp

YOLOv8 is a state-of-the-art object detector by ultralytics. This project implements the YOLOv8 object detector in C++ with an OpenVINO backend to speed up inference performance.

Features

  • Supports both image and video inference.
  • Provides faster inference speeds.

Prerequisites

Tested on Macbook Pro M1.

  • CMake v3.8+ - Download from https://cmake.org/.
  • OpenVINO Toolkit 2022.1+ - Tested on version 2023.1.0. Download from here.
  • OpenCV v4.6+ - Tested on version v4.8.0_7. Download from here.

Getting Started

  1. Set the OpenCV_DIR environment variable to point to your ../../opencv/build directory.

  2. Set the OpenVINO_DIR environment variable to point to your ../../openvino/runtime/cmake directory.

  3. Run the following build commands:

    For Mac with VS Developer Command Prompt:

    cd <git-directory>
    
    # Install dependencies
    brew install openvino
    brew install opencv
    
    # Build
    cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
    cd build
    make

Inference

  1. Export the ONNX file:

    pip install ultralytics
    yolo export model=yolov8s.pt format=onnx  # Export official model
  2. To run the inference, execute the following command:

    yolo --model <MODEL_PATH> [-i <IMAGE_PATH> | -v <VIDEO_PATH>] [--imgsz IMAGE_SIZE] [--gpu] [--iou-thresh IOU_THRESHOLD] [--score-thresh CONFIDENCE_THRESHOLD]
    
    # Example:
    yolo --model yolov8x.onnx -i images/zidane.jpg

License

This project is licensed under the MIT License. See the LICENSE file for details.

References

yolov8.openvino.cpp's People

Contributors

guoguoguo98 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

jasong98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.