CN102842119A - Quick document image super-resolution method based on image matting and edge enhancement - Google Patents

Quick document image super-resolution method based on image matting and edge enhancement Download PDF

Info

Publication number
CN102842119A
CN102842119A CN2012102944808A CN201210294480A CN102842119A CN 102842119 A CN102842119 A CN 102842119A CN 2012102944808 A CN2012102944808 A CN 2012102944808A CN 201210294480 A CN201210294480 A CN 201210294480A CN 102842119 A CN102842119 A CN 102842119A
Authority
CN
China
Prior art keywords
text image
resolution
foreground
image
super
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012102944808A
Other languages
Chinese (zh)
Inventor
李树涛
康旭东
孙斌
孙俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan University
Fujitsu Ltd
Original Assignee
Hunan University
Fujitsu 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 Hunan University, Fujitsu Ltd filed Critical Hunan University
Priority to CN2012102944808A priority Critical patent/CN102842119A/en
Publication of CN102842119A publication Critical patent/CN102842119A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a quick document image super-resolution method based on image matting and document enhancement. The quick document image super-resolution method based on the image matting and the edge enhancement comprises the following steps: the image matting technology based on guide filtering is used to divide a low-resolution document image into three component parts of a foreground color, a background color and foreground transparency; a quick interpolation method and an interpolation method based on the edge enhancement are respectively used to do super resolution to the foreground color part, the background color part and the foreground transparency part; the foreground color part, and the background color part and the foreground transparency part which are after being done super solution are used to reconstruct a super-resolution document image. The quick document image super-resolution method based on the image matting and the document enhancement can quickly and effectively improve the quality of the document image which is after being done super resolution, improve the visual effect of the document image, and can solve the displaying or printing problems of a low-resolution document image or video on super-resolution electronic equipment, and has vital important practical application value.

Description

A kind of based on scratching the fast text image super-resolution method that picture and edge strengthen
Technical field
The present invention relates to a kind of text image super-resolution method, it is a kind of based on scratching the text image super-resolution method of picture with the edge enhancing to say so more specifically.
Background technology
The text image super-resolution is a branch of image super-resolution research, and in general image super-resolution method can be divided three classes: based on the method for sample learning, based on the method for reconstruct with based on the method for interpolation.Method based on sample learning solves the super-resolution problem through the corresponding relation between study high-definition picture piece/parameter and the low-resolution image piece/parameter; These class methods need consume considerable time and carry out sample training, and sample image choose oversubscription result's influence very big.Come iteration to go out final high-definition picture based on the method for reconstruct through the error between the low-resolution image that minimizes original low-resolution image and constitute by the high-definition picture down-sampling; This method need not trained, but can not guarantee that the final high-definition picture of algorithm convergence has desired visual effect [3]Compare these methods, image interpolation method such as bilinear interpolation and bicubic interpolation are simply quick, therefore obtain to use more widely.But simple interpolation method can cause soft edge and edge sawtooth.Therefore, some interpolation methods based on the edge have appearred recently [4-5], these class methods guarantee the clear and continuous of image border as far as possible in the process of carrying out interpolation, therefore can solve the fuzzy and sawtooth problem of image border to a certain extent.But, compare with simple interpolation method, the calculation consumption of these class methods is too high, is difficult to satisfy some practical application request, such as low resolution text image or video on high resolution display, show etc.Q. people such as Shan proposes based on the up-sampling of iteration and the quick super-resolution method of deblurring [6], still this method is lost image texture easily or artifacts occurred at the place, image border in the deblurring process, and the Rapid Realization of this algorithm need be based upon on the basis of GPU acceleration.
Summary of the invention
For solving the problems referred to above that exist on text image super-resolution method speed and the effect, the invention provides a kind of based on scratching the fast text image super-resolution method that picture and edge strengthen.The algorithm speed that the present invention proposes is fast and can when amplifying text image, effectively guarantee the sharpness at text image edge.
The technical scheme that the present invention addresses the above problem may further comprise the steps:
1) the low resolution text image is carried out binaryzation, obtain the bianry image of low resolution text image.
2) with low resolution text image and bianry image thereof as input, adopt the foreground to transparent degree image that obtains text image as algorithm of scratching based on guiding filtering;
3) according to former text image and step 2) the foreground to transparent degree image that obtains estimates foreground and background colour;
4) foreground and the background colour to the low resolution text image partly adopts interpolation algorithm to carry out SUPERRESOLUTION PROCESSING FOR ACOUSTIC;
5) the foreground to transparent degree to the low resolution text image partly adopts edge enhancing interpolation algorithm to carry out SUPERRESOLUTION PROCESSING FOR ACOUSTIC;
6) foreground, background colour and the combination of foreground to transparent degree that will pass through after the SUPERRESOLUTION PROCESSING FOR ACOUSTIC obtain final high resolving power text image;
In the above-mentioned fast text image super-resolution method based on stingy picture and edge enhancing, described step 1) adopts big Tianjin method to choose the threshold value of text image binaryzation.
In the above-mentioned fast text image super-resolution method based on stingy picture and edge enhancing; Described step 2) in the low resolution text image as the guiding text image; Thereby the binary image channeling conduct filtering to the low resolution text image obtains scratching picture result, i.e. the foreground to transparent degree of low resolution text image.
Above-mentioned based on scratching in the fast text image super-resolution method that picture and edge strengthen, utilize the guiding filtering algorithm to the separating of local linear model in the described step 3), the foreground to transparent degree for input, obtains foreground and background colour to original image as guiding.
In the above-mentioned fast text image super-resolution method, adopt the expansion erosion algorithm in the morphological image processing to obtain foreground and background colour in the described step 3) based on stingy picture and edge enhancing.
Above-mentioned based on scratching in the fast text image super-resolution method that picture and edge strengthen, adopt first interpolation to carry out the edge again in the described step 4) and strengthen and carry out the edge earlier and strengthen again the text image interpolation method that interpolation combines.
In the above-mentioned fast text image super-resolution method, adopt the bicubic interpolation method in the described step 5) based on stingy picture and edge enhancing.
The above-mentioned fast text image super-resolution method based on stingy picture and edge enhancing adopts bilinear interpolation method in the described step 5).
In the above-mentioned fast text image super-resolution method, adopt the arest neighbors interpolation method in the said step 5) based on stingy picture and edge enhancing.
Owing to adopt technique scheme; Technique effect of the present invention is: the present invention adopts based on the text image super-resolution method of scratching picture technology and edge enhancing and has effectively improved the sharpness of amplifying the back text image; The speed of algorithm is very fast simultaneously; Therefore; Can be used to solve problems such as low branch rate text image or video demonstration and the printing on high resolution display and printer, the subsequent treatment of text image and the application on electronic equipment thereof are had most important theories meaning and using value.
Description of drawings
Fig. 1 is a process flow diagram of the present invention.
Fig. 2 is that the text image super-resolution result of different super-resolution methods compares.
Embodiment
Referring to Fig. 1, Fig. 1 is a process flow diagram of the present invention.Be input as the gray scale or the color text image of low resolution, be output as high-resolution gray scale or color text image.Practical implementation step of the present invention is following:
1. adopt stingy picture technology that the low resolution text image is divided into low resolution foreground F based on guiding filtering L, low resolution background colour B LAnd low resolution foreground to transparent degree Q LThree parts.Its concrete steps are:
1) to low resolution text image I LCarry out binaryzation and obtain two-value text image A.The threshold value TH of binaryzation adopts big Tianjin method to choose.
A ( x , y ) = 1 I L ( x , y ) >; TH 0 otherwise - - - ( 1 )
2) shown in formula (2), with former text image I LFor the guiding text image, the two-value text image A that obtains is carried out the stingy picture based on guiding filtering, obtain the low foreground to transparent degree part Q that differentiates text image L
Q L=GD(A,I L) (2)
I wherein LBe to be referenced text image (low resolution gray document image; If text image is the color text image then is converted into gray document image through the mean value that calculates three Color Channels); A is a low resolution binaryzation text image of treating that the step 1) of filtering obtains, and guiding filtering output result is the foreground to transparent degree part Q of low resolution text image L.
The practical implementation details of guiding filtering is following: at first adopt linear regression method calculating sealing of cost function shown in formula (3) to separate a kWith b k(shown in formula (4), (5)).
E ( a k , b k ) = Σ i ∈ ω k ( ( a k i i L + b k - A i ) 2 + ϵ a k 2 ) - - - ( 3 )
a k = 1 | ω | Σ i ∈ ω k I i L S i - μ k S ‾ k δ k 2 + ϵ - - - ( 4 )
b k = S ‾ k - a k μ k - - - ( 5 )
ω wherein kBe meant with k pixel to be that radius centered is the square window of r, | ω | represent the number of this window interior pixel, μ kWith
Figure BDA0000202924795
Represent and guide text image the window ω that is the center with k pixel respectively kThe average of interior pixel and variance,
Figure BDA0000202924796
The window ω that the filtering text image is the center with k pixel is treated in expression kThe average of interior pixel, ε be constant (in we are bright, windows radius r=2, ε=0.1 3).Then according to the output of formula (6) calculating filter:
Q i L = a ‾ i I i L + b ‾ i - - - ( 6 )
Wherein a ‾ i = 1 | ω | Σ k ∈ ω i a k , b ‾ i = 1 | ω | Σ k ∈ ω i b k
3) calculate the foreground to transparent degree Q of text image LAfter, we propose two kinds of diverse ways and estimate text image foreground and background colour:
Method one: according to foreground to transparent degree Q LWith former text image I LCalculate foreground image I fWith background image I b, then the two is corroded expansion and obtains corresponding foreground F LWith background colour B L
B L = I b ⊕ H - - - ( 8 )
Wherein Expression corrosion operation,
Figure BDA00002029247913
The expression expansive working, I f=I LQ L, I b=I L(1-Q L), H is one a square structure element:
H = 1 1 1 1 1 1 1 1 1 - - - ( 9 )
Method two: for Q LValue is the pixel of big (greater than 0.9) very, and its foreground directly substitutes with former text image pixel value, for Q LThe pixel that is worth very little (less than 0.1), its background colour directly substitute with former text image pixel value, and for Q LValue is positioned at [0.1-0.9] interval pixel, and its foreground and background colour are separated (like formula (11), shown in (12)) according to the sealing of the cost function shown in the formula (10) and asked for.
E ( ( F L - B L ) , B L ) = Σ w k [ ( ( F L - B L ) q L + B L - I L ) 2 + ϵ ( F L - B L ) 2 ] - - - ( 10 )
F k L - B k L = 1 | w i | Σ k ∈ ω i 1 | w k | Σ j ∈ w k q j L I j L - η k I L ‾ k σ k 2 + ϵ - - - ( 11 )
B k L = 1 | w i | Σ k ∈ w i I L ‾ k - X k η k - - - ( 12 )
Wherein
Figure BDA00002029247918
, w kBe to be 3 * 3 the square window at center with k pixel, | w| representes the number of this window interior pixel, η kWith
Figure BDA00002029247919
Represent foreground to transparent degree text image Q respectively LWith k the pixel window w that is the center kThe average of interior pixel and variance.
2. the foreground F that adopts quick interpolation method that step 1 is obtained LWith background colour B LCarry out super-resolution respectively and obtain high-resolution foreground F HWith background colour B HHere said quick interpolation method mainly is meant arest neighbors interpolation, Fast numerical algorithms such as bilinear interpolation and bicubic interpolation.The arest neighbors interpolation thinks that the gray-scale value of interpolation point equals the gray-scale value of nearest known point; Bilinear interpolation utilizes around the interpolation position gray-scale value of four known points to do linear interpolation on the both direction; The bicubic interpolation method utilizes around the interpolation position gray-scale value of 16 points to do cubic interpolation, considers that not only the gray scale of 4 direct neighbor points influences, and considers the influence of gray-value variation rate between each adjoint point.
3. adopt the edge Q of the interpolation method of edge enhancing to text image LCarry out the edge text image Q after super-resolution obtains oversubscription H, the practical implementation step is following:
Q 1 H = Enhance ( Bicubic ( Q L ) ) - - - ( 13 )
Q 2 H = Bicubic ( Enhance ( Q L ) ) - - - ( 14 )
Q H = ( 1 - λ ) Q 1 H + λ Q 2 H - - - ( 15 )
Wherein the span of λ is [0,1], is made as 0.5 at the default value of λ of the present invention, and Bicubic () representes bicubic interpolation, and Enhance () is that text image strengthens operation, and it can be represented with following formula:
Enhance(I)=I-I*○ (16)
Wherein I representes text image to be strengthened, and * representes convolution algorithm, zero expression convolution kernel as follows:
4. with high-resolution foreground F H, background colour B HAnd foreground to transparent degree part Q HMake up as follows:
I H(x,y)=Q H(x,y)F H(x,y)+(1-Q H(x,y))B H(x,y) (18)
Wherein (x y) is pixel coordinate, I HBe final text image super-resolution result.
Method proposed by the invention with based on bicubic interpolation with compare based on the text image super-resolution method of rarefaction representation.A left side is played first to classify as is the low resolution text image in the accompanying drawing 2; Second classifies the high resolving power text image that uses the bicubic interpolation method to obtain as; The 3rd row are based on the high resolving power text image that the super-resolution method of rarefaction representation obtains, and last classifies the high resolving power text image that adopts the inventive method to obtain as.Can find out the present invention and the sharpness that can both when amplifying text image, effectively promote text image based on the method for rarefaction representation, but bicubic interpolation and method based on rarefaction representation all can cause in various degree fuzzy of text image edge.
The computing time that table 1 has been listed algorithms of different relatively, in the table institute free all be to use MATLAB to be the working time on the computer of 2.8GHz at CPU frequency.Can find out; Although the algorithm based on rarefaction representation can obtain the super-resolution efect suitable with this algorithm, its computing velocity is very slow, and the color text image of handling 256 * 256 needs 815 seconds; It is fast a lot of that yet the method that the present invention proposes is wanted; The color text image of handling 256 * 256 only needs 0.186 second, and the speed of one 256 * 256 color text image of C++ routine processes of this algorithm can reach 0.047 second in addition, so the present invention has important practical value.
The working time of the different super-resolution algorithms of table 1 relatively
Figure BDA00002029247924

Claims (9)

1. one kind based on scratching the fast text image super-resolution method of picture with the edge enhancing, comprises following concrete steps:
1) the low resolution text image is carried out binaryzation, obtain the bianry image of low resolution text image.
2) with low resolution text image and bianry image thereof as input, adopt the foreground to transparent degree image that obtains text image as algorithm of scratching based on guiding filtering;
3) according to former text image and step 2) the foreground to transparent degree image that obtains estimates foreground and background colour;
4) foreground and the background colour to the low resolution text image partly adopts interpolation algorithm to carry out SUPERRESOLUTION PROCESSING FOR ACOUSTIC;
5) the foreground to transparent degree to the low resolution text image partly adopts edge enhancing interpolation algorithm to carry out SUPERRESOLUTION PROCESSING FOR ACOUSTIC;
6) foreground, background colour and the combination of foreground to transparent degree that will pass through after the SUPERRESOLUTION PROCESSING FOR ACOUSTIC obtain final high resolving power text image;
2. according to claim 1 based on scratching the fast text image super-resolution method of picture with the edge enhancing, described step 1) adopts big Tianjin method to choose the threshold value of text image binaryzation.
3. according to claim 1 based on scratching the fast text image super-resolution method of picture with the edge enhancing; Described step 2) with the low resolution text image as the guiding text image; Thereby the binary image channeling conduct filtering to the low resolution text image obtains scratching picture result, i.e. the foreground to transparent degree of low resolution text image.
4. according to claim 1 based on scratching the fast text image super-resolution method of picture with the edge enhancing; Utilize guiding filtering algorithm separating in the described step 3) to local linear model; The foreground to transparent degree for input, obtains foreground and background colour to original image as guiding.
5. according to claim 4 based on scratching the fast text image super-resolution method that picture and edge strengthen, adopt the expansion erosion algorithm in the morphological image processing to obtain foreground and background colour in the described step 3).
6. according to claim 1 based on scratching the fast text image super-resolution method that picture and edge strengthen, adopt first interpolation to carry out the edge again in the described step 4) and strengthen and carry out the edge earlier and strengthen again the text image interpolation method that interpolation combines.
7. according to claim 1 based on scratching the fast text image super-resolution method of picture with the edge enhancing, the employing bicubic interpolation method in the described step 5).
8. according to claim 1 based on scratching picture and the fast text image super-resolution method that the edge strengthens, adopt bilinear interpolation method in the described step 5).
9. according to claim 1 based on scratching picture and the fast text image super-resolution method that the edge strengthens, adopt the arest neighbors interpolation method in the described step 5).
CN2012102944808A 2012-08-18 2012-08-18 Quick document image super-resolution method based on image matting and edge enhancement Pending CN102842119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102944808A CN102842119A (en) 2012-08-18 2012-08-18 Quick document image super-resolution method based on image matting and edge enhancement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102944808A CN102842119A (en) 2012-08-18 2012-08-18 Quick document image super-resolution method based on image matting and edge enhancement

Publications (1)

Publication Number Publication Date
CN102842119A true CN102842119A (en) 2012-12-26

Family

ID=47369445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102944808A Pending CN102842119A (en) 2012-08-18 2012-08-18 Quick document image super-resolution method based on image matting and edge enhancement

Country Status (1)

Country Link
CN (1) CN102842119A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016062259A1 (en) * 2014-10-22 2016-04-28 华为技术有限公司 Transparency-based matting method and device
CN110415176A (en) * 2019-08-09 2019-11-05 北京大学深圳研究生院 A kind of text image super-resolution method
CN110428366A (en) * 2019-07-26 2019-11-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN111027560A (en) * 2019-11-07 2020-04-17 浙江大华技术股份有限公司 Text detection method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080267525A1 (en) * 2006-11-27 2008-10-30 Nec Laboratories America, Inc. Soft Edge Smoothness Prior and Application on Alpha Channel Super Resolution
CN102542601A (en) * 2010-12-10 2012-07-04 三星电子株式会社 Equipment and method for modeling three-dimensional (3D) object

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080267525A1 (en) * 2006-11-27 2008-10-30 Nec Laboratories America, Inc. Soft Edge Smoothness Prior and Application on Alpha Channel Super Resolution
CN102542601A (en) * 2010-12-10 2012-07-04 三星电子株式会社 Equipment and method for modeling three-dimensional (3D) object

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KAIMING HE等: "Guided Image Filtering", 《COMPUTER VISION–ECCV 2010, LECTURE NOTES IN COMPUTER SCIENCE》, vol. 6311, 31 December 2010 (2010-12-31), pages 1 - 14, XP019150502 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016062259A1 (en) * 2014-10-22 2016-04-28 华为技术有限公司 Transparency-based matting method and device
CN105590307A (en) * 2014-10-22 2016-05-18 华为技术有限公司 Transparency-based matting method and apparatus
CN110428366A (en) * 2019-07-26 2019-11-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
WO2021017811A1 (en) * 2019-07-26 2021-02-04 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer readable storage medium
CN110428366B (en) * 2019-07-26 2023-10-13 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110415176A (en) * 2019-08-09 2019-11-05 北京大学深圳研究生院 A kind of text image super-resolution method
CN111027560A (en) * 2019-11-07 2020-04-17 浙江大华技术股份有限公司 Text detection method and related device
CN111027560B (en) * 2019-11-07 2023-09-29 浙江大华技术股份有限公司 Text detection method and related device

Similar Documents

Publication Publication Date Title
CN102831591B (en) Gaussian filter-based real-time defogging method for single image
CN102208100B (en) Total-variation (TV) regularized image blind restoration method based on Split Bregman iteration
CN105225210A (en) A kind of self-adapting histogram based on dark strengthens defogging method capable
CN101930597B (en) Mathematical morphology-based image edge detection method
CN101908205B (en) Magic square coding-based median filter method
CN101540055B (en) Cartoon stylization method facing online real-time application
CN102842119A (en) Quick document image super-resolution method based on image matting and edge enhancement
CN103366342A (en) Piecewise linear interpolation method applied to video image amplification
CN106127688A (en) A kind of super-resolution image reconstruction method and system thereof
CN101887576A (en) Image de-noising method based on partial differential equation filter
CN104574328A (en) Color image enhancement method based on histogram segmentation
CN103714537A (en) Image saliency detection method
CN106169174A (en) A kind of image magnification method
CN108492270A (en) A kind of super-resolution method reconstructed based on fuzzy kernel estimates and variation
CN101877122A (en) Method for denoising and enhancing anisotropic diffusion image with controllable diffusion degree
CN105427243A (en) Video super-resolution reconstruction method based on adaptive interpolation kernel learning
CN104580829A (en) Terahertz image enhancing method and system
CN106204454A (en) High accuracy rapid image interpolation method based on texture edge self-adaption data fusion
CN104715453A (en) Image enhancement method by adopting regional processing mode and circuit
CN105513025A (en) Improved rapid demisting method
CN105513023A (en) Image full-screen anti-aliasing method and device for head-up display characters
CN101383044A (en) Spatial diffusion in images
CN113066025A (en) Image defogging method based on incremental learning and feature and attention transfer
CN104200439B (en) Image super-resolution method based on adaptive filtering and regularization constraint
CN103400340A (en) Method for converting picture into cartoon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121226