CN110868586A - Automatic detection method for defects of camera - Google Patents
Automatic detection method for defects of camera Download PDFInfo
- Publication number
- CN110868586A CN110868586A CN201911093667.XA CN201911093667A CN110868586A CN 110868586 A CN110868586 A CN 110868586A CN 201911093667 A CN201911093667 A CN 201911093667A CN 110868586 A CN110868586 A CN 110868586A
- Authority
- CN
- China
- Prior art keywords
- camera
- picture
- test sample
- test
- point number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Biophysics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
The invention provides a camera defect automatic detection method, which comprises the following steps: collecting a test sample image as an algorithm training library, wherein each mobile phone takes a white screen photo and a black screen photo as the test sample image; judging whether each test sample in the algorithm training library has defects, and marking the defect type of the test sample; enabling a camera to be detected to shoot a white screen picture and a black screen picture as test pictures; inputting the picture data of the test photo into the depth convolution model in a floating-point number matrix form; the depth convolution model is calculated according to the test picture to obtain a two-dimensional floating point number vector, wherein two-dimensional parameters of the two-dimensional floating point number vector respectively represent the probability of no speckles and the probability of speckles of the picture, and the sum of the two-dimensional parameters is 1; and judging whether the camera to be detected has a spot defect according to the two-dimensional parameters of the two-dimensional floating point number vector.
Description
Technical Field
The present invention relates to the field of detection; more particularly, the invention relates to an automatic detection method for defects of a camera.
Background
At present, a second-hand intelligent terminal has no standard flow and method for detecting defects of a camera, and most of the defects are distinguished by human eyes. The human eye resolution scheme is influenced by differences among engineers, and defects cannot be reflected to the maximum extent, so that the accuracy is low, and data and standardized results cannot be output.
The existing image analysis technology of mobile phone cameras and digital cameras can analyze defects, but the analysis time cost is too high, different targets need to be shot in a specific laboratory environment, specific analysis software is introduced for analysis, and the required test environment is unique and cannot be applied to large-scale detection processes of the second-hand intelligent terminal.
Disclosure of Invention
The invention aims to solve the technical problem of providing an automatic camera defect detection method which can effectively improve the efficiency and the accuracy of camera defect test aiming at the defects in the prior art.
According to the invention, the automatic detection method for the defects of the camera comprises the following steps:
the first step is as follows: collecting a test sample image as an algorithm training library, wherein each mobile phone takes a white screen photo and a black screen photo as the test sample image;
the second step is as follows: judging whether each test sample in the algorithm training library has defects, and marking the defect type of the test sample;
the third step: enabling a camera to be detected to shoot a white screen picture and a black screen picture as test pictures;
the fourth step: inputting the picture data of the test photo into the depth convolution model in a floating-point number matrix form;
the fifth step: the depth convolution model is calculated according to the test picture to obtain a two-dimensional floating point number vector, wherein two-dimensional parameters of the two-dimensional floating point number vector respectively represent the probability of no speckles and the probability of speckles of the picture, and the sum of the two-dimensional parameters is 1;
a sixth step: and judging whether the camera to be detected has a spot defect according to the two-dimensional parameters of the two-dimensional floating point number vector.
Preferably, the method for automatically detecting the defects of the camera further comprises the following steps: and (3) training a deep convolution model by using the mobile phone white screen photos with the preset number and marked with the defect types of the test sample pictures as training data, so that the value of the loss function is converged to be stable and is not reduced any more.
Preferably, each mobile phone taking a white screen photo and a black screen photo as the test sample comprises: a white screen picture and a full black screen picture with uniform color temperature and uniform brightness are taken in a lamp box by using a detection light source.
Preferably, in the sixth step, when a parameter value representing the probability of the picture having the speckles in the two-dimensional floating point number vector exceeds a predetermined threshold, it is determined that the camera to be detected has the speckles, and otherwise, it is determined that the camera to be detected is not defective.
Preferably, the predetermined threshold is not less than 0.5.
Preferably, the predetermined threshold is 0.75.
Preferably, the deep convolution model is the *** open source Efficientnet model.
Preferably, the detection light source is artificial sunlight.
The image defect analysis scheme can be favorably applied to the field of professional image quality analysis, simplifies the method for professional image quality analysis, is suitable for the rapid detection of the defects of the camera of a large-scale second-hand intelligent terminal, takes standardization and data as the core from sampling to the output analysis result of a system algorithm, and improves the test efficiency and the test precision. The test process of the invention is highly automated, and the output result is more accurate.
Drawings
A more complete understanding of the present invention, and the attendant advantages and features thereof, will be more readily understood by reference to the following detailed description when considered in conjunction with the accompanying drawings wherein:
fig. 1 schematically shows a flowchart of a camera defect automated detection method according to a preferred embodiment of the present invention.
It is to be noted, however, that the appended drawings illustrate rather than limit the invention. It is noted that the drawings representing structures may not be drawn to scale. Also, in the drawings, the same or similar elements are denoted by the same or similar reference numerals.
Detailed Description
In order that the present disclosure may be more clearly and readily understood, reference will now be made in detail to the present disclosure as illustrated in the accompanying drawings.
Fig. 1 schematically shows a flowchart of a camera defect automated detection method according to a preferred embodiment of the present invention.
As shown in fig. 1, the method for automatically detecting defects of a camera according to the preferred embodiment of the invention comprises:
first step S1: collecting a test sample image as an algorithm training library, wherein each mobile phone takes a white screen photo and a black screen photo as the test sample image;
specifically, for example, a test pattern is acquired by taking a photograph with a camera. For example, photos taken by thousands of machines are collected on the production line in the early stage as an algorithm training library.
More specifically, each mobile phone takes a white screen photo and a black screen photo as test patterns, and the method comprises the following steps: white screen pictures and full black screen pictures with uniform color temperature and uniform brightness are taken in a light box using a detection light source (preferably, the detection light source is artificial sunlight, for example, a D65 light source). This unifies the samples.
Second step S2: judging whether each test sample in the algorithm training library has defects, and marking the defect type of the test sample;
third step S3: enabling a camera to be detected to shoot a white screen picture and a black screen picture as test pictures; for example, the test photographs are 3-dimensional matrices in rgb format and scaled to a uniform size of 300x 300.
Fourth step S4: inputting picture data of the test photograph to the depth convolution model in a floating point matrix form (e.g., a floating point matrix form of 300x300x 3);
for example, the deep convolution model is an Efficientnet model of a *** open source, but similar image classification models can be replaced with each other, and the use of the deep convolution model mainly considers higher identification precision and relatively less calculation amount.
Fifth step S5: the depth convolution model is calculated according to the test picture to obtain a two-dimensional floating point number vector, wherein two-dimensional parameters of the two-dimensional floating point number vector respectively represent the probability that the picture has no speckles (background class) and the probability that the picture has speckles, and the sum of the two-dimensional parameters is 1;
sixth step S6: and judging whether the camera to be detected has a spot defect according to the two-dimensional parameters of the two-dimensional floating point number vector.
Specifically, for example, when a parameter value representing the probability that a picture has a speckle in a two-dimensional floating point number vector exceeds a predetermined threshold (for example, the predetermined threshold is not less than 0.5, for example, the predetermined threshold is 0.75), it is determined that the camera to be detected has a speckle defect, otherwise, it is determined that the camera to be detected is not defective.
Preferably, the deep convolution model is trained by using a predetermined number (for example, 1000) of mobile phone white screen photos marked with defect types of the test sample as training data, so that the convergence to the loss function value is stable and does not decrease any more.
Therefore, in the invention, two pictures are taken, wherein firstly, the camera is tightly attached to the artificial sunlight source lamp box for shooting, and secondly, the camera is tightly attached to the full black part of the lamp box for shooting; the method comprises the steps of capturing defect characteristic points of two pictures through an algorithm, judging whether the defect points of each picture are flawless or not according to each picture, automatically judging whether the analysis camera has the flawless defects (the pictures with the defects of bright spots, dead spots, speckles and abnormal grains are collected in the early stage, extracting the characteristics of the defects and then storing the characteristics in a database, and identifying whether the two newly-shot pictures have similar characteristic points or not through the algorithm so as to judge whether the camera has the flawless or not).
The image defect analysis scheme can be favorably applied to the field of professional image quality analysis, simplifies the method for professional image quality analysis, is suitable for the rapid detection of the defects of the camera of a large-scale second-hand intelligent terminal, takes standardization and data as the core from sampling to the output analysis result of a system algorithm, and improves the test efficiency and the test precision. The test process of the invention is highly automated, and the output result is more accurate.
It should be noted that the terms "first", "second", "third", and the like in the description are used for distinguishing various components, elements, steps, and the like in the description, and are not used for indicating a logical relationship or a sequential relationship between the various components, elements, steps, and the like, unless otherwise specified.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.
Claims (9)
1. A camera defect automatic detection method is characterized by comprising the following steps:
the first step is as follows: collecting a test sample image as an algorithm training library, wherein each mobile phone takes a white screen photo and a black screen photo as the test sample image;
the second step is as follows: judging whether each test sample in the algorithm training library has defects, and marking the defect type of the test sample;
the third step: enabling a camera to be detected to shoot a white screen picture and a black screen picture as test pictures;
the fourth step: inputting the picture data of the test photo into the depth convolution model in a floating-point number matrix form;
the fifth step: the depth convolution model is calculated according to the test picture to obtain a two-dimensional floating point number vector, wherein two-dimensional parameters of the two-dimensional floating point number vector respectively represent the probability of no speckles and the probability of speckles of the picture;
a sixth step: and judging whether the camera to be detected has a spot defect according to the two-dimensional parameters of the two-dimensional floating point number vector.
2. The method of claim 1, wherein the sum of the two-dimensional parameters is 1.
3. The method for automatically detecting the defects of the camera according to claim 1, further comprising: and (3) training a deep convolution model by using the mobile phone white screen photos with the preset number and marked with the defect types of the test sample pictures as training data, so that the value of the loss function is converged to be stable and is not reduced any more.
4. The automatic camera defect detection method according to one of claims 1 to 3, wherein in the sixth step, when a parameter value representing a probability that a picture has speckles in the two-dimensional floating point number vector exceeds a predetermined threshold, it is determined that the camera to be detected has speckles, and otherwise, it is determined that the camera to be detected is not defective.
5. The method according to claim 4, wherein the predetermined threshold is not less than 0.5.
6. The method according to claim 4, wherein the predetermined threshold is 0.75.
7. The automatic detection method for the defects of the camera head as claimed in one of the claims 1 to 3, wherein the deep convolution model is an Efficientnet model of *** open source.
8. The automatic camera defect detection method according to one of claims 1 to 3, wherein the detection light source is artificial sunlight.
9. The method for automatically detecting the defects of the camera according to one of the claims 1 to 3, wherein each mobile phone takes a white screen picture and a black screen picture as test sample pictures, and the method comprises the following steps: a white screen picture and a full black screen picture with uniform color temperature and uniform brightness are taken in a lamp box by using a detection light source.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911093667.XA CN110868586A (en) | 2019-11-08 | 2019-11-08 | Automatic detection method for defects of camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911093667.XA CN110868586A (en) | 2019-11-08 | 2019-11-08 | Automatic detection method for defects of camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110868586A true CN110868586A (en) | 2020-03-06 |
Family
ID=69653589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911093667.XA Pending CN110868586A (en) | 2019-11-08 | 2019-11-08 | Automatic detection method for defects of camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110868586A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935480A (en) * | 2020-08-03 | 2020-11-13 | 深圳回收宝科技有限公司 | Detection method for image acquisition device and related device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7457458B1 (en) * | 1999-11-26 | 2008-11-25 | Inb Vision Ag. | Method and apparatus for defining and correcting image data |
CN101867787A (en) * | 2009-04-14 | 2010-10-20 | Tcl集团股份有限公司 | Self-test method for LCD display with camera |
CN102098530A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Method and device for automatically distinguishing quality of camera module |
CN103064246A (en) * | 2013-01-30 | 2013-04-24 | 信利光电(汕尾)有限公司 | Camera module test platform |
CN203554618U (en) * | 2013-11-22 | 2014-04-16 | 纬创资通股份有限公司 | Test equipment used for image test on electronic device |
CN107396094A (en) * | 2017-08-17 | 2017-11-24 | 上海大学 | The automatic testing method of single camera damage towards in multi-cam monitoring system |
CN109451304A (en) * | 2018-12-31 | 2019-03-08 | 深圳市辰卓科技有限公司 | A kind of camera module batch focusing test method and system |
-
2019
- 2019-11-08 CN CN201911093667.XA patent/CN110868586A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7457458B1 (en) * | 1999-11-26 | 2008-11-25 | Inb Vision Ag. | Method and apparatus for defining and correcting image data |
CN101867787A (en) * | 2009-04-14 | 2010-10-20 | Tcl集团股份有限公司 | Self-test method for LCD display with camera |
CN102098530A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Method and device for automatically distinguishing quality of camera module |
CN103064246A (en) * | 2013-01-30 | 2013-04-24 | 信利光电(汕尾)有限公司 | Camera module test platform |
CN203554618U (en) * | 2013-11-22 | 2014-04-16 | 纬创资通股份有限公司 | Test equipment used for image test on electronic device |
CN107396094A (en) * | 2017-08-17 | 2017-11-24 | 上海大学 | The automatic testing method of single camera damage towards in multi-cam monitoring system |
CN109451304A (en) * | 2018-12-31 | 2019-03-08 | 深圳市辰卓科技有限公司 | A kind of camera module batch focusing test method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935480A (en) * | 2020-08-03 | 2020-11-13 | 深圳回收宝科技有限公司 | Detection method for image acquisition device and related device |
WO2022027816A1 (en) * | 2020-08-03 | 2022-02-10 | 深圳回收宝科技有限公司 | Detection method for image acquisition apparatus, and related apparatus |
CN111935480B (en) * | 2020-08-03 | 2022-02-15 | 深圳回收宝科技有限公司 | Detection method for image acquisition device and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11774735B2 (en) | System and method for performing automated analysis of air samples | |
CN104749184B (en) | Automatic optical detection method and system | |
CN112036755B (en) | Supervision method and system for quality detection of building engineering | |
EP3844668A1 (en) | System and method for training a damage identification model | |
CN106408527A (en) | Automatic target scoring method based on video analysis | |
WO2014192184A1 (en) | Image processing device, image processing method, program, and storage medium | |
CN111062961A (en) | Contact lens edge defect detection method based on deep learning | |
WO2021046726A1 (en) | Method and device for detecting mechanical equipment parts | |
CN115619787B (en) | UV glue defect detection method, system, equipment and medium | |
CN108445010A (en) | Automatic optical detection method and device | |
WO2020047316A1 (en) | System and method for training a damage identification model | |
CN113077416A (en) | Welding spot welding defect detection method and system based on image processing | |
JP2014082957A (en) | Cell counting apparatus and cell counting program | |
US20210264130A1 (en) | Method and apparatus for training a neural network classifier to classify an image depicting one or more objects of a biological sample | |
CN114359552A (en) | Instrument image identification method based on inspection robot | |
CN110868586A (en) | Automatic detection method for defects of camera | |
CN111291778A (en) | Training method of depth classification model, exposure anomaly detection method and device | |
CN116580026B (en) | Automatic optical detection method, equipment and storage medium for appearance defects of precision parts | |
CN116091506B (en) | Machine vision defect quality inspection method based on YOLOV5 | |
CN112967224A (en) | Electronic circuit board detection system, method and medium based on artificial intelligence | |
CN116128853A (en) | Production line assembly detection method, system, computer and readable storage medium | |
CN113591548B (en) | Target ring identification method and system | |
CN115272292A (en) | Method and system for quantifying coal ash bead-shaped particles based on digital image | |
CN116993654A (en) | Camera module defect detection method, device, equipment, storage medium and product | |
CN112213244B (en) | Device and method for measuring ringeman blackness of motor vehicle tail gas based on machine learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200306 |