CN115452325B - Detection method, detection device and medium for optical module ghost - Google Patents
Detection method, detection device and medium for optical module ghost Download PDFInfo
- Publication number
- CN115452325B CN115452325B CN202211060588.0A CN202211060588A CN115452325B CN 115452325 B CN115452325 B CN 115452325B CN 202211060588 A CN202211060588 A CN 202211060588A CN 115452325 B CN115452325 B CN 115452325B
- Authority
- CN
- China
- Prior art keywords
- gray scale
- ghost
- optical module
- detection line
- scale value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 124
- 230000003287 optical effect Effects 0.000 title claims abstract description 121
- 238000012360 testing method Methods 0.000 claims abstract description 52
- 238000009826 distribution Methods 0.000 claims abstract description 20
- 230000007246 mechanism Effects 0.000 claims abstract description 18
- 238000000034 method Methods 0.000 claims description 31
- 230000001276 controlling effect Effects 0.000 claims description 22
- 238000003860 storage Methods 0.000 claims description 19
- 238000003705 background correction Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 6
- 230000001105 regulatory effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 235000012771 pancakes Nutrition 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 4
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M11/00—Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
- G01M11/02—Testing optical properties
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M11/00—Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
- G01M11/02—Testing optical properties
- G01M11/0207—Details of measuring devices
Landscapes
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The application discloses a detection method, a detection device and a medium for optical module ghosting, which adopt a test mechanism for detection, wherein the test mechanism comprises a camera, and an optical module to be detected is placed on the test mechanism; the detection method comprises the following steps: under the condition that the optical axis of the adjusting camera coincides with the optical axis of the optical module to be tested, controlling the optical module to be tested to play a test picture, and controlling the camera to take a picture of the test picture; the test picture comprises a black base picture and a white pattern positioned on the black base picture; acquiring a geometric center of the white pattern, radiating the geometric center serving as a starting point to the outline of the white pattern, and acquiring a plurality of detection lines; acquiring gray scale values of pixels contained on a detection line; and acquiring the distribution position of the ghosts on the detection line and the gray scale value of the ghosts according to the gray scale value of the pixels contained on the detection line.
Description
Technical Field
The application relates to the technical field of optical product detection, in particular to a detection method, a detection device and a medium for optical module ghost.
Background
In the imaging optical system, main light rays emitted by an object follow geometrical optical rules, and a corresponding image is formed on an image plane or a designated plane, which is called a main image. Stray light tends to also exist in the imaging optical system, opposite to the main image; these stray light is mostly caused by non-ideal factors such as multiple reflections at the lens interface, lens defect scattering, physical structure scattering, etc. In practical application scenarios, these stray light often form "ghosts", or "ghosts", at certain locations in the picture.
In the prior art, the detection of the ghost can only judge whether the ghost exists or not, and the position and the numerical value of the ghost cannot be determined, so that the accurate judgment of the quality of an optical product is not facilitated.
In view of this, there is a need to provide a new solution to the above-mentioned problems.
Disclosure of Invention
The application aims to provide a detection method, a detection device and a new technical scheme of a medium for optical module ghost.
According to a first aspect of the present application, there is provided a method for detecting ghosting of an optical module, which uses a testing mechanism for detection, the testing mechanism including a camera, on which an optical module to be tested is placed;
The detection method comprises the following steps:
under the condition that the optical axis of the camera is regulated to coincide with the optical axis of the optical module to be tested, controlling the optical module to be tested to play a test picture, and controlling the camera to take a picture of the test picture; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
acquiring a geometric center of the white pattern, radiating the geometric center serving as a starting point to the outline of the white pattern, and acquiring a plurality of detection lines;
Acquiring gray scale values of pixels contained on the detection line;
And acquiring the distribution position of the ghost on the detection line and the gray scale value of the ghost according to the gray scale value of the pixel contained on the detection line.
Optionally, the acquiring the geometric center of the white pattern includes:
and acquiring the outline position of the white pattern, and fitting according to the outline position to obtain the geometric center.
Optionally, the plurality of detection lines equally divide the white pattern according to a preset angle.
Optionally, the acquiring the gray-scale value of the pixel included in the detection line includes:
and for one pixel contained in one detection line, taking at least three reference pixels around the pixel, and taking the average value of the gray scale value of the pixel and the gray scale value of the reference pixel as the gray scale value of the pixel on the detection line.
Optionally, the obtaining the position of the distribution of the ghost on the detection line according to the gray scale value of the pixel included on the detection line includes:
And judging pixels with gray scale values larger than or equal to a threshold value as ghosts, and acquiring the positions of the ghosts distributed on the detection line according to the positions of the pixels with the gray scale values larger than or equal to the threshold value distributed on the detection line.
Optionally, the acquiring the gray scale value of the ghost includes:
and taking the position as a center of a position of the ghost distribution on the detection line, and taking the average gray scale value of a preset area as the gray scale value of the ghost at the position.
Optionally, the acquiring the gray scale value of the ghost further includes:
Performing flat field correction on the camera, obtaining a flat field correction coefficient, and correcting the gray scale value of the ghost according to the flat field correction coefficient; and/or the number of the groups of groups,
And carrying out denoising treatment on the gray scale value of the ghost.
Optionally, the denoising process includes:
And controlling the optical module to be tested to play a black picture, controlling the camera to shoot the black picture, calculating the background noise value of the black picture at one position of the ghost distribution on one detection line, and taking the difference value between the gray scale value of the ghost at the position and the background noise value.
Optionally, the detection method further comprises:
And acquiring the overall position of the ghost according to the position of the ghost distributed on each detection line, and/or acquiring the overall gray level value of the ghost according to the gray level value of the ghost distributed on each detection line.
Optionally, the detection method further comprises:
And obtaining the intensity of the ghost according to the ratio of the integral gray scale value of the ghost to the gray scale value of the display screen of the optical module to be tested.
According to a second aspect of the present application, there is provided a detection apparatus for optical module ghosting, the detection apparatus comprising:
The control module is used for controlling the optical module to be tested to play a test picture and controlling the camera to take a picture of the test picture under the condition that the optical axis of the adjusting camera is coincident with the optical axis of the optical module to be tested; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
The first acquisition module is used for acquiring the geometric center of the white pattern and acquiring a plurality of detection lines;
The second acquisition module is used for acquiring the gray scale value of the pixel contained on the detection line;
And the third acquisition module is used for acquiring the distribution positions of the ghosts on the detection line and the gray scale values of the ghosts according to the gray scale values of the pixels contained on the detection line.
According to a third aspect of the present application, there is also provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the method of detecting optical module ghosts according to the first aspect.
The detection method, the detection device and the medium for the optical module ghosts can detect the specific position where the ghosts appear and the gray scale value of the ghosts; this can further facilitate accurate determination of the quality of the optical product.
Other features of the present application and its advantages will become apparent from the following detailed description of exemplary embodiments of the application, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a test mechanism according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for detecting optical module ghosting according to an embodiment of the application;
FIG. 3 is a schematic block diagram of an optical module ghost detection device according to an embodiment of the present application;
FIG. 4 is a schematic block diagram of an electronic device according to an embodiment of the application;
FIGS. 5 a-5 d are schematic diagrams of test pictures according to embodiments of the present application;
fig. 6 is a schematic diagram illustrating acquisition of multiple detection lines in step S102 of the detection method of optical module ghosting according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
< Test mechanism >
Fig. 1 is a schematic structural diagram of a testing mechanism according to an embodiment of the present application, the testing mechanism includes a product fixture 10 and a camera 11, wherein the product fixture 10 is used for placing and fixing an optical module 01 to be tested; the camera 11 is used for shooting a picture displayed by the optical module 01 to be tested; the device further comprises a six-axis adjusting table 12, wherein the six-axis adjusting table 12 is connected with the camera 11, and the six-axis adjusting table 12 is used for adjusting the lens posture of the camera 11 so as to enable the optical axis of the camera 11 to coincide with the optical axis of the optical module 01 to be tested; also comprises a lifting table 13, wherein the lifting table 13 is used for calibrating the lens verticality of the camera 11; the product fixture 10 is arranged on the displacement table 14, and the displacement table 14 is used for pushing the product fixture 10 to enable the optical axis of the optical module 01 to be tested to coincide with the optical axis of the camera 11.
< Method example >
Referring to fig. 2, according to an embodiment of the present application, there is provided a method for detecting ghosting of an optical module, which uses a testing mechanism to detect the ghosting, wherein the testing mechanism 1 includes a camera, and an optical module to be tested is placed on the testing mechanism;
The detection method comprises the following steps:
s101, under the condition that the optical axis of the camera is adjusted to coincide with the optical axis of the optical module to be tested, controlling the optical module to be tested to play a test picture, and controlling the camera to take a picture of the test picture; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
The optical module detected in the embodiment of the application may be, for example, VR PANCAKE modules; in step S101, the optical axis of the camera is first adjusted to coincide with the optical axis of the optical module to be tested, and when the optical axis is adjusted, the position of the product fixture 10 can be moved, for example, by the displacement table 14, so that the position of the optical module placed on the product fixture 10 can be moved; and the position of the camera 11 can be moved through the six-axis adjusting table 12, so that the optical axis of the camera 11 is coincident with the optical axis of the optical module to be tested. In addition, the vertical distance between the camera 11 and the optical module to be tested can be adjusted through the lifting table 13, so that the vertical distance between the camera 11 and the optical module to be tested meets the working requirement. After the optical axis of the camera is regulated to coincide with the optical axis of the optical module to be tested, the position of the ghost can be accurately measured; then controlling the optical module to be tested to play the test picture, and controlling the camera to take a picture of the test picture; the test picture exhibits a pattern of a black matrix and a white pattern, alternatively, referring to fig. 5 a-5 d, the white pattern may be, for example, a white ring; the device can also be a white rectangular frame or a plurality of white dots which are distributed in a discrete manner, and the plurality of white dots are distributed on the same circumference; white lines are also possible. Generally, for an optical module, for example, for a VR PANCAKE module, when the VR PANCAKE module simulates a product, it is generally known which position area of the product is the position with the strongest ghost, and then the white pattern is designed at the position with the strongest ghost, so that the testing efficiency can be improved.
S102, acquiring a geometric center of the white pattern, radiating the geometric center serving as a starting point to the outline of the white pattern, and acquiring a plurality of detection lines;
In step S102, since the optical axis of the camera and the optical axis of the optical module to be tested are already adjusted to coincide in step S101, the positions where the ghosting appears and the positions where the white pattern is located are distributed in the image in a central symmetry manner; for example, when the white pattern is a white ring, the position where the ghost occurs and the white ring take on a concentric distribution. When the geometric center of the white pattern is obtained, firstly, the contour position of the white pattern is obtained, and then the geometric center of the white pattern is obtained through fitting according to the contour position of the white pattern. When the detection line is acquired, a line made from the geometric center of the white pattern toward the outline position of the white pattern is used as the detection line; alternatively, a plurality of detection lines are uniformly distributed, for example, referring to fig. 6, in the case that the white pattern is a white circle, a horizontal line of 0 ° is first taken from the center of the white circle until the outline of the white circle, and then the remaining detection lines are made at predetermined angles, for example, 20 ° intervals, so that the white circle is divided by 18 equally. The predetermined angle can be adjusted according to actual needs.
S103, acquiring gray scale values of pixels contained in the detection line;
In step S103, taking the above-mentioned detection line of the 0 ° horizontal line as an example, the gray-scale value of each pixel on the 0 ° horizontal line, that is, the brightness value of each pixel is read; in order to make the gray-scale value of the pixel obtained by reading more accurate, the following gray-scale value reading method is adopted: for example, for a point a pixel on a 0 ° horizontal line, the gray-scale value of the point a pixel is read, and then the gray-scale values of at least three reference pixels around the point a pixel are read, optionally, four pixels in the vertical and horizontal directions around the point a pixel are taken as reference pixels, and then the finally read gray-scale value= (the gray-scale value of the point a pixel + the gray-scale values of the four reference pixels)/5 is obtained, that is, the average value of the gray-scale values of the point a pixel and the four reference pixels is taken as the final gray-scale value of the point a pixel.
In summary, the gray-scale value reading method comprises the following steps: and for one pixel contained in one detection line, taking at least three reference pixels around the pixel, and taking the average value of the gray scale value of the pixel and the gray scale value of the reference pixel as the gray scale value of the pixel on the detection line.
S104, acquiring the distribution position of the ghost on the detection line and the gray scale value of the ghost according to the gray scale value of the pixel contained on the detection line.
In step S104, when it is determined that a certain pixel on a detection line does not belong to the ghost, a threshold may be predefined, and when the gray-scale value of the certain pixel is greater than or equal to the threshold, it is determined that the pixel belongs to the ghost; then the position of the ghost distributed on the detection line can be obtained according to the position of the pixel with the gray level value larger than or equal to the threshold value distributed on the detection line. Meanwhile, the gray-scale value of the pixel determined as the ghost is the gray-scale value of the ghost; optionally, in order to improve the accuracy of detection, the following method is adopted when the gray scale value of the ghost is acquired: taking the position as a center of a position of the ghost distribution on a detection line, and taking the average gray scale value of a preset area as the gray scale value of the ghost at the position; alternatively, the preset area may be, for example, an area of 5×5 pixels.
In summary, the method for detecting the ghost of the optical module provided by the embodiment of the application can detect the specific position where the ghost appears and the gray scale value of the ghost; this can further facilitate accurate determination of the quality of the optical product.
In one embodiment, the detection method further comprises:
And acquiring the overall position of the ghost according to the position of the ghost distributed on each detection line, and/or acquiring the overall gray level value of the ghost according to the gray level value of the ghost distributed on each detection line.
In some tests, the ghosting at a certain or certain positions is/are required to be focused, and then only the positions and gray scale values of the ghosting distribution on the detection line need be seen separately. In other tests, the overall position of the ghost image can be obtained according to the distributed position of the ghost image on the detection line if the overall situation of the ghost image needs to be concerned; if the whole gray scale value of the ghosts still needs to be concerned, the gray scale values of all the ghosts distributed on the detection line are averaged.
In one embodiment, the detection method further comprises:
And obtaining the intensity of the ghost according to the ratio of the integral gray scale value of the ghost to the gray scale value of the display screen of the optical module to be tested.
In this specific example, the ratio of the overall gray-scale value of the ghost to the gray-scale value of the display screen of the optical module to be tested is obtained and multiplied by 100%, so that the percentage value of the overall gray-scale value of the ghost to the gray-scale value of the display screen of the optical module to be tested can be obtained. The percentage value is favorable for evaluating whether the optical module is qualified or not; for example, an optical module having the percentage value of more than 10% may be specified as a defective product.
In one embodiment, the acquiring the gray-scale value of the ghost further includes:
Performing flat field correction on the camera, obtaining a flat field correction coefficient, and correcting the gray scale value of the ghost according to the flat field correction coefficient; and/or the number of the groups of groups,
And carrying out denoising treatment on the gray scale value of the ghost.
In this specific example, in order to improve the accuracy of detection, a flat field correction may be further performed on a camera used for photographing; and/or performing denoising processing on the gray scale value of the ghost. When the above-mentioned flat field correction and denoising processes are both introduced into the detection method, more accurate results can be obtained.
A flat field correction of the camera is required because: in an ideal case, when the camera photographs an object with uniform brightness, the gray scale values of all pixels in the resulting image should be theoretically the same. However, in practice, there is often a large difference in gray scale values of pixels in the image, and the frame is in a bright center and dark surrounding state, so that a flat field correction is required for the lens of the camera. The flat field correction method comprises the steps of using an integrating sphere light source with the camera shooting brightness uniformity of more than 95%, and then correcting the image shot by the camera to enable the uniformity of the corrected image to reach more than 99%.
The gray scale values of the ghosts need to be de-noised because: taking VR PANCAKE modules as examples, the display module comprises an LCD and a lens, wherein the LCD comprises a backlight plate and liquid crystal, the backlight plate is in a normally-on state, and the brightness of a projection picture can be controlled by the switching degree of the liquid crystal; theoretically, when the liquid crystal is completely turned off, the brightness of the projection screen should be 0, however, due to the LCD characteristics, the projection screen is slightly bright, and in the ghost test, we call the brightness that cannot be eliminated by this portion as background noise. The presence of the background noise can lead to a significant reduction in the accuracy of the test, and therefore a background noise removal process is necessary.
In one embodiment, the de-priming process includes:
And controlling the optical module to be tested to play a black picture, controlling the camera to shoot the black picture, calculating the background noise value of the black picture at one position of the ghost distribution on one detection line, and taking the difference value between the gray scale value of the ghost at the position and the background noise value.
In this specific example, for a position of the ghost distribution on the detection line, the difference obtained by subtracting the background noise value from the gray level value of the ghost at the position is the true gray level value of the ghost after the background noise is removed.
< Device example >
Referring to fig. 3, according to another embodiment of the present application, there is provided an optical module ghost detection apparatus 200, the detection apparatus 200 including:
the control module 201 is used for controlling the optical module to be tested to play a test picture and controlling the camera to take a picture of the test picture under the condition that the optical axis of the camera is adjusted to be coincident with the optical axis of the optical module to be tested; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
The optical module detected in the embodiment of the application may be, for example, VR PANCAKE modules; for the control module 201, firstly, the optical axis of the camera is adjusted to coincide with the optical axis of the optical module to be tested, and when the optical axis is adjusted, the position of the product fixture 10 can be moved through the displacement table 14, so that the position of the optical module placed on the product fixture 10 can be moved; and the position of the camera 11 can be moved through the six-axis adjusting table 12, so that the optical axis of the camera 11 is coincident with the optical axis of the optical module to be tested. In addition, the vertical distance between the camera 11 and the optical module to be tested can be adjusted through the lifting table 13, so that the vertical distance between the camera 11 and the optical module to be tested meets the working requirement. After the optical axis of the camera is regulated to coincide with the optical axis of the optical module to be tested, the position of the ghost can be accurately measured; then controlling the optical module to be tested to play the test picture, and controlling the camera to take a picture of the test picture; the test picture exhibits a pattern of a black matrix and a white pattern, alternatively, referring to fig. 5 a-5 d, the white pattern may be, for example, a white ring; the device can also be a white rectangular frame or a plurality of white dots which are distributed in a discrete manner, and the plurality of white dots are distributed on the same circumference; white lines are also possible. Generally, for an optical module, for example, for a VR PANCAKE module, when the VR PANCAKE module simulates a product, it is generally known which position area of the product is the position with the strongest ghost, and then the white pattern is designed at the position with the strongest ghost, so that the testing efficiency can be improved.
A first obtaining module 202, configured to obtain a geometric center of the white pattern, and obtain a plurality of detection lines;
For the first acquisition module 202, the positions where the ghosts appear and the positions where the white patterns are located are distributed in the image in a central symmetry manner; for example, when the white pattern is a white ring, the position where the ghost occurs and the white ring take on a concentric distribution. When the geometric center of the white pattern is obtained, firstly, the contour position of the white pattern is obtained, and then the geometric center of the white pattern is obtained through fitting according to the contour position of the white pattern. When the detection line is acquired, a line made from the geometric center of the white pattern toward the outline position of the white pattern is used as the detection line; alternatively, a plurality of detection lines are uniformly distributed, for example, referring to fig. 6, in the case that the white pattern is a white circle, a horizontal line of 0 ° is first taken from the center of the white circle until the outline of the white circle, and then the remaining detection lines are made at predetermined angles, for example, 20 ° intervals, so that the white circle is divided by 18 equally. The predetermined angle can be adjusted according to actual needs.
A second obtaining module 203, configured to obtain a gray-scale value of a pixel included in the detection line;
For the second obtaining module 203, taking the above-mentioned detection line of the 0 ° horizontal line as an example, the gray-scale value of each pixel on the 0 ° horizontal line, that is, the brightness value of each pixel is read; in order to make the gray-scale value of the pixel obtained by reading more accurate, the following gray-scale value reading method is adopted: for example, for a point a pixel on a 0 ° horizontal line, the gray-scale value of the point a pixel is read, and then the gray-scale values of at least three reference pixels around the point a pixel are read, optionally, four pixels in the vertical and horizontal directions around the point a pixel are taken as reference pixels, and then the finally read gray-scale value= (the gray-scale value of the point a pixel + the gray-scale values of the four reference pixels)/5 is obtained, that is, the average value of the gray-scale values of the point a pixel and the four reference pixels is taken as the final gray-scale value of the point a pixel.
And a third obtaining module 204, configured to obtain the position of the distribution of the ghost on the detection line and the gray scale value of the ghost according to the gray scale value of the pixel included on the detection line.
For the third obtaining module 204, when it is determined that a pixel on a detection line does not belong to the ghost, a threshold may be predefined, and when the gray-scale value of a pixel is greater than or equal to the threshold, it is determined that the pixel belongs to the ghost; then the position of the ghost distributed on the detection line can be obtained according to the position of the pixel with the gray level value larger than or equal to the threshold value distributed on the detection line. Meanwhile, the gray-scale value of the pixel determined as the ghost is the gray-scale value of the ghost; optionally, in order to improve the accuracy of detection, the following method is adopted when the gray scale value of the ghost is acquired: taking the position as a center of a position of the ghost distribution on a detection line, and taking the average gray scale value of a preset area as the gray scale value of the ghost at the position; alternatively, the preset area may be, for example, an area of 5×5 pixels.
According to still another embodiment of the present application, referring to fig. 4, there is provided an electronic device 300, the electronic device 300 including:
a memory 301 for storing executable computer instructions;
And a processor 302, configured to execute the optical module ghost detection method according to the control of the executable computer instructions.
< Computer-readable storage Medium >
According to yet another embodiment of the present application, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the optical module ghost detection method as described above.
Embodiments of the present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of embodiments of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of embodiments of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++ or the like and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of embodiments of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which may execute the computer readable program instructions.
Various aspects of embodiments of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of embodiments of the application has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.
Claims (10)
1. The detection method of the optical module ghost is characterized by adopting a test mechanism for detection, wherein the test mechanism comprises a camera, and an optical module to be detected is arranged on the test mechanism;
The detection method comprises the following steps:
under the condition that the optical axis of the camera is regulated to coincide with the optical axis of the optical module to be tested, controlling the optical module to be tested to play a test picture, and controlling the camera to take a picture of the test picture; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
acquiring a geometric center of the white pattern, radiating the geometric center serving as a starting point to the outline of the white pattern, and acquiring a plurality of detection lines;
Acquiring gray scale values of pixels contained on the detection line;
acquiring the distribution position of the ghost on the detection line and the gray scale value of the ghost according to the gray scale value of the pixel contained on the detection line;
The obtaining the gray-scale value of the pixel included in the detection line includes:
For one pixel contained in one detection line, taking at least three reference pixels around the pixel, and taking the average value of the gray scale value of the pixel and the gray scale value of the reference pixel as the gray scale value of the pixel on the detection line;
The obtaining the positions of the distribution of the ghosts on the detection line according to the gray scale values of the pixels included on the detection line includes:
And judging pixels with gray scale values larger than or equal to a threshold value as ghosts, and acquiring the positions of the ghosts distributed on the detection line according to the positions of the pixels with the gray scale values larger than or equal to the threshold value distributed on the detection line.
2. The method for detecting optical module ghosting according to claim 1, wherein said obtaining a geometric center of the white pattern comprises:
and acquiring the outline position of the white pattern, and fitting according to the outline position to obtain the geometric center.
3. The method for detecting optical module ghosting according to claim 1 or 2, wherein the plurality of detection lines equally divide the white pattern according to a preset angle.
4. The method for detecting optical module ghosting according to claim 1, wherein the step of obtaining the gray-scale value of the ghosting comprises:
and taking the position as a center of a position of the ghost distribution on the detection line, and taking the average gray scale value of a preset area as the gray scale value of the ghost at the position.
5. The method for detecting optical module ghosting according to claim 1 or 4, wherein the acquiring gray-scale values of the ghosting image further comprises:
Performing flat field correction on the camera, obtaining a flat field correction coefficient, and correcting the gray scale value of the ghost according to the flat field correction coefficient; and/or the number of the groups of groups,
And carrying out denoising treatment on the gray scale value of the ghost.
6. The method for detecting optical module ghosting according to claim 5, wherein the denoising process comprises:
And controlling the optical module to be tested to play a black picture, controlling the camera to shoot the black picture, calculating the background noise value of the black picture at one position of the ghost distribution on one detection line, and taking the difference value between the gray scale value of the ghost at the position and the background noise value.
7. The method for detecting optical module ghosting according to claim 1, further comprising:
And acquiring the overall position of the ghost according to the position of the ghost distributed on each detection line, and/or acquiring the overall gray level value of the ghost according to the gray level value of the ghost distributed on each detection line.
8. The method for detecting optical module ghosting according to claim 7, further comprising:
And obtaining the intensity of the ghost according to the ratio of the integral gray scale value of the ghost to the gray scale value of the display screen of the optical module to be tested.
9. The device is characterized in that a testing mechanism is adopted for detection, the testing mechanism comprises a camera, and an optical module to be tested is placed on the testing mechanism;
The detection device includes:
The control module is used for controlling the optical module to be tested to play a test picture and controlling the camera to take a picture of the test picture under the condition that the optical axis of the adjusting camera is coincident with the optical axis of the optical module to be tested; the test picture comprises a black base picture and a white pattern positioned on the black base picture;
The first acquisition module is used for acquiring the geometric center of the white pattern and acquiring a plurality of detection lines;
The second acquisition module is used for acquiring the gray scale value of the pixel contained on the detection line;
The second obtaining module is specifically configured to: for one pixel contained in one detection line, taking at least three reference pixels around the pixel, and taking the average value of the gray scale value of the pixel and the gray scale value of the reference pixel as the gray scale value of the pixel on the detection line;
The third acquisition module is used for acquiring the distribution positions of the ghosts on the detection line and the gray scale values of the ghosts according to the gray scale values of the pixels contained on the detection line;
the third obtaining module is specifically configured to: and judging pixels with gray scale values larger than or equal to a threshold value as ghosts, and acquiring the positions of the ghosts distributed on the detection line according to the positions of the pixels with the gray scale values larger than or equal to the threshold value distributed on the detection line.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the method of detecting optical module ghosts as claimed in any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211060588.0A CN115452325B (en) | 2022-08-31 | 2022-08-31 | Detection method, detection device and medium for optical module ghost |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211060588.0A CN115452325B (en) | 2022-08-31 | 2022-08-31 | Detection method, detection device and medium for optical module ghost |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115452325A CN115452325A (en) | 2022-12-09 |
CN115452325B true CN115452325B (en) | 2024-11-15 |
Family
ID=84300440
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211060588.0A Active CN115452325B (en) | 2022-08-31 | 2022-08-31 | Detection method, detection device and medium for optical module ghost |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115452325B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116337417A (en) * | 2023-05-29 | 2023-06-27 | 江西联昊光电有限公司 | Testing device and testing method for AR and VR optical modules |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757097A (en) * | 2020-06-29 | 2020-10-09 | 歌尔光学科技有限公司 | Detection method, detection device and computer readable storage medium |
CN113192094A (en) * | 2021-05-11 | 2021-07-30 | 南昌欧菲光电技术有限公司 | Ghost outline extraction method, electronic device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0722341B2 (en) * | 1989-09-25 | 1995-03-08 | 大日本スクリーン製造株式会社 | False image removal method |
JP2666869B2 (en) * | 1991-05-13 | 1997-10-22 | 郵政省通信総合研究所長 | Ghost measurement method |
KR101364883B1 (en) * | 2012-11-14 | 2014-02-27 | 서울과학기술대학교 산학협력단 | Crosstalk reduction method for 3d steroscopic image and crosstalk reduction apparatus for 3d steroscopic image |
CN113112444B (en) * | 2020-01-09 | 2022-05-31 | 舜宇光学(浙江)研究院有限公司 | Ghost image detection method and system, electronic equipment and ghost image detection platform |
CN113570578B (en) * | 2021-07-29 | 2024-05-17 | 歌尔光学科技有限公司 | A method and device for detecting ghost image of lens |
-
2022
- 2022-08-31 CN CN202211060588.0A patent/CN115452325B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757097A (en) * | 2020-06-29 | 2020-10-09 | 歌尔光学科技有限公司 | Detection method, detection device and computer readable storage medium |
CN113192094A (en) * | 2021-05-11 | 2021-07-30 | 南昌欧菲光电技术有限公司 | Ghost outline extraction method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115452325A (en) | 2022-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107024485B (en) | The defect inspection method and device of camber display screen | |
US12033309B2 (en) | Learning-based lens flare removal | |
CN113724652B (en) | Compensation method and device for Mura of OLED display panel and readable medium | |
CN113160090B (en) | Image correction method and device | |
CN110246449B (en) | Adjusting method and device of display panel | |
CN107103865B (en) | Method and device for detecting display area in display screen | |
CN109163888A (en) | Optical centre test method, device and equipment | |
JP2016186421A (en) | Image processing method | |
WO2017202114A1 (en) | Method and apparatus for determining illumination intensity for inspection, and optical inspection method and apparatus | |
CN109862346B (en) | Focusing test method and device | |
CN115452325B (en) | Detection method, detection device and medium for optical module ghost | |
CN118018715B (en) | Method and related device for adjusting consistency of exposure time of multiple cameras | |
CN115760653A (en) | Image correction method, device, equipment and readable storage medium | |
CN106441820B (en) | Display screen homogeneity testing method and system | |
CN116668831A (en) | A consistency adjustment method and device for a multi-camera system | |
CN105913414A (en) | Calibration device for infrared camera visual system and calibration method | |
CN118762626B (en) | Screen brightness uniformity detection method and detection equipment | |
CN115914616A (en) | Light source point detection method, device, equipment and computer readable storage medium | |
CN105427315B (en) | Digital instrument image position testing method and device | |
CN110675802B (en) | Brightness compensation method and device | |
CN118424587A (en) | Visual airtight leakage point detection method | |
CN113891068B (en) | Optical axis precision detection method based on camera uniformity test auxiliary device | |
CN113822940B (en) | Flat field correction calibration method, device and system, computer equipment and medium | |
US20230194915A1 (en) | Method of detecting defective pixels in electronic displays | |
CN110672631B (en) | Panel defect photographing method and panel defect photographing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |