The present disclosure envisages a handheld ophthalmic device (100). The handheld ophthalmic device (100) includes a capturing unit (102), a pre-processing module (104), a feature extraction module (106), a comparator (110), and an identifier (112). The capturing unit (102) captures at least one image of a retina of a user. The pre-processing module (104) generates a pre-processed image. The feature extraction module (106) determines a cup to disc ratio value, an optic disc and optic nerve head distance value, and an inferior and superior nasal temporal ratio value. The comparator (110) compares the determined values with the threshold cup to disc ratio value, the threshold optic disc and optic nerve head distance value and the threshold inferior and superior nasal temporal ratio value to generate a comparison data. The identifier (112) identifies whether the user is having glaucoma or not based on the comparison data.