CN1755707A - Automatic correction method for tilted image - Google Patents

Automatic correction method for tilted image Download PDF

Info

Publication number
CN1755707A
CN1755707A CN 200410080505 CN200410080505A CN1755707A CN 1755707 A CN1755707 A CN 1755707A CN 200410080505 CN200410080505 CN 200410080505 CN 200410080505 A CN200410080505 A CN 200410080505A CN 1755707 A CN1755707 A CN 1755707A
Authority
CN
China
Prior art keywords
image
correction method
automatic correction
original image
tilted
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
CN 200410080505
Other languages
Chinese (zh)
Other versions
CN100338618C (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.)
Primax Electronics Ltd
Original Assignee
Destiny Technology Corp
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 Destiny Technology Corp filed Critical Destiny Technology Corp
Priority to CNB200410080505XA priority Critical patent/CN100338618C/en
Publication of CN1755707A publication Critical patent/CN1755707A/en
Application granted granted Critical
Publication of CN100338618C publication Critical patent/CN100338618C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention relates to a declination image automatic adjusting method which can automatically catch the declination angle of the original image and adjust it. The method comprises the following steps: scanning the original image, acquiring the pixel value of the original image, doing binary to the original image, impacting a baseline in the original image, confirming an angle of the declination according to the baseline, adjusting the image according to the angle of the declination.

Description

A kind of automatic correction method for tilted image
Technical field
The present invention relates to a kind of digital image processing method, particularly relate to a kind of method of automatic correct tilt image.
Background technology
In the file scan process, the situation that scanning document occurs through regular meeting can be given consulting and handle and bringing very big inconvenience of file like this.Therefore detection and the correction to the input picture angle of inclination is absolutely necessary.Slant correction to image at first needs the angle of inclination of image is detected, and adjusts according to detected angle of inclination again, and image is adjusted to neat position.
So-called slant correction technology just is meant by the angle of inclination of the text that detects the scanner input, image etc. is undertaken from normal moveout correction.Calculate the correct angle of document image by the orientation of mesh lines in the document and literal.This technology both can be used alone the pre-service that also can be used as OCR (optical character identification) and use.
The slant correction of image mainly divide manual correction with from two kinds of normal moveout correction.Manual correction mainly is to proofread and correct by observation of naked eyes etc.Can analyze image from normal moveout correction, judge the angle of inclination of image, then image be corrected automatically.The shortcoming of the correction software that some is traditional is to cause jagged image border.
Existing disposal route of automatically tilted image being proofreaied and correct comprises: section sciagraphy, Hough transform method, crossing dependency method, adjacent feature point clustering procedure etc., below one one is introduced:
The section sciagraphy is along the projection value maximum of certain feature of the section of text vergence direction in text.This disposal route is by suitable structural energy function, can obtain reasonable effect, but this method relies on character area to a great extent, for the less image of character area, can't obtain satisfied effect.
Hough transformation (Hough transform) is the basic skills to rim detection in the image and Geometric Shape Recognition, it has utilized the characteristic of Hough transformation, with the polar coordinate space of videoing of the foreground pixel in the image, obtain the angle of inclination of image by the accumulated value of statistics polar coordinate space each point.But Hough transformation is also just more effective to the image of plain text.
The crossing dependency method is to adopt the thought of calculated crosswise to carry out the angle of inclination detection.The principal direction that this algorithm has solved literal line change and document in comprise the problem of figure and table, be the higher algorithm of a kind of accuracy, but arithmetic accuracy is lower.
Adjacent feature point clustering procedure is a kind of inclination angle detection method based on statistics.By improving, can solve the interference that chart brings, obtain reasonable effect, but because this method obtains the result based on statistics, so needing has more character area in the image, otherwise can be because the unique point of participate in calculating be less, can't obtain abundant statistics and influence final result.
More than four kinds be more common method during the angle of inclination is detected.And in fact, a lot of disposal routes all are the wherein combinations of several thinkings.From the processing procedure of four kinds of disposal routes as can be seen, for plain text document, these methods can both obtain reasonable treatment effect.But for chart, and the less digital picture of character area, effect is just relatively poor relatively.So most disposal routes all rely on character area, and do not take into account the useful information of image.In addition, most of disposal route all is from the content detail of document image and relation, and not from the one-piece construction of image, and some information in the image is helpful for the angle of inclination of judging image.
Therefore how handling the tilted image of content complexity such as including literal, figure, table simultaneously, become the focus of research, also is the key point that improves accuracy of detection and accuracy.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of automatic correction method for tilted image, and it can be discerned and the correct tilt image automatically, guaranteeing cheaply simultaneously, improves the accuracy of Flame Image Process.
To achieve these goals, the invention provides a kind of automatic correction method for tilted image, it can catch the angle of inclination of original image automatically, and with its adjustment, its characteristics are that this method comprises the steps: to scan this original image, obtain the pixel value of this original image; With this original image binaryzation; Datum line of match in this original image; Determine the angle of inclination of image according to this datum line; And image is adjusted according to this angle of inclination.
Above-mentioned automatic correction method for tilted image, its characteristics are, also comprise original image is carried out pre-service, the step of the noise in the removal of images.
Above-mentioned automatic correction method for tilted image, its characteristics are, also comprise this original image is carried out the step that the edge strengthens.
Above-mentioned automatic correction method for tilted image, its characteristics are that the step of a datum line of this match also comprises: determine selected pixel; In this original image, set in regular turn and treat alignment; Calculate each selected pixel and treat the mean distance of alignment to this; This mean value and a distance threshold are compared; And if this mean distance less than this distance threshold, should current wire tag undetermined be a datum line then.
Above-mentioned automatic correction method for tilted image, its characteristics are that this distance threshold is 1/3rd of this line length undetermined.
Above-mentioned automatic correction method for tilted image, its characteristics are that this selected pixel is the non-isolated set of pixels of overall number greater than the number threshold value.
Above-mentioned automatic correction method for tilted image, its characteristics are that this number threshold value is 3.
Above-mentioned automatic correction method for tilted image, its characteristics be, sets the step for the treatment of alignment in regular turn, for from an end of this original image to the other end, set in order according to a preset distance and to treat alignment.
Above-mentioned automatic correction method for tilted image, its characteristics are, also comprise the step of eliminating noise pixel in the selected pixel.
Above-mentioned automatic correction method for tilted image, its characteristics be, this noise pixel is compared pixel greater than a prearranged multiple for the distance for the treatment of alignment to this with this mean distance.
Effect of the present invention is to catch automatically the file of inclination, and with its rotation, one-piece construction from image, angle by match best base directrix obtains tilting has characteristics such as accuracy height, strong robustness, fast operation, also is suitable for for most of ORC system simultaneously.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the overview flow chart of the automatic correction method for tilted image that the present invention carried;
Fig. 2 is the process flow diagram of match datum line of the present invention;
Fig. 3 is the operation workflow figure of the embodiment of the invention;
Fig. 4 is the synoptic diagram of the selected pixel of the embodiment of the invention; And
Fig. 5 is the synoptic diagram of the noise pixel in the selected pixel of the embodiment of the invention.
Wherein, Reference numeral:
Step 110-obtains the pixel value of original image
Step 120-is with this original image binaryzation
Step 130-is datum line of match in this original image
Step 140-determines the angle of inclination of image according to this datum line
Step 150-adjusts image according to this angle of inclination
Step 1301-determines selected pixel
Step 1302-sets in regular turn in this original image and treats alignment
Step 1303-calculates each selected pixel is treated alignment to this mean distance
Step 1304-compares this mean value and a distance threshold
Step 1305-was if this mean distance less than this distance threshold, should current wire tag undetermined be a datum line then
Step 310-obtains bitmap images
Step 320-arrives extra buffer with copying image
Step 330-edge strengthens
Step 340-carries out binaryzation to image
Step 350-determines selected pixel
Step 360-match datum line
Is the absolute value at step 370-angle of inclination between 0.1 ~ 30?
Step 380-withdraws from
Step 390-rotates image
The 410-isolated pixel, the 420-set of pixels
Noise point in the selected pixel of 510-, 520-treats alignment
Embodiment
Under a lot of situations, the original image that we obtain all is a complex image, and it may not only have plain text, also may comprise various figure and table, and the content in the text may be vertically also may be horizontal.Font also may be various simultaneously.Various noises appear in the scanning process inevitably.Dreamboat output of the present invention is that a width of cloth is without any the image that tilts.
The present invention is a kind of automatic correction method for tilted image, at first by Fig. 1 system of the present invention is described, this figure is the overview flow chart of the automatic correction method for tilted image that the present invention carried, and is described as follows:
Step 110, at first scan this original image, obtain the pixel value of this original image, step 120 is then with this original image binaryzation, step 130, datum line of match in this original image, step 140 is determined the angle of inclination of image according to this datum line, step 150 is adjusted image according to this angle of inclination at last.
In said process, the process of match datum line sees also Fig. 2, and this figure is the process flow diagram of match datum line of the present invention.
Step 1301, at first determine selected pixel, step 1302 is set in regular turn in this original image then and is treated alignment, step 1303, calculate each selected pixel and treat the mean distance of alignment to this, step 1304 compares this mean value and a distance threshold, step 1305, if this mean distance less than this distance threshold, should current wire tag undetermined be a datum line then, described distance threshold is 1/3rd of this line length undetermined.
Concrete processing procedure sees also Fig. 3, and this figure is the operation workflow figure of the embodiment of the invention.
Step 310 at first obtains the original bitmap image, and original image is by optical instrument, as image scanner, facsimile recorder or any photographic goods, image changed in the computing machine obtains.Step 320 arrives extra buffer with copying image then, image is carried out pre-service, the noise in the removal of images.Step 330 is carried out the edge enhancement process to image again, strengthens the edge in the image, so that post-treatment operations.Step 340 is then carried out binaryzation to gray scale and colored image, and step 350 is determined selected pixel then, and selected pixel is the non-isolated set of pixels of overall number greater than a number threshold value.See also Fig. 4, be the synoptic diagram of the selected pixel of the embodiment of the invention.The number threshold value is 3 in the present embodiment, that is to say, number is selected pixel greater than the set of 3 non-isolated pixel.As shown in the figure, pixel 410 is an isolated pixel, and set of pixels 420 is selected pixel.The noise point that to select again in the pixel is eliminated, and the noise point in the selected pixel is meant the point that the match datum line is not had reference value.More particularly the noise pixel is compared pixel greater than a prearranged multiple for the distance for the treatment of alignment to this with this mean distance.As shown in Figure 5, this figure is the synoptic diagram of the noise pixel in the selected pixel of the embodiment of the invention.The set 510 of pixel is the noise point in the selected pixel, it is to the distance D for the treatment of alignment 520, treat to this that than all selected pixels the mean distance of alignment 520 is big, and the difference of this distance D and this mean distance is a predetermined value, this predetermined value is the product of this mean distance and a preset parameter.In image, set the step for the treatment of alignment in this way in regular turn, from an end of this original image to the other end (for example from the top to the bottom), set in order according to a preset distance and to treat alignment, step 360, according to flow process match datum line shown in Figure 2, until simulating satisfactory datum line.Step 370, whether the absolute value of judging this datum line angle of inclination then between 0.1 ~ 30, if not between this angular range, illustrates that then there is not the angle of inclination in original image, then need not rotation; If whether the absolute value at this datum line angle of inclination between 0.1 ~ 30, then with the image rotation, thereby is adjusted the position of original image.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.

Claims (10)

1, a kind of automatic correction method for tilted image, it can catch the angle of inclination of original image automatically, and with its adjustment, it is characterized in that, and this method comprises the steps:
Scan this original image, obtain the pixel value of this original image;
With this original image binaryzation;
Datum line of match in this original image;
Determine the angle of inclination of image according to this datum line; And
According to this angle of inclination image is adjusted.
2, automatic correction method for tilted image according to claim 1 is characterized in that, also comprises original image is carried out pre-service the step of the noise in the removal of images.
3, automatic correction method for tilted image according to claim 1 is characterized in that, also comprises this original image is carried out the step that the edge strengthens.
4, automatic correction method for tilted image according to claim 1 is characterized in that, the step of a datum line of this match also comprises:
Determine selected pixel;
In this original image, set in regular turn and treat alignment;
Calculate each selected pixel and treat the mean distance of alignment to this;
This mean value and a distance threshold are compared; And
If this mean distance less than this distance threshold, should current wire tag undetermined be a datum line then.
5, automatic correction method for tilted image according to claim 4 is characterized in that, this distance threshold is 1/3rd of this line length undetermined.
6, automatic correction method for tilted image according to claim 4 is characterized in that, this selected pixel is the non-isolated set of pixels of overall number greater than the number threshold value.
7, automatic correction method for tilted image according to claim 6 is characterized in that, this number threshold value is 3.
8, automatic correction method for tilted image according to claim 4 is characterized in that, sets the step treat alignment in regular turn, for from an end of this original image to the other end, set in order according to a preset distance and to treat alignment.
9, automatic correction method for tilted image according to claim 4 is characterized in that, also comprises the step of eliminating noise pixel in the selected pixel.
10, automatic correction method for tilted image according to claim 9 is characterized in that, this noise pixel is compared pixel greater than a prearranged multiple for the distance for the treatment of alignment to this with this mean distance.
CNB200410080505XA 2004-09-30 2004-09-30 Automatic correction method for tilted image Expired - Fee Related CN100338618C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410080505XA CN100338618C (en) 2004-09-30 2004-09-30 Automatic correction method for tilted image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410080505XA CN100338618C (en) 2004-09-30 2004-09-30 Automatic correction method for tilted image

Publications (2)

Publication Number Publication Date
CN1755707A true CN1755707A (en) 2006-04-05
CN100338618C CN100338618C (en) 2007-09-19

Family

ID=36688918

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410080505XA Expired - Fee Related CN100338618C (en) 2004-09-30 2004-09-30 Automatic correction method for tilted image

Country Status (1)

Country Link
CN (1) CN100338618C (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102272794A (en) * 2008-10-23 2011-12-07 谷歌公司 Systems and methods for socially-based correction of tilted images
CN101656832B (en) * 2008-08-18 2012-01-18 索尼株式会社 Image processing apparatus, image processing method, and imaging apparatus
CN102063611B (en) * 2010-01-21 2013-05-29 汉王科技股份有限公司 Method and system for inputting characters
CN103398698A (en) * 2013-07-31 2013-11-20 深圳市金立通信设备有限公司 Horizontality measuring method, horizontality measuring device and mobile terminal
CN104677269A (en) * 2013-11-26 2015-06-03 英业达科技有限公司 System and method for optical detection of foot stand of central processing unit
CN104809703A (en) * 2015-04-22 2015-07-29 上海理工大学 Simple image angle correction method
CN105577988A (en) * 2014-10-30 2016-05-11 现代摩比斯株式会社 Method and apparatus for calibration of vehicle video
CN105894526A (en) * 2016-04-29 2016-08-24 广东小天才科技有限公司 Image correction method and device
CN106295632A (en) * 2016-08-03 2017-01-04 广东小天才科技有限公司 Search method of adjustment and the device of topic content
CN104103047B (en) * 2014-07-25 2017-02-08 上海理工大学 Electrocardiogram image inclination degree correcting method
CN106503650A (en) * 2016-10-21 2017-03-15 上海未来伙伴机器人有限公司 A kind of recognition methodss of images of gestures and system
CN106951897A (en) * 2017-03-11 2017-07-14 深圳市极客思索科技有限公司 A kind of inclined degree determination methods of medical document photograph
CN109614972A (en) * 2018-12-06 2019-04-12 泰康保险集团股份有限公司 Image processing method, device, electronic equipment and computer-readable medium
CN109784332A (en) * 2019-01-17 2019-05-21 京东数字科技控股有限公司 A kind of method and apparatus of file image inclination detection
WO2019127503A1 (en) * 2017-12-29 2019-07-04 深圳配天智能技术研究院有限公司 Image processing method, device and system
CN111753832A (en) * 2020-07-02 2020-10-09 杭州睿琪软件有限公司 Image processing method, image processing apparatus, electronic device, and storage medium
CN112364868A (en) * 2020-12-08 2021-02-12 共道网络科技有限公司 Rotation correction method and device for electronic file
CN112840308A (en) * 2018-12-19 2021-05-25 深圳市欢太科技有限公司 Method for optimizing font and related equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5444793A (en) * 1993-06-15 1995-08-22 Ncr Corporation Method for detecting machine printed monetary amounts in binary images
CN1047438C (en) * 1994-02-05 1999-12-15 中国科学院上海光学精密机械研究所 Automatic compensation method for line inclination measurement error
JP3060902B2 (en) * 1995-06-30 2000-07-10 オムロン株式会社 Image processing apparatus and image processing method
KR100247970B1 (en) * 1997-07-15 2000-03-15 윤종용 Direction correction method of document image
JP3425366B2 (en) * 1998-06-30 2003-07-14 シャープ株式会社 Image correction device
CN1122241C (en) * 1998-11-26 2003-09-24 鸿友科技股份有限公司 Image processing system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656832B (en) * 2008-08-18 2012-01-18 索尼株式会社 Image processing apparatus, image processing method, and imaging apparatus
CN102272794B (en) * 2008-10-23 2014-10-15 谷歌公司 Systems and methods for socially-based correction of tilted images
CN102272794A (en) * 2008-10-23 2011-12-07 谷歌公司 Systems and methods for socially-based correction of tilted images
CN102063611B (en) * 2010-01-21 2013-05-29 汉王科技股份有限公司 Method and system for inputting characters
CN103398698A (en) * 2013-07-31 2013-11-20 深圳市金立通信设备有限公司 Horizontality measuring method, horizontality measuring device and mobile terminal
CN103398698B (en) * 2013-07-31 2015-11-18 深圳市金立通信设备有限公司 A kind of level measurement method, device and mobile terminal
CN104677269A (en) * 2013-11-26 2015-06-03 英业达科技有限公司 System and method for optical detection of foot stand of central processing unit
CN104103047B (en) * 2014-07-25 2017-02-08 上海理工大学 Electrocardiogram image inclination degree correcting method
CN105577988A (en) * 2014-10-30 2016-05-11 现代摩比斯株式会社 Method and apparatus for calibration of vehicle video
CN104809703A (en) * 2015-04-22 2015-07-29 上海理工大学 Simple image angle correction method
CN105894526A (en) * 2016-04-29 2016-08-24 广东小天才科技有限公司 Image correction method and device
CN106295632A (en) * 2016-08-03 2017-01-04 广东小天才科技有限公司 Search method of adjustment and the device of topic content
CN106503650A (en) * 2016-10-21 2017-03-15 上海未来伙伴机器人有限公司 A kind of recognition methodss of images of gestures and system
CN106503650B (en) * 2016-10-21 2019-09-24 上海未来伙伴机器人有限公司 A kind of recognition methods and system of images of gestures
CN106951897A (en) * 2017-03-11 2017-07-14 深圳市极客思索科技有限公司 A kind of inclined degree determination methods of medical document photograph
WO2019127503A1 (en) * 2017-12-29 2019-07-04 深圳配天智能技术研究院有限公司 Image processing method, device and system
CN109614972A (en) * 2018-12-06 2019-04-12 泰康保险集团股份有限公司 Image processing method, device, electronic equipment and computer-readable medium
CN112840308A (en) * 2018-12-19 2021-05-25 深圳市欢太科技有限公司 Method for optimizing font and related equipment
CN109784332A (en) * 2019-01-17 2019-05-21 京东数字科技控股有限公司 A kind of method and apparatus of file image inclination detection
CN109784332B (en) * 2019-01-17 2021-03-05 京东数字科技控股有限公司 Document image inclination detection method and device
CN111753832A (en) * 2020-07-02 2020-10-09 杭州睿琪软件有限公司 Image processing method, image processing apparatus, electronic device, and storage medium
CN111753832B (en) * 2020-07-02 2023-12-08 杭州睿琪软件有限公司 Image processing method, image processing apparatus, electronic device, and storage medium
CN112364868A (en) * 2020-12-08 2021-02-12 共道网络科技有限公司 Rotation correction method and device for electronic file

Also Published As

Publication number Publication date
CN100338618C (en) 2007-09-19

Similar Documents

Publication Publication Date Title
CN100338618C (en) Automatic correction method for tilted image
KR100945809B1 (en) Binarization of an image
US9509884B2 (en) Skew detection
CN1240024C (en) Image processor, image processing method and recording medium recording the same
KR101126466B1 (en) Photographic document imaging system
CN1275190C (en) Method and device for correcting image askew
US20090185236A1 (en) Image binarization using dynamic sub-image division
US20180300861A1 (en) Method of correcting a captured image, method of selecting a drawing sketched on a page or on two adjacent pages of a notebook, a relative app for smartphone, a hardback notebook and a hardback agenda
CN111353961A (en) Document curved surface correction method and device
CN101315664A (en) Text image preprocessing method for character recognition
CN1578381A (en) Adaptive halftone scheme to preserve image smoothness and sharpness with region identification
US9332154B2 (en) Image binarization using dynamic sub-image division
US7145694B2 (en) Image processing apparatus and method
CN1207673C (en) Half-tone dot eliminating method and its system
CN105721738B (en) A kind of chromoscan file and picture preprocess method
JP2007189577A (en) Computer program, image input apparatus, image input system and image input method
CN1296865C (en) Single color words reinforcing method
CN1797428A (en) Method and device for self-adaptive binary state of text, and storage medium
US20060126965A1 (en) Method of auto-deskewing a tilted image
CN109146809B (en) Method for removing gray edges of scanned document image
CN1310183C (en) Binary conversion method of character and image
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
KR100683360B1 (en) Method of generating binary image data
CN100337463C (en) Method for searching black and white boundary of image
CN1134150C (en) Image processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ZHISHEN SCIENCE & TECHNOLOGY CO. LTD.

Free format text: FORMER OWNER: DEXIN SCIENCE + TECHNOLOGY CO., LTD.

Effective date: 20061027

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20061027

Address after: Taipei city of Taiwan Province

Applicant after: Zhishen Science and Technology Co., Ltd.

Address before: Taipei city of Taiwan Province

Applicant before: Destiny Technology Corporation

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070919

Termination date: 20150930

EXPY Termination of patent right or utility model