Patent ID: 8289397

Claim:
A method for testing a digital camera module, the method comprising: selecting a standard image from a storage unit, and extracting a tricolor coefficient of each pixel of the standard image to form a reference array; extracting an edge of the standard image, and processing the edge of the standard image using binarization to obtain reference binary values; reading a digital image from the digital camera module, and extracting a tricolor coefficient of each pixel of the digital image to form a measurement array; extracting an edge of the digital image, and processing the edge of the digital image using binarization to obtain measurement binary values; comparing the measurement array with the reference array to find tricolor coefficient differences, and comparing the measurement binary values with the reference binary values to find binary values differences; comparing a count of the tricolor coefficient differences with a first acceptable value, and comparing a count of the binary values differences with a second acceptable value; determining quality of the digital camera module according to the comparison results, comprising: determining that the digital camera module has a good quality upon condition that the count of the tricolor coefficient differences is less than or equal to the first acceptable value and the count of the binary values differences is less than or equal to the second acceptable value; or determining that the digital camera module has a bad quality upon condition that the count of the tricolor coefficient differences is more than the first acceptable value and/or the count of the binary values differences is more than the second acceptable value; and generating a test report showing a test result of the digital camera module according to the determination, and displaying the test report on a display screen.