KR20150109929A - Method of correcting document image using histogram and apparatus thereof - Google Patents

Method of correcting document image using histogram and apparatus thereof Download PDF

Info

Publication number
KR20150109929A
KR20150109929A KR1020140033501A KR20140033501A KR20150109929A KR 20150109929 A KR20150109929 A KR 20150109929A KR 1020140033501 A KR1020140033501 A KR 1020140033501A KR 20140033501 A KR20140033501 A KR 20140033501A KR 20150109929 A KR20150109929 A KR 20150109929A
Authority
KR
South Korea
Prior art keywords
document image
histogram
slope
axis
histograms
Prior art date
Application number
KR1020140033501A
Other languages
Korean (ko)
Other versions
KR101561443B1 (en
Inventor
이원규
Original Assignee
주식회사 인프라웨어
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 주식회사 인프라웨어 filed Critical 주식회사 인프라웨어
Priority to KR1020140033501A priority Critical patent/KR101561443B1/en
Publication of KR20150109929A publication Critical patent/KR20150109929A/en
Application granted granted Critical
Publication of KR101561443B1 publication Critical patent/KR101561443B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration by the use of histogram techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

A method for correcting a document image using a histogram according to an embodiment of the present invention includes the steps of: acquiring a document image as a digital format; extracting a histogram on the document image; determining a slope of the document image by analyzing the histogram; and correcting a slop of the document image for the document image to have a target slop based on the determined slop of the document image.

Description

히스토그램을 이용한 문서 이미지 보정 방법 및 장치 {METHOD OF CORRECTING DOCUMENT IMAGE USING HISTOGRAM AND APPARATUS THEREOF}TECHNICAL FIELD The present invention relates to a document image correction method and apparatus using a histogram,

본 발명은 히스토그램을 이용한 문서 이미지 보정 방법 및 장치에 관한 것으로서, 보다 구체적으로는, 히스토그램을 이용하여 디지털 형태로 획득된 문서 이미지의 기울어진 정도를 정확하게 측정하고 보정할 수 있는 방법 및 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document image correction method and apparatus using a histogram, and more particularly, to a method and apparatus for precisely measuring and correcting a tilt degree of a document image obtained in a digital form using a histogram .

근래에 들어, 스캐너와 같은 영상 입력 장치를 이용하여 획득된 디지털 이미지를 인쇄 출력하는 기술이 널리 이용되고 있다. 특히, 복사 기능뿐만 아니라 디지털 이미지를 연산 장치에 이미지 데이터로 저장하거나 디지털 이미지를 신호 형태로 멀리 떨어진 인쇄 장치에 전송할 수도 있는 디지털 복합 장치의 사용이 급증함에 따라, 종래의 아날로그 인쇄 방식 대신에 디지털 인쇄 방식이 널리 보급되고 있는 추세이다.BACKGROUND ART [0002] In recent years, a technique of printing out a digital image obtained by using a video input device such as a scanner has been widely used. In particular, as the use of a digital composite apparatus, which not only stores a copy function but also stores a digital image as image data in a computing device or transmits a digital image as a signal to a remote printing apparatus, The trend is spreading widely.

일반적으로, 스캐너는 광학 렌즈를 통해 문서로부터 집광된 광을 이진화 데이터로 변환시켜 디지털 이미지를 생성하는데, 이때에 광학 렌즈는 미리 정해진 경로를 따라 이동한다. 따라서, 문서가 지정된 위치로부터 벗어나 배치된 경우, 이를 테면 사용자가 부주의하게 해당 문서를 배치하는 경우, 상기 문서에 대한 디지털 이미지가 기울어진 채로 획득된다.Generally, a scanner converts light condensed from a document through an optical lens into binarized data to produce a digital image, at which time the optical lens travels along a predetermined path. Thus, if a document is placed out of a specified location, such as a user inadvertently placing the document, the digital image for the document is obtained with a tilted orientation.

이러한 경우, 기울어진 디지털 이미지가 인쇄 출력되므로 프린트 잉크 및 용지가 낭비되고, 이러한 인쇄물을 확인한 사용자가 해당 문서를 다시 배치하여 디지털 이미지를 획득하고 인쇄 출력해야 하므로 사용자의 시간 및 노력이 가중 소요되는 문제점이 있었다.In such a case, since the oblique digital image is printed out, the printing ink and paper are wasted, and the user who checks the printed matter needs to re-arrange the document to obtain the digital image and printout it, .

위와 같은 문제점을 해결하기 위해서, 문서의 경계 부근에의 명암을 검출하여 해당 문서의 기울기를 검출하는 기술 등이 이용되고는 있으나, 측정 정확도 측면에서 그리고 사용자 편의성 측면에서 아직까지 만족할만한 결과가 현출되지는 못하였다.In order to solve the above problem, a technique of detecting the contrast of a document near the boundary of the document and detecting the inclination of the document has been used. However, satisfactory results have not yet been obtained in terms of measurement accuracy and user convenience .

이에, 스캐너를 통해서 획득된 문서 이미지의 기울어진 정도를 정확하게 측정할 수 있고, 복사, 스캔, 팩스의 이용 시에 문서 배치 측면에서 사용자에게 편의성을 제공할 수 있는 새로운 기술이 요구되고 있는 실정이다.Accordingly, there is a need for a new technique capable of accurately measuring the degree of inclination of a document image acquired through a scanner, and providing convenience to the user in terms of document layout when using copying, scanning, and faxing.

정확하게 측정할 수 있는 방법 및 장치를 제공하는 것이다.And to provide a method and an apparatus which can accurately measure the temperature.

본 발명이 해결하고자 하는 과제는, 사용자가 문서 이미지에 대한 복사, 스캔, 팩스를 이용할 시에 문서 배치 측면에서 사용자에게 편의성을 제공할 수 있는 방법 및 장치를 제공하는 것이다.SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and apparatus for providing convenience to a user in terms of document layout when a user uses copy, scan, and fax for a document image.

본 발명의 과제들은 이상에서 언급한 과제들로 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The problems of the present invention are not limited to the above-mentioned problems, and other problems not mentioned can be clearly understood by those skilled in the art from the following description.

전술한 바와 같은 과제를 해결하기 위하여 본 발명의 일 실시예에 따른 히스토그램을 이용한 문서 이미지 보정 방법은, 문서 이미지를 디지털 형태로 획득하는 단계, 문서 이미지에 대한 히스토그램을 추출하는 단계, 히스토그램을 분석하여 문서 이미지의 기울기를 결정하는 단계, 및 결정된 문서 이미지의 기울기에 기초하여, 문서 이미지가 목표된 기울기를 가지도록, 문서 이미지의 기울기를 보정하는 단계를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method of correcting a document image using a histogram, the method comprising: obtaining a document image in a digital form; extracting a histogram of the document image; Determining a slope of the document image, and correcting the slope of the document image so that the document image has a desired slope based on the determined slope of the document image.

본 발명의 다른 특징에 따르면, 기울기가 보정된 문서 이미지를 인쇄 출력하는 단계를 더 포함할 수 있다.According to another aspect of the present invention, the method may further include printing and outputting the document image with the tilt corrected.

본 발명의 다른 특징에 따르면, 문서 이미지에 대한 히스토그램은 복수로 추출될 수 있다.According to another aspect of the present invention, a plurality of histograms of the document image can be extracted.

본 발명의 다른 특징에 따르면, 문서 이미지의 기울기를 결정하는 단계는, 추출된 히스토그램과 기울기 단위로 미리 저장된 복수의 기준 히스토그램을 서로 비교하는 단계, 추출된 히스토그램에 가장 근접한 기준 히스토그램의 기울기를 문서 이미지에 대한 기울기로 결정하는 단계를 포함할 수 있다.According to another aspect of the present invention, the step of determining the slope of the document image includes the steps of: comparing the extracted histogram with a plurality of reference histograms previously stored in the slope unit, comparing the slope of the reference histogram closest to the extracted histogram with the document image As a slope with respect to < / RTI >

본 발명의 다른 특징에 따르면, 문서 이미지에 대한 히스토그램을 추출하는 단계는, 문서 이미지에 투영되는 각도를 변경하여, 문서 이미지에 대한 복수의 Y축 히스토그램을 추출하는 단계를 포함하며, 문서 이미지의 기울기를 결정하는 단계는, 추출된 복수의 Y축 히스토그램에 기초하여, 문서 이미지의 기울기를 결정하는 단계를 포함할 수 있다.According to another aspect of the present invention, extracting a histogram for a document image includes extracting a plurality of Y-axis histograms for the document image by changing an angle projected onto the document image, Determining a slope of the document image based on the extracted plurality of Y-axis histograms.

본 발명의 다른 특징에 따르면, 추출된 복수의 Y축 히스토그램에 기초하여, 문서 이미지의 기울기를 결정하는 단계는, 추출된 복수의 Y축 히스토그램 중 0° 기준 Y축 히스토그램에 가장 근접한 Y축 히스토그램을 선별하는 단계; 및 선별된 Y축 히스토그램에 대한 투영 각도를 문서 이미지의 기울기로 결정하는 단계를 포함할 수 있다.According to another aspect of the present invention, the step of determining the slope of the document image based on the extracted plurality of Y-axis histograms comprises the steps of: extracting a Y-axis histogram closest to the 0-degree Y- Selecting; And determining a projection angle for the selected Y-axis histogram as a slope of the document image.

본 발명의 다른 특징에 따르면, 복수의 Y축 히스토그램을 서로 비교하여, 문서 이미지의 기울기를 결정하는 단계는, 추출된 복수의 Y축 히스토그램 중 가장 각진 형태의 Y축 히스토그램을 선별하는 단계; 및 선별된 Y축 히스토그램에 대한 투영 각도를 문서 이미지의 기울기로 결정하는 단계를 포함할 수 있다.According to another aspect of the present invention, the step of comparing the plurality of Y-axis histograms with each other to determine the slope of the document image includes the steps of: selecting the most angled Y-axis histogram among the plurality of extracted Y-axis histograms; And determining a projection angle for the selected Y-axis histogram as a slope of the document image.

본 발명의 다른 특징에 따르면, 문서 이미지에 대한 히스토그램을 추출하는 단계는, 문서 이미지에 투영되는 각도를 변경하여, 문서 이미지에 대한 복수의 X축 히스토그램을 추출하는 단계를 포함하며, 문서 이미지의 기울기를 결정하는 단계는, 추출된 복수의 X축 히스토그램 중 0° 기준 X축 히스토그램에 가장 근접한 X축 히스토그램을 선별하는 단계, 및 선별된 X축 히스토그램에 대한 투영 각도로 문서 이미지의 기울기를 결정하는 단계를 포함할 수 있다.According to another aspect of the present invention, extracting a histogram for a document image includes extracting a plurality of X-axis histograms for the document image by changing an angle projected onto the document image, Determining a slope of the document image at a projection angle with respect to the selected X-axis histogram; and determining a slope of the document image at a projection angle with respect to the selected X-axis histogram, . ≪ / RTI >

전술한 바와 같은 과제를 해결하기 위하여 본 발명의 일 실시예에 따른 히스토그램을 이용한 문서 이미지 보정 장치는, 문서 이미지를 디지털 형태로 문서 이미지 획득부, 문서 이미지에 대한 히스토그램을 추출하는 히스토그램 추출부, 히스토그램을 분석하여 문서 이미지의 기울기를 결정하는 기울기 결정부, 및 결정된 문서 이미지의 기울기에 기초하여, 문서 이미지가 목표된 기울기를 가지도록, 문서 이미지의 기울기를 보정하는 기울기 보정부를 포함한다.According to an aspect of the present invention, there is provided an apparatus for correcting a document image using a histogram according to an embodiment of the present invention includes a document image acquisition unit in a digital form, a histogram extraction unit for extracting a histogram of the document image, And a slope correcting unit for correcting the slope of the document image so that the document image has a desired slope based on the slope of the determined document image.

전술한 바와 같은 과제를 해결하기 위하여 본 발명의 일 실시예에 따른 명령어 세트들을 저장하는 컴퓨터 판독가능매체는, 명령어 세트들이, 명령어 세트들은, 컴퓨팅 장치에 의해 실행되는 경우에 컴퓨팅 장치로 하여금, 문서 이미지를 디지털 형태로 획득하도록 하고, 문서 이미지에 대한 히스토그램을 추출하도록 하고, 히스토그램을 분석하여 문서 이미지의 기울기를 결정하도록 하고, 그리고 결정된 문서 이미지의 기울기에 기초하여, 문서 이미지가 목표된 기울기를 가지도록, 문서 이미지의 기울기를 보정하도록 하는 것을 특징으로 한다.In order to solve the above-mentioned problems, a computer-readable medium storing a set of instructions according to an embodiment of the present invention includes instructions for causing a computing device to cause a computing device to: Allowing the image to be acquired in digital form, extracting a histogram for the document image, analyzing the histogram to determine the slope of the document image, and determining, based on the determined slope of the document image, that the document image has a desired slope And corrects the inclination of the document image so that the document image is corrected.

기타 실시예의 구체적인 사항들은 상세한 설명 및 도면들에 포함되어 있다.The details of other embodiments are included in the detailed description and drawings.

본 발명은 문서 이미지의 기울어진 정도를 정확하게 측정할 수 있는 효과가 있다.The present invention has the effect of accurately measuring the degree of inclination of a document image.

본 발명은 사용자가 문서 이미지에 대한 복사, 스캔, 팩스를 이용할 시에 문서 배치 측면에서 사용자에게 편의성을 제공할 수 있는 효과가 있다.The present invention has the effect of providing convenience to the user in terms of document layout when the user uses copy, scan, and fax for the document image.

본 발명에 따른 효과는 이상에서 예시된 내용에 의해 제한되지 않으며, 더욱 다양한 효과들이 본 명세서 내에 포함되어 있다.The effects according to the present invention are not limited by the contents exemplified above, and more various effects are included in the specification.

도 1은 본 발명의 일 실시예에 따른, 문서 이미지 보정 장치의 전체 구성을 개략적으로 나타내는 도면이다.
도 2는 본 발명의 일 실시예에 따른, 문서 이미지 보정 방법에 관한 흐름도이다.
도 3a 및 도 3b는 본 발명의 일 실시예에 따른, 예시적인 0° 기준 Y축 및 X축 히스토그램을 도시한 것이다.
도 4a 내지 도 4e는 본 발명의 일 실시예에 따른, 문서 이미지의 기울기를 보정하는 예시적인 모습을 도시한 것이다.
BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a view schematically showing an overall configuration of a document image correcting apparatus according to an embodiment of the present invention; Fig.
2 is a flowchart of a document image correction method according to an embodiment of the present invention.
Figures 3a and 3b illustrate exemplary 0 degree reference Y and X axis histograms, in accordance with an embodiment of the invention.
Figures 4A-4E illustrate an example of correcting the slope of a document image, in accordance with an embodiment of the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나, 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention, and the manner of achieving them, will be apparent from and elucidated with reference to the embodiments described hereinafter in conjunction with the accompanying drawings. It should be understood, however, that the invention is not limited to the disclosed embodiments, but is capable of many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, To fully disclose the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나, 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention, and the manner of achieving them, will be apparent from and elucidated with reference to the embodiments described hereinafter in conjunction with the accompanying drawings. It should be understood, however, that the invention is not limited to the disclosed embodiments, but is capable of many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, To fully disclose the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims.

명세서 전체에 걸쳐 동일 참조 부호는 동일 구성 요소를 지칭한다.Like reference numerals refer to like elements throughout the specification.

본 발명의 여러 실시예들의 각각 특징들이 부분적으로 또는 전체적으로 서로 결합 또는 조합 가능하며, 당업자가 충분히 이해할 수 있듯이 기술적으로 다양한 연동 및 구동이 가능하며, 각 실시예들이 서로에 대하여 독립적으로 실시 가능할 수도 있고 연관 관계로 함께 실시 가능할 수도 있다.It is to be understood that each of the features of the various embodiments of the present invention may be combined or combined with each other partially or entirely and technically various interlocking and driving is possible as will be appreciated by those skilled in the art, It may be possible to cooperate with each other in association.

이하, 첨부된 도면을 참조하여 본 발명의 다양한 실시예들을 상세히 설명한다.Various embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른, 문서 이미지 보정 장치 (100) 의 전체 구성을 개략적으로 나타내는 도면이다.1 is a diagram schematically showing an entire configuration of a document image correcting apparatus 100 according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 문서 이미지 보정 장치 (100) 는, 문서 이미지 획득부 (110), 히스토그램 추출부 (120), 기울기 결정부 (130), 기울기 보정부 (140) 를 포함한다. 나아가, 본 발명의 문서 이미지 보정 장치 (100) 는, 문서 출력부 (150), 제어부 (160) 및 메모리 (170) 를 더 포함할 수 있다.Referring to FIG. 1, a document image correcting apparatus 100 according to the present invention includes a document image obtaining unit 110, a histogram extracting unit 120, a slope determining unit 130, and a skew correction unit 140. Furthermore, the document image correcting apparatus 100 of the present invention may further include a document output unit 150, a control unit 160, and a memory 170.

본 발명의 이미지 획득부 (110) 는 문서 이미지를 디지털 형태로 획득하는 기능을 수행한다. 바람직하게는, 본 발명의 이미지 획득부 (110) 는 문서 위에 기록된 정보를 그래픽 형태로 읽어 들여 컴퓨터에 전달하는 범용적인 스캐너를 의미할 수 있으나, 이에 한정되는 것은 아니고, 디지털 형태로 이미지 획득 기능을 수행할 수 있는 본 기술분야의 모든 영상 입력 기기를 포함할 수 있다.The image obtaining unit 110 of the present invention performs a function of obtaining a document image in a digital form. Preferably, the image obtaining unit 110 may be a general-purpose scanner that reads information recorded on a document in a graphic form and transmits the information to a computer. However, the present invention is not limited to this, And may include all video input devices of the present technology capable of performing video input.

여기서, 문서 이미지는 문자, 숫자, 부호, 도형 등이 기재된 서류 및 기록물에 대한 이미지를 의미하며, 바람직하게는 문자, 숫자, 부호, 도형 등이 가로 방향으로 정렬되어 기재된 일반적인 문서에 대한 이미지를 의미한다. Here, the document image refers to a document on which letters, numbers, signs, figures, etc. are described and an image for the document, and preferably refers to an image of a general document in which letters, numbers, do.

본 발명의 히스토그램 추출부 (120) 는 복수의 픽셀로 분할되어 있는 문서 이미지에 대한 히스토그램 (histogram) 을 추출하는 기능을 수행한다. 히스토그램 추출부 (120) 가 히스토그램을 추출하는 구체적인 방법에 관해서는 후술하도록 하겠다.The histogram extracting unit 120 of the present invention extracts a histogram of a document image divided into a plurality of pixels. A specific method of extracting the histogram by the histogram extracting unit 120 will be described later.

본 발명의 기울기 결정부 (130) 는 히스토그램 추출부 (120) 에 의해 추출된 하나 이상의 히스토그램을 분석하여 문서 이미지의 기울기를 결정하는 기능을 수행한다.The tilt determining unit 130 of the present invention analyzes one or more histograms extracted by the histogram extracting unit 120 and determines a slope of the document image.

여기서 기울기는 문서가 출력될 수단 (이를 테면, 디스플레이 장치 또는 문서 출력 용지) 에 의해 정의되는 수평선 또는 X축에 대해 이미지가 기울어진 정도를 나타내는 값으로서, 수치적으로 -45° 내지 45°의 값으로 표현될 수 있다. 기울기는 각도 면에서 목표된 위치로부터 문서 이미지가 벗어나 있는 정도를 표현하기 위해 사용될 수 있다.Here, the inclination is a value indicating the degree of tilting of the image with respect to the horizontal line or the X-axis defined by the means by which the document is to be output (such as a display device or a document output sheet) . ≪ / RTI > The slope can be used to express the degree to which the document image is deviated from the desired position in angle terms.

본 발명의 기울기 보정부 (140) 는 기울기 결정부 (130) 에 의해 결정된 기울기에 기초하여, 문서 이미지가 목표된 기울기를 가지도록, 문서 이미지의 기울기를 보정하는 기능을 수행한다. The inclination correcting unit 140 of the present invention performs a function of correcting the inclination of the document image so that the document image has a desired inclination based on the inclination determined by the inclination determining unit 130. [

여기서, 문서 이미지의 목표된 기울기는 사용자에 의해 미리 설정된 기울기 값일 수도 있으나, 바람직하게는 수치적으로 0°의 기울기를 의미할 수 있다.Here, the target slope of the document image may be a slope value preset by the user, but may preferably mean a slope of 0 ° numerically.

본 발명의 문서 출력부 (150) 는 사용자로부터의 요청에 의해 기울기가 보정된 문서 이미지를 인쇄 출력하는 기능을 수행할 수 있다. 여기서, 문서 출력부 (150) 는 디지털 이미지를 문서 용지에 인쇄 출력할 수 있는 범용적인 프린터를 의미할 수 있다.The document output unit 150 of the present invention may perform a function of printing out a document image whose tilt is corrected by a request from a user. Here, the document output unit 150 may refer to a general-purpose printer capable of printing a digital image on a document sheet.

본 발명의 제어부 (160) 는 문서 이미지 획득부 (110), 히스토그램 추출부 (120), 기울기 결정부 (130), 기울기 보정부 (140), 문서 출력부 (150), 메모리 (170) 의 데이터의 흐름을 제어하는 기능을 수행한다. 제어부 (160) 는 외부로부터의 또는 문서 이미지 기울기 보정 장치 (100) 의 각 구성요소 간의 데이터의 흐름을 제어함으로써, 문서 이미지 획득부 (110), 히스토그램 추출부 (120), 기울기 결정부 (130), 기울기 보정부 (140), 문서 출력부 (150), 메모리 (170) 에서 각각 고유 기능이 수행되도록 제어한다.The control unit 160 of the present invention includes a document image obtaining unit 110, a histogram extracting unit 120, a slope determining unit 130, a slope correcting unit 140, a document output unit 150, And the like. The control unit 160 controls the flow of data between the components of the document image tilt correction apparatus 100 or from the outside so that the document image obtaining unit 110, the histogram extracting unit 120, the tilt determining unit 130, The tilt correction unit 140, the document output unit 150, and the memory 170, respectively.

본 발명의 메모리 (170) 에는 이미지 획득부 (110) 에 의해 획득된 문서 이미지가 저장되거나, 히스토그램 추출부 (120) 에 의해 추출된 히스토그램 이미지가 저장될 수 있다. 또한, 메모리 (170) 에는 각도 단위로 분류된 복수의 기준 히스토그램, 및 기준 문서 이미지에 대한 Y축 히스토그램이 저장될 수 있다. 메모리 (170) 는 램 (RAM; random access memory), 롬 (ROM; read-only memory), 자기 디스크 (magnetic disk) 장치, 광 디스크 (optical disk) 장치, 플래시 메모리 등을 포함할 수 있으나, 반드시 이에 제한되는 것은 아니다.In the memory 170 of the present invention, a document image acquired by the image acquisition unit 110 may be stored or a histogram image extracted by the histogram extraction unit 120 may be stored. Further, the memory 170 may store a plurality of reference histograms classified on an angle basis, and a Y-axis histogram for the reference document image. The memory 170 may include a random access memory (RAM), a read-only memory (ROM), a magnetic disk device, an optical disk device, a flash memory, But is not limited thereto.

한편, 전술한 구성들은 설명의 편의를 위해 별개의 구성으로 도시, 설명되었으나, 구현에 있어 각각의 구성이 병합되거나 하나의 구성이 그 이상의 구성으로 분리되어 구현될 수 있다.Meanwhile, although the above-described configurations have been shown and described as separate configurations for convenience of explanation, each configuration may be merged, or one configuration may be implemented separately.

도 2는 본 발명의 일 실시예에 따른, 문서 이미지 보정 방법에 관한 흐름도이다.2 is a flowchart of a document image correction method according to an embodiment of the present invention.

먼저, 문서 이미지가 디지털 형태로 획득된다 (S210). First, a document image is acquired in digital form (S210).

문서 이미지를 획득하기 위해서 이미지를 디지털 형태로 획득할 수 있는 본 기술분야에서 널리 알려진 다양한 방법을 이용할 수 있다.Various methods well known in the art can be used to obtain an image in digital form to obtain a document image.

다음으로, 디지털 형태로 획득된 문서 이미지에 대한 히스토그램을 추출한다 (S220).Next, a histogram of the document image obtained in digital form is extracted (S220).

여기서, 문서 이미지에 대한 히스토그램은 바람직하게는 복수로 추출된다.Here, the histogram for the document image is preferably extracted as a plurality.

또한, 구현 방법에 따라서는, 문서 이미지에 대한 히스토그램은 Y축 좌표에 대해 X축 방향을 따라 구해진 Y축 히스토그램 및 X축 좌표에 대해 Y축 방향을 따라 구해진 X축 히스토그램 모두를 포함할 수 있다.Also, depending on the implementation method, the histogram of the document image may include both a Y-axis histogram obtained along the X-axis direction with respect to the Y-axis coordinate and an X-axis histogram obtained along the Y-axis direction with respect to the X-axis coordinate.

또한, 구현 방법에 따라서는, 문서 이미지를 각 영역별로 분할하여 문서 이미지에 대한 복수의 히스토그램을 추출하는 것도 가능하다. 이를 테면, 문서 이미지를 동일한 가로 및 세로 너비를 가지는 네 개의 사각형 영역으로 분할하고 각각의 영역 내에서 X축 및 Y축 히스토그램을 추출하는 것도 가능하다.According to the implementation method, it is also possible to extract a plurality of histograms of the document image by dividing the document image into the respective regions. For example, it is possible to divide the document image into four rectangular regions having the same width and height, and to extract the X- and Y-axis histograms within each region.

또한, 구현 방법에 따라서는, 문서 이미지에 투영되는 각도를 순차적으로 변경하여 문서 이미지에 대한 복수의 Y축 히스토그램을 추출할 수 있다. 이를 테면, 획득된 문서 이미지를 고정시킨 상태에서 투영 방향과 X축과 이루는 각도를 -45° 내지 45°로 순차적으로 변경시켜 각 각도에 대한 Y축 히스토그램을 추출할 수 있다.Also, depending on the implementation method, a plurality of Y-axis histograms for the document image can be extracted by sequentially changing the projected angle on the document image. For example, the Y-axis histogram for each angle can be extracted by sequentially changing the angle between the projection direction and the X-axis from -45 ° to 45 ° while the acquired document image is fixed.

또한, 구현 방법에 따라서는, 문서 이미지에 투영되는 각도를 순차적으로 변경하여 문서 이미지에 대한 복수의 X축 히스토그램을 추출할 수 있다. 이를 테면, 획득된 문서 이미지를 고정시킨 상태에서 투영 방향과 Y축과 이루는 각도를 -45° 내지 45°로 순차적으로 변경시켜 각 각도에 대한 X축 히스토그램을 추출할 수 있다.Also, depending on the implementation method, a plurality of X-axis histograms for the document image can be extracted by sequentially changing the projected angle on the document image. For example, the X-axis histogram for each angle can be extracted by sequentially changing the angle between the projection direction and the Y-axis from -45 ° to 45 ° with the acquired document image fixed.

한편, 문서 이미지가 기울어진 정도는 문서 이미지의 전 영역에서 일정할 것이므로, 문서 이미지의 일부만을 추출하여 문서 이미지 일부에 대한 히스토그램을 추출할 수 있다.On the other hand, since the degree of inclination of the document image is constant in the entire area of the document image, only a part of the document image can be extracted to extract a histogram of a part of the document image.

다음으로, 추출된 히스토그램을 분석하여 문서 이미지의 기울기를 결정한다 (S230).Next, the slope of the document image is determined by analyzing the extracted histogram (S230).

문서 이미지의 기울기를 결정하기 위해서, 메모리에 저장된 다수의 기준 히스토그램을 이용할 수 있다. 여기서, 기준 히스토그램은 일반 문서 이미지가 특정 각도로 기울어져 있는 경우에 획득되는 대표적인 일반 문서 이미지에 대한 히스토그램을 지칭한다. 따라서, 기준 히스토그램은 -45°에서부터 45°까지의 기준 히스토그램, 이를 테면 0° 기준 히스토그램, 10° 기준 히스토그램, 20° 기준 히스토그램 등을 포함할 수 있다. 기준 히스토그램을 이용하는 경우, 추출된 히스토그램과 각도 단위로 분류된 복수의 기준 히스토그램을 일대일로 비교하여 가장 유사한 형태를 가지는 기준 히스토그램을 선별하고, 이러한 기준 히스토그램이 가지는 각도 값을 기울기로 결정할 수 있다. 물론, 이때에 복수의 영역 (이를 테면, 좌측 상부 영역, 좌측 하부 영역, 우측 상부 영역, 우측 하부 영역 등) 별로 분할되어 각도 단위로 저장된 기준 히스토그램을 이용하는 것도 가능하다.In order to determine the slope of the document image, a number of reference histograms stored in memory may be used. Here, the reference histogram refers to a histogram of representative typical document images obtained when the general document image is inclined at a certain angle. Thus, the reference histogram may include a reference histogram from -45 ° to 45 °, such as a 0 ° reference histogram, a 10 ° reference histogram, a 20 ° reference histogram, and the like. In the case of using the reference histogram, the reference histogram having the most similar shape can be selected by comparing the extracted histogram and the plurality of reference histograms classified by the angle unit one by one, and the angle value of the reference histogram can be determined by the slope. Of course, it is also possible to use a reference histogram that is divided into a plurality of regions (for example, a left upper region, a lower left region, a right upper region, a right lower region, and the like)

또한, 문서 이미지에 투영되는 각도를 순차적으로 변경하여 문서 이미지에 대한 복수의 Y축 히스토그램을 추출한 경우에는, 0° 기준 Y축 히스토그램 (즉, 기울기가 0°인 일반 문서 이미지에 대해 0°의 각도로 투영하여 획득된 Y축 히스토그램) 과 가장 유사한 Y축 히스토그램을 선별하고, 이러한 Y축 히스토그램의 투영 각도를 문서 이미지의 기울기로 결정할 수 있다. 도 3a에는 예시적인 0° 기준 Y축 히스토그램 (310) 이 도시되고 있다.In addition, when a plurality of Y-axis histograms for a document image are extracted by sequentially changing the projected angles on the document image, a 0 ° reference Y-axis histogram (i.e., an angle of 0 ° with respect to a general document image with a slope of 0 ° , And the projection angle of the Y-axis histogram can be determined by the slope of the document image. In FIG. 3A, an exemplary 0 degree reference Y axis histogram 310 is shown.

또한, 문서 이미지에 투영되는 각도를 순차적으로 변경하여 문서 이미지에 대한 복수의 X축 히스토그램을 추출한 경우에는, 0° 기준 X축 히스토그램 (즉, 기울기가 0°인 일반 문서 이미지에 대해 0°의 각도로 투영하여 획득된 X축 히스토그램) 과 가장 유사한 X축 히스토그램을 선별하고, 이러한 X축 히스토그램의 투영 각도를 이용하여 문서 이미지의 기울기를 결정할 수 있다. 도 3b에는 예시적인 0° 기준 X축 히스토그램 (320) 이 도시되고 있다.In addition, when a plurality of X-axis histograms for a document image are extracted by sequentially changing the projected angles to the document image, a 0 ° reference X-axis histogram (i.e., an angle of 0 ° Axis histogram), and the slope of the document image can be determined using the projection angle of the X-axis histogram. In FIG. 3B, an exemplary 0 degree reference X-axis histogram 320 is shown.

도 3a 및 3b에서 확인할 수 있듯이, 일반 문서 이미지에 대한 0° 기준 Y축 히스토그램 및 X축 히스토그램은 각진 형태를 갖는다. 이러한 특징을 이용하여, 본 발명에서는, 추출된 복수의 Y축 히스토그램 중 가장 각진 형태의 Y축 히스토그램을 선별하고, 이러한 Y축 히스토그램의 투영 각도를 문서 이미지의 기울기로 결정하는 방법도 이용할 수 있다. 또한, 추출된 복수의 X축 히스토그램 중 가장 각진 형태의 X축 히스토그램을 선별하고, 이러한 X축 히스토그램의 투영 각도로 문서 이미지의 기울기를 결정하는 방법도 이용할 수 있다As can be seen in FIGS. 3A and 3B, the 0-degree Y-axis histogram and the X-axis histogram for the general document image have angular shapes. With this feature, in the present invention, it is also possible to use a method of selecting the most angled Y-axis histogram among the plurality of extracted Y-axis histograms and determining the projection angle of the Y-axis histogram as the slope of the document image. Also, a method of selecting the most angled X-axis histogram among the extracted X-axis histograms and determining the slope of the document image based on the projection angle of the X-axis histogram can be used

여기서, 추출된 히스토그램과 가장 유사한 형태를 가지는 기준 히스토그램을 선별하거나, 0° 기준 X축 및 Y축 히스토그램과 가장 유사한 형태를 갖는 X축 및 Y축 히스토그램을 선별하기 위해서 이미지 내의 객체 형태를 상호 비교하는 공지의 기술이 본 발명에 채용될 수 있다. 또한, 가장 각진 형태의 Y축 히스토그램을 선별하기 위해서, 객체의 에지 형태를 분석하는 공지의 기술이 본 발명에 채용될 수 있다.Here, the reference histogram having the shape most similar to the extracted histogram is selected, or the shapes of the objects in the image are compared to select the X-axis and Y-axis histograms most similar to the 0-degree X-axis and Y-axis histogram A known technique can be employed in the present invention. Further, in order to select the most angular Y-axis histogram, a known technique for analyzing the edge shape of an object can be employed in the present invention.

다음으로, 문서 이미지의 기울기에 기초하여, 문서 이미지가 목표된 기울기를 가지도록, 문서 이미지의 기울기를 보정한다 (S240).Next, based on the slope of the document image, the slope of the document image is corrected so that the document image has a desired slope (S240).

단계 240은 결정된 문서 이미지 기울기만큼 문서 이미지를 시계 방향으로 회전시키는 것을 의미할 수 있다. 이를 테면, 단계 230에서 문서 이미지가 10° 만큼 기울어진 것으로 결정되는 경우, 단계 240에서 문서 이미지를 10° 만큼 시계 방향으로 회전할 수 있다.Step 240 may mean rotating the document image clockwise by the determined document image slope. For example, if it is determined in step 230 that the document image has been skewed by 10 degrees, then in step 240, the document image may be rotated clockwise by 10 degrees.

다음으로, 선택적으로 기울기가 보정된 문서 이미지를 인쇄 출력할 수 있다 (S250).Next, the document image with the inclination corrected selectively can be printed out (S250).

단계 250은 사용자의 사전 요청 (즉, 단계 S210이 수행되기 이전에 요청) 또는 사후 요청 (즉, 단계 S240이 수행된 이후에 요청) 에 의해 수행될 수 있으며, 공지의 인쇄 출력 방법을 이용하여 구현될 수 있다.Step 250 may be performed by a user's prior request (i.e., a request before step S210 is performed) or a post request (i.e., after step S240 has been performed) and may be implemented using a known print output method .

본 발명의 문서 이미지 보정 방법에 따르면, 사용자가 의도치 않게 정해진 위치에로부터 살짝 기울어지게 문서를 배치한 경우에도, 수평 및 수직 방향으로 가지런하게 정렬된 문서 이미지가 인쇄 출력될 수 있다.According to the document image correction method of the present invention, even when a document is arranged so that the user unintentionally tilts from a predetermined position, the document image aligned in both the horizontal and vertical directions can be printed out.

도 4a 내지 도 4e는 본 발명의 일 실시예에 따른, 문서 이미지의 기울기를 보정하는 예시적인 모습을 도시한 것이다.Figures 4A-4E illustrate an example of correcting the slope of a document image, in accordance with an embodiment of the present invention.

도 4a에 도시된 바와 같이, 문서 이미지 (410) 를 디지털 형태로 획득할 수 있다. 본 실시예에서는, 문서 이미지 (410) 가 문자, 숫자, 부호, 도형 등이 가로 방향으로 정렬된 일반 문서 이미지이며, -10°의 기울기를 가지면서, 즉 수평선 또는 X축에 대해 -10°만큼 기울어져서 획득되는 것으로 가정한다.As shown in FIG. 4A, the document image 410 may be obtained in digital form. In this embodiment, the document image 410 is a general document image in which characters, numbers, signs, figures and the like are aligned in the horizontal direction, and has a slope of -10 degrees, i.e., -10 degrees with respect to the horizontal line or X axis It is assumed to be obtained by tilting.

다음으로, 도 4b 내지 4d에 도시된 바와 같이, 디지털 형태로 획득된 문서 이미지 (410) 에 대한 복수의 히스토그램 (420, 430, 440) 을 추출할 수 있다. 여기서, 복수의 히스토그램 (420, 430, 440) 은 문서 이미지 (410) 에 투영되는 각도를 변경하여서 획득될 수 있다. 보다 상세하게는, 10°의 투영 각도로 문서 이미지 (410) 에 대한 Y축 히스토그램을 추출한 결과 제1 히스토그램 (420) 이 추출될 수 있고, 0°의 투영 각도로 문서 이미지 (410) 에 대한 Y축 히스토그램을 추출한 결과 제2 히스토그램 (430) 이 추출될 수 있고, -10°의 투영 각도로 문서 이미지 (410) 에 대한 Y축 히스토그램을 추출한 결과 제3 히스토그램 (440) 이 추출될 수 있다.Next, as shown in FIGS. 4B to 4D, a plurality of histograms 420, 430, and 440 for the document image 410 obtained in digital form can be extracted. Here, the plurality of histograms 420, 430, and 440 may be obtained by changing the angle of projection onto the document image 410. [ More specifically, the first histogram 420 can be extracted as a result of extracting the Y-axis histogram for the document image 410 at a projection angle of 10 degrees, and the first histogram 420 for the Y The second histogram 430 can be extracted as a result of extracting the axis histogram and the third histogram 440 can be extracted as a result of extracting the Y axis histogram for the document image 410 at a projection angle of -10 degrees.

다음으로, 획득된 복수의 히스토그램 (420, 430, 440) 을 분석하여 문서 이미지 (410) 의 기울기를 결정할 수 있다. 보다 구체적으로, 세 개의 히스토그램 (420, 430, 440) 중 가장 각진 형태의 히스토그램을 선별하고, 선별된 히스토그램의 투영 각도를 문서 이미지 (410) 의 기울기로 결정할 수 있다. 10° 및 0°의 각도로 투영하는 경우, 문자 등이 정렬된 방향과 엇갈리게 히스토그램이 추출되기 때문에, 제1 히스토그램 (420) 및 제2 히스토그램 (430) 은 완만한 형태를 갖는다. 그러나, -10°의 각도로 투영하는 경우, 문자 등이 정렬된 방향과 일치하여 히스토그램이 추출되기 때문에, 제3 히스토그램 (440) 은 매우 각진 형태를 갖는다. 이에, 가장 각진 형태를 갖는 제3 히스토그램 (440) 이 선별되고, 제3 히스토그램 (440) 에 대한 투영 각도인 -10°가 문서 이미지 (410) 에 대한 기울기로 결정될 수 있다.Next, the obtained plurality of histograms 420, 430, and 440 may be analyzed to determine the slope of the document image 410. More specifically, the histograms of the three histograms 420, 430, and 440 may be selected, and the projection angle of the selected histogram may be determined by the slope of the document image 410. 10 and 0, the first histogram 420 and the second histogram 430 have a gentle shape because the histogram is extracted so as to be offset from the direction in which the characters and the like are aligned. However, when projecting at an angle of -10 degrees, the third histogram 440 has a very angular shape because the histogram is extracted in accordance with the aligned direction of the characters and the like. The third histogram 440 having the most angular shape may be selected and the projection angle of -10 degrees with respect to the third histogram 440 may be determined as the slope with respect to the document image 410.

다음으로, 도 4e에 도시된 바와 같이, 결정된 문서 이미지 (410) 의 기울기에 기초하여, 문서 이미지 (410) 가 목표된 기울기를 가지도록, 문서 이미지 (410) 의 기울기를 보정할 수 있다. 본 실시예에서는, 목표된 기울기가 0°인 것으로 상정하고, -10°의 기울기를 가지는 문서 이미지 (410) 를 -10°만큼 시계 방향으로 회전시켜, 기울기 보정된 문서 이미지 (450) 를 획득하였다.Next, based on the slope of the determined document image 410, the slope of the document image 410 may be corrected such that the document image 410 has a desired slope, as shown in FIG. 4E. In the present embodiment, the tilt corrected document image 450 is obtained by rotating the document image 410 having the slope of -10 degrees clockwise by -10 degrees, assuming that the desired slope is 0 deg. .

이렇게 기울기 보정된 문서 이미지 (450) 는 파일 형태로 메모리에 저장될 수 있으며, 사용자의 사전 또는 사후 요청에 의해 인쇄 출력될 수 있을 것이다.The skew corrected document image 450 may be stored in memory in a file form and may be printed out by a user's pre- or post-request.

본 발명에 따르면, 문서 이미지의 기울어진 정도를 정확하게 측정할 수 있고, 사용자의 별다른 개입 없이도 자동적으로 문서 이미지의 기울기를 보정하여 문서 이미지를 인쇄 출력 또는 저장할 수 있게 된다. 따라서, 사용자가 문서 이미지를 정해진 위치에 배치하기 위해 상당한 주의를 기울이지 않아도 되므로, 문서 이미지에 대한 복사, 스캔, 팩스를 이용할 때에, 사용자 편의성이 증대되는 효과를 달성할 수 있다.According to the present invention, it is possible to accurately measure the degree of inclination of a document image and to correct the inclination of the document image automatically without requiring any user intervention, so that the document image can be printed out or stored. Therefore, since the user does not need to pay much attention to arrange the document image at the predetermined position, the user convenience can be improved when copying, scanning, and faxing the document image.

본 명세서에 첨부된 블록도의 각 블록과 흐름도의 각 단계의 조합들은 컴퓨터 프로그램 인스트럭션들에 의해 수행될 수도 있다. 이들 컴퓨터 프로그램 인스트럭션들은 범용 컴퓨터, 특수용 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비의 프로세서에 탑재될 수 있으므로, 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비의 프로세서를 통해 수행되는 그 인스트럭션들이 블록도의 각 블록 또는 흐름도의 각 단계에서 설명된 기능들을 수행하는 수단을 생성하게 된다. 이들 컴퓨터 프로그램 인스트럭션들은 특정 방식으로 기능을 구현하기 위해 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비를 지향할 수 있는 컴퓨터 이용 가능 또는 컴퓨터 판독 가능 메모리에 저장되는 것도 가능하므로, 그 컴퓨터 이용가능 또는 컴퓨터 판독 가능 메모리에 저장된 인스트럭션들은 블록도의 각 블록 또는 흐름도 각 단계에서 설명된 기능을 수행하는 인스트럭션 수단을 내포하는 것도 가능하다. 컴퓨터 프로그램 인스트럭션들은 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비 상에 탑재되는 것도 가능하므로, 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비 상에서 일련의 동작 단계들이 수행되어 컴퓨터로 실행되는 프로세스를 생성해서 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비를 수행하는 인스트럭션들은 블록도의 각 블록 및 흐름도의 각 단계에서 설명된 기능들을 실행하기 위한 단계들을 제공하는 것도 가능하다.Each block of the block diagrams attached hereto and combinations of steps of the flowchart diagrams may be performed by computer program instructions. These computer program instructions may be loaded into a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus so that the instructions, which may be executed by a processor of a computer or other programmable data processing apparatus, And means for performing the functions described in each step are created. These computer program instructions may also be stored in a computer usable or computer readable memory capable of directing a computer or other programmable data processing apparatus to implement the functionality in a particular manner so that the computer usable or computer readable memory It is also possible that the instructions stored in the block diagram include each block of the block diagram or instruction means for performing the functions described in each step of the flowchart. Computer program instructions may also be stored on a computer or other programmable data processing equipment so that a series of operating steps may be performed on a computer or other programmable data processing equipment to create a computer- It is also possible that the instructions that perform the processing equipment provide the steps for executing the functions described in each block of the block diagram and at each step of the flowchart.

본 명세서에서, 각 블록은 특정된 논리적 기능 (들) 을 실행하기 위한 하나 이상의 실행 가능한 인스트럭션들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 실행 예들에서는 블록들에서 언급된 기능들이 순서를 벗어나서 발생하는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들은 사실 실질적으로 동시에 수행되는 것도 가능하고 또는 그 블록들이 때때로 해당하는 기능에 따라 역순으로 수행되는 것도 가능하다.In this specification, each block may represent a portion of a module, segment, or code that includes one or more executable instructions for executing the specified logical function (s). It should also be noted that in some alternative implementations, the functions mentioned in the blocks may occur out of order. For example, two blocks shown in succession may actually be executed substantially concurrently, or the blocks may sometimes be performed in reverse order according to the corresponding function.

본 명세서에 개시된 실시예들과 관련하여 설명된 방법 또는 알고리즘의 단계는 프로세서에 의해 실행되는 하드웨어, 소프트웨어 모듈 또는 그 2 개의 결합으로 직접 구현될 수도 있다. 소프트웨어 모듈은 RAM 메모리, 플래시 메모리, ROM 메모리, EPROM 메모리, EEPROM 메모리, 레지스터, 하드 디스크, 착탈형 디스크, CD-ROM 또는 당업계에 알려진 임의의 다른 형태의 저장 매체에 상주할 수도 있다. 예시적인 저장 매체는 프로세서에 커플링 되며, 그 프로세서는 저장 매체로부터 정보를 판독할 수 있고 저장 매체에 정보를 기입할 수 있다. 다른 방법으로, 저장 매체는 프로세서와 일체형일 수도 있다. 프로세서 및 저장 매체는 주문형 집적회로 (ASIC) 내에 상주할 수도 있다. ASIC는 사용자 단말기 내에 상주할 수도 있다. 다른 방법으로, 프로세서 및 저장 매체는 사용자 단말기 내에 개별 컴포넌트로서 상주할 수도 있다.The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, which is capable of reading information from, and writing information to, the storage medium. Alternatively, the storage medium may be integral with the processor. The processor and the storage medium may reside within an application specific integrated circuit (ASIC). The ASIC may reside within the user terminal. Alternatively, the processor and the storage medium may reside as discrete components in a user terminal.

이상으로 실시예를 들어 본 발명을 더욱 상세하게 설명하였으나, 본 발명은 반드시 이러한 실시예로 국한되는 것은 아니고, 본 발명의 기술사상을 벗어나지 않는 범위 내에서 다양하게 변형 실시될 수 있다. 따라서 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the present invention is not limited to the disclosed exemplary embodiments, but various changes and modifications may be made without departing from the spirit and scope of the invention. Therefore, the embodiments disclosed in the present invention are not intended to limit the scope of the present invention but to limit the scope of the technical idea of the present invention. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas within the scope of equivalents should be construed as falling within the scope of the present invention.

100: 문서 이미지 보정 장치
110: 문서 이미지 획득부
120: 히스토그램 추출부
130: 기울기 결정부
140: 기울기 보정부
150: 문서 출력부
160: 제어부
170: 메모리
310: 0° 기준 Y축 히스토그램
320: 0° 기준 X축 히스토그램
410: 문서 이미지
420: 제1 히스토그램
430: 제2 히스토그램
440: 제3 히스토그램
450: 기울기 보정된 문서 이미지
100: Document image correction device
110: document image obtaining unit
120: histogram extracting unit
130:
140: tilt correction section
150: Document output section
160:
170: memory
310: Y-axis histogram based on 0 °
320: X-axis histogram based on 0 °
410: Document image
420: first histogram
430: second histogram
440: Third histogram
450: Tilted document image

Claims (10)

문서 이미지를 디지털 형태로 획득하는 단계;
상기 문서 이미지에 대한 히스토그램을 추출하는 단계;
상기 히스토그램을 분석하여 상기 문서 이미지의 기울기를 결정하는 단계; 및
결정된 상기 문서 이미지의 기울기에 기초하여, 상기 문서 이미지가 목표된 기울기를 가지도록, 상기 문서 이미지의 기울기를 보정하는 단계를 포함하는, 히스토그램을 이용한 문서 이미지 보정 방법.
Obtaining a document image in a digital form;
Extracting a histogram of the document image;
Analyzing the histogram to determine a slope of the document image; And
And correcting the slope of the document image so that the document image has a desired slope based on the determined slope of the document image.
제1 항에 있어서,
기울기가 보정된 상기 문서 이미지를 인쇄 출력하는 단계를 더 포함하는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
The method according to claim 1,
Further comprising the step of printing and outputting the document image whose tilt has been corrected.
제1 항에 있어서,
상기 문서 이미지에 대한 히스토그램은 복수로 추출되는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
The method according to claim 1,
Wherein a plurality of histograms of the document image are extracted.
제1 항에 있어서,
상기 문서 이미지의 기울기를 결정하는 단계는,
추출된 상기 히스토그램과 기울기 단위로 미리 저장된 복수의 기준 히스토그램을 서로 비교하는 단계;
추출된 상기 히스토그램에 가장 근접한 기준 히스토그램의 기울기를 상기 문서 이미지에 대한 기울기로 결정하는 단계를 포함하는, 히스토그램을 이용한 문서 이미지 보정 방법.
The method according to claim 1,
Wherein determining the slope of the document image comprises:
Comparing the extracted histogram with a plurality of reference histograms previously stored in a slope unit;
And determining a slope of a reference histogram closest to the extracted histogram as a slope with respect to the document image.
제1 항에 있어서,
상기 문서 이미지에 대한 히스토그램을 추출하는 단계는, 상기 문서 이미지에 투영되는 각도를 변경하여, 상기 문서 이미지에 대한 복수의 Y축 히스토그램을 추출하는 단계를 포함하며,
상기 문서 이미지의 기울기를 결정하는 단계는, 추출된 상기 복수의 Y축 히스토그램에 기초하여, 상기 문서 이미지의 기울기를 결정하는 단계를 포함하는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
The method according to claim 1,
Extracting a histogram for the document image includes extracting a plurality of Y-axis histograms for the document image by changing an angle projected onto the document image,
Wherein the step of determining the slope of the document image comprises determining the slope of the document image based on the extracted plurality of Y-axis histograms.
제5 항에 있어서,
추출된 상기 복수의 Y축 히스토그램에 기초하여, 상기 문서 이미지의 기울기를 결정하는 단계는,
추출된 상기 복수의 Y축 히스토그램 중 0° 기준 Y축 히스토그램에 가장 근접한 Y축 히스토그램을 선별하는 단계; 및
선별된 상기 Y축 히스토그램에 대한 투영 각도를 상기 문서 이미지의 기울기로 결정하는 단계를 포함하는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
6. The method of claim 5,
Determining a slope of the document image based on the extracted plurality of Y-axis histograms,
Selecting a Y-axis histogram closest to the 0-degree Y-axis histogram among the plurality of extracted Y-axis histograms; And
And determining a projection angle of the selected Y-axis histogram as a slope of the document image.
제5 항에 있어서,
상기 복수의 Y축 히스토그램을 서로 비교하여, 상기 문서 이미지의 기울기를 결정하는 단계는,
추출된 상기 복수의 Y축 히스토그램 중 가장 각진 형태의 Y축 히스토그램을 선별하는 단계; 및
선별된 상기 Y축 히스토그램에 대한 투영 각도를 상기 문서 이미지의 기울기로 결정하는 단계를 포함하는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
6. The method of claim 5,
Comparing the plurality of Y-axis histograms with each other to determine a slope of the document image,
Selecting the most angled Y-axis histogram among the plurality of extracted Y-axis histograms; And
And determining a projection angle of the selected Y-axis histogram as a slope of the document image.
제1 항에 있어서,
상기 문서 이미지에 대한 히스토그램을 추출하는 단계는, 상기 문서 이미지에 투영되는 각도를 변경하여, 상기 문서 이미지에 대한 복수의 X축 히스토그램을 추출하는 단계를 포함하며,
상기 문서 이미지의 기울기를 결정하는 단계는,
추출된 상기 복수의 X축 히스토그램 중 0° 기준 X축 히스토그램에 가장 근접한 X축 히스토그램을 선별하는 단계, 및
선별된 상기 X축 히스토그램에 대한 투영 각도로 상기 문서 이미지의 기울기를 결정하는 단계를 포함하는 것을 특징으로 하는, 히스토그램을 이용한 문서 이미지 보정 방법.
The method according to claim 1,
Wherein extracting the histogram for the document image includes extracting a plurality of X-axis histograms for the document image by changing an angle projected onto the document image,
Wherein determining the slope of the document image comprises:
Selecting an X-axis histogram closest to the 0-degree reference X-axis histogram among the plurality of extracted X-axis histograms, and
And determining a slope of the document image with a projection angle with respect to the selected X-axis histogram.
문서 이미지를 디지털 형태로 문서 이미지 획득부;
상기 문서 이미지에 대한 히스토그램을 추출하는 히스토그램 추출부;
상기 히스토그램을 분석하여 상기 문서 이미지의 기울기를 결정하는 기울기 결정부; 및
결정된 상기 문서 이미지의 기울기에 기초하여, 상기 문서 이미지가 목표된 기울기를 가지도록, 상기 문서 이미지의 기울기를 보정하는 기울기 보정부를 포함하는, 히스토그램을 이용한 문서 이미지 보정 장치.
A document image acquiring unit in a digital form;
A histogram extracting unit for extracting a histogram of the document image;
A slope determining unit for analyzing the histogram to determine a slope of the document image; And
And a tilt correcting section for correcting the tilt of the document image so that the document image has a desired tilt based on the determined slope of the document image.
명령어 세트들을 저장하는 컴퓨터 판독가능매체로서,
상기 명령어 세트들은, 컴퓨팅 장치에 의해 실행되는 경우에 상기 컴퓨팅 장치로 하여금,
문서 이미지를 디지털 형태로 획득하도록 하고,
상기 문서 이미지에 대한 히스토그램을 추출하도록 하고,
상기 히스토그램을 분석하여 상기 문서 이미지의 기울기를 결정하도록 하고, 그리고
결정된 상기 문서 이미지의 기울기에 기초하여, 상기 문서 이미지가 목표된 기울기를 가지도록, 상기 문서 이미지의 기울기를 보정하도록 하는, 컴퓨터 판독가능 매체.
43. A computer-readable medium for storing a set of instructions,
Wherein the sets of instructions cause the computing device to, when executed by the computing device,
The document image is acquired in a digital form,
Extract a histogram of the document image,
Analyze the histogram to determine the slope of the document image, and
And based on the determined slope of the document image, corrects the slope of the document image such that the document image has a desired slope.
KR1020140033501A 2014-03-21 2014-03-21 Method of correcting document image using histogram and apparatus thereof KR101561443B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140033501A KR101561443B1 (en) 2014-03-21 2014-03-21 Method of correcting document image using histogram and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140033501A KR101561443B1 (en) 2014-03-21 2014-03-21 Method of correcting document image using histogram and apparatus thereof

Publications (2)

Publication Number Publication Date
KR20150109929A true KR20150109929A (en) 2015-10-02
KR101561443B1 KR101561443B1 (en) 2015-10-19

Family

ID=54341172

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140033501A KR101561443B1 (en) 2014-03-21 2014-03-21 Method of correcting document image using histogram and apparatus thereof

Country Status (1)

Country Link
KR (1) KR101561443B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091505A (en) * 2019-11-26 2020-05-01 浙江大学 Photocopy image inclination correction method based on classical profile

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004128643A (en) * 2002-09-30 2004-04-22 Matsushita Electric Ind Co Ltd Method for compensating tilt of image
JP2011259342A (en) * 2010-06-11 2011-12-22 Panasonic Corp Image processing apparatus and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091505A (en) * 2019-11-26 2020-05-01 浙江大学 Photocopy image inclination correction method based on classical profile
CN111091505B (en) * 2019-11-26 2022-06-24 浙江大学 Photocopy image inclination correction method based on classical profile

Also Published As

Publication number Publication date
KR101561443B1 (en) 2015-10-19

Similar Documents

Publication Publication Date Title
KR101292925B1 (en) Object of image capturing, computer readable media for storing image processing program and image processing method
EP3054662B1 (en) Apparatus, method and computer program for facilitating scanned document area designation for skew correction>
US8554012B2 (en) Image processing apparatus and image processing method for correcting distortion in photographed image
US10970845B2 (en) Image processing apparatus, image processing method, and storage medium
US20210012140A1 (en) Reading system, reading method, and storage medium
JP6115214B2 (en) Pattern processing apparatus, pattern processing method, and pattern processing program
JP2018046360A (en) Image processing device, method and program
JP5975281B2 (en) Image processing apparatus and program
JP4114959B2 (en) Image processing method and apparatus
JP4501701B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP2012105145A (en) Image processing apparatus, image processing method, and program
JP4420295B2 (en) Image reading device
JP2012018494A (en) Bar code symbol reader, bar code symbol reading method, and computer program
KR101561443B1 (en) Method of correcting document image using histogram and apparatus thereof
US10134138B2 (en) Information processing apparatus, computer-readable storage medium, information processing method
JP6887909B2 (en) Image processing device
JP6887910B2 (en) Image processing device
JP2017069877A (en) Image processing apparatus
US10911636B2 (en) Image inclination angle detection apparatus that detects inclination angle of image with respect to document, image forming apparatus, and computer-readable non-transitory recording medium storing image inclination angle detection program
JP2004310726A (en) Image inspection method, image inspection apparatus, and program
JP2005269095A (en) Image processing method and image processor
JP6613625B2 (en) Image processing program, image processing apparatus, and image processing method
JP2009272714A (en) Image processing apparatus, image processing method, program, and recording medium with the program stored
JP6951393B2 (en) Scanning systems, programs, methods and equipment
JP6950237B2 (en) Computer programs and image processing equipment

Legal Events

Date Code Title Description
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee