For the purpose of controlling the quality of forging process, a low-priced monochrome CCD is adopted to establish a vision measurement system to gauge the two-dimensional sizes of hot parts accurately in the paper. To derive the two dimensions of the forgings, comparison measurement method is employed. In the system, images are taken by the CCD through an infrared filter to filter out the strong light emitted from the forgings. And then average filtering and morphological filtering are used to reduce the effect of image noise. In order to improve the precision of geometry position, image distortion is corrected to reduce the optical distortion errors. After that, the edges in images are extracted at sub-pixel level to improve the location accuracy of geometry features. After calibration, the horizontal equivalent size of a pixel is 0.119mm, while the vertical 0.120mm. As be verified, the horizontal measurement uncertainty is 0.0069mm, while vertical 0.0063mm. Images of a 45 # steel cuboid at 1000 are captured and its dimensions are calculated through the procedure described in the paper, which have a difference less than 0.5mm compared with the theoretical values, indicating the precision and practicality of the method proposed in the paper.