With increasing complexity of the machining process, various types of tools are needed and to fulfill requirements of various processes. This normally requires a lot of time to compare and match tools for different processes before machining. In addition, there are many uncertainties caused by human such as tool may be installed in wrong position. In order to achieve high-quality and high-safety processing, visual modules are applied to capture images of the mounted tools. Via the techniques of AI (Artificial Intelligence) image recognition, pattern recognition algorithms and process analysis, the tool requirement codes and tool feature codes are being extracted from NC (Numerical Control) processing codes and tools on turret. To realize the intelligent production line of the process, the recognition and matching are automatically performed to replace the conventional process that requires one by one comparison by human.