Patent ID: 7974458

Claim:
A system for detecting defects in camera modules, comprising: an image acquiring module configured for acquiring an image from the camera modules; a region setting module configured for setting a comparison formula to calculate defect luminance, and for setting a standard value for the defect luminance; a region dividing module configured for dividing the image into a plurality of test regions, and for plotting out a plurality of reference regions corresponding to the test regions; a calculating module configured for selecting each of the test regions and confirming a reference region corresponding to the selected test region, for calculating averages of gray scale values of the selected test region and the confirmed reference region, and for calculating a defect luminance of the selected test region according to the calculated averages of gray scale values of the selected test region and the confirmed reference region by utilizing the comparison formula; and a luminance comparing module configured for comparing the calculated defect luminance with the standard value, for confirming whether the camera module is of satisfactory quality by testing whether the defect luminance of each test region is not larger than the standard value.