Skip to content
Real-time Detection & Tracking — ml research screenshot

ML Research · Personal project · 2025

Real-time Detection & Tracking

Real-time object detection and tracking with YOLOv8 and DeepSORT, optimised for edge devices.

Detection with identity-preserving tracking, exported to ONNX and compiled with TensorRT.

My role
Solo
Stack
Python · YOLOv8 · DeepSORT · OpenCV · ONNX · TensorRT
Microsoft-ecosystem fit

▸ ONNX export (portable to ONNX Runtime)

94%

Detection accuracy

[REPLACE]

FPS before → after TensorRT

Real-time Detection & Tracking — main screen

Source · Illustrative render of the overlay format. [REPLACE] with a real frame from your detection demo

01 — Problem

Accurate detectors run slowly on edge hardware, and fast detectors lose track of objects between frames.

02 — Approach

  1. 01

    YOLOv8 + DeepSORT for stable identities.

  2. 02

    ONNX export, TensorRT engines for edge devices.

03 — Architecture

System architecture

  1. S01

    Camera

  2. S02

    YOLOv8

  3. S03

    DeepSORT

  4. S04

    ONNX → TensorRT

  5. S05

    Overlay

04 — Engineering notes

From PyTorch to the edge

python
# Simplified export path
from ultralytics import YOLO

model = YOLO("runs/detect/train/weights/best.pt")
model.export(format="onnx", opset=12, simplify=True)   # portable: ONNX Runtime, TensorRT
model.export(format="engine", half=True)               # TensorRT FP16 engine for the device

DeepSORT runs on the detections each frame, so an object keeps its ID through brief occlusions.

Outcome

94% detection accuracy with consistent object identities across frames.

Next project

PINN · Seismic Response

PINN · Seismic Response — ml research screenshot