An integrated method is proposed for the real-time measurement of filament lamp dimension based on machine vision (FLDMV). First, an online detection platform is built, and the image is acquired by telecentric lenses and charge-coupled diode (CCD). Second, a series of image processing, including filter, edge extraction, ellipse fitting, recursive minimum bounding rectangle, and curvature restrict estimation. Finally, the actual size of lamp is obtained by system calibration. The experimental analysis and comparison show that the maximum measurement error of this method is 0.21mm, which meets the requirements of filament lamp dimension measurement. The curvature restrict estimation based on ellipse fitting are proposed to guarantee the accuracy and real time. Compared with the traditional measurement method, our method has the advantages of fast measurement speed, high accuracy, and real time. It also can be widely used in other parts of the measurement.