CN103679682A - System and method for finding image spots - Google Patents
System and method for finding image spots Download PDFInfo
- Publication number
- CN103679682A CN103679682A CN201210329071.7A CN201210329071A CN103679682A CN 103679682 A CN103679682 A CN 103679682A CN 201210329071 A CN201210329071 A CN 201210329071A CN 103679682 A CN103679682 A CN 103679682A
- Authority
- CN
- China
- Prior art keywords
- pixel
- stain
- brightness value
- scanning
- scanned
- 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
Landscapes
- Image Analysis (AREA)
Abstract
The invention relates to a system for finding image spots. The system comprises an image capturing module, a brightness calculating module, a spot finding module and a storing module, wherein the image capturing module is used for capturing an image; the brightness calculating module is used for calculating the brightness values of a plurality of pixels in the image; the spot finding module is used for numbering the pixel values; all pixels not be scanned in the image are scanned in a first sequence, the serial number of the scanned pixels is stored in the storing module, and each pixel is scanned only once; the pixels of which the brightness is less than a preset brightness are marked as dots; all pixels not be scanned adjacent to the pixels marked as dots are further scanned in a second sequence, the pixels of which the brightness is less than the preset brightness are still marked as dots, and one after another until the brightness of all pixels adjacent to the pixels marked as dots is larger or equal to the preset brightness. The invention further relates to a method for finding the image spots.
Description
Technical field
The present invention relates to image processing techniques, relate in particular to a kind of image stain seeking system and method.
Background technology
In the assembling process of camera module, dust, chip may fall on the eyeglass of camera module or on optical filter, cause existing in photo that the camera module after assembling takes or video recording the stain of non-scene image.Therefore, conventionally need carry out stain to image captured after camera module group assembling and search, to guarantee the quality of camera module.Current method is manually to judge, but because people's the eyes work time grow, can produce fatigue, thereby has strengthened the probability of erroneous judgement, so the stain that how can carry out quickly and accurately image is searched and become problem demanding prompt solution.
Summary of the invention
In view of this, be necessary to provide a kind of stain seeking system of image accurately and rapidly and method.
An image stain seeking system, it comprises that an image collection module, a brightness calculation module, a stain search module and a memory module.This image collection module is used for obtaining an image, and this image comprises a plurality of pixels that array-like is arranged that are.The brightness of this brightness calculation module for calculating the plurality of pixel.This stain is searched module for the plurality of pixel is numbered.This stain is searched module memory and is contained a predetermined brightness value, and for all pixels not being scanned of specific this image of the first sequential scanning, and the numbering of the pixel being scanned is stored in this memory module, make in the process scanning, the pixel being scanned is directly skipped, until the plurality of pixel is only all scanned once; Then the brightness value and this predetermined brightness value that compare scanned pixel, the pixel that this brightness value is less than to this predetermined brightness value is labeled as stain.This stain is searched module and is further used for specific second sequential scanning this pixel that is marked as stain adjacent all pixels that are not scanned around, the numbering of the pixel being scanned is stored in this memory module, the brightness value and this predetermined brightness value that also compare this scanned pixel, and the pixel that this brightness value is less than this predetermined brightness value is labeled as to stain, recurrence successively, until the pixel that is marked as stain around the brightness value of adjacent all pixels be all more than or equal to this predetermined brightness value.
An image stain lookup method, it comprises the steps:
Take an image, this image comprises a plurality of pixels that array-like is arranged that are;
A plurality of pixels in this image are numbered;
Calculate the brightness value of each pixel in this image;
With all pixels not being scanned in a specific first sequential scanning image, and the numbering of the pixel being scanned is stored; In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan, until each pixel is only scanned once.
Brightness value and this predetermined brightness value of the pixel relatively scanning, and the pixel that brightness value is less than this predetermined brightness value is labeled as to stain;
This pixel that is marked as stain adjacent all pixels that are not scanned around with specific second sequential scanning, and the numbering of the pixel being scanned is stored; In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan;
If this pixel that the is marked as stain around brightness value of adjacent all pixels is all greater than this predetermined brightness value, get back to step " with all pixels not being scanned in a specific first sequential scanning image ";
If this pixel that is marked as stain around has the brightness value of at least one pixel to be less than this predetermined brightness value in adjacent these all pixels, to this at least one pixel around adjacent all pixels get back to step " brightness value and this predetermined brightness value of the pixel relatively scanning, and the pixel that brightness value is less than this predetermined brightness value is labeled as to stain ".
Compared to prior art, image stain seeking system of the present invention and method, the pixel that found brightness value is less than to predetermined brightness value is directly labeled as stain, and in the process of scanning, the numbering that had been scanned pixel is once stored in memory module simultaneously, each pixel is only scanned once, thereby effectively improves the speed of finding stain, to find fast the position at stain place.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of the image stain seeking system that provides of better embodiment of the present invention.
Fig. 2 is the image stain seeking system of Fig. 1 schematic diagram to each pixel number.
Fig. 3 utilizes the image stain seeking system of Fig. 1 to carry out the process flow diagram of image stain lookup method.
Main element symbol description
Image |
100 |
|
10 |
|
30 |
Stain is searched |
50 |
|
70 |
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
Referring to Fig. 1, is a kind of image stain seeking system 100 that embodiment of the present invention provides, and it comprises that an image collection module 10, brightness calculation module 30, a stain search module 50 and a memory module 70.
This image collection module 10 is for obtaining an image.This image is that camera module (not shown) to be tested is captured.In the present embodiment, this image comprises a plurality of pixels that are rectangular arrangement.
This brightness calculation module 30 is for calculating the brightness value of this each pixel of image.
This stain is searched module 50 for the plurality of pixel is numbered according to the position at himself place.As shown in Figure 2, from left to right, the numbering of the pixel of the first row is respectively a10, a11, a12, a13, a14, a15, a16, a17, a18, a19; The numbering of the pixel of the second row is respectively a20, a21, a22, a23, a24, a25, a26, a27, a28, a29.
This stain is searched module 50 also for all pixels not being scanned of a specific first sequential scanning image, and the numbering of the pixel being scanned is stored in this memory module 70, make in the process scanning, the pixel being scanned is directly skipped, do not carry out rescan, until all pixels are only all scanned once.In the present embodiment, described first sequentially for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.
This stain is searched and in module 50, is stored a predetermined brightness value, also for brightness value and this predetermined brightness value of the pixel that relatively scans, and the pixel that brightness value is less than this predetermined brightness value is labeled as to stain.
This stain is searched module 50 and is further used for specific second sequential scanning this pixel that is marked as stain adjacent all pixels that are not scanned around, the numbering of the pixel being scanned is stored in this memory module 70, the brightness value and this predetermined brightness value that also compare scanned pixel, and the pixel that brightness value is less than this predetermined brightness value is labeled as to stain, recurrence successively, until the pixel that is marked as stain around the brightness value of adjacent all pixels be all more than or equal to this predetermined brightness value.In the present embodiment, described second sequentially for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.
If this stain search module 50 find out be marked as stain pixel around the adjacent brightness value that has more than one pixel be less than this predetermined brightness value, so according to scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning, first adjacent all pixels that are not scanned around the forward pixel in position are scanned, then around the pixel after position is leaned on, adjacent all pixels that are not scanned scan.
As shown in Figure 3, be a kind of image stain lookup method that embodiment of the present invention provides, it comprises the steps:
S1: obtain an image, this image comprises a plurality of pixels that array-like is arranged that are.
S2: a plurality of pixels in this image are numbered according to the position at himself place.
S3: the brightness value that calculates each pixel in this image.
S4: with all pixels not being scanned in a specific first sequential scanning image, and the numbering of the pixel being scanned is stored.In the present embodiment, described first sequentially for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan, until each pixel is only scanned once.
S5: in scanning process, brightness value and this predetermined brightness value of the pixel relatively scanning, and the pixel (such as P21) that brightness value is less than this predetermined brightness value is labeled as to stain.
S6: this pixel P21 that is marked as stain adjacent all pixels that are not scanned around with specific second sequential scanning, and the numbering of the pixel being scanned is stored.In the present embodiment, described second sequentially for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan.
S7: if except the pixel being skipped, this pixel P21 around brightness value of adjacent all pixels is greater than this predetermined brightness value, gets back to step S4.
S8: if this pixel P21 around has the brightness value of at least one pixel (such as P32) to be less than this predetermined brightness value in adjacent these all pixels, to this at least one pixel P32 adjacent all pixel repeating step S5 to S8 around.
If this pixel P21 is adjacent around, there is more than one pixel (such as P12, P32) brightness value is less than this predetermined brightness value, so according to scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning, first adjacent all pixels that are not scanned around the forward pixel P12 in position are scanned, then around the pixel P32 after position is leaned on, adjacent all pixels that are not scanned scan.
Image stain seeking system of the present invention and method, the pixel that found brightness value is less than to predetermined brightness value is directly labeled as stain, and in the process of scanning, the numbering that had been scanned pixel is once stored in memory module simultaneously, each pixel is only scanned once, thereby effectively improve the speed of finding stain, to find fast the position at stain place.
Be understandable that, for the person of ordinary skill of the art, can make other various corresponding changes and distortion by technical conceive according to the present invention, and all these change and distortion all should belong to the protection domain of the claims in the present invention.
Claims (10)
1. an image stain seeking system, it comprises that an image collection module, a brightness calculation module, a stain search module and a memory module; This image collection module is used for obtaining an image, and this image comprises a plurality of pixels that array-like is arranged that are; The brightness of this brightness calculation module for calculating the plurality of pixel; This stain is searched module for the plurality of pixel is numbered; This stain is searched module memory and is contained a predetermined brightness value, and for all pixels not being scanned of specific this image of the first sequential scanning and the numbering of the pixel being scanned is stored in this memory module, make in the process scanning, the pixel being scanned is directly skipped, until the plurality of pixel is only all scanned once; This stain is searched module also for comparing brightness value and this predetermined brightness value of the pixel scanning, and the pixel that this brightness value is less than to this predetermined brightness value is labeled as stain; This stain is searched module and is further used for specific second sequential scanning this pixel that is marked as stain adjacent all pixels that are not scanned around, the numbering of the pixel being scanned is stored in this memory module, the brightness value and this predetermined brightness value that also compare this scanned pixel, and the pixel that this brightness value is less than this predetermined brightness value is labeled as to stain, recurrence successively, until can not find the pixel that brightness value is less than this predetermined brightness value in all associated pixels successively.
2. image stain seeking system as claimed in claim 1, is characterized in that, this stain is searched module and according to the position at the plurality of pixel place, the plurality of pixel is numbered.
3. image stain seeking system as claimed in claim 1, is characterized in that, this first order is for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.
4. image stain seeking system as claimed in claim 1, is characterized in that, this second order is for scanning every a line from top to bottom, the order of point by point scanning from left to right in scanning the process of every a line.
5. the image stain seeking system as described in claim 3 or 4, it is characterized in that, if this stain search module find out be marked as stain pixel around the adjacent brightness value that has more than one pixel be less than this predetermined brightness value, so according to scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning, first adjacent all pixels that are not scanned around the forward pixel in position are scanned, then around the pixel after position is leaned on, adjacent all pixels that are not scanned scan.
6. an image stain lookup method, it comprises the steps:
Take an image, this image comprises a plurality of pixels that array-like is arranged that are;
A plurality of pixels in this image are numbered;
Calculate the brightness value of each pixel in this image;
With all pixels not being scanned in a specific first sequential scanning image, and the numbering of the pixel being scanned is stored; In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan, until each pixel is only scanned once;
Brightness value and this predetermined brightness value of the pixel relatively scanning, and the pixel that this brightness value is less than this predetermined brightness value is labeled as to stain;
This pixel that is marked as stain adjacent all pixels that are not scanned around with specific second sequential scanning, and the numbering of the pixel being scanned is stored; In scanning process, if encountered the pixel being scanned, skip this pixel and do not scan;
If except being skipped the pixel that does not carry out scanning, this pixel that the is marked as stain around brightness value of adjacent all pixels is all greater than this predetermined brightness value, gets back to step " with all pixels not being scanned in a specific first sequential scanning image ";
If this pixel that is marked as stain around has the brightness value of at least one pixel to be less than this predetermined brightness value in adjacent these all pixels, to this at least one pixel around adjacent all pixels get back to step " brightness value and this predetermined brightness value of the pixel relatively scanning, and the pixel that brightness value is less than this predetermined brightness value is labeled as to stain ".
7. image stain lookup method as claimed in claim 6, is characterized in that, the plurality of pixel is numbered by the position according to himself place.
8. image stain lookup method as claimed in claim 6, is characterized in that, this first order is for scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.
9. image stain lookup method as claimed in claim 6, is characterized in that, this second order is served as reasons and scanned every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning.
10. image stain lookup method as claimed in claim 8 or 9, it is characterized in that, if this pixel that the is marked as stain around adjacent brightness value that has more than one pixel is less than this predetermined brightness value, so according to scanning every a line from top to bottom, the order of point by point scanning from left to right in the process of the every a line of scanning, first adjacent all pixels that are not scanned around the forward pixel in position are scanned, then around the pixel after position is leaned on, adjacent all pixels that are not scanned scan.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210329071.7A CN103679682A (en) | 2012-09-07 | 2012-09-07 | System and method for finding image spots |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210329071.7A CN103679682A (en) | 2012-09-07 | 2012-09-07 | System and method for finding image spots |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103679682A true CN103679682A (en) | 2014-03-26 |
Family
ID=50317137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210329071.7A Pending CN103679682A (en) | 2012-09-07 | 2012-09-07 | System and method for finding image spots |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103679682A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104349161A (en) * | 2014-09-17 | 2015-02-11 | 常熟实盈光学科技有限公司 | Image smudge judgment method of camera module |
CN115416615A (en) * | 2022-11-04 | 2022-12-02 | 江阴瑞兴塑料玻璃制品有限公司 | Monitoring and cleaning system for dust on front windshield of vehicle |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655588A (en) * | 2005-04-08 | 2005-08-17 | 北京中星微电子有限公司 | Method for compensating bad dots on digital images |
CN101459765A (en) * | 2007-12-13 | 2009-06-17 | 广达电脑股份有限公司 | Method and circuit for correcting dead pixel in video signal |
CN101668222A (en) * | 2008-09-05 | 2010-03-10 | 北京巨数数字技术开发有限公司 | Detection system and detection method for improving pixel uniformity of display screen |
CN101895786A (en) * | 2010-07-15 | 2010-11-24 | 杭州海康威视软件有限公司 | Detection method and device for image sensor |
CN102376094A (en) * | 2010-08-17 | 2012-03-14 | 上海宝康电子控制工程有限公司 | Fast image marking method for video detection |
US20120081766A1 (en) * | 2010-09-30 | 2012-04-05 | Brother Kogyo Kabushiki Kaisha | Image processing apparatus, image processing method and image scanning apparatus |
-
2012
- 2012-09-07 CN CN201210329071.7A patent/CN103679682A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655588A (en) * | 2005-04-08 | 2005-08-17 | 北京中星微电子有限公司 | Method for compensating bad dots on digital images |
CN101459765A (en) * | 2007-12-13 | 2009-06-17 | 广达电脑股份有限公司 | Method and circuit for correcting dead pixel in video signal |
CN101668222A (en) * | 2008-09-05 | 2010-03-10 | 北京巨数数字技术开发有限公司 | Detection system and detection method for improving pixel uniformity of display screen |
CN101895786A (en) * | 2010-07-15 | 2010-11-24 | 杭州海康威视软件有限公司 | Detection method and device for image sensor |
CN102376094A (en) * | 2010-08-17 | 2012-03-14 | 上海宝康电子控制工程有限公司 | Fast image marking method for video detection |
US20120081766A1 (en) * | 2010-09-30 | 2012-04-05 | Brother Kogyo Kabushiki Kaisha | Image processing apparatus, image processing method and image scanning apparatus |
Non-Patent Citations (1)
Title |
---|
侯宏花: "基于区域灰度差", 《数字图像处理与分析》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104349161A (en) * | 2014-09-17 | 2015-02-11 | 常熟实盈光学科技有限公司 | Image smudge judgment method of camera module |
CN104349161B (en) * | 2014-09-17 | 2016-05-18 | 常熟实盈光学科技有限公司 | The dirty decision method of camera module image |
CN115416615A (en) * | 2022-11-04 | 2022-12-02 | 江阴瑞兴塑料玻璃制品有限公司 | Monitoring and cleaning system for dust on front windshield of vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8253828B2 (en) | Image capture device including edge direction determination unit, and image processing method for the same | |
CN102055917B (en) | Pixel defect correction device, imaging apparatus, pixel defect correction method, and program | |
JP3125124B2 (en) | Defective pixel damage correction circuit | |
CN102103753B (en) | Use method and the terminal of real time camera estimation detect and track Moving Objects | |
CN113674273B (en) | Optical detection method and system based on product defects and readable storage medium | |
CN103795920A (en) | Photo processing method and device | |
US20180365275A1 (en) | Passenger Flow Information Collection Method and Apparatus, and Passenger Flow Information Processing Method and Apparatus | |
CN105827914A (en) | Lens cleaning prompting method and device | |
CN107613229A (en) | A kind of dead pixels of image sensor surveys means for correcting and method | |
CN103034833B (en) | Bar code positioning method and bar code detection device | |
US8542919B2 (en) | Method and system for correcting lens shading | |
US8483487B2 (en) | Image processing device and method for capturing object outline | |
TW201334526A (en) | Adaptive image processing method and related apparatus | |
CN103679682A (en) | System and method for finding image spots | |
TW201412110A (en) | Spot detection system and method | |
CN110740314A (en) | Method and system for correcting defective pixel of color line array camera | |
US20160127667A1 (en) | Image capture device, and defective pixel detection and correction method for image sensor array | |
US20150055861A1 (en) | Methods and Systems for Image Demosaicing | |
US8693775B2 (en) | Image processing apparatus, method, recording medium, and program | |
CN107274353A (en) | The bearing calibration of defect pixel in a kind of black white image | |
JP2021505016A (en) | Photosensitive imaging systems and devices with crosstalk compensation for optical black pixels in the array | |
KR102015587B1 (en) | Device and Method for detecting defect pixel and computer-implemented program thereof | |
CN112767397B (en) | Workpiece detection method, workpiece detection device, and storage medium | |
CN113888642A (en) | Online correction method, system, equipment and medium for panoramic system external parameters | |
CN103034834B (en) | Bar code detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140326 |
|
WD01 | Invention patent application deemed withdrawn after publication |