This document discusses an automatic optical inspection (AOI) system that uses moment-based image recognition technology. It describes using central moments to determine object orientation for pattern matching. Experimental results showed the system could match patterns in 300-320ms with accuracy under 3 micrometers. The AOI system provides high repeatability of less than 3 micrometers and has been integrated into production lines for in-process quality control and statistical process control.