CN115914616A - Light source point detection method, device, equipment and computer readable storage medium - Google Patents

Light source point detection method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115914616A
CN115914616A CN202211341818.0A CN202211341818A CN115914616A CN 115914616 A CN115914616 A CN 115914616A CN 202211341818 A CN202211341818 A CN 202211341818A CN 115914616 A CN115914616 A CN 115914616A
Authority
CN
China
Prior art keywords
light source
preset
output parameters
light
test result
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.)
Pending
Application number
CN202211341818.0A
Other languages
Chinese (zh)
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211341818.0A priority Critical patent/CN115914616A/en
Publication of CN115914616A publication Critical patent/CN115914616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application discloses a light source point detection method, a light source point detection device, light source point detection equipment and a computer readable storage medium, and belongs to the technical field of optical testing. The light source point detection method comprises the following steps: acquiring a test image of the light box; processing the test image to obtain a gray picture; generating a test result according to the gray level picture; judging whether the output parameters of the light source in the light box need to be adjusted or not according to the test result; if the output parameters of the light source need to be adjusted, adjusting the output parameters of the light source, and returning to the step of acquiring the test image of the light box after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement; and if the output parameters of the light source do not need to be adjusted, generating light source point inspection completion information. This application is through shooing test environment, and the homogeneity in order to obtain the light source is handled based on the image of shooing again, has saved the time of artifical point inspection, has avoided the error that manual operation caused to the detection efficiency of production line has been accelerated.

Description

Light source point detection method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of optical testing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for point inspection of a light source.
Background
Since a large number of electronic products in the market generally have a photographing function, a performance test of a camera also becomes an indispensable detection item for each type of electronic product, the camera detection requires an environment with constant and uniform color temperature and illumination, but the production line environment is relatively complex, the stability of a light source is challenged, and the requirement of a relatively stable light source device is high.
At present, the traditional camera test, especially the 3D (Three dimensional graphics) calibration of the camera, needs to manually adjust the light source, and manually perform spot inspection on the illuminance and color temperature of the light source by using an optical detection instrument every day to ensure that the environment of the light source is not changed, thereby ensuring the accuracy and consistency of the performance test of the camera.
However, this method requires a lot of manpower and time for spot inspection, and during the operation of a lot of production lines, the production capacity is seriously delayed, and the accuracy of the brightness spot inspection is affected due to the shielding of personnel.
Disclosure of Invention
The application mainly aims to provide a light source point inspection method, a light source point inspection device and a computer readable storage medium, aiming at automatically performing point inspection and automatic adjustment on a light source in a test environment and ensuring the stability of the test environment, so that the accuracy and consistency of performance detection of a camera are ensured, and a large amount of time consumed by manual adjustment and confirmation is saved.
In order to achieve the above object, the present application provides a light source point inspection method, where the light source point inspection method is used to perform light source point inspection on a light box, the light box includes at least one group of light sources, and the light box is used to perform performance inspection on a camera module to be inspected;
the light source point detection method comprises the following steps:
acquiring a test image of the light box;
processing the test image to obtain a gray picture;
generating a test result according to the gray level picture;
judging whether the output parameters of the light source need to be adjusted or not according to the test result;
if the output parameters of the light source need to be adjusted, adjusting the output parameters of the light source, and returning to the step of acquiring the test image of the light box after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement;
and if the output parameters of the light source do not need to be adjusted, generating light source point inspection completion information.
Optionally, a preset camera is arranged on the light box;
the step of obtaining a test image of the light box comprises:
sending an image shooting instruction to the preset camera;
and receiving a test image of the light box shot by the preset camera based on the image shooting instruction.
Optionally, the step of generating a test result according to the grayscale picture includes:
selecting a plurality of preset point positions in the gray level picture;
acquiring the gray value of each preset point location;
and comparing the gray value of each preset point with a preset specification range to generate a test result.
Optionally, the step of determining whether the output parameter of the light source needs to be adjusted according to the test result includes:
judging whether the output parameters of the light source meet the preset detection requirements or not according to the test result;
if the output parameters of the light source meet the preset detection requirements, the output parameters of the light source do not need to be adjusted;
and if the output parameters of the light source do not meet the preset detection requirements, the output parameters of the light source need to be adjusted.
Optionally, the step of determining whether the output parameter of the light source meets a preset detection requirement according to the test result includes:
if the gray value of a certain preset point position in the test result is not within a preset specification range, judging that the output parameter of the light source does not meet a preset detection requirement;
and if the gray values of all preset point positions in the test result are within a preset specification range, judging that the output parameters of the light source meet the preset detection requirements.
Optionally, the output parameters of the light source include: brightness and/or color temperature;
the step of adjusting the output parameter of the light source comprises:
positioning a corresponding light source based on a preset point position of which the gray value is not within a preset specification range;
the brightness and/or color temperature of the light source is adjusted.
Optionally, the light source is connected with a preset light source controller;
the step of adjusting the brightness and/or color temperature of the light source comprises:
and sending an adjusting instruction to the light source controller to adjust the brightness and/or the color temperature of the light source.
In addition, in order to achieve the above object, the present application further provides a light source spot inspection device, where the light source spot inspection device is configured to perform light source spot inspection on a light box, the light box includes at least one group of light sources, and the light box is configured to perform performance inspection on a camera module to be inspected;
the light source point inspection device comprises:
an acquisition module for acquiring a test image of the light box;
the processing module is used for carrying out data processing on the test image to obtain a gray picture;
the generating module is used for generating a test result according to the gray level picture;
the judging module is used for judging whether the output parameters of the light source need to be adjusted or not according to the test result;
the execution module is used for adjusting the output parameters of the light source when the output parameters of the light source need to be adjusted, and returning to execute the step of obtaining the test image of the light box after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement;
the execution module is further used for generating light source point inspection completion information when the output parameters of the light source do not need to be adjusted.
In addition, in order to achieve the above object, the present application further provides a light source spot inspection apparatus, including: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the light source point detection method as described above.
In addition, to achieve the above object, the present application further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the light source point detection method as described above.
The application provides a light source point inspection method, a light source point inspection device, a light source point inspection equipment and a computer readable storage medium, and overcomes the technical defect that a large amount of manpower and time are consumed for light source point inspection in the prior art. In the light source point inspection method, a test image of a light box is obtained firstly; carrying out data processing on the test image to obtain a test result; then judging whether the light source in the light box needs to be adjusted according to the test result; if the light source in the light box needs to be adjusted, performing iterative detection on the adjusted light box until the light source in the light box does not need to be adjusted; and if the light source in the light box does not need to be adjusted, generating light source point inspection completion information.
From this, this application is through using an industrial camera to shoot test environment, reuse grey scale algorithm to handle the homogeneity in order to calculate the light source to the image of shooting, and adjust the light source according to the test result, thereby reach the stability of light source, compare with traditional approach, this application makes camera's test system's point examine succinctly, fast, accurate, the time of artifical point examining has been saved, the error that manual operation caused has been avoided, thereby the detection efficiency of production line has been accelerated, the test uniformity of production line has been guaranteed, the shipment quality of camera class product has been ensured, the light source point that can be used to camera test system in batches is examined and is debugged, the point is examined efficiently.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 a part of the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a light source spot inspection method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an application scenario of a light source point inspection method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a gray scale image related to a light source point inspection method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a light source spot inspection device according to an embodiment of the present disclosure;
fig. 5 is a schematic hardware structure diagram of a light source spot inspection apparatus according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the embodiments of the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the embodiments of the present application with unnecessary detail.
It should be noted that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different from that in the flowcharts. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
It should also be appreciated that reference throughout the specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Since a large number of electronic products in the market generally have a photographing function, a performance test of a camera also becomes an indispensable detection item for each type of electronic product, the camera detection requires an environment with constant and uniform color temperature and illumination, but the production line environment is relatively complex, the stability of a light source is challenged, and the requirement of a relatively stable light source device is high.
At present, the traditional camera test, especially the 3D (Three dimensional graphics) calibration of the camera, needs to manually adjust the light source, and manually perform spot inspection on the illuminance and color temperature of the light source by using an optical detection instrument every day to ensure that the environment of the light source is not changed, thereby ensuring the accuracy and consistency of the performance test of the camera.
However, this method requires a lot of manpower and time for spot inspection, and during the operation of a lot of production lines, the production capacity is seriously delayed, and the accuracy of the brightness spot inspection is affected due to the shielding of personnel.
Based on this, the embodiment of the application provides a light source point inspection method, a light source point inspection device and a computer readable storage medium, which overcome the technical defect that a large amount of manpower and time are consumed for light source point inspection in the prior art. The embodiment of the application shoots a test environment by using an industrial camera, and then processes shot images to calculate the uniformity of the light source by using a gray level algorithm, and adjusts the light source according to a test result, thereby achieving the stability of the light source.
The method, the apparatus, the device and the computer readable storage medium for light source point detection provided in the embodiments of the present application are specifically described in the following embodiments, and first, the method for light source point detection in the embodiments of the present application is described.
The embodiment of the application provides a light source point inspection method, and referring to fig. 1, fig. 1 is a schematic flow diagram of the light source point inspection method provided in an embodiment of the application, the light source point inspection method can be applied to light source point inspection equipment and is used for performing light source point inspection on an optical box, the optical box comprises at least one group of light sources, and the optical box is used for performing performance inspection on a camera module to be inspected; as shown in fig. 1, the light source point inspection method provided by the present embodiment includes steps S10 to S50.
Step S10, acquiring a test image of the light box;
it should be noted that, the executing main body in this embodiment is a light source pointing device, the light source pointing device may be a Personal Computer (PC), the light box is a test environment for placing and detecting the performance of the camera module to be detected, for convenience of understanding, an application scene schematic diagram shown in fig. 2 may be referred to, in fig. 2, a left side device is the light box, one side of the light box is open, the material of the remaining five surfaces (corresponding to reference numeral 3) may be PMMA (polymethyl methacrylate), or may be a diffuser, each surface of which has a checkerboard-format test chart (corresponding to reference numeral 2), wherein the top and the other three sides of the light box are provided with light sources (corresponding to reference numeral 5), each light source is connected to a light source controller (corresponding to reference numeral 6) on the right side of the light box, the camera module to be detected (corresponding to reference numeral 4) may be placed at the bottom of the light box, the top of the light box is provided with an industrial camera (corresponding to reference numeral 1), and in this embodiment, the data processing device (corresponding to reference numeral 7) obtains a test image of the light box through the industrial camera module.
In some possible embodiments, a preset camera is arranged on the light box;
the step S10 may specifically include:
step S11, sending an image shooting instruction to the preset camera;
it can be understood that before the performance of the camera module to be tested needs to be tested, it needs to be ensured that the testing environment, i.e. the light source in the light box, is set correctly, and at this time, the data processing PC can send an image shooting instruction to the preset industrial camera arranged on the light box.
And S12, receiving a test image of the light box shot by the preset camera based on the image shooting instruction.
It will be appreciated that the industrial camera, upon receiving the image capture command, will capture the light box and send the captured image to the data processing PC.
Step S20, carrying out data processing on the test image to obtain a gray picture;
in this embodiment, after receiving the light box picture, the data processing PC invokes a gray scale algorithm to perform gray scale processing on the light box picture to obtain a corresponding gray scale picture.
Illustratively, the grayscale algorithm may be Gray = (Red + Green + Blue)/3.
S30, generating a test result according to the gray level picture;
it should be noted that after the grayscale image is obtained, the data processing PC selects some point locations in the grayscale image and extracts the grayscale values of the point locations, and the grayscale values of the point locations are compared with the upper and lower limits of the preset grayscale value specification, so as to obtain the test result.
In some possible embodiments, the step S30 includes:
s31, selecting a plurality of preset point positions in the gray-scale picture;
in this embodiment, some point locations having a relatively large correlation with the output parameter of the light source may be selected as standard points for determining whether the output parameter of the light source meets the detection requirement, so that, after the grayscale picture is obtained based on the test image of the light box, whether the output parameter of each light source in the light box meets the detection requirement may be determined by selecting these preset point locations in the grayscale picture.
Step S32, obtaining the gray value of each preset point;
step S33, comparing the gray value of each preset point with a preset specification range to generate a test result.
In this embodiment, after a plurality of preset point locations are captured on a grayscale image, the grayscale value of each preset point location is read, and after the grayscale value of each preset point location is read, the grayscale value of each preset point location is compared with a preset specification range, so as to determine whether the grayscale value of each preset point location is within the preset specification range, where the preset specification range includes a lower specification limit and an upper specification limit, for example, the lower specification limit is set to 45, the upper specification limit is set to 50, and if the grayscale value of a preset point location is between 45 and 50, the preset point location is considered to be within the preset specification range.
Exemplarily, the test result generation rule in this embodiment is as follows: if the gray value of the preset point location is within the preset specification range, the gray value is recorded as 1, if the gray value of the preset point location is not within the preset specification range, the gray value of the preset point location is recorded as 0, the final test result can be a group of number sequence consisting of 1 and 0, and if 10 preset point locations are selected, wherein the gray values of the 7 th and 8 th preset point locations are not within the preset specification range, the generated test result is 1110011.
S40, judging whether the output parameters of the light source need to be adjusted or not according to the test result;
in this embodiment, the determination rule may be set to: if the preset point locations with the gray values exceeding the specification range exist in the gray-scale image, the output parameters of the light source in the light box are considered to need to be adjusted, and by combining the embodiment, if the point locations exceeding the specification range exist in the test result, the preset detection requirements are not met, the output parameters of the light source need to be adjusted at the moment, and if the point locations exceeding the specification range do not exist in the test result, the detection requirements are met, and the output parameters of the light source do not need to be adjusted.
In some possible embodiments, the step S40 includes:
step S41, judging whether the light source setting in the light box meets the preset detection requirement or not according to the test result;
it can be understood that the purpose of adjusting the light source in the light box is to ensure the stability of the test environment, thereby ensuring the detection accuracy and detection efficiency in the subsequent detection of the camera to be detected, and avoiding the need of performing point detection and adjustment on the light source in the process of the camera test.
Step S42, if the light source setting in the light box meets the preset detection requirement, the light source in the light box does not need to be adjusted;
it will be appreciated that when it is concluded from the test results that the light source settings in the light box meet the preset detection requirements, there is no need to readjust the light sources in the light box.
Step S43, if the light source setting in the light box does not meet the preset detection requirement, the light source in the light box needs to be adjusted.
It can be understood that when the conclusion obtained according to the test result is that the light source setting in the light box does not meet the preset detection requirement, the light source in the light box needs to be adjusted according to the test result so as to enable the test environment to tend to be stable.
In some possible embodiments, the step S41 includes:
step S411, if the gray value of a certain preset point position in the test result is not within a preset specification range, judging that the light source setting in the light box does not meet the preset detection requirement;
step S412, if the gray values of all preset point locations in the test result are within the preset specification range, it is determined that the light source setting in the optical box meets the preset detection requirement.
For example, the present embodiment can be understood by referring to fig. 3, fig. 3 is a schematic diagram of a grayscale image related to the present embodiment, taking 13 point locations provided in fig. 3 as an example, the data processing PC analyzes the test image, captures points on the test image, reads grayscale values of the point locations, and determines whether the grayscale values are within the specification range, the tested grayscale value data and corresponding specification upper limit and specification lower limit may refer to table 1, as seen from table 1, the test result is that the point locations 10, 11, and 12 are out of the specification range, it is obvious that the light source setting in the light box does not meet the preset detection requirement at this time, and if there is no point location out of the specification range in the test result, it is considered that the light source setting in the light box meets the preset detection requirement.
TABLE 1
Point location Gray value of Upper limit of specification Lower limit of specification
1 45 50 45
2 48 50 45
3 50 50 45
4 46 50 45
5 45 50 45
6 47 50 45
7 44 50 45
8 48 50 45
9 49 50 45
10 51 50 45
11 53 50 45
12 52 50 45
13 50 50 45
Step S50, if the output parameters of the light source need to be adjusted, the output parameters of the light source are adjusted, and the step of obtaining the test image of the light box is returned to be executed after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement;
it should be noted that, in this embodiment, serial port communication has been established between the data processing PC and the light source controller, if the output parameter of the light source needs to be adjusted, the adjusted output parameter is written into the light source needing to be adjusted through the light source controller to adjust the light source, after the adjustment is completed, the industrial camera is controlled to take a picture again to analyze the adjusted image gray value, until the gray value of each preset point in the image is within the specification range, the output parameter of the light source in the light box is considered to have met the preset detection requirement, and the configuration information of the current output parameter of the light source in the light box is uploaded to the data storage system, which is considered to complete automatic point detection and adjustment of each light source in the light box.
In some possible embodiments, the output parameters of the light source include: brightness and/or color temperature; the step of adjusting the output parameter of the light source in step S50 may specifically include:
s51, positioning a corresponding light source based on a preset point position of which the gray value is not within a preset specification range;
step S52, adjusting the brightness and/or color temperature of the light source.
It should be understood that when the light sources in the light box need to be adjusted, not all the light sources need to be adjusted, but only the light source corresponding to the preset point out of the specification range in the gray scale map needs to be selected for adjustment, and when the light source is adjusted, only the brightness, only the color temperature, and also the brightness and the color temperature of the light source may be adjusted, which is not limited in this embodiment.
In some possible embodiments, the light source is connected with a preset light source controller; the step S52 includes: and sending an adjusting instruction to a light source controller corresponding to the light source to adjust the brightness and/or the color temperature of the light source.
It should be understood that the data processing PC cannot directly change the parameter configuration of each light source in the light box, but needs to send an adjustment instruction to the light source controller connected to the light source, so that the light source controller adjusts the brightness and/or color temperature of the corresponding light source according to the adjustment instruction.
And step S60, if the light source in the light box does not need to be adjusted, light source point inspection completion information is generated.
It can be understood that if the light source in the light box does not need to be adjusted, it indicates that the current light source configuration meets the standard for detecting the camera to be detected, the current light source configuration can be directly used as the configuration during detection, and meanwhile, light source spot detection completion information is generated and output to prompt an operator that the light source in the light box meets the preset detection requirement.
The embodiment provides a light source point inspection method, which overcomes the technical defect that a large amount of manpower and time are required to be consumed for light source point inspection in the prior art. The embodiment shoots a test environment by using an industrial camera, processes shot images by using a gray algorithm to calculate the uniformity of a light source, and adjusts the light source according to a test result, thereby achieving the stability of the light source.
In addition, an embodiment of the present application further provides a light source point inspection device, referring to fig. 4, and fig. 4 is a schematic structural diagram of the light source point inspection device provided in an embodiment of the present application, as shown in fig. 4, in the embodiment, the light source point inspection device is configured to perform light source point inspection on an optical box, where the optical box includes at least one group of light sources, and the optical box is configured to perform performance inspection on a camera module to be inspected; the light source point inspection device comprises: the system comprises an acquisition module 100, a processing module 200, a judgment module 300 and an execution module 400.
An obtaining module 100, wherein the obtaining module 100 is configured to obtain a test image of the light box;
the processing module 200 is used for performing data processing on the test image to obtain a gray picture;
a generating module 300, wherein the generating module 300 is configured to generate a test result according to the grayscale picture;
a judging module 400, wherein the judging module 400 is configured to judge whether the output parameter of the light source needs to be adjusted according to the test result;
the execution module 500 is configured to adjust the output parameter of the light source when the output parameter of the light source needs to be adjusted, and return to the step of obtaining the test image of the light box after the adjustment is completed until the latest test result indicates that the output parameter of the light source meets a preset detection requirement;
the executing module 500 is further configured to generate light source spot inspection completion information when the output parameter of the light source does not need to be adjusted.
In some possible embodiments, a preset camera is arranged on the light box; the obtaining module 100 is further configured to send an image shooting instruction to the preset camera;
and receiving a test image of the light box shot by the preset camera based on the image shooting instruction.
In some possible embodiments, the generating module 300 is further configured to select a plurality of preset point locations in the grayscale picture;
acquiring the gray value of each preset point location;
and comparing the gray value of each preset point with a preset specification range to generate a test result.
In some possible embodiments, the determining module 400 is further configured to determine whether the output parameter of the light source meets a preset detection requirement according to the test result;
if the output parameters of the light source meet the preset detection requirements, the output parameters of the light source do not need to be adjusted;
and if the output parameters of the light source do not meet the preset detection requirements, the output parameters of the light source need to be adjusted.
In some possible embodiments, the determining module 400 is further configured to determine that the output parameter of the light source does not meet a preset detection requirement if the gray-level value of a predetermined point in the test result is not within a predetermined specification range;
and if the gray values of all preset point positions in the test result are within a preset specification range, judging that the output parameters of the light source meet the preset detection requirements.
In some possible embodiments, the executing module 500 is further configured to position the corresponding light source based on a preset point position with a gray value out of a preset specification range;
the brightness and/or color temperature of the light source is adjusted.
In some possible embodiments, the execution module 500 is further configured to send an adjustment instruction to the light source controller to adjust the brightness and/or the color temperature of the light source.
The light source point inspection device provided by the present embodiment and the light source point inspection method provided by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the present embodiment can be referred to any of the above embodiments, and the present embodiment has the same beneficial effects as the execution of the light source point inspection method.
In addition, an embodiment of the present application further provides a light source spot inspection apparatus, where the light source spot inspection method applied to the light source spot inspection apparatus may be executed by a light source spot inspection device, and the light source spot inspection device may be implemented in a software and/or hardware manner and integrated in the light source spot inspection apparatus. The light source point inspection equipment can be mobile equipment such as an industrial personal computer, a PC (personal computer), a mobile phone, a notebook computer and a tablet personal computer which can communicate with a network side.
Referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of a light source spot inspection apparatus according to an embodiment of the present application. As shown in fig. 5, the light source spot inspection apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the configuration shown in fig. 5 does not constitute a limitation of the light source pointing device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 5, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a computer program.
In the light source spot inspection apparatus shown in fig. 5, the network interface 1004 is mainly used for data communication with other apparatuses; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in this embodiment may be provided in a light source inspection apparatus, which calls a computer program stored in the memory 1005 through the processor 1001 and performs the following operations:
acquiring a test image of the light box;
carrying out data processing on the test image to obtain a gray picture;
generating a test result according to the gray level picture;
judging whether the output parameters of the light source need to be adjusted or not according to the test result;
if the output parameters of the light source need to be adjusted, adjusting the output parameters of the light source, and returning to the step of acquiring the test image of the light box after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement;
and if the output parameters of the light source do not need to be adjusted, generating light source point inspection completion information.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
sending an image shooting instruction to the preset camera;
and receiving a test image of the light box shot by the preset camera based on the image shooting instruction.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
selecting a plurality of preset point positions in the gray level picture;
acquiring a gray value of each preset point location;
and comparing the gray value of each preset point with a preset specification range to generate a test result.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
judging whether the output parameters of the light source meet the preset detection requirements or not according to the test result;
if the output parameters of the light source meet the preset detection requirements, the output parameters of the light source do not need to be adjusted;
and if the output parameters of the light source do not meet the preset detection requirements, the output parameters of the light source need to be adjusted.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
if the gray value of a certain preset point position in the test result is not within a preset specification range, judging that the output parameter of the light source does not meet a preset detection requirement;
and if the gray values of all preset point positions in the test result are within a preset specification range, judging that the output parameters of the light source meet the preset detection requirements.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
positioning a corresponding light source based on a preset point position of which the gray value is not within a preset specification range;
the brightness and/or color temperature of the light source is adjusted.
Further, the processor 1001 may call the computer program stored in the memory 1005, and also perform the following operations:
and sending an adjusting instruction to the light source controller to adjust the brightness and/or the color temperature of the light source.
The light source spot inspection device proposed by the present embodiment and the light source spot inspection method applied to the light source spot inspection device proposed by the above embodiments belong to the same inventive concept, and technical details that are not described in detail in the present embodiment can be referred to any of the above embodiments, and the present embodiment has the same beneficial effects as performing the light source spot inspection method.
In addition, the embodiment of the present application further provides a computer-readable storage medium, which is applied to a computer and can be a non-volatile computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the light source point inspection method according to any of the embodiments described above.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood, however, that the invention is not limited to those precise embodiments, and that various other modifications and substitutions may be affected therein by one skilled in the art without departing from the scope of the invention.

Claims (10)

1. A light source point inspection method is characterized in that the light source point inspection method is used for performing light source point inspection on a light box, the light box comprises at least one group of light sources, and the light box is used for performing performance inspection on a camera module to be inspected;
the light source point detection method comprises the following steps:
acquiring a test image of the light box;
processing the test image to obtain a gray picture;
generating a test result according to the gray level picture;
judging whether the output parameters of the light source need to be adjusted or not according to the test result;
if the output parameters of the light source need to be adjusted, adjusting the output parameters of the light source, and returning to the step of acquiring the test image of the light box after the adjustment is finished until the latest test result shows that the output parameters of the light source meet the preset detection requirement;
and if the output parameters of the light source do not need to be adjusted, generating light source point inspection completion information.
2. The light source spot inspection method according to claim 1, wherein a preset camera is disposed on the light box;
the step of obtaining a test image of the light box comprises:
sending an image shooting instruction to the preset camera;
and receiving a test image of the light box shot by the preset camera based on the image shooting instruction.
3. The method for point inspection of a light source as claimed in claim 1, wherein the step of generating a test result from the gray scale picture comprises:
selecting a plurality of preset point positions in the gray-scale picture;
acquiring a gray value of each preset point location;
and comparing the gray value of each preset point with a preset specification range to generate a test result.
4. The method for point inspection of light sources as claimed in claim 1, wherein the step of determining whether the output parameters of the light sources need to be adjusted according to the test results comprises:
judging whether the output parameters of the light source meet the preset detection requirements or not according to the test result;
if the output parameters of the light source meet the preset detection requirements, the output parameters of the light source do not need to be adjusted;
and if the output parameters of the light source do not meet the preset detection requirements, the output parameters of the light source need to be adjusted.
5. The method for spot inspection of a light source according to claim 4, wherein said step of determining whether the output parameter of the light source meets a predetermined inspection requirement according to the test result comprises:
if the gray value of a certain preset point position in the test result is not within a preset specification range, judging that the output parameter of the light source does not meet a preset detection requirement;
and if the gray values of all preset point positions in the test result are within a preset specification range, judging that the output parameters of the light source meet the preset detection requirements.
6. The light source spot inspection method of claim 1 wherein the output parameters of the light source comprise: brightness and/or color temperature;
the step of adjusting the output parameter of the light source comprises:
positioning a corresponding light source based on a preset point position of which the gray value is not within a preset specification range;
the brightness and/or color temperature of the light source is adjusted.
7. The light source spot inspection method of claim 6 wherein the light source is connected to a predetermined light source controller;
the step of adjusting the brightness and/or color temperature of the light source comprises:
and sending an adjusting instruction to the light source controller to adjust the brightness and/or the color temperature of the light source.
8. The light source point inspection device is characterized in that the light source point inspection device is used for carrying out light source point inspection on a light box, the light box comprises at least one group of light sources, and the light box is used for carrying out performance inspection on a camera module to be inspected;
the light source point inspection device comprises:
an acquisition module for acquiring a test image of the light box;
the processing module is used for carrying out data processing on the test image to obtain a gray picture;
the generating module is used for generating a test result according to the gray level picture;
the judging module is used for judging whether the output parameters of the light source need to be adjusted or not according to the test result;
the execution module is used for adjusting the output parameters of the light source when the output parameters of the light source need to be adjusted, and returning to the step of acquiring the test image of the light box after the adjustment is finished until the latest test result indicates that the output parameters of the light source meet the preset detection requirement;
the execution module is further used for generating light source point inspection completion information when the output parameters of the light source do not need to be adjusted.
9. A light source spot inspection apparatus, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, performs the steps of the light source point detection method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the light source point detection method according to any one of claims 1 to 7.
CN202211341818.0A 2022-10-28 2022-10-28 Light source point detection method, device, equipment and computer readable storage medium Pending CN115914616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211341818.0A CN115914616A (en) 2022-10-28 2022-10-28 Light source point detection method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211341818.0A CN115914616A (en) 2022-10-28 2022-10-28 Light source point detection method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115914616A true CN115914616A (en) 2023-04-04

Family

ID=86492177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211341818.0A Pending CN115914616A (en) 2022-10-28 2022-10-28 Light source point detection method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115914616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615484A (en) * 2024-01-24 2024-02-27 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium
CN117615484B (en) * 2024-01-24 2024-05-03 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615484A (en) * 2024-01-24 2024-02-27 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium
CN117615484B (en) * 2024-01-24 2024-05-03 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN111788476B (en) Method for inspecting component mounting state, printed circuit board inspection device, and computer-readable recording medium
CN112505056A (en) Defect detection method and device
CN110987938B (en) Automatic visual detection method and device for display screen
CN113674164A (en) Sample color correction method, sample color correction device, electronic device, and medium
JP7039640B2 (en) Systems and methods for evaluating symbols
CN110784659A (en) Exposure control method and device and storage medium
TWI526683B (en) Method of setting parameters for common setting between optical inspection units
CN115550633A (en) Camera parameter calibration test system
US10520424B2 (en) Adaptive method for a light source for inspecting an article
CN115914616A (en) Light source point detection method, device, equipment and computer readable storage medium
CN111917986A (en) Image processing method, medium thereof, and electronic device
CN105612740A (en) Image processing method and device
CN111629201A (en) Debugging method, device, equipment and medium for camera module
CN108781280B (en) Test method, test device and terminal
CN105704467A (en) White balance adjustment method and device for large-screen LCM image
CN116256366A (en) Chip defect detection method, detection system and storage medium
CN112040138B (en) Stereoscopic light source system, image pickup method, image pickup device, storage medium, and electronic apparatus
CN111225196A (en) Focusing test method and device
CN115379200A (en) Test method and device, electronic equipment and readable storage medium
CN115452325A (en) Optical module ghost detection method, detection device and medium
JP2015232478A (en) Inspection device, inspection method, and program
CN113473112A (en) Region-of-interest determining method, photographing control method, device, equipment and medium
KR200386330Y1 (en) System for testing a electronic scales using vision system
CN112165616A (en) Camera module testing method and device, electronic equipment and storage medium
CN115900835B (en) Detection method and system for basic parameters of power inspection robot

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