Add YOLOv8 OpenVINO C++ Inference example (#13839)
Co-authored-by: Muhammad Amir Abdurrozaq <m.amir.hs19@gmail.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
e30b7c24f2
commit
fb6d8c0123
5 changed files with 365 additions and 0 deletions
21
examples/YOLOv8-OpenVINO-CPP-Inference/CMakeLists.txt
Normal file
21
examples/YOLOv8-OpenVINO-CPP-Inference/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.12)
|
||||
project(yolov8_openvino_example)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
find_package(OpenCV REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${OpenCV_INCLUDE_DIRS}
|
||||
/path/to/intel/openvino/runtime/include
|
||||
)
|
||||
|
||||
add_executable(detect
|
||||
main.cc
|
||||
inference.cc
|
||||
)
|
||||
|
||||
target_link_libraries(detect
|
||||
${OpenCV_LIBS}
|
||||
/path/to/intel/openvino/runtime/lib/intel64/libopenvino.so
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue