Object Detection, Extraction, and Motion Tracking in MATLAB

Role:

Undergraduate Software Engineer

Year:

2022

MATLAB
Computer Vision
Video Processing
Huggl 1.0
Huggl 1.0

Project Description

Experience the power of MATLAB and its advanced computer vision tools with this project that brings moving object detection and motion tracking to life. Designed to process video files, the tool detects and classifies objects—particularly people—in real time, then isolates each tracked object into its own video clip, presenting a striking visual output where the background is blacked out.

Overview

This MATLAB project automates the entire process of object detection and tracking. It begins by reading the input video and extracting individual frames, which are then converted from RGB to grayscale for effective processing. Leveraging a predefined detection algorithm, the tool identifies objects (e.g., people) and draws bounding boxes around them. A sophisticated tracking mechanism is then applied to follow each object throughout the video. Ultimately, it creates separate output videos featuring only one tracked object per file, with the remainder of the frame rendered in black, ensuring a clear, focused display.

Process

  1. Frame Extraction & Preprocessing:
    The project starts with reading the video and splitting it into individual frames. By converting these frames to grayscale, the detection algorithms can work more efficiently without the noise of color information.

  2. Object Detection:
    A robust, predefined algorithm is used to detect and classify people within the images. Detected objects are emphasized with bounding boxes to visually isolate them.

  3. Motion Tracking & Extraction:
    Once objects are detected, tracking algorithms follow their movement across the video sequence. For each tracked object, the tool extracts its motion and compiles a new video where only that object remains visible against a black background.

  4. Output Generation:
    The final result is a set of RGB videos—one for each tracked object. This modular output not only underscores the detected subjects but also serves as a versatile resource for further analysis or presentation.

Results

The project demonstrates a full-fledged workflow for dynamic video processing using MATLAB, showcasing skills in computer vision, algorithm integration, and video processing techniques. By transforming raw video data into focused clips of moving objects, it offers a powerful method for automated surveillance, activity monitoring, and multimedia analysis.

What I Gained

Developing this tool enhanced my proficiency with MATLAB’s image processing and computer vision capabilities. It also deepened my understanding of motion tracking algorithms and provided valuable experience in automating complex video analysis tasks—a key skill set in many real-world applications.

Other Projects

Let's Talk

Let's Talk

Let's Talk

© 2025. All rights Reserved.

Made by

Abdelrahman

© 2025. All rights Reserved.

Made by

Abdelrahman

© 2025. All rights Reserved.

Made by

Abdelrahman