← All work

Edge Pig Counting / Edge computer vision

Turn live video into a reliable count.

Detection, tracking, and region-crossing analytics running on NVIDIA Jetson devices.

Edge Pig CountingCounting regionTrack ATrack BJetsonInferenceDetect · track · count
Illustrative system diagram

YOLOv8 detections connect to ByteTrack identities across camera frames.

Illustration of the detection and counting workflow. It contains no footage from the deployment.

My roleComputer vision & edge engineering
WhenJan 2023 – Feb 2024
FocusEdge computer vision
Stack
  • NVIDIA Jetson
  • PyTorch
  • YOLOv8
  • TensorRT
  • ONNX
  • ByteTrack
  • OpenCV
  • Label Studio
  • FastAPI

Results & scope

Concurrent RTSP streams
2
CV project result
Multi-stream inference on NVIDIA Jetson in the January 2023–February 2024 project.
Method & conditions

Self-reported in my CV. Device model and input resolution are not specified.

Reported video-pipeline throughput
10 FPS
CV project result
Real-time inference in the two-stream Jetson pipeline.
Method & conditions

Self-reported in my CV. The source does not specify whether FPS is per stream or aggregate.

Runtime RAM footprint
2.5 GB
CV project result
Memory footprint reported for the edge inference pipeline.
Method & conditions

Self-reported in my CV. This is runtime memory, not model-file size.

How I approached the work

Engineering decisions.

Keep streams independent on limited hardware

Problem
Concurrent video streams must avoid blocking one another within Jetson memory, power, and thermal limits.
Decision
Isolated workers with multiprocessing queues, optimized YOLOv8 through TensorRT, and paired ByteTrack with region-crossing logic.
Result
Live counts across two RTSP streams with a FastAPI analytics interface and a CV-reported 2.5 GB RAM footprint.

The work.

I worked on a real-time pig-counting system for edge devices. The project combined dataset preparation, object detection, multi-object tracking, and stream processing, with attention to the memory, power, and thermal constraints of NVIDIA Jetson hardware.

My contribution

Detection and tracking

Built automated labeling and self-correction workflows with Label Studio, fine-tuned YOLOv8, and connected ByteTrack to counting logic for user-defined regions.

Independent video streams

Used multiprocessing and isolated message queues to keep RTSP streams and background tasks from blocking one another.

Inference on the edge

Converted models to TensorRT, tuned Jetson and OpenCV pipelines, and exposed analytics through FastAPI.

Historical DeepStream evaluation

Investigated NVIDIA DeepStream for future multi-stream inference and orchestration, benchmarking its tradeoffs against the custom pipeline.

Next projectJetson Parking System