Prerequisites - supriyak2003/eyecontrol GitHub Wiki
Prerequisites for the Eye-Controlled Mouse Project To set up and run this project, ensure you have the following prerequisites:
- Hardware Requirements Webcam: A functional webcam is essential for capturing real-time video input, as this project relies on live eye and face tracking.
- Software Requirements Operating System: Compatible with Windows, macOS, or Linux. Python: Python 3.7 or higher is recommended. Ensure Python is installed and added to your system’s PATH.
- Libraries and Dependencies Install the required Python libraries using pip. Key libraries include: OpenCV (opencv-python): For handling video capture and image processing. pip install opencv-python MediaPipe: For real-time face and eye landmark detection. pip install mediapipe PyAutoGUI: To control the mouse cursor and simulate clicks. pip install pyautogui NumPy (optional but recommended): For numerical operations, often installed with OpenCV. pip install numpy
- Environment Setup Ensure your Python environment is properly configured with the required libraries. Set up an IDE or text editor, such as VS Code or PyCharm, for writing and running the code. Test the webcam and adjust lighting to ensure the facial landmark detection works accurately.
- Permissions Grant camera access to Python applications, especially on macOS or Windows, where webcam permissions may need to be enabled manually.