The accuracy of infrared temperature measurement is affected by emissivity of object surface, ambient temperature and measuring distance, which limit the application scope of infrared temperature measurement. Although there are more and more research on the influence of compensation model of environment factor on the accuracy of temperature measurement of measured objects, but few researchers use reference sources to realize the pixel level calibration method with high dynamic range, and propose a model based on ambient temperature compensation. Therefore, based on the theory of temperature measurement in blackbody and environment field, this study establishes the environmental compensation model of measured object, which overcomes the heterogeneity of the ambient temperature distribution, and finally verifies the correctness and feasibility of the theoretical model by the experimental method.