Designed in 2021 for the WAICY Competition 2021, I (Richard Barlian, age 11) created a program to detect cataracts. Cataracts has always been a problem in our community; my grandfather, grandmother, and lots of, particularly elderly people in our community, have been diagnosed with it. I used a CNN to create an Image Classifier, trained with data from people with Cataracts, and those who didn't.
- To run this program, you need to use Python 3.7.
- The code is developed and tested under Python 3.7.0 (https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe)
- After that, you need to install the necessary modules (modules are found in
requirements.txt
- you can install using this commandpip install -r requirements.txt
) - If you have a CUDA enabled GPU, you may have to use tensorflow-directml
cd
into the.\program\
directory- Run
python main.py
- Click
Detect
- It will ask you to find your file, keep in mind that it should be a
jpg
image - If you want to take a photo of your eyes, please take a picture of only one, without any accessories such as contact lenses or glasses, and use a higher resolution camera
- There are also images in
program\sample_images
if you want to use a sample image - Wait for a few seconds (it may take a bit long, depending on your device)
- It will show the image with the diagnosis
- This project is not in any way supposed to be an alternative to medical advice.
- This is not meant to be used as a replacement to medical advice, but as an extension.
- The purpose of this project is only to detect cataracts in its early stages, so you can seek medical advice sooner.