CN1790378A - Binary method and system for image - Google Patents

Binary method and system for image Download PDF

Info

Publication number
CN1790378A
CN1790378A CN200510132371.6A CN200510132371A CN1790378A CN 1790378 A CN1790378 A CN 1790378A CN 200510132371 A CN200510132371 A CN 200510132371A CN 1790378 A CN1790378 A CN 1790378A
Authority
CN
China
Prior art keywords
image
level
value
pixel
subimage
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.)
Granted
Application number
CN200510132371.6A
Other languages
Chinese (zh)
Other versions
CN100363942C (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.)
New Founder Holdings Development Co ltd
Peking University
Peking University Founder Research and Development Center
Original Assignee
BEIDA FANGZHENG TECHN INST Co Ltd BEIJING
Peking University
Peking University Founder Group 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 BEIDA FANGZHENG TECHN INST Co Ltd BEIJING, Peking University, Peking University Founder Group Co Ltd filed Critical BEIDA FANGZHENG TECHN INST Co Ltd BEIJING
Priority to CNB2005101323716A priority Critical patent/CN100363942C/en
Publication of CN1790378A publication Critical patent/CN1790378A/en
Application granted granted Critical
Publication of CN100363942C publication Critical patent/CN100363942C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a two-valued system and method of image in the image disposal technique of computer information disposal domain, which comprises the following steps: dividing the statistical data of image into three levels according to the pixel scale; providing property confirmation method of image region according to the jump; proceeding two-valued conversion of each pixel point according to each level character value. The two-valued system contains block scanning device, threshold solving device, data analysis device and two-valued switching device. The invention improves the statistical speed and precision, which is fit for shooting image by digital camera.

Description

A kind of binarization method of image and system
Technical field
The invention belongs to the image processing techniques in computer information processing field, be specifically related to a kind of binarization method and system of image.
Background technology
Along with digital camera and the first-class digital product of shooting use general, the literal identification of the image of being taken by these digital products also will obtain extensive must the application.Usually, literal identification at first will be carried out binaryzation, and so-called binaryzation exactly coloured image or gray level image are become the process of black white image, and each pixel of this black white image is encoded with 1 bit.The method of binaryzation can be divided into global threshold method and local threshold method substantially, and the way of some both combinations is also arranged.The global threshold method is meant that entire image is chosen single threshold value carries out binaryzation.The local threshold method refers to that image zoning territory to each zone or each picture element setting threshold, pointwise is to image binaryzation then.The computing velocity of global threshold method is very fast, the also comparative maturity of development.As " a kind of method of binaryzation " [Chinese patent application CN200510080050.6 based on the Otso method, on November 9th, 2005 is open], reached good effect for the image of handling most scanner input, but the image of taking owing to digital camera or camera is because of reasons such as illumination, shooting angle, cause serious inhomogeneous of the image background degree of depth, unsatisfactory with global threshold method effect.On the other hand, the local threshold method is only considered pixel neighborhood of a point characteristic, with the Bernsen method is example, this algorithm is with the maximum of local window, the threshold value of minimum value average out to picture element, therefore, pixel is background or stroke in window, and its gray scale just obtains wrong binaryzation result when inhomogeneous, pseudo-shadow phenomenon therefore occurs.Some local threshold method adopts the subimage form, as " the image binaryzation algorithm of cutting apart based on local maximum variance " [Yao Yuhua etc., microcomputer is used, 2003 the 19th the 8th phases of volume], its threshold value for subimage is asked for and is relied on the histogrammic double-hump characteristics of subimage, however the image that digital camera is taken, and the contrast of general background and prospect is not outstanding, most of subimage histogram all is unimodal, so said method is inapplicable for digital camera images.Also have some in conjunction with the method local and overall situation, as " the image binaryzation method research at based target edge " [Zheng Hao etc., measurement technology, 2002 the 4th phases] in a kind of binarization method based on rim detection has been described, but its binaryzation effect is subjected to the influence of selection of difference operator bigger, and when asking for the edge, speed is slower.
Summary of the invention
At the defective that exists in the prior art, the binarization method and the system that the purpose of this invention is to provide a kind of image, these method and system can be good at solving the image by shootings such as digital cameras, because the uneven problem of the background depth that problems such as illumination cause.Simultaneously, saltus step information between the pixel that directly obtains when the present invention utilizes scan image is judged prospect, the background attribute of image block, add the mutual reference of Three Estate feature, prospect, background judgement to pixel are quick, accurate, thereby finally can obtain to be fit to the black white image of OCR identification.
For reaching above purpose, the technical solution used in the present invention is:
A kind of binarization method of image may further comprise the steps:
(1) document with input is converted to Digital Image Data;
(2) at first image is pressed the Three Estate piecemeal, be respectively whole level, sub-image area level, pixel area level, the eigenwert of each piece of scan statistics Three Estate then;
(3) calculate the threshold value of whole level and sub-image area each piece of level;
(4) data that obtain according to step (2) and step (3) are revised the eigenwert of sub-image area level;
(5) according to revised eigenwert to image pointwise binaryzation.
Further, for making the present invention have better effect, in the step (2), described whole level is that entire image is a piece, the sub-image area level is that image is divided into the experimental process image, and described subimage is a fixed size, or according to the size of whole level image, determine that in proportion each subimage block is not less than 128 * 128 picture elements; The pixel area level is that the pixel dot matrix with n*n is one, and wherein n is a positive integer, and n is smaller or equal to 16.
In the step (2), the eigenwert of each piece of scan statistics Three Estate realizes as follows: scan each picture element successively, for each picture element, position according to its place image, determine which piece it belongs to respectively at different levels, then the feature of this pixel is participated in the at different levels characteristic statistics under it.
The eigenwert of each level block further again, step 2) comprises the grey level histogram, maximum gradation value, minimum gradation value, saltus step average gray of each piece in the subimage, the number of picture elements that Gray Level Jump is bigger;
Gray Level Jump in the above-mentioned eigenwert is asked for like this: relatively present picture element point and its interlacing or every the gray-scale value of row picture element, if it is enough big, the Gray Level Jump number of picture elements adds 1, each gray scale difference value is added up, after having scanned interior all pixels of this piece, the merchant of gray scale difference value that adds up and Gray Level Jump number of picture elements is the Gray Level Jump average of this piece.
Step 2) Gray Level Jump asks in the process in, the gray difference that is not per two pixels all will add up, the present invention at first sets a basic hop value, has only the just participation accumulation calculating of two pixel gray differences greater than basic hop value, and the empirical value of described basic hop value is between 5-8.
Further, in the step (3), use the grey level histograms that count at different levels, obtain the threshold value of each piece image in entire image and the subimage level with big Tianjin method.
Further, the data that obtain according to step (2) and step (3) in the step (4) method that the eigenwert of sub-image area level is revised may further comprise the steps:
A. at first, set one with reference to hop value.With sub-image area level binary-state threshold is horizontal ordinate, and sub-image area level hop value is an ordinate, and subimage is divided in the different zones;
B. then, the subimage of zones of different is taked different analytical approachs;
Further, described analytical approach is as follows:
A) display foreground, background replace image less and that background proportion is more, at first select the bigger image of hop value around this subimage, with the average binary-state threshold of the bigger subimage of these saltus steps binary-state threshold as this subimage.If other subimage blocks that do not satisfy condition around this subimage block, so just judge the background piece that this subimage block is whether pure, if just make the binary-state threshold of this subimage block be this subimage block minimum gradation value-1, after being binaryzation, this image block does not have the prospect pixel.Otherwise the whole level of order threshold value is the binary-state threshold of this subimage block.
B) for the subimage of background that may have partial continuous or prospect, rescan statistics with reference to the saltus step of pixel area level.
Further, of the present invention rescaning in the process, at first determine the accurate hop value of minimum, find all pixel level pieces that are included in the subimage level piece then, have only satisfy greater than the accurate pixel level piece of hop value just participate in rescaning, statistics.If there is not the enough pixel level piece that satisfies condition to participate in statistics, so just by 1) method handle.With 1) to handle in the method different be that if be not used in other subimages that satisfy condition of calculated threshold around the subimage, threshold value does not make an amendment.
C) replace more subimage for prospect, background, will not revise.
The method that two-value transforms in the step (5) may further comprise the steps:
(a) at first determine 3 rules that the pixel binaryzation is mainly followed: promptly 1. gray-scale value is big more, illustrates that then the color of picture element is light more, tends to be judged as background, and vice versa; 2. the interior saltus step of the subimage block of sub-image area level is big more under the pixel, and explanation prospect, background changing are strong more, and it is more to contain band identification literal.3. saltus step is big more in the pixel level piece, and it is bigger to illustrate that pixel belongs to the possibility of edge pixel.
(b) utilize above-mentioned rule, each pixel is done prospect, background judgement.
A kind of binaryzation system of image comprises with lower device: image-input device, blocked scan device, threshold value are asked for device, data analysis set-up and two-value reforming unit and output unit;
Wherein, image-input device is used for the document of input is converted to Digital Image Data; The blocked scan device is used for the eigenwert of image by Three Estate piecemeal and each piece of scan statistics Three Estate, and described Three Estate piecemeal is respectively whole level, sub-image area level, pixel area level; Threshold value is asked for the threshold value that device is used to calculate whole level and sub-image area each piece of level; Data analysis set-up is used for asking for device according to blocked scan device and threshold value and obtains various eigenwerts, and the eigenwert of sub-image area level is revised; The two-value reforming unit is used for original image is converted to the image file of black and white two-value; Output unit is used to export the image file that has been converted the black and white two-value.
Effect of the present invention is: adopt method of the present invention, can obtain being suitable for the black white image of OCR identification quickly and accurately by gray level image, be particularly useful for digital camera, the first-class shooting of shooting, because the binaryzation of the image of the background colour inequality that shooting angle, light, shade etc. cause.
Description of drawings
Fig. 1 is the The general frame according to system of the present invention;
Fig. 2 is the process flow diagram that carries out characteristic statistics in the embodiment of the invention;
Fig. 3 is the feature regional of data analysis in the embodiment of the invention;
Fig. 4 is the process flow diagram of a picture element binaryzation in the embodiment of the invention;
Fig. 5 is the effect contrast figure of the method for the invention and additive method, and wherein a, b, c are respectively gray-scale map, big Tianjin method design sketch, design sketch of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and the specific embodiments.
As shown in Figure 1, a kind of binaryzation system of image, comprise characteristics of image statistical study part and pointwise binaryzation part, specifically comprise with lower device: image-input device, blocked scan device, threshold value are asked for device, data analysis set-up and two-value reforming unit and output unit.
Wherein, the characteristics of image statistical study partly comprises image-input device, and it can be image-input devices such as scanner, facsimile recorder or digital camera, is particularly useful for the image that digital camera or camera are taken.Comprise that also scanister, threshold value ask for device, data analysis set-up.
Wherein, image-input device is used for the document of input is converted to Digital Image Data; The blocked scan device is used for the eigenwert of image by Three Estate piecemeal and each piece of scan statistics Three Estate, and described Three Estate piecemeal is respectively whole level, sub-image area level, pixel area level; Threshold value is asked for the threshold value that device is used to calculate whole level and sub-image area each piece of level; Data analysis set-up is used for asking for device according to blocked scan device and threshold value and obtains various eigenwerts, and the eigenwert of sub-image area level is revised; The two-value reforming unit is used for original image is converted to the image file of black and white two-value; Output unit is used to export the image file that has been converted the black and white two-value.
A kind of binarization method of image may further comprise the steps:
(1) will import document and be converted to Digital Image Data, described document can be document printing, hand-written document or other forms of document;
(2) at first image is pressed the Three Estate piecemeal, be respectively whole level, sub-image area level, pixel area level, the eigenwert of each piece of scan statistics Three Estate then;
1) at first image is pressed the Three Estate piecemeal, first grade is whole level, and promptly entire image is a piece; Second grade is the sub-image area level, and image is divided into several number of sub images of equal size, as, image is divided into 10 * 10.Because each subimage block need calculate binary-state threshold by big Tianjin method, so each subimage block can not be too small, under the smaller situation of image, reduce the subimage block number, make each subimage block be not less than 128 * 128 picture elements.Three Estate is the pixel area level, and the pixel dot matrix as 8 * 8 is one.
2) then, scan each picture element successively.As shown in Figure 2, step (2) is by the point on the scanister pointwise statistical picture, and the data of needs realize by the following method during according to the gray-scale value record statistical study of each point.
For each picture element, according to the position of its place image, determine which piece it belongs to respectively at different levels, then the feature of this pixel is participated in the at different levels characteristic statistics under it.Because all pixels all belong to same on the first estate, needn't add up the feature of whole level during scanning, being added up by the feature of subimage level in the scanning back to obtain the statistical value of whole level.Therefore only add up the eigenwert of subimage level and pixel level in the scanning process.
Eigenwert in the said method comprises the grey level histogram, maximum gradation value, minimum gradation value, saltus step average gray of each piece in the subimage, number of picture elements that Gray Level Jump is bigger etc.
Gray Level Jump in the above-mentioned eigenwert is asked for like this: the gray-scale value of relatively present picture element point and its interlacing (or every row) picture element, if it is enough big, the Gray Level Jump number of picture elements adds 1, each gray scale difference value is added up, after having scanned interior all pixels of this piece, the merchant of gray scale difference value that adds up and Gray Level Jump number of picture elements is the Gray Level Jump average of this piece.Two pixels of above-mentioned comparison also can be adjacent, but interlacing or every row two pixels between on the border saltus step more obvious, then difference is less for non-border, so better effects if.
Asking in the process of above-mentioned Gray Level Jump, the gray difference that is not per two pixels all will add up, because also have small difference between close two pixels that belong to background or prospect together, if the difference that these are small adds up, and the calculating of the difference fellowship saltus step of pixel between the border, must obliterate the high-lighting of saltus step feature, therefore, the present invention at first sets a basic hop value (empirical value of basic hop value is between 5-8), and two pixel gray differences are greater than the just participation accumulation calculating of basic hop value.
In the scanning process of the present invention, needn't all add up by each pixel, facts have proved, interlacing, can not influence the various eigenwerts of monoblock, and reduced sweep time greatly every the extraction statistics pixel of row.
(3) calculate the threshold value of whole level and sub-image area each piece of level;
In the present embodiment, use the grey level histograms that count at different levels, obtain the threshold value of each piece image in entire image and the subimage level, certainly, also can adopt other methods of asking for threshold value, such as average gray threshold method, Mathematical Expectation Method etc. with big Tianjin method.
(4) data that obtain according to step (2) and step (3) are revised the eigenwert of sub-image area level;
The process of data analysis of the present invention is exactly further to make the accurate process of subimage level binary-state threshold.The parameter of data analysis set-up input is the eigenwert that scanister and threshold value are asked for each grade of image that obtains in the device, output be the accurate relatively binary-state threshold of each piece subimage of subimage level.At first, set one with reference to hop value (empirical value is the mean value of whole level average transition value and basic hop value).With sub-image area level binary-state threshold is horizontal ordinate, and sub-image area level hop value is an ordinate, and subimage is divided in the different zones.Fig. 3 illustrates the feature regional of using according in the one embodiment of the invention data analysis process.As seen from Figure 3, different according to subimage binary-state threshold and hop value, subimage is in 3 different zones.The present invention will take different analytical approachs to the subimage in 3 zones.
At first, the subimage saltus step of a-quadrant is less, and binary-state threshold is higher, then display foreground, background replace less and background proportion more, for the image of this feature, the threshold value in the zone that big Tianjin method calculates is higher usually, and the image that obtains by this threshold binarization will produce a lot of stains.For the subimage of a-quadrant, we at first select the bigger image of hop value around this subimage, with the average binary-state threshold of the bigger subimage of these saltus steps binary-state threshold as this subimage.If other subimage blocks that do not satisfy condition around this subimage block, so just judge the whether pure background piece of determining of this subimage, if just make the binary-state threshold of this subimage block be this subimage block minimum gradation value-1, after being binaryzation, this image block does not have the prospect pixel.
The judgement of pure background piece of the present invention is as follows, at first, the saltus step threshold value of subimage block is less, satisfy less than basic hop value and average with reference to hop value, secondly, the minimum pixel value of subimage is less than whole level binary-state threshold, and the maximum pixel value of subimage is greater than whole level binary-state threshold.
If can not satisfy above-mentioned two conditions, the whole level of order threshold value is the binary-state threshold of this subimage block.
The subimage saltus step in B zone is lower than the saltus step of whole level, illustrates that may there be the background or the prospect of partial continuous in this zone, therefore, for this regional subimage, rescan statistics with reference to the saltus step of pixel area level.
It is of the present invention that to rescan process as follows:
At first determine the accurate hop value of minimum, think to exist enough preceding backgrounds alternately in the pixel level piece greater than this accurate hop value that minimum accurately hop value is taken at reference between hop value and the whole grade of average transition value.
Find all pixel level pieces that are included in the subimage level piece then, the pixel level piece that satisfies greater than accurate hop value is rescaned, statistics is calculated the threshold value of binary-state threshold as this subimage block with big Tianjin method again according to histogram.
If there are not enough pixel level pieces that satisfies condition to participate in statistics, so just as the subimage of a-quadrant, the bigger image of hop value around the chooser image is with the average binary-state threshold of the bigger subimage of these saltus steps binary-state threshold as this subimage.Different with the processing of a-quadrant subimage is that if be not used in other subimages that satisfy condition of calculated threshold around the subimage, threshold value does not make an amendment.
The subimage hop value in C zone is higher, thinks that this regional subimage prospect, background are alternately more, is equal to the zone that comprises a lot of text messages, and the threshold value that therefore big Tianjin method calculates is more accurate, will not revise.
(5) the two-value reforming unit is to image pointwise binaryzation, and being about to greyscale image transitions is the image file of black and white two-value.
The flow process of pixel binaryzation of the present invention is mainly followed following rule:
1. gray-scale value is big more, illustrates that then the color of picture element is light more, tends to be judged as background, and vice versa.
2. the interior saltus step of the subimage block of sub-image area level is big more under the pixel, and explanation prospect, background changing are strong more, and it is more to contain band identification literal.
3. saltus step is big more in the pixel level piece, and it is bigger to illustrate that pixel belongs to the possibility of edge pixel.
As shown in Figure 4, the flow process of a pixel binaryzation judgement is as follows:
At first, according to being the center with a whole level threshold value of asking for threshode devices output, mark an isolation strip, the upper edge of isolation strip be the max-thresholds of whole level, and the lower edge be the minimum threshold of integral body grade.Order is maximum, minimum threshold is respectively Max_T, Min_T, and whole level threshold value is Whole_T, so
Max_T=Whole_T×(1+α),
Min_T=Whole_T×(1-α),
Wherein α is a fixing coefficient, and empirical value is 0.4.
According to existing data, the parts of images pixel that can carry out binaryzation has following several situation:
1. gray-scale value is judged as background pixels greater than whole level max-thresholds;
2. gray-scale value is less than whole level minimum threshold, Gray Level Jump less (preventing the character background erroneous judgement of shadow region) in the subimage level piece, and the maximum gray scale of subimage level piece is judged as the prospect pixel greater than the pixel of threshold value (preventing does not have the erroneous judgement of prospect shadow region).
3. gray-scale value is greater than whole level threshold value, and the pixel level Gray Level Jump is less, and pixel level maximum, minimal gray difference are less, are judged as background pixels.
If pixel does not belong to above-mentioned three kinds of situations, just obtain the pixel level threshold value according to the bilinearity difference.At first find out the subimage block of the four number of sub images levels nearest apart from this picture element, think that the subimage level threshold value of each subimage block is the binary-state threshold of this image block central point pixel, the threshold value of establishing four central points is respectively T TL, T TR, T BL, T BR, W T, W B, W L, W RBe the weights to this picture element degree of influence, then the threshold value of this picture element is:
T=W T×(T TL×W L+T TR?×W R)+W B×(T BL×W L+T BR×W R);
Wherein, above-mentioned weights are obtained by the distance calculation of picture element to the rectangle that is the summit with four central points (or square) each limit, upper and lower, left and right, are inversely proportional to distance.
According to picture element threshold value other eigenwerts with the statistics in early stage, the binaryzation result of most of pixel just can determine.Mainly comprise following situation:
1. if pixel gray-scale value and picture element threshold value differ bigger, then the pixel gray-scale value is greater than the background that is judged as of threshold value, on the contrary the prospect of being judged as.
2. if pixel gray-scale value and picture element threshold value are more or less the same, the pixel level Gray Level Jump is less, the difference of pixel level maximum gradation value and minimum gradation value is also very little, illustrate that this pixel level zone exists the possibility on border less, if the gray-scale value of this picture element then is judged as background greater than mean value maximum, minimum gradation value.
3. if pixel gray-scale value and picture element threshold value difference are very little, do not satisfy above-mentioned condition again, will ask for the transitional states of this pixel, determine that pixel should be judged to background or prospect.
Ask in the transitional states of this pixel in step, if HT, HB, HL, HR are respectively the gray scale difference of the adjacent upper and lower, left and right pixel of this pixel and this pixel itself, if gray scale difference is greater than the product of a basic saltus step and a coefficient (empirical value is 1.5~2) arbitrarily, think that then this pixel belongs to edge pixel, to determine according to transitional states, otherwise directly according to the pixel level threshold decision.
The following several situation of passing through that is defined as edge pixel is judged:
1. if HT, HB, HL, HR's and greater than the basic saltus step of twice illustrate that this pixel is that more peripheral pixel color is darker, is judged as prospect;
2. if HT, HB, HL, HR's and less than the twice of negative basic saltus step illustrate that this pixel is that more peripheral pixel color is more shallow, is judged as background;
If can not satisfy above-mentioned two conditions, then use the binary-state threshold of the mean value of pixel level maximal value and minimum value as this pixel.
Experimental result shows that by adopting the present invention, the image after the binaryzation can be good at evading the deep mixed problem that causes of background that image is caused owing to the shooting angle difference, and relative very fast with the regional binaryzation phase specific rate of other complexity.
In view of this, the present invention has played significant optimization function.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the binarization method of an image may further comprise the steps:
(1) document with input is converted to Digital Image Data;
(2) at first image is pressed the Three Estate piecemeal, be respectively whole level, sub-image area level, pixel area level, the eigenwert of each piece of scan statistics Three Estate then;
(3) calculate the threshold value of whole level and sub-image area each piece of level;
(4) data that obtain according to step (2) and step (3) are revised the eigenwert of sub-image area level;
(5) according to revised eigenwert to image pointwise binaryzation.
2. the binarization method of a kind of image as claimed in claim 1, it is characterized in that: in the step (2), described whole level is that entire image is a piece, the sub-image area level is that image is divided into the experimental process image, described subimage is a fixed size, or, determine that in proportion each subimage block is not less than 128 * 128 picture elements according to the size of whole level image; The pixel area level is that the pixel dot matrix with n*n is one, and wherein n is a positive integer, and n is smaller or equal to 16.
3. the binarization method of a kind of image as claimed in claim 1, it is characterized in that: in the step (2), the eigenwert of each piece of scan statistics Three Estate realizes as follows: scan each picture element successively, for each picture element, position according to its place image, determine which piece it belongs to respectively at different levels, then the feature of this pixel is participated in the at different levels characteristic statistics under it.
4. the binarization method of a kind of image as claimed in claim 2 is characterized in that: step 2) described in the eigenwert of each level block comprise the grey level histogram, maximum gradation value, minimum gradation value, saltus step average gray of each piece in the subimage, the number of picture elements that Gray Level Jump is bigger.
5. the binarization method of a kind of image as claimed in claim 4, it is characterized in that: the Gray Level Jump in the above-mentioned eigenwert is asked for like this: relatively present picture element point and its interlacing or every the gray-scale value of row picture element, if it is enough big, the Gray Level Jump number of picture elements adds 1, each gray scale difference value is added up, after having scanned interior all pixels of this piece, the merchant of gray scale difference value that adds up and Gray Level Jump number of picture elements is the Gray Level Jump average of this piece.
6. the binarization method of a kind of image as claimed in claim 5, it is characterized in that: step 2) in the asking in the process of Gray Level Jump, at first set a basic hop value, have only the just participation accumulation calculating of two pixel gray differences greater than basic hop value, the empirical value of described basic hop value is between 5-8.
7. as the binarization method of claim 1,2,3,4,5 or 6 described a kind of images, it is characterized in that: in the step (3), use the grey level histograms that count at different levels, obtain the threshold value of each piece image in entire image and the subimage level with big Tianjin method.
8. as the binarization method of claim 1,2,3,4,5 or 6 described a kind of images, it is characterized in that: the method that the data that obtain according to step (2) and step (3) in the step (4) are revised the eigenwert of sub-image area level may further comprise the steps:
A. at first, setting one is horizontal ordinate with reference to hop value with sub-image area level binary-state threshold, and sub-image area level hop value is an ordinate, and subimage is divided in the different zones;
B. then, the subimage of zones of different is taked different analytical approachs;
Further, above-mentioned analytical approach is as follows:
A) display foreground, background replace image less and that background proportion is more, at first select this subimage bigger image of hop value on every side, with the average binary-state threshold of the bigger subimage of these saltus steps binary-state threshold as this subimage, if other subimage blocks that do not satisfy condition around this subimage block, so just judge the background piece that this subimage block is whether pure, if, just make the binary-state threshold of this subimage block be this subimage block minimum gradation value-1, after being binaryzation, this image block does not have the prospect pixel.Otherwise the whole level of order threshold value is the binary-state threshold of this subimage block;
B) for the subimage of background that may have partial continuous or prospect, rescan statistics with reference to the saltus step of pixel area level;
Further, of the present invention rescaning in the process, at first determine the accurate hop value of minimum, find all pixel level pieces that are included in the subimage level piece then, have only satisfy greater than the accurate pixel level piece of hop value just participate in turning round again retouch, statistics, if there are not enough pixel level pieces that satisfies condition to participate in statistics, the method of so just pressing a) is handled, with handling in a) method different be, if be not used in other subimages that satisfy condition of calculated threshold around the subimage, threshold value does not make an amendment;
C) replace more subimage for prospect, background, will not revise.
9. as the binarization method of claim 1,2,3,4,5 or 6 described a kind of images, it is characterized in that: the method that two-value transforms in the step (5) may further comprise the steps:
(a) at first determine 3 rules that the pixel binaryzation is mainly followed: promptly 1. gray-scale value is big more, illustrates that then the color of picture element is light more, tends to be judged as background, and vice versa; 2. the interior saltus step of the subimage block of sub-image area level is big more under the pixel, and explanation prospect, background changing are strong more, and it is more to contain band identification literal; 3. saltus step is big more in the pixel level piece, and it is bigger to illustrate that pixel belongs to the possibility of edge pixel;
(b) utilize above-mentioned rule, each pixel is done prospect, background judgement.
10. the binaryzation system of an image, comprise with lower device: image-input device, blocked scan device, threshold value are asked for device, data analysis set-up and two-value reforming unit and output unit;
Wherein, image-input device is used for the document of input is converted to Digital Image Data; The blocked scan device is used for the eigenwert of image by Three Estate piecemeal and each piece of scan statistics Three Estate, and described Three Estate piecemeal is respectively whole level, sub-image area level, pixel area level; Threshold value is asked for the threshold value that device is used to calculate whole level and sub-image area each piece of level; Data analysis set-up is used for asking for device according to blocked scan device and threshold value and obtains various eigenwerts, and the eigenwert of sub-image area level is revised; The two-value reforming unit is used for original image is converted to the image file of black and white two-value; Output unit is used to export the image file that has been converted the black and white two-value.
CNB2005101323716A 2005-12-21 2005-12-21 Binary method and system for image Expired - Fee Related CN100363942C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101323716A CN100363942C (en) 2005-12-21 2005-12-21 Binary method and system for image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101323716A CN100363942C (en) 2005-12-21 2005-12-21 Binary method and system for image

Publications (2)

Publication Number Publication Date
CN1790378A true CN1790378A (en) 2006-06-21
CN100363942C CN100363942C (en) 2008-01-23

Family

ID=36788215

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101323716A Expired - Fee Related CN100363942C (en) 2005-12-21 2005-12-21 Binary method and system for image

Country Status (1)

Country Link
CN (1) CN100363942C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012048661A1 (en) * 2010-10-14 2012-04-19 北大方正集团有限公司 Rasterization method and device
CN102456212A (en) * 2010-10-19 2012-05-16 北大方正集团有限公司 Separation method and system for visible watermark in numerical image
CN103279757A (en) * 2013-05-22 2013-09-04 福建鑫诺通讯技术有限公司 Binaryzation method of pig ear tag code figure without black hole influence
CN103716529A (en) * 2012-09-28 2014-04-09 卡西欧计算机株式会社 Threshold setting device, object detection device, and threshold setting method
CN105513010A (en) * 2015-12-28 2016-04-20 星视创(长沙)智能装备有限公司 Document scanning processing apparatus and processing method
CN107590814A (en) * 2017-09-01 2018-01-16 上海斐讯数据通信技术有限公司 The binary processing method and system of a kind of 3-D view
CN110087063A (en) * 2019-04-24 2019-08-02 昆山丘钛微电子科技有限公司 A kind of image processing method, device and electronic equipment
CN110266906A (en) * 2019-06-21 2019-09-20 同略科技有限公司 The intelligent digitalized processing flowing water method of archives, system, terminal and storage medium
CN112991286A (en) * 2021-03-05 2021-06-18 浙江大华技术股份有限公司 Image statistical data detection method, device and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002157552A (en) * 2000-11-22 2002-05-31 Oki Electric Ind Co Ltd Optical character reader
CN100377169C (en) * 2005-06-28 2008-03-26 北大方正集团有限公司 Method for picture binaryzation

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456219B (en) * 2010-10-14 2014-09-03 北大方正集团有限公司 Rasterization method and apparatus thereof
CN102456219A (en) * 2010-10-14 2012-05-16 北大方正集团有限公司 Rasterization method and apparatus thereof
US9569872B2 (en) 2010-10-14 2017-02-14 Peking University Founder Group Co., Ltd. Method and apparatus for rasterization
WO2012048661A1 (en) * 2010-10-14 2012-04-19 北大方正集团有限公司 Rasterization method and device
CN102456212A (en) * 2010-10-19 2012-05-16 北大方正集团有限公司 Separation method and system for visible watermark in numerical image
CN103716529A (en) * 2012-09-28 2014-04-09 卡西欧计算机株式会社 Threshold setting device, object detection device, and threshold setting method
CN103716529B (en) * 2012-09-28 2017-03-01 卡西欧计算机株式会社 Threshold value setting device, object detection device, threshold setting method
CN103279757B (en) * 2013-05-22 2016-06-22 福建鑫诺通讯技术有限公司 A kind of binarization method of the pig ear tag code figure without removing black hole impact
CN103279757A (en) * 2013-05-22 2013-09-04 福建鑫诺通讯技术有限公司 Binaryzation method of pig ear tag code figure without black hole influence
CN105513010A (en) * 2015-12-28 2016-04-20 星视创(长沙)智能装备有限公司 Document scanning processing apparatus and processing method
CN105513010B (en) * 2015-12-28 2019-01-18 星视创(长沙)智能装备有限公司 A kind of file scanning processing method
CN107590814A (en) * 2017-09-01 2018-01-16 上海斐讯数据通信技术有限公司 The binary processing method and system of a kind of 3-D view
CN110087063A (en) * 2019-04-24 2019-08-02 昆山丘钛微电子科技有限公司 A kind of image processing method, device and electronic equipment
CN110266906A (en) * 2019-06-21 2019-09-20 同略科技有限公司 The intelligent digitalized processing flowing water method of archives, system, terminal and storage medium
CN110266906B (en) * 2019-06-21 2021-04-06 同略科技有限公司 Intelligent digital processing flow method, system, terminal and storage medium for archives
CN112991286A (en) * 2021-03-05 2021-06-18 浙江大华技术股份有限公司 Image statistical data detection method, device and computer readable storage medium
CN112991286B (en) * 2021-03-05 2024-04-26 浙江大华技术股份有限公司 Image statistical data detection method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN100363942C (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN1790378A (en) Binary method and system for image
CN102156868B (en) Image binaryzation method and device
CN1208943C (en) Method and apparatus for increasing digital image quality
CN101029824A (en) Method and apparatus for positioning vehicle based on characteristics
CN1276382C (en) Method and apparatus for discriminating between different regions of an image
CN1237327C (en) System and method for discriminating road gap
CN1713068A (en) Automatic focus adjustment for projector
CN1441595A (en) Contrast correction circuit
CN1924899A (en) Precise location method of QR code image symbol region at complex background
CN1207924C (en) Method for testing face by image
CN1991865A (en) Device, method, program and media for extracting text from document image having complex background
CN1960439A (en) Methods and devices for image signal processing
CN1308891C (en) Apparatus and method for intensifying edge in picture processing
CN101059870A (en) Image cutting method based on attribute histogram
CN1627323A (en) Automatic method for modifying digital image and system of adopting the method
CN101074915A (en) Device, method and program for detecting impurities in a fluid
CN1856028A (en) Camera and method for taking picture compensation
CN1941923A (en) Automatic white balance method for color digital image
CN1741068A (en) Histogram equalizing method based on boundary
CN1653810A (en) Image angle detection device and scan line interpolation device having the same
CN1622589A (en) Image processing method and image processing apparatus
RU2325044C1 (en) Gradient method of object contour extraction at halftone raster image matrix
CN1237475C (en) Method and apparatus for adaptive binaryzation of color document picture
US9235773B2 (en) Image processing device capable of determining types of images accurately
US20140205200A1 (en) Image binarization using dynamic sub-image division

Legal Events

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

Effective date of registration: 20220913

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: PEKING University FOUNDER R & D CENTER

Patentee after: Peking University

Address before: 100871, fangzheng building, 298 Fu Cheng Road, Beijing, Haidian District

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: PEKING University FOUNDER R & D CENTER

Patentee before: Peking University

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080123