A comprehensive solution that integrates OpenCV functionalities, offering both face detection with Haar cascades and interactive drawing capabilities. The repository also encapsulates a warehouse parcel system management feature.
-
Face Detection:
- Employs OpenCV in conjunction with Haar cascades to pinpoint faces in photos.
-
Geometric Shape Illustration:
- Leverages OpenCV to sketch elementary geometric figures:
- Lines
- Rectangles
- Ellipses
- Circles
- Leverages OpenCV to sketch elementary geometric figures:
-
Parcel System Management:
- Python class to oversee warehouse parcel particulars.
- Capabilities comprise:
- Recording parcel specifics: number, weight, category.
- Visualization and archiving of parcel details in CSV format.
data
: Hosts sample imagery and associated CSV files.utils
: Contains auxiliary scripts: setup and shape-rendering functions.face_detection.py
: Core script for the facial detection feature.warehouse.py
: Script overseeing the warehouse parcel system.
Essential Components:
-
Python:
- Mandatory for the execution. Obtain from Python's home page.
-
OpenCV:
- A robust computer vision library.
-
csv module:
- Incorporated in Python's core library for CSV I/O operations.
-
Python Set Up:
- Download suitable variant from Python's home page.
- Follow the installation steps. Ensure Python is added to PATH.
-
Initiate a Virtual Environment (Suggested):
- Aids in preventing package version discrepancies.
python -m venv my_env
- Activate it:
- Windows:
.\my_env\Scripts\activate
- macOS & Linux:
source my_env/bin/activate
-
Incorporate OpenCV:
pip install opencv-python
-
CSV Set Up:
- Initialize
parcels.csv
by executinginitialize_csv.py
.
- Initialize
-
Image Placement:
- Deposit images intended for facial detection into
images/
.
- Deposit images intended for facial detection into
-
Script Execution:
- Execute desired scripts (
face_detection.py
,shape_drawing.py
,warehouse.py
).
- Execute desired scripts (
Remember to activate the virtual environment prior to executing scripts or introducing supplementary packages.
Script Execution Guidelines:
- Change to project directory.
- For facial detection, use
python face_detection.py
. - For shape rendering, input
python shape_drawing.py
. - For the warehouse system's parcel management, run
python warehouse.py
.