Camera light leakage detection device and detection method

By introducing angle adjustment devices and lamp boards into the light leakage detection device to adjust the angle of the test light incident, the problem that existing devices can only detect a single model camera is solved, and efficient light leakage detection of multiple models of cameras is achieved, and production efficiency is improved .

CN117880490BActive Publication Date: 2024-12-03LUXSAN PRECISION ITECH (KUNSHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410214399.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2024-12-03
Estimated Expiration
2044-02-27

AI Technical Summary

Technical Problem

Existing light leakage detection devices can only detect one model of front camera, and cannot adapt to the detection of multiple models, affecting the production efficiency of the camera module.

Method used

A camera light leakage detection device including a detection box, an angle adjustment device and a lamp board is designed. By adjusting the test light incident angle of the lamp board, it can adapt to different models of cameras for light leakage detection.

Benefits of technology

It improves the versatility and efficiency of the light leakage detection device, and can detect multiple models of front-facing cameras simultaneously, improving the efficiency of the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117880490B_ABST
    Figure CN117880490B_ABST
Patent Text Reader

Abstract

The present invention discloses a camera light leakage detection device and a detection method, wherein the detection device comprises: a detection box; and an angle adjustment device, a light board and a machine set in the detection box; the machine is provided with a camera to be tested; the detection box comprises a light-proof material; the angle adjustment device is used to adjust the light board to a plurality of test positions; the light board is used to send test light to the camera to be tested at the test position, so that the camera to be tested can shoot a sample image according to the test light; at different test positions, the angle between the light emitted by the light board and the lens optical axis of the camera to be tested is different. The technical solution provided by the present invention is used to improve the versatility of the light leakage detection device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display technology, and in particular to a camera light leakage detection device and a detection method. Background Art

[0002] As camera technology becomes more mature, people have higher and higher requirements for the image quality of front cameras. During the development stage of front cameras, the matching of the front camera field of view and the flatness of the touch screen cover glass (CG) may cause light leakage in the front camera. Therefore, a light leakage detection device is required for detection and verification during the development stage of front cameras.

[0003] However, there are deficiencies in the existing light leakage detection device. The device can only detect the light leakage phenomenon of the front camera of one product, but cannot detect the light leakage phenomenon of the front cameras of multiple products, which affects the production efficiency of the camera module. Summary of the invention

[0004] The embodiments of the present invention provide a camera light leakage detection device and a detection method to improve the versatility of the light leakage detection device.

[0005] In a first aspect, an embodiment of the present invention provides a camera light leakage detection device, comprising: a detection box; and an angle adjustment device, a light board, and a machine platform arranged in the detection box;

[0006] The machine is provided with a camera to be tested; the detection box includes an opaque material; the angle adjustment device is used to adjust the light board to a plurality of test positions; the light board is used to send test light to the camera to be tested at the test position, so that the camera to be tested captures a sample image according to the test light;

[0007] At different test positions, the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested is different.

[0008] In a second aspect, an embodiment of the present invention further provides a camera light leakage detection method, which is applicable to a camera light leakage detection device to be provided in any embodiment of the present invention, comprising:

[0009] Control the light panel to emit light;

[0010] According to the incident angle of the test light, the angle adjustment device is controlled to fix the light board at the corresponding test position, so that the light board forms the test light; the incident angle of the test light is determined according to the type of the camera to be tested;

[0011] Controlling the camera to be tested to take photos to form a sampling image; placing the camera to be tested on a fixture of a machine platform;

[0012] Perform light leakage detection on the camera to be tested according to the sampled image.

[0013] In the present invention, the camera light leakage detection device includes a detection box, and an angle adjustment device, a light board and a machine platform arranged in the detection box. Among them, a camera to be tested is arranged on the machine platform, and the light board can emit test light required for light leakage detection to the camera to be tested, and the angle adjustment device can adjust the light board to multiple test positions, so that the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested is different. Because the incident angles of the test light required for measuring light leakage of different cameras to be tested to the camera to be tested are different, this embodiment can adjust the angle adjustment device according to the rules of different cameras to be tested, so that the test light emitted by the light board is emitted to the camera to be tested at the corresponding incident angle, so as to perform light leakage detection on different models of cameras to be tested, thereby improving the versatility of the camera light leakage detection device and improving the light leakage detection efficiency of the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic structural diagram of a camera light leakage detection device provided by an embodiment of the present invention;

[0015] Figure 2 A schematic diagram of the structure of an angle adjustment device provided by an embodiment of the present invention;

[0016] Figure 3 A schematic structural diagram of a comparative example of a camera light leakage detection device provided by an embodiment of the present invention;

[0017] Figure 4 A schematic diagram of a process flow of a camera light leakage detection method provided by an embodiment of the present invention;

[0018] Figure 5 A schematic diagram of a sampling image provided by an embodiment of the present invention;

[0019] Figure 6 A graph showing the grayscale difference of the center hole image over time provided by an embodiment of the present invention;

[0020] Figure 7 An effect diagram of grayscale inversion of a sampled image provided by an embodiment of the present invention;

[0021] Figure 8 The effect diagram of the binarization processing of the sampled image provided by the embodiment of the present invention;

[0022] Fig. 9 A schematic diagram of the reflectivity of the entire image of a sampled image provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0024] Camera light leakage is a common quality problem in camera components. Light leakage specifically refers to when lighting the sides or corners of the camera lens, the light penetrates the sides or corners of the camera, enters the camera, and is captured by the photosensitive chip. The leaked light participates in the imaging as noise, resulting in a decrease in the signal-to-noise ratio. Common light leakage problems can cause red screens, red edges, red corners, or abnormal white light to appear in the image. As people have higher and higher requirements for the imaging quality of front cameras, camera light leakage detection devices are often used to detect light leakage on front cameras. Existing light leakage detection devices can only detect one model of front cameras. When multiple models of front cameras need to be detected, multiple light leakage detection devices are required, which is more cumbersome, reduces detection efficiency, and affects the research and development process of display screens with front cameras.

[0025] To solve the above problems, an embodiment of the present invention provides a light leakage detection device with a camera, such as Figure 1 As shown, Figure 1 A schematic structural diagram of a camera light leakage detection device provided by an embodiment of the present invention includes: a detection box 11; and an angle adjustment device 12, a light board 13 and a machine table 14 arranged in the detection box 11;

[0026] The machine 14 is provided with a camera 141 to be tested; the detection box 11 includes an opaque material; the angle adjustment device 12 is used to adjust the light board 13 to multiple test positions; the light board 13 is used to send test light to the camera 141 to be tested at the test position, so that the camera 141 to be tested captures a sample image according to the test light;

[0027] At different test positions, the angle between the test light emitted by the light board 13 and the lens optical axis L of the camera 141 to be tested is different.

[0028] In an embodiment of the present invention, a camera light leakage detection device includes a detection box, and an angle adjustment device, a light board, and a machine platform arranged in the detection box. A camera to be tested is arranged on the machine platform, and the light board can emit test light required for light leakage detection to the camera to be tested, and the angle adjustment device can adjust the light board to multiple test positions, so that the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested is different. Because the incident angles of the test light required for measuring light leakage of different cameras to be tested to the camera to be tested are different, this embodiment can adjust the angle adjustment device according to the rules of different cameras to be tested, so that the test light emitted by the light board is emitted to the camera to be tested at the corresponding incident angle, so as to perform light leakage detection on different models of cameras to be tested, thereby improving the versatility of the camera light leakage detection device and improving the light leakage detection efficiency of the camera.

[0029] The above is the core idea of ​​the present invention. The technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] like Figure 1 As shown, the camera light leakage detection device includes a detection box 11. The detection box 11 includes a machine table 14 for placing or fixing a camera 141 to be tested, a light board 13 and an angle adjustment device 12. Among them, the angle adjustment device 12 is used to fix the light board 13 and drive the light board 13 to move. Specifically, the angle adjustment device 12 is arranged next to the machine table 14, and is used to drag the light board 13 to move along a certain trajectory. In this embodiment, several positions on the trajectory can be selected as test positions of the light board 13. Then the light board 13 can emit test light to the camera 141 to be tested at the test position, so that the camera 141 to be tested can capture a sample image according to the test light, and perform light leakage detection on the camera 141 to be tested according to the sample image. The detection box 11 includes opaque material, so that external light cannot enter the detection box 11, thereby not interfering with the light leakage detection process of the camera 141 to be tested. Optionally, the camera light leakage detection device may further include a fixture 21 for fixing the position of the platform 14, thereby fixing the position of the camera 141 to be tested, preventing the position of the camera 141 to be tested from moving during the test, and improving the light leakage test accuracy. In this embodiment, if the camera 141 to be tested is a front camera of a display panel, the platform 14 may be a display panel.

[0031] The test light emitted by the light board 13 is incident obliquely into the camera 141 to be tested, and is captured by the photosensitive chip of the camera 141 to be tested, and finally a sample image is captured. An angle A is formed between the test light emitted by the light board 13 and the lens optical axis L of the camera 141 to be tested. It should be noted that because the test light needs to simulate the light that causes light leakage in the camera 141 to be tested, the inclination angle of the test light needs to be greater than the viewing angle B of the camera 141 to be tested, such as Figure 1 As shown, the angle A between the test light and the lens optical axis L of the camera 141 to be tested needs to be greater than B / 2. For example, if the viewing angle of the camera 141 to be tested is 87°, the angle between the test light emitted by the light board 13 and the lens optical axis L of the camera 141 to be tested can be 78°.

[0032] Because the viewing angles B of different models of cameras 141 to be tested are different, the angles A formed between the required test light and the lens optical axis L of the camera 141 to be tested are different. In this embodiment, the test light emitted by the light board 13 can be adjusted to different angles through the angle adjustment device 12 to adapt to different models of cameras 141 to be tested. In the actual production process of the front camera of the display panel, the camera light leakage detection device in this embodiment can be used to perform light leakage tests on front cameras of various models, thereby improving the test efficiency of the front camera and accelerating the production process of the front camera of the display panel.

[0033] Figure 2 A schematic diagram of the structure of an angle adjustment device provided in an embodiment of the present invention. Optionally, the angle adjustment device 12 may include: a base 121, a bracket 122 and a slider structure 123; the base 121 is connected to the bracket 122; a plurality of test positions are formed on the bracket 122; the slider structure 123 is slidably connected to the bracket 122 via a pulley 124; the slider structure 123 is used to drive the light board 13 to move between the plurality of test positions. The angle adjustment device 12 is arranged on one side of the machine table 14, and the slider structure 123 of the angle adjustment device 12 is slidably connected to the bracket 122 via a pulley 124. Optionally, a slide rail may be formed on the bracket 122, and the pulley 124 contains a ball bearing, so that the pulley 124 can move along the slide rail formed by the bracket 122. A plurality of test positions may be formed on the bracket 122, for example, a mark 125 may be set at each test position for user identification. The angle adjustment device 12 also includes a base 121, which is used to stably support the bracket 122 and the slider structure 123. When the slider structure 123 is located at a certain test position, the slider structure 123 is not easy to move, and the position of the lamp board 13 fixed by the slider structure 123 is not easy to change, thereby ensuring that the test light does not jitter during the test process, thereby improving the accuracy of light leakage detection.

[0034] Optionally, in this embodiment, several positions where the angles between the test light and the lens optical axis L of the camera 141 to be tested are 5°, 10°, 20°, 30°, 40°, 50°, 60°, 70°, 80° and 90° can be selected as test positions to adapt to different models of cameras 141 to be tested. Of course, other test positions can also be set according to the camera 141 to be tested, and this embodiment does not specifically limit this. The light board 13 can automatically move from 5 degrees to 90 degrees on the bracket 122, and can provide test light of 5 degrees-90 degrees, which can detect light leakage of front cameras of different products. The scheme of this embodiment can also be used to verify the light leakage phenomenon of the front camera under different angles of light conditions during the research and development stage of the same product, so as to adjust the parameters of the front camera and CG in time.

[0035] Continue to refer Figure 2 Optionally, the bracket 122 may be curved, so that when the slider structure 123 moves, the angle between the test light emitted by the light board 13 and the lens optical axis L of the camera 141 to be tested changes. In this embodiment, the bracket 122 is set to be curved, so that the slider structure 123 drives the light board 13 to change the emission angle of the test light emitted by it, so that the angle between the test light and the lens optical axis L of the camera 141 to be tested changes, thereby performing light leakage tests on different models of cameras 141 to be tested.

[0036] Continue to refer Figure 2 Optionally, the end of the bracket 122 away from the base 121 may be provided with a first NFC module 151; the slider structure 123 may include a second NFC module 152; wireless communication is established between the first NFC module 151 and the second NFC module 152 to locate the position of the slider structure 123. Optionally, in this embodiment, the distance or angle of movement of the slider structure 123 can be read by the first NFC module 151 and the second NFC module 152. In this embodiment, the distance of the slider structure 123 from the end of the bracket 122 away from the base 121 can be obtained according to the first NFC module 151 and the second NFC module 152, and then the current position of the slider structure 123 on the bracket 122 can be obtained, so as to facilitate the accurate stopping of the slider structure 123 at the test position.

[0037] Continue to refer Figure 2Optionally, the slider structure 123 may also be provided with a positioning column 16; the positioning column 16 is used to fix the position of the slider structure 123 after the slider structure 123 moves to the test position. The positioning column 16 is used to position the slider structure 123. Specifically, when the slider structure 123 moves to the test position, the positioning column 16 can be driven to stop the pulley 124 from rolling to prevent the incident angle of the test light from changing. Optionally, the slider structure 123 may also include a motor 126, which is used to drive the pulley 124 to slide on the bracket 122. When the motor 126 stops rolling, the positioning column 16 supports the bracket 122; when the motor 126 drives the pulley 124 to roll, the positioning column 16 releases the bracket 122. Optionally, the camera light leakage detection device may also include a controller, which can control the positioning column 16. When the motor 126 stops moving, the controller can control the positioning column 16 to support the bracket 122 to prevent the slider structure 123 from moving on the bracket 122; when the motor 126 drives the pulley 124 to roll, the controller can control the positioning column 16 to release the bracket 122 so that the slider structure 123 moves under the drive of the pulley 124.

[0038] like Figure 1 As shown, optionally, the detection box 11 may include a black cavity 111 formed by black foam 113; the black foam 113 is formed with a central hole 112, so that the test light emitted by the light board 13 to the camera 141 to be tested is reflected to the black cavity 111 through the central hole 112; in a plane parallel to the light incident surface of the camera 141 to be tested, the projection of the central hole 112 is located within the viewing angle B of the camera 141 to be tested. In order to further improve the accuracy of light leakage detection, in this embodiment, a black cavity 111 formed by black foam 113 is provided in the detection box 11, and the black foam 113 is formed with a central hole 112, so that the test light emitted by the light board 13 to the camera 141 to be tested and even the machine 14 is reflected by the black cavity 111 through the central hole 112, effectively avoiding the test light from being repeatedly reflected between the inner wall of the detection box 11 and the machine 14, causing interference to the test light. It should be noted that the light leakage tested in this embodiment is the light that enters the camera 141 to be tested through refraction. The light that enters the camera 141 to be tested after the above reflection will form noise in the light leakage detection process, affecting the accuracy of the light leakage detection. In this embodiment, the projection of the center hole 112 is located within the viewing angle B of the camera 141 to be tested. Then, this embodiment can obtain the center hole image formed by the center hole 112 of the camera 141 to be tested, and perform light leakage detection based on the center hole image. Because the center hole image absorbs the reflection noise, the detection result is more accurate.

[0039] Continue to refer Figure 1 and Figure 2Optionally, the light board 13 may include: a light strip 131 and a light housing 132; the light strip 131 is arranged in the light housing 132; the light housing 132 is used to form a test light emitted from the angle adjustment device 12 to the camera to be tested 141 according to the light emitted by the light strip 131. The light board 13 includes a light housing 132 and a light strip 131 in the light housing 132. The light housing 132 is used to limit the divergent light of the light strip 131 to form a line light source emitted from the test position of the angle adjustment device 12 to the camera to be tested 141, that is, the test light in this embodiment.

[0040] Continue to refer Figure 1 Optionally, the camera light leakage detection device may further include: a controller 17; the controller 17 is electrically connected to the angle adjustment device 12, and is used to control the angle adjustment device 12 to move to each position to be tested and control the angle adjustment device 12 to be fixed in position; the controller 17 is electrically connected to the light board 13, and is used to control the light board 13 to start or stop emitting test light; the controller 17 is also electrically connected to the camera 141 to be tested, and is used to control the camera 141 to be tested to capture a sample image. The controller 17 may be electrically connected to the angle adjustment device 12, the light board 13 and the camera 141 to be tested, respectively, to control them respectively. Exemplarily, the controller 17 may first power on the angle adjustment device 12, the light board 13 and the camera 141 to be tested, and when the standby table 14 is placed on the fixture 21, the light board 13 is controlled to start emitting test light, and the test light is obliquely incident on the camera 141 to be tested. Afterwards, the camera 141 to be tested is controlled to capture at least one sampled image, and then the controller 17 performs pre-processing such as noise reduction and white balance on the sampled image, and analyzes the grayscale values ​​of each color in the sampled image, and determines whether the camera 141 to be tested is leaking light based on the increment of the grayscale value over time. When the controller 17 reaches a conclusion, the machine 14 can be removed, and the angle adjustment device 12, the light board 13 and the camera 141 to be tested can be powered off. Optionally, if the center hole 112 is formed by black foam, the grayscale value of the center hole image formed by the camera 141 to be tested corresponding to the center hole 112 is analyzed to perform light leakage detection.

[0041] On the basis of the above-mentioned embodiment, this embodiment provides a solution in which the emission angle of the test light cannot be adjusted, as a comparative example of this embodiment, and is compared with the solution of this embodiment. Figure 3A schematic structural diagram of a comparative example of a camera light leakage detection device provided in an embodiment of the present invention. Similarly, the camera light leakage detection device in the comparative example may include a machine table 13' (with a lens to be tested) on a fixture 14', as well as a bracket 16' and a light board 15'. In addition, a black cavity 111' may be provided. Among them, a lamp housing 151' of the light board 15' forms a test light, so that the test light is emitted to the camera to be tested, and there is an angle between the test light and the lens optical axis of the camera to be tested, for example, 78 degrees. If the height of the bracket 16' is fixed, then the position of the light board 15' is fixed, then there is only one test position in the comparative example, and only one model of the lens to be tested can be subjected to light leakage detection. The solution of the comparative example is less versatile than the solution of this proposal.

[0042] Based on the same concept, an embodiment of the present invention also provides a camera light leakage detection method. Figure 4 A schematic diagram of a camera light leakage detection method provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the method of this embodiment includes the following steps:

[0043] Step S110, controlling the light panel to emit light.

[0044] Step S120, controlling the angle adjustment device to fix the light board at a corresponding test position according to the incident angle of the test light, so that the light board forms a test light; the incident angle of the test light is determined according to the type of the camera to be tested.

[0045] Step S130, controlling the camera to be tested to take a picture to form a sampling image; placing the camera to be tested on a fixture of the machine.

[0046] Step S140: performing light leakage detection on the camera to be tested according to the sampled image.

[0047] The above steps S110 to S140 can all be executed by a controller, so that the camera light leakage detection device can automatically complete the light leakage detection process, thereby improving the versatility of the camera light leakage detection device and the light leakage detection efficiency.

[0048] In an embodiment of the present invention, a camera light leakage detection device includes a detection box, and an angle adjustment device, a light board, and a machine platform arranged in the detection box. A camera to be tested is arranged on the machine platform, and the light board can emit test light required for light leakage detection to the camera to be tested, and the angle adjustment device can adjust the light board to multiple test positions, so that the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested is different. Because the incident angles of the test light required for measuring light leakage of different cameras to be tested to the camera to be tested are different, this embodiment can adjust the angle adjustment device according to the rules of different cameras to be tested, so that the test light emitted by the light board is emitted to the camera to be tested at the corresponding incident angle, so as to perform light leakage detection on different models of cameras to be tested, thereby improving the versatility of the camera light leakage detection device and improving the light leakage detection efficiency of the camera.

[0049] On this basis, when the test box includes a black cavity formed by black foam, and the black foam is formed with a central hole, so that the test light emitted by the light board to the camera to be tested is reflected to the black cavity through the central hole,

[0050] Control the camera under test to take pictures to form a sample image, including:

[0051] Taking pictures at at least one set time point after the light board emits light to form a sampling image;

[0052] Performing light leakage detection on the camera to be tested according to the sampled image may include: comparing the sampled image with the center hole image of the all-black image, respectively obtaining the grayscale difference of each color pixel; forming a center hole image in the area corresponding to the center hole of the sampled image taken by the camera to be tested;

[0053] The growth rate of the grayscale difference of each color pixel of the central hole image of the sampling image over time is obtained; and when the growth rate is greater than a set threshold, it is determined that the camera to be tested has light leakage.

[0054] Specifically, after the controller controls the various components of the camera light leakage detection device to be powered on, the controller controls the light board to emit test light at the test position, and the test light is incident on the camera to be tested, and the camera to be tested captures a sample image. In this example, the controller can control the camera to be tested to capture multiple sample images, for example, a sample image can be captured at 100ms, 400ms, and 700ms after the light board emits light. Figure 5 As shown, Figure 5 A schematic diagram of a sampling image provided by an embodiment of the present invention. According to the sampling images corresponding to 100ms, 400ms, and 700ms, it can be seen that the grayscale value of the sampling image gradually increases with time.

[0055] After taking the sampled image, the sampled image must first be preprocessed by noise reduction and white balance, and then light leakage judgment is performed based on the sampled image. First, a completely black image with the same size as the sampled image is obtained, and the image of the area corresponding to the center hole is extracted from the sampled image and the completely black image, that is, the center hole image. It should be noted that because the center hole can absorb the test light reflected by the cover glass on the camera to be tested through the black cavity, the area outside the center hole will reflect the test light reflected by the cover glass on the camera to be tested to the camera to be tested again, affecting the imaging of the camera to be tested. In other words, the accurate refraction light leakage of the camera to be tested can only be obtained through the center hole image, and other parts of the sampled image except the center hole image will affect the accuracy of light leakage detection.

[0056] This embodiment compares the sampled image with the center hole image of the all-black image, and obtains the growth rate of the grayscale difference of each color pixel over time. For example, the sampled image may include red pixels, green pixels and blue pixels. The grayscale value of the red pixel of the sampled image is R, the grayscale value of the green pixel is G, and the grayscale value of the blue pixel is B. Similarly, the grayscale value of the red pixel of the all-black image is the standard grayscale value R_Target, the grayscale value of the green pixel is the standard grayscale value G_Target, and the grayscale value of the blue pixel is the standard grayscale value B_Target. The grayscale difference of the red pixel is (R-R_Target), the grayscale difference of the green pixel is (G-G_Target), and the grayscale difference of the blue pixel is (B-B_Target). The grayscale difference Signal of the red pixel is calculated to be (R-R_Target), the grayscale difference Signal of the green pixel is (G-G_Target), and the grayscale difference Signal of the blue pixel is (B-B_Target). A curve graph of the grayscale difference over time is drawn, as shown in FIG. Figure 6 As shown, Figure 6The grayscale difference of the central hole image provided by the embodiment of the present invention changes with time. The curve of the grayscale difference of the red pixel changing with time is S1, the curve of the grayscale difference of the blue pixel changing with time is S2, and the curve of the grayscale difference of the green pixel changing with time is S3. The S2 and S3 curves overlap. When the growth rate is greater than the set threshold, for example, 110DN / s, the front camera is judged to be leaking light. The above process of obtaining the growth rate of the various color pixels of the central hole image changing with time is the process of accurately calculating the amount of light leakage of the central hole. The central hole is the entrance of the upper black cavity, which allows the reflected light to enter and then the reflected light is infinitely reflected in the cavity until it disappears. Then the central hole image is not disturbed by the reflected light, which is close to the actual light leakage process of the camera to be tested. Therefore, calculating the light leakage of the central hole image is a more accurate light leakage amount. The growth rate of the grayscale value of each color pixel of the central hole image over time is the actual light leakage growth rate. After the growth rate is greater than the set threshold acceptable to the user, the camera to be tested is judged to be leaking light, which effectively improves the accuracy of light leakage detection.

[0057] In addition, optionally, before comparing the sampling image with the center hole image of the all-black image, it can also include: flipping the grayscale of the sampling image to increase the contrast between the center hole image and the rest of the sampling image; binarizing the grayscale flipped sampling image to separate the center hole image from the sampling image.

[0058] Before processing the center hole image, this embodiment also needs to extract the center hole image from the entire sampling image. Figure 7 As shown, Figure 7 The effect diagram of the grayscale inversion of the sampled image provided by the embodiment of the present invention. The grayscale inversion principle is an image processing technology, which can invert the grayscale value of the sampled image, thereby changing the brightness and contrast of the sampled image, making the sampled image clearer and more vivid. In digital image processing, the grayscale inversion principle is widely used in the fields of image enhancement, image restoration, image segmentation, etc. Specifically, grayscale inversion converts black pixels in the sampled image into white pixels, and converts white pixels into black pixels, thereby changing the brightness and contrast of the sampled image, making the details in the sampled image clearer and easier to observe and analyze. This embodiment is mainly used to increase the contrast between the center hole image and the rest of the sampled image except the center hole area through grayscale inversion, so as to facilitate further identification of the center hole area.

[0059] like Figure 8 As shown, Figure 8The effect diagram of the binarization processing of the sampled image provided by the embodiment of the present invention. After the grayscale inversion, the sampled image also needs to be binarized. The binarization process converts the pixel values ​​in the sampled image into a form with only two possible values, usually black and white. This processing method can be used in the fields of image segmentation, image enhancement, image recognition, etc. The principle of the binarization process is to compare the pixel value in the sampled image with a threshold. If the pixel value is greater than the threshold, the pixel is set to white, otherwise it is set to black. Thereby, the center hole image is further made clearer relative to the entire sampled image, and it is convenient to separate the center hole image from the sampled image for light leakage detection. When acquiring the center hole image, this embodiment successively undergoes grayscale inversion and binarization processing, which makes it easy to extract the center hole image and effectively enhances the accuracy of light leakage detection.

[0060] In another embodiment, when the test box includes a black cavity formed by black foam, and the black foam is formed with a central hole, so that the test light emitted by the light board to the camera to be tested is reflected to the black cavity through the central hole,

[0061] Control the camera under test to take pictures to form a sample image, including:

[0062] Taking pictures at at least one set time point after the light board emits light to form a sampling image;

[0063] After controlling the camera to be tested to take pictures to form a sample image, the following steps may also be included:

[0064] Compare the sampled image with the entire image of the all-black image, and obtain the grayscale difference of each color pixel respectively; the grayscale difference is the difference between the grayscale value of the current color pixel of the sampled image and the standard grayscale value of the current color pixel of the all-black image;

[0065] The sum of the squares of the grayscale differences of all color pixels is obtained, and the square root of the sum of the squares is calculated to obtain the reflection parameter of the glass cover of the camera to be tested.

[0066] Similarly, after the controller controls the various components of the camera light leakage detection device to be powered on, the controller controls the light board to emit test light at the test position, the test light is incident on the camera to be tested, and the camera to be tested captures a sample image. In this example, the controller can control the camera to be tested to capture multiple sample images, for example, a sample image can be captured at 100ms, 400ms, and 700ms after the light board emits light. After capturing the sample image, a completely black image with the same size as the sample image is acquired.

[0067] It should be noted that in this example, it is not necessary to obtain the center hole image, but to compare the sampled image with the entire image of the all-black image, and obtain the grayscale difference of each color pixel respectively. For example, the sampled image may include red pixels, green pixels and blue pixels, and the grayscale value of the red pixel of the sampled image is R, the grayscale value of the green pixel is G, and the grayscale value of the blue pixel is B. The grayscale value of the red pixel of the all-black image is the standard grayscale value R_Target, the grayscale value of the green pixel is the standard grayscale value G_Target, and the grayscale value of the blue pixel is the standard grayscale value B_Target. The grayscale difference calculation process of the various color pixels of the center hole image is the same, the grayscale difference of the red pixel is (R-R_Target), the grayscale difference of the green pixel is (G-G_Target), and the grayscale difference of the blue pixel is (B-B_Target). Thereafter, the square of the grayscale difference of each color pixel is obtained, and the square of the grayscale difference of all color pixels is added to form a square sum. Finally, the square root of the square sum is calculated to form the reflective parameter delta Signal of the glass cover of the camera to be tested. That is, deltaSignal = sqrt((R - R_Target) 2 +(B-B_Target) 2 +(G-G_Target) 2 ).like Fig. 9 As shown, Fig. 9 The schematic diagram of the reflectivity of the entire image of the sampled image provided by the embodiment of the present invention preliminarily calculates the reflectivity of the entire image of the sampled image of the front camera by obtaining the reflectivity parameter delta Signal of the entire image, and evaluates the influence of the reflected stray light reflected to the camera to be tested on the light leakage detection. Optionally, the embodiment can also obtain the reflectivity of the glass cover plate of the camera to be tested and the light leakage of the center hole image, so as to evaluate the light leakage performance of the camera to be tested through different detection items, thereby enhancing the accuracy of light leakage detection.

[0068] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A camera light leakage detection device, characterized in that: include: Testing box; and an angle adjustment device, a light board and a machine table arranged in the detection box; the detection box includes a black cavity formed by black foam; The black foam is formed with a central hole, so that the test light emitted by the light board to the camera to be tested is reflected to the black cavity through the central hole; The machine is provided with a camera to be tested; the detection box comprises a light-proof material; The angle adjustment device is used to adjust the light board to a plurality of test positions; the light board is used to send test light to the camera to be tested at the test position, so that the camera to be tested takes a sample image according to the test light, and performs light leakage detection on the camera to be tested according to the sample image; At different test positions, the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested is different; Wherein, performing light leakage detection on the camera to be tested according to the sampled image includes: The camera to be tested is subjected to light leakage detection according to the sampling image and the central hole image of the all-black image; the sampling image taken by the camera to be tested forms a central hole image in an area corresponding to the central hole.

2. The camera light leakage detection device according to claim 1, characterized in that: The angle adjustment device comprises: a base, a bracket and a slider structure; The base is connected to the bracket; a plurality of test positions are formed on the bracket; the slider structure is slidably connected to the bracket via a pulley; the slider structure is used to drive the light board to move between the plurality of test positions.

3. The camera light leakage detection device according to claim 2, characterized in that: The bracket is curved, so that when the slider structure moves, the angle between the test light emitted by the light board and the lens optical axis of the camera to be tested changes.

4. The camera light leakage detection device according to claim 2, characterized in that: A first NFC module is disposed at one end of the bracket away from the base; The slider structure includes a second NFC module; wireless communication is established between the first NFC module and the second NFC module to locate the position of the slider structure.

5. The camera light leakage detection device according to claim 2, characterized in that: The slider structure is also provided with a positioning column; The positioning column is used to fix the position of the slider structure after the slider structure moves to the test position.

6. The camera light leakage detection device according to claim 1, characterized in that: In a plane parallel to the light incident surface of the camera to be tested, the projection of the central hole is located within the viewing angle of the camera to be tested.

7. The camera light leakage detection device according to claim 1, characterized in that: The light panel comprises: a light strip and a light housing; The light strip is arranged in the light housing; the light housing is used to form a test light emitted from the angle adjustment device to the camera to be tested according to the light emitted by the light strip.

8. The camera light leakage detection device according to claim 1, characterized in that: Also includes: Controller; The controller is electrically connected to the angle adjustment device, and is used to control the angle adjustment device to move to various positions to be measured and control the angle adjustment device to be fixed in position; The controller is electrically connected to the light board and is used to control the light board to start or stop emitting the test light; The controller is also electrically connected to the camera to be tested, and is used to control the camera to be tested to capture a sample image.

9. A camera light leakage detection method, characterized in that: The camera light leakage detection device applicable to any one of claims 1 to 8 above comprises: Control the light panel to emit light; According to the incident angle of the test light, the angle adjustment device is controlled to fix the light board at the corresponding test position, so that the light board forms the test light; the incident angle of the test light is determined according to the type of the camera to be tested; Controlling the camera to be tested to take photos to form a sampling image; placing the camera to be tested on a fixture of a machine platform; Perform light leakage detection on the camera to be tested according to the sampled image.

10. The camera light leakage detection method according to claim 9, characterized in that: When the detection box includes a black cavity formed by black foam, and the black foam is formed with a central hole, so that the test light emitted by the light board to the camera to be tested is reflected from the central hole to the black cavity infinitely until it disappears, Controlling the camera to be tested to take a photo to form a sampled image includes: Taking pictures at at least one set time point after the light board emits light to form a sampling image; The performing light leakage detection on the camera to be tested according to the sampled image includes: Comparing the sampled image with the central hole image of the all-black image, and obtaining the grayscale difference of each color pixel respectively; The growth rate of the grayscale difference of each color pixel of the central hole image of the sampled image over time is obtained; and when the growth rate is greater than a set threshold, it is determined that the camera to be tested is leaking light.

11. The camera light leakage detection method according to claim 10, characterized in that: Before comparing the sample image with the central hole image of the all-black image, the method further includes: Performing grayscale flipping on the sampled image to increase the contrast between the central hole image and the rest of the sampled image; The grayscale-flipped sample image is binarized to separate the center hole image from the sample image.

12. The camera light leakage detection method according to claim 9, characterized in that: When the detection box includes a black cavity formed by black foam, and the black foam is formed with a central hole, so that the test light emitted by the light board to the camera to be tested is reflected to the black cavity through the central hole, Controlling the camera to be tested to take a photo to form a sampled image includes: Taking pictures at at least one set time point after the light board emits light to form a sampling image; After controlling the camera to be tested to take a photo to form a sample image, the method further includes: Compare the sampled image with the entire image of the all-black image, and obtain the grayscale difference of each color pixel respectively; the grayscale difference is the difference between the grayscale value of the current color pixel of the sampled image and the standard grayscale value of the current color pixel of the all-black image; The sum of squares of grayscale differences of all color pixels is obtained, and the square root of the sum of squares is calculated to obtain the reflection parameter of the glass cover of the camera to be tested.