An Autonomous way to detect and quantify Cataracts using Computer Vision


  • Reetu Jain Chief Mentor & Founder On My Own Technology Pvt Ltd


Cataract, Eye Disease, Blindness, Cataract detection, Image Processing, Eye Detection, Whiteness in the eye, Cloudiness in eyes


Our project is based on the detection of cataracts through python. A cataract is a clouding of the normally clear lens of the eye and the clouded vision caused by cataracts can increase difficulties in daily activities like reading and driving a car. Cataracts are the biggest cause of blindness in older people and data from the National Eye Institute (NEI) shows that over 65% of people of ages 80 and older are diagnosed with cataracts. However, there are limitations in the current method of cataract detection which include: Lack of clinical skill as cataracts are diagnosed by ophthalmologists by using slit-lamp bio microscopy and established clinical scales. This presents a barrier, specifically in rural areas where expert ophthalmologists are low in supply. Another limitation exists in the method used to calculate IOL power. Currently, the algorithm used for power calculation is unstandardized and at times, is at the surgeon's subjective judgment.

To address this problem, we have created a program through the use of python libraries which include OpenCV, NumPy, and FPDF. Our program takes the patient’s formalities and eye image as input and generates a pdf report, informing whether the patient is diagnosed with a cataract or not. If yes, the program also adds the percentage of the eye area covered by the cataract and the severity of the cataract to the pdf. The program creates colour masks, white for the cataract detection and other colors like brown and black, to account for different eye colours. We also added ranges to the color masks to check the intensity of the cataract. Using all the masks it detects the cataract and also extracts important information like whiteness, size of the cataract, and also its percentage in the eye. All this information helps us quantify the severity of the disease. The object report output of our solution can help doctors to easily detect the cataract and solve the issue.


Mueen AHMED Kk, Ritu Gupta, Brij Mohan Gupta,” Cataract research in India: A scientometric study of publications output, 2002-2011”, October 2014, International Journal of Medicine and Public Health, DOI:10.4103/2230-8598.144054,

Abraham AG, Condon NG, West Gower E, “The new epidemiology of cataract.”Ophthalmology Clinics of North America, 01 Dec 2006, 19(4):415-425, DOI: 10.1016/j.ohc.2006.07.008 PMID: 17067897

Goh, Jocelyn Hui Lin; Lim, Zhi Wei BSc(Hons); Fang, Xiaoling MD; Anees, Ayesha MSc; Nusinovici, Simon PhD; Rim, Tyler Hyungtaek MD, PhD; Cheng, Ching-Yu MD, PhD; Tham, Yih-Chung Ph.D.,” Artificial Intelligence for Cataract Detection and Management”, Asia-Pacific Journal of Ophthalmology: March-April 2020 - Volume 9 - Issue 2 - p 88-95,DOI: 10.1097/01.APO.0000656988.16221.04,

Ishitaa Jindal; Palak Gupta; Anmolika Goyal, “Cataract Detection using Digital Image Processing”,

Yunendah Nur Fuadah; Agung W. Setiawan; Tati L.R. Mengko; Budiman,”Mobile cataract detection using optimal combination of statistical texture analysis”

M. Manikandakumar, “Smart Cataract Detector: An Image Processing-Based Mobile Application for Cataract Detection” Source Title: Computational Intelligence and Soft Computing Applications in Healthcare Management Science, Copyright: © 2020 |Pages: 17,DOI: 10.4018/978-1-7998-2581-4.ch011,

Cataract -Surgery, Risks Factors, Symptoms-





How to Cite

Raghav Sharma, & Reetu Jain. (2022). An Autonomous way to detect and quantify Cataracts using Computer Vision. iJournals:International Journal of Software & Hardware Research in Engineering ISSN:2347-4890, 10(3). Retrieved from