Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
add_subdirectory(example)
add_subdirectory(yolov8-cls-inference)
13 changes: 13 additions & 0 deletions app/yolov8-cls-inference/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.5)

project(yolov8-cls-inference)

find_package(OpenCV REQUIRED)

set(PROJECT_SOURCE_FILES
main.cpp
)

add_executable(${CMAKE_PROJECT_NAME} ${PROJECT_SOURCE_FILES})
target_link_libraries(${CMAKE_PROJECT_NAME} ${OpenCV_LIBS})
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${OpenCV_INCLUDE_DIRS})
29 changes: 29 additions & 0 deletions app/yolov8-cls-inference/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

## YOLOv8-cls inference

1. OpenCV installation

[Get started with OpenCV](https://opencv.org/get-started/)

2. Ultralytics installation

Create and activate python venv
```
python -m venv <venv dir>
source <venv dir>/bin/activate
```
Install ultralytics using pip
```
pip install ultralytics
```

3. Export YOLOv8-cls model
```
python export.py
```

4. Run the project
```
make -C build
build/yolov8-cls-inference <image path>
```
Loading
Loading