[go: up one dir, main page]

KR101397905B1 - Apparatus and method for media image detection, and system with the same - Google Patents

Apparatus and method for media image detection, and system with the same Download PDF

Info

Publication number
KR101397905B1
KR101397905B1 KR1020070129222A KR20070129222A KR101397905B1 KR 101397905 B1 KR101397905 B1 KR 101397905B1 KR 1020070129222 A KR1020070129222 A KR 1020070129222A KR 20070129222 A KR20070129222 A KR 20070129222A KR 101397905 B1 KR101397905 B1 KR 101397905B1
Authority
KR
South Korea
Prior art keywords
image
medium
medium image
minimum area
vertex
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
KR1020070129222A
Other languages
Korean (ko)
Other versions
KR20090062115A (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 KR1020070129222A priority Critical patent/KR101397905B1/en
Publication of KR20090062115A publication Critical patent/KR20090062115A/en
Application granted granted Critical
Publication of KR101397905B1 publication Critical patent/KR101397905B1/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon
    • G07D7/2075Setting acceptance levels or parameters
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon
    • G07D7/2016Testing patterns thereon using feature extraction, e.g. segmentation, edge detection or Hough-transformation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D2207/00Paper-money testing devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)
  • Image Analysis (AREA)

Abstract

본 발명은 매체이미지의 최소영역을 이용하여 기울기가 보정된 매체이미지를 검출하는 매체이미지 검출장치 및 방법, 그리고 그를 이용한 매체취급시스템에 관한 것이다. 본 발명에는 매체이미지의 윤곽선을 검출하는 윤곽선 검출부가 구비된다. 검출된 윤곽선을 이용하여 상기 매체이미지가 포함된 최소영역의 이미지를 검출하는 최소영역 검출부가 구비된다. 회전방향 판단부는 검출된 최소영역의 회전방향을 판단하고, 꼭지점 추출부는 회전방향에 기초하여 상기 매체이미지의 꼭지점을 추출한다. 그리고, 기울기 산출부는 추출된 꼭지점의 좌표를 이용하여 상기 매체이미지의 기울기를 산출하며, 이미지 검출부는 산출된 기울기를 보정하여 여백이미지가 제외된 상기 매체이미지만을 검출한다. 이에 따라, 본 발명은 매체이미지의 최소영역만을 이용하므로, 매체이미지 검출시 처리해야할 계산량을 감소시켜 처리속도를 향상시키는 이점이 있다. The present invention relates to a medium image detecting apparatus and method for detecting a tilted medium image using a minimum area of a medium image, and a medium handling system using the same. In the present invention, there is provided an outline detecting section for detecting the outline of the medium image. And a minimum area detecting unit for detecting an image of the minimum area including the medium image using the detected contour. The rotation direction determination unit determines the rotation direction of the detected minimum area, and the vertex point extraction unit extracts the vertex of the medium image based on the rotation direction. The slope calculating unit calculates the slope of the medium image using the coordinates of the extracted vertexes, and the image detecting unit corrects the calculated slope to detect only the media image from which the margin image is excluded. Accordingly, since the present invention uses only the minimum area of the medium image, there is an advantage that the amount of calculation to be processed in the detection of the medium image is reduced and the processing speed is improved.

매체취급시스템, 이미지 검출, 기울기 보정, 최소영역, 기본영역 Media handling system, image detection, tilt correction, minimum area, basic area

Description

매체이미지 검출장치 및 방법, 그리고 그를 이용한 매체취급시스템{APPARATUS AND METHOD FOR MEDIA IMAGE DETECTION, AND SYSTEM WITH THE SAME}TECHNICAL FIELD [0001] The present invention relates to a medium image detecting apparatus and method, and a media handling system using the medium image detecting apparatus and method,

본 발명은 매체이미지 검출장치에 관한 것으로, 특히 매체이미지의 최소 영역만을 이용하여 매체이미지를 검출하는 매체이미지 검출장치 및 방법, 그리고 그를 이용한 매체취급시스템에 관한 것이다. The present invention relates to a medium image detecting apparatus, and more particularly, to a medium image detecting apparatus and method for detecting a medium image using only a minimum area of a medium image, and a medium handling system using the same.

본 명세서에서 사용되는 매체라는 용어는 예를 들어, 지폐, 수표, 티켓, 증명서 등을 나타내는 것으로, 폭이나 길이에 비해 두께가 매우 얇은 것으로 다양한 것이 있을 수 있다. The term " medium " used in this specification refers to, for example, banknotes, checks, tickets, certificates, etc., and may be various in thickness as compared with width or length.

지폐인식기, 자동판매기, 환전기와 같은 다양한 형태의 금융자동화기기와 매체취급시스템에 적용되는 매체이미지 검출장치는 매체에 인쇄된 마그네틱, 이미지, 은화, 형광잉크, 각종 숫자 및 문자를 인식하여 매체의 종류, 위조 여부, 정상 여부 등을 판단하게 된다. 상기 매체취급시스템은 상기 매체의 정확한 인식을 위하여 투입되는 매체의 이송도중 발생하는 기울기를 보정하여 매체이미지만을 추출한다. Various types of financial automation devices such as a bill recognizer, a vending machine, and a currency changer, and a medium image detection device applied to the medium handling system recognize the magnetic, image, silver, fluorescent ink, various numbers and characters printed on the medium, Whether it is fake, whether it is normal or not. The media handling system extracts only the media image by correcting the slope that occurs during the feeding of the loaded media for accurate recognition of the media.

도 1에는 일반적인 지폐인식장치의 지폐이미지 검출방법을 단계별로 설명하는 흐름도가 도시되어 있고, 도 2a 내지 도 2e에는 도 1의 지폐이미지 검출방법을 설명하기 위한 예시도가 도시되어 있다. FIG. 1 is a flow chart for explaining a banknote image detection method of a general banknote recognition apparatus step by step. FIGS. 2A to 2E are diagrams for explaining the banknote image detection method of FIG.

도 1 및 도 2a 내지 도 2e에서, 상기 지폐인식장치는 인입되는 지폐의 이미지를 스캔한다(S1). 이때, 스캔된 이미지에는 도 2a에 도시된 바와 같이, 지폐이미지와 여백이미지가 포함되어 있다. In Fig. 1 and Figs. 2A to 2E, the bill recognition apparatus scans an image of an incoming bill (S1). At this time, the scanned image includes a banknote image and a margin image, as shown in FIG. 2A.

상기 지폐인식장치가 상기 지폐를 내부로 이송하는 도중, 진동이나 노이즈 등 이송상태에 의하여 진행방향으로부터 경사지게 되어, 도 2b와 같이 매체이미지의 기울기(skew)가 발생한다. The bill recognizing device is inclined from the traveling direction due to the conveying state such as vibration or noise while the bill is being conveyed to the inside, and a skew of the medium image occurs as shown in Fig. 2B.

그러면, 상기 지폐인식장치는 상기 지폐이미지의 기울기를 추정하고(S2), 추정된 기울기 만큼 전체 이미지를 회전시켜 기울기를 보정한다(S3). 도 2c에는 추정된 기울기에 기초하여 회전된 전체 지폐이미지가 도시되어 있다. 상기 회전된 전체 지폐이미지는 회전과정에서 부분적으로 이미지가 빠진 픽셀을 포함한다. Then, the bill recognition apparatus estimates the slope of the bill image (S2), and corrects the slope by rotating the entire image by the estimated slope (S3). FIG. 2C shows the rotated whole bill image based on the estimated slope. The rotated whole banknote image includes a pixel partially missing an image during the rotation process.

상기 지폐인식장치는 옆 픽셀의 이미지를 이용하거나, 주변 픽셀의 평균값을 이용하여 상기 이미지가 빠진 픽셀을 보정한다(S4). 도 2d에는 빠진 픽셀이 보정된 이미지가 도시되어 있다. The bill recognition apparatus uses an image of a neighboring pixel or corrects a pixel missing the image using an average value of neighboring pixels (S4). In Fig. 2 (d), a missing pixel corrected image is shown.

이어서, 상기 지폐인식장치는 위와 같이 기울기가 보정된 지폐이미지의 최외곽 경계를 이용하여 지폐이미지를 검출한다(S5). 도 2e에는 여백이미지가 제외된 지폐이미지가 도시되어 있다. Then, the bill recognition apparatus detects the banknote image using the outermost boundary of the banknote image whose inclination is corrected as described above (S5). In FIG. 2E, a banknote image excluding marginal images is shown.

이와 같은 종래의 지폐인식장치는 다음과 같은 문제점이 있다.The conventional bill recognition apparatus has the following problems.

먼저, 종래의 지폐인식장치는 전체 이미지 회전에 의해 지폐이미지의 기울기를 보정한다. 따라서, 전체 이미지를 처리해야하므로, 기울기를 보정하는 처리 속 도가 저하된다. First, the conventional bill recognition apparatus corrects the inclination of the bill image by rotating the entire image. Therefore, since the entire image has to be processed, the processing speed of correcting the tilt is lowered.

그리고, 전체 이미지 중 지폐이미지를 추출하기 위한 처리 속도도 저하된다. Also, the processing speed for extracting banknote images from the entire image is also lowered.

한편, 전체이미지 중 일부분을 이용하여 매칭하는 방법을 수행하는 경우, 종래의 지폐인식장치는 지폐이미지 전체를 회전시켜 지폐부분만 추출한 후 기본영역과 매칭시킨다. 이에 따라, 종래의 지폐인식장치는 계산량이 증가되고, 수행속도가 저하되는 문제점이 있다. On the other hand, in the case of performing matching using a part of the whole images, the conventional bill recognition apparatus rotates the entire banknote image to extract only the banknote part, and then matches with the basic area. Accordingly, the conventional bill recognition apparatus has a problem that the amount of calculation is increased and the execution speed is lowered.

본 발명은 상기한 바와 같은 문제점을 해결하기 위한 것으로, 본 발명의 목적은 매체이미지의 최소영역만을 이용하여 매체이미지를 검출하는 매체이미지 검출장치 및 방법, 그리고 그를 이용한 매체취급시스템을 제공하는 것이다. It is an object of the present invention to provide a medium image detecting apparatus and method for detecting a medium image using only a minimum area of a medium image, and a medium handling system using the same.

본 발명의 다른 목적은 전체이미지와 부분이미지를 매칭하는 방법을 활용할 경우, 부분적인 기본영역의 처리를 수행한 후 전체 매체이미지를 매칭하여 계산량을 줄이도록 하는 것이다. Another object of the present invention is to reduce the amount of computation by matching the entire media image after performing partial base area processing when a method of matching an entire image and a partial image is used.

상기한 바와 같은 목적을 달성하기 위한 본 발명의 특징에 따르면, 본 발명은 매체이미지의 윤곽선을 검출하는 윤곽선 검출부, 상기 검출된 윤곽선을 이용하여 상기 매체이미지가 포함된 최소영역의 이미지를 검출하는 최소영역 검출부, 상기 검출된 최소영역의 회전방향을 판단하는 회전방향 판단부, 상기 회전방향에 기초하여 상기 매체이미지의 꼭지점을 추출하는 꼭지점 추출부, 상기 추출된 꼭지점의 좌표를 이용하여 상기 매체이미지의 기울기를 산출하는 기울기 산출부, 그리고 상기 산출된 기울기를 보정하여 여백이미지가 제외된 상기 매체이미지만을 검출하는 이미지 검출부를 포함하여 구성된다.According to an aspect of the present invention, there is provided an image processing apparatus including an outline detecting unit detecting an outline of a medium image, a minimum image detecting unit detecting an image of a minimum area including the medium image using the detected outline, A rotation direction determination unit for determining a rotation direction of the detected minimum area, a vertex extraction unit for extracting a vertex of the medium image based on the rotation direction, A slope calculating unit for calculating a slope, and an image detecting unit for correcting the calculated slope to detect only the medium image from which a margin image is excluded.

상기 윤곽선 검출부는, 소벨 마스크 기법을 이용하는 것이 바람직하다.Preferably, the outline detection unit uses a Sobel mask technique.

상기 최소영역 검출부는, 상기 소벨 마스크가 수행된 매체이미지의 히스토그램 값이 '0' 이외의 값으로 변화하는 지점을 이용하여 상기 최소영역을 검출하는 것이 바람직하다.Preferably, the minimum area detecting unit detects the minimum area using a point where the histogram value of the medium image on which the Sobel mask is performed changes to a value other than '0'.

상기 회전방향 판단부는, 상기 매체이미지의 최상위 꼭지점을 중심으로 한 좌우측 공간의 넓이를 비교하여 상기 매체이미지의 회전방향을 판단하는 것이 바람직하다. Preferably, the rotation direction determination unit determines the direction of rotation of the medium image by comparing the widths of the left and right spaces around the highest vertex of the medium image.

상기 회전방향 판단부는, 상기 좌우측 공간 중에서 공간이 넓게 위치한 방향으로 회전된 것으로 판단하는 것이 바람직하다.The rotation direction determination unit determines that the space is rotated in a direction in which the space is wider in the left and right spaces.

상기 꼭지점 추출부는, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향에 기초하여 경사각이 큰 방향으로 탐색하여 상기 매체이미지의 꼭지점을 추출하는 것이 바람직하다.Preferably, the vertex extracting unit extracts a vertex of the medium image by searching the vertices of the minimum area in a direction having a large inclination angle based on the determined rotational direction.

상기 꼭지점 추출부는, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향으로 상기 매체이미지의 꼭지점을 탐색하여 추출하는 것이 바람직하다.Preferably, the vertex extracting unit searches for and extracts a vertex of the medium image in the determined direction of rotation from each vertex of the minimum area.

상기 기울기 산출부는, 상기 추출된 매체이미지의 꼭지점 좌표들을 이용하여 상기 매체이미지의 가로/세로길이를 추정하고, 수학식 1에 의하여 상기 매체이미지의 기울기를 산출하는 것이 바람직하다.Preferably, the slope calculating unit estimates the horizontal / vertical length of the medium image using the vertex coordinates of the extracted medium image, and calculates the slope of the medium image according to Equation (1).

Figure 112007089437901-pat00001
‥‥‥수학식 1
Figure 112007089437901-pat00001
1

상기 이미지 검출부는, 여백이미지를 제외한 매체이미지만을 검출하는 것이 바람직하다. Preferably, the image detecting unit detects only the medium image excluding the margin image.

상기 이미지 검출부는, 상기 최소영역 이미지의 좌측 상위 꼭지점 좌표를 중심으로 역방향 매핑하는 것이 바람직하다.Preferably, the image detecting unit performs a reverse mapping on the upper left vertex coordinates of the minimum area image.

본 발명의 다른 특징에 따르면, 본 발명은 매체이미지 검출장치와; 상기 매체이미지 검출장치로부터 인식된 매체이미지를 이용하여 상기 매체의 수납, 출납을 제어하는 제어부를 포함하여 구성된다. According to another aspect of the present invention, there is provided a media image detection apparatus comprising: a media image detection apparatus; And a control unit for controlling the receipt and receipt of the medium by using the medium image recognized by the medium image detection apparatus.

상기 매체는, 지폐인 것이 바람직하다.It is preferable that the medium is a banknote.

본 발명의 또 다른 특징에 따르면, 본 발명은 매체이미지의 윤곽선을 검출하는 단계, 상기 검출된 윤곽선을 이용하여 상기 매체이미지가 포함된 최소영역의 이미지를 검출하는 단계, 상기 검출된 최소영역의 회전방향을 판단하는 단계, 상기 회전방향에 기초하여 추출된 꼭지점의 좌표를 이용하여 상기 매체이미지의 기울기를 산출하는 단계, 그리고 상기 산출된 기울기를 보정하여 여백이미지가 제외된 상기 매체이미지만을 검출하는 단계를 포함하여 구성된다. According to still another aspect of the present invention, there is provided a method of reproducing a medium image, comprising the steps of: detecting a contour of a medium image; detecting an image of the minimum area including the medium image using the detected contour; Calculating a slope of the medium image using the coordinates of the vertex extracted based on the rotation direction, and correcting the calculated slope to detect only the medium image from which the margin image is excluded .

상기 윤곽선 검출단계는, 소벨 마스크 기법을 이용하는 것이 바람직하다.Preferably, the contour detection step uses a Sobel mask technique.

상기 최소영역 검출단계는, 상기 소벨 마스크가 수행된 매체이미지의 히스토그램을 작성하는 단계와, 상기 히스토그램 값을 이용하여 상기 최소영역을 검출하는 단계를 포함하는 것이 바람직하다.The minimum area detection step may include generating a histogram of the medium image on which the Sobel mask is performed, and detecting the minimum area using the histogram value.

상기 최소영역 검출단계는, 상기 히스토그램 값이 '0' 이외의 값으로 변하는 지점의 좌표에 따라 상기 최소영역을 검출하는 것이 바람직하다.Preferably, the minimum area detecting step detects the minimum area according to coordinates of a point where the histogram value changes to a value other than '0'.

상기 회전방향 판단단계는, 상기 매체이미지의 최상위 꼭지점을 중심으로 한 좌우측 공간의 넓이를 비교하여 상기 매체이미지의 회전방향을 판단하는 것이 바람직하다.Preferably, the rotating direction determining step determines the rotating direction of the medium image by comparing the widths of the left and right spaces around the highest vertex of the medium image.

상기 회전방향 판단단계는, 상기 좌우측 공간의 넓이를 비교하여 넓이가 넓 은 방향으로 회전된 것으로 판단하는 것이 바람직하다.The rotation direction determination step may compare the widths of the left and right spaces and determine that the width of the left and right spaces is rotated in a wider direction.

상기 꼭지점 좌표는, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향에 기초하여 경사각이 큰 방향으로 탐색하여 추출하는 것이 바람직하다.Preferably, the vertex coordinates are searched in a direction having a large inclination angle based on the determined rotation direction from each vertex of the minimum area and extracted.

상기 꼭지점 좌표는, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향으로 상기 매체이미지의 꼭지점을 탐색하여 추출하는 것이 바람직하다.Preferably, the vertex coordinates are searched for vertices of the media image in the determined direction of rotation from the respective vertices of the minimum area.

상기 기울기 산출단계는, 상기 추출된 매체이미지의 꼭지점 좌표들을 이용하여 상기 매체이미지의 가로/세로길이를 추정하고, 추정된 가로/세로길이를 수학식 1에 대입하여 상기 매체이미지의 기울기를 산출하는 것이 바람직하다.The slope calculating step estimates the horizontal / vertical length of the medium image using the vertex coordinates of the extracted medium image, and substitutes the estimated horizontal / vertical length into the equation 1 to calculate the slope of the medium image .

Figure 112007089437901-pat00002
‥‥‥수학식 1
Figure 112007089437901-pat00002
1

상기 이미지 검출단계는, 상기 산출된 기울기에 기초하여 상기 최소영역 이미지를 회전시켜 기울기가 보정된 매체이미지만을 검출하는 것이 바람직하다.Preferably, the image detecting step detects only the medium image whose slope is corrected by rotating the minimum area image based on the calculated slope.

상기 이미지 검출단계는, 상기 최소영역 이미지의 좌측 상위 꼭지점 좌표를 중심으로 역방향 매핑하는 것이 바람직하다.Preferably, the image detection step maps backward about the coordinates of the upper left vertex of the minimum area image.

본 발명은, 상기 추출된 매체이미지를 이용하여 상기 매체의 수납, 출납 동작을 수행하는 단계를 더 포함하는 것이 바람직하다.It is preferable that the present invention further includes a step of performing a storing and receiving operation of the medium by using the extracted medium image.

본 발명의 또 다른 특징에 따르면, 본 발명은 매체의 이미지를 스캔하는 단계, 상기 스캔된 매체이미지 중에서 미리 설정된 기본영역 이미지를 추출하는 단계, 상기 추출된 기본영역 이미지의 기울기를 보정하는 단계, 그리고 상기 기울기가 보정된 기본영역 이미지를 상기 매체이미지 전체와 매칭하여 상기 매체이미지 전체의 기울기를 보정하는 단계를 포함하여 구성된다.According to another aspect of the present invention, there is provided an image processing method including the steps of scanning an image of a medium, extracting a predetermined basic area image from the scanned medium image, correcting a slope of the extracted basic area image, And correcting the slope of the entire media image by matching the slope-corrected base area image with the entire media image.

상술한 바와 같이, 본 발명은 매체이미지의 최소영역만을 이용하여 매체이미지를 검출한다. 이에 따라, 본 발명은 다음과 같은 효과를 가진다. As described above, the present invention detects a medium image using only a minimum area of the medium image. Accordingly, the present invention has the following effects.

먼저, 본 발명은 이미지 검출 작업시 처리해야할 계산량을 줄여 처리 속도를 향상시킨다. First, the present invention improves the processing speed by reducing the amount of calculation to be performed in the image detecting operation.

그리고, 본 발명은 전체 이미지 중 일부인 기본영역의 이미지를 추출한 후 전체이미지를 매칭시켜 매체이미지를 추출할 수도 있다. In addition, the present invention can extract a medium image by extracting an image of a basic region, which is a part of the entire image, and then matching the entire image.

이에 따라, 본 발명은 다량의 매체로부터 매체이미지를 검출하는 동작을 실시간으로 처리할 수 있다. Thus, the present invention can handle the operation of detecting a medium image from a large amount of media in real time.

이하, 본 발명의 바람직한 실시 예에 따른 매체이미지 검출장치 및 방법, 그리고 그를 이용한 매체취급시스템을 첨부된 도면을 참조하여 상세하게 설명한다. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a media image detecting apparatus and method according to a preferred embodiment of the present invention and a media handling system using the same will be described in detail with reference to the accompanying drawings.

도 3에는 본 발명의 바람직한 실시 예에 따른 매체이미지 검출장치의 블록구성도가 도시되어 있다. 3 is a block diagram of a media image detecting apparatus according to a preferred embodiment of the present invention.

본 실시 예에서는 지폐의 투입/배출을 수행하는 금융자동화기기를 이용하여 설명하도록 한다. 하지만, 본 발명은 지폐뿐만 아니라, 수표, 증명서, 티켓과 같이 다양한 형태의 매체를 취급하는 매체취급시스템에 적용될 수 있다. In this embodiment, description will be made using a financial automatic machine that performs input / discharge of bills. However, the present invention can be applied not only to bills but also to media handling systems that handle various types of media such as checks, certificates, and tickets.

도 3에 도시된 바와 같이, 본 발명의 지폐인식장치(10)는 투입구(11)를 통하 여 지폐를 투입받는다. 상기 투입구(11)는 지폐의 입력을 감지하면 신호를 발생시킨다. As shown in FIG. 3, the bill recognition apparatus 10 of the present invention receives bills through the input port 11. The input port 11 generates a signal when it detects an input of a bill.

상기 투입구(11)로부터 상기 지폐감지신호가 발생하면, 이송모듈(12)에 의하여 이송되는 지폐에 빛을 조사하는 발광다이오드(Light Emitting diode, 이하 'LED'라 함)(13)와, 상기 조사되는 빛에 의하여 반사되는 상기 지폐의 이미지를 스캔하는 이미지센서(14)가 구비된다. 이때, 상기 이미지센서(14)는 상기 이송모듈(12)의 진동에 의하여 상기 지폐가 똑바른 상태로 인입되지 않는 경우에 대비하여 상기 지폐규격보다 큰 영역을 스캔한다. 따라서, 상기 스캔된 이미지에는 상기 지폐의 이미지와 여백이미지가 포함된다. 상기 이미지센서(14)는 전하결합소자(Charge-Coupled Device) 또는 밀착형 화상 감지기(Contact Image Sensor)를 이용하는 것이 바람직하다. A light emitting diode (hereinafter referred to as "LED") 13 that emits light to a bill conveyed by the conveying module 12 when the bill sensing signal is generated from the input port 11, And an image sensor 14 for scanning an image of the bill reflected by the light. At this time, the image sensor 14 scans an area larger than the paper currency standard in case the paper currency is not drawn in a straight state due to the vibration of the conveyance module 12. Accordingly, the scanned image includes an image of the bill and a margin image. The image sensor 14 preferably uses a charge-coupled device or a contact image sensor.

상기 스캔된 이미지에서 상기 지폐이미지의 윤곽선을 검출하는 윤곽선 검출부(15)가 구비된다. 상기 윤곽선 검출부(15)는 프리윗 마스크(Prewith Mask), 로버트 마스크(Robert Mask), 라플라시안 마스크(Laplacian Mask), 케니 마스크(Canny Mask) 등 다양한 윤곽선 검출 방법들을 이용할 수 있으나, 본 실시 예에서는 윤곽선 검출의 정확성이 우수한 소벨 마스크(sobel mask) 방법을 이용하는 것으로 설명한다. 상기 윤곽선 검출부(15)는, X축/Y축 방향으로의 히스토그램을 작성하기 위하여 상기 스캔된 이미지의 수평/수직성분을 검색하는 'Gx'/'Gy'를 사용한다. 표 1a와 표 1b는 상기 스캔된 이미지의 수평/수직성분을 검색하는 소벨 마스크의 'Gx'/'Gy' 테이블이다. And an outline detecting unit 15 for detecting the outline of the bill image in the scanned image. The outline detection unit 15 may use various outline detection methods such as a prewith mask, a Robert mask, a laplacian mask, and a canny mask, but in the present embodiment, It is explained that the Sobel mask method having excellent detection accuracy is used. The contour detection unit 15 uses 'Gx' / 'Gy' to retrieve horizontal / vertical components of the scanned image to create a histogram in the X-axis / Y-axis direction. Tables 1a and 1b are 'Gx' / 'Gy' tables of the Sobel mask for retrieving the horizontal / vertical components of the scanned image.

Figure 112007089437901-pat00003
Figure 112007089437901-pat00003

Figure 112007089437901-pat00004
Figure 112007089437901-pat00004

상기 윤곽선 검출부(15)는 상기 'Gx'를 수행한 영상과 상기 'Gy'를 수행한 영상을 하나의 영상으로 합한다. 상기 'Gx'/'Gy'를 수행한 이미지는 밝기에 따라 '0 내지 255' 사이의 값을 가진다. 이에, 상기 윤곽선 검출부(15)는 최고값인 '255'의 절반인 '128' 미만인 값들을 모두 '0', 즉 검은색으로 처리하고, '128' 이상인 값들만으로 표시된 영상을 작성한다. 이와 같이 작성된 영상에는 상기 지폐이미지의 윤곽선이 검출된다. The contour detecting unit 15 combines the image of 'Gx' and the image of 'Gy' into one image. The image of 'Gx' / 'Gy' has a value between 0 and 255 according to the brightness. Accordingly, the outline detecting unit 15 processes all values less than 128, which is half of the maximum value 255, as 0, i.e., black, and creates an image represented by only values of 128 or more. The outline of the bill image is detected in the thus created image.

상기 이미지센서(14)에 의해 스캔된 지폐이미지가 수평하게 정렬되지 않고 기울기(skew)가 발생할 수 있다. 상기 기울기는 상기 지폐를 이송하는 상기 이송모듈(12)의 진동이나 노이즈와 같은 이송상태에 따라 발생된다. 상기 지폐가 수평상태로 이송되어 기울기가 발생되지 않은 경우, 상기 기울기를 보정한 후, 이미지를추출하는 것이 바람직하다. A bill image scanned by the image sensor 14 may not be horizontally aligned but skew may occur. The inclination is generated in accordance with a conveyance state such as vibration or noise of the conveyance module 12 conveying the bill. When the banknote is conveyed in a horizontal state and no tilt is generated, it is preferable that the image is extracted after correcting the tilt.

상기 윤곽선 검출부(15)에서 작성된 영상에 상기 매체이미지를 포함하는 최소영역을 검출하는 최소영역 검출부(16)가 구비된다. 상기 최소영역 검출부(16)는 상기 윤곽선 검출부(15)에서 작성된 영상에 X축/Y축 방향으로 히스토그램을 작성한다. 상기 히스토그램은 지폐이미지의 흐름이 많을수록 값이 커진다. 이에, 상기 최소영역 검출부(16)는 상기 히스토그램 값들의 변화에 따라 상기 지폐이미지의 윤곽선과 만나는 점을 검출하여, 상기 지폐이미지를 포함하는 최소영역을 검출한다. And a minimum area detecting unit 16 for detecting a minimum area including the medium image on the image created by the outline detecting unit 15. [ The minimum area detection unit 16 creates a histogram in the X-axis / Y-axis direction on the image created by the contour detection unit 15. The histogram has a larger value as the flow of banknote images increases. The minimum area detection unit 16 detects a point where the contour of the bill image is detected according to the change of the histogram values, and detects a minimum area including the bill image.

상기 지폐이미지의 회전방향을 판단하는 회전방향 판단부(17)가 구비된다. 상기 회전방향 판단부(17)는 상기 검출된 최소영역과 상기 지폐이미지의 윤곽선이 만나는 점들 중에서 최상위 꼭지점을 중심으로 한 좌우측 삼각형 영역의 넓이를 산출한다. 그리고, 상기 회전방향 판단부(17)는 산출된 좌우측 삼각형 영역의 넓이를 비교하여 넓이가 넓은 영역이 위치한 방향을 회전방향으로 판단한다. And a rotation direction determination unit 17 for determining the rotation direction of the bill images. The rotation direction determination unit 17 calculates the widths of the right and left triangular areas around the highest vertex among the points where the detected minimum area and the contour of the banknote image meet. Then, the rotation direction determination unit 17 compares the calculated widths of the left and right triangular areas, and determines the direction in which the wide area is located as the rotation direction.

상기 매체이미지의 꼭지점을 추출하는 꼭지점 추출부(18)가 구비된다. 상기 꼭지점 추출부(18)는 상기 최소영역의 각 꼭지점들로부터 상기 매체이미지의 꼭지점을 향한 좌우측 방향 중 각도가 큰 방향을 따라 상기 윤곽선과 만나는 점을 탐색하여 상기 지폐이미지의 꼭지점을 추출한다. And a vertex extracting unit 18 for extracting a vertex of the medium image. The vertex extracting unit 18 extracts the vertexes of the banknote images by searching for points that meet the contour along a direction having a larger angle in the right and left directions toward the vertex of the medium image from the respective vertexes of the minimum area.

그리고, 상기 매체이미지가 회전된 기울기를 산출하는 기울기 산출부(19)가 구비된다. 상기 기울기 산출부(19)는 상기 매체이미지의 꼭지점 좌표들을 이용하여 상기 매체이미지의 가로/세로길이를 추정한다. 그리고, 추정된 가로/세로길이를 수학식 1에 대입하여 상기 기울기를 산출한다. The slope calculating unit 19 calculates the slope of the medium image. The slope calculating unit 19 estimates the horizontal / vertical length of the medium image using the vertex coordinates of the medium image. Then, the slope is calculated by substituting the estimated horizontal / vertical length into the equation (1).

Figure 112007089437901-pat00005
Figure 112007089437901-pat00005

상기 산출된 기울기를 보정하여 여백이미지가 제외된 매체이미지만을 추출하는 이미지 검출부(20)가 구비된다. 상기 이미지 검출부(20)는 상기 최소영역 이미지의 꼭지점 좌표들 중 하나, 예를 들어 좌측 상위 꼭지점 좌표를 중심으로 상기 산출된 기울기만큼 상기 지폐이미지를 회전시킨다. 이를 위하여, 상기 이미지 검출부(20)는 새로운 이미지의 좌표를 본래의 지폐이미지로부터 역방향 매핑하여 여백이미지가 제거된 지폐이미지만을 검출한다. 상기 역방향 매핑방법은 새로운 이미지의 좌표를 기준으로 원본 이미지에서 데이터를 가져오기 때문에 새로운 이미지에 빈 좌표가 발생하지 않는다. 또한, 원본 이미지에서 중복된 데이터를 가져올 수도 있지만, 새로운 이미지를 만들어 다시 영상을 보정할 필요가 없다. 이에 따라, 상기 이미지 검출부(20)는 추정된 매체이미지 크기의 기울기가 보정된 매체이미지만을 검출한다. And an image detecting unit 20 for correcting the calculated inclination and extracting only a medium image from which margin images are excluded. The image detecting unit 20 rotates the bill image by the calculated slope about one of the vertex coordinates of the minimum area image, for example, the upper left vertex coordinate. To this end, the image detecting unit 20 detects only a banknote image in which a blank image is removed by mapping the coordinates of the new image backward from the original banknote image. Since the reverse mapping method fetches data from the original image based on the coordinates of the new image, blank coordinates do not occur in the new image. You can also import duplicate data from the original image, but you do not need to create a new image and then correct the image again. Accordingly, the image detecting unit 20 detects only the medium image whose slope of the estimated medium image size is corrected.

이와 함께, 상기 지폐이미지를 검출하도록 상기 지폐인식장치(10) 전체를 제어하는 제어부(21)가 구비된다. 상기 제어부(21)는 상기 지폐인식장치(10)를 포함하는 금융자동화기기의 중앙제어유닛(Central Processing Unit)인 것이 바람직하다. In addition, a control unit 21 for controlling the entire bill recognition apparatus 10 to detect the bill image is provided. The control unit 21 is preferably a central processing unit of the financial automatic machine including the bill recognition apparatus 10. [

그리고, 상기 지폐인식장치의 동작과정과 상기 매체이미지의 회전방향, 기울기, 중심점, 기울기가 보정된 매체이미지를 표시하는 표시부(22)가 구비되는 것이 바람직하다. In addition, it is preferable that a display unit 22 for displaying the media image in which the operation process of the bill recognition apparatus and the rotation direction, tilt, center point, and tilt of the medium image are corrected is provided.

다음, 본 발명의 바람직한 실시 예에 따른 지폐인식장치의 지폐이미지 검출방법을 도 4를 참조하여 상세하게 설명한다. Next, a bill image detection method of a bill recognition apparatus according to a preferred embodiment of the present invention will be described in detail with reference to FIG.

도 4에는 본 발명의 바람직한 실시 예에 따른 지폐인식장치의 지폐이미지 검출방법을 설명하는 흐름도가 도시되어 있다. 4 is a flowchart illustrating a bill image detection method of a bill recognition apparatus according to a preferred embodiment of the present invention.

본 실시 예에서는 만원권 지폐를 이용하여 설명하기로 한다. In this embodiment, a description will be made using a bill of 10,000 won.

지폐가 투입구(11)에 투입되어 이송모듈(12)에 의한 이송이 시작되면, 도 4의 제 10단계(S10)에서 제어부(21)의 제어에 따라 LED(13)는 상기 지폐에 빛을 조사하고, 이미지센서(14)는 상기 조사되는 빛에 의하여 반사되는 상기 지폐의 이미지를 스캔한다. 도 5a 내지 도 5c에는 스캔된 이미지의 예시도가 도시되어 있다. 도 5a 내지 도 5c에 도시된 바와 같이, 상기 스캔된 이미지에는 지폐이미지 및 여백이미지가 포함되어 있다. 그리고, 이송모듈(12)의 진동과 같은 이송상태에 따라 지폐가 비스듬한 상태로 인입되면서 기울기(skew)가 발생할 수도 있다. When the banknote is charged into the charging port 11 and conveyance by the conveying module 12 is started, the LED 13 illuminates the banknote under the control of the controller 21 in the tenth step S10 of FIG. 4 And the image sensor 14 scans the image of the bill reflected by the irradiated light. Figures 5A-5C illustrate examples of scanned images. As shown in FIGS. 5A to 5C, the scanned image includes a bill image and a margin image. A skew may be generated as the bill is drawn in an oblique state according to a conveying state such as vibration of the conveying module 12. [

상기 기울기가 발생되지 않은 경우에는, 지폐의 훼손량을 추정하거나 권종판별, 인입방향 추정 등 순서에 따른 다음 동작으로 진행한다. If the slope is not generated, the amount of damage to the banknote is estimated, or the next operation is performed in accordance with the order of the winding type determination and the incoming direction estimation.

한편, 기울기가 발생한 경우, 제 12단계(S12)에서 윤곽선 검출부(15)는 상기 스캔된 이미지를 소벨 마스크 (sobel mask) 방법을 이용하여 상기 지폐이미지의 윤곽선을 검출한다. 도 5b에 도시된 이미지를 이용하여 설명한다. 도 6a에는 표 1a의 'Gx'에 의하여 검출된 상기 매체이미지의 수직성분이 도시되어 있다. 그리고, 도 6b에는 표 1b의 'Gy'에 의하여 검출된 상기 매체이미지의 수평성분이 도시되어 있다.On the other hand, if a tilt occurs, the contour detection unit 15 detects the contour of the banknote image using the Sobel mask method in step 12 (S12). Will be described with reference to the image shown in Fig. 5B. Figure 6a shows the vertical components of the media image detected by 'Gx' in Table 1a. 6B shows the horizontal component of the medium image detected by 'Gy' in Table 1b.

윤곽선 검출부(15)는 상기 수직성분 및 수평성분을 도 6c와 같이 하나의 영상으로 합한다. 상기 'Gx' 및 'Gy'를 이용한 소벨 마스크 동작을 수행한 이미지는 밝기에 따라 '0 내지 255' 사이의 값을 가진다. 이에, 윤곽선 검출부(15)는 최고값인 '255'의 절반인 '128' 미만인 값들을 모두 '0', 즉 검은색으로 처리하고, '128' 이상인 값들만이 표시된 영상을 작성한다. 도 6d에는 윤곽선 검출부(15)에 의하여 '128' 이상인 값들만을 표시하는 영상이 예시되어 있다. 이와 같이 작성된 영상을 통하여, 상기 지폐이미지의 윤곽선이 검출된다. The contour detecting unit 15 combines the vertical component and the horizontal component into one image as shown in FIG. 6C. The image obtained by performing the Sobel mask operation using 'Gx' and 'Gy' has a value between 0 and 255 according to the brightness. Therefore, the contour detecting unit 15 processes all values less than 128, which is half of the maximum value 255, to 0, i.e., black, and creates an image in which only values of 128 or more are displayed. FIG. 6D illustrates an image for displaying only the values of '128' or more by the contour detection unit 15. The outline of the bill image is detected through the thus created image.

제 14단계(S14)에서 최소영역 검출부(16)는 윤곽선 검출부(15)에서 작성된 영상에 X축 및 Y축 방향으로 히스토그램을 작성한다. 도 7a에는 상기 지폐이미지로부터 작성된 히스토그램이 예시되어 있다. 상기 히스토그램은 지폐이미지의 흐름이 많을수록 값이 커진다.In step S14, the minimum area detection unit 16 creates a histogram in the X-axis and Y-axis directions on the image created by the contour detection unit 15. [ FIG. 7A illustrates a histogram created from the image of the banknote. The histogram has a larger value as the flow of banknote images increases.

제 16단계(S16)에서 최소영역 검출부(16)는, 상기 히스토그램 값들의 변화에 따라 상기 지폐이미지의 윤곽선과 만나는 점을 검출하여, 상기 지폐이미지를 포함하는 최소영역을 검출한다. 도 7b에는 히스토그램을 이용하여 최소영역을 검출하는 방법을 설명하는 예시도가 도시되어 있다. 도 7b에 도시된 바와 같이, 최소영역 검출부(16)는 히스토그램 값이 '0' 이외의 값으로 변화한 Y축 상의 '2'지점과 '3'지점 사이와, '6'지점과 '7'지점 사이에서 가로방향으로 탐색을 수행한다. 그리고, 히스토그램 값이 '0' 이외의 값으로 변화한 X축 상의 '2'지점과 '3'지점 사이와, '8'지점과 '9'지점 사이에서 세로방향으로 탐색을 수행한다. 이에 따라, 최소영역 검출부(16)는 상기 지폐이미지의 윤곽선을 포함하는 최소영역을 검출한다. In step S16, the minimum area detection unit 16 detects a point where the contour of the bill image is detected according to the change of the histogram values, and detects a minimum area including the bill image. FIG. 7B shows an exemplary diagram for explaining a method of detecting a minimum area using a histogram. 7B, the minimum area detecting unit 16 detects the minimum area between the '2' point and the '3' point on the Y axis where the histogram value changes to a value other than '0' And performs a search in the horizontal direction between the points. The search is performed in the vertical direction between the '2' point and the '3' point on the X axis where the histogram value changes to a value other than '0', and between the '8' point and the '9' point. Accordingly, the minimum area detection unit 16 detects the minimum area including the contour of the bill image.

제 18단계(S18)에서 회전방향 판단부(17)는, 상기 검출된 최소영역의 각 꼭지점들로부터 상기 지폐이미지의 윤곽선과 만나는 점들, 즉 가상 꼭지점들을 추출한다. 도 8a 내지 8c에는 가상꼭지점을 추출하는 방법을 설명하는 예시도가 도시되어 있다. 도 8a에서, 상기 최소영역의 꼭지점 좌표, 예컨대 A(x1, y1)와 B(x7, y7), C(x5, y5), D(x3, y3)를 이용하여 상기 가상꼭지점의 좌표 E(x2, y2)와 F(x8, y8), G(x6, y6), H(x4, y4)가 검출된다. 이때, y1=y2=y3, x1=x8=x7, y7=y6=y5, x3=x4=x5이다. In step S18, the rotation direction determination unit 17 extracts points, i.e., virtual vertices, which meet the outline of the bill image, from the respective vertices of the detected minimum area. 8A to 8C are diagrams illustrating an example of a method for extracting a virtual vertex. In FIG. 8A, the coordinates E (x2, y3) of the virtual vertex are calculated using the vertex coordinates of the minimum area, for example, A (x1, y1) and B (x7, y7), C , y2), F (x8, y8), G (x6, y6) and H (x4, y4) are detected. At this time, y1 = y2 = y3, x1 = x8 = x7, y7 = y6 = y5, x3 = x4 = x5.

이어서, 제 20단계(S20)에서 회전방향 판단부(17)는, 상기 지폐이미지의 최상단 꼭지점, 즉 점 E를 중심으로 한 좌우측 삼각형 형태의 여백이미지, 즉 1번 영역과 2번 영역의 넓이를 비교한다. 비교결과, 도 8a와 같이 1번 영역의 넓이가 2번 영역보다 넓이가 좁으면, 회전방향 판단부(17)는 상기 지폐이미지가 오른쪽 방향으로 회전된 것으로 판단한다. 반면, 도 8b와 같이 2번 영역의 넓이가 1번 영역보다 좁으면, 회전방향 판단부(17)는 상기 지폐이미지가 왼쪽 방향으로 회전된 것으로 판단한다. Next, in step S20, the rotation direction determination unit 17 determines the width of the left and right triangular-shaped margin images, that is, the widths of the first and second areas around the top vertex of the banknote image, that is, Compare. As a result of the comparison, if the width of the first area is narrower than the width of the second area, the rotation direction determination unit 17 determines that the banknote image is rotated in the right direction as shown in FIG. 8A. On the other hand, if the area of the second area is narrower than the area of the first area as shown in FIG. 8B, the rotating direction determining unit 17 determines that the banknote image is rotated in the leftward direction.

제 22단계(S22)에서 기울기 산출부(19)는, 상기 최소영역의 각 꼭지점들(A, B, C, D)로부터 상기 판단된 회전방향에 기초하여 상기 지폐이미지 꼭지점의 경사각이 큰 방향으로 탐색하여 상기 지폐이미지의 꼭지점을 추출한다. In step S22, the inclination calculating unit 19 calculates the inclination angle of the banknote image vertex from the vertexes A, B, C, and D of the minimum area based on the determined rotation direction And extracts the vertices of the banknote images.

도 9a 내지 도 9c에는 꼭지점을 추정하는 방법을 설명하기 위한 예시도가 도시되어 있다. 도 8b에 도시된 지폐이미지를 확대한 도 9a에서, 상기 최소영역 이미지는 지폐영역 픽셀과 여백영역 픽셀로 구분된다. 이때, 상기 지폐이미지의 좌측으로부터 우측으로, 즉 경사각이 완만한 1번 각도를 이용하여 꼭지점을 탐색하면, 점 2가 아닌 상기 제 16단계(S16)에서 최소영역 검출부(16)에 의하여 검출된 점 1(x2, y2)을 꼭지점으로 인식한다. Figs. 9A to 9C show exemplary diagrams for explaining a method of estimating a vertex. In FIG. 9A where the banknote image shown in FIG. 8B is enlarged, the minimum area image is divided into a banknote area pixel and a blank area pixel. At this time, if the vertex is searched from the left side to the right side of the banknote image, that is, at the angle 1 at which the inclination angle is gentle, the point detected by the minimum area detecting unit 16 in the 16th step (S16) 1 (x2, y2) is recognized as a vertex.

이와 같은 문제점을 해소하기 위하여, 기울기 산출부(19)는 상기 1번 각도에 비해 경사각이 급한 3번 각도를 이용하여 꼭지점을 탐색한다. 예를 들면, 도 9b에 도시된 바와 같이 왼쪽으로 회전된 영상에서, 기울기 산출부(19)는 상대적으로 경사각이 급한 각도를 이용하여 화살표로 표시된 방향, 즉 영상이 회전된 방향과 동일하게 왼쪽 방향으로 탐색하여 꼭지점의 좌표를 추출한다. 또한, 도 9c에 도시된 바와 같이 오른쪽으로 회전된 영상에서, 기울기 산출부(19)는 상대적으로 경사각이 급한 각도를 이용하여 화살표로 표시된 방향, 즉 영상이 회전된 방향과 동일하게 오른쪽 방향으로 탐색하여 꼭지점의 좌표를 추출한다.In order to solve such a problem, the tilt calculating unit 19 searches for a vertex by using an angle of 3, which is tilted relative to the first angle. For example, in the image rotated to the left as shown in Fig. 9B, the tilt calculating section 19 calculates the tilt angle of the image in the direction indicated by the arrow using the angle at which the tilt angle is relatively fast, And extracts the coordinates of the vertices. Further, in the image rotated to the right as shown in Fig. 9C, the tilt calculating section 19 calculates the tilt angle of the image in the direction indicated by the arrow using the angle at which the tilt angle is relatively fast, that is, And extracts the coordinates of the vertices.

제 24단계(S24)에서 기울기 산출부(19)는, 상기 추출된 꼭지점의 좌표들(E, F, G, H)을 이용하여 상기 지폐이미지의 가로길이 및 세로길이를 추정한다. 그리고, 기울기 산출부(19)는 추정된 가로길이 및 세로길이를 상기 수학식 1에 대입하여 상기 지폐이미지의 기울기를 산출한다. In step S24, the slope calculating unit 19 estimates the horizontal length and vertical length of the banknote image using the coordinates (E, F, G, H) of the extracted vertexes. Then, the slope calculating unit 19 calculates the slope of the banknote image by substituting the estimated horizontal length and vertical length into the equation (1).

제 26단계(S26)에서 이미지 검출부(20)는, 상기 산출된 기울기를 보정하도록 상기 추출된 꼭지점들(E, F, G, H) 중에서 어느 하나를 중심으로 상기 지폐이미지 를 회전시킨다. 예를 들면, 이미지 검출부(20)는 상기 지폐이미지가 왼쪽으로 회전된 경우, 도 9b의 점 O(x8, y8)를 중심으로 오른쪽으로 회전시킨다. 반면, 이미지 검출부(20)는 상기 지폐이미지가 오른쪽으로 회전된 경우, 도 9c의 점 O'(x2, y2)를 중심으로 왼쪽으로 회전시킨다. 이와 같이, 기울기를 보정하기 위하여 이미지를 회전시키는 방법은 좌표들을 지나는 직선의 방정식을 이용하거나 최소자승법을 이용할 수 있다. 본 실시 예에서 이미지 검출부(20)는, 기울기가 보정된 지폐이미지를 표시하기 위하여, 새로운 이미지 좌표에 대응되는 데이터를 원본 이미지의 데이터로부터 가져오도록 역방향 매핑한다. 이때, 상기 지폐이미지의 꼭지점 좌표들(E, F, G, H)을 인식한 상태이므로, 상기 이미지 검출부(20)는 지폐이미지 좌표만을 이용하여 지폐이미지를 회전시키므로, 여백이미지와 지폐이미지를 완벽하게 분리한다. 이에 따라, 이미지 검출부(20)는 여백이미지가 제외된 지폐이미지를 검출할 수 있다. In step 26, the image detector 20 rotates the banknote image around any one of the extracted vertices E, F, G, and H to correct the calculated slope. For example, when the bill image is rotated to the left, the image detecting unit 20 rotates to the right about the point O (x8, y8) in Fig. 9B. On the other hand, when the bill image is rotated to the right, the image detecting unit 20 rotates to the left about the point O '(x2, y2) in FIG. 9C. Thus, the method of rotating the image to correct for the tilt may use a linear equation that passes through the coordinates, or may use the least squares method. In this embodiment, the image detecting unit 20 maps the data corresponding to the new image coordinates back to fetch from the data of the original image, in order to display the banknote image with the corrected slope. At this time, because the vertex coordinates (E, F, G, H) of the banknote image are recognized, the image detecting unit 20 rotates the banknote image using only the banknote image coordinates, . Thus, the image detecting section 20 can detect the banknote image excluding the margin image.

도 10a 내지 도 10c에는 이미지 검출과정을 설명하는 예시도가 도시되어 있다. 도 10a에 도시된 바와 같은 지폐이미지의 기울기를 보정하는 경우, 제어부(21)는 도 10b에 도시된 같이, '회전방향:오른쪽, 기울기:14.736495, 회전 중심점:x=61, y=48'이라는 추정된 결과를 표시부(22) 화면에 표시하도록 제어할 수 있다. 그리고, 표시부(22)는 상기 기울기 보정과정을 거쳐 기울기가 보정된 지폐이미지를 도 10c에 도시된 바와 같이 화면에 표시할 수도 있다. Figs. 10A to 10C show an example of explaining the image detection process. 10A, the control unit 21 determines that the slope of the banknote image as shown in FIG. 10A is 'Rotation direction: right, slope: 14.736495, rotation center point: x = 61, y = 48' It is possible to control the display unit 22 to display the estimated result on the screen. Then, the display unit 22 may display the banknote image whose inclination is corrected through the inclination correction process, as shown in FIG. 10C.

상기한 바와 같은 과정을 통하여, 본 발명은 지폐이미지의 히스토그램으로부터 검출된 최소영역을 이용하여 지폐이미지의 기울기를 보정하여 검출하므로, 처 리해야할 계산량을 감소시켜 처리속도가 향상된다.  Through the above process, the present invention corrects the slope of the banknote image using the minimum area detected from the histogram of the banknote image, thereby reducing the calculation amount to be processed and improving the processing speed.

상기의 실시 예에서는 지폐를 이용하여 설명하였으나, 본 발명은 지폐뿐만 아니라, 수표, 티켓, 증명서와 같은 각종 매체의 이미지를 스캔하여 인식하는 매체이미지 검출장치 및 그를 이용한 매체취급시스템에 적용될 수 있다.Although the present invention has been described using the banknote, the present invention can be applied to a medium image detecting apparatus that scans and recognizes images of various media such as checks, tickets, and certificates as well as bills, and a medium handling system using the apparatus.

삭제delete

이상과 같이, 본 발명이 도면에 도시된 실시 예를 참고하여 설명되었으나, 이는 예시적인 것들에 불과하며, 본 발명이 속하는 기술 분야의 통상의 지식을 가진 자라면 본 발명의 요지 및 범위를 벗어나지 않으면서도 다양한 변형, 변경 및 균등한 타 실시 예들이 가능하다는 것을 명백하게 알 수 있을 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 등록 청구범위의 기술적 사상에 의해 정해져야 할 것이다.While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It will be apparent that various modifications, alterations, and other equivalent embodiments are possible. Accordingly, the true scope of the present invention should be determined by the technical idea of the appended claims.

도 1은 일반적인 매체이미지 검출방법을 설명하는 흐름도.BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a flow chart illustrating a general media image detection method.

도 2a 내지 도 2e는 일반적인 매체이미지 검출방법을 설명하기 위한 예시도.2A to 2E are diagrams for explaining a general medium image detection method;

도 3은 본 발명의 바람직한 실시 예에 따른 매체이미지 검출장치의 블록 구성도.3 is a block diagram of a media image detecting apparatus according to a preferred embodiment of the present invention.

도 4는 본 발명의 바람직한 실시 에에 따른 매체이미지 검출방법을 단계별로 설명하는 흐름도.FIG. 4 is a flow chart illustrating a step of a media image detection method according to a preferred embodiment of the present invention; FIG.

도 5a 내지 도 5c는 매체이미지 검출장치에서 인식된 매체이미지의 예시도.Figures 5A-5C illustrate examples of media images recognized in a media image detection device.

도 6a 내지 도 6d는 소벨 마스크를 수행한 매체이미지의 예시도.6A to 6D are exemplary views of a medium image in which a Sobel mask is performed.

도 7a와 도 7b는 최소영역을 검출하는 방법을 설명하기 위한 예시도.FIGS. 7A and 7B are exemplary diagrams for explaining a method of detecting a minimum area. FIG.

도 8a와 도 8c는 회전방향을 추정하는 방법을 설명하기 위한 예시도.8A and 8C are diagrams for explaining a method of estimating the direction of rotation;

도 9a 내지 도 9c는 꼭지점 추출방법을 설명하기 위한 예시도.9A to 9C are diagrams for explaining a method of extracting a vertex.

도 10a 내지 도 10c는 이미지 검출방법을 설명하기 위한 예시도.10A to 10C are exemplary diagrams for explaining an image detecting method.

삭제delete

《도면의 주요 부분에 대한 부호의 설명》DESCRIPTION OF THE REFERENCE NUMERALS to the main parts of the drawings "

11 : 지폐투입구 12 : 이송모듈 11: bill insertion slot 12: conveying module

13 : LED 14 : 이미지센서13: LED 14: Image sensor

15 : 윤곽선 검출부 16 : 최소영역 검출부15: contour detection unit 16: minimum area detection unit

17 : 회전방향 판단부 18 : 꼭지점 추출부17: Rotation direction determination unit 18: Vertex point extraction unit

19 : 기울기 산출부 20 : 이미지 검출부19: slope calculating section 20: image detecting section

21 : 제어부 22 : 표시부21: control unit 22: display unit

Claims (25)

매체이미지의 윤곽선을 검출하는 윤곽선 검출부, An outline detector for detecting an outline of the medium image, 상기 검출된 윤곽선 내에서 히스토그램 값을 이용하여 상기 매체이미지가 포함된 최소영역의 이미지를 검출하는 최소영역 검출부, A minimum area detector for detecting an image of a minimum area including the medium image using a histogram value within the detected contour, 상기 검출된 최소영역의 회전방향을 판단하는 회전방향 판단부,A rotation direction determination unit for determining a rotation direction of the detected minimum area, 상기 회전방향에 기초하여 상기 매체이미지의 꼭지점을 추출하는 꼭지점 추출부,A vertex extracting unit for extracting a vertex of the medium image based on the rotation direction, 상기 추출된 꼭지점의 좌표를 이용하여 상기 매체이미지의 기울기를 산출하는 기울기 산출부, 그리고A slope calculating unit for calculating a slope of the medium image by using the coordinates of the extracted vertex, 상기 산출된 기울기를 보정하여 여백이미지가 제외된 상기 매체이미지만을 검출하는 이미지 검출부를 포함하여 구성되는 것을 특징으로 하는 매체이미지 검출장치.And an image detecting unit for correcting the calculated inclination to detect only the medium image from which the margin image is excluded. 삭제delete 삭제delete 제 1항에 있어서, 상기 회전방향 판단부는,The apparatus according to claim 1, 상기 매체이미지의 최상위 꼭지점을 중심으로 한 좌우측 공간의 넓이를 비교하여 상기 매체이미지의 회전방향을 판단하고, Determining a direction of rotation of the medium image by comparing widths of left and right spaces around the top vertex of the medium image, 상기 좌우측 공간 중에서 공간이 넓게 위치한 방향으로 회전된 것으로 판단하는 것을 특징으로 하는 매체이미지 검출장치.And determines that the space is rotated in a direction in which the space is located in the left and right spaces. 삭제delete 제 1항에 있어서, 상기 꼭지점 추출부는,The apparatus of claim 1, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향에 기초하여 경사각이 큰 방향으로 탐색하여 상기 매체이미지의 꼭지점을 추출하는 것을 특징으로 하는 매체이미지 검출장치. And extracts a vertex of the medium image by searching the vertices of the minimum area in a direction having a large inclination angle based on the determined rotation direction. 제 1항에 있어서, 상기 꼭지점 추출부는, The apparatus of claim 1, 상기 최소영역의 각 꼭지점들로부터 상기 판단된 회전방향으로 상기 매체이미지의 꼭지점을 탐색하여 추출하는 것을 특징으로 하는 매체이미지 검출장치. And searching for and extracting a vertex of the medium image in the determined rotation direction from each vertex of the minimum area. 제 1항에 있어서, 상기 기울기 산출부는,The apparatus according to claim 1, 상기 추출된 매체이미지의 꼭지점 좌표들을 이용하여 상기 매체이미지의 가로 및 세로길이를 추정하고, 추정된 가로길이 및 세로길이에 기초하여 매체이미지의 기울기를 산출하는 매체이미지 검출장치.Estimating the horizontal and vertical lengths of the medium image using the vertex coordinates of the extracted medium image, and calculating the slope of the medium image based on the estimated horizontal length and vertical length. 제 1항에 있어서, 상기 이미지 검출부는,The image processing apparatus according to claim 1, 여백이미지를 제외한 매체이미지만을 검출하는 것을 특징으로 하는 매체이미지 검출장치. And detects only the medium image excluding the margin image. 제 9항에 있어서, 상기 이미지 검출부는,10. The image pickup apparatus according to claim 9, 상기 최소영역 이미지의 좌측 상위 꼭지점 좌표를 중심으로 역방향 매핑하는 것을 특징으로 하는 매체이미지 검출장치. Wherein the backward mapping is performed with respect to the upper left vertex coordinates of the minimum area image. 제 1항 내지 제 10항 중 어느 한 항으로 이루어진 매체이미지 검출장치와;A media image detection apparatus comprising: a media image detection apparatus according to any one of claims 1 to 10; 상기 매체이미지 검출장치로부터 인식된 매체이미지를 이용하여 상기 매체의 수납, 출납을 제어하는 제어부를 포함하여 구성되는 것을 특징으로 하는 매체취급시스템.And a control unit for controlling the storage, receipt and delivery of the medium by using the medium image recognized by the medium image detection apparatus. 삭제delete 매체이미지의 윤곽선을 검출하는 단계,Detecting a contour of the media image, 상기 검출된 윤곽선 내에서 히스토그램 값을 이용하여 상기 매체이미지가 포함된 최소영역의 이미지를 검출하는 단계, Detecting an image of a minimum area including the medium image using the histogram value within the detected contour, 상기 검출된 최소영역의 회전방향을 판단하는 단계,Determining a rotation direction of the detected minimum area, 상기 회전방향에 기초하여 추출된 꼭지점의 좌표를 이용하여 상기 매체이미지의 기울기를 산출하는 단계, 그리고Calculating a slope of the medium image using the coordinates of the vertex extracted based on the rotation direction, and 상기 산출된 기울기를 보정하여 여백이미지가 제외된 상기 매체이미지만을 검출하는 단계를 포함하는 것을 특징으로 하는 매체이미지 검출방법.And correcting the calculated slope to detect only the medium image from which the margin image is excluded. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020070129222A 2007-12-12 2007-12-12 Apparatus and method for media image detection, and system with the same Expired - Fee Related KR101397905B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070129222A KR101397905B1 (en) 2007-12-12 2007-12-12 Apparatus and method for media image detection, and system with the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070129222A KR101397905B1 (en) 2007-12-12 2007-12-12 Apparatus and method for media image detection, and system with the same

Publications (2)

Publication Number Publication Date
KR20090062115A KR20090062115A (en) 2009-06-17
KR101397905B1 true KR101397905B1 (en) 2014-05-20

Family

ID=40991400

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070129222A Expired - Fee Related KR101397905B1 (en) 2007-12-12 2007-12-12 Apparatus and method for media image detection, and system with the same

Country Status (1)

Country Link
KR (1) KR101397905B1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101384906B1 (en) * 2012-08-06 2014-04-11 주식회사 엘지씨엔에스 Apparatus and method for processing image
KR101385773B1 (en) * 2012-10-04 2014-04-17 기산전자 주식회사 Apparatus for recognizing bill type using terahertz electromagnetic wave and method thereof
KR101513431B1 (en) * 2013-10-17 2015-04-23 (주)다하미 커뮤니케이션즈 Method for detecting boundary of image automatically, system and method for processing image using that
KR101590715B1 (en) 2014-06-30 2016-02-01 주식회사 엘지씨엔에스 Apparatus and method for recognizing media, financial device
KR102405715B1 (en) * 2015-09-16 2022-06-09 기산전자(주) Banknote processing device and control method thereof
KR102007685B1 (en) * 2019-04-10 2019-08-06 주식회사서영컴퍼니 Hybrid counterfeit discrimination apparatus, and system thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05258146A (en) * 1992-03-13 1993-10-08 Glory Ltd Skew data correction device for paper sheets
JPH11219460A (en) * 1998-01-30 1999-08-10 Fuji Electric Co Ltd Slant image processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05258146A (en) * 1992-03-13 1993-10-08 Glory Ltd Skew data correction device for paper sheets
JPH11219460A (en) * 1998-01-30 1999-08-10 Fuji Electric Co Ltd Slant image processing method

Also Published As

Publication number Publication date
KR20090062115A (en) 2009-06-17

Similar Documents

Publication Publication Date Title
US7457440B2 (en) Method of determining usability of a document image and an apparatus therefor
KR101397905B1 (en) Apparatus and method for media image detection, and system with the same
US7729536B2 (en) Boundary extracting method, program, and device using the same
JP6139658B2 (en) Character recognition method and character recognition system
US20020009229A1 (en) Image processing apparatus and methods for pattern recognition
EP2682901A1 (en) Text string cut-out method and text string cut-out device
EP2650821A1 (en) Text image trimming method
WO2016018987A1 (en) Detecting specified image identifiers on objects
WO2011011353A2 (en) Stereoscopic form reader
US8538170B2 (en) System and method for document location and recognition
JP2007272348A (en) Character string recognition method and character string recognition device
US6880758B2 (en) System and method for identifying object information
KR20190119469A (en) Serial number rcognition Apparatus and method for paper money using machine learning
US20060279767A1 (en) Method and apparatus for detecting specific pattern and copying machine including the same
KR101387858B1 (en) Apparatus for media recognition and method for media access direction estimating with the same
KR100888674B1 (en) Method of measuring similarity of bills using frequency domain
KR101428054B1 (en) Media image detection apparatus and method, and media handling system using the same
JP3777775B2 (en) Inclined image processing method
KR101385388B1 (en) Apparatus for media recognition and method for media kind distinction with the same
KR101397860B1 (en) Apparatus for media recognition, method for media damage estimating and terminal with the same
JP3711737B2 (en) Method for detecting tilt angle of imaging medium
KR101387875B1 (en) Apparatus for media recognition and method for media access direction estimating with the same
JP2003281593A (en) Coin identification device, coin registration device, coin determination device, and coin determination method
CN110969757A (en) Multi-country banknote type rapid identification technology
KR101408419B1 (en) Method and apparatus for estimating of medium skew, apparatus for medium recognizing

Legal Events

Date Code Title Description
PA0109 Patent application

St.27 status event code: A-0-1-A10-A12-nap-PA0109

PG1501 Laying open of application

St.27 status event code: A-1-1-Q10-Q12-nap-PG1501

R17-X000 Change to representative recorded

St.27 status event code: A-3-3-R10-R17-oth-X000

A201 Request for examination
E13-X000 Pre-grant limitation requested

St.27 status event code: A-2-3-E10-E13-lim-X000

P11-X000 Amendment of application requested

St.27 status event code: A-2-2-P10-P11-nap-X000

P13-X000 Application amended

St.27 status event code: A-2-2-P10-P13-nap-X000

PA0201 Request for examination

St.27 status event code: A-1-2-D10-D11-exm-PA0201

PN2301 Change of applicant

St.27 status event code: A-3-3-R10-R11-asn-PN2301

R19-X000 Request for party data change rejected

St.27 status event code: A-3-3-R10-R19-oth-X000

N231 Notification of change of applicant
PN2301 Change of applicant

St.27 status event code: A-3-3-R10-R13-asn-PN2301

St.27 status event code: A-3-3-R10-R11-asn-PN2301

R17-X000 Change to representative recorded

St.27 status event code: A-3-3-R10-R17-oth-X000

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

St.27 status event code: A-1-2-D10-D21-exm-PE0902

E13-X000 Pre-grant limitation requested

St.27 status event code: A-2-3-E10-E13-lim-X000

P11-X000 Amendment of application requested

St.27 status event code: A-2-2-P10-P11-nap-X000

P13-X000 Application amended

St.27 status event code: A-2-2-P10-P13-nap-X000

R18-X000 Changes to party contact information recorded

St.27 status event code: A-3-3-R10-R18-oth-X000

R18-X000 Changes to party contact information recorded

St.27 status event code: A-3-3-R10-R18-oth-X000

PE0801 Dismissal of amendment

St.27 status event code: A-2-2-P10-P12-nap-PE0801

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

St.27 status event code: A-1-2-D10-D22-exm-PE0701

GRNT Written decision to grant
PR0701 Registration of establishment

St.27 status event code: A-2-4-F10-F11-exm-PR0701

PR1002 Payment of registration fee

St.27 status event code: A-2-2-U10-U11-oth-PR1002

Fee payment year number: 1

PG1601 Publication of registration

St.27 status event code: A-4-4-Q10-Q13-nap-PG1601

R18-X000 Changes to party contact information recorded

St.27 status event code: A-5-5-R10-R18-oth-X000

P22-X000 Classification modified

St.27 status event code: A-4-4-P10-P22-nap-X000

FPAY Annual fee payment

Payment date: 20170403

Year of fee payment: 4

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 4

PN2301 Change of applicant

St.27 status event code: A-5-5-R10-R11-asn-PN2301

PN2301 Change of applicant

St.27 status event code: A-5-5-R10-R14-asn-PN2301

P22-X000 Classification modified

St.27 status event code: A-4-4-P10-P22-nap-X000

R18-X000 Changes to party contact information recorded

St.27 status event code: A-5-5-R10-R18-oth-X000

FPAY Annual fee payment

Payment date: 20180502

Year of fee payment: 5

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 5

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 6

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 7

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 8

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 9

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 10

PC1903 Unpaid annual fee

St.27 status event code: A-4-4-U10-U13-oth-PC1903

Not in force date: 20240515

Payment event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE

PC1903 Unpaid annual fee

St.27 status event code: N-4-6-H10-H13-oth-PC1903

Ip right cessation event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE

Not in force date: 20240515