CN112995657B - Camera module testing method, device and system - Google Patents

Camera module testing method, device and system Download PDF

Info

Publication number
CN112995657B
CN112995657B CN202110323948.0A CN202110323948A CN112995657B CN 112995657 B CN112995657 B CN 112995657B CN 202110323948 A CN202110323948 A CN 202110323948A CN 112995657 B CN112995657 B CN 112995657B
Authority
CN
China
Prior art keywords
light source
environment
camera module
equipment
color temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110323948.0A
Other languages
Chinese (zh)
Other versions
CN112995657A (en
Inventor
周寅龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Original Assignee
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunshanqiu Titanium Photoelectric Technology Co Ltd filed Critical Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority to CN202110323948.0A priority Critical patent/CN112995657B/en
Publication of CN112995657A publication Critical patent/CN112995657A/en
Application granted granted Critical
Publication of CN112995657B publication Critical patent/CN112995657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method, a device and a system for testing a camera module, which are applied to the field of testing and used for establishing communication connection between control equipment and light source equipment; initiating a light source adjustment instruction to the light source device based on the communication connection, the light source adjustment instruction being used for controlling the light source device to provide a corresponding target light source environment; and acquiring a test image shot by the camera module to be tested in the target light source environment. The invention reduces the user operation when the camera module is subjected to crosstalk test and improves the crosstalk test efficiency.

Description

Camera module testing method, device and system
Technical Field
The invention belongs to the field of testing, and particularly relates to a method, a device and a system for testing a camera module.
Background
The camera module needs to carry out crosstalk (crosstalk) calibration before leaving the factory, in order to enable crosstalk calibration data to be more accurate, test images under different light source environments need to be shot by the camera module, and the test images are sent to an updated crosstalk tool to be tested to obtain calibration data. Therefore, there is a need to provide a light source device that can provide different light source environments.
However, in order to change the light source environment provided by the light source device, a plurality of different light source switches on the light source device need to be manually operated to switch the light source state of each light source on the light source device, and the specific color temperature values in different light source states are adjusted through the up key and the down key, and the color temperature value is changed by one unit every time the user presses the up key or the down key, so that the light source environment required by shooting the test image can be achieved only by pressing the color temperature value for hundreds of times or even hundreds of times, which results in complicated user operation and low test efficiency.
Disclosure of Invention
In view of the technical problems of complicated user operation and low testing efficiency in the prior art, embodiments of the present invention provide a method, an apparatus, and a system for testing a camera module.
In a first aspect, an embodiment of the present invention provides a method for testing a camera module, which is applied to a control device, and the method includes:
establishing communication connection between the control equipment and the light source equipment;
initiating a light source adjusting instruction to the light source equipment based on the communication connection, wherein the light source adjusting instruction is used for controlling the light source equipment to provide a target light source environment required by testing the camera module to be tested;
and acquiring a test image shot by the camera module to be tested in the target light source environment.
Optionally, the acquiring a test image shot by the to-be-tested camera module in the target light source environment includes:
sending a light source checking instruction to the light source equipment to acquire the current light source environment parameters of the light source equipment;
judging whether the light source environment currently provided by the light source equipment is the target light source environment or not according to the light source environment parameters, and if so, controlling the camera module to be tested to shoot;
and receiving and storing the test image shot by the camera module to be tested.
Optionally, the initiating a light source adjustment instruction to the light source device based on the communication connection includes:
and sequentially initiating different light source adjusting instructions for multiple times to the light source equipment based on the communication connection, wherein the initiated light source adjusting instruction for each time is used for controlling the light source equipment to provide a corresponding target light source environment.
Optionally, the sequentially initiating, to the light source device, multiple different light source adjustment instructions based on the communication connection includes:
initiating a first light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the first light source adjusting instruction so that the light source equipment provides a red light environment with a first color temperature value;
the test image that the module of making a video recording that obtains awaiting measuring was in shoot under the target light source environment includes:
detecting whether a light source environment currently provided by the light source equipment is a red light environment with the first color temperature value;
if so, acquiring a first test image shot by the camera module to be tested in the red light environment with the first color temperature value.
Optionally, the sequentially initiating multiple different light source adjustment instructions to the light source device based on the communication connection further includes:
initiating a second light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the second light source adjusting instruction so that the light source equipment provides a green light environment with a second color temperature value;
the module of making a video recording that obtains awaiting measuring is in the test image that target light source environment was shot still includes:
detecting whether the light source environment currently provided by the light source equipment is a green light environment of the second color temperature value;
and if so, acquiring a second test image shot by the camera module to be tested in the green light environment of the second color temperature value.
Optionally, the sequentially initiating multiple different light source adjustment instructions to the light source device based on the communication connection further includes:
initiating a third light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the third light source adjusting instruction so that the light source equipment provides a blue light environment with a third color temperature value;
the module of making a video recording that obtains awaiting measuring is in the test image of shooting under the target light source environment still includes:
detecting whether a light source environment currently provided by the light source equipment is a blue light environment of the third color temperature value;
and if so, acquiring a third test image shot by the to-be-tested camera module in the blue light environment of the third color temperature value.
Optionally, the sequentially initiating multiple different light source adjustment instructions to the light source device based on the communication connection further includes:
initiating a fourth light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the fourth light source adjusting instruction so that the light source equipment provides a white light environment with a fourth color temperature value;
the method comprises the steps of obtaining a test image shot by a camera module to be tested in the target light source environment, further comprising:
detecting whether a light source environment currently provided by the light source equipment is a white light environment with the fourth color temperature value;
and if so, acquiring a fourth test image shot by the camera module to be tested in the white light environment with the fourth color temperature value.
Optionally, after the obtaining of the test image shot by the camera module to be tested based on the target light source environment, the method further includes:
sending a plurality of test images shot under different target light source environments to a target crosstalk tool so that the target crosstalk tool can perform crosstalk calibration based on the plurality of test images to obtain crosstalk calibration data for the camera module to be tested.
Optionally, the establishing a communication connection between the control device and the light source device includes:
and establishing communication connection between the control equipment and the light source equipment based on preset communication related parameters.
In a second aspect, an embodiment of the present invention provides a camera module testing apparatus, disposed in a control device, where the apparatus includes:
a communication establishing unit for establishing a communication connection between the control device and a light source device;
the instruction sending unit is used for initiating a light source adjusting instruction to the light source equipment based on the communication connection, and the light source adjusting instruction is used for controlling the light source equipment to provide a target light source environment required by testing the camera module to be tested;
and the test image acquisition unit is used for acquiring a test image shot by the camera module to be tested in the target light source environment.
In a third aspect, an embodiment of the present invention provides a camera module testing system, including: the device comprises a control device and a light source device which is in communication connection with the control device;
the control device is used for initiating a light source adjusting instruction to the light source device;
the light source equipment is used for providing a target light source environment required by testing the camera module to be tested according to the light source adjusting instruction initiated by the control equipment;
the control equipment is further used for acquiring a test image shot by the camera module to be tested in the target light source environment.
In a fourth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to any one of the embodiments of the first aspect is implemented.
One or more embodiments provided by the embodiments of the present invention at least achieve the following technical effects or advantages:
the embodiment of the invention establishes communication connection between the control equipment and the light source equipment; initiating a light source adjusting instruction to the light source equipment based on the communication connection to control the light source equipment to provide a target light source environment required by testing the camera module to be tested; and acquiring a test image shot by the camera module to be tested in the target light source environment. Therefore, the manual operation of a light source switch and the press adjustment of the color temperature value of the light source equipment are not needed to be carried out before the test image is shot at every time, so that the frequent operation of the light source equipment in the test process by a user is avoided, the user operation during the crosstalk test of the camera module is reduced, and the crosstalk test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a system architecture for implementing a camera module testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for testing a camera module according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating an example of a method for testing a camera module according to an embodiment of the present invention;
FIG. 4 is a schematic view of an interface for operating a light source device according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a camera module testing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, a method for testing a camera module according to an embodiment of the present invention is implemented based on a system shown in fig. 1, where the system includes: the control device 1 and the light source device 2, the control device 1 and the light source device 2 establish communication connection. In some embodiments, the control device 1 may establish a communication connection with the light source device 2 through a serial communication manner. Specifically, the serial communication mode may be implemented by, but not limited to, nine signal lines: two data signal lines, a signal ground line and 6 control signal lines, wherein, realize that control device 1 sends the data of light source equipment 2 through the TxD data signal line, realize that control device 1 receives the data from light source equipment 2 through the RxD data signal line.
Specifically, the control device 1 may be a computer device, and the light source device 2 may provide various light source environments, such as: the light source device 2 can provide a red light environment, a blue light environment, a green light environment, a white light environment, and the like, and the color temperature values in different light source environments can also be changed by color temperature adjustment.
The camera module 3 to be tested establishes communication connection with the control device 1 through the test fixture, so that the control device 1 can control the camera module 3 to be tested to shoot test images and acquire the test images shot by the camera module 3 to be tested. The control device 1 is configured to initiate a light source adjustment instruction to the light source device 2; the light source equipment 2 is used for providing a target light source environment required by testing the camera module to be tested according to the light source adjusting instruction initiated by the control equipment 1; the control device 1 is further configured to obtain a test image shot by the camera module 3 to be tested in the target light source environment.
In a second aspect, an embodiment of the present invention provides a method for testing a camera module, which can be applied to the control device shown in fig. 1, and with reference to fig. 2, the method for testing a camera module provided in the embodiment of the present invention includes:
first, step S201 is performed to establish a communication connection between the control device and the light source device.
Specifically, in the present embodiment, the communication related parameters between the control device 1 and the light source device 2 are preset:
(1) bit/second (baud rate) used for defining data transmission rate, and data transmission abnormality can be caused by too high or too low data transmission rate;
(2) data bit (Data bit): 8 bits (ASCII 0 to 255);
(3) parity (Parity bit): is free of
(4) Stop bit (Stop bit): 1 bit, indicating the end of the transmission and providing the computer with the opportunity to correct the clock synchronization.
The control device and the light source device establish communication connection based on preset communication related parameters, and perform information interaction between the control device and the light source device in subsequent S202.
Specifically, before starting to test any camera module to be tested, a communication connection between the camera module to be tested and the control device needs to be established; and then, electrifying and lightening the camera module to be detected so as to enable the camera module to be detected to shoot. After the camera module is lightened, the process of automatically executing S202-S203 once can be triggered based on the starting operation executed by the user on the control equipment, so that each test image required by testing the camera module to be tested is automatically completed, and the user does not need to rely on any operation on the light source equipment and the camera module to be tested in the process of testing the camera module to be tested.
S202, initiating a light source adjusting instruction to the light source equipment based on the communication connection, wherein the light source adjusting instruction is used for controlling the light source equipment to provide a target light source environment required by testing the camera module to be tested.
It should be noted that the crosstalk test performed on the to-be-tested camera module requires multiple test images shot by the to-be-tested camera module in different target light source environments, and in some embodiments, multiple different light source adjustment instructions may be sequentially initiated to the light source device based on communication connection, where the light source adjustment instruction initiated each time is used to control the light source device to provide a corresponding target light source environment. Therefore, the control device can adjust the light source device to one target light source environment required for shooting one of the test images at one time by initiating the light source adjustment instruction for each time, and can change the light source environment provided by the light source device to a plurality of different target light source environments required by initiating different light source adjustment instructions for the light source device for a plurality of times in sequence. Therefore, the number of times of initiating the light source adjustment instruction corresponds to the number of test images taken and the type of target light source environment that needs to be provided, and the specific number of times is not limited herein.
In the embodiment of the invention, the light source adjusting instruction initiated by the control equipment each time represents the light source state and the color temperature value of the target light source environment which need to be provided, so that the light source equipment can be adjusted to the target light source environment at one time according to the light source adjusting instruction without any manual operation of a user on a light source switch and a color temperature adjusting button.
In specific implementation, light source adjustment instructions corresponding to different target light source environments need to be written in advance according to the required light source environments. More specifically, each light source adjustment instruction is configured correspondingly according to the sequence of different target light source environments required to be provided for shooting the test image. The configured plurality of light source adjustment instructions can be sequentially executed in order to change the last target light source environment provided by the light source device to the current target light source environment, and the process is sequentially carried out until the light source device provides the last target light source environment.
For example, 5 light source switches, namely Lamp1 to Lamp5, are arranged on the light source device, so as to correspondingly provide red light, green light, blue light, and Lamp4 and Lamp5 for synthesizing white light. If test images under four different target light source environments, namely a red light environment, a green light environment, a blue light environment and a white light environment, need to be acquired, corresponding four light source adjustment instructions are written in. Referring to table 1 below, the light source state, light source color and color temperature values represented by the respective light source adjustment instructions are as follows:
TABLE 1 light source adjustment Instructions
Figure BDA0002993853590000081
Of course, what kind of light source state and color temperature value each light source adjustment instruction represents depends on the preset, therefore, the form and the representation content of the light source adjustment instruction in table 1 above are merely for illustration, and it is fully possible to set the light source adjustment instruction in other forms and represent other light source state and color temperature values according to the actual needs in the specific implementation.
And S203, acquiring a test image shot by the camera module to be tested in the target light source environment.
In some embodiments, in order to improve the accuracy of the light source state and the color temperature value of the target light source environment provided by the light source device, and further avoid that the actual light source environment does not reach the required target light source environment due to an adjustment error of the color temperature value and/or the light source state, step S203 specifically includes:
s2031: sending a light source checking instruction to the light source equipment after the control equipment initiates a light source adjusting instruction to the light source equipment each time so as to modify the light source state and the color temperature value of the light source equipment, so as to obtain the current light source environment parameters of the light source equipment;
s2032: judging whether a light source environment currently provided by the light source equipment is a target light source environment or not according to the light source environment parameters, and if so, controlling the camera module to be tested to shoot a test image; if not, the test process of the camera module to be tested is terminated, and fault detection of the light source equipment and the control equipment is carried out, so that the fault which causes inaccuracy of the light source environment provided by the light source equipment is eliminated.
S2033: and receiving and storing a test image shot by the camera module to be tested.
In one embodiment, based on steps S202 to S203, four different light source environments, namely, a red light environment with a first color temperature value, a green light environment with a second color temperature value, a blue light environment with a third color temperature value, and a white light environment with a fourth color temperature value, may be sequentially provided, and four test images are correspondingly captured under the four provided light source environments. The following describes specific implementation processes of S202 to S203 with reference to fig. 3:
first, step 1 is performed: and initiating a first light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the first light source adjusting instruction so that the light source equipment provides a red light environment with a first color temperature value.
Specifically, the first color temperature value is 600K or other color temperature values determined according to actual test requirements. Referring to the example shown in FIG. 4: the light source state of the red light source (i.e., lamp 1) is changed to be on through the first light source adjustment instruction, and the light source states of the other light sources (Lamp 2-Lamp 5) are changed to be off. And the color temperature value of the red light source is modified to be 600K.
Then, step 2 is executed: whether the light source environment currently provided by the light source equipment is the red light environment with the first color temperature value is detected.
Specifically, in step 2, a light source checking instruction is initiated to the light source device to obtain current light source environment parameters of the light source device, where the obtained light source environment parameters include a current light source state and a color temperature value; if the light source environment parameter represents that the light source environment currently provided by the light source equipment has been successfully modified into the red light environment with the first color temperature value, executing the step 3; otherwise, terminating the test of the camera module to be tested.
And step 3: the control equipment obtains a first test image shot by the camera module to be tested in a red light environment with a first color temperature value. In step 3, the control device specifically controls the camera module to be tested to shoot by initiating a shooting instruction to the camera module to be tested, so as to obtain a first test image under the red light environment with the first color temperature value.
After step 3, step 4 is then performed: and initiating a second light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the second light source adjusting instruction so that the light source equipment provides a green light environment with a second color temperature value.
The second color temperature value is specifically 1200K or other color temperature values determined according to actual test requirements. Referring to the example shown in fig. 4: the light source status of the green light source (i.e., lamp 2) is changed to on by the second light source adjustment command, and the light source status of the remaining light sources (Lamp 1, and Lamp3 to Lamp 5) is changed to off. And, the color temperature value of the green light source is modified to be 1200K.
After step 4, step 5 is performed: and detecting whether the light source environment currently provided by the light source equipment is a green light environment with the second color temperature value.
Step 5, specifically, initiating a light source checking instruction to the light source device by the control device to obtain current light source environment parameters of the light source device, wherein the obtained light source environment parameters include a current light source state and a color temperature value; if the light source environment parameter represents that the light source environment currently provided by the light source equipment has been successfully modified into the green light environment with the second color temperature value, executing step 6; otherwise, terminating the test of the camera module to be tested.
Step 6: and acquiring a second test image shot by the camera module to be tested in the green light environment of the second color temperature value. Specifically, in step 6, the control device controls the to-be-tested camera module to shoot by initiating a shooting instruction to the to-be-tested camera module, so as to obtain a second test image in a green light environment with a second color temperature value.
And after the step 6, executing a step 7 of initiating a third light source adjusting instruction to the light source device, and controlling the light source device to change the light source state and the color temperature value according to the third light source adjusting instruction so that the light source device provides a blue light environment with a third color temperature value.
Specifically, the third color temperature value is 600K or other color temperature values determined according to actual test requirements. Referring to fig. 4, for example, the light source status of the blue light source (i.e., lamp 3) is changed to on by the third light source adjustment command, and the light source statuses of the remaining light sources (Lamp 1-Lamp 2, and Lamp 4-Lamp 5) are all off. And, the color temperature value of the blue light source is modified to be 600K.
After step 7, step 8 is performed: and detecting whether the light source environment currently provided by the light source equipment is a blue light environment with a third color temperature value.
Step 8, specifically, initiating a light source checking instruction to the light source equipment by the control equipment to acquire a current light source environment parameter of the light source equipment, wherein the acquired light source environment parameter comprises a current light source state and a color temperature numerical value; if the light source environment parameter represents that the light source environment currently provided by the light source equipment has been successfully modified into the blue light environment with the third color temperature value, executing step 9; otherwise, terminating the test of the camera module to be tested.
And 9, acquiring a third test image shot by the camera module to be tested in the blue light environment of the third color temperature value. Specifically, in step 9, the control device controls the to-be-tested camera module to shoot by initiating a shooting instruction to the to-be-tested camera module, so as to obtain a third test image in the blue light environment of the third color temperature value.
After the step 9, a step 10 of initiating a fourth light source adjustment instruction to the light source device, and controlling the light source device to change the light source state and the color temperature value according to the fourth light source adjustment instruction so that the light source device provides a white light environment with a fourth color temperature value is executed.
Specifically, the fourth color temperature value is 5100K or other color temperature values determined according to actual test requirements. Referring to fig. 4 for example, the light source states of the Lamp4 light source and the Lamp5 light source are changed to be on by the fourth light source adjustment command, and the light source states of the remaining light sources (Lamp 1 to Lamp 3) are all off. And, the color temperature value of the Lamp4 light source is 298K, and the color temperature value of the Lamp5 light source is 316K, so as to synthesize a white light environment with a color temperature value of 5100K.
After step 10 is performed, step 11 is continued: and detecting whether the light source environment currently provided by the light source equipment is a white light environment with a fourth color temperature value.
Step 11, specifically, initiating a light source inspection instruction to the light source device by the control device to obtain current light source environment parameters of the light source device, where the obtained light source environment parameters include a current light source state and a color temperature value; if the light source environment parameter represents that the light source environment currently provided by the light source equipment has been successfully modified into the white light environment with the fourth color temperature value, executing step 12; otherwise, terminating the test of the camera module to be tested.
And 12, acquiring a fourth test image shot by the camera module to be tested in a white light environment with a fourth color temperature value. Specifically, a shooting instruction is sent to the camera module to be tested by the control equipment, the camera module to be tested is controlled to shoot, and a fourth test image in a white light environment with a fourth color temperature value is obtained.
In specific implementation, the light source checking instruction initiated by the control device each time may be an instruction in the same form, for example, the light source checking instruction may be configured as "5A 06 07 01 03", and of course, may also be configured as an inspection instruction in different forms.
Further, after a test image shot by the camera module to be tested in the target light source environment is obtained, the test image is stored; and sending each test image to a target crosstalk tool according to a shooting sequence until the control equipment obtains each test image which is shot under different target light source environments and contains crosstalk correction requirements, so that the crosstalk tool carries out crosstalk calibration on the camera module to be tested by using the plurality of test images, and crosstalk calibration data for carrying out crosstalk calibration on the camera module to be tested is obtained.
And (3) completing the test of the current camera module to be tested after the process of the steps 1-12 is executed once, replacing the next camera module to be tested, electrifying and lightening the replaced camera module to be tested, and starting the test process of the next camera module to be tested based on the click operation of the user. Therefore, the user only needs to click once when replacing the module for each camera module to be tested, so that the user operation is reduced, and the testing efficiency is improved.
In a third aspect, based on the same inventive concept, an embodiment of the present invention provides a camera module testing apparatus, which is disposed on a control device, and shown in fig. 5, the apparatus includes:
a communication establishing unit 501, configured to establish a communication connection between the control device and the light source device;
an instruction sending unit 502, configured to initiate a light source adjustment instruction to the light source device based on the communication connection, where the light source adjustment instruction is used to control the light source device to provide a target light source environment required by testing the camera module to be tested;
the test image obtaining unit 503 is configured to obtain a test image shot by the camera module to be tested in the target light source environment.
For the details of the implementation of each functional unit of the camera module testing device, reference may be made to the foregoing embodiment of the camera module testing method, and for the sake of brevity of the description, further description is omitted here.
In a fourth aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, as shown in fig. 6, including a memory 604, a processor 602, and a computer program stored in the memory 604 and capable of running on the processor 602, where when the processor 402 executes the program, the method for testing a camera module described in the foregoing method embodiment is implemented, and for brevity of the description, details are not repeated here.
Where in fig. 6 a bus architecture (represented by bus 600) is shown, bus 600 may include any number of interconnected buses and bridges, and bus 600 links together various circuits including one or more processors, represented by processor 602, and memory, represented by memory 304. The bus 600 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 605 provides an interface between the bus 600 and the receiver 601 and transmitter 603. The receiver 601 and the transmitter 603 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 602 is responsible for managing the bus 600 and general processing, and the memory 604 may be used for storing data used by the processor 602 in performing operations.
The camera module testing method, the device and the system provided by the embodiment of the invention are realized by establishing communication connection between the control equipment and the light source equipment; initiating different light source adjusting instructions for multiple times to the light source equipment based on the communication connection, wherein the light source adjusting instruction initiated each time is used for controlling the light source equipment to provide a corresponding target light source environment; and acquiring a test image shot by the camera module to be tested in the target light source environment. Therefore, the operation of switching the light source on and off and the press adjustment of the color temperature value are not required to be carried out on the light source equipment before the test image is shot at every time, so that the frequent operation of the user on the light source equipment in the test process is avoided, the user operation during the crosstalk test on the camera module is reduced, and the crosstalk test efficiency is improved.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A camera module testing method is applied to control equipment and is characterized by comprising the following steps:
establishing communication connection between the control equipment and the light source equipment;
initiating a light source adjusting instruction to the light source equipment based on the communication connection, wherein the light source adjusting instruction is used for controlling the light source equipment to provide a target light source environment required by the test to-be-tested camera module, and the method comprises the following steps: sequentially executing a plurality of configured light source adjusting instructions according to the sequence so as to change the previous target light source environment provided by the light source equipment to the current target light source environment, and sequentially proceeding until the light source equipment provides the last target light source environment, wherein each light source adjusting instruction is correspondingly configured in advance according to the sequence of different target light source environments required to be provided for shooting a test image, and the light source adjusting instruction initiated each time represents the light source state and the color temperature value of the target light source environment required to be provided;
acquiring a test image shot by the camera module to be tested in the target light source environment and used for crosstalk calibration, wherein the test image comprises: sending a light source checking instruction to the light source equipment to acquire the current light source environment parameters of the light source equipment; judging whether the light source environment currently provided by the light source equipment is the target light source environment or not according to the light source environment parameters, and if so, controlling the camera module to be tested to shoot; and receiving and storing the test image shot by the camera module to be tested.
2. The method of claim 1, wherein said sequentially initiating a plurality of different light source adjustment instructions to the light source device based on the communication connection comprises:
initiating a first light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the first light source adjusting instruction so that the light source equipment provides a red light environment with a first color temperature value;
the test image that the module of making a video recording that obtains awaiting measuring was in shooting under the target light source environment includes:
detecting whether a light source environment currently provided by the light source equipment is a red light environment with the first color temperature value;
if so, acquiring a first test image shot by the camera module to be tested in the red light environment with the first color temperature value.
3. The method of claim 2, wherein the sequentially initiating a plurality of different light source adjustment instructions to the light source device based on the communication connection, further comprises:
initiating a second light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the second light source adjusting instruction so that the light source equipment provides a green light environment with a second color temperature value;
the module of making a video recording that obtains awaiting measuring is in the test image of shooting under the target light source environment still includes:
detecting whether a light source environment currently provided by the light source equipment is a green light environment of the second color temperature value;
and if so, acquiring a second test image shot by the camera module to be tested in the green light environment of the second color temperature value.
4. The method of claim 3, wherein the sequentially initiating a plurality of different light source adjustment instructions to the light source device based on the communication connection further comprises:
initiating a third light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the third light source adjusting instruction so that the light source equipment provides a blue light environment with a third color temperature value;
the module of making a video recording that obtains awaiting measuring is in the test image of shooting under the target light source environment still includes:
detecting whether a light source environment currently provided by the light source equipment is a blue light environment of the third color temperature value;
and if so, acquiring a third test image shot by the to-be-tested camera module in the blue light environment of the third color temperature value.
5. The method of claim 4, wherein the sequentially initiating a plurality of different light source adjustment instructions to the light source device based on the communication connection further comprises:
initiating a fourth light source adjusting instruction to the light source equipment, and controlling the light source equipment to change the light source state and the color temperature value according to the fourth light source adjusting instruction so that the light source equipment provides a white light environment with a fourth color temperature value;
the module of making a video recording that obtains awaiting measuring is in the test image that target light source environment was shot still includes:
detecting whether a light source environment currently provided by the light source equipment is a white light environment with the fourth color temperature value;
and if so, acquiring a fourth test image shot by the camera module to be tested in the white light environment with the fourth color temperature value.
6. The method according to any one of claims 1-5, wherein after the obtaining the test image captured by the camera module under test based on the target light source environment, the method further comprises:
and sending a plurality of test images shot under different target light source environments to a target crosstalk tool so as to enable the target crosstalk tool to carry out crosstalk calibration on the basis of the plurality of test images and obtain crosstalk calibration data for the camera module to be tested.
7. The method of claim 1, wherein the establishing a communication connection between a control device and a light source device comprises:
and establishing communication connection between the control equipment and the light source equipment based on preset communication related parameters.
8. The utility model provides a camera module testing arrangement, sets up in controlgear, its characterized in that, the device includes:
a communication establishing unit for establishing a communication connection between the control device and a light source device;
the instruction sending unit is used for initiating a light source adjustment instruction to the light source equipment based on the communication connection, the light source adjustment instruction is used for controlling the light source equipment to provide a target light source environment required by the test camera module to be tested, and the instruction sending unit comprises: sequentially executing a plurality of configured light source adjusting instructions according to the sequence so as to change the previous target light source environment provided by the light source equipment to the current target light source environment, and sequentially proceeding until the light source equipment provides the last target light source environment, wherein each light source adjusting instruction is correspondingly configured in advance according to the sequence of different target light source environments required to be provided for shooting a test image, and the light source adjusting instruction initiated each time represents the light source state and the color temperature value of the target light source environment required to be provided;
the test image acquisition unit is used for acquiring the test image which is shot by the camera module to be tested under the target light source environment and used for crosstalk calibration, and comprises: sending a light source checking instruction to the light source equipment to acquire the current light source environment parameters of the light source equipment; judging whether the light source environment currently provided by the light source equipment is the target light source environment or not according to the light source environment parameters, and if so, controlling the camera module to be tested to shoot; and receiving and storing the test image shot by the camera module to be tested.
9. A camera module test system, comprising: the device comprises a control device and a light source device which is in communication connection with the control device;
the control device is used for initiating a light source adjusting instruction to the light source device;
the light source equipment is used for providing a target light source environment required by the camera module to be tested according to the light source adjusting instruction initiated by the control equipment, and comprises the following components: sequentially executing a plurality of configured light source adjusting instructions according to the sequence so as to change the previous target light source environment provided by the light source equipment to the current target light source environment, and sequentially proceeding until the light source equipment provides the last target light source environment, wherein each light source adjusting instruction is correspondingly configured in advance according to the sequence of different target light source environments required to be provided for shooting a test image, and the light source adjusting instruction initiated each time represents the light source state and the color temperature value of the target light source environment required to be provided;
the control device is further configured to acquire a test image that is shot by the to-be-tested camera module in the target light source environment and used for crosstalk calibration, and includes: sending a light source checking instruction to the light source equipment to acquire the current light source environment parameters of the light source equipment; judging whether the light source environment currently provided by the light source equipment is the target light source environment or not according to the light source environment parameters, and if so, controlling the camera module to be tested to shoot; and receiving and storing the test image shot by the camera module to be tested.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1-7 when executing the program.
CN202110323948.0A 2021-03-26 2021-03-26 Camera module testing method, device and system Active CN112995657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110323948.0A CN112995657B (en) 2021-03-26 2021-03-26 Camera module testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110323948.0A CN112995657B (en) 2021-03-26 2021-03-26 Camera module testing method, device and system

Publications (2)

Publication Number Publication Date
CN112995657A CN112995657A (en) 2021-06-18
CN112995657B true CN112995657B (en) 2023-01-17

Family

ID=76333779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110323948.0A Active CN112995657B (en) 2021-03-26 2021-03-26 Camera module testing method, device and system

Country Status (1)

Country Link
CN (1) CN112995657B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473102A (en) * 2021-07-02 2021-10-01 上海酷芯微电子有限公司 Image automation debugging method, system, medium and equipment
CN114007061B (en) * 2021-10-13 2024-06-28 上海磐启微电子有限公司 Camera sensor debugging method and system
CN114697628B (en) * 2022-06-01 2022-09-06 龙旗电子(惠州)有限公司 Image acquisition method, apparatus, device, and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7043055B2 (en) * 2017-10-26 2022-03-29 株式会社カツラ・オプト・システムズ Inspection camera module adjustment device and its adjustment method
CN110505477A (en) * 2019-09-17 2019-11-26 普联技术有限公司 Double filter test methods, device, equipment and storage medium
CN112218070B (en) * 2020-10-10 2023-06-02 Oppo(重庆)智能科技有限公司 Stray light detection method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112995657A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995657B (en) Camera module testing method, device and system
CN105741810A (en) LED display screen control system and control method
CN102768816B (en) LED display automated correction method
US7346814B2 (en) System and method for controlling power sources of motherboards under test through networks
CN109658862B (en) LED box brightness and chrominance correction method and system
CN111063386A (en) DDR chip testing method and device
CN107395666A (en) A kind of method and device of operating numerical control lathe upgrading data packet
CN104536900A (en) Method and device for controlling mobile terminal
CN111786854A (en) Network card testing method and device, electronic equipment and readable storage medium
TW202018519A (en) Adapter with instrument control function, instrument control system and instrument control method applied thereto
CN108627195A (en) A kind of intelligent detecting method and intelligent checking system that memory body module is detected
CN104330685A (en) Connection check-up method and connection check-up device
CN115904849B (en) PCIE link signal testing method, system, computer equipment and medium
CN116774904A (en) Method and device for correcting data curve and nonvolatile storage medium
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN106210897B (en) set top box automatic test method based on serial port and system thereof
CN115767079A (en) Automatic testing method, system, device and storage medium for network camera
US20240176134A1 (en) Method and device for determining target parameters of polarizer, polarizer and debugging system
CN111537447A (en) Spectrum reconstruction method, printing quality evaluation method and system and electronic equipment
CN113358172B (en) Method, device, equipment and medium for automatically setting electromechanical synchronization of water meter
CN112783708B (en) DTU hardware testing method, terminal and computer readable storage medium
CN109752907B (en) System and method for optimizing white balance by automatic configuration of projection optical machine
CN112996206B (en) Stroboscopic lamp information acquisition method and device, stroboscopic lamp and light supplementing system
CN209356838U (en) A kind of system that projection light machine automatically configures optimization white balance
CN113408475A (en) Indication signal recognition method, indication signal recognition apparatus, and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant