A detection method and device
Through the matching and analysis of the light intensity imaging map, it is determined whether the camera module is abnormal and the abnormal type is determined, which solves the problem of low detection accuracy in the prior art, and realizes more efficient camera module detection.
Patent Information
- Application Number
- CN201910881520.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-18
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2039-09-18
AI Technical Summary
The existing camera module detection methods determine whether it is abnormal through spatial frequency response values, and the detection points are not comprehensive enough, resulting in low detection accuracy and easy to miss inspection.
The light source image is acquired and processed into a light intensity imaging image. By matching with the preset image, whether the imaging module is abnormal in imaging, and the abnormal type is determined based on the light intensity distribution, including the position offset between the lens and the image sensor, the lens edge defect and the light filtering Structural exception.
The detection accuracy is improved, the missed detection situation of fixed-point detection is avoided, and the imaging performance and abnormal types of the camera module can be more accurately judged.
Smart Images

Figure CN112532967B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detection technology, and in particular to a detection method and device for detecting a camera module. Background Art
[0002] With the development of technology and the requirements of development in various fields, more and more fields require the use of camera modules.
[0003] The current camera module detection method is to use the spatial frequency response (SFR) value to determine whether the camera module is abnormal. With the development of technology, the detected SFR value can also be converted into a heat map to more intuitively determine the optical performance of the general position of the camera module. However, the detected SFR value is detected by fixed-point detection in each field of view. These specified detection points are not comprehensive, which can easily lead to missed detections and low detection accuracy. Summary of the invention
[0004] In order to solve the above problems, an embodiment of the present invention provides a camera module detection method and a detection device that can improve detection accuracy.
[0005] The present invention provides a detection method for detecting an abnormality of a camera module, comprising the following steps: obtaining a light source image captured by a camera module to be tested aligned with a light source device; processing the light source image to obtain a light intensity imaging map; judging whether the camera module has an imaging abnormality based on the light intensity imaging map and a preset light intensity imaging map; and when it is judged that the camera module has an imaging abnormality, obtaining the type of abnormality of the camera module that causes the imaging abnormality based on the light intensity distribution in the light intensity imaging map.
[0006] In one embodiment, when the camera module is determined to have imaging abnormality, after obtaining the abnormality type of the camera module causing the imaging abnormality according to the light intensity distribution in the light intensity imaging map, the detection method further comprises the following steps: processing the light intensity imaging map to obtain a red light channel light intensity map, a green light channel light intensity map, and a blue light channel light intensity map. And determining the abnormal light channel and its position of the filter structure of the camera module according to the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map.
[0007] In one embodiment, obtaining the abnormality type of the camera module that causes the imaging abnormality includes: obtaining a first image defect of the light intensity imaging image, and determining the corresponding abnormality type of the camera module according to the first image defect.
[0008] In one embodiment, the first image defect includes a light source shape defect, a light source edge dark line defect, and a light source internal dark line defect, and the abnormality type includes a first abnormality type, a second abnormality type, and a third abnormality type. The light source shape defect corresponds to the first abnormality type, the light source edge dark line defect corresponds to the second abnormality type, and the light source internal dark line defect corresponds to the third abnormality type. The first abnormality type is the position offset between the lens and the image sensor, the second abnormality type is the lens edge defect, and the third abnormality type is the filter structure abnormality.
[0009] In one embodiment, judging whether the camera module has imaging abnormality based on the light intensity imaging map and the preset light intensity imaging map includes: matching the light intensity imaging map with the preset light intensity map, and when the matching degree is less than a set threshold, judging that the camera module has imaging abnormality.
[0010] The present invention also provides a detection device for detecting a camera module, comprising a light source device and a processing device. The light source device is used to generate detection light. The processing device comprises an acquisition unit and a first processing unit. The acquisition unit is used to acquire a light source image captured by the camera module to be tested aiming at the light source device. The first processing unit is used to process the light source image to acquire a light intensity imaging image, and to determine whether the camera module has imaging abnormalities based on the light intensity imaging image and a preset light intensity imaging image. When it is determined that the camera module has imaging abnormalities, the type of abnormality that causes the imaging abnormality of the camera module is acquired based on the light intensity distribution in the light intensity imaging image.
[0011] In one embodiment, the processing device also includes a second processing unit, which is used to process the light intensity imaging map to obtain a red light channel light intensity map, a green light channel light intensity map, and a blue light channel light intensity map, and determine the abnormal channel and its position in the filtering structure of the camera module based on the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map.
[0012] In one embodiment, the first processing unit is used to obtain a first image defect of the light intensity imaging image, and determine the abnormality type of the corresponding camera module according to the first image defect.
[0013] In one embodiment, the first processing unit is used to match the light intensity imaging map with a preset light intensity map, and when the matching degree is less than a set threshold, it is determined that the camera module has imaging abnormality.
[0014] In one embodiment, the light source device includes a first light source, a second light source and a light source mixing component, the light source mixing component includes a light incident surface and a light exiting surface arranged opposite to each other, the first light source and the second light source are arranged toward the light incident surface of the light source mixing component, and the light source mixing component is used to uniformly mix the light of the first light source and the second light source incident from the light incident surface to form a uniform light beam and emit it from the light exiting surface.
[0015] The present invention provides a detection method and device, which uses light intensity imaging to analyze the imaging performance of the camera module to be tested and the abnormal type that causes the abnormal imaging. In addition, the imaging performance of the camera module and the components that cause the abnormal imaging are reflected by the light intensity imaging, which avoids the missed detection caused by the fixed-point detection of the SFR value and improves the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of the structure of a detection device provided in one embodiment of the present invention.
[0018] Figure 2 A schematic diagram of the structure of the camera module.
[0019] Figure 3 for Figure 2 A schematic diagram of the first filtering structure of the camera module is shown.
[0020] Figure 4 for Figure 2 Schematic diagram of the sensor structure of the camera module shown.
[0021] Figure 5a A preset light intensity imaging diagram provided by an embodiment of the present invention.
[0022] Figure 5b This is a light intensity imaging diagram with light source shape defects provided by an embodiment of the present invention.
[0023] Figure 5c This is a light intensity imaging diagram with dark line defects on the edge of a light source provided by an embodiment of the present invention.
[0024] Figure 5d This is a light intensity imaging diagram with dark line defects inside the light source provided by an embodiment of the present invention.
[0025] Figure 6aThis is a visible light intensity imaging diagram provided in one embodiment of the present invention.
[0026] Figure 6b This is a red light channel intensity diagram provided by an embodiment of the present invention.
[0027] Figure 6c This is a light intensity diagram of a first green light channel provided by an embodiment of the present invention.
[0028] Figure 6d This is a second green light channel intensity diagram provided by an embodiment of the present invention.
[0029] Figure 6e A blue light channel intensity diagram provided by an embodiment of the present invention.
[0030] Figure 7 This is a schematic diagram of a detection device detecting the imaging performance of a camera module.
[0031] Figure 8 A schematic flow chart of a detection method provided by an embodiment of the present invention.
[0032] Fig. 9 A schematic flow chart of a detection method provided in yet another embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0034] See also Figure 1 , Figure 1 A schematic structural diagram of a detection device provided in the first embodiment of the present invention.
[0035] A detection device 100 is used to detect a camera module 200. The detection device 100 includes: a light source device 10 and a processing device 50. The light source device 10 is used to generate detection light. The processing device 50 is used to obtain a light source image captured by the camera module 200 to be tested and aligned with the light source device 10, and to process the light source image to detect the imaging performance of the camera module 200. The processing device 50 is connected to the camera module 200 in communication so that the processing device 50 obtains the light source image captured by the camera module 200.
[0036] It can be understood that the communication connection between the processing device 50 and the camera module 200 is for transmitting the light source image captured by the camera module 200, and there is no limit to the connection method between the processing device 50 and the camera module 200. For example, the processing device 50 and the camera module 200 can be connected by wire or wireless means, such as Bluetooth connection, data cable connection, etc.
[0037] Specifically, the light source device 10 includes a first light source 11, a second light source 13 and a light source mixing component 15. The light source mixing component 15 includes a light incident surface 151 and a light exiting surface 153 which are arranged opposite to each other, and the first light source 11 and the second light source 13 are arranged toward the light incident surface 151 of the light source mixing component 15. The light source mixing component 15 is used to uniformly mix the light incident from the light incident surface 151 of the first light source 11 and the second light source 13 to form a uniform light beam and emit it from the light exiting surface 153. The light emitted by the first light source 11 and the second light source 13 is uniformly mixed by the light source mixing component 15 to ensure the quality of the light source image collected by the camera module 200, thereby ensuring the detection accuracy. In this embodiment, the first light source 11 is a D50 light source, and the second light source 13 is an A light source. The D50 light source is a light source that meets the color temperature of 5000K. The A light source is tungsten light, that is, a light source that meets the color temperature of 2856K.
[0038] The processing device 50 includes an acquiring unit 51 , a first processing unit 52 and a second processing unit 53 .
[0039] The acquisition unit 51 is used to acquire a light source image captured by the camera module 200 aiming at the light emitting surface 153 of the light source device 10 .
[0040] The first processing unit 52 is used to process the light source image to obtain a light intensity imaging map, and determine whether the camera module 200 has imaging abnormalities according to the light intensity imaging map; when the camera module 200 is determined to have imaging abnormalities, the abnormality type of the camera module 200 causing the imaging abnormality is obtained according to the light intensity distribution in the light intensity imaging map, and the abnormality type includes the component of the camera module 200 causing the imaging abnormality. Since the first processing unit 52 detects the imaging performance of the camera module 200 through the light intensity in the light intensity imaging map instead of fixed-point detection, the detection accuracy is improved.
[0041] In this embodiment, the first processing unit 52 matches the light intensity imaging map with the preset light intensity imaging map, and when the matching degree is less than the set threshold, it is determined that the imaging of the camera module 200 is abnormal. In the case where the camera module 200 is determined to have imaging abnormality, the first processing unit 52 obtains the component of the camera module 200 that causes the imaging abnormality according to the light intensity imaging map. It can be understood that the first processing unit 52 is not limited to the method of matching the light intensity imaging map with the preset light intensity imaging map to determine whether the imaging of the camera module 200 is abnormal, and it can also be determined according to other methods, such as according to the preset light intensity value corresponding to each pixel, etc.
[0042] The quality of the light intensity imaging diagram is related to the imaging performance of the light source device 10 and the camera module 200. The imaging performance of the camera module 200 is associated with the structure of the camera module 200.
[0043] See also Figure 2 , Figure 2 Schematic diagram of the structure of the camera module. In the camera module 200, the structures associated with its imaging performance include: a lens 31, a first filter structure 33 and a sensor 35. The first filter structure 33 is located between the lens 31 and the image sensor 35. The lens 31, the first filter structure 33 and the sensor 35 are stacked in sequence. The first filter structure 33 is used to filter the light entering the camera module 200 through the lens 31. The image sensor 35 is used to receive light from the first filter structure 33, and convert the received light into an electrical signal, that is, photoelectric conversion, to complete the photosensing action.
[0044] See also Figure 3 , Figure 3 for Figure 2 The first filter structure 33 includes a red light channel 331 ( Figure 3 R in the middle), green channel 333 ( Figure 3 G in the middle) and Blue-ray channel 335 ( Figure 3 The red light channel 331 is used to pass red light, the green light channel 333 is used to pass green light, and the blue light channel 335 is used to pass blue light.
[0045] See also Figure 4 , Figure 4 for Figure 2 Schematic diagram of the sensor structure of the camera module shown. A second filter structure 350 is provided on one side of the image sensor 35 facing the first filter structure 33, and the second filter structure 350 includes a red light channel 351, a green light channel 353 and a blue light channel 355. Correspondingly, the red light channel 351 is used to pass red light, the green light channel 353 is used to pass green light, and the blue light channel 355 is used to pass blue light.
[0046] Specifically, the first processing unit 52 is further used to obtain a first image defect of the light intensity imaging image, and to obtain an abnormality type of the camera module 200 corresponding to the first image defect.
[0047] In this embodiment, Figure 5aThe preset light intensity imaging diagram is a light intensity imaging diagram obtained by collecting a light source image through a normal camera module. In this embodiment, the light source in the preset light intensity imaging diagram is circular, and the light intensity decreases from the center of the circle to the outside. The normal camera module is a non-abnormal camera module, that is, it meets the product qualification requirements. It can be understood that the preset light intensity imaging diagram can be set according to the required normal camera module.
[0048] In this embodiment, the first image defect includes a light source shape defect, a light source edge dark line defect, and a light source internal dark line defect. The first processing unit 52 compares and analyzes the light intensity imaging diagram with the preset light intensity imaging diagram. If the imaging of the camera module 200 is abnormal, the light source in the light intensity imaging diagram has a first image defect, and the light intensity of the first image defect area is lower than the corresponding area in the preset light intensity imaging diagram. It can be understood that the first processing unit 52 processes the light intensity imaging diagram to obtain the light intensity of different areas of the light intensity imaging diagram, and compares and analyzes the light intensity of different areas with the light intensity of the corresponding area in the preset light intensity imaging diagram to determine the first image defect, that is, the corresponding abnormality type.
[0049] The light source shape defect is that the light source in the light intensity imaging diagram is not fully imaged, that is, the light source is only partially imaged. For example, Figure 5b The light source shape in the light intensity imaging diagram is not circular but roughly elliptical. The reason why the camera module 200 causes the light source shape defect may be that the position offset between the lens 31 and the image sensor 35 causes only part of the light source to be imaged on the image sensor 35.
[0050] The light source edge dark line defect is a dark line with a darker color (with weaker light intensity distribution) at the edge of the light source in the light intensity imaging image. For example, Figure 5c The edge of the light source in the light intensity imaging diagram shown shows dark lines. The reason why the camera module 200 causes the dark line defect on the edge of the light source may be that the edge of the lens 31 is defective.
[0051] The dark fringe defect inside the light source is a dark fringe with a darker color (with a weaker light intensity distribution) inside the light source in the light intensity imaging diagram. For example, Figure 5d The light source in the light intensity imaging diagram shown shows dark lines inside. The reason why the camera module 200 causes the dark line defect on the edge of the light source may be that the optical channel of the first filter structure 33 and / or the second filter structure 350 is abnormal, that is, the optical channel coating layer set in the first filter structure 33 and / or the second filter structure 350 is defective.
[0052] The abnormality type is pre-stored in a storage device connected to the processing device 50. The abnormality type includes a first abnormality type, a second abnormality type and a third abnormality type. The first abnormality type is a positional offset between the lens 31 and the image sensor 35. The second abnormality type is an edge defect of the lens 31. The third abnormality type is an optical channel abnormality of the first filter structure 33 and / or the second filter structure 350. A light source shape defect corresponds to the first abnormality type, a light source edge dark pattern defect corresponds to the second abnormality type, and a light source internal dark pattern defect corresponds to the third abnormality type. It can be understood that the abnormality type is not limited to include the first abnormality type, the second abnormality type and the third abnormality type, and it can also include one abnormality type, two abnormality types or more than three abnormality types, and the user can set it according to needs.
[0053] Since the optical channels of the first filter structure 33 and the second filter structure 350 both include a red light channel, a green light channel and a blue light channel, when the first processing unit 52 determines that the camera module 200 is of the third abnormal type, it cannot determine the abnormal position of the first filter structure 33 and / or the second filter structure 350.
[0054] The second processing unit 53 is used to process the light intensity imaging map to obtain the red light channel light intensity map, the green light channel light intensity map and the blue light channel light intensity map when it is determined that the camera module 200 is of the third abnormal type, and determine the abnormal light channels and their abnormal positions of the first filtering structure 33 and / or the second filtering structure 350 in the camera module 200 according to the light intensity maps of each light channel.
[0055] In this embodiment, the second processing unit 53 compares and analyzes the acquired red light channel intensity map with the preset red light channel intensity map, compares and analyzes the acquired green light channel intensity map with the preset green light channel intensity map, and compares and analyzes the acquired blue light channel intensity map with the preset blue light channel intensity map, thereby determining abnormal light channel intensity maps in the red light channel intensity map, the green light channel intensity map, and the blue light channel intensity map. The abnormal light channel intensity map is the second image defect that appears in the light channel intensity map, and the second image defect includes stains (bad spots), dark lines, etc. The second processing unit 53 determines the abnormal position of the first filter structure 33 and / or the second filter structure 350 according to the position of the second image defect, which facilitates the subsequent investigation of the causes of product defects, such as manufacturing machines, manufacturing materials, etc. There is no second image defect in the preset red light channel intensity map, the preset green light channel intensity map, and the preset blue light channel intensity map.
[0056] The second processing unit 53 compares and analyzes the acquired red light channel intensity map with the preset red light channel intensity map. If the second processing unit 53 detects a stain at a certain position in the red light channel intensity map, it can determine the abnormal red light channel and its position in the first filter structure 33 and / or the second filter structure 350 in the camera module 200. Similarly, the second processing unit 53 can determine the abnormal green light channel and its position in the first filter structure 33 and / or the second filter structure 350 in the camera module 200 through the stain and stain position of the green light channel intensity map; the second processing unit 53 determines the abnormal blue light channel and its position in the first filter structure 33 and / or the second filter structure 350 in the camera module 200 through the stain and stain position of the blue light channel intensity map.
[0057] In one embodiment, the green light channel includes a first green light (Gr) channel and a second green light (Gb) channel, and the green light channel intensity map includes a first green light (Gr) channel intensity map and a second green light (Gb) channel intensity map. Figure 6a-6e , Figure 6a is a visible light intensity imaging diagram provided in one embodiment of the present invention, Figure 6a Region a in the figure is stained. Figure 6b-Figure 6e The light intensity images of each optical channel all have spots in the corresponding areas, and the second processing unit 53 determines that the first filter structure 33 and / or the second filter structure 350 is abnormal. Figure 6a-6e This is only for illustrative purposes and is not a diagram of each primary color light channel in actual applications.
[0058] It can be understood that if a more obvious second image defect appears in one of the red light channel intensity map, the blue light channel intensity map, and the green light channel intensity map, the second processing unit 53 determines the abnormal light channel and its position of the first light filtering structure 33 and / or the second light filtering structure 350. For example, if a more obvious second image defect appears in the green light channel intensity map compared to the red light channel intensity map and the blue light channel intensity map, the second processing unit 53 determines the position of the abnormal green light channel of the first light filtering structure 33 and / or the second light filtering structure 350.
[0059] In one embodiment, the second processing unit 53 is not limited to processing the light intensity imaging map to obtain the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map when determining that the camera module 200 is of the third abnormal type. The second processing unit 53 can process the light intensity imaging map to obtain the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map after the first processing unit 52 obtains the light intensity imaging map, so as to speed up the processing speed of the processing device 100.
[0060] In this embodiment, the distance between the light emitting surface 153 of the light source device 10 and the camera module 200 is 5 mm. It is understood that the distance between the light emitting surface 153 and the camera module 200 is not limited to 5 mm, as long as it can obtain the detection light generated by the light source device 10.
[0061] It can be understood that the type and quantity of the light sources in the light source device 10 are not limited. For example, the light source of the light source device 10 can adopt at least one of the D50 light source, the D65 light source, the D75 light source or the A light source, and the uniform mixing component 15 in the light source device 10 can be omitted.
[0062] Furthermore, in order to avoid interference from other light in the external environment, the camera module detection using the detection device provided by the present invention should be performed in a dark environment. Figure 7 As shown, the light source device 10 and the camera module 200 to be tested are placed in a dark box 70 to eliminate interference from external ambient light. It is understandable that the light source device 10 and the camera module 200 to be tested are not limited to being placed in a dark box 70. For example, the detection device can also be placed in a dark room.
[0063] The following further describes the detection device 100 detecting the camera module 200. The light source device 10 emits detection light. The camera module 200 is aligned with the light source device 10 to capture a light source image. The acquisition unit 51 of the processing device 50 acquires the light source image captured by the camera module 200. The first processing unit 52 of the processing device 50 processes the light source image to acquire a light intensity imaging image. The first processing unit 52 determines whether the camera module 200 has imaging abnormalities based on the light intensity imaging image.
[0064] In this embodiment, the first processing unit 52 determines whether the imaging of the camera module 200 is abnormal by matching the light intensity imaging image with the preset light intensity map. When the matching degree between the light intensity imaging image and the preset light intensity map is less than the set threshold, the imaging of the camera module 200 is determined to be abnormal. When the camera module 200 is determined to be abnormal, the first processing unit 52 obtains the abnormal type of the camera module 200, which includes the component of the camera module 200 that causes the imaging abnormality.
[0065] The second processing unit 53 processes the light intensity imaging image to obtain a red light channel light intensity image, a green light channel light intensity image, and a blue light channel light intensity image, and determines the light channel position of the filter structure in the camera module 200 according to each light channel light intensity image.
[0066] In one embodiment, the processing device 50 further includes an output unit for outputting a light source image, a light intensity imaging map, and light intensity imaging maps of each channel, so as to facilitate the determination of abnormal light channel light intensity maps in the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map by human eyes, thereby determining the optical channel and its position causing imaging abnormality in the filter structure of the camera module 200 and / or the image sensor 35. The output unit may include a wired interface, a wireless interface, etc., so as to facilitate the export of the light intensity imaging map and / or the channel light intensity map obtained by the first processing unit 52 and / or the second processing unit 53.
[0067] In one embodiment, the camera module 200 is an infrared camera module. In this case, the processing device 200 can omit the second processing unit 53, that is, there is no need to further process the light intensity imaging diagram to perform optical channel analysis. This is because the infrared camera module does not have a red light channel, a green light channel, and a blue light channel, but a single structure, and the filter structure in the infrared camera module includes an infrared dot matrix. When the camera module 200 is an infrared camera module, the light source device 10 can use a Dolan light source alone.
[0068] In one embodiment, the camera module 200 is a black and white camera module. In this case, the processing device 200 can omit the second processing unit 53, that is, there is no need to further process the light intensity imaging diagram to perform light channel analysis. This is because the black and white camera module does not have a red light channel, a green light channel, and a blue light channel, but a single structure. When the camera module 200 is a black and white camera module, the light source device 10 can use a D50 light source alone.
[0069] In one embodiment, the camera module 200 may omit the first filter structure 33 , so that the abnormal light channel and its position on the second filter structure 350 may be directly determined by the first processing unit 52 and the second processing unit 53 .
[0070] In one embodiment, the first filter structure 33 and the image sensor 35 in the camera module 200 can be tested separately. For example, when the first filter structure 33 in the camera module 200 needs to be tested, the image sensor 35 is replaced with a normal image sensor (an image sensor that meets product requirements); when the second filter structure 350 of the image sensor 35 in the camera module 200 needs to be tested, the first filter structure 33 is replaced with a normal filter structure (a filter structure that meets product requirements).
[0071] See also Figure 8 , Figure 8 The present invention also provides a detection method for detecting a camera module, the detection method comprising the following steps:
[0072] S11, obtaining a light source image captured by the camera module to be tested aiming at the light source device.
[0073] S12, processing the light source image to obtain a light intensity imaging image.
[0074] S13. Determine whether the imaging of the camera module is abnormal based on the light intensity imaging map and the preset light intensity map. If yes, that is, the imaging of the camera module is abnormal, then proceed to step S14; if no, that is, the imaging of the camera module is not abnormal, then end.
[0075] In this embodiment, the light intensity imaging map is matched with the preset light intensity imaging map. When the matching degree is less than the set threshold, it is determined that the imaging of the camera module is abnormal.
[0076] S14. Determine the type of abnormality of the camera module that causes the abnormal imaging according to the light intensity of the light intensity imaging image.
[0077] By comparing and analyzing the light intensity imaging image with the preset light intensity imaging image, due to abnormal imaging of the camera module, the light source in the light intensity imaging image has a first image defect, and the light intensity of the first image defect area is lower than that of the corresponding area in the preset light intensity imaging image.
[0078] The first image defect includes light source shape defect, light source edge dark pattern defect and light source internal dark pattern defect. Light source shape defect is that the light source in the light intensity imaging diagram is not fully imaged, that is, the light source is only partially imaged, for example, Figure 5b The light source shape in the light intensity imaging diagram shown is not circular but roughly elliptical. The reason why the camera module causes the light source shape defect may be that the position offset between the camera module lens and the image sensor of the camera module causes only part of the light source to be imaged on the image sensor.
[0079] The light source edge dark fringe defect is a dark fringe with a darker color (with weaker light intensity distribution) at the edge of the light source in the light intensity imaging image. For example, Figure 5c The edge of the light source in the light intensity imaging diagram shown shows dark lines. The reason why the camera module causes the dark line defect on the edge of the light source may be that the edge of the lens of the camera module is defective.
[0080] The dark fringe defect in the middle of the light source is a dark fringe with a darker color (with a weaker light intensity distribution) inside the light source in the light intensity imaging diagram, for example, Figure 5d The light source in the light intensity imaging diagram shown shows dark lines inside. The reason why the camera module causes dark lines on the edge of the light source may be that the filter structure and / or the optical channel of the image sensor of the camera module is abnormal, that is, the coating layer of the optical channel set in the filter structure and / or the image sensor is defective.
[0081] The preset abnormality types include the first abnormality type, the second abnormality type and the third abnormality type. The first abnormality type is the position offset between the lens of the camera module and the image sensor. The second abnormality type is the edge defect of the lens of the camera module. The third abnormality type is the optical channel abnormality of the filter structure of the camera module and / or the image sensor. The light source shape defect corresponds to the first abnormality type, the light source edge dark pattern defect corresponds to the second abnormality type, and the light source internal dark pattern defect corresponds to the third abnormality type.
[0082] In one embodiment, whether the first image defect exists in the light intensity imaging image can be determined directly by human eyes.
[0083] S15, processing the light intensity imaging image to obtain a red light channel light intensity image, a green light channel light intensity image, and a blue light channel light intensity image.
[0084] S16. Determine an abnormal position of the filter structure of the camera module according to the red light channel light intensity map, the green light channel light intensity map, and the blue light channel light intensity map.
[0085] In this embodiment, the acquired red light channel intensity map is compared and analyzed with the preset red light channel intensity map, the acquired green light channel intensity map is compared and analyzed with the preset green light channel intensity map, and the acquired blue light channel intensity map is compared and analyzed with the preset blue light channel intensity map, so as to determine the abnormal light channel intensity maps in the red light channel intensity map, the green light channel intensity map, and the blue light channel intensity map. The abnormal light channel intensity map is the second image defect that appears in the light channel intensity map, and the second image defect includes stains (bad spots), dark lines, etc. The position of the abnormal light channel of the filter structure and / or the image sensor is determined according to the position of the second image defect, which facilitates the subsequent investigation of the causes of product defects, such as manufacturing machines, manufacturing materials, etc. There is no second image defect in the preset red light channel intensity map, the preset first green light channel intensity map, the preset second green light channel intensity map, and the preset blue light channel intensity map.
[0086] In one embodiment, the abnormal light channel intensity map in the red light channel intensity map, the green light channel intensity map, and the blue light channel intensity map can be determined by the human eye to determine the abnormal light channel and its position in the filter structure of the camera module and / or the image sensor.
[0087] The detection method provided by one embodiment of the present invention can analyze whether the camera module has imaging abnormalities and the abnormal components that cause the abnormal imaging of the camera module from the light intensity imaging map and the optical channel light intensity map, thereby achieving the purpose of detecting whether the camera module is abnormal and the cause of the abnormality, and improving the accuracy of the detection results.
[0088] In one embodiment, steps S15 and S16 may be omitted, for example, when S14 is able to determine that the abnormal component causing the imaging abnormality of the camera module is of the first abnormal type and the second abnormal type.
[0089] In one embodiment, when the camera module is an infrared camera module or a black and white abnormal module, steps S15 and S16 can be omitted.
[0090] In one embodiment, see Fig. 9 A detection method for detecting a camera module comprises the following steps:
[0091] S21, obtaining a light source image captured by the camera module to be tested aiming at the light source device.
[0092] S22, processing the light source image to obtain a light intensity imaging image.
[0093] S23, judging whether the imaging of the camera module is abnormal according to the light intensity imaging image and the preset light intensity imaging image.
[0094] S24, when it is determined that the camera module has imaging abnormality, the abnormality type of the camera module causing the imaging abnormality is obtained according to the light intensity distribution in the light intensity imaging map.
[0095] The present invention also provides a processing device for executing the above-mentioned detection method, and the processing device includes an input device, an output device, at least one processor (such as a CPU) and at least one memory. Among them, these components are communicatively connected via one or more buses. Those skilled in the art will understand that the structure of the processing device does not constitute a limitation on the embodiments of the present invention. It can be a bus-shaped structure or a star-shaped structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In an embodiment of the present invention, the input device may include a wired interface, a wireless interface, etc., which can be used to obtain signals, data, etc. The output device may include a wired interface, a wireless interface, etc., which can be used to send signals to other terminal devices, transmit data, etc.
[0096] In the embodiment of the present invention, the memory may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory may also be at least one storage device located away from the aforementioned processor. The memory as a computer storage medium may include an operating system, an application program, and data, etc., which is not limited in the embodiment of the present invention.
[0097] The modules or sub-modules in all the embodiments of the present invention may be implemented by a general integrated circuit, such as a CPU, or by an ASIC (Application Specific Integrated Circuit).
[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0099] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A detection method for detecting a camera module, characterized in that: The following steps are involved: Acquire a light source image captured by the camera module to be tested aiming at the light source device; Processing the light source image to obtain a light intensity imaging image; According to the light intensity imaging diagram and the preset light intensity imaging diagram, determining whether the imaging of the camera module is abnormal; When it is determined that the camera module has imaging abnormality, the abnormality type of the camera module causing the imaging abnormality is obtained according to the light intensity distribution in the light intensity imaging map; The obtaining of the abnormality type of the camera module causing the abnormal imaging includes: obtaining a first image defect of the light intensity imaging image, and determining the corresponding abnormality type of the camera module according to the first image defect; The first image defect includes a light source shape defect, a light source edge dark line defect, and a light source internal dark line defect. The abnormality type includes a first abnormality type, a second abnormality type, and a third abnormality type. The light source shape defect corresponds to the first abnormality type, the light source edge dark line defect corresponds to the second abnormality type, and the light source internal dark line defect corresponds to the third abnormality type. The first abnormality type is a position offset between the lens and the image sensor, the second abnormality type is a lens edge defect, and the third abnormality type is a filter structure abnormality.
2. The detection method according to claim 1, characterized in that The detection method further comprises the following steps: When it is determined that the camera module is of the third abnormal type, the light intensity imaging map is processed to obtain the red light channel light intensity map, the green light channel light intensity map and the blue light channel light intensity map; and the abnormal light channel and its position of the filtering structure of the camera module are determined according to the red light channel light intensity map, the green light channel light intensity map and the blue light channel light intensity map.
3. The detection method according to claim 1, characterized in that The determining whether the camera module has imaging abnormality based on the light intensity imaging map and the preset light intensity imaging map includes: matching the light intensity imaging map with the preset light intensity map, and when the matching degree is less than a set threshold, determining that the camera module has imaging abnormality.
4. A detection device for detecting a camera module, characterized in that: include: A light source device, used for generating detection light; A processing device comprising: An acquisition unit, used for acquiring a light source image captured by the camera module to be tested aiming at the light source device; a first processing unit, configured to process the light source image to obtain a light intensity imaging image, and determine whether the camera module has imaging abnormality according to the light intensity imaging image and a preset light intensity imaging image; and, if the camera module is determined to have imaging abnormality, obtain the type of abnormality of the camera module that causes the imaging abnormality according to the light intensity distribution in the light intensity imaging image; The first processing unit is specifically used to obtain a first image defect of the light intensity imaging image, and determine the abnormality type of the corresponding camera module according to the first image defect; The first image defect includes a light source shape defect, a light source edge dark line defect, and a light source internal dark line defect. The abnormality type includes a first abnormality type, a second abnormality type, and a third abnormality type. The light source shape defect corresponds to the first abnormality type, the light source edge dark line defect corresponds to the second abnormality type, and the light source internal dark line defect corresponds to the third abnormality type. The first abnormality type is a position offset between the lens and the image sensor, the second abnormality type is a lens edge defect, and the third abnormality type is a filter structure abnormality.
5. The detection device according to claim 4, characterized in that: The processing device also includes a second processing unit, which is used to process the light intensity imaging map to obtain a red light channel light intensity map, a green light channel light intensity map and a blue light channel light intensity map when it is determined that the camera module is of the third abnormal type; and determine the abnormal light channel and its position in the filtering structure of the camera module according to the red light channel light intensity map, the green light channel light intensity map and the blue light channel light intensity map.
6. The detection device according to claim 4, characterized in that: The first processing unit is used to match the light intensity imaging map with a preset light intensity map, and when the matching degree is less than a set threshold, it is determined that the camera module has imaging abnormality.
7. The detection device according to claim 4, characterized in that: The light source device includes a first light source, a second light source and a light source mixing component, the light source mixing component includes a light incident surface and a light exiting surface arranged opposite to each other, the first light source and the second light source are arranged toward the light incident surface of the light source mixing component, and the light source mixing component is used for uniformly mixing the light of the first light source and the second light source incident from the light incident surface to form a uniform light beam and emit it from the light exiting surface.
Citation Information
Patent Citations
Intelligent video image diagnosis system and method
CN102006459A
Camera anomaly detection and method and device
CN107705334A