1. A method for detecting and capturing focused image, said method comprising acts of: obtaining plurality of images of a subject sequentially by changing focus and identifying a region of interest in each of the obtained images; calculating edge strength value for each of the identified regions; determining change in the edge strength value of the identified regions in consecutive images; determining a peak edge value from the edge strength values of the identified regions; upon determining the peak edge value, obtaining plurality of the images and identifying the region of interest till the edge strength value of one of the identified region reach a predefined threshold value; changing the focus and obtaining plurality of the images; and capturing an image when the edge strength value of the identified region in one of the obtained images reach a predefined value of the peak edge value.