Patent ID: 8248475

Claim:
A camera module, comprising: an image capture unit configured for capturing at least one image of a subject, the image capture unit capturing the image of the subject in a light box, the brightness of the light box being adjustable, and the subject being white in color; an image analysis unit configured for analyzing the quality of the image to determine whether the camera module meets one or more preset requirements, the analysis including one or more grayscale values and chrominance of the captured image; and analyzing whether the captured image captured has presence of dead pixels, and anomaly patterns; and an output unit configured for outputting the one or more analysis results to determine whether the camera module meets preset capability requirements; wherein the image analysis unit comprises a grayscale analysis subunit pre-storing a plurality of grayscale ranges corresponding to various brightness conditions of the light box, the grayscale analysis subunit is configured for calculating a grayscale value of each pixel of the digital image, obtaining an average value of the grayscale values of all the pixels of the digital image and determining whether the average value falls into a corresponding grayscale range to generate an analysis result.