https://github.com/gill-singh-a/eye-detection
A Python Program that uses OpenCV's haarcascade to Detect Eyes
https://github.com/gill-singh-a/eye-detection
computer-vision eye-detection face-detection opencv python python-3
Last synced: about 2 months ago
JSON representation
A Python Program that uses OpenCV's haarcascade to Detect Eyes
- Host: GitHub
- URL: https://github.com/gill-singh-a/eye-detection
- Owner: Gill-Singh-A
- Created: 2023-04-27T19:52:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-28T12:09:51.000Z (about 3 years ago)
- Last Synced: 2025-02-23T06:46:21.594Z (over 1 year ago)
- Topics: computer-vision, eye-detection, face-detection, opencv, python, python-3
- Language: Python
- Homepage:
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eye Detection
A Python Program that uses OpenCV's haarcascade to Detect Eyes
## Requirements
Language Used = Python3
Modules/Packages used:
* cv2
* datetime
* optparse
* time
* colorama
Install the dependencies:
```bash
pip install -r requirements.txt
```
## Input
It takes the following arguments from the command that is used to run the Python Program:
* '-i', "--image" : Path to the Image file (If not specified, will take frame from Camera Stream)
* '-f', "--cascade-file-face" : Path to cascade File for Face Detection
* 'e', "--cascade-file-eye" : Path to cascade File for Eye Detection
* '-s', "--scale-factor" : Scale Factor
* '-m', "--min-neighbors" : Minimum Neighbors
## Output
Image/Live Video Stream from the Camera with Detected Faces and Eyes.
On the Command Line Interface, it displays the number of Faces and Eyes Detected.
### Note
If the output was not what you expected, try to adjust the **scale-factor** and **min-neighbors** value.