This repository contains code for a real-time pupil size measurement system using PyTorch and OpenCV.
- Clone the repository:
git clone https://github.com/masonkadem/PupilSizeMeasurement.git
- Navigate to the repository:
cd PupilSizeMeasurement
- Install the necessary Python libraries:
pip install -r requirements.txt
To run the application, use the following command:
python pupil.py
The script will start the webcam and begin detecting the pupils in real-time.
You can also run the application in a Docker container.
- Further DevelopmentBuild the Docker image:
docker build -t pupil-size-measurement .
- Run the Docker container:
docker run --rm -p 5000:5000 --name=pupil-size-measurement pupil-size-measurement
This application can be extended and improved in several ways, such as improving the accuracy of the pupil size measurement, optimizing the performance for real-time detection, and incorporating more advanced pupil detection methods.