This paper introduces the field programmable gate array (fpga) application in high-speed visual inspection system.ALTERA EP1K30QC208-2 are used in the system for system calculation and control of the core, to perform high-speed real-time visual detection algorithm, this paper adopts a yawning based on eye closure and to detect driver fatigue, the method of in YCr, Cb in the color space using gaussian model skin detection of human face area, in the face of a gray binarization figure using a priori knowledge of facial features geometry in rough positioning the human eye, eye contour are obtained by region growing and morphological operation and calculation of the closure of the eye;Best threshold detection lips when using lip color roughly locate the lips, on the basis of accurate positioning lips by face grey value characteristics, and then through the mouth level to determine whether a driver yawn;Based on the two characteristics of driving fatigue, experiments show that this system detection speed, excellent versatility, and can improve the detection accuracy.