KR102158633B1 - A method for extraction of a registered seal impression from a document - Google Patents

A method for extraction of a registered seal impression from a document Download PDF

Info

Publication number
KR102158633B1
KR102158633B1 KR1020190010571A KR20190010571A KR102158633B1 KR 102158633 B1 KR102158633 B1 KR 102158633B1 KR 1020190010571 A KR1020190010571 A KR 1020190010571A KR 20190010571 A KR20190010571 A KR 20190010571A KR 102158633 B1 KR102158633 B1 KR 102158633B1
Authority
KR
South Korea
Prior art keywords
seal
image
document
value
rgb
Prior art date
Application number
KR1020190010571A
Other languages
Korean (ko)
Other versions
KR20200093289A (en
Inventor
김문형
고혜선
김민욱
Original Assignee
주식회사 인지소프트
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 인지소프트 filed Critical 주식회사 인지소프트
Priority to KR1020190010571A priority Critical patent/KR102158633B1/en
Publication of KR20200093289A publication Critical patent/KR20200093289A/en
Application granted granted Critical
Publication of KR102158633B1 publication Critical patent/KR102158633B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • G06K9/3233
    • G06K9/4652
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition

Abstract

시간 효율적이고 정확한 이미지를 획득할 수 있는 인감사용 서류의 인감이미지 추출 방법에 관해 개시한다. 이를 위해 본 발명은, 컴퓨터와 연결된 인감스캐너를 사용하여 인감도장이 날인된 서류를 스캔하여 RGB 원본 이미지를 컴퓨터로 입력하고, 컴퓨터에서 RGB 원본 이미지를 CMYK 이미지로 변환한 후, 변환된 CMYK 이미지에서 검정색(K)의 임계값을 기준으로 검정색 이미지를 제외시킨 제1 RGB 이미지를 생성하고, 상기 제1 RGB 이미지를 HSV 이미지로 변환하여 상기 변환된 HSV 이미지에서 색상(H) 명도(V)의 임계값을 기준으로 적색영역이 해당하는 이미지만를 포함하는 제2 RGB 이미지를 생성한 후, 마지막으로 상기 제2 RGB 이미지에서 각 픽셀 색상 값에 대한 처리 조건을 적용하여 적색 인감 영역만을 추출한다. Disclosed is a method of extracting a seal image from a document for use in a seal that can obtain time-efficient and accurate images. To this end, the present invention scans a document with a seal stamp using a seal scanner connected to a computer, inputs an RGB original image to a computer, converts the RGB original image to a CMYK image, and then converts the converted CMYK image. The threshold of color (H) brightness (V) in the converted HSV image by generating a first RGB image excluding a black image based on the black (K) threshold, and converting the first RGB image to an HSV image After generating a second RGB image including only the image corresponding to the red region based on the value, finally, only the red seal region is extracted by applying a processing condition for each pixel color value from the second RGB image.

Description

인감 사용 서류의 인감 이미지 추출 방법{A method for extraction of a registered seal impression from a document}A method for extraction of a registered seal impression from a document}

본 발명은 인감 도장을 사용하는 문서의 처리 방법에 관한 것으로, 더욱 상세하게는 인감 도장이 사용된 서류의 내부에 포함된 적색 컬러의 인감 이미지만을 인감 스캐너와 컴퓨터 처리를 사용하여 추출하는 방법에 관한 것이다. The present invention relates to a method of processing a document using a seal stamp, and more particularly, to a method of extracting only a red color seal image included in a document using a seal stamp using a seal scanner and computer processing. will be.

일반적으로 은행과 같은 금융 기관과, 정부기관과 같은 관청은 고객 혹은 주민과의 거래에서 정확성을 기하고, 보안성을 높이기 위해 중요한 서류에 대해 통상적으로 각 개인의 인감도장을 사용한다. 이를 위하여 금융기관이나 정부기관은 고객/주민이 등록한 인감도장의 원본인 인감원장을 확보하여 보관하고 있다. 그리고 고객이 인감도장을 날인한 서류, 예컨대 수표, 어음 및 각종 서류에서 날인된 인감도장과 인감원장에 있는 인감도장을 하나하나 수작업으로 확인하여 인감도장이 날인된 서류를 처리하고 있다. In general, financial institutions such as banks and government offices such as government agencies generally use personal seals for important documents to ensure accuracy and increase security in transactions with customers or residents. To this end, financial institutions or government agencies secure and store the original seal ledger, which is the original seal stamp registered by customers/residents. In addition, documents with a seal stamp are processed by manually checking the seal stamps stamped on the customer's seal stamp, such as checks, drafts and various documents, and the seal stamp on the seal ledger by hand.

한편, 금융거래서 작성시, 일부 스캔된 이미지 내에 워터마크를 삽입하여 그 위조를 방지하는 기술이 사용된 바 있는데, 이에 대해서는 대한민국 공개특허 10-2015-0000150호에 “금융거래서 작성 장치 및 방법”이란 명칭으로 소개된 바 있다.On the other hand, when creating a financial transaction, a technology for preventing counterfeiting by inserting a watermark into a part of the scanned image has been used. For this, in Korean Patent Laid-Open No. 10-2015-0000150, “Financial transaction writing apparatus and method It has been introduced under the name ”.

그러나 종래 기술에 의한 날인된 도장과 인감원장의 인감도장의 확인 방식(이하, '인감대사'라 칭함)은, 모든 서류가 컴퓨터 상에서 전자문서로 처리되고 있는 현재의 금융 업무 처리 상황에 적합하지 않으며, 번거로움과 불편을 야기하고 있다. 따라서, 서류상으로, 예컨대 인감원장이나 당좌수표 등에 사용된 인감의 정확한 이미지를 추출하여 이를 대조할 수 있는 기술이 필요한 실정이다. However, the method of confirming the seal stamp and the seal ledger's seal stamp according to the prior art (hereinafter referred to as'seal ambassador') is not suitable for the current financial business processing situation in which all documents are processed as electronic documents on a computer. , Causing hassle and inconvenience. Therefore, there is a need for a technology capable of comparing the exact image of a seal used on paper, for example, a seal ledger or checking check.

본 발명의 기술적 사상이 이루고자 하는 과제는, 상술한 문제점을 해결하기 위해 컴퓨터나 서버 등에서 운용되는 적색 인감영역 추출 엔진을 사용하여 고유한 방법으로 서류 내에 포함된 인감 이미지만을 추출하여 컴퓨터 파일화 할 수 있는 인감사용 서류의 인감이미지 추출 방법을 제공하는데 있다.The problem to be achieved by the technical idea of the present invention is to obtain a computer file by extracting only the seal image included in the document in a unique method using a red seal area extraction engine operated in a computer or server, etc. It is to provide a method of extracting the seal image of the documents using the seal.

본 발명의 기술적 사상에 의한 인감 사용 서류의 인감 이미지 추출 방법은, 컴퓨터와 연결된 인감스캐너를 사용하여 인감도장이 날인된 서류를 스캔하여 RGB 원본 이미지를 컴퓨터로 입력하는 단계와, 상기 컴퓨터에서 RGB 원본 이미지를 CMYK 이미지로 변환하는 단계와, 상기 변환된 CMYK 이미지에서 검정색(K)의 임계값을 기준으로 검정색 이미지를 제외시킨 제1 RGB 이미지를 생성하는 단계와, 상기 제1 RGB 이미지를 HSV 이미지로 변환하는 단계와, 상기 변환된 HSV 이미지에서 색상(H) 명도(V)의 임계값을 기준으로 적색영역이 해당하는 이미지만를 포함하는 제2 RGB 이미지를 생성하는 단계와, 상기 제2 RGB 이미지에서 각 픽셀 색상 값에 대한 처리 조건을 적용하여 적색 인감 영역만을 추출하는 단계를 구비하는 것을 특징으로 한다.According to the technical idea of the present invention, a method for extracting a seal image from a document using a seal includes the steps of scanning a document with a seal stamp using a seal scanner connected to a computer and inputting an RGB original image to a computer, and the RGB original image from the computer. Converting an image to a CMYK image; generating a first RGB image excluding a black image based on a threshold of black (K) from the converted CMYK image; and converting the first RGB image to an HSV image Converting; generating a second RGB image including only an image corresponding to a red region based on a threshold value of color (H) brightness (V) in the converted HSV image; and in the second RGB image And extracting only a red seal area by applying a processing condition for each pixel color value.

본 발명의 일 실시예에 의하면, 상기 컴퓨터는, 내부의 데이터 저장 공간에 적색인감 영역 추출 엔진을 구비하는 것이 바람직하며, 이때, 상기 적색인감 영역 추출 엔진은, CMYK 컬러 모델부, HSV 컬러 모델부 및 RGB 컬러 모델부를 포함하는 것이 적합하다.According to an embodiment of the present invention, it is preferable that the computer includes a red seal region extraction engine in an internal data storage space, and in this case, the red seal region extraction engine includes a CMYK color model unit and an HSV color model unit. And an RGB color model portion.

또한 본 발명의 일 실시예에 의하면, 상기 검정색(K)의 임계값은, CMYK의 값이 0~1.0의 범위를 가질 때, 0.6~1.0 범위인 것이 적합하고, 상기 색상(H)의 임계값은, 0~30°과 220~360°의 범위인 것이 적합하며, 상기 명도의 임계값은, 명도의 범위가 0~255값을 갖는 경우, 60~255의 범위인 것이 바람직하다.In addition, according to an embodiment of the present invention, the threshold value of black (K) is suitably in the range of 0.6 to 1.0 when the value of CMYK is in the range of 0 to 1.0, and the threshold value of the color (H) Silver is preferably in the range of 0 to 30° and 220 to 360°, and the threshold value of the brightness is preferably in the range of 60 to 255 when the range of brightness has a value of 0 to 255.

한편, 본 발명의 바람직한 실시예에 의하면, 상기 인감 도장이 날인된 서류의 배경이 흰색이 아닌 경우, 상기 각 픽셀 색상값에 대한 처리 조건 중 하나는, 상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때, R 값은 다른 G, B 값보다 크거나, B나 G가 R보다 클 경우, 그 차이가 40을 초과하지 않는 픽셀 이미지만을 추출하는 것이 적합하고, 그리고 R과 B 중 큰 값에 0.6~0.75을 곱한 값은 G보다 큰 픽셀 이미지만을 추출하는 것이 적합하다.On the other hand, according to a preferred embodiment of the present invention, when the background of the document stamped with the seal is not white, one of the processing conditions for the color values of each pixel is a distribution diagram of the RGB color of each pixel. When expressed as, R value is greater than other G and B values, or when B or G is greater than R, it is appropriate to extract only pixel images whose difference does not exceed 40, and the larger of R and B When multiplied by 0.6~0.75, it is appropriate to extract only pixel images larger than G.

이와 함께, 본 발명의 바람직한 실시예에 의하면, 상기 인감도장이 날인된 서류의 배경이 흰색인 경우, 상기 각 픽셀 색상값에 대한 처리 조건 중 하나는, 상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때, B와 G 중 큰 값은 R의 값에 0.7의 곱보다 작은 픽셀 이미지를 추출하는 것이 적합하다. In addition, according to a preferred embodiment of the present invention, when the background of the document on which the seal stamp is stamped is white, one of the processing conditions for the color value of each pixel is the distribution of the RGB color of each pixel as a square. When represented by, it is appropriate to extract a pixel image that is smaller than the product of R and 0.7 for the larger value of B and G.

그리고 상기 인감도장이 날인된 서류의 배경이 흰색인 경우, 상기 각 픽셀 색상값에 대한 처리 조건 중 하나는, 상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때, B 값과 G 값의 차이는 10보다 큰 픽셀 이미지만을 추출하고, B와 G의 값은 R의 값에 0.6~0.7의 곱 보다 작은 픽셀 이미지만을 추출하고, RGB 값 중 가장 작은 값은 R에 0.5~0.6의 곱보다 작은 픽셀 이미지만을 추출하는 것이 적합하다.And when the background of the document on which the seal stamp is stamped is white, one of the processing conditions for the color values of each pixel is, when the distribution of the RGB color of each pixel is represented by a square, the value of B and G The difference is that only pixel images larger than 10 are extracted, the values of B and G are extracted only pixel images that are less than the product of R and 0.6 to 0.7, and the smallest value among RGB values is less than the product of R and 0.5 to 0.6. It is appropriate to extract only the pixel image.

따라서, 상술한 본 발명의 기술적 사상에 의하면, 첫째 RGB 이미지에 대한 CMYK 이미지 변환을 통해, 처음 스캔된 RGB 원본 이미지에서 서류에 가장 많이 사용되는 색상인 검정색 이미지를 제거한 후, RGB 원본 이미지를 계속적으로 처리하다. 이에 따라, 인감원장이나 당좌수표와 같은 인감이 사용된 서류에서 적색 인감 영역을 추출하는 시간을 줄일 수 있어 작업의 시간 효율을 개선할 수 있다.Accordingly, according to the above-described technical idea of the present invention, first, through CMYK image conversion for an RGB image, after removing the black image, which is the color most used for documents, from the first scanned RGB original image, the original RGB image is continuously Dispose of. Accordingly, it is possible to reduce the time to extract the red seal area from a document in which a seal such as a seal ledger or a checking check is used, thereby improving the time efficiency of work.

둘째, 인감이 사용된 서류에서 검정색을 일차적으로 제거한 제 1 RGB 이미지에 대해 HSV 변환을 통해 붉은 계통의 색깔로 예측되는 제 2 RGB 이미지만을 추출하기 때문에 적색 인감 영역을 추출하는 시간을 줄일 수 있다.Second, since only the second RGB image predicted as a red color is extracted from the first RGB image in which black is primarily removed from the document in which the seal is used, it is possible to reduce the time for extracting the red seal region.

셋째, 상기 제 2 RGB 이미지에 대해, 인감도장이 사용된 서류가 흰색인 경우와 흰색이 아닌 경우를 구분하여, 상기 제 2 RGB 이미지의 각 픽셀의 색상값에 대한 세부 처리를 하기 때문에 인감이 사용된 서류에서 더욱 더 정교한 적색 인감 이미지를 컴퓨터 이미지 파일로 추출할 수 있다.Third, with respect to the second RGB image, a seal is used because the document using the seal seal is white and non-white, and detailed processing of the color value of each pixel of the second RGB image is performed. More elaborate red seal images can be extracted from the document into computer image files.

마지막으로 상술한 본 발명에 의하면, 실제 서류에 날인된 인감 이미지를 컴퓨터 이미지 파일 형태로 추출함으로써, 컴퓨터에 의해 인감대사 작업이 가능하기 때문에, 중요 서류 처리시, 사람이 인감원장의 이미지와, 실제 인감이 사용된 서류의 이미지를 눈으로 수동 확인하는 과정에서 발생할 수 있는 사람에 의한 실수를 방지할 수 있는 장점이 있다.Finally, according to the present invention described above, by extracting the seal image imprinted on the actual document in the form of a computer image file, it is possible to perform the seal metabolism by a computer. When processing important documents, a person There is an advantage of preventing human error that may occur in the process of manually checking the image of the document using the seal.

도 1은 본 발명의 바람직한 실시예에 의한 인감사용 서류의 인감이미지 추출 방법을 설명하기 위한 흐름도(flowchart)이다.
도 2는 본 발명의 바람직한 실시예에 따른 인감사용 서류의 인감이미지 추출 방법을 구체적으로 설명하기 위한 흐름도(flowchart)이다.
도 3은 본 발명의 일 실시예에 의한 인감사용 서류의 인감이미지 추출 방법에 적용될 컴퓨터의 적색인감 영역 추출 엔진을 설명하기 위한 블록도다.
도 4는 본 발명에서 사용된 RGB 컬러의 색상, 채도 및 명도를 설명하기 위한 HSV 원뿔 모형이다.
도 5는 본 발명에서 사용될 RGB 컬러의 색상값을 설명하기 위한 띠 모형이다.
도 6은 본 발명의 일 실시예에 따라 제2 RGB 이미지에 각 픽셀 색상값에 대한 처리 조건에 적용되는 RGB 컬러의 분포도를 4각형으로 나타낸 모형이다.
1 is a flowchart illustrating a method of extracting a seal image from a document for use in a seal according to a preferred embodiment of the present invention.
2 is a flowchart for explaining in detail a method of extracting a seal image from a document for use in a seal according to a preferred embodiment of the present invention.
3 is a block diagram illustrating an engine for extracting a red seal region of a computer to be applied to a method for extracting a seal image from a document using a seal according to an embodiment of the present invention.
4 is an HSV cone model for explaining hue, saturation, and brightness of RGB colors used in the present invention.
5 is a band model for describing color values of RGB colors to be used in the present invention.
6 is a model showing a distribution diagram of RGB colors applied to processing conditions for each pixel color value in a second RGB image in a square shape according to an embodiment of the present invention.

본 발명의 구성 및 효과를 충분히 이해하기 위하여, 첨부한 도면을 참조하여 본 발명의 바람직한 실시예들을 설명한다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라, 여러가지 형태로 구현될 수 있고 다양한 변경을 가할 수 있다. 단지, 본 실시예들에 대한 설명은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술 분야의 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위하여 제공되는 것이다. In order to fully understand the configuration and effects of the present invention, preferred embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but may be implemented in various forms and various modifications may be added. However, the description of the embodiments is provided to complete the disclosure of the present invention, and to fully inform the scope of the invention to those of ordinary skill in the art to which the present invention belongs.

이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시예를 설명함으로써 본 발명을 상세히 설명한다. Hereinafter, the present invention will be described in detail by describing a preferred embodiment of the present invention with reference to the accompanying drawings.

도 1은 본 발명의 바람직한 실시예에 의한 인감사용 서류의 인감이미지 추출 방법을 설명하기 위한 흐름도(flowchart)이다.1 is a flowchart illustrating a method of extracting a seal image from a document for use in a seal according to a preferred embodiment of the present invention.

도 1을 참조하면, 본 발명의 개략적인 개념은, 인감도장이 사용되는 서류, 예컨대 도면과 같이 인감 원장(112)이나, 당좌 수표(110)로부터 적색 인감 영역, 즉 인감이미지(140)를 추출하여 컴퓨터 이미지 파일로 만드는 것이다. 이러한 적색의 인감 이미지에 대한 컴퓨터 파일은, 추후 컴퓨터에서 기계적으로 진행되는 자동 인감대사 기능을 통해 인감도장의 진위 여부를 판명할 수 있다.Referring to FIG. 1, the schematic concept of the present invention is to extract a red seal area, that is, a seal image 140, from a document in which a seal seal is used, for example, a seal ledger 112 or checking check 110 as shown in the drawing. To create a computer image file. The computer file for such a red seal image can determine the authenticity of the seal stamp through an automatic seal metabolism function that is mechanically performed on the computer.

상세히 설명하면, 인감 도장이 사용된 서류(110)는 인감 스캐너(120)를 통해 RGB 이미지 파일 형태로 컴퓨터(130)로 입력된다. 그 후, 상기 컴퓨터(130)에서는 내부에 마련된 적색 인감 영역 추출 엔진(도3의 210)을 통해 상기 RGB 이미지 파일을 가공하여 적색 인감 영역인 인감 이미지(140)를 추출하게 된다. 상세한 사항에 대해서는 후속되는 도 2를 참조하여 설명하기로 한다.In detail, the document 110 in which the seal stamp is used is input to the computer 130 in the form of an RGB image file through the seal scanner 120. Thereafter, the computer 130 processes the RGB image file through the red seal region extraction engine (210 of FIG. 3) provided therein to extract the seal image 140, which is a red seal region. Details will be described with reference to FIG. 2 that follows.

도 2는 본 발명의 바람직한 실시예에 따른 인감사용 서류의 인감이미지 추출 방법을 구체적으로 설명하기 위한 흐름도(flowchart)이다.2 is a flowchart for explaining in detail a method of extracting a seal image from a document for use in a seal according to a preferred embodiment of the present invention.

도 2를 참조하면, 먼저 인감 도장이 날인된 서류를 준비(S100)한다. 상기 인감 도장이 날인된 서류는 인감원장, 당좌수표 및 그 외 정부기관의 서류, 금융기관의 서류 등이 될 수도 있다. 이어서 컴퓨터와 신호라인으로 연결된 스캐너인 인감 스캐너를 사용하여 상기 인감도장이 날인된 서류를 스캔(scan)한다. 그 후 상기 스캔된 이미지에서 RGB 원본 이미지를 추출(S110)하여 상기 스캐너와 연결된 컴퓨터로 신호라인을 통해 전송한다. Referring to Figure 2, first prepare a document stamped with a seal (S100). Documents with the above seal stamp may be the ledger of a seal, checking checks and other documents of government agencies, documents of financial institutions, and the like. Subsequently, the document with the seal stamp is scanned using a seal scanner, which is a scanner connected to a computer through a signal line. Thereafter, the original RGB image is extracted from the scanned image (S110) and transmitted to a computer connected to the scanner through a signal line.

일반적으로 RGB 이미지는, 빛의 삼원색을 이용하여 색을 표현하는 방식이다. 빨강(RED), 초록(GREEN), 파랑(BLUE) 세 종류의 광원을 이용하여 색을 혼합하며 색을 섞을수록 밝아지기 때문에 '가산혼합' 이미지라고 한다. 그래서 RGB 이미지, 즉 RGB 컬러 모델은 TV, 컴퓨터 등의 기본 입력 컬러 모델로 사용된다.In general, RGB images are a method of expressing colors using the three primary colors of light. Colors are mixed using three types of light sources: red, green, and blue, and the more the colors are mixed, the brighter it is. So, the RGB image, that is, the RGB color model, is used as a basic input color model for TVs and computers.

계속해서, 상기 컴퓨터의 CMYK 컬러 모델부(도3의 214)는 상기 RGB 원본 이미지를 CMYK 이미지로 변환(S120)한다. 일반적으로 CMYK 이미지는 색을 구현하는 체계 중 하나로서 인쇄와 사진에서의 색 재현에 주로 사용된다. 주로 옵셋 인쇄에 쓰이는 4가지 색을 이용한 잉크 체계에 적용되며, 이때 C는 청녹색(Cyan)을 나타내고, M은 짙은 빨강(Magenta)를 나타내며, Y는 노랑(Yellow)을 나타내며, K는 검정(Black)을 각각 나타낸다. 그러나 CMYK 이미지는 다른 색상 표현 체계인 RGB 이미지, HSV 이미지보다는 표현 가능한 색이 적다. 상기 변환된 CMYK 이미지의 색상 중, 검정색(K)의 임계값을 이용하여 RGB 원본 이미지 중에서 검정색만 선택적으로 제거된 제1 RGB 이미지를 추출(S130)한다. 상기 검정색(K)의 임계값에 대해서는 명도를 설명하는 도 4를 참조하여 설명하기로 한다. Subsequently, the CMYK color model unit of the computer (214 in Fig. 3) converts the RGB original image into a CMYK image (S120). In general, CMYK images are one of the systems that implement color and are mainly used for color reproduction in printing and photographs. It is mainly applied to the ink system using four colors used for offset printing, where C represents cyan, M represents dark red (Magenta), Y represents yellow, and K represents black. ) Respectively. However, CMYK images have fewer colors than other color expression systems such as RGB images and HSV images. Among the colors of the converted CMYK image, a first RGB image in which only black is selectively removed from the original RGB image is extracted using a threshold value of black (K) (S130). The threshold of the black color (K) will be described with reference to FIG. 4 for explaining brightness.

따라서 본 발명에서 CMYK 이미지 변환을 진행하는 이유는, 인감 사용 서류의 이미지 중에서 대부분을 차지하는 검정색을 먼저 제거함으로써, 처리하는 픽셀의 개수를 최소화하여 적색 인감 영역 추출과정에서 시간을 절약하여 작업 효율을 높이기 위함이다. Therefore, the reason for performing CMYK image conversion in the present invention is to minimize the number of pixels to be processed by first removing black, which occupies most of the images of the seal-use document, thereby saving time in the process of extracting the red seal area to increase work efficiency. It is for sake.

한편, RGB 이미지를 CMYK 이미지로 변환하는 변환 방식은, RGB의 색상값이 0~255의 값을 가질 때, 각각의 C, M, Y, K 값을 구하는 것은 수학식으로 공지되어 알려져 있다. 상기 CMYK 변환이 완료되면, 각각의 C, M, Y, K 값은 0.0~1.0의 범위를 갖는다. 그러나 상기 C, M, Y, K 값은 필요에 따라 현장(Field)에서 RGB의 색상값과 비슷한 값을 갖도록 0~255 범위로 변환시켜 표현하기도 한다.Meanwhile, in the conversion method of converting an RGB image to a CMYK image, it is known and known as an equation to obtain each C, M, Y, and K value when the color value of RGB has a value of 0 to 255. When the CMYK conversion is completed, each of the C, M, Y, and K values has a range of 0.0 to 1.0. However, the C, M, Y, and K values may be expressed by converting them into a range of 0 to 255 so as to have a value similar to the color value of RGB in the field as necessary.

계속해서 상기 제1 RGB 이미지를 상기 컴퓨터의 내부에 있는 적색 인감 영역 추출 엔진(210)의 HSV 컬러 모델부(212)에서 HSV 이미지로 변환(S140)한다. 상기 HSV 이미지 역시, 색상을 표현하는 체계 중 하나로서, 색상(hue), 채도(saturation) 및 밝기인 명도(Value)로 각각의 RGB 색상값을 HSV 색상값으로 표현할 수 있다. RGB의 색상값이 0~255의 범위를 가질 때, 각각의 H, S, V값을 구하는 것은 수학식으로 공지되어 알려져 있다.Subsequently, the first RGB image is converted into an HSV image by the HSV color model unit 212 of the red seal region extraction engine 210 inside the computer (S140). The HSV image is also one of the systems expressing hue, and each RGB color value can be expressed as an HSV color value in terms of hue, saturation, and brightness. When the color value of RGB has a range of 0 to 255, it is known and known by equations to obtain each H, S, and V value.

그 후, 상기 변환된 HSV 이미지에서 색상(H), 명도(V)의 임계값을 적용하여 적색 영역이 아닌 이미지를 선택적으로 제거하고, 적색영역으로 예상되는 이미지만으로 구성된 제 2 RGB 이미지를 추출(S150)한다. 상기 색상(H), 명도(V)의 임계값에 대해서는 후속되는 도 4 및 도 5를 참조하여 다시 설명하기로 한다. 따라서 본 발명에 의하면, 검정색을 제거한 제1 RGB 이미지에서 적색 영역이 포함될 것으로 예상되는 이미지만을 추출함으로써, 처리하는 픽셀의 개수를 2차로 최소화하여 적색 인감 영역 추출과정에서 시간을 절약하여 작업 효율을 높일 수 있다.Then, by applying the threshold values of color (H) and brightness (V) from the converted HSV image, an image other than the red region is selectively removed, and a second RGB image composed of only the image expected as the red region is extracted ( S150). The threshold values of the hue (H) and brightness (V) will be described again with reference to FIGS. 4 and 5 that follow. Therefore, according to the present invention, by extracting only the image that is expected to contain the red region from the first RGB image from which black is removed, the number of processed pixels is secondly minimized, thereby saving time in the process of extracting the red seal region, thereby improving work efficiency. I can.

마지막으로 상기 제 2 RGB 이미지의 각 픽셀의 색상값에 대한 처리 조건을 적용하여 정교하며 정확한 인감이미지(도 1의 140)를 추출(S160)하여 인감 사용 서류의 인감 이미지 추출 과정을 완료한다. 상기 각 픽셀의 색상값에 대한 처리 조건에 관해서는 후속되는 도 6을 참조하여 상세히 설명한다.Finally, the process of extracting the seal image of the seal-use document is completed by extracting (S160) an elaborate and accurate seal image (140 in FIG. 1) by applying a processing condition for the color value of each pixel of the second RGB image. The processing conditions for the color values of each pixel will be described in detail with reference to FIG. 6.

도 3은 본 발명의 일 실시예에 의한 인감사용 서류의 인감이미지 추출 방법에 적용될 컴퓨터의 적색 인감 영역 추출 엔진을 설명하기 위한 블록도다.3 is a block diagram illustrating an engine for extracting a red seal area of a computer to be applied to a method for extracting a seal image from a document using a seal according to an embodiment of the present invention.

도 3을 참조하면, 통상적으로 자동인감대사 루틴(200)은, 사용 인감 이미지(도1의 140)를 추출해 올 수 있는 인감스캐너 및 인감원장 이미지가 집합적으로 한 곳에 저장되어 있는 컴퓨터 혹은 서버의 저장 메모리 공간과 함께 작동될 수도 있다. 3, in general, the automatic seal metabolism routine 200 is a computer or server in which a seal scanner and a seal ledger image that can extract a used seal image (140 in FIG. 1) are collectively stored in one place. It can also work with storage memory space.

이때 사용 인감 이미지를 획득하는 개략적인 방법은, 먼저 도 2와 같이 실제 인감이 사용된 서류를 스캔하여 RGB 원본 이미지를 얻고, 검은색 이미지만을 선택적으로 제거하여 RGB로 구성된 제 1 이미지를 얻은 다음, 상기 제 1 이미지에서 적색 영역만을 추출하여 사용 인감 이미지를 얻게 된다. In this case, a schematic method of obtaining the used seal image is to first obtain an RGB original image by scanning a document in which the actual seal is used as shown in FIG. 2, and to obtain a first image composed of RGB by selectively removing only the black image, Only the red area is extracted from the first image to obtain a seal image.

본 발명에 의하면, 스캔된 RGB 원본 이미지가 전송되는 컴퓨터는, 내부에 적색인감 영역추출 엔진(210)과, 각도/위치 추정엔진(220) 및 인감대사 엔진에 해당하는 인감대사부(230)를 포함할 수 있다. 상기 적색인감 영역추출 엔진(210)은, 내부에 마련된 HSV 컬러 모델부(Hue Saturation Value Color Model, 212)에서 색상(Hue), 채도(Saturation) 및 명도(Value )로 어둡지 않은 화소를 추려낸다. 그리고 CMYK 컬러 모델부(214)에서 청녹(Cyan), 보라(Magenta), 노랑(Yellow), 검정(Black) 변환을 진행하여 K의 임계값을 이용하여 검정색을 선별적으로 제거한다. 마지막으로, RGB 컬러 모델부(216)는 적색(Red), 녹색(Green) 및 푸른색(Blue) 화소 중에서 서류의 배경색을 흰색과 흰색이 아닌 경우를 구분하여, 각 픽셀의 RGB 컬러의 분포도를 4각형 모델로 표현하여 처리 조건을 적용함으로써 정교하고 정확한 이미지를 갖는 적색 영역인 사용 인감 이미지만을 추출한다. 이에 따라 인감이 사용된 서류에서 인감도장이 날인된 부분만 정확하게 선별적으로 추출할 수 있게 된다.According to the present invention, the computer to which the scanned RGB original image is transmitted includes a red seal region extraction engine 210, an angle/position estimation engine 220, and a seal metabolism unit 230 corresponding to the seal metabolism engine. Can include. The red seal region extraction engine 210 selects non-dark pixels by hue, saturation, and brightness from the HSV color model 212 provided therein. Then, the CMYK color model unit 214 converts cyan, magenta, yellow, and black to selectively remove black using a threshold value of K. Finally, the RGB color model unit 216 distinguishes between white and non-white background colors of documents among red, green, and blue pixels, and calculates the distribution of RGB colors of each pixel. By expressing it as a quadrangular model and applying processing conditions, only the red seal image, which is a red area with a precise and accurate image, is extracted. Accordingly, it is possible to accurately and selectively extract only the part where the seal is stamped from the document in which the seal is used.

참고로, 도면에서 나머지 각도/위치추정 엔진(220)은, 상기 적색인감 영역추출 엔진(210)에서 추출된 이미지를 이용하여 특징추출 1부(222)에서 윤곽선(contour), 골격(skeleton)의 특징으로부터 선(Line) 정보를 추출한다. 그리고 특징추출 2부(224)는, 선의 길이, 방향 정보 등을 기초로 일정 크기 이상의 긴 선 정보를 추출한다. 마지막으로 각도/위치 추정부(226)에서 지금까지 추출된 이미지가 다른 인감 이미지, 예컨대 인감원장 이미지와 비교될 수 있도록, 가장 높은 일치 라인 수를 가진 추출된 사용인감 이미지의 각도 및 위치를 추정한다.For reference, in the drawing, the remaining angle/position estimation engine 220 uses the image extracted from the red seal region extraction engine 210 to extract a contour and a skeleton in the feature extraction part 1 222. Line information is extracted from features. In addition, the feature extraction second unit 224 extracts long line information of a predetermined size or more based on the length and direction information of the line. Finally, the angle/position estimation unit 226 estimates the angle and position of the extracted seal image with the highest number of matching lines so that the image extracted so far can be compared with other seal images, for example, the seal ledger image. .

상기 인감대사부(230)인 인감대사 엔진의 최적추정 이미지 중첩 디스플레이부(232)는, 각도/위치 추정 엔진(220)에서 추출한 사용인감 이미지와 데이터 베이스에 저장된 인감원장 이미지(400)를 최적 상태로 중첩 표시한다. 그리고 매칭률 출력부 디스플레이부(234)는, 2개의 이미지인 사용인감 이미지와 인감원장 이미지의 매칭률을 피어슨 상관계수로 구하여 출력한다. 마지막으로 실이미지 중첩 디스플레이부(236), 상기 사용인감 이미지와 인감원장 이미지가 중첩된 상태를 모니터 등과 같은 표시 화면에 그대로 표시하는 기능을 수행한다.The best estimate image superimposition display unit 232 of the seal metabolism engine, which is the seal metabolism unit 230, displays the seal image extracted from the angle/position estimation engine 220 and the seal ledger image 400 stored in the database in an optimal state. Overlap with In addition, the matching rate output unit display unit 234 calculates and outputs a matching rate between the two images, the seal image and the ledger image, using the Pearson correlation coefficient. Finally, the real image superimposed display unit 236 performs a function of displaying the superimposed state of the seal image and the ledger image on a display screen such as a monitor as it is.

도 4는 본 발명에서 사용된 RGB 컬러의 색상, 채도 및 명도를 설명하기 위한 HSV 원뿔 모형이고, 도 5는 본 발명에서 사용될 RGB 컬러의 색상값을 설명하기 위한 띠 모형이다. FIG. 4 is an HSV cone model for explaining hue, saturation, and brightness of RGB colors used in the present invention, and FIG. 5 is a band model for describing color values of RGB colors to be used in the present invention.

도 4 및 도 5를 참조하면, 도 4에서 색상(H, 154)은 가시광선 스펙트럼을 고리모양으로 배치한 도 5와 같은 색상환에서 가장 파장이 긴 빨강을 0°로 하였을 때, 상대적인 배치 각도를 의미한다. 이때 색상(H) 값은 0~360°범위를 갖고, 0°와 360°는 같은 색상인 빨강을 가리키고, 중간에 0°부터 360°범위 사이에 색상이 노랑, 녹색, 청녹색, 청색이 배치될 수 있다. 채도(S, 156)는 특정한 색상의 가장 진한 상태를 100%로 하였을 때 각각의 색상에 대한 진함의 정도를 나타낸다. 만약 채도값이 0%이면 무채색을 가리킨다. 그리고 명도(V, 158)는 흰색, 빨강색을 100%, 검은색을 0%로 하였을 때 밝은 정도를 나타낸다. 상기 색상(H) 및 명도(V) 값은 컴퓨터에서 디지털 연산 체계에 쉽게 응용하기 위해 현장(Field)에서 0~255 범위의 값으로 표현하기도 한다.Referring to FIGS. 4 and 5, when the color wheel (H, 154) in FIG. 4 has the longest wavelength red in the color wheel as shown in FIG. 5 in which the visible spectrum is arranged in a ring shape, the relative arrangement angle is it means. At this time, the color (H) value has a range of 0 to 360°, and 0° and 360° refer to the same color, red, and yellow, green, blue green, and blue are arranged between 0° and 360° in the middle. I can. Saturation (S, 156) represents the degree of darkness for each color when the darkest state of a specific color is set to 100%. If the saturation value is 0%, it indicates achromatic color. And brightness (V, 158) indicates the degree of brightness when white and red are set to 100%, and black to 0%. The color (H) and brightness (V) values are sometimes expressed as values ranging from 0 to 255 in a field for easy application to a digital computing system in a computer.

한편, 도 2에서 설명된 제1 RGB 이미지를 추출하는데 사용되는 검정색(K) 임계값은, CMYK의 각각의 값이 0~1.0의 범위를 갖는 경우, 0.6~1.0의 범위인 것이 적합하다. 이에 따라 인감이 사용된 서류에서 검정색 이미지만을 선택적으로 제거할 수 있다. 또한, 제2 RGB 이미지를 추출하기 위한 색상(H)의 임계값은, 색상값(H)을 0~360° 범위로 지정한 경우, 0~30°와 220~360°의 임계값을 적용하여 제1 RGB 이미지로부터 적색 영역(152)에 해당할 수 있는 영역만을 선별적으로 추출할 수 있다. 그리고 제2 RGB 이미지를 추출하기 위한 명도(V)의 임계값은, 명도의 밝기 정도를 0~255값으로 설정하였을 경우, 60~255 범위를 갖도록 하여 제1 RGB 이미지로부터 적색에 해당할 수 있는 영역만을 선별적으로 추출할 수 있다.Meanwhile, the black (K) threshold value used to extract the first RGB image described in FIG. 2 is preferably in the range of 0.6 to 1.0 when each value of CMYK has a range of 0 to 1.0. Accordingly, only the black image can be selectively removed from the document in which the seal is used. In addition, the threshold value of the color (H) for extracting the second RGB image is determined by applying the threshold values of 0 to 30° and 220 to 360° when the color value (H) is specified in the range of 0 to 360°. 1 Only an area that may correspond to the red area 152 may be selectively extracted from the RGB image. And the threshold value of the brightness (V) for extracting the second RGB image is set to have a range of 60 to 255 when the brightness level of brightness is set to a value of 0 to 255, which may correspond to red color from the first RGB image. Only regions can be selectively extracted.

도 6은 본 발명의 일 실시예에 따라 제2 RGB 이미지에 각 픽셀 색상값에 대한 처리 조건에 적용되는 RGB 컬러의 분포도를 4각형으로 나타낸 모형이다.6 is a model showing a distribution diagram of RGB colors applied to processing conditions for each pixel color value in a second RGB image in a square shape according to an embodiment of the present invention.

도 6을 참조하면, 제2 RGB 이미지에 각 픽셀 색상값은 RGB 컬러의 분포도를 4각형으로 표현한 모델(160)에서 각각의 색상(160A~160G)에 대한 좌표(170A~170G)를 도면과 같이 얻을 수 있다. 여기서 본 발명에서 얻고자 하는 적색의 좌표(170F, G)는 (255, 0, 0)의 값을 갖는다. 그리고 노랑, 초록, 시안(청녹), 파랑, 마젠타(짙은 빨강)의 색상(160B~160E) 역시 도면에 도시된 바와 같이 각각의 좌표값(170B~170E)을 갖는다. 이때, 각각 좌표값은 범위는 0~255 값이다.Referring to FIG. 6, each pixel color value in the second RGB image is coordinates (170A-170G) for each color (160A-160G) in the model 160 in which the distribution of RGB colors is represented by a square as shown in the drawing. Can be obtained. Here, the red coordinates 170F and G to be obtained in the present invention have a value of (255, 0, 0). In addition, the colors 160B to 160E of yellow, green, cyan (blue green), blue, and magenta (dark red) also have respective coordinate values 170B to 170E as shown in the drawing. At this time, each coordinate value is in the range of 0 to 255.

한편, 본 발명에 의하면, 제2 RGB 이미지에서 각각의 좌표값(170A~170G)을 이용하여 인감이 사용된 서류의 배경이 흰색이 아닌 경우와, 흰색인 경우를 구별하여 특정 조건으로 재처리하여 적색 인감 영역을 추출한다. 이때, 본 발명은 인감이 사용된 서류에서 인감이미지를 추출하는 것이 정교함을 필요로 하는 중요한 작업이기 때문에, 보다 구체적이고 좁은 범위를 적용하여 작업효율을 높이면서도 정확도가 높은 인감이미지를 추출할 수 있다. On the other hand, according to the present invention, by using each coordinate value (170A~170G) in the second RGB image, the case where the background of the document in which the seal is used is not white and the case where the background is white is reprocessed under a specific condition. Extract the red seal area. At this time, in the present invention, since extracting a seal image from a document in which a seal is used is an important task that requires sophistication, a more specific and narrow range can be applied to increase work efficiency and extract a seal image with high accuracy. .

물론 서류에서 임계값을 적용하여 적색 영역을 추출할 수 있는 다양한 방법이 존재할 수 있다. 그러나 본 발명은 정교하며 정확도 높은 인감 이미지만을 추출하기 위하여 배경색도 구별하고, RGB 이미지에 각 픽셀 색상값을 RGB 컬러의 분포도를 4각형으로 표현한 모델로 만들어서 그 좌표값(170A~170G)을 배경 색상 별 처리 조건에 맞게 추출하여 작업효율을 높이면서도 정확도가 높은 인감이미지를 추출할 수 있다.Of course, there may be various ways to extract the red area by applying a threshold value from the document. However, the present invention distinguishes the background color in order to extract only the elaborate and high-accuracy seal image, and makes the color value of each pixel in the RGB image into a model in which the distribution of the RGB color is expressed in a square shape, and the coordinate values 170A to 170G are used as the background color By extracting according to each processing condition, it is possible to extract a seal image with high accuracy while increasing work efficiency.

구체적으로 설명하면, 상기 인감 도장이 날인된 서류의 배경이 흰색이 아닌 경우, 상기 각 픽셀 색상값에 대한 처리 조건은, 상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때, R 값은 다른 G, B 값보다 크거나, B나 G가 R보다 클 경우, 그 차이가 40을 초과하지 않는 픽셀 이미지만을 추출(제1 조건)한다. 동시에 R과 B 중 큰 값에 0.6~0.75을 곱한 값은 G보다 큰 픽셀 이미지만을 추출(제2 조건)하는 것이 적합하다. 상기 0.6~0.75의 범위는 개발자가 RGB의 분포에 따라 달라지게 설정할 수 있다.Specifically, when the background of the document stamped with the seal stamp is not white, the processing condition for each pixel color value is, when the distribution of RGB colors of each pixel is represented by a square, the R value is If it is greater than other G and B values, or when B or G is greater than R, only a pixel image whose difference does not exceed 40 is extracted (first condition). At the same time, it is appropriate to extract only the pixel image larger than G (the second condition) as a value obtained by multiplying the larger value of R and B by 0.6 to 0.75. The range of 0.6 to 0.75 may be set by a developer to vary according to the distribution of RGB.

이러한 서류의 배경이 흰색이 아닌 경우 처리 조건을 지정하는 이유는 다음과 같다. 상기 제1 조건의 경우, 각 픽셀의 색상값이 적색의 경우, RGB 값 중에서 최대는 R이어야 하나, 배경이 있는 문서의 경우, B나 G가 R보다 조금 더 크더라도 이를 적색으로 인정하기 위함이다. 따라서 실제 인감이 서류에 흐리게 찍힐 경우, 배경색과 겹침이 발생할 수 있어 특정 픽셀이 정확하게 적색으로 표현되지 않는 경우에도 적색 영역으로 포함시켜 추출할 수 있는 장점이 있다. 또한 상기 제2 조건의 경우는 G 값이 큰 경우 파란색이나 회색 색상에 가까운 색일 수 있으므로 G값에 특정 범위를 적용하여 명확하게 붉은 색을 찾기 위함이다.If the background of these documents is not white, the reasons for designating processing conditions are as follows. In the case of the first condition, when the color value of each pixel is red, the maximum of the RGB values must be R, but in the case of a document with a background, it is to be recognized as red even if B or G is slightly larger than R. . Therefore, if the actual seal is blurred on the document, it may overlap with the background color, so even if a specific pixel is not accurately expressed in red, it has the advantage of including it as a red area and extracting it. In addition, in the case of the second condition, when the G value is large, the color may be blue or close to the gray color, so that a specific range is applied to the G value to clearly find red color.

그리고 상기 인감도장이 날인된 서류의 배경이 흰색인 경우, 상기 각 픽셀 색상값에 대한 처리 조건은, 상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때, B 값과 G 값은 R 값에 0.7를 곱한 것 보다 작은 픽셀 이미지만을 추출(조건 3)하고, B와 G의 값은 R의 값에 0.6~0.7의 곱 보다 작은 픽셀 이미지만을 추출(조건 4)하고, RGB 값 중 가장 작은 값은 R에 0.5~0.6의 곱보다 작은 픽셀 이미지만을 추출(조건 5)하고, B값과 G값의 차이는 10보다 큰 픽셀 이미지만을 추출(조건6)하는 것이 적합하다.And when the background of the document stamped with the seal stamp is white, the processing condition for each pixel color value is, when the distribution of the RGB color of each pixel is represented by a square, the B value and the G value are R values. Extracts only pixel images smaller than the multiplied by 0.7 (Condition 3), B and G values extract only pixel images smaller than the product of R and 0.6 to 0.7 (Condition 4), and the smallest value among RGB values It is appropriate to extract only pixel images smaller than the product of R by 0.5 to 0.6 (condition 5), and extract only pixel images with a difference between B and G values greater than 10 (condition 6).

상기 서류의 배경이 흰색인 경우, 상술한 처리 조건을 지정하는 이유는, 조건 5의 경우, 조건 3 내지 4에서 적색 영역으로 판명되어 추출되더라도, 일반적으로 RGB 값이 최대는 R 값이어야 한다. 이러한 조건을 엄격히 적용하기 위함이다. 그리고 조건 6의 경우, B와 G값이 비슷하면 해당 픽셀은 회색에 가깝기 때문에 이러한 픽셀 이미지를 제외시키기 위함이다. 따라서 본 발명은 상술한 조건1 ~ 조건6의 엄격한 처리 조건을 추가로 적용시켜 정확도 높은 인감이미지를 추출할 수 있다.When the background of the document is white, the reason for designating the above-described processing conditions is that in the case of condition 5, even if it is found and extracted as a red area in conditions 3 to 4, in general, the RGB value should be the maximum value of R. This is to strictly apply these conditions. In the case of condition 6, if the B and G values are similar, the pixel is close to gray, so this is to exclude the pixel image. Accordingly, in the present invention, a seal image with high accuracy can be extracted by additionally applying the strict processing conditions of conditions 1 to 6 described above.

상술한 본 발명에 의하면, 정확도 높은 인감이미지를 서류로부터 추출하여, 사람의 수작업에 의한 인감대사 대신에 기계에 의해 치밀하게 프로그램된 방식에 의하여 인감원장 이미지와 사용인감 이미지가 비교되기 때문에, 전자문서 프로그램의 처리 범위를 확장시키고, 인감대사 과정에서 발생할 수 있는 사람에 의한 실수를 미연에 방지할 수 있다.According to the present invention described above, since the seal image with high accuracy is extracted from the document, and the seal ledger image and the used seal image are compared by a method that is precisely programmed by a machine instead of the seal metabolism by human hand, the electronic document It expands the scope of the program and prevents human errors that may occur in the process of seal metabolism.

본 발명은 상기한 실시예에 한정되지 않으며, 본 발명이 속한 기술적 사상 내에서 당 분야의 통상의 지식을 가진 자에 의해 많은 변형이 가능함이 명백하다.It is apparent that the present invention is not limited to the above-described embodiment, and many modifications are possible by those of ordinary skill in the art within the technical idea to which the present invention belongs.

110: 인감 사용 서류, 112: 인감 원장,
114: 당좌 수표, 120: 인감 스캐너,
130: 컴퓨터, 140: 인감 이미지 혹은 적색 인감 영역,
150: RGB 원뿔 모형, 160: RGB 색상 분포도 사각형 모델,
152: 적색 영역, 154: 색상(Hue),
156: 채도(Saturation), 156: 명도(Value),
210: 적색 인감 영역 추출 엔진, 212: HSV 컬러 모델부,
214: CMYK 컬러 모델부, 216: RGB 컬러 모델부.
110: seal use document, 112: seal ledger,
114: checking check, 120: seal scanner,
130: computer, 140: seal image or red seal area,
150: RGB cone model, 160: RGB color distribution square model,
152: red area, 154: hue,
156: Saturation, 156: Brightness,
210: red seal area extraction engine, 212: HSV color model unit,
214: CMYK color model portion, 216: RGB color model portion.

Claims (12)

컴퓨터와 연결된 인감스캐너를 사용하여 인감도장이 날인된 서류를 스캔하여 RGB 원본 이미지를 컴퓨터로 입력하는 단계;
상기 컴퓨터에서 RGB 원본 이미지를 CMYK 이미지로 변환하는 단계;
상기 변환된 CMYK 이미지에서 검정색(K)의 임계값을 기준으로 검정색 이미지를 제외시킨 제1 RGB 이미지를 생성하는 단계;
상기 제1 RGB 이미지를 HSV 이미지로 변환하는 단계;
상기 변환된 HSV 이미지에서 색상(H), 명도(V)의 임계값을 기준으로 적색영역이 해당하는 이미지만를 포함하는 제2 RGB 이미지를 생성하는 단계;
상기 제2 RGB 이미지에서 각 픽셀 색상 값에 대한 처리 조건을 적용하여 적색 인감 영역만을 추출하는 단계를 구비하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
Scanning the document stamped with the seal stamp using a seal scanner connected to the computer and inputting the RGB original image to the computer;
Converting the original RGB image into a CMYK image in the computer;
Generating a first RGB image obtained by excluding a black image based on a threshold value of black (K) from the converted CMYK image;
Converting the first RGB image to an HSV image;
Generating a second RGB image including only an image corresponding to a red area based on threshold values of color (H) and brightness (V) from the converted HSV image;
And extracting only a red seal area by applying a processing condition for each pixel color value from the second RGB image.
제1항에 있어서,
상기 컴퓨터는,
내부의 데이터 저장 공간에 적색인감 영역 추출 엔진을 구비하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
The computer,
A method for extracting a seal image from a document for use in a seal, comprising a red seal region extraction engine in an internal data storage space.
제2항에 있어서,
상기 적색인감 영역 추출 엔진은,
CMYK 컬러 모델부, HSV 컬러 모델부 및 RGB 컬러 모델부를 포함하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 2,
The red seal region extraction engine,
A method of extracting a seal image from a document for use of a seal, comprising a CMYK color model unit, an HSV color model unit, and an RGB color model unit.
제1항에 있어서,
상기 검정색(K)의 임계값은,
CMYK의 값이 0~1.0의 범위를 가질 때, 0.6~1.0 범위인 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
The threshold of black (K) is,
When the CMYK value is in the range of 0 to 1.0, the method for extracting a seal image from a document for use in a seal, characterized in that it is in the range of 0.6 to 1.0.
제1항에 있어서,
상기 색상(H)의 임계값은,
0~30°과 220~360°의 범위인 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
The threshold value of the color H is,
A method of extracting a seal image of a document using a seal, characterized in that it is in the range of 0 to 30° and 220 to 360°.
제1항에 있어서,
상기 명도의 임계값은,
명도의 범위가 0~255값을 갖는 경우, 60~255의 범위인 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
The threshold of brightness is,
When the brightness range has a value of 0 to 255, the method of extracting a seal image of a document using a seal, characterized in that the range of 60 to 255.
제1항에 있어서,
상기 인감도장이 날인된 서류의 배경이 흰색이 아닌 경우,
상기 각 픽셀 색상값에 대한 처리 조건 중 하나는,
상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때,
R 값은 다른 G, B 값보다 크거나, B나 G가 R보다 클 경우, 그 차이가 40을 초과하지 않는 픽셀 이미지만을 추출하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
If the background of the document with the above seal stamp is not white,
One of the processing conditions for each pixel color value,
When the distribution of the RGB colors of each pixel is represented by a square,
A method for extracting a seal image from a document using a seal, characterized in that, when the R value is greater than other G and B values, or when B or G is greater than R, only pixel images whose difference does not exceed 40 are extracted.
제1항에 있어서,
상기 인감도장이 날인된 서류의 배경이 흰색이 아닌 경우,
상기 각 픽셀 색상값에 대한 처리 조건 중 하나는,
상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때,
R과 B 중 큰 값에 0.6~0.75을 곱한 값은 G보다 큰 픽셀 이미지만을 추출하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
If the background of the document with the above seal stamp is not white,
One of the processing conditions for each pixel color value,
When the distribution of the RGB colors of each pixel is represented by a square,
A method of extracting a seal image from a document using a seal, wherein a value obtained by multiplying the larger value of R and B by 0.6 to 0.75 is to extract only the pixel image larger than G.
제1항에 있어서,
상기 인감도장이 날인된 서류의 배경이 흰색인 경우,
상기 각 픽셀 색상값에 대한 처리 조건 중 하나는,
상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때,
B와 G 중 큰 값은 R의 값에 0.7의 곱보다 작은 픽셀 이미지를 추출하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
If the background of the document with the above seal stamp is white,
One of the processing conditions for each pixel color value,
When the distribution of the RGB colors of each pixel is represented by a square,
A method of extracting a seal image from a document using a seal, characterized in that the larger value of B and G extracts a pixel image smaller than the product of the value of R and 0.7.
제1항에 있어서,
상기 인감도장이 날인된 서류의 배경이 흰색인 경우,
상기 각 픽셀 색상값에 대한 처리 조건 중 하나는,
상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때,
B 값과 G 값의 차이는 10보다 큰 픽셀 이미지만을 추출하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
If the background of the document with the above seal stamp is white,
One of the processing conditions for each pixel color value,
When the distribution of the RGB colors of each pixel is represented by a square,
A method of extracting a seal image from a document for use in a seal, characterized in that the difference between the value of B and the value of G extracts only pixel images greater than 10.
제1항에 있어서,
상기 인감도장이 날인된 서류의 배경이 흰색인 경우,
상기 각 픽셀 색상값에 대한 처리 조건 중 하나는,
상기 각 픽셀의 RGB 컬러의 분포도를 4각형으로 나타내었을 때,
B와 G의 값은 R의 값에 0.6~0.7의 곱 보다 작은 픽셀 이미지만을 추출하는 것을 특징으로 하는 인감사용 서류의 인감이미지 추출 방법.
The method of claim 1,
If the background of the document with the above seal stamp is white,
One of the processing conditions for each pixel color value,
When the distribution of the RGB colors of each pixel is represented by a square,
A method of extracting a seal image from a document for use in a seal, characterized in that the values of B and G extract only pixel images that are smaller than the product of the value of R by 0.6 to 0.7.
삭제delete
KR1020190010571A 2019-01-28 2019-01-28 A method for extraction of a registered seal impression from a document KR102158633B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190010571A KR102158633B1 (en) 2019-01-28 2019-01-28 A method for extraction of a registered seal impression from a document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190010571A KR102158633B1 (en) 2019-01-28 2019-01-28 A method for extraction of a registered seal impression from a document

Publications (2)

Publication Number Publication Date
KR20200093289A KR20200093289A (en) 2020-08-05
KR102158633B1 true KR102158633B1 (en) 2020-09-22

Family

ID=72041672

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190010571A KR102158633B1 (en) 2019-01-28 2019-01-28 A method for extraction of a registered seal impression from a document

Country Status (1)

Country Link
KR (1) KR102158633B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112132919B (en) * 2020-09-07 2024-03-05 百望股份有限公司 Electronic seal presenting method for simulating inkpad effect
CN113312982A (en) * 2021-05-07 2021-08-27 珠海金山办公软件有限公司 Document restoration processing method and device, computer storage medium and terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002216205A (en) 2001-01-24 2002-08-02 Oki Electric Ind Co Ltd Seal print authenticity discrimination device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04111084A (en) * 1990-08-30 1992-04-13 Fujitsu Ltd Seal reading system and slip for seal
JPH08212294A (en) * 1995-02-08 1996-08-20 Oki Electric Ind Co Ltd Optical character reader

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002216205A (en) 2001-01-24 2002-08-02 Oki Electric Ind Co Ltd Seal print authenticity discrimination device

Also Published As

Publication number Publication date
KR20200093289A (en) 2020-08-05

Similar Documents

Publication Publication Date Title
CN101622631B (en) Multi-color dropout for scanned document
US6519362B1 (en) Method of extracting text present in a color image
CN101902550B (en) Image processing apparatus, image processing method
JP5795548B2 (en) High dynamic range image processing method using tone mapping to extended RGB space
US20060268311A1 (en) Image processing apparatus and image processing method
JP2010273144A (en) Image processor, control method thereof, and program
JP4336950B2 (en) Image processing device
US8565531B2 (en) Edge detection for mixed raster content (MRC) images for improved compression and image quality
JP4362538B2 (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and recording medium thereof
JP2008005317A (en) Image processor and image processing method, and computer program and recording medium
KR20080095743A (en) Image processing program and image processing device
US10373030B2 (en) Image processing apparatus that executes halftone process on target image data including edge pixel
US6516089B1 (en) In-gamut image reproduction using spatial comparisons
KR102158633B1 (en) A method for extraction of a registered seal impression from a document
JP4362537B2 (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and recording medium thereof
KR101116682B1 (en) Image forming apparatus and control method thereof
JP2008187710A (en) Method and system for specifying image characteristics, method for determining background color, control program and recording medium
Tonazzini Color space transformations for analysis and enhancement of ancient degraded manuscripts
US20100067785A1 (en) Image processing apparatus, image forming apparatus and computer readable medium
US6665435B1 (en) Image data processing method and corresponding device
CN101197913B (en) Image processing apparatus and control method
JPH11272864A (en) Optical character read method or its device
US10104269B2 (en) Image processing apparatus configured for binarizing image data and methods for binarizing image data
US7817303B2 (en) Image processing and image forming with modification of a particular class of colors
JP6063911B2 (en) Image processing device

Legal Events

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