The invention relates to an AOI image scanning detection processing method. The method includes the following steps that: 1, an AOI device is provided with a CCD camera and performs line-by-line scanning on a detected circuit board through the CCD camera, so that a panoramic picture of the circuit board can be obtained; 2, the panoramic picture is subjected to vertical projection, so that the left shade, right shade and adhesion of a component can be eliminated; 3, the panoramic picture is subjected to horizontal projection, so that the front shade, back shade and adhesion of the component can be eliminated; 4, the panoramic picture is converted into a black-and-white picture through adopting a gray-scale critical value; and 5, binaryzation processing is performed on the black-and-white picture. According to the AOI image scanning detection processing method of the invention, shade and adhesion removal processing is performed on the picture before the picture is converted into the gray-scale picture, so that interferences and errors due to shades can be eliminated for the black-and-white picture after gray-scale conversion, and defect detection capability can be improved.