CN104376574B - A kind of image smear measuring method and system - Google Patents

A kind of image smear measuring method and system Download PDF

Info

Publication number
CN104376574B
CN104376574B CN201410728323.2A CN201410728323A CN104376574B CN 104376574 B CN104376574 B CN 104376574B CN 201410728323 A CN201410728323 A CN 201410728323A CN 104376574 B CN104376574 B CN 104376574B
Authority
CN
China
Prior art keywords
binaryzation
block
image
stain
module
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
CN201410728323.2A
Other languages
Chinese (zh)
Other versions
CN104376574A (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201410728323.2A priority Critical patent/CN104376574B/en
Publication of CN104376574A publication Critical patent/CN104376574A/en
Application granted granted Critical
Publication of CN104376574B publication Critical patent/CN104376574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The present invention relates to technical field of image processing there is provided a kind of image smear measuring method and system, method includes:Position correction is carried out to picture;Certain a line binaryzation block or a certain row binaryzation block in the image after binary conversion treatment are chosen as the stain measured zone of least unit;Quantity to binaryzation block measures statistics;The quantity of the binaryzation block of stain measured zone is compared with standard binaryzation number of blocks;If the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks, enters row distance and calculate measurement;Judge whether the distance between adjacency binary block meets binaryzation block distance threshold scope;If the distance between adjacency binary block is more than binaryzation block distance threshold scope, judge to have a stain between the adjacency binary block, control stain quantity adds one, records the position of stain;The measurement to image smear is realized, measurement efficiency is improved, reduces the fraction defective of product.

Description

A kind of image smear measuring method and system
Technical field
The invention belongs to technical field of image processing, more particularly to a kind of image smear measuring method and system.
Background technology
Industrial camera is a key component in NI Vision Builder for Automated Inspection, and its most essential function exactly changes optical signal Into orderly electric signal, it is also the important step in Machine Vision System Design to select suitable camera, and the selection of camera is not only Collected image resolution ratio, picture quality etc. is directly determined, while the operational mode also with whole system is directly related.
Visualize electronic product to be miniaturized, high-resolution, for miniature and high-resolution state, electronic product screen The detection of stain, not only needs high resolution industrial camera, it is often more important that need the image taken to camera to carry out high-quality Algorithm Analysis, because high resolution industrial camera price is very high, then the high-quality Algorithm Analysis of image procossing shows Obtain particularly important.
At present, there are problems, the effect of such as dust detection in the analysis method of the image smear shot to industrial camera Rate is relatively low, and accuracy is not high, causes the fraction defective of product and increases.
The content of the invention
It is an object of the invention to provide a kind of image smear measuring method, it is intended to solves in the prior art to industrial camera There are problems in the analysis method of the image smear of shooting, such as dust detection it is less efficient, accuracy is not high, causes production The problem of fraction defective increase of product.
The present invention is achieved in that a kind of image smear measuring method, and methods described comprises the steps:
Using rectangular coordinate system, position correction is carried out to picture;
It is random to obtain image intermediate region, image brightness values detection zone is used as using this image intermediate region;
Calculate the brightness value of the image intermediate region got at random;
Judgement is compared in the brightness value of described image intermediate region and brightness value threshold range;
If the image brightness values of the image intermediate region randomly selected meet the brightness value threshold range, continue executing with The utilization rectangular coordinate system, the step of position correction is carried out to picture;If the figure of the image intermediate region randomly selected When image brightness value does not meet the brightness value threshold range, then whole image brightness value is adjusted, meets the brightness value Threshold range;
Binary conversion treatment is carried out to the image after correction, described image is divided into several binaryzations of ranks distribution Block;
Certain a line binaryzation block or a certain row binaryzation block in the image after binary conversion treatment are chosen as minimum single The stain measured zone of position;
Quantity to the binaryzation block of the stain measured zone measures statistics;
The quantity of the binaryzation block of the stain measured zone is compared with pre-defined standard binaryzation number of blocks To analysis, judge whether the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks;
If the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks, to the stain measurement zone The distance between adjacency binary block in domain carries out calculating measurement;
Judge whether the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope;
If the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, continue to sentence It is disconnected;
If the distance between adjacency binary block is more than pre-defined binaryzation block distance threshold scope, the phase is judged Had a stain between adjacent binaryzation block, control stain quantity adds one, while recording the position of the stain;
If the quantity of the binaryzation block of stain measured zone is equal to standard binaryzation number of blocks, the stain measurement zone is judged Domain is non-stain region.
As an improvement scheme, the utilization rectangular coordinate system, to picture carry out position correction the step of have Body comprises the steps:
In rectangular coordinate system, the reference edge line of image is obtained;
Calculate the reference edge line of image and the horizontal stroke of the rectangular coordinate system or the differential seat angle of longitudinal axis datum line;
According to the differential seat angle, position correction is carried out to described image.
As an improvement scheme, the utilization rectangular coordinate system, to picture carry out position correction the step of it It is preceding also to comprise the steps:
Advance brightness value threshold range, standard binaryzation number of blocks and binaryzation block to image intermediate region is apart from threshold Value scope is defined setting.
The another object of the embodiment of the present invention is to provide a kind of image smear measuring system, and the system includes:
Image rectification module, for utilizing rectangular coordinate system, position correction is carried out to picture;
Image brightness values detection module, described image brightness value detection module is specifically included:Image intermediate region obtains mould Block, for obtaining image intermediate region at random, image brightness values detection zone is used as using this image intermediate region;Brightness value is calculated Module, the brightness value of the image intermediate region got at random for calculating;Contrast judgement module, for by the middle of described image Judgement is compared with brightness value threshold range in the brightness value in region;If the image brightness values of the image intermediate region randomly selected When meeting the brightness value threshold range, described image corrects module and continues executing with the utilization rectangular coordinate system, to picture figure The step of as carrying out position correction;Image brightness values adjusting module, if the image of the image intermediate region for randomly selecting is bright When angle value does not meet the brightness value threshold range, then whole image brightness value is adjusted, meets the brightness value threshold value Scope;
Binary conversion treatment module, carries out binary conversion treatment, by institute for correcting the image after module is corrected to described image State several binaryzation blocks that image is divided into ranks distribution;
Stain measured zone chooses module, for choose certain a line binaryzation block in the image after binary conversion treatment or A certain row binaryzation block as least unit stain measured zone;
Binaryzation number of blocks statistical module, the quantity for the binaryzation block to the stain measured zone measures system Meter;
Quantity compares analysis module, for by the quantity of the binaryzation block of the stain measured zone and pre-defined mark Quasi- binaryzation number of blocks is compared;
Quantity judge module, for judging whether the quantity of binaryzation block of stain measured zone is less than standard binaryzation block Quantity;
Adjacency binary block distance-measurement module, if the quantity for the binaryzation block of stain measured zone is less than standard two Value number of blocks, then carry out calculating measurement to the distance between adjacency binary block in the stain measured zone;
Distance Judgment module, for judging whether the distance between adjacency binary block meets pre-defined binaryzation block Distance threshold scope, if the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, after It is continuous to judge;
Stain determination processing module, if for the distance between adjacency binary block be more than pre-defined binaryzation block away from From threshold range, then judge to have a stain between the adjacency binary block, control stain quantity adds one, while recording the stain Position;
Non- stain regional determination module, if the quantity for the binaryzation block of stain measured zone is equal to standard binaryzation block Quantity, then judge the stain measured zone as non-stain region.
As an improvement scheme, described image correct module specifically include:
Reference edge line acquisition module, in rectangular coordinate system, obtaining the reference edge line of image;
Differential seat angle computing module, for calculating the reference edge line of image and the horizontal stroke or longitudinal axis benchmark of the rectangular coordinate system The differential seat angle of line;
Module is corrected, for according to the differential seat angle, position correction to be carried out to described image.
As an improvement scheme, the system also includes:
Definition module is pre-set, for brightness value threshold range in advance to image intermediate region, standard binaryzation block Quantity and binaryzation block distance threshold scope are defined setting.
In embodiments of the present invention, using rectangular coordinate system, position correction is carried out to picture;To the image after correction Binary conversion treatment is carried out, described image is divided into several binaryzation blocks of ranks distribution;Choose the figure after binary conversion treatment As in certain a line binaryzation block or a certain row binaryzation block as least unit stain measured zone;The stain is surveyed The quantity for measuring the binaryzation block in region measures statistics;By the quantity of the binaryzation block of the stain measured zone with determining in advance The standard binaryzation number of blocks of justice is compared, and judges whether the quantity of the binaryzation block of stain measured zone is less than standard Binaryzation number of blocks;If the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks, to the stain The distance between adjacency binary block in measured zone carries out calculating measurement;Whether judge the distance between adjacency binary block Meet pre-defined binaryzation block distance threshold scope;If the distance between adjacency binary block meets pre-defined two-value Change block distance threshold scope, then continue to judge;If the distance between adjacency binary block be more than pre-defined binaryzation block away from From threshold range, then judge to have a stain between the adjacency binary block, control stain quantity adds one, while recording the stain Position;If the quantity of the binaryzation block of stain measured zone is equal to standard binaryzation number of blocks, the stain measured zone is judged For non-stain region, realize the measurement to image smear, its measurement process directly applies to the measurement of producing line, measurement efficiency compared with Height, reduces the fraction defective of product, reduces human cost, while saving cost.
Brief description of the drawings
Fig. 1 is the implementation process figure of image smear measuring method provided in an embodiment of the present invention;
Fig. 2 is utilization rectangular coordinate system provided in an embodiment of the present invention, and the realization stream of position correction is carried out to picture Cheng Tu;
Fig. 3 and Fig. 4 are the example comparison diagrams that picture position provided in an embodiment of the present invention is corrected;
Fig. 5 is that the image brightness values of the image intermediate region provided in an embodiment of the present invention to randomly selecting carry out brightness value Threshold range is detected, judges whether the image brightness values of the image intermediate region randomly selected meet the brightness value threshold range Implementation process figure;
Fig. 6 is the structured flowchart of image smear measuring system provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of image rectification module provided in an embodiment of the present invention;
Fig. 8 is the structured flowchart of image brightness values detection module provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure for the image smear measuring method that the present invention is provided, the following institute of its specific step State:
In step S101, using rectangular coordinate system, position correction is carried out to picture.
In step s 102, binary conversion treatment is carried out to the image after correction, divided the image into as some of ranks distribution Individual binaryzation block.
In step s 103, certain a line binaryzation block or a certain row binaryzation in the image after binary conversion treatment are chosen Block as least unit stain measured zone.
Wherein, the process that the stain measured zone is chosen, i.e., when carrying out dust detection to the image after binary conversion treatment, need Binaryzation block that will be per a line or each row is detected, is measured in units of every row or each column, is formed stain and is measured Region, such as using edge as implementing example:
With the first row binaryzation block and the second row binaryzation block or first row binaryzation block and secondary series binaryzation block it Between line of demarcation on the basis of, to the direction of the first row binaryzation block or first row binaryzation block, form stain measured zone;
For other positions, duplicate, will not be repeated here, but not to limit the utility model.
In step S104, the quantity to the binaryzation block of stain measured zone measures statistics.
In step S105, by the quantity of the binaryzation block of stain measured zone and pre-defined standard binaryzation block number Amount is compared.
In step s 106, judge whether the quantity of the binaryzation block of stain measured zone is less than standard binaryzation block number Amount, is then to perform step S107, otherwise performs step S110.
In step s 107, it is right if the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks The distance between adjacency binary block in stain measured zone carries out calculating measurement.
In step S108, judge whether the distance between adjacency binary block meets pre-defined binaryzation block distance Threshold range, if the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, continues to sentence It is disconnected, otherwise perform step S109.
In step S109, if the distance between adjacency binary block is more than pre-defined binaryzation block distance threshold model Enclose, then judge to have a stain between the adjacency binary block, control stain quantity adds one, while recording the position of the stain.
In step s 110, if the quantity of the binaryzation block of stain measured zone is equal to standard binaryzation number of blocks, sentence The fixed stain measured zone is non-stain region.
In embodiments of the present invention, as shown in Fig. 2 in above-mentioned steps S101, using rectangular coordinate system, entering to picture The step of line position puts correction specifically includes following step:
In step s 201, in rectangular coordinate system, the reference edge line of image is obtained;
In step S202, the reference edge line of image and the horizontal stroke of the rectangular coordinate system or the angle of longitudinal axis datum line are calculated Degree is poor;
In step S203, according to the differential seat angle, position correction is carried out to described image.
Wherein, by taking rectangle as an example, in Fig. 3, rectangle a top edge line and the transverse axis of standard rectangular coordinate system are into certain Angle, after the step shown in above-mentioned Fig. 2, be corrected as the effect shown in Fig. 4, will not be repeated here.
Wherein, the position of picture is corrected, in order to carry out binary conversion treatment to image, meanwhile, improve dirty The accuracy and efficiency of point measurement.
In this embodiment, also wrapped after above-mentioned utilization rectangular coordinate system, the step of carrying out position correction to picture Include following step:
The image brightness values of image intermediate region to randomly selecting carry out brightness value threshold range detection, judge random choosing Whether the image brightness values of the image intermediate region taken meet the brightness value threshold range;
Wherein, as shown in figure 5, the step is implemented as:
In step S501, image intermediate region is being obtained at random, is being examined using this image intermediate region as image brightness values Survey region.
In step S502, the brightness value of the image intermediate region got at random is calculated.
In step S503, judgement is compared in the brightness value of described image intermediate region and brightness value threshold range.
In step S504, if the image brightness values of the image intermediate region randomly selected meet the brightness value threshold value model When enclosing, the utilization rectangular coordinate system is continued executing with, the step of position correction is carried out to picture;
In step S505, if the image brightness values of the image intermediate region randomly selected do not meet the brightness value threshold value During scope, then whole image brightness value is adjusted, meets the brightness value threshold range.
Wherein, the process of the adjustment judges for automatic cycle, it is possible to be not one-time-reach-place, after adjustment once, continues Above-mentioned steps S502 is performed, terminates adjustment process if eligible, if it is not, step S505 is then continued executing with, until being adjusted to Within brightness value threshold range.
Wherein, in this embodiment, to the detection of image brightness values, the image that can not meet brightness value requirement is carried out bright The adjustment of angle value, to improve the accuracy and efficiency of stain measurement.In each above-mentioned embodiment, in addition it is also necessary to perform following walk Suddenly:
Advance brightness value threshold range, standard binaryzation number of blocks and binaryzation block to image intermediate region is apart from threshold Value scope is defined setting, wherein:
The setting of the brightness value threshold range of image intermediate region, can be according to the setting of programmed algorithm in the middle of image one As region captured, its size, particular location and other items can be without corresponding restrictions, in setting image Between the purpose in region be that image is pre-processed, comply with the detection of image smear, simultaneously, it is ensured that it is accurate that stain is checked Property and efficiency, reduce product fraction defective generation;
Standard binaryzation number of blocks and binaryzation block distance threshold scope, are for the normal of the data after binary conversion treatment Processing procedure is advised, standard binaryzation quantity and binaryzation block distance threshold scope is pre-defined, i.e.,:
Under conventional situation, image is carried out after binary conversion treatment, often in row or each column, the quantity of binaryzation block be it is fixed, And the distance of adjacency binary block is fixed, by the statistics to binaryzation number of blocks, determine whether the row or the row are deposited In stain, if quantity is unsatisfactory for, the location of stain is determined by calculating the distance of adjacency binary block and specific Quantity.
Fig. 6 is the structured flowchart of image smear measuring system provided in an embodiment of the present invention, for convenience of description, in figure only Give the part related to the embodiment of the present invention.
Image rectification module 11 utilizes rectangular coordinate system, and position correction is carried out to picture;
Binary conversion treatment module 12 corrects the image after module 11 is corrected to described image and carries out binary conversion treatment, will be described Image is divided into several binaryzation blocks of ranks distribution;
Stain measured zone formation module 13 is with the first row binaryzation block and the second row binaryzation block or first row two-value On the basis of line of demarcation between change block and secondary series binaryzation block, to the first row binaryzation block or first row binaryzation block Direction, formed stain measured zone;
The quantity of the binaryzation block of 14 pairs of the binaryzation number of blocks statistical module stain measured zone measures statistics;
Quantity compares analysis module 15 by the quantity of the binaryzation block of the stain measured zone and pre-defined standard Binaryzation number of blocks is compared;
Quantity judge module 16 judges whether the quantity of the binaryzation block of stain measured zone is less than standard binaryzation block number Amount;
If the quantity of the binaryzation block of the stain measured zone of adjacency binary block distance-measurement module 17 is less than standard two-value Change number of blocks, then calculating measurement is carried out to the distance between adjacency binary block in the stain measured zone;
Distance Judgment module 18 judge the distance between adjacency binary block whether meet pre-defined binaryzation block away from From threshold range, if the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, continue Judge;
If the distance between adjacency binary block of stain determination processing module 19 is more than pre-defined binaryzation block distance Threshold range, then judge to have a stain between the adjacency binary block, and control stain quantity adds one, while recording the position of the stain Put;
If the quantity of the binaryzation block of the non-stain measured zone of stain regional determination module 20 is equal to standard binaryzation block number Amount, then judge the stain measured zone as non-stain region.
In embodiments of the present invention, the system also includes:
The image brightness values for the image intermediate region that 21 pairs of image brightness values detection module is randomly selected carry out brightness value threshold It is worth range detection, judges whether the image brightness values of the image intermediate region randomly selected meet the brightness value threshold range;
Pre-set brightness value threshold range, standard binaryzation number of blocks of the definition module 22 in advance to image intermediate region And binaryzation block distance threshold scope is defined setting.
Wherein, as shown in fig. 7, above-mentioned image rectification module 11 is specifically included:
Reference edge line acquisition module 111 obtains the reference edge line of image in rectangular coordinate system;
Differential seat angle computing module 112 calculates the reference edge line of image and the horizontal stroke or longitudinal axis datum line of the rectangular coordinate system Differential seat angle;
Module 113 is corrected according to the differential seat angle, position correction is carried out to described image.
As shown in figure 8, above-mentioned image brightness values detection module 21 is specifically included:
Image intermediate region acquisition module 211 obtains image intermediate region at random, and image is used as using this image intermediate region Brightness value detection zone;
Brightness value computing module 212 calculates the brightness value of the image intermediate region got at random;
The brightness value of described image intermediate region is compared contrast judgement module 213 with brightness value threshold range sentences It is disconnected;
If the image brightness values of the image intermediate region randomly selected meet the brightness value threshold range, described image Correct module 11 and continue executing with the utilization rectangular coordinate system, the step of position correction is carried out to picture;
If the image brightness values for the image intermediate region that image brightness values adjusting module 214 is randomly selected do not meet described bright During angle value threshold range, then whole image brightness value is adjusted, meets the brightness value threshold range.
The function of above-mentioned modules will not be repeated here with specific reference to described in above method embodiment, but not be used to The limitation present invention.
In embodiments of the present invention, using rectangular coordinate system, position correction is carried out to picture;To the image after correction Binary conversion treatment is carried out, described image is divided into several binaryzation blocks of ranks distribution;With the first row binaryzation block and On the basis of line of demarcation between two row binaryzation blocks or first row binaryzation block and secondary series binaryzation block, to the first row The direction of binaryzation block or first row binaryzation block, forms stain measured zone;To the binaryzation of the stain measured zone The quantity of block measures statistics;By the quantity of the binaryzation block of the stain measured zone and pre-defined standard binaryzation Number of blocks is compared, and judges whether the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks; If the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks, to the phase in the stain measured zone The distance between adjacent binaryzation block carries out calculating measurement;Judge whether the distance between adjacency binary block meets pre-defined Binaryzation block distance threshold scope;If the distance between adjacency binary block meets pre-defined binaryzation block distance threshold model Enclose, then continue to judge;If the distance between adjacency binary block is more than pre-defined binaryzation block distance threshold scope, sentence Had a stain between the fixed adjacency binary block, control stain quantity adds one, while recording the position of the stain;If stain is measured The quantity of the binaryzation block in region is equal to standard binaryzation number of blocks, then judges the stain measured zone as non-stain region, real Now to the measurement of image smear, its measurement process directly applies to the measurement of producing line, and measurement efficiency is higher, reduces product not Yield, reduces human cost, while saving cost.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.

Claims (6)

1. a kind of image smear measuring method, it is characterised in that methods described comprises the steps:
Using rectangular coordinate system, position correction is carried out to picture;
It is random to obtain image intermediate region, image brightness values detection zone is used as using this image intermediate region;
Calculate the brightness value of the image intermediate region got at random;
Judgement is compared in the brightness value of described image intermediate region and brightness value threshold range;
If the image brightness values of the image intermediate region randomly selected meet the brightness value threshold range, continue executing with described Using rectangular coordinate system, the step of position correction is carried out to picture;If the image of the image intermediate region randomly selected is bright When angle value does not meet the brightness value threshold range, then whole image brightness value is adjusted, meets the brightness value threshold value Scope;
Binary conversion treatment is carried out to the image after correction, described image is divided into several binaryzation blocks of ranks distribution;
Certain a line binaryzation block or a certain row binaryzation block chosen in the image after binary conversion treatment are used as least unit Stain measured zone;
Quantity to the binaryzation block of the stain measured zone measures statistics;
The quantity of the binaryzation block of the stain measured zone and pre-defined standard binaryzation number of blocks are compared point Analysis, judges whether the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks;
If the quantity of the binaryzation block of stain measured zone is less than standard binaryzation number of blocks, in the stain measured zone The distance between adjacency binary block carry out calculating measurement;
Judge whether the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope;
If the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, continue to judge;
If the distance between adjacency binary block is more than pre-defined binaryzation block distance threshold scope, judge this adjacent two Had a stain between value block, control stain quantity adds one, while recording the position of the stain;
If the quantity of the binaryzation block of stain measured zone be equal to standard binaryzation number of blocks, judge the stain measured zone as Non- stain region.
2. image smear measuring method according to claim 1, it is characterised in that the utilization rectangular coordinate system, to figure The step of picture carries out position correction specifically includes following step:
In rectangular coordinate system, the reference edge line of image is obtained;
Calculate the reference edge line of image and the horizontal stroke of the rectangular coordinate system or the differential seat angle of longitudinal axis datum line;
According to the differential seat angle, position correction is carried out to described image.
3. image smear measuring method according to claim 1, it is characterised in that the utilization rectangular coordinate system, to figure Also comprise the steps before the step of picture carries out position correction:
In advance to the brightness value threshold range of image intermediate region, standard binaryzation number of blocks and binaryzation block distance threshold model Enclose and be defined setting.
4. a kind of image smear measuring system, it is characterised in that the system includes:
Image rectification module, for utilizing rectangular coordinate system, position correction is carried out to picture;
Image brightness values detection module, described image brightness value detection module is specifically included:Image intermediate region acquisition module, is used In obtaining image intermediate region at random, image brightness values detection zone is used as using this image intermediate region;Brightness value computing module, The brightness value of the image intermediate region got at random for calculating;Contrast judgement module, for by described image intermediate region Brightness value and brightness value threshold range judgement is compared;If the image brightness values of the image intermediate region randomly selected meet During the brightness value threshold range, described image corrects module and continues executing with the utilization rectangular coordinate system, and picture is entered The step of line position puts correction;Image brightness values adjusting module, if for the image brightness values of the image intermediate region randomly selected When not meeting the brightness value threshold range, then whole image brightness value is adjusted, meets the brightness value threshold range;
Binary conversion treatment module, carries out binary conversion treatment, by the figure for correcting the image after module is corrected to described image Several binaryzation blocks as being divided into ranks distribution;
Stain measured zone chooses module, for choosing certain a line binaryzation block or a certain in the image after binary conversion treatment Row binaryzation block as least unit stain measured zone;
Binaryzation number of blocks statistical module, the quantity for the binaryzation block to the stain measured zone measures statistics;
Quantity compares analysis module, for by the quantity of the binaryzation block of the stain measured zone and pre-defined standard two Value number of blocks is compared;
Quantity judge module, for judging whether the quantity of binaryzation block of stain measured zone is less than standard binaryzation block number Amount;
Adjacency binary block distance-measurement module, if the quantity for the binaryzation block of stain measured zone is less than standard binaryzation Number of blocks, then carry out calculating measurement to the distance between adjacency binary block in the stain measured zone;
Distance Judgment module, for judging whether the distance between adjacency binary block meets pre-defined binaryzation block distance Threshold range, if the distance between adjacency binary block meets pre-defined binaryzation block distance threshold scope, continues to sentence It is disconnected;
Stain determination processing module, if being more than pre-defined binaryzation block apart from threshold for the distance between adjacency binary block It is worth scope, then judges to have a stain between the adjacency binary block, control stain quantity adds one, while recording the position of the stain Put;
Non- stain regional determination module, if the quantity for the binaryzation block of stain measured zone is equal to standard binaryzation block number Amount, then judge the stain measured zone as non-stain region.
5. image smear measuring system according to claim 4, it is characterised in that described image is corrected module and specifically wrapped Include:
Reference edge line acquisition module, in rectangular coordinate system, obtaining the reference edge line of image;
Differential seat angle computing module, horizontal stroke or longitudinal axis datum line for calculating the reference edge line of image and the rectangular coordinate system Differential seat angle;
Module is corrected, for according to the differential seat angle, position correction to be carried out to described image.
6. image smear measuring system according to claim 4, it is characterised in that the system also includes:
Definition module is pre-set, for brightness value threshold range in advance to image intermediate region, standard binaryzation number of blocks And binaryzation block distance threshold scope is defined setting.
CN201410728323.2A 2014-12-03 2014-12-03 A kind of image smear measuring method and system Active CN104376574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410728323.2A CN104376574B (en) 2014-12-03 2014-12-03 A kind of image smear measuring method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410728323.2A CN104376574B (en) 2014-12-03 2014-12-03 A kind of image smear measuring method and system

Publications (2)

Publication Number Publication Date
CN104376574A CN104376574A (en) 2015-02-25
CN104376574B true CN104376574B (en) 2017-08-18

Family

ID=52555464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410728323.2A Active CN104376574B (en) 2014-12-03 2014-12-03 A kind of image smear measuring method and system

Country Status (1)

Country Link
CN (1) CN104376574B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862511B (en) * 2020-08-10 2021-08-24 湖南海森格诺信息技术有限公司 Target intrusion detection device and method based on binocular stereo vision

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697228A (en) * 2009-10-15 2010-04-21 东莞市步步高教育电子产品有限公司 Method for processing text images
CN102693534A (en) * 2012-05-25 2012-09-26 北京航空航天大学 Quick image stain removing method based on image inpainting technology
CN103366358A (en) * 2012-03-30 2013-10-23 Ncr公司 Stain detection
CN104143185A (en) * 2014-06-25 2014-11-12 东软集团股份有限公司 Blemish zone detecting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4472260B2 (en) * 2003-02-07 2010-06-02 日本ボールドウィン株式会社 Printing surface inspection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697228A (en) * 2009-10-15 2010-04-21 东莞市步步高教育电子产品有限公司 Method for processing text images
CN103366358A (en) * 2012-03-30 2013-10-23 Ncr公司 Stain detection
CN102693534A (en) * 2012-05-25 2012-09-26 北京航空航天大学 Quick image stain removing method based on image inpainting technology
CN104143185A (en) * 2014-06-25 2014-11-12 东软集团股份有限公司 Blemish zone detecting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《高速真丝织物污点检测系统的实现》;杨永杰等;《丝绸》;20140228;第51卷(第2期);全文 *

Also Published As

Publication number Publication date
CN104376574A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN104376573B (en) A kind of image smear detection method and system
CN102883175B (en) Methods for extracting depth map, judging video scene change and optimizing edge of depth map
CN104182969B (en) Internal and external parameter calibration method of single-scanline camera
WO2012115009A1 (en) Periodic stationary object detection device and periodic stationary object detection method
CN102829735B (en) Machine vision based detection method of defect of geometrical shape of back surface of E type magnet
CN106978774B (en) A kind of road surface pit slot automatic testing method
CN106338521A (en) Additive manufacturing surface defect, internal defect and shape composite detection method and device
CN104048815B (en) Method and system for measuring distortion of lens
CN105091782A (en) Multilane laser light plane calibration method based on binocular vision
CN105793892B (en) A kind of image processing method, device and picture pick-up device
CN103617613B (en) A kind of microsatellite non-cooperative target image processing method
CN109389630B (en) Method and device for determining and registering feature point set of visible light image and infrared image
CN108917591A (en) Rail profile autoegistration method and device under a kind of dynamic environment
CN113674273A (en) Optical detection method and system based on product defects and readable storage medium
CN104408727B (en) A kind of image border smear detecting method and system
CN106056598A (en) Line segment detection and image segmentation fusion-based satellite high-resolution image building contour extraction method
CN104574415A (en) Target space positioning method based on single camera
CN103500327A (en) Vehicle type identification method of vehicles of same brand based on space position information
CN112381781A (en) Glue road defect detection method based on 3D point cloud
CN103913166A (en) Star extraction method based on energy distribution
CN104376574B (en) A kind of image smear measuring method and system
CN105681693B (en) TDI-CMOS image sensor FPN bearing calibration
CN103411562B (en) A kind of structured light strip center extraction method based on dynamic programming and average drifting
CN206876592U (en) A kind of light source compensator of gradation of image
CN103514354A (en) Method for calculating three-dimensional point normal vector

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant after: Goertek Inc.

Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant before: Goertek Inc.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant