An ophthalmologic apparatus includes an integration unit which integrates a light emission amount of a light source illuminating an target eye, an integral capacitance changing unit which changes a value of an integral capacitance of the integration unit according to the light emission amount necessary for imaging the target eye, a comparison unit which compares a reference value with an integration value integrated by the integration unit using the value of the integral capacitance changed by the integral capacitance changing unit, and a light emission control unit which stops the light emission of the light source when the integration value exceeds the reference value as a result of the comparison by the comparison unit.