This repository contains code for performing object detection using OpenCV, a popular computer vision library. Object detection is a computer vision task that involves identifying and localizing objects within an image or video.
Before running the code, make sure you have the following prerequisites installed on your system:
- Python (3.6 or higher)
- OpenCV (4.5 or higher)
- NumPy (1.19 or higher)
You can install the required packages using pip
:
-
Clone the repository to your local machine:
-
Navigate to the project directory:
-
Run the object detection script:
For image:
For video:
The object detection script will use a pre-trained Haar Cascade classifier to detect objects in the specified image or video. Detected objects will be surrounded by rectangles in the output.
The project uses Haar Cascade classifiers for object detection. Haar Cascade classifiers are a type of machine learning-based approach for detecting objects in images or video. The project provides a pre-trained Haar Cascade classifier for car detection.
Contributions to this project are welcome. If you find any issues or have suggestions for improvements, feel free to create a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.