KR102284781B1 - Electronic device capable of correcting scanned image of document and operating method thereof - Google Patents

Electronic device capable of correcting scanned image of document and operating method thereof Download PDF

Info

Publication number
KR102284781B1
KR102284781B1 KR1020200059684A KR20200059684A KR102284781B1 KR 102284781 B1 KR102284781 B1 KR 102284781B1 KR 1020200059684 A KR1020200059684 A KR 1020200059684A KR 20200059684 A KR20200059684 A KR 20200059684A KR 102284781 B1 KR102284781 B1 KR 102284781B1
Authority
KR
South Korea
Prior art keywords
document
image
pixels
nxn
unit
Prior art date
Application number
KR1020200059684A
Other languages
Korean (ko)
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 KR1020200059684A priority Critical patent/KR102284781B1/en
Application granted granted Critical
Publication of KR102284781B1 publication Critical patent/KR102284781B1/en

Links

Images

Classifications

    • 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
    • H04N1/3877Image rotation
    • H04N1/3878Skew detection or correction
    • 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
    • H04N1/393Enlarging or reducing
    • H04N1/3935Enlarging or reducing with modification of image resolution, i.e. determining the values of picture elements at new relative positions
    • 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/44Secrecy systems
    • H04N1/448Rendering the image unintelligible, e.g. scrambling
    • 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/46Colour picture communication systems
    • H04N1/64Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/0077Types of the still picture apparatus
    • H04N2201/0081Image reader

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

Disclosed are an electronic device capable of correcting a scanned image of a document and an operating method thereof. The present invention relates to an electronic device that can improve the readability of the scanned image of a document, by detecting only a document area, which is an area where a specific document exists, from the scanned image, and correcting the inclination and size of the document area when a correction command for the scanned image generated by scanning the specific document is applied from a user, and an operating method thereof.

Description

문서의 스캔 이미지에 대한 보정이 가능한 전자 장치 및 그 동작 방법{ELECTRONIC DEVICE CAPABLE OF CORRECTING SCANNED IMAGE OF DOCUMENT AND OPERATING METHOD THEREOF}An electronic device capable of correcting a scanned image of a document and an operating method thereof

본 발명은 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치 및 그 동작 방법에 대한 것이다.The present invention relates to an electronic device capable of correcting a scanned image of a document and an operating method thereof.

전자 기록물은 정부나 기업 등의 각 기관에서 컴퓨터 시스템을 이용하여 전자 포맷으로 생성, 유통, 관리하는 모든 기록물을 의미하는 것으로, 각 기관의 운영 정책 등을 파악할 수 있는 증거 자료로서의 역할을 한다.Electronic records refer to all records created, distributed, and managed in electronic format using computer systems by each institution, such as the government or corporation, and serve as evidence to understand the operation policies of each institution.

이러한 전자 기록물은 각 기관에서 업무를 수행하기 위한 수단이 되기도 하고, 각 기관의 후임자가 업무를 파악하기 위한 자료가 되기도 하며, 역사적으로 중요한 의미를 가질 수도 있으므로 전자 기록물에 대한 관리 업무는 매우 중요하다.These electronic records serve as a means for performing work in each institution, as data for the successors of each institution to understand their work, and may have historical significance, so the management of electronic records is very important. .

기록물 중에서는 종이 기록물도 존재하기 때문에, 종이 기록물을 전자 기록물로 만들어서 보관하기 위해서는 스캐너를 통해 종이 기록물을 스캔하는 작업이 수행되어야 한다.Since paper records also exist among records, in order to make and store paper records as electronic records, the operation of scanning the paper records through a scanner must be performed.

보통, 스캐너는 콘택트 플레이트 상에 배치된 원고를 스캔하여 그 원고의 디지털 이미지를 생성하게 되는데, 사용자가 콘택트 플레이트 상에 원고를 정확하게 배치시키지 않게 되는 경우, 비뚤어진 원고의 스캔 이미지가 생성될 수 있다.In general, a scanner scans a manuscript placed on a contact plate and generates a digital image of the original. If a user does not accurately place the original on the contact plate, a scanned image of a skewed original may be generated.

이와 관련하여, 비뚤어진 원고의 스캔 이미지가 생성되는 것을 방지하고자 스캐너의 콘택트 플레이트 주변에는 기준 스케일과 기준점이 표시되고 있지만, 간혹 스캐너 자체의 오작동으로 인하여 비뚤어진 원고의 스캔 이미지가 생성되는 경우도 있다.In this regard, reference scales and reference points are displayed around the contact plate of the scanner to prevent the creation of a scanned image of a skewed original, but sometimes a scanned image of a skewed original is generated due to a malfunction of the scanner itself.

이렇게, 비뚤어진 원고의 스캔 이미지가 생성되면, 가독성이 떨어질 수 있는 단점이 존재하기 때문에, 비뚤어진 원고의 스캔 이미지의 기울기를 보정해 줄 필요가 있다.In this way, when a scanned image of a crooked document is generated, there is a disadvantage in that readability may be deteriorated, so it is necessary to correct the inclination of the scanned image of the crooked document.

따라서, 비뚤어진 원고의 스캔 이미지의 기울기를 분석한 후 이를 기초로, 비뚤어진 원고의 스캔 이미지에 대한 보정 작업을 수행할 수 있도록 지원하는 전자 장치에 대한 연구가 필요하다.Therefore, there is a need for research on an electronic device that supports to perform a correction operation on a scanned image of a crooked manuscript based on the analysis of the tilt of the scanned image of the crooked manuscript.

또한, 스캔 이미지는 스캔 과정에서의 오류로 인해, 그 형태가 원본 원고의 크기에 따른 규격에 매칭되지 않을 수도 있다. 예컨대, A4 크기를 갖는 원고를 스캔시켰다고 하더라도, 스캔 과정에서의 사용자 또는 스캐너의 오류로 인해서 스캔 이미지의 가로 또는 세로 규격이 A4 크기에 따른 규격에 매칭되지 않을 수 있다. 따라서, 문서의 스캔 이미지를 원본 문서의 크기에 따른 규격에 매칭시킬 수 있는 기법에 대한 연구도 필요하다.Also, the shape of the scanned image may not match the standard according to the size of the original manuscript due to an error in the scanning process. For example, even when a manuscript having an A4 size is scanned, the horizontal or vertical size of the scanned image may not match the standard according to the A4 size due to a user or scanner error in the scanning process. Therefore, it is also necessary to study a technique that can match the scanned image of the document to the standard according to the size of the original document.

한편, 전자 기록물은 전술한 바와 같이 각 기관의 중요 정보가 포함되어 있을 가능성이 높기 때문에, 특정 종이 기록물을 스캔 이미지로 변환해서 전자 기록물로 보관할 때에는 제3자가 전자 기록물의 내용을 쉽게 볼 수 없도록 소정의 보안 조치가 취해질 필요가 있다.On the other hand, since electronic records are highly likely to contain important information of each institution as described above, when a specific paper record is converted into a scanned image and stored as an electronic record, it is necessary to prevent a third party from easily viewing the contents of the electronic record. security measures need to be taken.

따라서, 문서의 스캔 이미지를 보관하는데 있어서, 내용 유출을 방지하기 위한 이미지 보안 기술에 대한 연구도 필요하다.Therefore, in storing the scanned image of a document, it is also necessary to study image security technology to prevent content leakage.

본 발명에 따른 전자 장치 및 그 동작 방법은 사용자로부터 특정 문서가 스캔되어 생성된 스캔 이미지에 대한 보정 명령이 인가되면, 상기 스캔 이미지로부터 상기 특정 문서가 존재하는 영역인 문서 영역만을 검출하고, 상기 문서 영역의 기울기와 크기에 대한 보정을 수행함으로써, 문서의 스캔 이미지에 대한 가독성이 향상될 수 있도록 지원하고자 한다.An electronic device and an operating method thereof according to the present invention detect only a document area, which is an area in which the specific document exists, from the scanned image when a correction command for a scanned image generated by scanning a specific document is applied from the user, and the document By correcting the slope and size of the area, we want to support the readability of the scanned image of the document.

본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치는 미리 정해진(predetermined) 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있는 문서 틀 이미지 저장부, 사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출하는 문서 영역 검출부, 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출하는 기울기 각도 산출부, 상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성하는 문서 이미지 생성부, 상기 문서 이미지가 생성되면, 상기 문서 틀 이미지 저장부로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출하는 문서 틀 이미지 추출부, 상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시키는 중심점 매칭부 및 상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료하는 크기 조정부를 포함한다.An electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention includes a plurality of predetermined document size information and a predetermined rectangular document frame corresponding to each of the plurality of document size information. When the first document size information corresponding to the first document is input while a correction command for the first scanned image generated by scanning the first document is applied from the document frame image storage unit in which the image is stored correspondingly, the user , a document area detector for detecting only a first document area, which is an area in which the first document exists, from the first scan image, a two-dimensional coordinate value of the uppermost left point of the first document area and a two-dimensional coordinate value of the uppermost right point of the first document area a tilt angle calculator for calculating an inclination angle representing a degree of inclination with respect to the horizontal axis based on a document image generating unit generating a document image composed of only the first document area inclined to be horizontal; when the document image is generated, a first document frame image corresponding to the first document size information from the document frame image storage unit A document frame image extraction unit for extracting, a center point matching unit for matching the center point of the document image to the center point of the first document frame image, and a center point of the document image matching the center point of the first document frame image, the document and a size adjustment unit for completing a correction operation for the first scanned image by adjusting the size of the image to match the size of the first document frame image.

또한, 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법은 미리 정해진 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있는 문서 틀 이미지 저장부를 유지하는 단계, 사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출하는 단계, 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출하는 단계, 상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성하는 단계, 상기 문서 이미지가 생성되면, 상기 문서 틀 이미지 저장부로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출하는 단계, 상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시키는 단계 및 상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료하는 단계를 포함한다.In addition, the method of operating an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention includes a plurality of predetermined document size information and a predetermined rectangular shape corresponding to each of the plurality of document size information. maintaining a document frame image storage unit in which a document frame image is stored in correspondence with the document frame image; When size information is input, detecting only a first document area, which is an area in which the first document exists, from the first scan image; calculating an inclination angle representing a degree of inclination with respect to a horizontal axis based on a dimension coordinate value; by tilting the first document area to be horizontal with respect to the horizontal axis based on the calculated inclination angle, the horizontal axis generating a document image composed of only the first document area inclined to be horizontal; when the document image is generated, extracting a first document frame image corresponding to the first document size information from the document frame image storage unit Step, matching the center point of the document image to the center point of the first document frame image, and when the center point of the document image matches the center point of the first document frame image, adjusting the size of the document image to the first document frame image and completing a correction operation on the first scanned image by adjusting it to match the size of the image.

본 발명에 따른 전자 장치 및 그 동작 방법은 사용자로부터 특정 문서가 스캔되어 생성된 스캔 이미지에 대한 보정 명령이 인가되면, 상기 스캔 이미지로부터 상기 특정 문서가 존재하는 영역인 문서 영역만을 검출하고, 상기 문서 영역의 기울기와 크기에 대한 보정을 수행함으로써, 문서의 스캔 이미지에 대한 가독성을 향상시킬 수 있다.An electronic device and an operating method thereof according to the present invention detect only a document area, which is an area in which the specific document exists, from the scanned image when a correction command for a scanned image generated by scanning a specific document is applied from the user, and the document By correcting the inclination and size of the area, it is possible to improve the readability of the scanned image of the document.

도 1은 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 구조를 도시한 도면이다.
도 2 내지 도 5는 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작을 설명하기 위한 도면이다.
도 6은 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법을 도시한 순서도이다.
1 is a diagram illustrating a structure of an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention.
2 to 5 are diagrams for explaining an operation of an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention.
6 is a flowchart illustrating a method of operating an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. These descriptions are not intended to limit the present invention to specific embodiments, and should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. While describing each drawing, like reference numerals are used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, refer to those of ordinary skill in the art to which the present invention belongs. It has the same meaning as is commonly understood by those who have it.

본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다.In this document, when a part "includes" a certain component, it means that other components may be further included, rather than excluding other components, unless otherwise stated. In addition, in various embodiments of the present invention, each of the components, functional blocks or means may be composed of one or more sub-components, and the electrical, electronic, and mechanical functions performed by each component are electronic. A circuit, an integrated circuit, an ASIC (Application Specific Integrated Circuit), etc. may be implemented with various well-known devices or mechanical elements, and may be implemented separately or two or more may be integrated into one.

한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the blocks in the accompanying block diagram or steps in the flowchart are computer program instructions that are loaded in a processor or memory of equipment capable of data processing, such as a general-purpose computer, a special-purpose computer, a portable notebook computer, and a network computer, and perform specified functions. can be interpreted as meaning Since these computer program instructions may be stored in a memory provided in a computer device or in a memory readable by a computer, the functions described in the blocks of the block diagrams or the steps of the flowcharts are produced as articles of manufacture containing instruction means for performing the same. could be In addition, each block or each step may represent a module, segment, or portion of code comprising one or more executable instructions for executing the specified logical function(s). It should also be noted that, in some alternative embodiments, it is also possible for the functions recited in blocks or steps to be executed out of the prescribed order. For example, two blocks or steps shown one after another may be performed substantially simultaneously or in the reverse order, and in some cases, some blocks or steps may be omitted.

도 1은 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 구조를 도시한 도면이다.1 is a diagram illustrating a structure of an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention.

도 1을 참조하면, 본 발명에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치(110)는 문서 틀 이미지 저장부(111), 문서 영역 검출부(112), 기울기 각도 산출부(113), 문서 이미지 생성부(114), 문서 틀 이미지 추출부(115), 중심점 매칭부(116) 및 크기 조정부(117)를 포함한다.Referring to FIG. 1 , an electronic device 110 capable of correcting a scanned image of a document according to the present invention includes a document frame image storage unit 111 , a document area detection unit 112 , a tilt angle calculation unit 113 , and a document It includes an image generation unit 114 , a document frame image extraction unit 115 , a center point matching unit 116 , and a size adjustment unit 117 .

문서 틀 이미지 저장부(111)에는 미리 정해진(predetermined) 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있다.In the document frame image storage unit 111, a plurality of predetermined document size information and a document frame image having a predetermined rectangular shape corresponding to each of the plurality of document size information are stored in correspondence with each other.

여기서, 상기 복수의 문서 크기 정보들이란 A4(210 x 297 mm), A5(148 x 210 mm), A6(105 x 148 mm) 등과 같은 편집 용지의 크기 정보를 의미한다.Here, the plurality of pieces of document size information means size information of edited paper such as A4 (210 x 297 mm), A5 (148 x 210 mm), and A6 (105 x 148 mm).

예컨대, 문서 틀 이미지 저장부(111)에는 하기의 표 1과 같이 정보가 저장되어 있을 수 있다.For example, information may be stored in the document frame image storage unit 111 as shown in Table 1 below.

복수의 문서 크기 정보들Multiple document size information 문서 틀 이미지document frame image 문서 크기 정보 1About document size 1 문서 틀 이미지 1document frame image 1 문서 크기 정보 2About document size 2 문서 틀 이미지 2document frame image 2 문서 크기 정보 3About document size 3 문서 틀 이미지 3document frame image 3 ...... ......

문서 영역 검출부(112)는 사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출한다.When a correction command for a first scanned image generated by scanning a first document is applied from a user, the document area detection unit 112 receives first document size information corresponding to the first document, the first scanned image Only the first document area, which is the area in which the first document exists, is detected.

기울기 각도 산출부(113)는 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출한다.The tilt angle calculator 113 calculates a tilt angle representing a degree of tilt with respect to the horizontal axis based on the two-dimensional coordinate value of the uppermost left point of the first document area and the two-dimensional coordinate value of the uppermost right point.

이때, 본 발명의 일실시예에 따르면, 기울기 각도 산출부(113)는 하기의 수학식 1에 기초하여 상기 기울기 각도를 산출할 수 있다.In this case, according to an embodiment of the present invention, the inclination angle calculating unit 113 may calculate the inclination angle based on Equation 1 below.

Figure 112020050339837-pat00001
Figure 112020050339837-pat00001

여기서,

Figure 112020050339837-pat00002
는 상기 기울기 각도로,
Figure 112020050339837-pat00003
은 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값,
Figure 112020050339837-pat00004
는 상기 제1 문서 영역의 최상단 우측 지점의 2차원 좌표 값을 의미한다.here,
Figure 112020050339837-pat00002
is the inclination angle,
Figure 112020050339837-pat00003
is a two-dimensional coordinate value of the uppermost left point of the first document area;
Figure 112020050339837-pat00004
denotes a two-dimensional coordinate value of the uppermost right point of the first document area.

문서 이미지 생성부(114)는 상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성한다.The document image generating unit 114 tilts the first document area to be horizontal with respect to the horizontal axis based on the calculated tilt angle, and thereby a document including only the first document area tilted to be horizontal with respect to the horizontal axis. create an image

문서 틀 이미지 추출부(115)는 상기 문서 이미지가 생성되면, 문서 틀 이미지 저장부(111)로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출한다.When the document image is generated, the document frame image extraction unit 115 extracts a first document frame image corresponding to the first document size information from the document frame image storage unit 111 .

중심점 매칭부(116)는 상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시킨다.The center point matching unit 116 matches the center point of the document image with the center point of the first document frame image.

크기 조정부(117)는 상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료한다.When the center point of the document image matches the center point of the first document frame image, the size adjustment unit 117 adjusts the size of the document image to match the size of the first document frame image, thereby increasing the size of the first scanned image. Completion of correction work for

관련해서, 도 2와 도 3에 도시된 그림을 참조하여 문서 영역 검출부(112), 기울기 각도 산출부(113), 문서 이미지 생성부(114), 문서 틀 이미지 추출부(115), 중심점 매칭부(116) 및 크기 조정부(117)의 동작을 설명하면 다음과 같다.In this regard, with reference to the drawings shown in FIGS. 2 and 3 , the document area detection unit 112 , the tilt angle calculation unit 113 , the document image generation unit 114 , the document frame image extraction unit 115 , and the center point matching unit The operations of 116 and the size adjustment unit 117 will be described as follows.

먼저, 제1 문서 크기 정보를 '문서 크기 정보 1'이라고 가정하자. 이때, 사용자로부터 도면부호 200에 나타난 바와 같이 제1 문서가 스캔되어 생성된 제1 스캔 이미지(210)에 대한 보정 명령이 전자 장치(110)에 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보인 '문서 크기 정보 1'이 전자 장치(110)에 입력되면, 문서 영역 검출부(112)는 제1 스캔 이미지(210)로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역(212)만을 검출할 수 있다.First, it is assumed that the first document size information is 'document size information 1'. At this time, as indicated by reference numeral 200 from the user, a correction command for the first scanned image 210 generated by scanning the first document is applied to the electronic device 110 , and the first document corresponding to the first document is applied to the electronic device 110 . When 'document size information 1', which is size information, is input to the electronic device 110 , the document area detection unit 112 detects the first document area 212 from the first scanned image 210 , which is the area in which the first document exists. can only be detected.

그러고 나서, 기울기 각도 산출부(113)는 도면부호 215에 도시된 그림을 참조하여 제1 문서 영역(212)의 최상단 좌측 지점의 2차원 좌표 값(220)과 최상단 우측 지점의 2차원 좌표 값(230)을 상기 수학식 1에 대입시킴으로써, 제1 문서 영역(212)에 대한 가로축(240)과의 기울기 각도를 '

Figure 112020050339837-pat00005
'와 같이 산출할 수 있다.Then, the inclination angle calculator 113 refers to the figure shown at 215 , the two-dimensional coordinate value 220 of the uppermost left point of the first document area 212 and the two-dimensional coordinate value of the uppermost right point ( By substituting 230) into Equation 1, the inclination angle with respect to the horizontal axis 240 with respect to the first document area 212 is '
Figure 112020050339837-pat00005
' can be calculated as

그 이후, 문서 이미지 생성부(114)는 제1 문서 영역(212)에 대해서 산출된 가로축(240)과의 기울기 각도인 '

Figure 112020050339837-pat00006
'를 기초로, 제1 문서 영역(212)을 가로축(240)에 대해 수평이 되도록 기울임으로써, 도면부호 245에 도시된 그림처럼 가로축(240)에 대해 수평이 되도록 기울여진 제1 문서 영역(212)만으로 구성된 문서 이미지(250)를 생성할 수 있다.After that, the document image generating unit 114 calculates an inclination angle with respect to the horizontal axis 240 with respect to the first document area 212 '
Figure 112020050339837-pat00006
', by tilting the first document area 212 to be horizontal with respect to the horizontal axis 240, the first document area 212 tilted to be horizontal with respect to the horizontal axis 240 as shown in reference numeral 245. ), a document image 250 composed only of ) may be generated.

이렇게, 문서 이미지 생성부(114)에 의해 문서 이미지(250)가 생성되면, 문서 틀 이미지 추출부(115)는 상기 표 1과 같은 문서 틀 이미지 저장부(111)로부터 상기 제1 문서 크기 정보인 '문서 크기 정보 1'에 대응하는 제1 문서 틀 이미지인 '문서 틀 이미지 1(310)'을 추출할 수 있다.In this way, when the document image 250 is generated by the document image generating unit 114, the document frame image extracting unit 115 receives the first document size information from the document frame image storage unit 111 as shown in Table 1 above. A 'document frame image 1 (310)' that is a first document frame image corresponding to the 'document size information 1' may be extracted.

그러고 나서, 중심점 매칭부(116)는 도면부호 300에 나타난 바와 같이 문서 이미지(250)의 중심점을 문서 틀 이미지 1(310)의 중심점에 매칭시킬 수 있다.Then, the center point matching unit 116 may match the center point of the document image 250 to the center point of the document frame image 1 310 as indicated by reference numeral 300 .

이때, 중심점 매칭부(116)에 의해 문서 이미지(250)의 중심점이 문서 틀 이미지 1(310)의 중심점에 매칭되면, 크기 조정부(117)는 도면부호 300에 도시된 그림과 같이 문서 이미지(250)의 크기를 문서 틀 이미지 1(310)의 크기에 일치되도록 조정하여 도면부호 320에 나타난 바와 같이 크기 조정 후의 문서 이미지(330)를 생성함으로써, 제1 스캔 이미지(210)에 대한 보정 작업을 완료할 수 있다.At this time, if the center point of the document image 250 is matched with the center point of the document frame image 1 310 by the center point matching unit 116, the size adjustment unit 117 is the document image 250 as shown in reference numeral 300 . ) by adjusting the size to match the size of the document frame image 1 310 to generate the document image 330 after size adjustment as shown in reference numeral 320, thereby completing the correction operation for the first scanned image 210 can do.

즉, 전자 장치(110)는 문서 틀 이미지 저장부(111)에 미리 정해진 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지를 저장해 둔 상태에서, 사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출하고, 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출하며, 상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성하고, 문서 틀 이미지 저장부(111)로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출하고, 상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시킨 후 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료할 수 있다.That is, the electronic device 110 stores in the document frame image storage unit 111 a plurality of predetermined document size information and a predetermined rectangular document frame image corresponding to each of the plurality of document size information. , when the first document size information corresponding to the first document is input while a correction command is applied to the first scanned image generated by scanning the first document from the user, the first document is generated from the first scanned image Only the first document area, which is an existing area, is detected, and a tilt angle representing the degree of inclination with the horizontal axis is calculated based on the 2D coordinate value of the uppermost left point of the first document area and the 2D coordinate value of the uppermost right point of the first document area and, based on the calculated tilt angle, tilting the first document area to be horizontal with respect to the horizontal axis to generate a document image composed of only the first document area tilted to be horizontal with respect to the horizontal axis, Extracts a first document frame image corresponding to the first document size information from the frame image storage unit 111, matches the center point of the document image to the center point of the first document frame image, and determines the size of the document image By adjusting the size of the first document frame image to match the size of the first document frame image, the correction operation for the first scanned image may be completed.

본 발명의 일실시예에 따르면, 문서 영역 검출부(112)는 상기 제1 스캔 이미지에서 상기 제1 문서 영역을 검출해 내기 위한 구성으로, 제1 화소 값 추출부(123), 기준 벡터 생성부(124), 제2 화소 값 추출부(125), 특징 벡터 생성부(126) 및 검출부(127)를 포함할 수 있다.According to an embodiment of the present invention, the document area detection unit 112 is configured to detect the first document area from the first scanned image, and includes a first pixel value extraction unit 123 and a reference vector generation unit ( 124 ), a second pixel value extractor 125 , a feature vector generator 126 , and a detector 127 .

제1 화소 값 추출부(123)는 상기 제1 스캔 이미지의 최외곽 테두리를 구성하는 복수의 화소들에 대한 RGB 값을 추출한다.The first pixel value extraction unit 123 extracts RGB values for a plurality of pixels constituting the outermost edge of the first scan image.

기준 벡터 생성부(124)는 상기 제1 스캔 이미지의 최외곽 테두리에 대하여, 최외곽 테두리를 구성하는 화소들의 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 연산한 후 상기 연산된 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 성분으로 하는 3차원의 기준 벡터를 생성한다.The reference vector generator 124 calculates the average of the red color values, the average of the green color values, and the average of the blue color values of pixels constituting the outermost edge with respect to the outermost edge of the first scanned image, and then A three-dimensional reference vector is generated using the calculated average of the red color values, the average of the green color values, and the average of the blue color values as components.

여기서, RGB 값은 0부터 255 사이에 있는 어느 하나의 수치를 갖는 Red 색상 값, Green 색상 값 및 Blue 색상 값으로 구성되는 화소 값을 의미한다.Here, the RGB value means a pixel value composed of a red color value, a green color value, and a blue color value having any number between 0 and 255.

제2 화소 값 추출부(125)는 상기 제1 스캔 이미지를 구성하는 복수의 화소들에 대한 RGB 값을 추출한다.The second pixel value extractor 125 extracts RGB values for a plurality of pixels constituting the first scan image.

특징 벡터 생성부(126)는 상기 복수의 화소들 각각에 대해, 각 화소의 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 하는 3차원의 특징 벡터를 구성함으로써, 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터를 생성한다.The feature vector generating unit 126 constructs a three-dimensional feature vector including, for each of the plurality of pixels, a red color value, a green color value, and a blue color value of each pixel, thereby forming each of the plurality of pixels. Create a three-dimensional feature vector corresponding to .

검출부(127)는 상기 3차원의 기준 벡터와 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터 간의 유클리드 거리(Euclidean Distance)를 연산한 후 상기 복수의 화소들 중 상기 연산된 유클리드 거리가 미리 정해진 기준치 이내인 것으로 확인되는 특징 벡터를 갖는 화소들을 모두 제거함으로써, 상기 제1 문서 영역을 검출한다.The detector 127 calculates the Euclidean distance between the three-dimensional reference vector and the three-dimensional feature vector corresponding to each of the plurality of pixels, and then calculates the Euclidean distance among the plurality of pixels in advance. The first document area is detected by removing all pixels having a feature vector confirmed to be within a predetermined reference value.

여기서, 유클리드 거리란 두 개의 벡터가 존재한다고 하였을 때, 두 벡터 간의 거리를 의미하는 것으로 하기의 수학식 2에 따라 연산될 수 있다.Here, the Euclidean distance means a distance between two vectors when two vectors exist, and may be calculated according to Equation 2 below.

Figure 112020050339837-pat00007
Figure 112020050339837-pat00007

상기 수학식 2에서 D는 유클리드 거리, Ai와 Bi는 두 벡터에 포함되어 있는 i번째 성분들을 의미한다. 보통, 두 벡터 간의 유클리드 거리가 작을수록 두 벡터는 유사한 벡터라고 볼 수 있고, 두 벡터 간의 유클리드 거리가 클수록 두 벡터는 비유사한 벡터라고 볼 수 있다.In Equation 2, D denotes a Euclidean distance, and A i and B i denote i-th components included in the two vectors. In general, the smaller the Euclidean distance between two vectors is, the more similar the two vectors are.

관련해서, 도면부호 200에 도시된 그림을 참조하여 제1 화소 값 추출부(123), 기준 벡터 생성부(124), 제2 화소 값 추출부(125), 특징 벡터 생성부(126) 및 검출부(127)의 동작을 설명하면 다음과 같다.In this regard, referring to the figure shown at 200 , the first pixel value extraction unit 123 , the reference vector generation unit 124 , the second pixel value extraction unit 125 , the feature vector generation unit 126 , and the detection unit The operation of (127) will be described as follows.

먼저, 제1 화소 값 추출부(123)는 제1 스캔 이미지(210)의 최외곽 테두리(211)를 구성하는 복수의 화소들에 대한 RGB 값을 추출할 수 있다.First, the first pixel value extractor 123 may extract RGB values for a plurality of pixels constituting the outermost edge 211 of the first scan image 210 .

그러고 나서, 기준 벡터 생성부(124)는 제1 스캔 이미지(210)의 최외곽 테두리(211)에 대하여, 최외곽 테두리(211)를 구성하는 화소들의 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 연산할 수 있다. 만약, 연산된 Red 색상 값의 평균이 '125', 연산된 Green 색상 값의 평균이 '60', 연산된 Blue 색상 값의 평균이 '0'이라고 가정하면, 기준 벡터 생성부(124)는 상기 연산된 Red 색상 값의 평균인 '125', Green 색상 값의 평균인 '60' 및 Blue 색상 값의 평균인 '0'을 성분으로 하는 3차원의 기준 벡터를 '[125 60 0]'과 같이 생성할 수 있다.Then, the reference vector generator 124 with respect to the outermost edge 211 of the first scanned image 210, the average of the red color values of the pixels constituting the outermost edge 211 and the average of the green color values and the average of the blue color values may be calculated. If it is assumed that the average of the calculated red color values is '125', the calculated average of the green color values is '60', and the calculated average of the blue color values is '0', the reference vector generator 124 is A three-dimensional reference vector containing '125', which is the average of the calculated red color values, '60', which is the average of green color values, and '0', which is the average of blue color values, is set as '[125 60 0]'. can create

그 이후, 제2 화소 값 추출부(125)는 제1 스캔 이미지(210)를 구성하는 복수의 화소들에 대한 RGB 값을 추출할 수 있다.Thereafter, the second pixel value extractor 125 may extract RGB values for a plurality of pixels constituting the first scan image 210 .

이때, 특징 벡터 생성부(126)는 상기 복수의 화소들 각각에 대해, 각 화소의 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 하는 3차원의 특징 벡터를 구성함으로써, 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터를 '[a1 a2 a3], [a4 a5 a6], [a7 a8 a9], ...'과 같이 생성할 수 있다.In this case, the feature vector generator 126 constructs a three-dimensional feature vector including, for each of the plurality of pixels, a red color value, a green color value, and a blue color value of each pixel, thereby forming the plurality of pixels. A three-dimensional feature vector corresponding to each of '[a 1 a 2 a 3 ], [a 4 a 5 a 6 ], [a 7 a 8 a 9 ], ...' may be generated.

그러고 나서, 검출부(127)는 상기 3차원의 기준 벡터인 '[125 60 0]'과 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터인 '[a1 a2 a3], [a4 a5 a6], [a7 a8 a9], ...' 간의 유클리드 거리를 'D1, D2, D3, ...'과 같이 연산할 수 있다. 만약, 상기 기준치가 '40'이라고 가정하는 경우, 검출부(127)는 상기 복수의 화소들 중 상기 연산된 유클리드 거리인 'D1, D2, D3, ...'이 상기 기준치인 '40' 이내인 것으로 확인되는 특징 벡터를 갖는 화소들을 모두 제거함으로써, 제1 문서 영역(212)을 검출할 수 있다.Then, the detection unit 127 determines the three-dimensional reference vector '[125 600]' and the three-dimensional feature vector '[a 1 a 2 a 3 ], [a The Euclidean distance between 4 a 5 a 6 ], [a 7 a 8 a 9 ], ...' can be calculated as 'D 1 , D 2 , D 3 , ...'. If it is assumed that the reference value is '40', the detector 127 determines that 'D 1 , D 2 , D 3 , ...' which is the calculated Euclidean distance among the plurality of pixels is '40' as the reference value. ', the first document area 212 may be detected by removing all pixels having a feature vector determined to be within.

결국, 본 발명에 따른 전자 장치(110)는 제1 스캔 이미지(210)에서 최외곽 배경 영역의 색상과 유사한 색상의 화소들을 모두 제거함으로써, 제1 문서 영역(212)만을 검출해 낼 수 있다.As a result, the electronic device 110 according to the present invention may detect only the first document area 212 by removing all pixels having a color similar to the color of the outermost background area in the first scan image 210 .

본 발명의 일실시예에 따르면, 전자 장치(110)는 문서 이미지 저장 처리부(118)를 더 포함할 수 있다.According to an embodiment of the present invention, the electronic device 110 may further include a document image storage processing unit 118 .

문서 이미지 저장 처리부(118)는 상기 제1 스캔 이미지에 대한 보정 작업이 완료된 후 상기 사용자로부터 상기 제1 문서에 대한 저장 명령이 인가되면, 상기 문서 이미지를 가로 n(n은 2이상의 자연수임)개와 세로 n개로 구성된 n x n개의 이미지 조각들로 분할하고, 상기 n x n개의 이미지 조각들을 랜덤하게 섞음으로써, 스크램블링(Scrambling)된 문서 이미지를 생성한 후 상기 스크램블링된 문서 이미지를 문서 이미지 저장소(미도시)에 저장한다.When a save command for the first document is applied from the user after the correction operation for the first scanned image is completed, the document image storage processing unit 118 horizontally n (n is a natural number equal to or greater than 2) the document image and A scrambled document image is generated by dividing the image into nxn image fragments composed of n vertical and randomly mixing the nxn image fragments, and then storing the scrambled document image in a document image storage (not shown). do.

관련해서, 도 4에 도시된 그림을 참조하여 문서 이미지 저장 처리부(118)의 동작을 설명하면 다음과 같다.In relation to this, an operation of the document image storage processing unit 118 will be described with reference to the figure shown in FIG. 4 .

먼저, 'n=3'이라고 가정하자. 이때, 제1 스캔 이미지(210)에 대한 보정 작업이 완료된 후 상기 사용자로부터 상기 제1 문서에 대한 저장 명령이 전자 장치(110)에 인가되면, 문서 이미지 저장 처리부(118)는 도면부호 410에 도시된 그림과 같이 크기 조정 후의 문서 이미지(330)를 가로 3개와 세로 3개로 구성된 3 x 3개의 이미지 조각들로 분할할 수 있다.First, let's assume that 'n=3'. At this time, when a save command for the first document from the user is applied to the electronic device 110 after the correction operation for the first scanned image 210 is completed, the document image storage processing unit 118 is shown by reference numeral 410 . As shown in the figure, the size-adjusted document image 330 may be divided into 3 x 3 image pieces composed of 3 horizontally and 3 vertically.

그러고 나서, 문서 이미지 저장 처리부(118)는 도면부호 420에 도시된 그림과 같이 상기 9 x 9개의 이미지 조각들을 랜덤하게 섞음으로써, 스크램블링된 문서 이미지(430)를 생성한 후 스크램블링된 문서 이미지(430)를 상기 문서 이미지 저장소에 저장할 수 있다.Then, the document image storage processing unit 118 generates a scrambled document image 430 by randomly mixing the 9 x 9 image fragments as shown in reference numeral 420, and then the scrambled document image 430 ) can be stored in the document image storage.

이때, 본 발명의 일실시예에 따르면, 문서 이미지 저장 처리부(118)는 순번 할당부(128), 비트열 확인부(129) 및 순번 은닉부(130)를 포함할 수 있다.In this case, according to an embodiment of the present invention, the document image storage processing unit 118 may include a sequence number assignment unit 128 , a bit string check unit 129 , and a sequence number hiding unit 130 .

순번 할당부(128)는 상기 n x n개의 이미지 조각들 각각에 대해 위치에 따른 순번을 할당한다.The sequence number allocator 128 allocates a sequence number according to a location to each of the n x n image fragments.

여기서, 상기 순번은 k(k는 3이상의 자연수임)비트의 데이터로 구성될 수 있다.Here, the sequence number may be composed of k (k is a natural number equal to or greater than 3) bits of data.

비트열 확인부(129)는 상기 n x n개의 이미지 조각들 각각에 대해 할당된 순번에 대한 k비트의 데이터의 비트열을 확인한다.The bit string check unit 129 checks the bit string of k-bit data with respect to the assigned sequence number for each of the n x n image pieces.

순번 은닉부(130)는 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 k개의 화소들의 RGB 값 중 미리 정해진 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 각 이미지 조각에 할당된 순번에 대한 k비트의 데이터의 비트열로 치환함으로써, 상기 n x n개의 이미지 조각들 각각에 각 이미지 조각에 할당된 순번에 대한 데이터를 은닉한다.The sequence number hiding unit 130 sequentially extracts k pixels from the uppermost left point to the right for each of the nxn image pieces, and a predetermined first among RGB values of the k pixels extracted from each image piece. By substituting a bit string consisting of the last k bit values in the bit string of data constituting the color value with a bit string of k-bit data for the sequence number assigned to each image piece, each of the nxn image pieces is It hides the data about the sequence number assigned to the image fragment.

관련해서, 도면부호 410과 도면부호 510에 도시된 그림을 동시에 참조하여 순번 할당부(128), 비트열 확인부(129) 및 순번 은닉부(130)의 동작을 설명하면 다음과 같다.In relation to this, the operations of the sequence number assignment unit 128, the bit string check unit 129, and the sequence number hiding unit 130 will be described with reference to the drawings shown at 410 and 510 at the same time.

먼저, 'n=3'이라고 하고, 'k=4'라고 하며, 상기 제1 색상 값을 'Red 색상 값'이라고 가정하는 경우, 순번 할당부(128)는 도면부호 410에 도시된 그림과 같이 상기 3 x 3개의 이미지 조각들 각각에 대해 위치에 따른 순번인 '1, 2, 3, 4, 5, 6, 7, 8, 9'를 할당할 수 있다.First, if it is assumed that 'n=3', 'k=4', and the first color value is a 'Red color value', the sequence number allocator 128 is A sequence number of '1, 2, 3, 4, 5, 6, 7, 8, 9' may be assigned to each of the 3 x 3 image pieces.

이때, '1, 2, 3, 4, 5, 6, 7, 8, 9' 각각에 대응되는 4비트의 데이터의 비트열을 '0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000'이라고 하는 경우, 비트열 확인부(129)는 상기 3 x 3개의 이미지 조각들 각각에 대해 할당된 순번인 '1, 2, 3, 4, 5, 6, 7, 8, 9'에 대한 4비트의 데이터의 비트열인 '0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000'을 확인할 수 있다.At this time, the bit string of 4-bit data corresponding to each of '1, 2, 3, 4, 5, 6, 7, 8, 9' is set to '0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, In the case of '1000', the bit string check unit 129 provides information on '1, 2, 3, 4, 5, 6, 7, 8, 9', which is an assigned sequence number for each of the 3 x 3 image fragments. You can check '0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000', which is a bit string of 4-bit data.

그 이후, 순번 은닉부(130)는 도면부호 510에 도시된 그림과 같이 상기 3 x 3개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 4개의 화소들인 '화소 1 내지 화소 4, 화소 5 내지 화소 8, 화소 9 내지 화소 12, 화소 13 내지 화소 16, 화소 17 내지 화소 20, 화소 21 내지 화소 24, 화소 25 내지 화소 28, 화소 29 내지 화소 32, 화소 33 내지 화소 36'을 추출할 수 있다.After that, as shown in the figure 510 , the sequence number hiding unit 130 sequentially selects four pixels 'pixel 1 to pixel 4 from the uppermost left point to the right side for each of the 3 x 3 image pieces. , pixel 5 to pixel 8, pixel 9 to pixel 12, pixel 13 to pixel 16, pixel 17 to pixel 20, pixel 21 to pixel 24, pixel 25 to pixel 28, pixel 29 to pixel 32, pixel 33 to pixel 36' can be extracted.

그러고 나서, 순번 은닉부(130)는 도면부호 510에 도시된 그림과 같이 첫 번째 이미지 조각에서 추출된 4개의 화소들인 '화소 1, 화소 2, 화소 3, 화소 4'의 RGB 값 중 상기 제1 색상 값인 'Red 색상 값'을 구성하는 데이터인 'R1, R2, R3, R4'의 비트열인 'XXXXXXX1, XXXXXXX1, XXXXXXX0, XXXXXXX1'에서 마지막 4개의 비트 값들인 '1, 1, 0, 1'로 구성되는 비트열인 '1101'을 첫 번째 이미지 조각에 할당된 순번인 '1'에 대한 4비트의 데이터의 비트열인 '0000'으로 치환함으로써, 상기 첫 번째 이미지 조각에 상기 첫 번째 이미지 조각에 할당된 순번인 '1'에 대한 데이터를 은닉할 수 있다.Then, as shown in the figure 510, the sequence number hiding unit 130 performs the first of the RGB values of 'pixel 1, pixel 2, pixel 3, and pixel 4', which are four pixels extracted from the first image fragment. color value of the data constituting the 'Red color value''R 1, R 2, R 3, R 4' in the bit stream of 'XXXXXXX1, XXXXXXX1, XXXXXXX0, XXXXXXX1 ''1, 1 , which are the last four bit value in, By replacing '1101', which is a bit string composed of 0 and 1', with '0000', which is a bit string of 4-bit data for '1', which is the sequence number assigned to the first image fragment, Data for '1', which is the sequence number assigned to the first image fragment, can be hidden.

즉, 순번 은닉부(130)는 'R1, R2, R3, R4'의 비트열을 'XXXXXXX0, XXXXXXX0, XXXXXXX0, XXXXXXX0'으로 변환함으로써, 상기 첫 번째 이미지 조각에 '1'에 대한 데이터를 은닉할 수 있다.That is, the sequence number hiding unit 130 converts the bit string of 'R 1 , R 2 , R 3 , R 4 ' into 'XXXXXXX0, XXXXXXX0, XXXXXXX0, XXXXXXX0', so that for '1' in the first image fragment, Data can be hidden.

이렇게, 순번 은닉부(130)는 나머지 8개의 이미지 조각들에 대해서도 도면부호 510에 도시된 순번 데이터에 대한 은닉 과정을 반복 수행함으로써, 나머지 8개의 이미지 조각들에 각 이미지 조각에 할당된 순번인 '2, 3, 4, 5, 6, 7, 8, 9'에 대한 데이터를 은닉할 수 있다.In this way, the sequence number hiding unit 130 repeats the concealment process for the sequence number data shown in reference numeral 510 for the remaining 8 image fragments, so that the sequence number assigned to each image fragment is ' Data for 2, 3, 4, 5, 6, 7, 8, 9' can be hidden.

본 발명의 일실시예에 따르면, 전자 장치(110)는 표시부(119), 안내 메시지 표시부(120), 순번 추출부(121) 및 문서 이미지 복원부(122)를 더 포함할 수 있다.According to an embodiment of the present invention, the electronic device 110 may further include a display unit 119 , a guide message display unit 120 , a sequence number extraction unit 121 , and a document image restoration unit 122 .

표시부(119)는 문서 이미지 저장 처리부(118)에 의해 상기 스크램블링된 문서 이미지가 상기 문서 이미지 저장소에 저장된 이후, 상기 사용자로부터 상기 제1 문서에 대한 표시 명령이 인가되면, 상기 스크램블링된 문서 이미지를 화면 상에 표시한다.The display unit 119 displays the scrambled document image when a display command for the first document is applied from the user after the scrambled document image is stored in the document image storage by the document image storage processing unit 118 displayed on the

안내 메시지 표시부(120)는 상기 사용자로부터 상기 스크램블링된 문서 이미지에 대한 원본 이미지로의 복원 명령이 인가되면, 상기 사용자에게 문서의 복원을 위한 사전 설정된 비밀번호를 입력하도록 요청하는 안내 메시지를 상기 화면 상에 표시한다.When a command to restore the original image for the scrambled document image is applied from the user, the guide message display unit 120 displays a guide message requesting the user to input a preset password for restoring the document on the screen. indicate

순번 추출부(121)는 상기 안내 메시지가 표시된 이후, 미리 정해진 대기시간 이내에 상기 사용자로부터 상기 비밀번호가 수신되면, 상기 스크램블링된 문서 이미지를 구성하는 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 상기 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 상기 k개의 화소들의 RGB 값 중 상기 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 확인함으로써, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 추출한다.When the password is received from the user within a predetermined waiting time after the guidance message is displayed, the sequence number extraction unit 121 for each of the nxn image fragments constituting the scrambled document image, at the uppermost left point A bit stream composed of the last k bit values in the bit string of data constituting the first color value among the RGB values of the k pixels extracted from each image fragment by extracting the k pixels in order in the right direction By checking , data for the sequence number inserted into each of the nxn image pieces is extracted.

문서 이미지 복원부(122)는 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 기초로, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번을 확인한 후 상기 확인된 순번에 따라, 상기 n x n개의 이미지 조각들 각각을 재배치함으로써, 상기 스크램블링된 문서 이미지를 스크램블링 전의 문서 이미지로 복원한다.The document image restoration unit 122 determines the order number inserted into each of the nxn image pieces on the basis of the data on the order number inserted into each of the nxn image pieces, and then, according to the confirmed order, the nxn pieces of the image By rearranging each of the image pieces, the scrambled document image is restored to the document image before scrambling.

관련해서, 도면부호 420과 도면부호 520에 도시된 그림을 동시에 참조하여 표시부(119), 안내 메시지 표시부(120), 순번 추출부(121) 및 문서 이미지 복원부(122)의 동작을 설명하면 다음과 같다.In this regard, the operations of the display unit 119, the guide message display unit 120, the sequence number extraction unit 121, and the document image restoration unit 122 will be described with reference to the drawings shown at 420 and 520 at the same time. same as

먼저, 'n=3'이라고 하고, 'k=4'라고 하고, 상기 대기시간을 '15분'이라고 가정하자. 문서 이미지 저장 처리부(118)에 의해 스크램블링된 문서 이미지(430)가 상기 문서 이미지 저장소에 저장된 이후, 상기 사용자로부터 상기 제1 문서에 대한 표시 명령이 전자 장치(110)에 인가되면, 표시부(119)는 도면부호 420에 나타난 바와 같은 스크램블링된 문서 이미지(430)를 화면 상에 표시할 수 있다.First, it is assumed that 'n=3', 'k=4', and the waiting time is '15 minutes'. After the document image 430 scrambled by the document image storage processing unit 118 is stored in the document image storage, when a display command for the first document from the user is applied to the electronic device 110, the display unit 119 may display a scrambled document image 430 as indicated by reference numeral 420 on the screen.

이때, 상기 사용자로부터 스크램블링된 문서 이미지(430)에 대한 원본 이미지로의 복원 명령이 전자 장치(110)에 인가되면, 안내 메시지 표시부(120)는 상기 사용자에게 문서의 복원을 위한 상기 비밀번호를 입력하도록 요청하는 안내 메시지를 상기 화면 상에 표시할 수 있다.At this time, when a command to restore the original image for the scrambled document image 430 from the user is applied to the electronic device 110 , the guide message display unit 120 prompts the user to input the password for restoring the document. A requesting guidance message may be displayed on the screen.

이렇게, 안내 메시지 표시부(120)에 의해 상기 안내 메시지가 상기 화면 상에 표시된 이후, 상기 대기시간인 '15분' 이내에 상기 사용자로부터 상기 비밀번호가 전자 장치(110)에 수신되면, 순번 추출부(121)는 도면부호 520에 도시된 그림과 같이, 스크램블링된 문서 이미지(430)를 구성하는 상기 3 x 3개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 상기 4개의 화소들인 '화소 1 내지 화소 4, 화소 5 내지 화소 8, 화소 9 내지 화소 12, 화소 13 내지 화소 16, 화소 17 내지 화소 20, 화소 21 내지 화소 24, 화소 25 내지 화소 28, 화소 29 내지 화소 32, 화소 33 내지 화소 36'을 추출할 수 있다.In this way, after the guide message is displayed on the screen by the guide message display unit 120, if the password is received from the user in the electronic device 110 within the waiting time of '15 minutes', the order extracting unit 121 ) is, as shown in reference numeral 520, for each of the 3 x 3 image fragments constituting the scrambled document image 430, in the order from the uppermost left point to the right direction, the four pixels 'pixels' 1 to pixel 4, pixel 5 to pixel 8, pixel 9 to pixel 12, pixel 13 to pixel 16, pixel 17 to pixel 20, pixel 21 to pixel 24, pixel 25 to pixel 28, pixel 29 to pixel 32, pixel 33 to Pixel 36' may be extracted.

그 이후, 순번 추출부(121)는 도면부호 520에 도시된 그림과 같이, 네 번째 이미지 조각에서 추출된 상기 4개의 화소들인 '화소 13, 화소 14, 화소 15, 화소 16'의 RGB 값 중 상기 제1 색상 값인 'Red 색상 값'을 구성하는 데이터인 'R13, R14, R15, R16'의 비트열인 'XXXXXXX0, XXXXXXX0, XXXXXXX0, XXXXXXX0'에서 마지막 4개의 비트 값들인 '0, 0, 0, 0'으로 구성되는 비트열인 '0000'을 확인함으로써, 상기 네 번째 이미지 조각에 삽입된 순번인 '1'에 대한 데이터를 추출할 수 있다.After that, as shown in the figure shown at reference numeral 520, the sequence number extraction unit 121 selects the RGB values of the four pixels 'pixel 13, pixel 14, pixel 15, and pixel 16' extracted from the fourth image fragment. the first color value "Red color value, the configuration data of the" R 13, R 14, R 15, R 16 'in the bit string of "XXXXXXX0, XXXXXXX0, XXXXXXX0, XXXXXXX0' last four bit values, which are" 0, By checking '0000', which is a bit string composed of 0, 0, and 0', data for '1', which is the sequence number inserted into the fourth image fragment, can be extracted.

이렇게, 순번 추출부(121)는 나머지 8개의 이미지 조각들에 대해서도 도면부호 520에 도시된 순번 데이터에 대한 추출 과정을 반복 수행함으로써, 나머지 8개의 이미지 조각들 각각에 삽입된 순번인 '4, 2, 5, 3, 9, 7, 6, 8'에 대한 데이터를 추출할 수 있다.In this way, the sequence number extraction unit 121 repeats the extraction process for the sequence number data shown in reference numeral 520 for the remaining 8 image fragments, so that the sequence numbers '4, 2' inserted into each of the remaining 8 image fragments are repeated. , 5, 3, 9, 7, 6, 8' can be extracted.

그러고 나서, 문서 이미지 복원부(122)는 상기 3 x 3개의 이미지 조각들 각각에 삽입된 순번인 '4, 2, 5, 1, 3, 9, 7, 6, 8'에 대한 데이터를 기초로, 상기 3 x 3개의 이미지 조각들 각각에 삽입된 순번인 '4, 2, 5, 1, 3, 9, 7, 6, 8'을 확인한 후 상기 확인된 순번인 '4, 2, 5, 1, 3, 9, 7, 6, 8'의 오름차순에 따라, 상기 3 x 3개의 이미지 조각들 각각을 재배치함으로써, 스크램블링된 문서 이미지(430)를 스크램블링 전의 문서 이미지로 복원할 수 있다.Then, the document image restoration unit 122 is based on the data for '4, 2, 5, 1, 3, 9, 7, 6, 8', which is the sequence number inserted into each of the 3 x 3 image fragments. , after checking the sequence number '4, 2, 5, 1, 3, 9, 7, 6, 8' inserted into each of the 3 x 3 image pieces, the confirmed sequence number '4, 2, 5, 1 , 3, 9, 7, 6, 8', by rearranging each of the 3 x 3 image pieces according to the ascending order, the scrambled document image 430 may be restored to the document image before scrambling.

결국, 본 발명에 따른 전자 장치(110)는 스캔된 문서 이미지를 저장할 때, 제3자가 문서의 내용을 쉽게 확인할 수 없도록, 문서 이미지를 스크램블링 처리하여 저장함으로써, 문서 보관에 있어서의 보안성을 강화할 수 있다.After all, when the electronic device 110 according to the present invention stores the scanned document image, the document image is scrambling and stored so that a third party cannot easily check the contents of the document, thereby enhancing security in document storage. can

도 6은 본 발명의 일실시예에 따른 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법을 도시한 순서도이다.6 is a flowchart illustrating a method of operating an electronic device capable of correcting a scanned image of a document according to an embodiment of the present invention.

단계(S610)에서는 미리 정해진 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있는 문서 틀 이미지 저장부를 유지한다.In step S610, a document frame image storage unit in which a plurality of predetermined document size information and a predetermined rectangular document frame image corresponding to each of the plurality of document size information are stored is maintained.

단계(S620)에서는 사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출한다.In step S620, when a correction command for a first scanned image generated by scanning a first document is applied from a user, and first document size information corresponding to the first document is input, the first document size information corresponding to the first document is inputted from the first scanned image. Only the first document area, which is an area in which the first document exists, is detected.

단계(S630)에서는 상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출한다.In step S630, an inclination angle representing the degree of inclination with the horizontal axis is calculated based on the two-dimensional coordinate value of the uppermost left point of the first document area and the two-dimensional coordinate value of the uppermost right point.

단계(S640)에서는 상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성한다.In step S640, based on the calculated tilt angle, the first document area is tilted to be horizontal with respect to the horizontal axis, thereby generating a document image composed of only the first document area tilted to be horizontal with respect to the horizontal axis. do.

단계(S650)에서는 상기 문서 이미지가 생성되면, 상기 문서 틀 이미지 저장부로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출한다.In step S650, when the document image is generated, a first document frame image corresponding to the first document size information is extracted from the document frame image storage unit.

단계(S660)에서는 상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시킨다.In step S660, the center point of the document image is matched with the center point of the first document frame image.

단계(S670)에서는 상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료한다.In step S670, when the center point of the document image matches the center point of the first document frame image, by adjusting the size of the document image to match the size of the first document frame image, Complete the calibration work.

이때, 본 발명의 일실시예에 따르면, 단계(S620)에서는 상기 제1 스캔 이미지의 최외곽 테두리를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 단계, 상기 제1 스캔 이미지의 최외곽 테두리에 대하여, 최외곽 테두리를 구성하는 화소들의 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 연산한 후 상기 연산된 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 성분으로 하는 3차원의 기준 벡터를 생성하는 단계, 상기 제1 스캔 이미지를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 단계, 상기 복수의 화소들 각각에 대해, 각 화소의 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 하는 3차원의 특징 벡터를 구성함으로써, 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터를 생성하는 단계 및 상기 3차원의 기준 벡터와 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터 간의 유클리드 거리를 연산한 후 상기 복수의 화소들 중 상기 연산된 유클리드 거리가 미리 정해진 기준치 이내인 것으로 확인되는 특징 벡터를 갖는 화소들을 모두 제거함으로써, 상기 제1 문서 영역을 검출하는 단계를 포함할 수 있다.At this time, according to an embodiment of the present invention, in step S620, extracting RGB values for a plurality of pixels constituting the outermost edge of the first scanned image, the outermost edge of the first scanned image , after calculating the average of the red color values, the average of the green color values, and the average of the blue color values of the pixels constituting the outermost edge, the calculated average of the red color values, the average of the green color values, and the blue color value generating a three-dimensional reference vector using the average of generating a three-dimensional feature vector corresponding to each of the plurality of pixels by constructing a three-dimensional feature vector having a color value, a green color value, and a blue color value as components; and the three-dimensional reference vector and the After calculating the Euclidean distance between the three-dimensional feature vectors corresponding to each of a plurality of pixels, all pixels having a feature vector confirmed that the calculated Euclidean distance is within a predetermined reference value are removed from among the plurality of pixels, and detecting the first document area.

또한, 본 발명의 일실시예에 따르면, 상기 전자 장치의 동작 방법은 상기 제1 스캔 이미지에 대한 보정 작업이 완료된 후 상기 사용자로부터 상기 제1 문서에 대한 저장 명령이 인가되면, 상기 문서 이미지를 가로 n(n은 2이상의 자연수임)개와 세로 n개로 구성된 n x n개의 이미지 조각들로 분할하고, 상기 n x n개의 이미지 조각들을 랜덤하게 섞음으로써, 스크램블링된 문서 이미지를 생성한 후 상기 스크램블링된 문서 이미지를 문서 이미지 저장소에 저장하는 단계를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, in the method of operating the electronic device, when a storage command for the first document is applied from the user after the correction operation for the first scanned image is completed, the document image is horizontally A scrambled document image is generated by dividing n (n is a natural number greater than or equal to 2) into nxn image fragments composed of n and n vertical image fragments, and randomly mixing the nxn image fragments. It may further include the step of storing in the storage.

이때, 본 발명의 일실시예에 따르면, 상기 문서 이미지 저장소에 저장하는 단계는 상기 n x n개의 이미지 조각들 각각에 대해 위치에 따른 순번(상기 순번은 k(k는 3이상의 자연수임)비트의 데이터로 구성됨)을 할당하는 단계, 상기 n x n개의 이미지 조각들 각각에 대해 할당된 순번에 대한 k비트의 데이터의 비트열을 확인하는 단계 및 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 k개의 화소들의 RGB 값 중 미리 정해진 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 각 이미지 조각에 할당된 순번에 대한 k비트의 데이터의 비트열로 치환함으로써, 상기 n x n개의 이미지 조각들 각각에 각 이미지 조각에 할당된 순번에 대한 데이터를 은닉하는 단계를 포함할 수 있다.At this time, according to an embodiment of the present invention, the step of storing the document image storage in the sequence number according to the location for each of the nxn image pieces (the sequence number is k (k is a natural number equal to or greater than 3) bit data. configured), checking a bit string of k-bit data for an assigned sequence number for each of the nxn image fragments, and, for each of the nxn image fragments, from the uppermost left point to the right The k pixels are sequentially extracted, and the bit string composed of the last k bit values in the bit string of the data constituting the first color value predetermined among the RGB values of the k pixels extracted from each image piece is converted into each image piece. By substituting a bit string of k-bit data for the order number assigned to , hiding data about the order number assigned to each image piece in each of the nxn image pieces.

이때, 본 발명의 일실시예에 따르면, 상기 전자 장치의 동작 방법은 상기 스크램블링된 문서 이미지가 상기 문서 이미지 저장소에 저장된 이후, 상기 사용자로부터 상기 제1 문서에 대한 표시 명령이 인가되면, 상기 스크램블링된 문서 이미지를 화면 상에 표시하는 단계, 상기 사용자로부터 상기 스크램블링된 문서 이미지에 대한 원본 이미지로의 복원 명령이 인가되면, 상기 사용자에게 문서의 복원을 위한 사전 설정된 비밀번호를 입력하도록 요청하는 안내 메시지를 상기 화면 상에 표시하는 단계, 상기 안내 메시지가 표시된 이후, 미리 정해진 대기시간 이내에 상기 사용자로부터 상기 비밀번호가 수신되면, 상기 스크램블링된 문서 이미지를 구성하는 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 상기 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 상기 k개의 화소들의 RGB 값 중 상기 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 확인함으로써, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 추출하는 단계 및 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 기초로, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번을 확인한 후 상기 확인된 순번에 따라, 상기 n x n개의 이미지 조각들 각각을 재배치함으로써, 상기 스크램블링된 문서 이미지를 스크램블링 전의 문서 이미지로 복원하는 단계를 더 포함할 수 있다.In this case, according to an embodiment of the present invention, in the method of operating the electronic device, when a display command for the first document is applied from the user after the scrambled document image is stored in the document image storage, the scrambled document image is stored in the document image storage. Displaying a document image on a screen, when a restoration command to the original image for the scrambled document image is applied from the user, a guide message requesting the user to input a preset password for restoration of the document When the password is received from the user within a predetermined waiting time after the display on the screen, the guidance message is displayed, for each of the nxn image fragments constituting the scrambled document image, at the uppermost left point A bit stream composed of the last k bit values in the bit string of data constituting the first color value among the RGB values of the k pixels extracted from each image fragment by extracting the k pixels in order in the right direction extracting data on the order number inserted into each of the nxn image pieces by identifying The method may further include reconstructing the scrambled document image to a document image before scrambling by relocating each of the nxn image pieces according to the confirmed order after confirming the order number.

이상, 도 6을 참조하여 본 발명의 일실시예에 따른 전자 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 전자 장치의 동작 방법은 도 1 내지 도 5를 이용하여 설명한 전자 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, a method of operating an electronic device according to an embodiment of the present invention has been described with reference to FIG. 6 . Here, since the method of operating the electronic device according to an embodiment of the present invention may correspond to the configuration of the operation of the electronic device 110 described with reference to FIGS. 1 to 5 , a more detailed description thereof will be omitted. do.

본 발명의 일실시예에 따른 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.The method of operating an electronic device according to an embodiment of the present invention may be implemented as a computer program stored in a storage medium for execution through combination with a computer.

또한, 본 발명의 일실시예에 따른 전자 장치의 동작 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. In addition, the method of operating an electronic device according to an embodiment of the present invention may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be known and available to those skilled in the art of computer software. Examples of the computer-readable recording medium include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic such as floppy disks. - includes magneto-optical media, and hardware devices specially configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described with specific matters such as specific components and limited embodiments and drawings, but these are only provided to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , various modifications and variations are possible from these descriptions by those of ordinary skill in the art to which the present invention pertains.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and not only the claims to be described later, but also all those with equivalent or equivalent modifications to the claims will be said to belong to the scope of the spirit of the present invention. .

110: 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치
111: 문서 틀 이미지 저장부 112: 문서 영역 검출부
113: 기울기 각도 산출부 114: 문서 이미지 생성부
115: 문서 틀 이미지 추출부 116: 중심점 매칭부
117: 크기 조정부 118: 문서 이미지 저장 처리부
119: 표시부 120: 안내 메시지 표시부
121: 순번 추출부 122: 문서 이미지 복원부
123: 제1 화소 값 추출부 124: 기준 벡터 생성부
125: 제2 화소 값 추출부 126: 특징 벡터 생성부
127: 검출부 128: 순번 할당부
129: 비트열 확인부 130: 순번 은닉부
110: Electronic device capable of correcting the scanned image of a document
111: document frame image storage unit 112: document area detection unit
113: tilt angle calculator 114: document image generator
115: document frame image extraction unit 116: center point matching unit
117: resizing unit 118: document image storage processing unit
119: display unit 120: information message display unit
121: sequence number extraction unit 122: document image restoration unit
123: first pixel value extraction unit 124: reference vector generation unit
125: second pixel value extraction unit 126: feature vector generation unit
127: detection unit 128: sequence number assignment unit
129: bit string confirmation unit 130: sequence number hiding unit

Claims (12)

문서의 스캔 이미지에 대한 보정이 가능한 전자 장치에 있어서,
미리 정해진(predetermined) 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있는 문서 틀 이미지 저장부;
사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출하는 문서 영역 검출부;
상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출하는 기울기 각도 산출부;
상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성하는 문서 이미지 생성부;
상기 문서 이미지가 생성되면, 상기 문서 틀 이미지 저장부로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출하는 문서 틀 이미지 추출부;
상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시키는 중심점 매칭부; 및
상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료하는 크기 조정부
를 포함하고,
상기 문서 영역 검출부는
상기 제1 스캔 이미지의 최외곽 테두리를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 제1 화소 값 추출부;
상기 제1 스캔 이미지의 최외곽 테두리에 대하여, 최외곽 테두리를 구성하는 화소들의 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 연산한 후 상기 연산된 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 성분으로 하는 3차원의 기준 벡터를 생성하는 기준 벡터 생성부;
상기 제1 스캔 이미지를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 제2 화소 값 추출부;
상기 복수의 화소들 각각에 대해, 각 화소의 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 하는 3차원의 특징 벡터를 구성함으로써, 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터를 생성하는 특징 벡터 생성부; 및
상기 3차원의 기준 벡터와 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터 간의 유클리드 거리(Euclidean Distance)를 연산한 후 상기 복수의 화소들 중 상기 연산된 유클리드 거리가 미리 정해진 기준치 이내인 것으로 확인되는 특징 벡터를 갖는 화소들을 모두 제거함으로써, 상기 제1 문서 영역을 검출하는 검출부
를 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치.
An electronic device capable of correcting a scanned image of a document, the electronic device comprising:
a document frame image storage unit storing a plurality of predetermined document size information and a predetermined rectangular document frame image corresponding to each of the plurality of document size information;
When first document size information corresponding to the first document is input while a correction command for the first scanned image generated by scanning the first document is applied from the user, the first document exists from the first scanned image a document area detection unit that detects only a first document area that is an area to be used;
a tilt angle calculator for calculating a tilt angle representing a degree of tilt with respect to the horizontal axis based on the two-dimensional coordinate value of the uppermost left point of the first document area and the two-dimensional coordinate value of the uppermost right point;
Based on the calculated tilt angle, by tilting the first document area to be horizontal with respect to the horizontal axis, a document image generating unit generating a document image including only the first document area tilted to be horizontal with respect to the horizontal axis ;
a document frame image extraction unit for extracting a first document frame image corresponding to the first document size information from the document frame image storage unit when the document image is generated;
a center point matching unit for matching the center point of the document image to the center point of the first document frame image; and
When the center point of the document image matches the center point of the first document frame image, by adjusting the size of the document image to match the size of the first document frame image, the correction operation for the first scanned image is completed. size adjuster
including,
The document area detection unit
a first pixel value extraction unit for extracting RGB values for a plurality of pixels constituting an outermost edge of the first scan image;
With respect to the outermost edge of the first scanned image, the average of the red color values, the average of the green color values, and the average of the blue color values of pixels constituting the outermost edge are calculated, and then the average of the calculated red color values; a reference vector generator for generating a three-dimensional reference vector using the average of the green color values and the average of the blue color values as components;
a second pixel value extraction unit for extracting RGB values for a plurality of pixels constituting the first scan image;
For each of the plurality of pixels, a three-dimensional feature vector corresponding to each of the plurality of pixels is formed by constructing a three-dimensional feature vector including a red color value, a green color value, and a blue color value of each pixel. a feature vector generator that generates and
After calculating the Euclidean distance between the three-dimensional reference vector and the three-dimensional feature vector corresponding to each of the plurality of pixels, the calculated Euclidean distance among the plurality of pixels is within a predetermined reference value A detection unit that detects the first document area by removing all pixels having the identified feature vector
An electronic device capable of correcting a scanned image of a document containing
삭제delete 제1항에 있어서,
상기 제1 스캔 이미지에 대한 보정 작업이 완료된 후 상기 사용자로부터 상기 제1 문서에 대한 저장 명령이 인가되면, 상기 문서 이미지를 가로 n(n은 2이상의 자연수임)개와 세로 n개로 구성된 n x n개의 이미지 조각들로 분할하고, 상기 n x n개의 이미지 조각들을 랜덤하게 섞음으로써, 스크램블링(Scrambling)된 문서 이미지를 생성한 후 상기 스크램블링된 문서 이미지를 문서 이미지 저장소에 저장하는 문서 이미지 저장 처리부
를 더 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치.
According to claim 1,
When a save command for the first document is applied from the user after the correction operation for the first scanned image is completed, n x n image fragments composed of n horizontally (n is a natural number greater than or equal to 2) and n vertical pieces of the document image A document image storage processing unit for generating a scrambled document image by dividing the scrambled document image into scrambled documents and randomly mixing the nxn image fragments, and then storing the scrambled document image in a document image storage
An electronic device capable of correcting a scanned image of a document further comprising a.
제3항에 있어서,
상기 문서 이미지 저장 처리부는
상기 n x n개의 이미지 조각들 각각에 대해 위치에 따른 순번 - 상기 순번은 k(k는 3이상의 자연수임)비트의 데이터로 구성됨 - 을 할당하는 순번 할당부;
상기 n x n개의 이미지 조각들 각각에 대해 할당된 순번에 대한 k비트의 데이터의 비트열을 확인하는 비트열 확인부; 및
상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 k개의 화소들의 RGB 값 중 미리 정해진 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 각 이미지 조각에 할당된 순번에 대한 k비트의 데이터의 비트열로 치환함으로써, 상기 n x n개의 이미지 조각들 각각에 각 이미지 조각에 할당된 순번에 대한 데이터를 은닉하는 순번 은닉부
를 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치.
4. The method of claim 3,
The document image storage processing unit
a sequence number allocating unit for allocating an order number according to a location to each of the nxn image pieces, the order number being k (k is a natural number equal to or greater than 3) bit data;
a bit string check unit for checking a bit string of k-bit data with respect to an assigned sequence number for each of the nxn image pieces; and
For each of the nxn image pieces, k pixels are sequentially extracted from the uppermost left point to the right direction, and data constituting a predetermined first color value among the RGB values of the k pixels extracted from each image piece. By replacing the bit string composed of the last k bit values in the bit string with the bit string of k-bit data for the sequence number assigned to each image piece, the sequence number assigned to each image piece for each of the nxn image pieces A sequence number hiding part that hides the data for
An electronic device capable of correcting a scanned image of a document containing
제4항에 있어서,
상기 문서 이미지 저장 처리부에 의해 상기 스크램블링된 문서 이미지가 상기 문서 이미지 저장소에 저장된 이후, 상기 사용자로부터 상기 제1 문서에 대한 표시 명령이 인가되면, 상기 스크램블링된 문서 이미지를 화면 상에 표시하는 표시부;
상기 사용자로부터 상기 스크램블링된 문서 이미지에 대한 원본 이미지로의 복원 명령이 인가되면, 상기 사용자에게 문서의 복원을 위한 사전 설정된 비밀번호를 입력하도록 요청하는 안내 메시지를 상기 화면 상에 표시하는 안내 메시지 표시부;
상기 안내 메시지가 표시된 이후, 미리 정해진 대기시간 이내에 상기 사용자로부터 상기 비밀번호가 수신되면, 상기 스크램블링된 문서 이미지를 구성하는 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 상기 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 상기 k개의 화소들의 RGB 값 중 상기 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 확인함으로써, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 추출하는 순번 추출부; 및
상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 기초로, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번을 확인한 후 상기 확인된 순번에 따라, 상기 n x n개의 이미지 조각들 각각을 재배치함으로써, 상기 스크램블링된 문서 이미지를 스크램블링 전의 문서 이미지로 복원하는 문서 이미지 복원부
를 더 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치.
5. The method of claim 4,
a display unit for displaying the scrambled document image on a screen when a display command for the first document is applied from the user after the scrambled document image is stored in the document image storage by the document image storage processing unit;
a guide message display unit for displaying on the screen a guide message requesting the user to input a preset password for restoring the document when a command to restore the original image for the scrambled document image is applied from the user;
If the password is received from the user within a predetermined waiting time after the guidance message is displayed, for each of the nxn image pieces constituting the scrambled document image, the k By extracting pixels and identifying a bit string composed of the last k bit values in the bit string of data constituting the first color value among the RGB values of the k pixels extracted from each image fragment, the nxn a sequence number extracting unit for extracting data for a sequence number inserted into each of the image pieces; and
Based on the data on the order number inserted into each of the nxn image pieces, after confirming the order number inserted into each of the nxn image pieces, according to the confirmed order, by rearranging each of the nxn image pieces, A document image restoration unit that restores the scrambled document image to a document image before scrambling
An electronic device capable of correcting a scanned image of a document further comprising a.
문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법에 있어서,
미리 정해진(predetermined) 복수의 문서 크기 정보들과 상기 복수의 문서 크기 정보들 각각에 대응되는 미리 정해진 사각 형상의 문서 틀 이미지가 대응되어 저장되어 있는 문서 틀 이미지 저장부를 유지하는 단계;
사용자로부터 제1 문서가 스캔되어 생성된 제1 스캔 이미지에 대한 보정 명령이 인가되면서, 상기 제1 문서에 대응되는 제1 문서 크기 정보가 입력되면, 상기 제1 스캔 이미지로부터 상기 제1 문서가 존재하는 영역인 제1 문서 영역만을 검출하는 단계;
상기 제1 문서 영역의 최상단 좌측 지점의 2차원 좌표 값과 최상단 우측 지점의 2차원 좌표 값을 기초로 가로축과의 기울기 정도를 표상하는 기울기 각도를 산출하는 단계;
상기 산출된 기울기 각도를 기초로, 상기 제1 문서 영역을 상기 가로축에 대해 수평이 되도록 기울임으로써, 상기 가로축에 대해 수평이 되도록 기울여진 상기 제1 문서 영역만으로 구성된 문서 이미지를 생성하는 단계;
상기 문서 이미지가 생성되면, 상기 문서 틀 이미지 저장부로부터 상기 제1 문서 크기 정보에 대응하는 제1 문서 틀 이미지를 추출하는 단계;
상기 문서 이미지의 중심점을 상기 제1 문서 틀 이미지의 중심점에 매칭시키는 단계; 및
상기 문서 이미지의 중심점이 상기 제1 문서 틀 이미지의 중심점에 매칭되면, 상기 문서 이미지의 크기를 상기 제1 문서 틀 이미지의 크기에 일치되도록 조정함으로써, 상기 제1 스캔 이미지에 대한 보정 작업을 완료하는 단계
를 포함하고,
상기 검출하는 단계는
상기 제1 스캔 이미지의 최외곽 테두리를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 단계;
상기 제1 스캔 이미지의 최외곽 테두리에 대하여, 최외곽 테두리를 구성하는 화소들의 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 연산한 후 상기 연산된 Red 색상 값의 평균, Green 색상 값의 평균 및 Blue 색상 값의 평균을 성분으로 하는 3차원의 기준 벡터를 생성하는 단계;
상기 제1 스캔 이미지를 구성하는 복수의 화소들에 대한 RGB 값을 추출하는 단계;
상기 복수의 화소들 각각에 대해, 각 화소의 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 하는 3차원의 특징 벡터를 구성함으로써, 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터를 생성하는 단계; 및
상기 3차원의 기준 벡터와 상기 복수의 화소들 각각에 대응되는 3차원의 특징 벡터 간의 유클리드 거리(Euclidean Distance)를 연산한 후 상기 복수의 화소들 중 상기 연산된 유클리드 거리가 미리 정해진 기준치 이내인 것으로 확인되는 특징 벡터를 갖는 화소들을 모두 제거함으로써, 상기 제1 문서 영역을 검출하는 단계
를 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법.
A method of operating an electronic device capable of correcting a scanned image of a document, the method comprising:
maintaining a document frame image storage unit in which a plurality of predetermined document size information and a predetermined rectangular document frame image corresponding to each of the plurality of document size information are stored in correspondence;
When first document size information corresponding to the first document is input while a correction command for the first scanned image generated by scanning the first document is applied from the user, the first document exists from the first scanned image detecting only a first document area, which is an area to be used;
calculating an inclination angle representing a degree of inclination with the horizontal axis based on the two-dimensional coordinate value of the uppermost left point of the first document area and the two-dimensional coordinate value of the uppermost right point;
generating a document image including only the first document area tilted to be horizontal with respect to the horizontal axis by tilting the first document area to be horizontal with respect to the horizontal axis based on the calculated tilt angle;
when the document image is generated, extracting a first document frame image corresponding to the first document size information from the document frame image storage unit;
matching a center point of the document image to a center point of the first document frame image; and
When the center point of the document image matches the center point of the first document frame image, by adjusting the size of the document image to match the size of the first document frame image, the correction operation for the first scanned image is completed. step
including,
The detecting step
extracting RGB values for a plurality of pixels constituting an outermost edge of the first scan image;
With respect to the outermost edge of the first scanned image, the average of the red color values, the average of the green color values, and the average of the blue color values of pixels constituting the outermost edge are calculated, and then the average of the calculated red color values; generating a three-dimensional reference vector using the average of the green color values and the average of the blue color values as components;
extracting RGB values for a plurality of pixels constituting the first scan image;
For each of the plurality of pixels, a three-dimensional feature vector corresponding to each of the plurality of pixels is formed by constructing a three-dimensional feature vector including a red color value, a green color value, and a blue color value of each pixel. creating a; and
After calculating the Euclidean distance between the three-dimensional reference vector and the three-dimensional feature vector corresponding to each of the plurality of pixels, the calculated Euclidean distance among the plurality of pixels is within a predetermined reference value detecting the first document area by removing all pixels having the identified feature vector;
An operating method of an electronic device capable of correcting a scanned image of a document comprising a.
삭제delete 제6항에 있어서,
상기 제1 스캔 이미지에 대한 보정 작업이 완료된 후 상기 사용자로부터 상기 제1 문서에 대한 저장 명령이 인가되면, 상기 문서 이미지를 가로 n(n은 2이상의 자연수임)개와 세로 n개로 구성된 n x n개의 이미지 조각들로 분할하고, 상기 n x n개의 이미지 조각들을 랜덤하게 섞음으로써, 스크램블링(Scrambling)된 문서 이미지를 생성한 후 상기 스크램블링된 문서 이미지를 문서 이미지 저장소에 저장하는 단계
를 더 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법.
7. The method of claim 6,
When a save command for the first document is applied from the user after the correction operation for the first scanned image is completed, n x n image fragments composed of n horizontally (n is a natural number greater than or equal to 2) and n vertical pieces of the document image Storing the scrambled document image in a document image storage after generating a scrambled document image by dividing the
A method of operating an electronic device capable of correcting a scanned image of a document further comprising a.
제8항에 있어서,
상기 문서 이미지 저장소에 저장하는 단계는
상기 n x n개의 이미지 조각들 각각에 대해 위치에 따른 순번 - 상기 순번은 k(k는 3이상의 자연수임)비트의 데이터로 구성됨 - 을 할당하는 단계;
상기 n x n개의 이미지 조각들 각각에 대해 할당된 순번에 대한 k비트의 데이터의 비트열을 확인하는 단계; 및
상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 k개의 화소들의 RGB 값 중 미리 정해진 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 각 이미지 조각에 할당된 순번에 대한 k비트의 데이터의 비트열로 치환함으로써, 상기 n x n개의 이미지 조각들 각각에 각 이미지 조각에 할당된 순번에 대한 데이터를 은닉하는 단계
를 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법.
9. The method of claim 8,
The step of storing the document image storage is
allocating an order number according to a location to each of the nxn image pieces, the order number being k (k is a natural number of 3 or more) bits of data;
checking a bit stream of k-bit data with respect to an order number assigned to each of the nxn image fragments; and
For each of the nxn image pieces, k pixels are sequentially extracted from the uppermost left point to the right direction, and data constituting a predetermined first color value among the RGB values of the k pixels extracted from each image piece. By replacing the bit string composed of the last k bit values in the bit string with the bit string of k-bit data for the sequence number assigned to each image piece, the sequence number assigned to each image piece for each of the nxn image pieces Steps to hide data about
An operating method of an electronic device capable of correcting a scanned image of a document comprising a.
제9항에 있어서,
상기 스크램블링된 문서 이미지가 상기 문서 이미지 저장소에 저장된 이후, 상기 사용자로부터 상기 제1 문서에 대한 표시 명령이 인가되면, 상기 스크램블링된 문서 이미지를 화면 상에 표시하는 단계;
상기 사용자로부터 상기 스크램블링된 문서 이미지에 대한 원본 이미지로의 복원 명령이 인가되면, 상기 사용자에게 문서의 복원을 위한 사전 설정된 비밀번호를 입력하도록 요청하는 안내 메시지를 상기 화면 상에 표시하는 단계;
상기 안내 메시지가 표시된 이후, 미리 정해진 대기시간 이내에 상기 사용자로부터 상기 비밀번호가 수신되면, 상기 스크램블링된 문서 이미지를 구성하는 상기 n x n개의 이미지 조각들 각각에 대해, 최상단 좌측지점에서 우측 방향으로 순서대로 상기 k개의 화소들을 추출하고, 각 이미지 조각에서 추출된 상기 k개의 화소들의 RGB 값 중 상기 제1 색상 값을 구성하는 데이터의 비트열에서 마지막 k개의 비트 값들로 구성되는 비트열을 확인함으로써, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 추출하는 단계; 및
상기 n x n개의 이미지 조각들 각각에 삽입된 순번에 대한 데이터를 기초로, 상기 n x n개의 이미지 조각들 각각에 삽입된 순번을 확인한 후 상기 확인된 순번에 따라, 상기 n x n개의 이미지 조각들 각각을 재배치함으로써, 상기 스크램블링된 문서 이미지를 스크램블링 전의 문서 이미지로 복원하는 단계
를 더 포함하는 문서의 스캔 이미지에 대한 보정이 가능한 전자 장치의 동작 방법.
10. The method of claim 9,
displaying the scrambled document image on a screen when a display command for the first document is applied from the user after the scrambled document image is stored in the document image storage;
displaying a guide message requesting the user to input a preset password for document restoration on the screen when a restoration command for the original image for the scrambled document image is applied from the user;
If the password is received from the user within a predetermined waiting time after the guidance message is displayed, for each of the nxn image pieces constituting the scrambled document image, the k By extracting pixels and identifying a bit string composed of the last k bit values in the bit string of data constituting the first color value among the RGB values of the k pixels extracted from each image fragment, the nxn extracting data on a sequence number inserted into each of the image pieces; and
Based on the data on the order number inserted into each of the nxn image pieces, after confirming the order number inserted into each of the nxn image pieces, according to the confirmed order, by rearranging each of the nxn image pieces, Restoring the scrambled document image to a document image before scrambling
A method of operating an electronic device capable of correcting a scanned image of a document further comprising a.
제6항, 제8항, 제9항 또는 제10항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium recording a computer program for executing the method of any one of claims 6, 8, 9 or 10 through combination with a computer. 제6항, 제8항, 제9항 또는 제10항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of any one of claims 6, 8, 9 or 10 in combination with a computer.
KR1020200059684A 2020-05-19 2020-05-19 Electronic device capable of correcting scanned image of document and operating method thereof KR102284781B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200059684A KR102284781B1 (en) 2020-05-19 2020-05-19 Electronic device capable of correcting scanned image of document and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200059684A KR102284781B1 (en) 2020-05-19 2020-05-19 Electronic device capable of correcting scanned image of document and operating method thereof

Publications (1)

Publication Number Publication Date
KR102284781B1 true KR102284781B1 (en) 2021-08-02

Family

ID=77315591

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200059684A KR102284781B1 (en) 2020-05-19 2020-05-19 Electronic device capable of correcting scanned image of document and operating method thereof

Country Status (1)

Country Link
KR (1) KR102284781B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100101141A (en) * 2007-12-12 2010-09-16 쓰리엠 이노베이티브 프로퍼티즈 컴파니 Document verification using dynamic document identification framework
KR101383639B1 (en) * 2013-11-07 2014-04-10 주식회사 알아이 Image block selection based data hiding device and method
KR20180019976A (en) * 2016-08-17 2018-02-27 에스프린팅솔루션 주식회사 Image forming apparatus, scan image correction method of thereof and non-transitory computer readable medium
JP2019057173A (en) * 2017-09-21 2019-04-11 キヤノン株式会社 Information processor, information processing method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100101141A (en) * 2007-12-12 2010-09-16 쓰리엠 이노베이티브 프로퍼티즈 컴파니 Document verification using dynamic document identification framework
KR101383639B1 (en) * 2013-11-07 2014-04-10 주식회사 알아이 Image block selection based data hiding device and method
KR20180019976A (en) * 2016-08-17 2018-02-27 에스프린팅솔루션 주식회사 Image forming apparatus, scan image correction method of thereof and non-transitory computer readable medium
JP2019057173A (en) * 2017-09-21 2019-04-11 キヤノン株式会社 Information processor, information processing method, and program

Similar Documents

Publication Publication Date Title
US7268906B2 (en) Systems and methods for authenticating and verifying documents
US7130445B2 (en) Systems and methods for authenticating and verifying documents
JP3837432B2 (en) Digital image processing method and system
US7536026B2 (en) Image processing apparatus and method
US7231522B2 (en) Information processing apparatus, method for controlling the same, and storage medium
JPWO2004084125A1 (en) Information input / output method using dot pattern
JPH03201866A (en) Decision of picture skew angle from data including data of compressed form
JP2002334327A (en) Improvement regarding capture of document
JP6543764B2 (en) Security authentication method for digital video content and system therefor
US10643097B2 (en) Image processing apparatuses and non-transitory computer readable medium
US9830531B2 (en) Image processing apparatus, image processing method and non-transitory computer readable medium storing image processing program
KR102284781B1 (en) Electronic device capable of correcting scanned image of document and operating method thereof
Villán et al. Tamper-proofing of electronic and printed text documents via robust hashing and data-hiding
US8384917B2 (en) Font reproduction in electronic documents
JP6780271B2 (en) Image processing equipment and image processing program
KR102328047B1 (en) Electronic device that can insert information about the document security level on the document through an image for watermark and operating method thereof
KR102328034B1 (en) Database building device that can build a knowledge database from a table-inserted image and operating method thereof
KR102417817B1 (en) Verification supporting server which supports verification of the stamp image inserted in the electronic document and the operating method thereof
KR102347288B1 (en) Method for embedding and extraction of watermarking data
KR20240053969A (en) Stamp image for preventing forgery providing server, which is able to generate and provide a stamp image for preventing forgery, for verifying whether the stamp image is forged or not, and the operating method thereof
KR102662240B1 (en) Leakage prevention service server which is able to provide service to prevent the leakage of printouts, and the operating method thereof
KR102226706B1 (en) Apparatus for hiding data using multimedia contents in document file and method therefore
KR20230161072A (en) Electronic terminal apparatus equipped with the ui development tool, which is able to provide an automatic ui components creation function through image analysis of a ui design plan, and the operating method thereof
KR102300475B1 (en) Electronic device that can convert a table-inserted image into an electronic document and operating method thereof
KR102328054B1 (en) Electronic device that provides object protection function for maintaining the original data of object embedded in electronic document and operating method thereof

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant