Skip to content

b-elamine/OrtYolov8nAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 ONNX YOLOv8 Android Object Detection App

A real-time object detection Android application powered by YOLOv8 and ONNX Runtime.


🌐 Project Overview

This Android application demonstrates object detection using a YOLOv8 model exported to ONNX format. It takes an image input, runs inference with ONNX Runtime, and displays results with bounding boxes, class labels, and confidence scores.

✅ Highlights

  • Works offline – no network dependency.
  • Lightweight and mobile-optimized.
  • Extensible and cleanly structured codebase.

✨ Key Features

🔍 YOLOv8 Inference (ONNX)

  • Loads and executes a YOLOv8n model in ONNX format.
  • Runs inference with efficient mobile performance via ONNX Runtime.

🖼️ Image Processing

  • Preprocessing: Resize to 640×640, normalize to [0, 1] range.
  • Postprocessing: Applies confidence filtering and Non-Maximum Suppression (NMS).

🧠 Detection Output

  • Draws bounding boxes with class names and confidence values.
  • Supports dynamic class names from labels.txt.

📱 Android Optimized

  • Designed for Android 7.0+ (API 24+).
  • Uses native bitmap processing for visualization.

⚙️ Technologies Used

Technology Description
Android SDK Core Android app development
Java Main development language
ONNX Runtime Executes the YOLOv8 ONNX model
Bitmap/Canvas API For drawing detections on images


🚀 Setup & Installation

🔧 Prerequisites

  • Android Studio (latest stable)
  • Android device or emulator (API 24+)
  • yolov8n.onnx and labels.txt (in res/raw/)

📥 Installation Steps

git clone https://github.com/your-repo/onnx-yolov8-android.git
cd onnx-yolov8-android

🎯 Conclusion

This Android app showcases the integration of YOLOv8 object detection via ONNX Runtime. It is ideal for mobile AI projects and can serve as a foundation for more advanced applications, including real-time video analysis, robotics, and industrial automation.

This Readme file is generated by AI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages