CN110111324A - Image sensor surface scratch detection method - Google Patents

Image sensor surface scratch detection method Download PDF

Info

Publication number
CN110111324A
CN110111324A CN201910396258.0A CN201910396258A CN110111324A CN 110111324 A CN110111324 A CN 110111324A CN 201910396258 A CN201910396258 A CN 201910396258A CN 110111324 A CN110111324 A CN 110111324A
Authority
CN
China
Prior art keywords
region
image
sensor surface
record
pixel
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
Application number
CN201910396258.0A
Other languages
Chinese (zh)
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.)
Miaxis Biometrics Co Ltd
Original Assignee
Miaxis Biometrics Co Ltd
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 Miaxis Biometrics Co Ltd filed Critical Miaxis Biometrics Co Ltd
Priority to CN201910396258.0A priority Critical patent/CN110111324A/en
Publication of CN110111324A publication Critical patent/CN110111324A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The present invention provides a kind of image sensor surface scratch detection method, the method includes the steps: (1) setting, which scratches, judges region, defines that number of pixels in this region is N and abraded area pixel value is fixed value P;(2) global storage region is set, scratches the pixel value situation for judging region for recording;(3) multiple image is acquired, its scuffing is read and judges the pixel value in region and judge whether this pixel is to scratch position, and result is recorded in global storage region according to pixel value;(4) the scuffing ratio of sensor surface passes through the abraded area number of pixels that finally counts and judge that the number of pixels of region entirety is obtained divided by scratching, and sensor scratches position and can be can be seen that by the record of abraded area in overall situation storage region after the acquisition multiple image that is shown with bmp figure.Whether imaging sensor correlation component can be needed replacing by the method for the invention and provide specific aim suggestion, customer using cost is effectively reduced and improve product use reliability.

Description

Image sensor surface scratch detection method
[technical field]
The present invention relates to scratch detection technical field, specially a kind of image sensor surface scratch detection method.
[background technique]
With the development of electronic technology, the acquisition of various sci-tech product information all be unable to do without miscellaneous sensor, In, imaging sensor as the Primary Component for obtaining image information, be current application is most universal, the highest sensor of importance it One, it all has and is widely applied in fields such as safety monitoring, bio-identification, vehicular applications, machine vision.But image sensing Surface can generate scratch to device in use, and after the generation of such scratch, human eye is unable to judge accurately whether it makes to subsequent With impacting, and user generallys use the sensor that two schemes reply surface generates scratch: 1, replacing component in time;2, Hold on use.But scheme 1 is possible to replace only shadow scratch but does not influence the component used, so just leads Customer using cost is caused to increase;Scheme 2 is possible to continue to use in the case where scratch has seriously affected output result, finally leads It causes to generate corrupt data.
[summary of the invention]
For the problems raised in the background art, the purpose of the present invention is to provide a kind of inspections of image sensor surface scratch Survey method passes through the abraded area for the multiple image that cumulative record is obtained by sensor, accurate judgement present image sensor sheet Face scratch position and scuffing ratio, to provide effective suggestion to whether its related component needs replacing.
Technical solution of the present invention comprises the following steps that
Step 1: setting, which scratches, judges region, can choose entire image as scuffing and judges region, can also choose figure As certain a part judges region as scuffing;Definition, which scratches, judges area pixel number for N.
Step 2: definition abraded area pixel value is fixed value P.
Step 3: setting one global storage region scratches the pixel value situation for judging region for recording.
Step 4: acquisition piece image reads its scuffing and judges that the pixel value in region is deposited if pixel value is P in the overall situation 1 is recorded in storage area domain, i.e., this time acquisition current pixel position is abraded area to explanation, conversely, recording if pixel value is not P 0, i.e., this time acquisition current pixel position is non-abraded area.
Step 5: step 4 repeats Q times, i.e. accumulation acquisition Q width image, if pixel value situation in certain pixel site Q times acquisition Reading record is 1, then finally determines that this pixel site is abraded area.
Step 6: showing that abraded area number of pixels is n after step 5 statistics, judge area pixel number divided by scuffing with n N, can be obtained the scuffing ratio of sensor surface, while abraded area in the global storage region after each image is acquired Record successively shows with bmp figure, can be obtained it is corresponding scratch position view, when bulk registration is to Q width image, can understand Accurately find out that sensor surface scratches position.
Further, choose and scratched when judging region in step 1, usual scratch in the picture between when, for follow-up data Processing has larger impact, it is therefore preferable that image middle section judges region as scuffing.
Further, comprehensively consider memory space and arithmetic speed, a pixel preferentially selects a byte representation, global The 1 and 0 of record is used in storage region, it is preferential that 1 bit is selected to indicate.
Further, N value is any positive integer in step 1, and n value range is the natural number no more than N in step 6.
Further, P preferred value range is any natural number in [0,255] in step 2.
Further, in step 5 Q preferred value be 6,7,8 in any one.
The invention proposes a kind of image sensor surface scratch detection methods, can accurate judgement sensor surface scratch ratio Example and position, this detection method provide effective suggestion to whether related component needs replacing, and it is frequent both to have avoided user It replaces cost caused by component to waste, prevented also from leading to the problem of component excessively using leading to output data mistake.
[Detailed description of the invention]
Fig. 1 is the specific flow chart of the embodiment of the present invention.
Fig. 2 is the scuffing position view shown after each image acquisition in the embodiment of the present invention.
[specific embodiment]
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, referring to the drawings and illustrative example pair The present invention is further described.
As shown in Figs. 1-2, a kind of image sensor surface scratch detection method provided by the invention, comprising the following steps:
S1: setting image middle section judges region as scuffing, this area size is N number of pixel, and a pixel occupies One byte.
S2: definition abraded area pixel value is fixed value 255.
S3: opening up a global storage region, and it is N number of byte that size, which judges that region is identical with scuffing,.
S4: acquisition piece image reads the pixel value that its scuffing judges region, if pixel value is 255, stores in the overall situation This time acquisition current pixel position is abraded area for 0th record 1 of corresponding position byte in region, i.e. explanation, conversely, if picture Element value is not 255, then the 0th of the corresponding position byte record 0 in global storage region, i.e. explanation this time acquisition current pixel Position is non-abraded area.
S5: repeating to read recording process in S4, and accumulation 8 width images of acquisition, the pixel value situation of piece image reads note Record result is stored in the 0th of corresponding position byte in global storage region, and the pixel value situation of the second width image reads record As a result it is stored in the 1st of corresponding position byte in global storage region, and so on, the pixel value situation of the 8th width image is read It takes and records the 7th that result is stored in corresponding position byte in global storage region.
S6: after the pixel value situation record for completing 8 width images, if global storage region corresponds in the byte of certain location of pixels 0th to the 7th record is 1 (i.e. value is 255), then finally determines that this location of pixels is abraded area, abraded area pixel Number n is the number that global storage region intermediate value is 255, judges area pixel number N divided by scuffing with n, biography can be obtained The scuffing ratio of sensor surfaces.Meanwhile the record of abraded area is successively used in the global storage region after acquiring each image Bmp figure shows, can be obtained it is corresponding scratch position view, when bulk registration is to the 8th width image, can understand and accurately find out Sensor surface scratches position.
One byte 8 serial numbers are as shown in table 1 in the S5:
7 6 5 4 3 2 1 0
Table 1
Further, the scratch detection period can be arranged in user according to demand, if testing result shows that sensor surface scratches When ratio reaches the threshold value needed to change, user is reminded to replace in time.
Further, the threshold data that scuffing ratio needs to change can carry out specific model according to the actual use situation of product Enclose setting.
Above embodiments are only present pre-ferred embodiments, are not intended to limit the invention;Although with reference to the foregoing embodiments Invention is explained in detail, those skilled in the art should understand that: it still can be to previous embodiment Documented technical solution is modified or equivalent replacement of some of the technical features;And these are modified or replace It changes, the spirit and scope for technical solution of the embodiment of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (5)

1. image sensor surface scratch detection method, which is characterized in that comprise the following steps that
Step 1: setting, which scratches, judges region, and defining number of pixels in this region is N;
Step 2: definition abraded area pixel value is fixed value P;
Step 3: global storage region being set, scratches the pixel value situation for judging region for recording;
Step 4: acquisition piece image reads the pixel value that its scuffing judges region, if pixel value is P, in global memory block Record 1 in domain, it is on the contrary then record 0;
Step 5: accumulation acquisition Q width image, it is final to determine if pixel value situation record is 1 in certain pixel site Q times acquisition This pixel site is abraded area;
Step 6: statistics show that abraded area number of pixels is n in step 5, and n is the scuffing ratio of sensor surface divided by N, Sensor scratches position by the way that the record of abraded area can be seen in overall situation storage region after the acquisition Q width image that is shown with bmp figure Out.
2. image sensor surface scratch detection method as described in claim 1, which is characterized in that scratched in the step 1 Judge that region can be entire image, or image a part, favored area are image middle section.
3. image sensor surface scratch detection method as described in claim 1, which is characterized in that N value in the step 1 For any positive integer, P preferred value is any natural number in [0,255] in step 2, and Q preferred value is appointing in 6,7,8 in step 5 Meaning one, n value range is any natural number no more than N in step 6.
4. image sensor surface scratch detection method as described in claim 1, which is characterized in that global in the step 4 It is abraded area that 1 explanation of record, which this time acquires current pixel position, in storage region, and 0 explanation of record this time acquires current pixel portion Position is non-abraded area.
5. image sensor surface scratch detection method as described in claim 1, which is characterized in that a pixel is paid the utmost attention to It is indicated with a byte position, 1 and the 0 of record is used in global storage region and pays the utmost attention to be indicated with 1 bit.
CN201910396258.0A 2019-05-14 2019-05-14 Image sensor surface scratch detection method Pending CN110111324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910396258.0A CN110111324A (en) 2019-05-14 2019-05-14 Image sensor surface scratch detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910396258.0A CN110111324A (en) 2019-05-14 2019-05-14 Image sensor surface scratch detection method

Publications (1)

Publication Number Publication Date
CN110111324A true CN110111324A (en) 2019-08-09

Family

ID=67489832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910396258.0A Pending CN110111324A (en) 2019-05-14 2019-05-14 Image sensor surface scratch detection method

Country Status (1)

Country Link
CN (1) CN110111324A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62157499A (en) * 1985-12-28 1987-07-13 Toshiba Corp Scratch inspection method for image sensor
JP2001268412A (en) * 2000-03-23 2001-09-28 Secom Co Ltd Image sensor
JP2007285869A (en) * 2006-04-17 2007-11-01 Denso Corp Surface inspection system and surface inspection method
CN101995412A (en) * 2010-08-30 2011-03-30 中国科学院计算技术研究所 Robust glass scratch defect detection method and device thereof
CN102265628A (en) * 2008-12-26 2011-11-30 Lg伊诺特有限公司 Method for detecting and correcting bad pixels in image sensor
CN103379293A (en) * 2012-04-11 2013-10-30 佳能株式会社 Image capture apparatus and method for controlling the image capture apparatus
CN106204614A (en) * 2016-07-21 2016-12-07 湘潭大学 A kind of workpiece appearance defects detection method based on machine vision
CN107993223A (en) * 2017-11-27 2018-05-04 歌尔股份有限公司 Scratch detection method, apparatus and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62157499A (en) * 1985-12-28 1987-07-13 Toshiba Corp Scratch inspection method for image sensor
JP2001268412A (en) * 2000-03-23 2001-09-28 Secom Co Ltd Image sensor
JP2007285869A (en) * 2006-04-17 2007-11-01 Denso Corp Surface inspection system and surface inspection method
CN102265628A (en) * 2008-12-26 2011-11-30 Lg伊诺特有限公司 Method for detecting and correcting bad pixels in image sensor
CN101995412A (en) * 2010-08-30 2011-03-30 中国科学院计算技术研究所 Robust glass scratch defect detection method and device thereof
CN103379293A (en) * 2012-04-11 2013-10-30 佳能株式会社 Image capture apparatus and method for controlling the image capture apparatus
CN106204614A (en) * 2016-07-21 2016-12-07 湘潭大学 A kind of workpiece appearance defects detection method based on machine vision
CN107993223A (en) * 2017-11-27 2018-05-04 歌尔股份有限公司 Scratch detection method, apparatus and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭平: "基于机器视觉的表面缺陷检测技术研究", 《中国优秀博硕士学位论文全文数据库(硕士)》 *

Similar Documents

Publication Publication Date Title
CN1690678B (en) Image analysis method, image analysis program and pixel evaluation system having the sames
JP4792109B2 (en) Image defect removal considering image features
Lee et al. Consumer reliance on intrinsic and extrinsic cues in product evaluations: A conjoint approach
EP0624848A2 (en) A technique for the detection and removal of local defects in digital continuous-tone images
US10832026B2 (en) Method and system for determining whether a barcode is genuine using a gray level co-occurrence matrix
US20130342689A1 (en) Video analytics test system
US8189952B2 (en) Image noise reduction method based on local correlation
CN113379680B (en) Defect detection method, defect detection device, electronic device and computer readable storage medium
CN109884727A (en) Foreign matter detecting method, detection device for foreign matter and electronic equipment
CN110197180B (en) Character defect detection method, device and equipment
CN114494259A (en) Cloth defect detection method based on artificial intelligence
US8019143B2 (en) Image processing apparatus and computer program product
CN104272346A (en) Image processing method for detail enhancement and noise reduction
CN106651792B (en) Method and device for removing stripe noise of satellite image
CN109977826B (en) Object class identification method and device
CN101271569A (en) Device, method and computer readable recording medium containing program for evaluating image
CN102663342A (en) Fingerprint authentication apparatus
WO2010001973A1 (en) Image inspection processing device, image inspection processing method, program, and recording medium
CN110111324A (en) Image sensor surface scratch detection method
JP3322958B2 (en) Print inspection equipment
CN112326087B (en) Vehicle contact time-course force measuring method and device based on video identification
CN105704405B (en) Image sensing device and defective pixel detection and compensation method
CN107729373A (en) Movement locus display methods and device
CN103020889A (en) Method and device for image gradient computation
JP4771887B2 (en) Passive and interactive immediate image recognition methods

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190809