Pyresearch

PYRESEARCH

  • AI Projects
  • Custom Solutions
    • Aerospace & Defense
    • Farming and Agriculture
    • Automotive
    • Banking and Financial Sector
    • Government
    • Health Services and Medical Care
    • Petroleum and Energy
    • Retail & Ecommerce
    • Safety and Security Solutions
    • Telecommunications and Connectivity
    • Transportation and Logistics
    • Manufacturing and Production
    • Utilities
  • Community
    • Blogs
    • AI Forum
    • Playlists
    • Support
  • About
1 item / $25
Get Started
Demo
Login / Register
Sign inCreate an Account

Lost your password?
Menu
Pyresearch
PYRESEARCH
“Fruit Quality Detection System Using Artificial Intelligence” has been added to your cart. View cart
-71%
Click to enlarge
Home Projects Person Counting Using Directional Tracking
Rickshaw Detection and Tracking System $70 Original price was: $70.$20Current price is: $20.
Back to products
Vehicle Lane Traffic Tracker and Counting System $100 Original price was: $100.$50Current price is: $50.

Person Counting Using Directional Tracking

$70 Original price was: $70.$20Current price is: $20.

A real-time person counting system using a YOLO12 custom model to track individuals as they cross a defined vertical line, determining whether they are entering (IN) or exiting (OUT) a monitored area.

Compare
Add to wishlist
SKU: Person Counting Using Directional Tracking Category: Projects Tags: #CrowdAnalytics, #FootfallAnalysis, #PeopleCounting, #SmartCity, AI, AI Crowd Management, Artificial Intelligence, Computer Vision, ComputerVision, Custom YOLOv8 Nano Model, CV, cvzone, Directional Object Monitoring, Edge Computing Vision System, EdgeAI, Human Movement Detection, in-out counter, ObjectTracking, OpenCV, Python, Python OpenCV Tracking, real-time object tracking, RealTimeDetection, SmartSurveillance, Surveillance Analytics, YOLO12, YOLO12 Person Detection, YOLOv8, YOLOv8 Person Detection
Share:
  • Description
  • Reviews (0)
Description

Project Description:

This project implements a real-time person counting system using a custom-trained YOLO12 model. It detects and tracks people in a video feed and intelligently determines whether individuals are entering (IN) or exiting (OUT) a defined area, based on their movement across a virtual vertical line.

Using bounding box tracking IDs, the system compares the historical and current X-coordinates of detected individuals to calculate directionality. If a person crosses the line from left to right, they are counted as IN; if they move from right to left, they are counted as OUT. The cvzone library is used for clean visual annotations like drawing bounding boxes, center points, and displaying the real-time IN/OUT counters.

This application is highly relevant for:

  • Crowd management

  • Smart building automation

  • Retail store analytics

  • Security and surveillance

  • Event entry/exit monitoring

 

Key Features:

  • Custom-trained YOLO12 model for detecting people

  • Real-time tracking using unique object IDs

  • Directional logic for counting IN and OUT movements

  • Visualization of bounding boxes, centers, and motion path

  • Scalable for deployment with video streams or IP cameras

  • Lightweight model (nano variant) for edge device compatibility

 

Tech Stack:

  • Python 3.x – Core programming language

  • OpenCV – Frame capture, preprocessing, visualization

  • Ultralytics YOLO12 – Object detection and tracking

  • cvzone – UI overlay for bounding boxes and text

  • CUDA (optional) – GPU acceleration for real-time performance

  • NumPy – Array and numerical processing

  • Custom Trained YOLO12n Model – Lightweight, fast detection of people

 

Use Cases:

  • Smart Office Entry Monitoring

  • Retail Foot Traffic Analytics

  • Event Venue Entry/Exit Tracking

  • School/University Attendance Analysis

  • Public Transport Station Crowd Flow Management

  • Security & Surveillance Systems

 

Project Workflow:

  1. Model Initialization
    Load a custom YOLO12 Nano (yolo12n.pt) model trained for person detection.

  2. Video Input Handling
    Read video frames from a file or webcam and resize for consistency.

  3. Detection & Tracking
    Use YOLO12’s track() method with persistence to maintain object IDs across frames.

  4. Determine Center Coordinates
    Calculate the center of each bounding box to monitor movement direction.

  5. IN/OUT Logic
    Track history of X-center positions:

    • If a person moves left → right across the vertical line: IN

    • If a person moves right → left: OUT

  6. Annotation & Display

    • Draw bounding boxes and center points

    • Display live IN and OUT counters using cvzone.putTextRect()

  7. Exit on ESC Key
    Gracefully stop the program with the ESC key.

 

Conclusion:

This project delivers a lightweight, real-time solution for people counting using advanced object detection and tracking techniques. By combining a custom YOLO12 model with intuitive directional logic, the system provides valuable insights for applications ranging from crowd control to building automation. It is scalable, accurate, and suitable for deployment on low-resource edge devices.

Reviews (0)

Reviews

There are no reviews yet.

Be the first to review “Person Counting Using Directional Tracking” Cancel reply

Your email address will not be published. Required fields are marked *

Related products

-75%
Add to cart
Quick view
Compare
Add to wishlist

Sign Language Converter

Projects
$100 Original price was: $100.$25Current price is: $25.
-60%
Add to cart
Quick view
Compare
Add to wishlist

Real-Time Gender-Based Ad Targeting Using Computer Vision

Projects
$50 Original price was: $50.$20Current price is: $20.
-60%
Add to cart
Quick view
Compare
Add to wishlist

Human Skin Disease with AI Disease Detection

Projects
$50 Original price was: $50.$20Current price is: $20.
-33%
Add to cart
Quick view
Compare
Add to wishlist

Creating Fake Thermal Images Using Python

Projects
$30 Original price was: $30.$20Current price is: $20.
-75%
Add to cart
Quick view
Compare
Add to wishlist

Fruit Quality Detection System Using Artificial Intelligence

Projects
$100 Original price was: $100.$25Current price is: $25.
-60%
Add to cart
Quick view
Compare
Add to wishlist

Smart OCR Application for Digital Reading

Projects
$50 Original price was: $50.$20Current price is: $20.
-60%
Add to cart
Quick view
Compare
Add to wishlist

Truth Detector

Projects
$50 Original price was: $50.$20Current price is: $20.
-80%
Add to cart
Quick view
Compare
Add to wishlist

Surveillance Master Real-Time Object Detection and Video Stream Manipulation Software

Projects
$100 Original price was: $100.$20Current price is: $20.
  • Pyresearch
  • Quick Links
    • About Us
    • Contact Us
    • Support
    • Invest
  • ECOSYSTEM
    • Notebooks
    • Pyresearch
    • Playlists
    • Annotation
  • Models
    • Yolo 11
    • YoloV10
    • YoloV9
    • YoloV8
    • Yolov7
    • YoloV5
    • Yolo World
    • All Models
  • Legal Stuff
    • Privacy Policy
    • Terms & Conditions

For Inquiries

contact@pyresearch.org
© Pyresearch | All rights reserved.
  • Home
  • AI Projects
  • Custom Solutions
    • Aerospace & Defense
    • Agriculture
    • Automotive
    • Healthcare & Medicine
    • Banking & Finance
    • Government
    • Manufacturing
    • Oil and Gas
    • Retail & Ecommerce
    • Safety & Security
    • Telecommunications
    • Transportation
    • Utilities
  • Playlists
  • Community
    • Blogs
    • AI Forum
    • Support
  • About
  • Wishlist
  • Compare
  • Login / Register
Shopping cart
close
Click to Copy
X

1 new item has been added to your cart

View Cart Continue Shopping Checkout
Fruit Quality Detection System Using Artificial Intelligence
Quantity: 1
Total $25

Frequently bought with Fruit Quality Detection System Using Artificial Intelligence


Vehicle Detection and Speed Estimation System $50 Original price was: $50.$20Current price is: $20.
View more
Diabetes Prediction System $80 Original price was: $80.$25Current price is: $25.
View more
Real Time Object Detection Using YOLOv10 and OpenCV $50 Original price was: $50.$20Current price is: $20.
View more
Smart Egg Detection & Counting System $100 Original price was: $100.$50Current price is: $50.
View more
Smart OCR Application for Digital Reading $50 Original price was: $50.$20Current price is: $20.
View more
drone speed detection $300 Original price was: $300.$250Current price is: $250.
View more
Bee and Butterfly Detection System $50 Original price was: $50.$20Current price is: $20.
View more
wastetracker $200 Original price was: $200.$150Current price is: $150.
View more
Shop
Wishlist
1 item Cart
My account
×

Hello!

Pyresearch Support Team here, Feel Free To Ask Any Question or Help You Need..

We Are Here For You 🙂
Thanks!

Pyresearch
Support Pyresearch

Empowering your research journey, Let's explore together!

× How can I help you?