In view of the image nonuniformity of near infrared detectors, an on-chip nonuniformity correction method based on graphene near infrared detectors is proposed by using the principle of bias voltage compensation. The pixel correction circuit and DAC bias circuit are designed based on the pixel integration circuit of graphene detectors. Based on the integral circuit of graphene detector, dark pixel correction mosfet and photosensitive pixel correction mosfet are added to compensate the bias of dark pixel branch and photosensitive pixel branch respectively, and then the integral current and voltage is adjusted. At the same time, the DAC bias circuit is designed to generate correction bias voltage with the corresponding non-uniform correction code, and then the non-uniform single-point correction of specific pixels in graphene detector image is realized. Compared to the traditional nonuniformity correction method, the nonuniformity correction method can meet the nonuniformity correction requirements of specific pixels in graphene detector array. Moreover, this method is simpler, more easily to integrate on-chip, and does not need to increase the extra off-chip cost.