Method and device for detecting abnormity of CMOS (Complementary Metal-Oxide-Semiconductor Transistor) image sensor

By designing an anomaly detection device and method for CMOS image sensors, using uniform panel light source and box filter technology, combined with a connected domain labeling algorithm, automated anomaly detection of CMOS image sensors is realized, which solves the subjectivity of detection methods in the existing technology. and insufficient accuracy problems, improving detection efficiency and accuracy.

CN118612413APending Publication Date: 2024-09-06HEFEI JUNDA HI TECH INFORMATION TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410786877.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

There is a lack of anomaly detection methods for CMOS image sensors in the existing technology, which affects imaging quality and system stability. Moreover, commonly used detection methods are highly subjective and lack screening standards.

Method used

A device including a detachable CMOS camera and a uniform panel light source is designed. It collects images by adjusting the exposure time, performs box filtering and differential image processing, and combines the connected domain labeling algorithm to automatically identify abnormal areas to achieve abnormal detection of CMOS image sensors.

Benefits of technology

It realizes automated anomaly detection of CMOS image sensors, quickly selects qualified sensors, reduces subjectivity, and improves detection accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612413A
    Figure CN118612413A
Patent Text Reader

Abstract

The invention discloses a method and a device for detecting abnormity of a CMOS (Complementary Metal Oxide Semiconductor) image sensor, and relates to the field of image sensor detection. According to the device and the method for detecting the abnormity of the CMOS image sensor, the CMOS image sensor abnormity detection device is designed to collect uniform light source images, and abnormal images are automatically identified by combining an image processing technology, so that the abnormity detection of the CMOS image sensor is realized, and the effect of rapidly screening qualified sensors is achieved; the problem that the final imaging quality of a camera and the stability of a system are influenced due to the fact that the CMOS image sensor anomaly detection is relatively high in subjectivity and does not form a standard for screening the advantages and disadvantages of the CMOS is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image sensor detection, and in particular to a method and a device for detecting abnormalities of a CMOS image sensor. Background Art

[0002] There are many methods for detecting sensor abnormalities. CN113340466A invention discloses a method for detecting anomalies of an exhaust temperature sensor using a sleeve and other devices; CN114244751A invention provides a method and system for detecting anomalies in a wireless sensor network, which analyzes the monitoring data sequence of any sensor in the wireless sensor network to determine whether the corresponding sensor is an abnormal sensor; CN110715678A invention discloses a method and device for detecting anomalies of a sensor, which, after obtaining the current data of a target sensor inside a battery pack in a target vehicle, determines whether the target sensor is abnormal by comparing the current data of the target sensor with the target data.

[0003] CMOS (Complementary Metal Oxide Semiconductor) image sensors have been widely used in many fields due to their advantages such as miniaturization, low power consumption, high integration and cost-effectiveness. However, CMOS image sensors may cause noise, bad pixels, stripes and other problems in the image due to various reasons such as defects in the image sensor itself and circuit design, which in turn affects the imaging quality and system performance. Therefore, in order to ensure that the image sensor can work properly, it is very important to perform anomaly detection. Analyzing the collected images is a favorable means to determine whether there is a problem with the CMOS image sensor.

[0004] CN104243978A invention discloses an image anomaly detection device and method, including: an acquisition module, used for synchronously acquiring image frames displayed by the detected display terminal, the resolution of the acquisition module is greater than the display resolution of the display terminal; a comparison module, used for comparing the acquired image frames with the preset reference frames, and judging whether there are any anomalies in the acquired image frames according to the comparison results. CN106951899A invention discloses an anomaly detection method based on image recognition, which requires first extracting the detected target image from the grayscale image, and completing anomaly detection based on shape features; CN106303158A invention discloses a stripe anomaly detection method in a video image, performing traditional image processing on the images in the video sequence, and then performing line projection respectively to obtain two groups of projection data, and then performing variance calculation on the two groups of projection data, and obtaining the variance ratio of the projection data obtained by denoising and the projection data obtained without denoising, to judge whether there are horizontal stripes. However, there are few anomaly detection devices specifically for CMOS image sensors in the existing patents, and most of them are for detecting sensor problems such as temperature, humidity, and pressure. The common method of detecting abnormalities in CMOS image sensors is to assemble the CMOS on the camera and then visually determine whether the image is abnormal through PC software. This method is highly subjective and does not form a screening standard for the quality of CMOS, which in turn affects the final imaging quality of the camera and the stability of the system. Summary of the invention

[0005] A device for detecting abnormality of a CMOS image sensor, comprising:

[0006] A base, wherein a plurality of threaded holes are formed through the base, and the threaded holes are distributed in a rectangular array on the base, and the middle part of the top side of the base is connected to the collimated black tube through a support frame; a manual lifting platform is provided on one side of the top of the base, and a detachable CMOS camera is placed in the middle part of the top side of the manual lifting platform; one end of the quasi-black straight tube is close to the detachable CMOS camera, and the other side of the top of the base is connected to the uniform panel light source through a support frame, and one end of the quasi-black straight tube is tightly fitted with the detachable uniform panel light source, and the top rectangular right angle of the base is threadedly connected to the structural frame; the detachable CMOS camera is connected to the PC end through a camera connection cable.

[0007] The CMOS image sensor at the front end of the detachable CMOS camera is detachable, which is convenient for rapid replacement of the sensor for detection.

[0008] The collimating black tube is made of black light-absorbing material inside and outside to reduce the interference of other stray light on CMOS imaging and improve the collimation of light.

[0009] The uniform panel light source is a monochromatic panel light source with a uniformity of >98%, and is used to provide continuous illumination, so that each pixel of the image sensor can obtain the same illumination intensity, reducing the shadow effect.

[0010] A method for detecting abnormality in a CMOS image sensor based on the abnormality detection device described above comprises the following steps:

[0011] W1, adjust the exposure time and collect different sequence images;

[0012] W2. Perform box filtering on the collected image, subtract the collected original image from the box filtered image, and obtain the difference image:

[0013] Suppose the original image is img, the filtered image is imgf, and the difference image imgc1 is obtained by subtracting img from imgf, which highlights the abnormally bright area;

[0014] Subtract imgf from img to get the difference image imgc2, which highlights the abnormal dark areas;

[0015] Finally, imgc = imgc1 + imgc2 to obtain a difference image with obvious bright and dark abnormal areas;

[0016] W3. Binarize the difference image:

[0017] Calculate the average grayscale of the original image, recorded as M;

[0018] Calling the calculation method of abnormal pixel grayscale threshold, determining the abnormal pixel grayscale threshold based on the original image average grayscale M and the calculation method, and recording the abnormal pixel grayscale threshold as N; the calculation method of the abnormal pixel grayscale threshold is N=Mxa%, and a is a preset value;

[0019] The pixels whose pixel values ​​in the difference image are greater than the abnormal pixel grayscale threshold are assigned a value of 1, and the pixels whose pixel values ​​are less than or equal to the abnormal pixel grayscale threshold are assigned a value of 0, so as to obtain a binary image of the difference image;

[0020] W4. Use the connected domain labeling algorithm to process the binary image:

[0021] The foreground pixels are scanned and marked by a connected domain marking algorithm to obtain at least one connected domain; the area of ​​each connected domain is calculated, and when the sum of the pixels in the connected domain is greater than 2, the connected domain with the sum of the pixels greater than 2 is determined to be an abnormal area, that is, the CMOS image sensor that collects the image has an abnormality.

[0022] In step W1, a camera equipped with a CMOS image sensor to be detected is placed in a darkroom environment, which can only receive uniform collimated light with a certain light intensity; a PC is placed outside the darkroom, and the camera is connected to the camera through the camera acquisition software to preview the image.

[0023] In the step W1, the minimum exposure time allowed by the camera is recorded as Tmin, and the exposure time corresponding to the overexposed image captured by the camera is recorded as the maximum exposure time Tmax; the exposure time of the camera is set to the minimum exposure time Tmin, the corresponding image is captured, the exposure time is increased at equal intervals and the captured image under the corresponding exposure time is obtained, and multiple grayscale images with different exposure times between Tmin and Tmax are obtained in turn.

[0024] After the difference image is binarized in step W4, the foreground pixels represent abnormal pixels detected and assigned a value of 1 after step W3, and the background pixels represent normal pixels detected and assigned a value of 0 after step W3.

[0025] A method and device for detecting abnormality of a CMOS image sensor according to the present invention have the following beneficial effects:

[0026] 1. The present invention proposes a device and method for detecting abnormalities in CMOS image sensors. The device is designed to collect images of uniform light sources, and then the abnormal images are automatically identified in combination with image processing technology, thereby achieving the effect of detecting abnormalities in CMOS image sensors and quickly screening qualified sensors.

[0027] 2. The detachable CMOS camera front-end image sensor in the device is detachable, which is convenient for quick replacement of sensor detection.

[0028] 3. By binarizing the difference image, marking the connected domains, and visualizing each connected domain, the anomaly detection of the collected image can be easily achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a schematic diagram of a CMOS anomaly detection device;

[0030] Figure 2 It is a CMOS anomaly detection flow chart;

[0031] Figure 3 This is the difference image histogram when the average grayscale of the original image is about 195;

[0032] Figure 4 The experimental image acquisition is Figure 2 The result of the step processing;

[0033] Figure 5 It is the comparison of experimental CMOS image anomaly detection results. DETAILED DESCRIPTION

[0034] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0035] A device for detecting abnormality of a CMOS image sensor, comprising:

[0036] The base 7 is characterized in that a plurality of threaded holes are formed through the base 7, and the threaded holes are distributed in a rectangular array on the base 7; the middle part of the top side of the base 7 is connected to the collimated black tube 3 through a support frame; a manual lifting platform 6 is provided on the top of the base 7, and the manual lifting platform 6 can be threadedly connected to the base 7 to ensure the stability of the position of the manual lifting platform 6; a detachable CMOS camera 1 is placed in the middle part of the top side of the manual lifting platform 6; one end of the quasi-black straight tube 3 is close to the detachable CMOS camera 1, and the other side of the top of the base 7 is connected to the uniform panel light source 2 through a support frame, one end of the quasi-black straight tube 3 is tightly fitted with the detachable uniform panel light source 2, and the top rectangular right angle of the base 7 is threadedly connected to the structural frame 4; the detachable CMOS camera 1 is connected to the PC end through a camera connection cable 5.

[0037] In the embodiment of the present application, black light-absorbing cloth is covered around and on the top of the structural frame 4 to create a darkroom environment to ensure that the image acquisition process is not disturbed by external factors; the CMOS image sensor to be detected is assembled to the front end of the detachable CMOS camera 1, the detachable CMOS camera 1 is placed at the center of the manual lifting platform 6, and the height of the lifting platform is adjusted to ensure that the CMOS image sensor and the center of the quasi-black straight tube are at the same height, the cross-sections of the two are parallel, and the CMOS image sensor is as close to the opening at the other end of the collimated black tube as possible; the central area of ​​the uniform panel light source 2 is tightly fitted with one end of the collimated black tube 3, and the other areas are blocked by the black light-absorbing cloth; the detachable CMOS camera 1 is connected to the PC using the camera connection cable 5, and the detachable CMOS camera 1 can be controlled by the PC without a lens to complete subsequent image acquisition and abnormality analysis.

[0038] The front-end CMOS image sensor of the detachable CMOS camera (1) is detachable, which facilitates rapid replacement of the sensor for detection.

[0039] The collimating black tube (3) is made of black light-absorbing material inside and outside to reduce the interference of other stray light on CMOS imaging and improve the collimation of light.

[0040] The uniform panel light source (2) is a monochromatic panel light source with a uniformity of more than 98%, and is used to provide continuous illumination, so that each pixel of the image sensor can obtain the same illumination intensity, thereby reducing the shadow effect.

[0041] A method for detecting abnormality in a CMOS image sensor based on the abnormality detection device described above comprises the following steps:

[0042] W1, adjust the exposure time and collect different sequence images;

[0043] After the above steps are completed, the images of the CMOS to be detected are collected, and then different grayscale sequence images are analyzed in sequence to realize automatic recognition of abnormal images. Figure 2 The steps are processed and the CMOS abnormality detection result is output according to the area judgment.

[0044] W2. Perform box filtering on the captured image. Box filtering uses a uniformly weighted template. The center point of the template and its surrounding points have the same weight. Since the box filter is a uniformly weighted filter, it has the same suppression or enhancement effect on high-frequency signals and low-frequency signals. The filter window size mainly depends on the image processing objectives and image characteristics. Subtract the original image from the box-filtered image to obtain the difference image:

[0045] Suppose the original image is img, the filtered image is imgf, and the difference image imgc1 is obtained by subtracting img from imgf, which highlights the abnormally bright area;

[0046] Subtract imgf from img to get the difference image imgc2, which highlights the abnormal dark areas;

[0047] Finally, imgc = imgc1 + imgc2 to obtain a difference image with obvious bright and dark abnormal areas;

[0048] W3. Binarize the difference image:

[0049] Calculate the average grayscale of the original image, recorded as M;

[0050] Calling a calculation method for an abnormal pixel grayscale threshold, determining an abnormal pixel grayscale threshold based on the original image average grayscale M and the calculation method, and recording the abnormal pixel grayscale threshold as N;

[0051] The calculation method of the abnormal pixel grayscale threshold is N=Mxa%, a is a preset value, and in the present invention, N=Mx20%, such as Figure 3 As shown, the average grayscale of the original image collected by the experimental detection of the present invention is about 195, the grayscale of the normal response pixels in the difference image histogram is concentrated in the grayscale range of 0-40, and a small number of abnormal pixels are greater than 40 (195x20%);

[0052] The pixels whose pixel values ​​in the difference image are greater than the abnormal pixel grayscale threshold are assigned a value of 1, and the pixels whose pixel values ​​are less than or equal to the abnormal pixel grayscale threshold are assigned a value of 0, so as to obtain a binary image of the difference image;

[0053] W4. Use the connected domain labeling algorithm to process the binary image:

[0054] The foreground pixels are scanned and marked by a connected domain marking algorithm to obtain at least one connected domain; the area of ​​each connected domain is calculated, and when the sum of the pixels in the connected domain is greater than 2, the connected domain with the sum of the pixels greater than 2 is determined to be an abnormal area, that is, the CMOS image sensor that collects the image has an abnormality.

[0055] In an embodiment of the present application, the foreground pixels are scanned and marked by a connected domain marking algorithm, and the surrounding adjacent pixels are searched to see if they are marked. If marked, they are added to the current connected domain. According to the above steps, at least one connected domain can be obtained; each connected domain represents a detected abnormal area, and the area of ​​the marked connected domain is calculated in turn. When there is a pixel sum>2, it means that the connected domain is not an isolated point and can be judged as an abnormal area. The conditions for detecting anomalies are met, indicating that the detection CMOS has an abnormality.

[0056] After the above steps, the collected image sequence is automatically identified in sequence, and the detection results of each grayscale of the CMOS are output. If there is no abnormality in the detection results of all image sequences, the CMOS is qualified. Even if there is only an abnormality in the detection result under one grayscale, the CMOS is still classified as unqualified.

[0057] Figure 4 To collect images, press Figure 2 The result of step processing. In the present invention, a larger filter window (21x21) is selected to suppress image noise, reduce excessive influence caused by local extreme values, and average effective details into a wider set of pixels. The original image is a background image with uniform grayscale after box filtering. After subtraction, the abnormal black lines of the original image are more obvious. Then, it is binarized and connected domains are marked, and each connected domain is visualized. The sum of pixels of multiple connected domains is greater than 2, indicating that the detection result of the collected image is abnormal.

[0058] Figure 5 They are the abnormal image detection results. The image on the left is the original image, and the image on the right is the automatic recognition result. The detection result of 0 in the title indicates that the image is abnormal and the detection fails. The result of 1 indicates that the detection result passes.

[0059] In step W1, a camera equipped with a CMOS image sensor to be detected is placed in a darkroom environment, which can only receive uniform collimated light with a certain light intensity; a PC is placed outside the darkroom, and the camera is connected to the camera through the camera acquisition software to preview the image.

[0060] In the step W1, the minimum exposure time allowed by the camera is recorded as Tmin, and the exposure time corresponding to the overexposed image captured by the camera is recorded as the maximum exposure time Tmax; the exposure time of the camera is set to the minimum exposure time Tmin, the corresponding image is captured, the exposure time is increased at equal intervals and the captured image under the corresponding exposure time is obtained, and multiple grayscale images with different exposure times between Tmin and Tmax are obtained in turn.

[0061] Specifically, the minimum exposure time allowed by the camera is Tmin, the exposure time of the camera is set to the minimum exposure time Tmin, the corresponding image is collected, the exposure time is increased at equal intervals and the collected image under the corresponding exposure time is obtained until the image is overexposed, the maximum exposure time Tmax is obtained, and the collected image under the maximum exposure time is obtained; in the embodiment of the present application, at least 20 images with different exposure times between Tmin and Tmax are collected; the process can refer to the "Image Detection Method for Optoelectronic Performance of Visual Module" (GB / T 41310-2022). By analyzing the bright field sequence images of different grayscales of CMOS, it can be detected whether the images of the sensor within the response range are normal.

[0062] After the difference image is binarized in step W4, the foreground pixels represent abnormal pixels detected and assigned a value of 1 after step W3, and the background pixels represent normal pixels detected and assigned a value of 0 after step W3.

[0063] The present invention is not limited to the above-mentioned specific implementation modes. Various changes made by ordinary technicians in this field based on the above-mentioned concepts without creative work are all within the protection scope of the present invention.

Claims

1. A device for detecting abnormality of a CMOS image sensor, characterized in that: include: The base (7) is characterized in that a plurality of threaded holes are formed through the base (7), the threaded holes are distributed in a rectangular array on the base (7), and the middle part of the top side of the base (7) is connected to the collimated black tube (3) through a support frame; a manual lifting platform (6) is provided on one side of the top of the base (7), and a detachable CMOS camera (1) is placed in the middle part of the top side of the manual lifting platform (6); one end of the quasi-black straight tube (3) is close to the detachable CMOS camera (1), and the other side of the top of the base (7) is connected to the uniform panel light source (2) through a support frame, one end of the quasi-black straight tube (3) is tightly fitted with the detachable uniform panel light source (2), and the top rectangular right angle of the base (7) is threadedly connected to the structural frame (4); the detachable CMOS camera (1) is connected to the PC end through a camera connection cable (5).

2. The device for detecting abnormality of a CMOS image sensor according to claim 1, characterized in that: The front-end CMOS image sensor of the detachable CMOS camera (1) is detachable, which facilitates rapid replacement of the sensor for detection.

3. The device for detecting abnormality of a CMOS image sensor according to claim 1, characterized in that: The collimating black tube (3) is made of black light-absorbing material inside and outside to reduce the interference of other stray light on CMOS imaging and improve the collimation of light.

4. The device for detecting abnormality of a CMOS image sensor according to claim 1, characterized in that: The uniform panel light source (2) is a monochromatic panel light source with a uniformity of more than 98%, and is used to provide continuous illumination, so that each pixel of the image sensor can obtain the same illumination intensity, thereby reducing the shadow effect.

5. A method for detecting abnormality in a CMOS image sensor based on the abnormality detection device according to any one of claims 1 to 3, characterized in that: The method comprises the following steps: W1, adjust the exposure time and collect different sequence images; W2. Perform box filtering on the collected image, subtract the collected original image from the box filtered image, and obtain the difference image: Suppose the original image is img, the filtered image is imgf, and the difference image imgc1 is obtained by subtracting img from imgf, which highlights the abnormally bright area; Subtract imgf from img to get the difference image imgc2, which highlights the abnormal dark areas; Finally, imgc = imgc1 + imgc2 to obtain a difference image with obvious bright and dark abnormal areas; W3. Binarize the difference image: Calculate the average grayscale of the original image, recorded as M; Calling the calculation method of abnormal pixel grayscale threshold, determining the abnormal pixel grayscale threshold based on the original image average grayscale M and the calculation method, and recording the abnormal pixel grayscale threshold as N; the calculation method of the abnormal pixel grayscale threshold is N=Mxa%, and a is a preset value; The pixels whose pixel values ​​in the difference image are greater than the abnormal pixel grayscale threshold are assigned a value of 1, and the pixels whose pixel values ​​are less than or equal to the abnormal pixel grayscale threshold are assigned a value of 0, so as to obtain a binary image of the difference image; W4. Use the connected domain labeling algorithm to process the binary image: The foreground pixels are scanned and marked by a connected domain marking algorithm to obtain at least one connected domain; the area of ​​each connected domain is calculated, and when the sum of the pixels in the connected domain is greater than 2, the connected domain with the sum of the pixels greater than 2 is determined to be an abnormal area, that is, the CMOS image sensor that collects the image has an abnormality.

6. The method for detecting abnormality of a CMOS image sensor according to claim 5, characterized in that: In step W1, a camera equipped with a CMOS image sensor to be detected is placed in a darkroom environment, which can only receive uniform collimated light with a certain light intensity; a PC is placed outside the darkroom, and the camera is connected to the camera through the camera acquisition software to preview the image.

7. The method for detecting abnormality of a CMOS image sensor according to claim 5, characterized in that: In the step W1, the minimum exposure time allowed by the camera is recorded as Tmin, and the exposure time corresponding to the overexposed image captured by the camera is recorded as the maximum exposure time Tmax; the exposure time of the camera is set to the minimum exposure time Tmin, the corresponding image is captured, the exposure time is increased at equal intervals and the captured image under the corresponding exposure time is obtained, and multiple grayscale images with different exposure times between Tmin and Tmax are obtained in turn.

8. The method for detecting abnormality of a CMOS image sensor according to claim 5, characterized in that: After the difference image is binarized in step W4, the foreground pixels represent abnormal pixels detected and assigned a value of 1 after step W3, and the background pixels represent normal pixels detected and assigned a value of 0 after step W3.

Citation Information

Cited By

  • Image equipment CMOS sensor power supply voltage stability detection system

    CN122362199A