CN112995655A - Stray light inspection method and equipment - Google Patents

Stray light inspection method and equipment Download PDF

Info

Publication number
CN112995655A
CN112995655A CN202110239055.8A CN202110239055A CN112995655A CN 112995655 A CN112995655 A CN 112995655A CN 202110239055 A CN202110239055 A CN 202110239055A CN 112995655 A CN112995655 A CN 112995655A
Authority
CN
China
Prior art keywords
pixel
inspection image
camera module
pixel point
area
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
CN202110239055.8A
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.)
Shanghai Chuanggong Telecom Technology Co Ltd
Original Assignee
Shanghai Chuanggong Telecom 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 Shanghai Chuanggong Telecom Technology Co Ltd filed Critical Shanghai Chuanggong Telecom Technology Co Ltd
Priority to CN202110239055.8A priority Critical patent/CN112995655A/en
Publication of CN112995655A publication Critical patent/CN112995655A/en
Pending legal-status Critical Current

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)
  • Studio Devices (AREA)

Abstract

The invention discloses a stray light inspection method and equipment thereof, which are used for automatically carrying out stray light inspection on a camera module when the mobile phone camera module is produced so as to intercept the production of the camera module with serious stray light. The method comprises the following steps: controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image; screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value; and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.

Description

Stray light inspection method and equipment
Technical Field
The invention relates to the technical field of cameras, in particular to a stray light inspection method and equipment.
Background
The development of mobile phone cameras in recent years is more and more rapid, and all large mobile phone manufacturers pay more and more attention to the imaging quality. When the camera of the mobile phone shoots and images, under an ideal condition, light rays are completely reflected on the photosensitive chip through the refraction of the lens in the lens, and the displayed image has extremely high restoration degree. However, in practical situations, after the light enters the lens, there are different degrees of reflection in the lens, and when the reflected light enters the lens again, stray light is formed, so that so-called ghost image is generated, and the imaging quality is disturbed. There is also a case where flare is formed at the time of imaging if there is slight damage inside the lens or tolerance criteria are not met.
Stray light generally exists in each mobile phone camera, but the camera modules with serious stray light need to be produced and intercepted due to different severity degrees. At present, the production of most of domestic camera module plants can not carry out the veiling glare inspection to the camera module, and the minority can utilize the matrix light source to carry out the selective examination, and whether there is the veiling glare in the manual observation camera module, detection efficiency is low, and it is great to spill the risk.
Disclosure of Invention
The invention provides a stray light inspection method and equipment thereof, which are used for automatically carrying out stray light inspection on a camera module when the mobile phone camera module is produced so as to intercept the production of the camera module with serious stray light.
In a first aspect, a stray light inspection method provided in an embodiment of the present invention is applied to an inspection apparatus, and includes:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
The veiling glare inspection method provided by the embodiment can screen the inspection image with the pixel point meeting the preset condition from the inspection image shot by the camera module, and further judge the pixel area in the screened inspection image, so as to determine whether veiling glare exists in the image shot by the camera module, and intercept the production of the camera module with serious veiling glare.
As an optional implementation manner, the determining whether there is stray light in a test image captured by the camera module according to a pixel region formed by the screened at least one pixel point includes:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an alternative embodiment, the area of the pixel region is determined by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
determining a luminance value of the pixel region by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
As an optional implementation manner, before the screening out at least one pixel point from the inspection image, the method further includes:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
As an optional implementation, the screening at least one pixel point from the inspection image includes:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
In a second aspect, an embodiment of the present invention provides a stray light inspection apparatus, including: a processor and a memory, the memory for storing programs executable by the processor, the processor for reading programs in the memory and performing the steps of:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
As an alternative embodiment, the processor is configured to perform:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an alternative embodiment, the processor is configured to determine the area of the pixel region by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
the processor is provided with a processing unit configured to determine luminance values of the pixel regions by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
As an optional implementation manner, before the screening out at least one pixel point from the inspection image, the processor is further specifically configured to perform:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
As an alternative embodiment, the processor is configured to perform:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
In a third aspect, an embodiment of the present invention further provides a stray light detection apparatus, including:
the camera module is used for detecting the position of the camera module, and the shooting unit is used for controlling the camera module to be detected to shoot a test light source positioned opposite to the camera module to obtain at least one detection image;
the screening unit is used for screening at least one pixel point from the inspection image, and the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and the determining unit is used for determining whether the detected image shot by the camera module has stray light according to a pixel area formed by the screened at least one pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
As an optional implementation manner, the screening unit is specifically configured to:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an optional implementation manner, the screening unit is specifically configured to determine the area of the pixel region by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
determining a luminance value of the pixel region by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
As an optional implementation manner, before the screening of at least one pixel point from the inspection image, the screening unit is further specifically configured to:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
As an optional implementation manner, the screening unit is specifically configured to:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program is used to implement the steps of the method in the first aspect when the computer program is executed by a processor.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic view of a parasitic light according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an exemplary method for performing a flare check according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a positional relationship between a camera module and a test light source according to an embodiment of the present invention;
fig. 4 is a schematic view of a tooling fixture according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an inspection image according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a test image after negative processing according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a pixel region according to an embodiment of the invention;
fig. 8 is a flowchart illustrating an implementation of a stray light inspection method for a camera module according to an embodiment of the present invention;
fig. 9 is a flowchart of a method for inspecting stray light of a camera module according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an inspection image provided in accordance with an embodiment of the present invention;
FIG. 11 is a schematic view of a negative processed inspection image according to an embodiment of the present invention;
FIG. 12 is a schematic view of a stray light inspection apparatus according to an embodiment of the present invention;
fig. 13 is a schematic view of a veiling glare testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
At present, when a camera of a mobile phone shoots and images, under an ideal condition, light rays are completely reflected on a photosensitive chip through refraction of a lens in a lens, and the displayed image has extremely high restoration degree. However, in actual conditions, after the light enters the lens, there is a certain reflection in the lens, and when the reflected light enters the lens again, stray light is formed, so-called ghost image is generated, as shown in fig. 1, and the stray light interferes the imaging quality to some extent. In another case, the lens is slightly damaged or does not meet the tolerance standard, and stray light is also generated during imaging. In fig. 1, glare Flare and Ghost in the circle area are collectively referred to as parasitic light, and are caused by imaging of unwanted light other than the target object on the Sensor. Wherein Flare refers to stray light formed when light enters a Sensor photosensitive area from the non-effective diameter of the lens; ghost refers to stray light formed by light rays which are always reflected in an effective diameter when the light rays are transmitted in a lens and finally enter a Sensor photosensitive area.
In practical situations, along with the difference of the severity of the parasitic light existing in the mobile phone camera, the camera module with the more severe parasitic light needs to be produced and intercepted. The parasitic light problem appears once, basically says that this batch of camera module all has the parasitic light problem, and module end and complete machine end all leak the parasitic light easily to hardly trace back the light leak source, do not carry out the parasitic light inspection when most camera module factory produces at present domestically, the small part can carry out the selective examination, through lightening camera module face to light source, whether there is the parasitic light in manual observation, and is inefficient, and it is great to spill the risk, and is with higher costs.
Embodiment 1 and the embodiment of the invention provide a stray light inspection method for automatically inspecting a camera module, which is applied to inspection equipment and can automatically inspect whether the camera module has a stray light problem, thereby saving cost and improving inspection efficiency and accuracy. The inspection equipment in this embodiment may be equipment integrated with the camera module production equipment, or may be a separate set of inspection equipment, which is not limited in this embodiment.
As shown in fig. 2, a specific implementation flow of the veiling glare inspection method provided in this embodiment is as follows:
step 200, controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
the test light source in this embodiment includes, but is not limited to, a matrix light source. The camera module in this embodiment includes, but is not limited to, cameras with the same specifications, performances, and the like.
The positional relationship between the camera module and the test light source in this embodiment is as shown in fig. 3, and the camera module faces the test light source and is used for shooting the opposite test light source. Wherein, the test light source can be installed on the automatic machine.
The camera module that control is waited to inspect shoots to be located before the test light source of the opposite position of camera module, still includes:
and fixing the camera module to be inspected at the opposite position of the matrix light source through a tooling jig, and lightening the camera module.
In implementation, the schematic diagram of the tooling fixture is shown in fig. 4, the tooling fixture is used for fixing and lighting the camera module, and because the inspection image shot by the camera module cannot be directly transmitted to the PC and needs to be output after image processing conversion, the tooling fixture can also process the inspection image shot by the camera module.
As an optional implementation, after obtaining at least one inspection image, the following processing may be performed on the inspection image to improve the accuracy of the inspection, and the specific steps are as follows:
1) converting the inspection image into an inspection image having a color image format;
it should be noted that the inspection image captured by the photosensitive chip in the camera is an image without any processing and compensation, and is in RAW format, while the image in RAW format is an image without color and black and white, so in order to more accurately determine the difference between different pixel points, the inspection image needs to be subjected to format conversion and converted into an inspection image in color image format, for example, BMP (Bitmap) format is available.
In the implementation, the conversion may be an interpolation method, that is, the test image is subjected to an interpolation algorithm from the RAW format and then converted into the test image in the BMP format.
2) And carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
In implementation, the inspection image after negative film processing may be obtained by +255 for each pixel point in the inspection image after format conversion or by using 255- (each pixel point in the inspection image after format conversion).
The schematic diagram of the inspection image in this embodiment is shown in fig. 5, and the schematic diagram of the inspection image after negative processing is shown in fig. 6, where white spots in fig. 5 are veiling glare, and the veiling glare after negative processing can be shown by black spots in fig. 6. Since the inspection image directly captured by the camera module is easily affected by the ambient lighting environment, it is not easy to accurately screen out stray light spots in the inspection image, and white spots generated by the captured ambient environment may be screened out.
Step 201, screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
in the implementation, the inspection image may be understood as a pixel matrix including a plurality of pixel points, and since a plurality of pixel points having an adjacent position relationship with each pixel point in the inspection image include a plurality of pixel points, determining a difference between the luminance value of the at least one pixel point and the luminance value of the adjacent pixel point includes: and determining the difference between the brightness value of the at least one pixel point and the brightness value of at least one adjacent pixel point, if the difference between the brightness value of the at least one pixel point and the brightness value of the at least one adjacent pixel point is greater than a threshold value, executing the following steps, or if the difference between the brightness value of the at least one pixel point and the brightness values of all adjacent pixel points is greater than the threshold value, executing the following steps.
In implementation, at least one pixel point may be screened from the inspection image in a frequency domain filtering manner, and optionally, at least one pixel point may be screened from the inspection image in a shadow filtering rendering frequency domain filtering manner, which may be understood as performing line-by-line comparison on pixel points in each line in a pixel point matrix in the inspection image, performing comparison between pixel points in each line in a left-to-right sequence on the pixel points in each line, and screening at least one pixel point from the inspection image.
In the embodiment, the difference between the pixel points in the inspection image can be used, and the pixel points with large difference in the brightness value can be screened out by utilizing the high contrast of the brightness value.
Step 202, determining whether a detected image obtained by shooting by the camera module has veiling glare or not according to a pixel area formed by the screened at least one pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
As an optional implementation manner, an embodiment of the present invention provides one or more of the following manners, which determine whether a test image obtained by shooting with the camera module has veiling glare according to a pixel area formed by at least one screened pixel point, specifically includes:
in the method 1, if the area of the pixel region is larger than a first threshold value, it is determined that stray light exists in an inspection image obtained by shooting through the camera module.
And 2, if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
And 3, if the area of the pixel region is larger than a first threshold value and the brightness value of the pixel region is larger than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an alternative embodiment, the area of the pixel region is determined by:
and determining the area of the pixel region according to the number of pixel points contained in the pixel region.
As an alternative embodiment, the luminance value of the pixel region is determined by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
In implementation, a pixel region formed by at least one screened pixel point is shown in fig. 7, a black region included in a region of interest (ROI) of a square frame portion in the figure is the screened pixel region, and whether veiling glare exists in an inspection image obtained by shooting with the camera module can be determined by calculating the size of the ROI.
As shown in fig. 8, an embodiment of the present invention further provides a stray light inspection method for a camera module, and the specific implementation flow is as follows:
step 800, controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
step 801, converting the inspection image into an inspection image with a color image format;
step 802, carrying out negative film processing on the inspection image after format conversion to obtain an inspection image after negative film processing;
step 803, screening out at least one pixel point from the inspection image after negative film processing in a frequency domain filtering mode, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is greater than a threshold value;
step 804, determining the area of the pixel region according to the number of pixel points contained in the pixel region formed by the screened at least one pixel point; determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region;
step 805, if the area of the pixel region is greater than a first threshold and the brightness value of the pixel region is greater than a second threshold, determining that stray light exists in the inspection image obtained by the camera module.
As shown in fig. 9, an embodiment of the present invention further provides a specific stray light inspection method for a camera module, and the specific implementation flow is as follows:
step 900, lighting the camera module to be inspected through the tooling jig;
step 901, controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
for example, the specification of a light sensing chip Sensor of a camera in a camera module is S5K3L6XX03-FGX 9; as shown in fig. 10, the size of the inspection image was 4208 × 3120 pixels; the required specification of the glare pixel point is less than or equal to 14 pixels.
Step 902, converting the format of the inspection image from a RAW format to a BMP format;
step 903, carrying out negative film processing on the BMP format test image to obtain a negative film processed test image;
904, screening at least one pixel point from the inspection image after negative film processing in a frequency domain filtering mode;
in implementation, the (1, 1) pixel point can be traversed to perform negative film processing, and screening is performed. As shown in fig. 11, the inspection image of fig. 10 is subjected to a negative process.
Step 905, determining whether a detected image shot by the camera module has veiling glare or not according to the area and the brightness value of a pixel region formed by the screened at least one pixel point;
in implementation, the inspection image is subjected to full-image capture, the size of the pixel region ROI is calculated, the comparison is performed with the 14pixel specification, and if the size is larger than 14pixel, it is determined that stray light exists.
The table comparing the sizes of the pixel regions ROI and 14 pixels captured in fig. 11 above is as follows:
position Size Reference value Spec
(3702,3051) 2.22 14.00
(2876,3035) 7.14 14.00
(1612,3027) 18.11 14.00
(1069,2824) 12.37 14.00
(3066,2918) 33.08 14.00
(777,2905) 44.42 14.00
(8,2679) 3.72 14.00
(3362,2816) 41.73 14.00
(344,2687) 19.09 14.00
(874,2614) 16.59 14.00
(996,2520) 1.41 14.00
(3512,2549) 28.47 14.00
(1385,2399) 18.66 14.00
(93,2358) 25.04 14.00
(469,2285) 7.44 14.00
(141,2071) 12.67 14.00
(688,2083) 17.98 14.00
(226,2014) 3.17 14.00
(16,1965) 7.77 14.00
(514,1921) 31.99 14.00
(76,1844) 8.12 14.00
(3836,1892) 13.76 14.00
(348,1819) 11.97 14.00
(198,1791) 5.02 14.00
And 906, if the detected image shot by the camera module has veiling glare, stopping the camera module to continue producing.
Embodiment 2, based on the same inventive concept, the embodiment of the present invention further provides a parasitic light inspection apparatus, and since the apparatus is an apparatus in the method in the embodiment of the present invention, and the principle of the apparatus to solve the problem is similar to that of the method, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 12, the apparatus comprises a processor 1200 and a memory 1201, the memory being configured to store a program executable by the processor, the processor being configured to read the program from the memory and to perform the following steps:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
As an alternative embodiment, the processor is configured to perform:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an alternative embodiment, the processor is configured to determine the area of the pixel region by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
the processor is provided with a processing unit configured to determine luminance values of the pixel regions by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
As an optional implementation manner, before the screening out at least one pixel point from the inspection image, the processor is further specifically configured to perform:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
As an alternative embodiment, the processor is configured to perform:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
Embodiment 3, based on the same inventive concept, the embodiment of the present invention further provides a veiling glare inspection apparatus, and since the apparatus is the apparatus in the method in the embodiment of the present invention, and the principle of the apparatus to solve the problem is similar to that of the method, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 13, the apparatus includes:
the camera module to be inspected is used for shooting a test light source located at the position opposite to the camera module to obtain at least one inspection image;
the screening unit 1301 is configured to screen at least one pixel from the inspection image, where a difference between a luminance value of the at least one pixel and a luminance value of an adjacent pixel is greater than a threshold;
the determining unit 1302 is configured to determine whether there is stray light in an inspection image obtained by shooting with the camera module according to a pixel area formed by at least one screened pixel, where the pixel area is formed by one pixel or a plurality of pixels having an adjacent position relationship.
As an optional implementation manner, the screening unit is specifically configured to:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
As an optional implementation manner, the screening unit is specifically configured to determine the area of the pixel region by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
determining a luminance value of the pixel region by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
As an optional implementation manner, before the screening of at least one pixel point from the inspection image, the screening unit is further specifically configured to:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
As an optional implementation manner, the screening unit is specifically configured to:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the following steps:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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 stray light inspection method is characterized by being applied to an inspection device, and the method comprises the following steps:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
2. The method according to claim 1, wherein the determining whether the inspection image captured by the camera module has veiling glare according to the pixel region formed by the screened at least one pixel point comprises:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
3. The method of claim 2, wherein the area of the pixel region is determined by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
determining a luminance value of the pixel region by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
4. The method of claim 1, wherein prior to said screening at least one pixel point from said inspection image, further comprising:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
5. The method according to any one of claims 1 to 4, wherein the screening out at least one pixel point from the inspection image comprises:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
6. A veiling glare test apparatus, comprising a processor and a memory, said memory storing a program executable by said processor, said processor being configured to read the program in said memory and to perform the steps of:
controlling a camera module to be inspected to shoot a test light source located at the position opposite to the camera module to obtain at least one inspection image;
screening at least one pixel point from the inspection image, wherein the difference between the brightness value of the at least one pixel point and the brightness value of the adjacent pixel point is larger than a threshold value;
and determining whether the detected image shot by the camera module has stray light according to a pixel area formed by at least one screened pixel point, wherein the pixel area is formed on the basis of one pixel point or a plurality of pixel points with adjacent position relations.
7. The apparatus of claim 6, wherein the processor is configured to perform:
if the area of the pixel area is larger than a first threshold value, determining that stray light exists in a detected image shot by the camera module; and/or the presence of a gas in the gas,
and if the brightness value of the pixel area is greater than a second threshold value, determining that stray light exists in the inspection image shot by the camera module.
8. The device of claim 7, wherein the processor is configured to determine the area of the pixel region by:
determining the area of the pixel region according to the number of pixel points contained in the pixel region;
the processor is provided with a processing unit configured to determine luminance values of the pixel regions by:
and determining the brightness value of the pixel region according to the sum of the brightness values of the pixel points contained in the pixel region.
9. The apparatus of claim 6, wherein prior to the screening of the at least one pixel point from the inspection image, the processor is further specifically configured to perform:
converting the inspection image into an inspection image having a color image format;
and carrying out negative film processing on the inspection image after the format conversion to obtain the inspection image after the negative film processing.
10. The apparatus of any of claims 6 to 9, wherein the treatment device is configured to perform:
and screening out at least one pixel point from the inspection image in a frequency domain filtering mode.
CN202110239055.8A 2021-03-04 2021-03-04 Stray light inspection method and equipment Pending CN112995655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110239055.8A CN112995655A (en) 2021-03-04 2021-03-04 Stray light inspection method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110239055.8A CN112995655A (en) 2021-03-04 2021-03-04 Stray light inspection method and equipment

Publications (1)

Publication Number Publication Date
CN112995655A true CN112995655A (en) 2021-06-18

Family

ID=76352564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110239055.8A Pending CN112995655A (en) 2021-03-04 2021-03-04 Stray light inspection method and equipment

Country Status (1)

Country Link
CN (1) CN112995655A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092401A (en) * 2004-09-27 2006-04-06 M I L:Kk Article defect information detector and article defect information detection processing program
TW200900683A (en) * 2007-06-29 2009-01-01 Hon Hai Prec Ind Co Ltd Blot detecting system for image sensor and blot detecting method of the same
JP2009092472A (en) * 2007-10-05 2009-04-30 Panasonic Electric Works Co Ltd Visual inspection device
CN104135660A (en) * 2014-08-14 2014-11-05 广东光阵光电科技有限公司 Detection method of contamination of image pickup module and detection system
CN105005973A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Fast image denoising method and apparatus
CN105590079A (en) * 2015-12-23 2016-05-18 上海百傲科技股份有限公司 Method and device of continuously automatically reading transmission signals of multiple biochips
CN106534841A (en) * 2016-11-10 2017-03-22 宁波舜宇车载光学技术有限公司 Lens detection method and device
CN112218070A (en) * 2020-10-10 2021-01-12 Oppo(重庆)智能科技有限公司 Stray light detection method and device, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092401A (en) * 2004-09-27 2006-04-06 M I L:Kk Article defect information detector and article defect information detection processing program
TW200900683A (en) * 2007-06-29 2009-01-01 Hon Hai Prec Ind Co Ltd Blot detecting system for image sensor and blot detecting method of the same
JP2009092472A (en) * 2007-10-05 2009-04-30 Panasonic Electric Works Co Ltd Visual inspection device
CN104135660A (en) * 2014-08-14 2014-11-05 广东光阵光电科技有限公司 Detection method of contamination of image pickup module and detection system
CN105005973A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Fast image denoising method and apparatus
CN105590079A (en) * 2015-12-23 2016-05-18 上海百傲科技股份有限公司 Method and device of continuously automatically reading transmission signals of multiple biochips
CN106534841A (en) * 2016-11-10 2017-03-22 宁波舜宇车载光学技术有限公司 Lens detection method and device
CN112218070A (en) * 2020-10-10 2021-01-12 Oppo(重庆)智能科技有限公司 Stray light detection method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11587219B2 (en) Method and apparatus for detecting pixel defect of optical module, and device
US7783103B2 (en) Defect detecting device, image sensor device, image sensor module, image processing device, digital image quality tester, and defect detecting method
US8391585B2 (en) Defect detecting device, defect detecting method, image sensor device, image sensor module, defect detecting program, and computer-readable recording medium
JP5343054B2 (en) Gas leak detection device
CN105301810A (en) Screen defect detecting method and screen defect detecting device
JP2008180696A (en) Defect detector, defect detecting method, image sensor device, image sensor module, defect detecting program, and computer readable recording medium
JP2007309679A (en) Image inspection method, and image inspection device using it
CN109490311A (en) Backlight panel defect detecting system and method based on multi-angled shooting
WO2017071406A1 (en) Method and system for detecting pin of gold needle element
CN112033965A (en) 3D arc surface defect detection method based on differential image analysis
CN113034447B (en) Edge defect detection method and device
CN113781393B (en) Screen defect detection method, device, equipment and storage medium
US20140320638A1 (en) Electronic device and method for detecting surface flaw of sample
CN109801322A (en) A kind of light leak test method and device
CN113785181A (en) OLED screen point defect judgment method and device, storage medium and electronic equipment
CN111866501A (en) Camera module detection method and device, electronic equipment and medium
CN113554573B (en) Denoising parameter debugging method, denoising parameter debugging device, denoising parameter debugging equipment and computer readable storage medium
JP4610656B2 (en) Inspection device, inspection method, program, and recording medium
CN105229665A (en) To the enhancing analysis of the snakelike belt wear assessment based on image
JP2008232837A (en) Method and system of defective enhancement, and detection of defect, and program
CN112995655A (en) Stray light inspection method and equipment
CN112987356B (en) Liquid crystal display panel bottom foreign matter filtering device
US11574397B2 (en) Image processing device, image processing method, and computer readable recording medium
CN114689605A (en) Display screen detection method, device, equipment and medium based on machine vision
CN110458840B (en) Method, system and terminal equipment for reducing panel defect over-detection rate

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618