近年來科技進步自動化生產是未來的潮流，但是目前的工件做誤差量測還是無法即時進行線上量測，因此如果能建立一套刀具檢測系統包含線上刀具規格辨識和刀具磨耗補償，將能夠幫助提早掌握刀具狀況，大幅提升加工效率。目前針對刀具磨耗量補償的方法，都是直接測量工件尺寸誤差，再輸入NC碼做補償，然而接觸式的人工量測需拆解工件做量測無法線上完成，雖然刀具尺寸有測量儀器但是無法在機台上即時線上量測，因此本研究希望能以非接觸式的量測，搭配機器視覺開發線上即時量測之技術，發展出一套完整的自動化刀具檢測系統安裝於CNC機台內部，使量測過程中不需拆卸刀具或工件，並可以將量測過程設定為加工步驟，達到自動量測尺寸、磨耗並補償的效果，實驗結果顯示尺寸量測數據與刀具規格的誤差皆在2%之內，磨耗補償後與磨耗補償前的精度改善平均在50%以上，可以有效改善工件因為刀具磨耗而產生精度誤差的問題。 In recent years, digital machines controlled by technological advances have replaced traditional machine tools, and automated production is the trend of the future. This study mainly focused on milling cutter condition montioring .Cutter wear online monitoring and cutter size measurement play an important role in automation of manufacturing processes. Worn tools can affect the quality of workpiece and can damage the machine.To avoid these problems, it is necessary to understand the size of the tool and wear of the tool. The condition of the milling cutter was monitored and extensive research was performed such as acoustic emission, tool temperature, cutting force and vibration characteristics. These studies claim that these process parameters in a milling environment can be excavated and associated with tool wear. Although these methods can be used during milling, the measured values do not directly imply the state of the milling cutter. Recent advances in image processing technology have led to the development of various visual sensors that can provide direct measurements of the state of the tool. Therefore, the lateral wear of the tool was measured using a CCD camera in this study.The experimental results show that the wear of the tool will affect the size of the workpiece, and the result of the compensation experiment greatly improves the accuracy of the workpiece.and the measurement results also meet the precision instrument.