Patent ID: 8279426

Claim:
A testing device for testing a lens module, comprising: an image sensor secured to a robotic arm; a light source assembly optically aligned with the image sensor; a testing tray disposed between the light source assembly and the image sensor, the testing tray defining a plurality of through holes for receiving lens modules; a detecting device for detecting whether the lens module to be tested is tilted relative to the testing tray; the detecting device comprises an emitting device and a receiving device wherein the emitting device emits a ray along a direction substantially parallel to the testing tray, the receiving device is aligned with the emitting device for receiving the ray emitted from the emitting device when the receiving device fails to receive the ray emitted by the emitting device, a processor to control the robotic arm, wherein the robotic arm is configured for driving the image sensor to move up and down along a direction perpendicular to the testing tray; and wherein the processor controls the robotic arm to stop moving.