Skip to content

rehanshah17/OpenCV---Minority-Report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Minority Report Holographic Interface Emulator

This project replicates the futuristic hand gesture interface seen in the movie Minority Report, where the main character interacts with holographic windows using hand motions. Utilizing OpenCV, this emulator tracks hand movements and translates them into cursor movements on the screen, allowing users to navigate a virtual interface.

Table of Contents

Introduction

The project aims to create an interactive experience by utilizing computer vision techniques to recognize hand gestures. Users can move their hands to control a cursor and interact with virtual windows, mimicking the technology depicted in Minority Report.

Features

  • Real-time hand tracking
  • Gesture recognition for cursor movement
  • Support for multiple gestures
  • Interactive user interface
  • Visual feedback for gestures

Requirements

To run this project, you need:

  • Python 3.x
  • OpenCV
  • NumPy
  • (Optional) A webcam for hand tracking

You can install the required Python libraries using pip:

pip install opencv-python numpy

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/minority-report-emulator.git
    cd minority-report-emulator
  2. Install the necessary packages as mentioned above.

Usage

  1. Connect your webcam.

  2. Run the main Python script:

    python main.py
  3. Follow the on-screen instructions to calibrate and start using the interface.

How It Works

The project leverages OpenCV functionalities, including:

  • Erosion and Dilation: To preprocess the captured video frames for better contour detection.
  • Contour Detection: To identify the hand gestures by analyzing the shapes of detected contours.
  • MOG2 Background Subtraction: To separate the moving hand from the static background, allowing for better gesture recognition.
  • Bitwise Operations: To create masks for the tracked hand, enabling effective gesture recognition and cursor movement.

The combination of these techniques allows the program to accurately detect hand movements and translate them into cursor actions on the screen.

Contributing

Contributions are welcome! If you'd like to contribute to the project, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published