CN104093016B - A kind of dirty detection method of camera module and system - Google Patents

A kind of dirty detection method of camera module and system Download PDF

Info

Publication number
CN104093016B
CN104093016B CN201410262027.8A CN201410262027A CN104093016B CN 104093016 B CN104093016 B CN 104093016B CN 201410262027 A CN201410262027 A CN 201410262027A CN 104093016 B CN104093016 B CN 104093016B
Authority
CN
China
Prior art keywords
module
image
camera module
data acquisition
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410262027.8A
Other languages
Chinese (zh)
Other versions
CN104093016A (en
Inventor
黄震川
黄茜
汤达浚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Deep sea precision technology (Shenzhen) Co., Ltd.
Original Assignee
South China University of Technology SCUT
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201410262027.8A priority Critical patent/CN104093016B/en
Publication of CN104093016A publication Critical patent/CN104093016A/en
Application granted granted Critical
Publication of CN104093016B publication Critical patent/CN104093016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses the dirty detection method of a kind of camera module, comprise the following steps: (1) connects camera module to module data acquisition module, and covers whole camera view scope with white covering plate; (2) camera module carries out IMAQ, and module data acquisition module reads shutter image and is stored to the buffer area of module data acquisition module; (3) by white shutter image transmitting to the dirty detection module internal memory of host computer; (4) the dirty detection module of host computer carries out dirty detection to white shutter image.Present invention achieves and automatically detect camera module is dirty, improve the dirty detection efficiency of camera module and accuracy rate.

Description

A kind of dirty detection method of camera module and system
Technical field
The present invention relates to the dirty detection technique of optical camera, particularly the dirty detection method of a kind of camera module and system.
Background technology
The camera that the present invention is directed to mainly is applied to the built-in camera module of the digital products such as mobile phone.This kind of camera is most not to be possessed optical zoom function, structure is simple and has the darker depth of field.In actual production assembling process, the foreign matter such as dust, hair is fallen on module sensitive chip, and therefore module is before dispatching from the factory, and needs to carry out dirty detection after namely having assembled, to ensure that camera module visual field in real work does not affect by dirty point; In addition, the sensor model number of camera module is many, is compatible multiple sensors, needs to set up a kind of general image capture module and obtains image to complete dirty detection.
At present, the dirty detection of camera module is still by manually completing.Image acquisition circuit connect camera, from camera module acquisition of image data and be sent to PC end show, workman at the white shelter of cam lens protecgulum one, according to camera generate image carry out dirty differentiation.Although artificial dirty detection method can meet the production requirement of factory, also there is drawback.First, the camera module daily output is large, and workman's repeated observation white covering plate image easily produces visual fatigue.Secondly, because dirty size is little, in camera module optical imaging system, easily because the diffraction of light makes dirtyly to generate ill-defined dull areas in final digital picture, or the dirty corner being sometimes in visual field, be difficult to differentiate with dark angle, thus make some dirty naked eyes be difficult to discover at short notice, reduce the qualification rate of product.
Summary of the invention
In order to overcome the above-mentioned shortcoming of prior art with not enough, the object of the present invention is to provide the dirty detection method of a kind of camera module, realizing automatically detecting camera module is dirty, improving the dirty detection efficiency of camera module and accuracy rate.
Another object of the present invention is to provide a kind of camera module dirty detection system.
Object of the present invention is achieved through the following technical solutions:
The dirty detection method of a kind of camera module, comprises the following steps:
(1) connect camera module to module data acquisition module, and cover whole camera view scope with white covering plate;
(2) camera module carries out IMAQ, and module data acquisition module reads shutter image and is stored to the buffer area of module data acquisition module;
(3) by white shutter image transmitting to the dirty detection module internal memory of host computer;
(4) the dirty detection module of host computer carries out dirty detection to white shutter image:
(4-1) background modeling is carried out to white shutter image, background modeling gained model image is carried out phase reducing with original image, obtains dim edge image;
(4-2) on dim edge image, carry out border circular areas to search;
(4-3) judge whether to exist dirty: if find border circular areas, then judge that camera module is defective; If can not find border circular areas, judge that camera module is qualified.
Step (2) described by the white shutter image reading that collects to the buffer area of module data acquisition module, be specially:
Module data acquisition module traversal module database, searches out the module parameter matched with camera module, by module parameter read-in in each register of the transducer of camera module; Module data acquisition module obtains image with constant frame per second from camera module and is stored into the buffer area of module data acquisition module.
Step (4-1) described background modeling, is specially:
Be the image slices vegetarian refreshments of 0.2 ~ 0.3 times of original image pixel sum by random specified quantity, background is considered as two-dimentional continuous function, the gray value according to pixel carries out least square method Background fitting, generation model image.
The described phase reducing of step (4-1), is specially:
The value of model image and each pixel of original image is carried out additive operation, draws the result of subtracting each other.
Described border circular areas is searched, and is specially:
Using need follow the tracks of shape as template, to region equal with template size each in image, utilize the similarity in normalized crosscorrelation calculation template and this region, by shape similarity higher than setting threshold extracted region out.
The system of the dirty detection method of camera module, comprises
Camera module, for gathering white shutter image; When gathering white shutter image, white covering plate covers whole camera view scope;
Module data acquisition module, is electrically connected with camera module; For reading and storing white shutter image;
Host computer, is connected by connecting line with module data acquisition module; For carrying out background modeling to white shutter image, background modeling gained modeled images and original image being carried out contrast difference, obtains dim edge image; By searching dim edge image carrying out border circular areas, judge that whether camera module is qualified.
Compared with prior art, the present invention has the following advantages and beneficial effect:
(1) present invention achieves and automatically detect camera module is dirty, improve the dirty detection efficiency of camera module and accuracy rate, effectively improve accuracy and the speed of the dirty detection of camera, greatly alleviate the work load of workman.
(2) the compatible Multiple Type transducer of module data acquisition module energy of the present invention, the test job for camera module provides convenient.
(3) in prior art, need repeatedly to carry out dirty detection to ensure qualification rate to camera module, application the present invention can save the number of repetition of the dirty detection of camera module, enhances productivity.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the dirty detection system of camera module that embodiments of the invention adopt.
Fig. 2 is the flow chart of the dirty detection method of camera module of embodiments of the invention.
Fig. 3 is the flow chart of the dirty testing process of embodiments of the invention.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment
As shown in Figure 1, the dirty detection system of camera module that the present embodiment adopts, comprises host computer 1, the dirty detection servicing unit 2 of camera module, camera module 3 and module data acquisition module 4; The dirty detection servicing unit of camera module, comprises camera module fixing device, the electrical connection of camera module interface, white shutter and relevant mechanical connection component.
Described camera module is for gathering white shutter image; When gathering white shutter image, white covering plate covers whole camera view scope, and available hand-held or machine action covers, and its placement location should as far as possible near the camera lens of camera module, to obtain the pure detected image of light scattering as far as possible; Module data acquisition module is used for reading and storing white shutter image, realizes being electrically connected with camera module by camera module electrical connection interface; Host computer, module data acquisition module is connected by connecting line; For carrying out background modeling to white shutter image, background modeling gained model image and original image being carried out contrast difference, obtains dim edge image; By searching dim edge image carrying out border circular areas, judge that whether camera module is qualified.
Host computer can be the digital system that computer, embedded system or framework are close.Host computer also comprises user input device and display device, and input equipment used comprises mouse and keyboard, and display device used comprises computer display screen, LCDs etc.
As shown in Figure 2, the dirty detection method of camera module of the present embodiment, comprises the following steps:
(1) connect camera module to module data acquisition module, and cover whole camera view scope with white covering plate;
(2) camera module carries out IMAQ, module data acquisition module reads shutter image and is stored to the buffer area of module data acquisition module, be specially: module data acquisition module traversal module database, search out the module parameter matched with camera module, by module parameter read-in in each register of the transducer of camera module; Module data acquisition module obtains image with constant frame per second from camera module and is stored into the buffer area of module data acquisition module.
(3) by white shutter image transmitting to the dirty detection module internal memory of host computer;
(4) the dirty detection module of host computer carries out dirty detection to white shutter image, and as shown in Figure 3, dirty testing process is specially:
(4-1) background modeling is carried out to white shutter image, background modeling gained model image is carried out phase reducing with original image, obtains dim edge image;
Described background modeling, is specially: by random amount be 0.2 ~ 0.3 times of original image pixel sum image slices vegetarian refreshments, background is considered as two-dimentional continuous function, and the gray value according to pixel carries out least square method Background fitting, generation model image;
Described phase reducing, is specially: the value of model image and each pixel of original image is carried out additive operation, draws the result of subtracting each other.
(4-2) on dim edge image, carry out border circular areas to search;
Described border circular areas is searched, specifically to need the shape of following the tracks of as template, to region equal with template size each in image, utilize the similarity in normalized crosscorrelation calculation template and this region, by shape similarity higher than setting threshold extracted region out.
(4-3) judge whether to exist dirty: if find border circular areas, then there is dirty some block in camera module, judge that camera module is defective, and rule of thumb data calculates dirty some position; If can not find border circular areas, judge that camera module is qualified.
Above-described embodiment is the present invention's preferably execution mode; but embodiments of the present invention are not limited by the examples; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (4)

1. the dirty detection method of camera module, is characterized in that, comprise the following steps:
(1) connect camera module to module data acquisition module, and cover whole camera view scope with white covering plate;
(2) camera module carries out IMAQ, and module data acquisition module reads shutter image and is stored to the buffer area of module data acquisition module;
(3) by white shutter image transmitting to the dirty detection module internal memory of host computer;
(4) the dirty detection module of host computer carries out dirty detection to white shutter image:
(4-1) background modeling is carried out to white shutter image, background modeling gained model image is carried out phase reducing with original image, obtains dim edge image;
Described background modeling, is specially:
Be the image slices vegetarian refreshments of 0.2 ~ 0.3 times of original image pixel sum by random specified quantity, background is considered as two-dimentional continuous function, the gray value according to pixel carries out least square method Background fitting, generation model image;
(4-2) on dim edge image, carry out border circular areas to search; Described border circular areas is searched, and is specially:
Using need follow the tracks of shape as template, to region equal with template size each in image, utilize the similarity in normalized crosscorrelation calculation template and this region, by shape similarity higher than setting threshold extracted region out;
(4-3) judge whether to exist dirty: if find border circular areas, then judge that camera module is defective; If can not find border circular areas, judge that camera module is qualified.
2. the dirty detection method of camera module according to claim 1, is characterized in that, step (2) described by the white shutter image reading that collects to the buffer area of module data acquisition module, be specially:
Module data acquisition module traversal module database, searches out the module parameter matched with camera module, by module parameter read-in in each register of the transducer of camera module; Module data acquisition module obtains image with constant frame per second from camera module and is stored into the buffer area of module data acquisition module.
3. the dirty detection method of camera module according to claim 1, is characterized in that, the described phase reducing of step (4-1), is specially:
The value of model image and each pixel of original image is carried out additive operation, draws the result of subtracting each other.
4. realize the system of the dirty detection method of camera module according to claim 1, it is characterized in that, comprise
Camera module, for gathering white shutter image; When gathering white shutter image, white covering plate covers whole camera view scope;
Module data acquisition module, is electrically connected with camera module; For reading and storing white shutter image;
Host computer, is connected by connecting line with module data acquisition module; For carrying out background modeling to white shutter image, background modeling gained modeled images and original image being carried out contrast difference, obtains dim edge image; By searching dim edge image carrying out border circular areas, judge that whether camera module is qualified.
CN201410262027.8A 2014-06-12 2014-06-12 A kind of dirty detection method of camera module and system Active CN104093016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410262027.8A CN104093016B (en) 2014-06-12 2014-06-12 A kind of dirty detection method of camera module and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410262027.8A CN104093016B (en) 2014-06-12 2014-06-12 A kind of dirty detection method of camera module and system

Publications (2)

Publication Number Publication Date
CN104093016A CN104093016A (en) 2014-10-08
CN104093016B true CN104093016B (en) 2016-04-13

Family

ID=51640693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410262027.8A Active CN104093016B (en) 2014-06-12 2014-06-12 A kind of dirty detection method of camera module and system

Country Status (1)

Country Link
CN (1) CN104093016B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109523527A (en) * 2018-11-12 2019-03-26 北京地平线机器人技术研发有限公司 The detection method in dirty region, device and electronic equipment in image

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539937B (en) * 2014-11-24 2017-03-29 歌尔科技有限公司 A kind of method and apparatus of camera module dust detection
CN104811690B (en) * 2015-04-01 2017-07-11 广东欧珀移动通信有限公司 A kind of message prompt method and device
US9538170B1 (en) * 2015-09-08 2017-01-03 Hon Hai Precision Co., Ltd. Camera lens cleaning system and method of using same
CN105491372A (en) * 2015-11-24 2016-04-13 努比亚技术有限公司 Mobile terminal and information processing method
CN106226270B (en) * 2016-07-01 2019-07-19 深圳睿晟自动化技术有限公司 The method of the dirty defect of detection image sensor surface
CN106231297B (en) * 2016-08-29 2019-03-19 深圳天珑无线科技有限公司 The detection method and device of camera
CN108072823B (en) * 2016-11-10 2021-03-02 宁波舜宇光电信息有限公司 Semi-automatic CCM testing device and method
US10699305B2 (en) * 2016-11-21 2020-06-30 Nio Usa, Inc. Smart refill assistant for electric vehicles
CN111294589B (en) * 2017-04-08 2021-08-24 广东弘景光电科技股份有限公司 Camera module lens surface detection method
CN108288264B (en) * 2017-12-26 2022-01-18 横店集团东磁有限公司 Wide-angle camera module contamination testing method
CN108600739B (en) * 2018-04-27 2019-12-13 长安大学 Lens dust detection device and method
CN108668080B (en) * 2018-06-22 2020-09-08 北京小米移动软件有限公司 Method and device for prompting degree of dirt of lens and electronic equipment
CN109060831B (en) * 2018-08-09 2021-01-15 惠州太初科技有限公司 Automatic dirt detection method based on bottom plate fitting
CN109373375B (en) * 2018-09-29 2020-01-14 佛山市云米电器科技有限公司 Intelligent smoke machine precision lens fuzzy self-checking method
CN109584219B (en) * 2018-11-15 2021-04-16 广东美的厨房电器制造有限公司 Method for detecting dirt of camera device and cooking equipment
CN111380873A (en) * 2018-12-29 2020-07-07 尚科宁家(中国)科技有限公司 Dirt detection method, device, equipment and medium for lens of sweeping robot
CN110049320B (en) * 2019-05-23 2020-12-08 北京猎户星空科技有限公司 Camera shielding detection method and device, electronic equipment and storage medium
US11523722B2 (en) * 2019-05-28 2022-12-13 Pixart Imaging Inc. Dirtiness level determining method and electronic device applying the dirtiness level determining method
CN110611801B (en) * 2019-10-08 2021-08-20 歌尔光学科技有限公司 Method and device for detecting dirt of projection module, readable storage medium and projector
CN110855976B (en) * 2019-10-08 2022-03-11 南京云计趟信息技术有限公司 Camera abnormity detection method and device and terminal equipment
CN111724383A (en) * 2020-06-30 2020-09-29 重庆盛泰光电有限公司 Camera module black spot detection system based on turntable
CN112040223B (en) * 2020-08-25 2022-08-12 RealMe重庆移动通信有限公司 Image processing method, terminal device and storage medium
CN113011316B (en) * 2021-03-16 2023-05-30 北京百度网讯科技有限公司 Method and device for detecting lens state, electronic equipment and medium
CN113313016B (en) * 2021-05-27 2023-07-04 苏州魔视智能科技有限公司 Camera dirt recognition method, electronic equipment and vehicle
CN114040194A (en) * 2021-11-26 2022-02-11 信利光电股份有限公司 Method and device for testing dirt of camera module and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4907156A (en) * 1987-06-30 1990-03-06 University Of Chicago Method and system for enhancement and detection of abnormal anatomic regions in a digital image
CN102413354A (en) * 2011-10-05 2012-04-11 深圳市联德合微电子有限公司 Automatic optical detection method, device and system of mobile phone camera module
CN103139547A (en) * 2013-02-25 2013-06-05 昆山南邮智能科技有限公司 Method of judging shielding state of pick-up lens based on video image signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4907156A (en) * 1987-06-30 1990-03-06 University Of Chicago Method and system for enhancement and detection of abnormal anatomic regions in a digital image
CN102413354A (en) * 2011-10-05 2012-04-11 深圳市联德合微电子有限公司 Automatic optical detection method, device and system of mobile phone camera module
CN103139547A (en) * 2013-02-25 2013-06-05 昆山南邮智能科技有限公司 Method of judging shielding state of pick-up lens based on video image signal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Digital Single Lens Reflex Camera Identification From Traces of Sensor Dust;Ahmet Emir Dirik ET AL;《IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY》;20080930;第3卷(第3期);正文第二章第1段至第3章末段 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109523527A (en) * 2018-11-12 2019-03-26 北京地平线机器人技术研发有限公司 The detection method in dirty region, device and electronic equipment in image

Also Published As

Publication number Publication date
CN104093016A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
CN104093016B (en) A kind of dirty detection method of camera module and system
CN106446873B (en) Face detection method and device
CN109584227A (en) A kind of quality of welding spot detection method and its realization system based on deep learning algorithm of target detection
CN103442247A (en) Camera image resolution estimation method and camera image resolution estimation system
US9659408B2 (en) Mesh reconstruction from heterogeneous sources of data
CN105957090B (en) A kind of monocular vision pose measuring method and system based on Davinci technology
CN203629603U (en) Intelligent electric energy meter detection device based on image identification technology
CN110400315A (en) A kind of defect inspection method, apparatus and system
CN109815843A (en) Object detection method and Related product
CN103161133A (en) Intelligent road-cleaning vehicle based on machine vision and controlling method thereof
CN102708383A (en) System and method for detecting living face with multi-mode contrast function
CN103914876A (en) Method and apparatus for displaying video on 3D map
CN111679142A (en) Portable infrared intelligent diagnosis device and method for power transmission and transformation equipment
Brilakis et al. Visual pattern recognition models for remote sensing of civil infrastructure
CN109951635A (en) It takes pictures processing method, device, mobile terminal and storage medium
CN109986172A (en) A kind of weld and HAZ method, equipment and system
CN112014413A (en) Mobile phone glass cover plate window area defect detection method based on machine vision
CN111507325B (en) Industrial visual OCR recognition system and method based on deep learning
CN111399634B (en) Method and device for recognizing gesture-guided object
CN106777071B (en) Method and device for acquiring reference information by image recognition
CN115661057A (en) Industrial nondestructive testing system and method based on cloud edge cooperation and deep learning
CN114332927A (en) Classroom hand-raising behavior detection method, system, computer equipment and storage medium
CN113554610A (en) Photovoltaic module operation state detection method and application device thereof
CN112146589A (en) Three-dimensional morphology measurement system and method based on ZYNQ platform
CN102193687A (en) Multipoint touch screen interactive system based on LABVIEW

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190531

Address after: 518107 Unit B3-4A1, Guangming Science Park, China Merchants Bureau, 3009 Guangming Street Sightseeing Road, Guangming New District, Shenzhen City, Guangdong Province

Patentee after: Deep sea precision technology (Shenzhen) Co., Ltd.

Address before: 510640 No. five, 381 mountain road, Guangzhou, Guangdong, Tianhe District

Patentee before: South China University of Technology

TR01 Transfer of patent right