This is a computer vision application that opens a webcam and detects eyes using the Haar Cascade Algorithm, along with the Hough Transform for improved results. The project is implemented in Python and relies on the following libraries: Python, NumPy, and OpenCV-Python.
The Haar Cascade Algorithm is a machine learning object detection method used to identify objects in images or video. In this project, it is utilized to detect eyes.
The Hough Transform is a technique used for the detection of simple shapes, such as lines or circles, in an image. In this project, it is used to improve the accuracy of eye detection.
Haar cascades are a simpler and faster approach for object detection, while neural networks offer more flexibility and accuracy, but can be computationally expensive. The choice between the two approaches depends on the specific requirements of the task at hand, such as accuracy, speed, and available computing resources.
To run this project on your local machine, follow these steps:
- Create Virtual Environment
python -m venv <your-environment-name>
Activate
<your-environment-name>\Scripts\activate
- Install Dependencies
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/highplainscomputing/Eye_detection_CV.git
- Run the application.
python eye_detector.py
Provide instructions on how to use the application:
Launch the application, and it will open your webcam. The application will start detecting eyes using the Haar Cascade Algorithm and Hough Transform. Adjust parameters for better results (if applicable).