WO2014189273A1 - Apparatus and method for automatically generating/transmitting ussd charge code for mobile communication prepaid scratch card - Google Patents

Apparatus and method for automatically generating/transmitting ussd charge code for mobile communication prepaid scratch card Download PDF

Info

Publication number
WO2014189273A1
WO2014189273A1 PCT/KR2014/004522 KR2014004522W WO2014189273A1 WO 2014189273 A1 WO2014189273 A1 WO 2014189273A1 KR 2014004522 W KR2014004522 W KR 2014004522W WO 2014189273 A1 WO2014189273 A1 WO 2014189273A1
Authority
WO
WIPO (PCT)
Prior art keywords
ussd
scratch
image
prepaid card
serial number
Prior art date
Application number
PCT/KR2014/004522
Other languages
French (fr)
Korean (ko)
Inventor
한동관
Original Assignee
Han Dong Kwan
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 Han Dong Kwan filed Critical Han Dong Kwan
Publication of WO2014189273A1 publication Critical patent/WO2014189273A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/10Account details or usage
    • H04M17/106Account details or usage using commercial credit or debit cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/02Coin-freed or check-freed systems, e.g. mobile- or card-operated phones, public telephones or booths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/02Coin-freed or check-freed systems, e.g. mobile- or card-operated phones, public telephones or booths
    • H04M17/026Constructional features
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/30Prepayment of wireline communication systems, wireless communication systems or telephone systems using a code
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/30Prepayment of wireline communication systems, wireless communication systems or telephone systems using a code
    • H04M17/301Code input or reading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/30Prepayment of wireline communication systems, wireless communication systems or telephone systems using a code
    • H04M17/301Code input or reading
    • H04M17/304Optical code recognition [OCR], e.g. bar code reader

Definitions

  • a USIM chip for each carrier is inserted into a smart phone, and basic information such as user information and a mobile communication number is embedded in the SIM chip. Simply insert the SIM chip into any smartphone and use it like your own phone.
  • 1 is a physical example of a mobile communication scratch prepaid card.
  • the serial number is composed of approximately 14 to 16 digits, very long and difficult to identify.
  • the user inputs and transmits serial numbers one by one to the determined USSD code format. At this time, it is not easy to input correctly without an error, and there is no way to correct again even when an error is inputted. If the acknowledgment message is not received, the USSD protocol message should be input again from the beginning.
  • An object of the present invention is to provide a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card.
  • a method of automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card the camera module setting and photographing a scratch prepaid card to automatically turn off a flash; Recognizing, by the image recognition module, a serial number of 14 to 16 digits indicated in a white box in the image of the photographed scratch prepaid card; Generating a USSD charging code by converting the recognized serial number into numeric data and inserting the converted numeric data into a predetermined transmission format for each mobile carrier according to an unspecified supplementary service data (USSD) protocol;
  • the code transmission module may be configured to include transmitting the generated USSD charging code to the mobile communication company server by pressing a call button by the user to charge the voice call capacity or data capacity of the smart phone.
  • the USSD charging code, * the identifier of the mobile carrier consisting of three digits, a prefix consisting of *, the inserted numeric data, and a suffix consisting of # (suffix) Can be.
  • each pixel of the 8-bit grayscale image is converted to a value of 0 or 255 based on a predetermined threshold by using a binarization / threshold algorithm.
  • an adaptive threshold algorithm is used to scan in which direction the average brightness value changes in the grayscale image, and then calculate the size of a block having a value within a predetermined error range.
  • the grayscale image may be classified by size of the block to set a local threshold for each block and convert the grayscale image into a value of 0 or 255 for each pixel based on the set local threshold.
  • 1 is a physical example of a mobile communication scratch prepaid card.
  • FIG. 2 is a block diagram of a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card according to an embodiment of the present invention.
  • 3A to 3E are images after processing of a serial number recognition algorithm according to an embodiment of the present invention.
  • 4A and 4B are images of a photographing screen according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of an image recognition processing process of a mobile communication scratch prepaid card according to an embodiment of the present invention.
  • the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component.
  • FIG. 2 is a block diagram of a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card according to an embodiment of the present invention.
  • the USSD charging code automatic generation / transmission device 100 for mobile communication scratch prepaid card 100 (hereinafter, referred to as an “USSD charging code automatic generation / transmission device”) according to an embodiment of the present invention is a camera module. 110, the image recognition module 120, the code generation module 130, and the code transmission module 140 may be configured to include.
  • the USSD charging code generation / transmission device 100 is configured to automatically photograph and recognize the serial number of the scratch prepaid card once and automatically generate and automatically transmit the USSD charging code using the recognized serial number.
  • the USSD charging code automatic generation / transmission device 100 may be implemented as an application on a smart phone.
  • the camera module 110 is configured to photograph the scratch prepaid card.
  • the flash is preferably set to automatically turn off. This is because the flash light is reflected from the scratch prepaid card made of plastic and the serial number may not be recognized properly.
  • the image recognition module 120 may be configured to recognize a 14 to 16 digit serial number indicated in a white box in the image of the scratch prepaid card photographed by the camera module 110.
  • the image recognition module 120 may automatically detect and recognize a serial number on an image using various algorithms. Even if the automatic detection, the user can be implemented to facilitate the detection of the position of the serial number by touching the position of the serial number by hand in the captured image on the touch screen.
  • the image recognition module 120 converts an image of a scratch prepaid card taken by the camera module 110 into an 8-bit grayscale image composed of 256 pixels from a color RGB image. Can be configured.
  • the image recognition module 120 may be configured to detect four edges of the scratch prepaid card using an edge detection algorithm in the grayscale image.
  • the edge detection algorithm detects the threshold as a corner when the brightness value changes abruptly in adjacent pixels. This is suitable for approximating the outline of an image using a kind of differential operator as an algorithm. Canny Edge Detector or Shen-Castan Edge Detector can be used.
  • the image recognition module 120 may be configured to correct the intersection of each corner into a rectangular shape using a perspective correction algorithm from the detected four corners. This is to correct the image taken at an oblique angle as if it was taken vertically to properly recognize the image.
  • the image recognition module 120 is configured to detect an edge of a white box marked with a serial number by using an edge detection algorithm and a bounding edge detection algorithm for checking whether the edge is closed. Can be.
  • the white box is detected by whether the border of the white box is broken or closed. Detect all bounding edges in the image.
  • the image recognition module 120 may be configured to convert each pixel of the 8-bit grayscale image to a value of 0 or 255 based on a predetermined threshold using a binarization / threshold algorithm. Can be. In the gray scale image, since one pixel of data is composed of 8 bits, each pixel may have any one value of 0 to 255.
  • the image recognition module 120 converts each pixel of the image represented by 256 values into two values of 0 or 255 based on a predetermined threshold using a dualization / threshold algorithm. In other words, it can be converted to a black and white image.
  • the brightness of each part of the image may be different according to the position of the illumination.
  • the image recognition module 120 scans in which direction the average brightness value changes in the grayscale image using an adaptive threshold algorithm and calculates the size of the block having a value within a predetermined error range. And dividing the grayscale image by the size of the block to set each local threshold for each block and convert the grayscale image into a value of 0 or 255 for each pixel based on the set local threshold. That is, in the shadowed block, the threshold will be darker, and in the lighter block, the brighter value will be set as the threshold.
  • the image recognition module 120 may be configured to recognize a connection area by using a connected region algorithm to recognize a serial number in a white box.
  • the code generation module 130 converts the serial number recognized by the image recognition module 120 into numeric data, and converts the converted numeric data for each mobile carrier according to the unspecified supplementary service data (USSD) protocol. Insert into a predetermined transmission format to generate a USSD charging code.
  • USB supplementary service data
  • the USSD charging code may be composed of *, an identifier of a corresponding mobile carrier composed of three digits, a prefix composed of *, and a suffix composed of numeric data and #.
  • the identifier for each mobile carrier must be stored in advance.
  • the code transmission module 140 presses a call button or automatically transfers the USSD charging code generated by the code generation module 130 to the mobile communication server 200 to charge the voice call capacity or the data capacity of the smart phone. Configured to transmit.
  • 3A to 3E show an image after processing of a serial number recognition algorithm according to an embodiment of the present invention.
  • 3A is a photographed image of the scratch prepaid card, which is photographed at an oblique angle.
  • 3B shows an image obtained by applying a perspective correction algorithm and rotating the image taken at an angle.
  • 3C illustrates that a white box in which a serial number is indicated is detected by using a bounding edge detection algorithm or the like.
  • FIG. 3D shows a background and a number of white boxes separated using a dualization / threshold algorithm
  • FIG. 3E shows a serial number recognized and outputted as numerical data using a connection area algorithm.
  • 4A and 4B are images of a photographing screen according to an embodiment of the present invention.
  • a white box marked with a serial number is photographed by matching a rectangular plate on a touch screen.
  • the user is configured to photograph by adjusting the direction of the camera module 111 so that the rectangular plate is matched with the white box of the prepaid card.
  • the camera module 110 focuses on a rectangular plate, that is, a white box, and is configured to display an area other than the rectangular plate as another alternative screen.
  • the image recognition module 120 recognizes and displays a serial plate in a rectangular plate, that is, a white box.
  • the user is configured to check the serial number recognized on the screen and determine whether to transmit.
  • the camera module 110 may be configured to photograph again.
  • a problem may occur such that an image photographed by the camera module 110 is out of focus or shaken, and may be photographed several times consecutively using the camera module 110 and recognized by the image recognition module 120. It can be configured to be.
  • focus is selected on the best photographed and correctly recognized serial number among the images properly captured and the images captured by the camera module 110 and the serial numbers recognized by the image recognition module 120. Can be sent.
  • FIG. 5 is a flowchart of a method for automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card according to an embodiment of the present invention.
  • the camera module 110 sets and photographs a scratch prepaid card to automatically turn off a flash (S101).
  • the image recognition module 120 recognizes a serial number of 14 to 16 digits indicated in a white box in the image of the scratch prepaid card photographed by the camera module 110 (S102).
  • the code generation module 130 converts the previously recognized serial number into numeric data, and inserts the converted numeric data into a predetermined transmission format for each mobile carrier according to the unspecified supplementary service data (USSD) protocol to charge the USSD charging code. To generate (S103).
  • USSD supplementary service data
  • the USSD charging code may include *, an identifier of a corresponding mobile carrier composed of 3 digits, a prefix composed of *, the inserted numeric data, and a suffix composed of #. have.
  • the code transmission module 140 transmits the previously generated USSD charging code to the mobile communication company server 200 by pressing the call button to charge the voice call capacity or data capacity of the smart phone (S104).
  • FIG. 6 is a flowchart of an image recognition processing process of a mobile communication scratch prepaid card according to an embodiment of the present invention.
  • the image recognition module 120 recognizes a serial number of 14 to 16 digits marked in a white box in an image of a scratch prepaid card. It may consist of steps.
  • the image of the scratch prepaid card photographed by the camera module 110 is converted into an 8-bit grayscale image composed of 256 pixels from the RGB image (S102a).
  • intersection of each corner is corrected to a rectangular shape by using a perspective correction algorithm from the detected four corners (S102c).
  • the edge of the white box is detected using an edge detection algorithm and a bounding edge detection algorithm for checking whether the edge is closed seamlessly (S102d).
  • each pixel of the 8-bit grayscale image is converted to a value of 0 or 255 based on a predetermined threshold using a binarization / threshold algorithm (S102e).
  • an adaptive threshold algorithm is used to scan in which direction the average brightness value changes in the grayscale image, and then determine the size of the block having a value within a predetermined error range.
  • the grayscale image may be configured to calculate and divide the grayscale image by the size of the block, to set each local threshold for each block, and to convert the pixel to a value of 0 or 255 for each pixel based on the set local threshold.
  • serial number in the white box is recognized using a connected region algorithm (S102f).
  • the present invention serves to facilitate the spread and growth of the mobile communication service industry by playing a role of making the use of the mobile scratch scratch prepaid card, which is one of the sales methods of the existing GSM mobile communication prepaid mobile communication service, easier and more convenient.

Abstract

Disclosed are an apparatus and a method for automatically generating/transmitting a USSD charge code for a mobile communication prepaid scratch card. A smart phone comprises: a camera module for photographing a prepaid scratch card; an image recognition module for recognizing a 14 to 16 digit serial number marked within a white box in an image of the photographed prepaid scratch card; a code generation module for converting the recognized serial number into numeric data and inserting the converted numeric data into a transport format predetermined for each mobile communication company according to a unspecified supplementary service data (USSD) protocol, so as to generate a USSD charge code; and a code transmission module for transmitting the generated USSD charge code to a mobile communication company server by pressing a call button by a user to charge a voice call capacity or a data capacity of the smart phone, wherein the USSD charge code includes a prefix consisting of *, an identifier of the corresponding mobile communication company of a 3 digit number, and *, the inserted numeric data, and a suffix consisting of "#".

Description

[규칙 제26조에 의한 보정 07.08.2014] 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치 및 방법[Correction by Rule 26.08.2014] [Automatic generation / transmitting device and method of USB charging code for mobile communication scratch prepaid card
본 발명은 코드 생성/송신 장치 및 방법에 관한 것으로서, 좀 더 구체적으로는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for generating a code, and more particularly, to an apparatus and method for automatically generating and transmitting a USSD charging code for a mobile communication scratch prepaid card.
지에스엠(GSM) 방식의 이동통신 서비스에서는 통신사별 유심(USIM) 칩을 스마트 폰에 삽입하여 이용하며, 유심 칩 내에는 사용자 정보, 이동통신 번호 등의 기본 정보들이 내장되어 있다. 유심 칩을 어느 스마트 폰이든 삽입하기만 하면 자신의 휴대폰처럼 사용할 수 있다.In the GSM type mobile communication service, a USIM chip for each carrier is inserted into a smart phone, and basic information such as user information and a mobile communication number is embedded in the SIM chip. Simply insert the SIM chip into any smartphone and use it like your own phone.
그리고 지에스엠 방식의 통신 서비스 시장에서는 유심 칩의 정보를 이용하여 음성 통화량이나 데이터 통화량을 선불 충전하여 이용하는 방식이 많이 이용되고 있다. 편의점에서 선불 카드를 구입하여 선불 카드에 기입된 일련 번호를 이동통신사 서버로 송신하면 자동으로 선불 충전이 되는 방식이다. 도 1을 참조하여 더 설명한다.In the communication service market of the SM method, a method of using a prepaid charge of a voice call amount or a data call amount by using information of a SIM chip is widely used. If you purchase a prepaid card at a convenience store and send the serial number written on the prepaid card to the mobile carrier server, the prepaid card is automatically charged. This is further described with reference to FIG. 1.
도 1은 이동통신 스크래치 선불 카드의 실물 예시도이다.1 is a physical example of a mobile communication scratch prepaid card.
도 1을 참조하면, 이동통신 스크래치 선불 카드로서 손톱이나 동전 등으로 스크래치(scratch)된 상태에서 일련 번호(serial number)가 표시되어 있다. 그리고 그 아래에는 "*134* serial number # Send"라고 기재되어 있다. 이는 일련 번호를 송신하는 방법을 기재한 것이다. 즉, 사용자는 선불 카드를 스크래치하여 표시된 하얀 박스 내 숫자를 *134* 다음에 입력하고 #을 마지막으로 입력하여 휴대폰 상에서 송신하면 이동통신사 서버에서 수신하여 사용자의 이동통신번호에 대한 선불 충전을 하고 선불 금액에 상당하는 데이터 통화량이나 음성 통화량을 제공한다.Referring to FIG. 1, a serial number is displayed as a mobile communication scratch prepaid card while being scratched with a fingernail or a coin. And below that it says "* 134 * serial number #Send". This describes how to send a serial number. In other words, the user scratches the prepaid card, enters the number in the white box displayed after * 134 * and finally enters # to send it on the mobile phone. Provides data call volume or voice call amount equivalent to amount.
여기에서, "*134* serial number #"는 USSD(unspecified supplementary service data) 프로토콜의 송신 포맷으로서, *134*는 해당 프로토콜의 프리픽스(prefix)로서 134는 이동통신 사업자를 식별하기 위한 식별자이다. 그리고 #은 USSD 프로토콜 메시지의 종결자인 서픽스(suffix)이다.Here, "* 134 * serial number #" is a transmission format of an unspecified supplementary service data (USSD) protocol, * 134 * is a prefix of the protocol, and 134 is an identifier for identifying a mobile communication provider. And # is a suffix that is the terminator of the USSD protocol message.
그런데, 도 1에서 보듯이 일련 번호는 대략 14자리 내지 16자리의 숫자로 구성되어 매우 길고 식별하기 어렵다. 사용자는 정해진 USSD 코드 포맷에 일련 번호를 하나씩 눈으로 확인하여 입력하여 송신한다. 이때, 제대로 오류없이 입력하기 쉽지 않으며 잘못 입력하여 송신한 경우에도 다시 정정할 방법이 없다. 승인(ack) 메시지를 받지 못한 경우에는 다시 처음부터 USSD 프로토콜 메시지를 입력하여 보내야 한다.However, as shown in Figure 1, the serial number is composed of approximately 14 to 16 digits, very long and difficult to identify. The user inputs and transmits serial numbers one by one to the determined USSD code format. At this time, it is not easy to input correctly without an error, and there is no way to correct again even when an error is inputted. If the acknowledgment message is not received, the USSD protocol message should be input again from the beginning.
이와 같이, 시력이 좋지 않거나 시력이 좋더라도 한 번에 오류없이 입력하기가 쉽지 않고 수차례 반복 입력하기 일쑤이므로 매우 불편학다.As described above, even if the vision is poor or good vision, it is very inconvenient because it is not easy to input without error at once and is repeatedly input several times.
그러므로, 오류없이 한 번에 USSD 프로토콜 메시지를 생성하여 송신할 수 있는 방안이 요구된다.Therefore, there is a need for a method that can generate and transmit a USSD protocol message at one time without error.
본 발명의 목적은 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치를 제공하는 데 있다.An object of the present invention is to provide a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card.
본 발명의 다른 목적은 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법을 제공하는 데 있다.Another object of the present invention is to provide a method for automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card.
상술한 본 발명의 목적에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치는, 스마트 폰에 있어서, 스크래치 선불 카드를 촬영하는 카메라 모듈; 상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 영상 인식 모듈; 상기 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성하는 코드 생성 모듈; 상기 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누름으로써 상기 생성된 USSD 충전 코드를 상기 이동통신사 서버로 송신하는 코드 송신 모듈을 포함하도록 구성될 수 있다.The USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card according to the object of the present invention described above comprises: a camera module for photographing a scratch prepaid card; An image recognition module for recognizing a serial number of 14 to 16 digits written in a white box from the image of the scratch prepaid card; A code generation module for converting the recognized serial number into numeric data and inserting the converted numeric data into a predetermined transmission format for each mobile carrier according to an unspecified supplementary service data (USSD) protocol to generate a USSD charging code; It may be configured to include a code transmitting module for transmitting the generated USSD charging code to the mobile communication company server by pressing a call button to charge the voice call capacity or data capacity of the smart phone.
여기에서, 상기 USSD 충전 코드는, *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와, 상기 삽입된 숫자 데이터와, #로 구성되는 서픽스(suffix)로 구성될 수 있다.Here, the USSD charging code is a *, the identifier of the mobile carrier consisting of three digits, a prefix consisting of *, the inserted numeric data, and a suffix consisting of # Can be configured.
그리고 상기 카메라 모듈은, 플래시(flash)가 꺼지도록 자동으로 설정되도록 구성될 수 있다.The camera module may be configured to be set automatically to turn off a flash.
한편, 상기 카메라 모듈은, 터치스크린 상에 상기 하얀 박스(box)를 캡쳐(capture)하기 위한 직사각형 플레이트를 표기하고, 사용자에 의해 상기 직사각형 플레이트에 상기 하얀 박스가 일치되도록 방향이 조절되면 상기 직사각형 플레이트에 초점을 맞추고 상기 직사각형 플레이트 이외의 영역은 다른 화면으로 감추어 표시한 후 촬영하도록 구성될 수 있으며, 상기 영상 인식 모듈은, 상기 직사각형 플레이트 내의 상기 일련 번호(serial number)를 인식하여 표시하고, 표시된 일련 번호를 상기 사용자가 확인할 수 있도록 구성될 수 있다.Meanwhile, the camera module displays a rectangular plate for capturing the white box on the touch screen, and when the direction is adjusted so that the white box matches the rectangular plate by the user, the rectangular plate. The image recognition module recognizes and displays the serial number in the rectangular plate, and displays a region of the rectangular plate. The number may be configured to be identified by the user.
다른 한편, 상기 영상 인식 모듈은, 상기 카메라 모듈에서 촬영된 스크래치 선불 카드의 이미지를 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환하고, 변환된 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 상기 스크래치 선불 카드의 네 모서리를 검출하고, 상기 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정하고, 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 상기 하얀 박스의 테두리를 검출하고, 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 상기 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환하며, 고르지 못한 조명 하에서 촬영된 경우에는 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 상기 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 상기 그레이스케일 이미지를 상기 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하도록 구성될 수 있다.On the other hand, the image recognition module converts the image of the scratch prepaid card photographed by the camera module into an 8-bit grayscale image composed of 256 pixels from the RGB image, and converted In the grayscale image, four edges of the scratch prepaid card are detected by using an edge detection algorithm, and the intersections of the corners are rectangular by using a perspective correction algorithm from the detected four edges. The edges of the white box using edge detection algorighm and a bounding edge detection algorithm that checks whether the edge is closed seamlessly, and binarization / the 8-bit grayscale using a threshold algorithm Each unknown pixel is converted to a value of 0 or 255 based on a predetermined threshold, and when photographed under uneven lighting, an average threshold value in the grayscale image is obtained by using an adaptive threshold algorithm. After scanning in which direction it is changed, the size of a block having a value within a predetermined error range is calculated, the grayscale image is divided by the size of the block, each local threshold is set for each corresponding block, and the set local It may be configured to convert a value of 0 or 255 for each pixel based on the threshold value.
상술한 본 발명의 다른 목적에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법은, 카메라 모듈이 스크래치 선불 카드를 플래시(flash)를 자동으로 꺼지도록 설정하고 촬영하는 단계; 영상 인식 모듈이 상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 단계; 코드 생성 모듈이 상기 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성하는 단계; 코드 송신 모듈이 상기 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누름으로써 상기 생성된 USSD 충전 코드를 상기 이동통신사 서버로 송신하는 단계를 포함하도록 구성될 수 있다.According to another aspect of the present invention, there is provided a method of automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card, the camera module setting and photographing a scratch prepaid card to automatically turn off a flash; Recognizing, by the image recognition module, a serial number of 14 to 16 digits indicated in a white box in the image of the photographed scratch prepaid card; Generating a USSD charging code by converting the recognized serial number into numeric data and inserting the converted numeric data into a predetermined transmission format for each mobile carrier according to an unspecified supplementary service data (USSD) protocol; The code transmission module may be configured to include transmitting the generated USSD charging code to the mobile communication company server by pressing a call button by the user to charge the voice call capacity or data capacity of the smart phone.
이때, 상기 USSD 충전 코드는, *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와, 상기 삽입된 숫자 데이터와, #로 구성되는 서픽스(suffix)로 구성될 수 있다.At this time, the USSD charging code, *, the identifier of the mobile carrier consisting of three digits, a prefix consisting of *, the inserted numeric data, and a suffix consisting of # (suffix) Can be.
그리고 상기 영상 인식 모듈이 상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 단계는, 상기 카메라 모듈에서 촬영된 스크래치 선불 카드의 이미지를 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환하고, 변환된 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 상기 스크래치 선불 카드의 네 모서리를 검출하고, 상기 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정하고, 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 상기 하얀 박스의 테두리를 검출하고, 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 상기 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환하며, 고르지 못한 조명 하에서 촬영된 경우에는 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 상기 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 상기 그레이스케일 이미지를 상기 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하도록 구성될 수 있다.The image recognition module may recognize a serial number of 14 to 16 digits indicated in a white box in the image of the scratch prepaid card, wherein the image is received from the scratch prepaid card. The scratch prepaid card is converted from an RGB image to an 8-bit grayscale image consisting of 256 pixels and using an edge detection algorithm on the converted grayscale image. Detect the four edges of the edge, correct the intersection of each edge into a rectangular shape using a perspective correction algorithm from the detected four edges, and check whether the edge detection algorighm and the edge are closed seamlessly. By using the bounding edge detection algorithm The edges of the white box are detected, and each pixel of the 8-bit grayscale image is converted to a value of 0 or 255 based on a predetermined threshold by using a binarization / threshold algorithm. When the image is taken under poor lighting, an adaptive threshold algorithm is used to scan in which direction the average brightness value changes in the grayscale image, and then calculate the size of a block having a value within a predetermined error range. The grayscale image may be classified by size of the block to set a local threshold for each block and convert the grayscale image into a value of 0 or 255 for each pixel based on the set local threshold.
상기 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치 및 방법에 의하면, 반복적인 입력 오류없이 한 번의 촬영만으로 스크래치 선불 카드의 일련 번호를 이용하여 USSD 프로토콜 메시지를 자동 생성하여 송신하도록 구성됨으로써, 반복적인 입력 오류와 송신에 따른 불편함이 제거되는 효과가 있다. 또한, 조명 상태가 좋지 않거나 비스듬한 각도에서 선불 카드를 촬영하더라도 원근감 교정 알고리즘이나 적응형 임계치 알고리즘 등을 이용하여 한 번에 정확하게 일련 번호를 검출하여 식별할 수 있는 효과가 있다.According to the apparatus and method for automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card, the USSD protocol message is automatically generated and transmitted using the serial number of the scratch prepaid card with only one shot without repetitive input error. Repetitive input errors and inconveniences caused by transmission are eliminated. In addition, even if the lighting conditions are poor or photographed prepaid at an oblique angle, there is an effect that can be accurately identified and identified at once by using a perspective correction algorithm or an adaptive threshold algorithm.
도 1은 이동통신 스크래치 선불 카드의 실물 예시도이다.1 is a physical example of a mobile communication scratch prepaid card.
도 2는 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치의 블록 구성도이다.2 is a block diagram of a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card according to an embodiment of the present invention.
도 3a 내지 도 3e는 본 발명의 일 실시예에 따른 일련 번호 인식 알고리즘의 처리 후 이미지이다.3A to 3E are images after processing of a serial number recognition algorithm according to an embodiment of the present invention.
도 4a 및 도 4b는 본 발명의 일 실시예에 따른 촬영 화면의 이미지이다.4A and 4B are images of a photographing screen according to an embodiment of the present invention.
도 5는 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법의 흐름도이다.5 is a flowchart of a method for automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card according to an embodiment of the present invention.
도 6은 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드의 영상 인식 처리 프로세스의 흐름도이다.6 is a flowchart of an image recognition processing process of a mobile communication scratch prepaid card according to an embodiment of the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시 예들을 도면에 예시하고 발명을 실시하기 위한 구체적인 내용에 상세하게 설명하고자 한다.As the inventive concept allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description.
그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.However, this is not intended to limit the present invention to specific embodiments, it should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention.
각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.In describing the drawings, similar reference numerals are used for similar elements.
제1, 제2, A, B 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.Terms such as first, second, A, and B may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.For example, without departing from the scope of the present invention, the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component. The term and / or includes a combination of a plurality of related items or any item of a plurality of related items.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다.When a component is referred to as being "connected" or "connected" to another component, it may be directly connected to or connected to that other component, but it may be understood that other components may be present in between. Should be.
반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.On the other hand, when a component is said to be "directly connected" or "directly connected" to another component, it should be understood that there is no other component in between.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다.The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise.
본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.In this application, the terms "comprise" or "have" are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features. It is to be understood that the present invention does not exclude the possibility of the presence or the addition of numbers, steps, operations, components, components, or a combination thereof.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art.
일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Terms such as those defined in the commonly used dictionaries should be construed as having meanings consistent with the meanings in the context of the related art and shall not be construed in ideal or excessively formal meanings unless expressly defined in this application. Do not.
이하, 본 발명에 따른 바람직한 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치의 블록 구성도이다.2 is a block diagram of a USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card according to an embodiment of the present invention.
도 2를 참조하면, 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치(100)(이하, 'USSD 충전 코드 자동 생성/송신 장치'라 함)는 카메라 모듈(110), 영상 인식 모듈(120), 코드 생성 모듈(130) 및 코드 송신 모듈(140)을 포함하도록 구성될 수 있다.Referring to FIG. 2, the USSD charging code automatic generation / transmission device 100 for mobile communication scratch prepaid card 100 (hereinafter, referred to as an “USSD charging code automatic generation / transmission device”) according to an embodiment of the present invention is a camera module. 110, the image recognition module 120, the code generation module 130, and the code transmission module 140 may be configured to include.
USSD 충전 코드 자동 생성/송신 장치(100)는 스크래치 선불 카드의 일련 번호를 1회 촬영하여 인식하고 인식된 일련 번호를 이용하여 자동으로 USSD 충전 코드를 생성하여 자동 송신하도록 구성된다. 또한, 기존에는 적용되지 않은 원근감 교정 알고리즘, 적용형 임계치 알고리즘 등의 다양한 알고리즘을 적용하여 스크래치 선불 카드가 비스듬히 촬영되거나 조명이 일정치 않은 등 여러 상황에서도 정확하게 일련 번호를 인식할 수 있는 효과가 있다. 또한, 카메라 모듈(110)이 자동으로 꺼지도록 설정함으로써, 빛의 반사에 의해 인식률이 낮아지는 것을 방지한다. 이러한 USSD 충전 코드 자동 생성/송신 장치(100)는 스마트 폰 상에서 어플리케이션으로 구현될 수 있다.The USSD charging code generation / transmission device 100 is configured to automatically photograph and recognize the serial number of the scratch prepaid card once and automatically generate and automatically transmit the USSD charging code using the recognized serial number. In addition, by applying a variety of algorithms, such as perspective correction algorithm, applied threshold algorithm, which is not applied in the past, it is possible to accurately recognize the serial number even in various situations such as photographing a scratch prepaid card at an angle or inconsistent lighting. In addition, by setting the camera module 110 to automatically turn off, the recognition rate is prevented from being lowered due to the reflection of light. The USSD charging code automatic generation / transmission device 100 may be implemented as an application on a smart phone.
이하, 세부적인 구성에 대하여 설명한다.Hereinafter, the detailed structure is demonstrated.
카메라 모듈(110)은 스크래치 선불 카드를 촬영하도록 구성된다. 이때, 플래시(flash)가 자동으로 꺼지도록 설정되는 것이 바람직하다. 플라스틱으로 구성된 스크래치 선불 카드에서 플래시 조명이 반사되어 일련 번호가 제대로 인식되지 않을 수 있기 때문이다.The camera module 110 is configured to photograph the scratch prepaid card. At this time, the flash is preferably set to automatically turn off. This is because the flash light is reflected from the scratch prepaid card made of plastic and the serial number may not be recognized properly.
영상 인식 모듈(120)은 카메라 모듈(110)에서 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하도록 구성될 수 있다.The image recognition module 120 may be configured to recognize a 14 to 16 digit serial number indicated in a white box in the image of the scratch prepaid card photographed by the camera module 110.
이처럼 영상 인식 모듈(120)은 다양한 알고리즘을 이용하여 이미지 상에서 일련 번호를 자동 검출하여 인식할 수 있다. 자동 검출을 하더라도 사용자가 터치스크린 상의 촬영된 이미지에서 일련 번호의 위치를 손으로 터치하여 일련 번호의 위치에 대한 검출을 용이하게 하도록 구현될 수 있다.As such, the image recognition module 120 may automatically detect and recognize a serial number on an image using various algorithms. Even if the automatic detection, the user can be implemented to facilitate the detection of the position of the serial number by touching the position of the serial number by hand in the captured image on the touch screen.
이하, 영상 인식에 대해 좀 더 구체적으로 설명한다.Hereinafter, image recognition will be described in more detail.
먼저 영상 인식 모듈(120)은 카메라 모듈(110)에서 촬영된 스크래치 선불 카드의 이미지를 컬러의 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환하도록 구성될 수 있다.First, the image recognition module 120 converts an image of a scratch prepaid card taken by the camera module 110 into an 8-bit grayscale image composed of 256 pixels from a color RGB image. Can be configured.
그리고 영상 인식 모듈(120)은 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 스크래치 선불 카드의 네 모서리를 검출하도록 구성될 수 있다. 엣지 검출 알고리즘은 인접한 픽셀들에서 밝기값이 급격하게 변화할 때 그 분계점을 모서리로 인식하여 검출한다. 이는 일종의 미분 작용소(differential operator)를 알고리즘으로 이용하여 대략적인 이미지의 윤곽을 알아내기에 적합하다. 캐니 엣지 검출기(Canny Edge Detector) 또는 셴-캐스턴 엣지 검출기(Shen-Castan Edge Detector)가 이용될 수 있다.In addition, the image recognition module 120 may be configured to detect four edges of the scratch prepaid card using an edge detection algorithm in the grayscale image. The edge detection algorithm detects the threshold as a corner when the brightness value changes abruptly in adjacent pixels. This is suitable for approximating the outline of an image using a kind of differential operator as an algorithm. Canny Edge Detector or Shen-Castan Edge Detector can be used.
그리고 영상 인식 모듈(120)은 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정하도록 구성될 수 있다. 이는 비스듬한 각도에서 촬영된 이미지를 수직에서 촬영된 이미지같이 교정하는 것으로서 인식을 제대로 하기 위함이다.In addition, the image recognition module 120 may be configured to correct the intersection of each corner into a rectangular shape using a perspective correction algorithm from the detected four corners. This is to correct the image taken at an oblique angle as if it was taken vertically to properly recognize the image.
그리고 영상 인식 모듈(120)은 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 일련 번호가 표기된 하얀 박스의 테두리를 검출하도록 구성될 수 있다. 여기에서, 하얀 박스의 테두리가 끊겨있는지 닫혀있는지를 통해 하얀 박스를 검출해 낸다. 이미지 내의 모든 바운딩 엣지를 검출해 낸다.The image recognition module 120 is configured to detect an edge of a white box marked with a serial number by using an edge detection algorithm and a bounding edge detection algorithm for checking whether the edge is closed. Can be. Here, the white box is detected by whether the border of the white box is broken or closed. Detect all bounding edges in the image.
다음으로, 영상 인식 모듈(120)은 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환하도록 구성될 수 있다. 그레이 스케일 이미지는 한 픽셀의 데이터가 8 비트로 구성되므로, 각 픽셀은 0 내지 255의 값 중 어느 하나의 값을 가질 수 있다. 영상 인식 모듈(120)은 256 가지의 값으로 표현된 이미지의 각 픽셀을 이원화/임계치 알고리즘을 이용하여 소정 임계치를 기준으로 0 또는 255의 두가지 값으로 변환한다. 즉, 흑백의 이미지로 변환한다고 볼 수 있다.Next, the image recognition module 120 may be configured to convert each pixel of the 8-bit grayscale image to a value of 0 or 255 based on a predetermined threshold using a binarization / threshold algorithm. Can be. In the gray scale image, since one pixel of data is composed of 8 bits, each pixel may have any one value of 0 to 255. The image recognition module 120 converts each pixel of the image represented by 256 values into two values of 0 or 255 based on a predetermined threshold using a dualization / threshold algorithm. In other words, it can be converted to a black and white image.
이때, 이미지는 조명의 위치에 따라 이미지 각 부분의 밝기가 다를 수 있는데, 이때에는 각 부분별로 서로 다른 임계치를 적용하여 이미지가 잘못 인식되어 변환되는 것을 방지할 필요가 있다. 이에, 영상 인식 모듈(120)은 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 그레이스케일 이미지를 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하도록 구성될 수 있다. 즉, 그림자가 진 블록에서는 그 임계치는 더 어두워진 값이 될 것이고, 밝은 블록에서는 좀 더 밝은 값이 임계치로 설정될 것이다.In this case, the brightness of each part of the image may be different according to the position of the illumination. In this case, it is necessary to apply different threshold values for each part to prevent the image from being incorrectly recognized and converted. Accordingly, the image recognition module 120 scans in which direction the average brightness value changes in the grayscale image using an adaptive threshold algorithm and calculates the size of the block having a value within a predetermined error range. And dividing the grayscale image by the size of the block to set each local threshold for each block and convert the grayscale image into a value of 0 or 255 for each pixel based on the set local threshold. That is, in the shadowed block, the threshold will be darker, and in the lighter block, the brighter value will be set as the threshold.
다음으로, 영상 인식 모듈(120)은 연결 영역 알고리즘(connected region algorithm)을 이용하여 연결 영역을 인식하여 하얀 박스 내의 일련 번호를 인식하도록 구성될 수 있다.Next, the image recognition module 120 may be configured to recognize a connection area by using a connected region algorithm to recognize a serial number in a white box.
이때, 현재 이동통신사들은 회사별로 각각 미리 정해진 고정된 길이의 일련 번호를 사용하기 때문에 사용자의 이동통신사에서 정한 길이가 아닌 다른 길이의 번호가 인식된 경우에는 원하는 일련 번호가 아닌 것으로 판단하고 폐기할 수 있다. 즉, 스크래치 선불 카드 상에는 여러 번호가 기재되어 인식될 수 있기 때문에, 정해진 길이가 아닌 경우에는 바로 폐기할 수 있도록 구성될 수 있다. 그리하면, 일련 번호에 대한 인식 오류가 더 줄어들 수 있다. 그리고 터치스크린에서 일련 번호의 위치를 굳이 특정하지 않아도 자동 인식률이 높아질 수 있다.At this time, since mobile carriers use serial numbers of fixed lengths predetermined for each company, when a number other than the length determined by the user's mobile carrier is recognized, it may be determined that it is not the desired serial number and discarded. have. That is, since a number may be written and recognized on the scratch prepaid card, it may be configured to be immediately discarded when it is not a predetermined length. Thus, the recognition error for the serial number can be further reduced. And the automatic recognition rate can be increased without having to specify the location of the serial number on the touch screen.
다시 도 2를 참조하면, 코드 생성 모듈(130)은 영상 인식 모듈(120)에서 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성하도록 구성된다.Referring back to FIG. 2, the code generation module 130 converts the serial number recognized by the image recognition module 120 into numeric data, and converts the converted numeric data for each mobile carrier according to the unspecified supplementary service data (USSD) protocol. Insert into a predetermined transmission format to generate a USSD charging code.
여기에서, USSD 충전 코드는 *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와 숫자 데이터와 #로 구성되는 서픽스(suffix)로 구성될 수 있다.Here, the USSD charging code may be composed of *, an identifier of a corresponding mobile carrier composed of three digits, a prefix composed of *, and a suffix composed of numeric data and #.
이때, 이동통신사별 식별자를 미리 저장하고 있어야 한다.At this time, the identifier for each mobile carrier must be stored in advance.
코드 송신 모듈(140)은 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누르거나 또는 자동으로 코드 생성 모듈(130)에서 생성된 USSD 충전 코드를 이동통신사 서버(200)로 송신하도록 구성된다.The code transmission module 140 presses a call button or automatically transfers the USSD charging code generated by the code generation module 130 to the mobile communication server 200 to charge the voice call capacity or the data capacity of the smart phone. Configured to transmit.
도 3a 내지 도 3e는 본 발명의 일 실시예에 따른 일련 번호 인식 알고리즘의 처리 후 이미지를 나타낸다.3A to 3E show an image after processing of a serial number recognition algorithm according to an embodiment of the present invention.
도 3a는 스크래치 선불 카드의 촬영 이미지로서 비스듬한 각도에서 촬영된 이미지이다.3A is a photographed image of the scratch prepaid card, which is photographed at an oblique angle.
도 3b는 비스듬하게 촬영된 이미지를 원근감 교정 알고리즘을 적용하고 회전(rotation)한 이미지를 나타낸다.3B shows an image obtained by applying a perspective correction algorithm and rotating the image taken at an angle.
그리고 도 3c는 바운딩 엣지 검출 알고리즘 등을 이용하여 일련 번호가 표기된 하얀 박스를 검출한 것을 나타낸다.3C illustrates that a white box in which a serial number is indicated is detected by using a bounding edge detection algorithm or the like.
그리고 도 3d는 이원화/임계치 알고리즘을 이용하여 하얀 박스의 배경과 숫자를 분리한 것을 나타내고 도 3e는 연결 영역 알고리즘을 이용하여 일련 번호를 를 인식하여 숫자 데이터로 출력하는 것을 나타낸다.In addition, FIG. 3D shows a background and a number of white boxes separated using a dualization / threshold algorithm, and FIG. 3E shows a serial number recognized and outputted as numerical data using a connection area algorithm.
도 4a 및 도 4b는 본 발명의 일 실시예에 따른 촬영 화면의 이미지이다.4A and 4B are images of a photographing screen according to an embodiment of the present invention.
도 4a를 참조하면, 일련 번호가 표기된 하얀 박스를 터치스크린 상의 직사각형 플레이트와 일치시켜 촬영하는 것을 나타낸다. 여기에서, 사용자가 직사각형 플레이트가 선불 카드의 하얀 박스에 일치되도록 카메라 모듈(111)의 방향을 조절하여 촬영할 수 있도록 구성된다.Referring to FIG. 4A, a white box marked with a serial number is photographed by matching a rectangular plate on a touch screen. Here, the user is configured to photograph by adjusting the direction of the camera module 111 so that the rectangular plate is matched with the white box of the prepaid card.
이때, 카메라 모듈(110)은 직사각형 플레이트 즉 하얀 박스에 초점을 맞추며, 직사각형 플레이트 이외의 영역은 다른 대체 화면으로 표시하도록 구성된다.In this case, the camera module 110 focuses on a rectangular plate, that is, a white box, and is configured to display an area other than the rectangular plate as another alternative screen.
그리고 사용자가 캡쳐 버튼을 누르면 직사각형 플레이트 내 일련 번호가 캡쳐되도록 구성된다.And when the user presses the capture button, the serial number in the rectangular plate is captured.
이처럼 직사각형 플레이트를 이용하는 경우 사용자는 보다 편리하고 정확하게 일련 번호를 인식할 수 있다.In this way, when using a rectangular plate, the user can recognize the serial number more conveniently and accurately.
도 4b를 참조하면, 영상 인식 모듈(120)이 직사각형 플레이트 즉, 하얀 박스 내의 일련 번호를 인식하여 표시한 화면을 나타낸다. 사용자는 화면 상에 인식된 일련 번호를 확인하여 송신 여부를 결정하도록 구성된다. 이때, 일련 번호의 인식이 잘못된 경우에는 카메라 모듈(110)을 이용하여 다시 촬영할 수 있도록 구성될 수 있다.Referring to FIG. 4B, the image recognition module 120 recognizes and displays a serial plate in a rectangular plate, that is, a white box. The user is configured to check the serial number recognized on the screen and determine whether to transmit. In this case, when the recognition of the serial number is wrong, the camera module 110 may be configured to photograph again.
여기에서, 카메라 모듈(110)에 의해 촬영된 이미지가 초점이 안맞거나 흔들리는 등의 문제가 발생할 수 있는데, 카메라 모듈(110)을 이용하여 수회 연속으로 촬영하고 영상 인식 모듈(120)에 의해 인식될 수 있도록 구성될 수 있다.Here, a problem may occur such that an image photographed by the camera module 110 is out of focus or shaken, and may be photographed several times consecutively using the camera module 110 and recognized by the image recognition module 120. It can be configured to be.
그리하면, 초점을 맞추어 제대로 촬영된 이미지와 이에 의해 인식된 카메라 모듈(110)에 의해 촬영된 이미지와 영상 인식 모듈(120)에 의해 인식된 일련 번호 중 가장 잘 촬영되고 제대로 인식된 일련 번호를 선택하여 송신할 수 있다.Then, focus is selected on the best photographed and correctly recognized serial number among the images properly captured and the images captured by the camera module 110 and the serial numbers recognized by the image recognition module 120. Can be sent.
도 5는 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법의 흐름도이다.5 is a flowchart of a method for automatically generating / transmitting a USSD charging code for a mobile communication scratch prepaid card according to an embodiment of the present invention.
도 5를 참조하면, 카메라 모듈(110)이 스크래치 선불 카드를 플래시(flash)를 자동으로 꺼지도록 설정하고 촬영한다(S101).Referring to FIG. 5, the camera module 110 sets and photographs a scratch prepaid card to automatically turn off a flash (S101).
다음으로, 영상 인식 모듈(120)이 카메라 모듈(110)에서 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식한다(S102).Next, the image recognition module 120 recognizes a serial number of 14 to 16 digits indicated in a white box in the image of the scratch prepaid card photographed by the camera module 110 (S102).
다음으로, 코드 생성 모듈(130)이 앞서 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성한다(S103).Next, the code generation module 130 converts the previously recognized serial number into numeric data, and inserts the converted numeric data into a predetermined transmission format for each mobile carrier according to the unspecified supplementary service data (USSD) protocol to charge the USSD charging code. To generate (S103).
이때, USSD 충전 코드는 *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와, 상기 삽입된 숫자 데이터와, #로 구성되는 서픽스(suffix)로 구성될 수 있다.In this case, the USSD charging code may include *, an identifier of a corresponding mobile carrier composed of 3 digits, a prefix composed of *, the inserted numeric data, and a suffix composed of #. have.
다음으로, 코드 송신 모듈(140)이 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누름으로써 앞서 생성된 USSD 충전 코드를 이동통신사 서버(200)로 송신한다(S104).Next, the code transmission module 140 transmits the previously generated USSD charging code to the mobile communication company server 200 by pressing the call button to charge the voice call capacity or data capacity of the smart phone (S104).
도 6은 본 발명의 일 실시예에 따른 이동통신 스크래치 선불 카드의 영상 인식 처리 프로세스의 흐름도이다.6 is a flowchart of an image recognition processing process of a mobile communication scratch prepaid card according to an embodiment of the present invention.
도 6을 참조하면, 영상 인식 모듈(120)이 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 단계(S102)는 다음과 같은 세부 단계로 구성될 수 있다.Referring to FIG. 6, in operation S102, the image recognition module 120 recognizes a serial number of 14 to 16 digits marked in a white box in an image of a scratch prepaid card. It may consist of steps.
먼저, 카메라 모듈(110)에서 촬영된 스크래치 선불 카드의 이미지를 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환한다(S102a).First, the image of the scratch prepaid card photographed by the camera module 110 is converted into an 8-bit grayscale image composed of 256 pixels from the RGB image (S102a).
다음으로, 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 스크래치 선불 카드의 네 모서리를 검출한다(S102b).Next, four edges of the scratch prepaid card are detected using an edge detection algorithm in the grayscale image (S102b).
다음으로, 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정한다(S102c).Next, the intersection of each corner is corrected to a rectangular shape by using a perspective correction algorithm from the detected four corners (S102c).
다음으로, 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 하얀 박스의 테두리를 검출한다(S102d).Next, the edge of the white box is detected using an edge detection algorithm and a bounding edge detection algorithm for checking whether the edge is closed seamlessly (S102d).
다음으로, 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환한다(S102e).Next, each pixel of the 8-bit grayscale image is converted to a value of 0 or 255 based on a predetermined threshold using a binarization / threshold algorithm (S102e).
이때, 고르지 못한 조명 하에서 촬영된 경우에는 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 그레이스케일 이미지를 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하도록 구성될 수 있다.In this case, when the image is taken under uneven lighting, an adaptive threshold algorithm is used to scan in which direction the average brightness value changes in the grayscale image, and then determine the size of the block having a value within a predetermined error range. The grayscale image may be configured to calculate and divide the grayscale image by the size of the block, to set each local threshold for each block, and to convert the pixel to a value of 0 or 255 for each pixel based on the set local threshold.
다음으로, 연결 영역 알고리즘(connected region algorithm)을 이용하여 하얀 박스 내의 일련 번호를 인식한다(S102f).Next, the serial number in the white box is recognized using a connected region algorithm (S102f).
이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허청구범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although described with reference to the above embodiments, those skilled in the art can understand that the present invention can be variously modified and changed without departing from the spirit and scope of the invention described in the claims below. There will be.
부호의 설명: Description of Codes:
110: 카메라 모듈110: camera module
120: 영상 인식 모듈120: image recognition module
130: 코드 생성 모듈130: code generation module
140: 코드 송신 모듈140: code transmission module
본 발명은 기존 GSM 이동통신 기반의 선불 이동통신 서비스의 판매 방식 중 하나인 이동통신 스크래치 선불카드의 활용을 보다 쉽고 편하게 해 주는 역할을 함으로 이동통신 서비스 산업의 보급과 성장을 보조해주는 역할을 한다. The present invention serves to facilitate the spread and growth of the mobile communication service industry by playing a role of making the use of the mobile scratch scratch prepaid card, which is one of the sales methods of the existing GSM mobile communication prepaid mobile communication service, easier and more convenient.

Claims (5)

  1. 스마트 폰에 있어서,In the smartphone,
    스크래치 선불 카드를 촬영하는 카메라 모듈;A camera module for photographing scratch prepaid cards;
    상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 영상 인식 모듈; An image recognition module for recognizing a serial number of 14 to 16 digits written in a white box from the image of the scratch prepaid card;
    상기 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성하는 코드 생성 모듈;A code generation module for converting the recognized serial number into numeric data and inserting the converted numeric data into a predetermined transmission format for each mobile carrier according to an unspecified supplementary service data (USSD) protocol to generate a USSD charging code;
    상기 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누름으로써 상기 생성된 USSD 충전 코드를 상기 이동통신사 서버로 송신하는 코드 송신 모듈을 포함하고,And a code transmitting module for transmitting the generated USSD charging code to the mobile communication company server by pressing a call button to charge a voice call capacity or data capacity of the smart phone.
    상기 USSD 충전 코드는,The USSD charging code is,
    *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와, 상기 삽입된 숫자 데이터와, #로 구성되는 서픽스(suffix)로 구성되고,A prefix consisting of *, an identifier of the corresponding mobile carrier consisting of three digits, a prefix consisting of *, the inserted numeric data, and a suffix consisting of #,
    상기 카메라 모듈은,The camera module,
    플래시(flash)가 꺼지도록 자동으로 설정되는 것을 특징으로 하는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치.USSD charging code automatic generation / transmission device for a mobile scratch prepaid card, characterized in that the flash is automatically set to turn off.
  2. 제1항에 있어서, 상기 카메라 모듈은, 터치스크린 상에 상기 하얀 박스(box)를 캡쳐(capture)하기 위한 직사각형 플레이트를 표기하고, 사용자에 의해 상기 직사각형 플레이트에 상기 하얀 박스가 일치되도록 방향이 조절되면 상기 직사각형 플레이트에 초점을 맞추고 상기 직사각형 플레이트 이외의 영역은 다른 화면으로 감추어 표시한 후 촬영하도록 구성되고,The camera module of claim 1, wherein the camera module displays a rectangular plate for capturing the white box on a touch screen, and adjusts a direction so that the white box matches the rectangular plate by a user. When the focus is focused on the rectangular plate and the area other than the rectangular plate is concealed and displayed on another screen,
    상기 영상 인식 모듈은, 상기 직사각형 플레이트 내의 상기 일련 번호(serial number)를 인식하여 표시하고, 표시된 일련 번호를 상기 사용자가 확인할 수 있도록 구성되는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치.The image recognition module, the USSD charging code automatic generation / transmission device for a mobile communication scratch prepaid card is configured to recognize and display the serial number in the rectangular plate, the user can confirm the displayed serial number.
  3. 제1항에 있어서, 상기 영상 인식 모듈은, 상기 카메라 모듈에서 촬영된 스크래치 선불 카드의 이미지를 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환하고, 변환된 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 상기 스크래치 선불 카드의 네 모서리를 검출하고, 상기 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정하고, 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 상기 하얀 박스의 테두리를 검출하고, 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 상기 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환하며, 고르지 못한 조명 하에서 촬영된 경우에는 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 상기 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 상기 그레이스케일 이미지를 상기 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하고, 연결 영역 알고리즘(connected region algorithm)을 이용하여 상기 하얀 박스 내의 일련 번호를 인식하도록 구성되는 것을 특징으로 하는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 장치.The image recognition module of claim 1, wherein the image recognition module converts an image of the scratch prepaid card photographed by the camera module into an 8-bit grayscale image composed of 256 pixels from an RGB image. In the transformed grayscale image, four edges of the scratch prepaid card are detected by using an edge detection algorithm, and an intersection point of each corner is detected from the detected four corners by using a perspective correction algorithm. The edge of the white box is detected using a edge detection algorithm (edge detection algorighm) and a bounding edge detection algorithm that checks whether the edge is closed seamlessly, and binarization / threshold algorithm the 8-bit grace using a binarization / threshold algorithm Each pixel of an image is converted to a value of 0 or 255 in contrast to a predetermined threshold, and when photographed under uneven lighting, the average brightness in the grayscale image is applied by using an adaptive threshold algorithm. After scanning the direction in which the value changes, the size of a block having a value within a predetermined error range is calculated, the grayscale image is divided by the size of the block, and each local threshold is set for each block. A mobile communication scratch prepaid card, configured to convert a value of 0 or 255 for each pixel based on a local threshold, and recognize a serial number in the white box using a connected region algorithm. USSD charging code automatic generation / transmission device.
  4. 카메라 모듈이 스크래치 선불 카드를 플래시(flash)를 자동으로 꺼지도록 설정하고 촬영하는 단계;Setting and capturing the scratch prepaid card by the camera module to automatically turn off the flash;
    영상 인식 모듈이 상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 단계; Recognizing, by the image recognition module, a serial number of 14 to 16 digits indicated in a white box in the image of the photographed scratch prepaid card;
    코드 생성 모듈이 상기 인식된 일련 번호를 숫자 데이터로 변환하고, 변환된 숫자 데이터를 USSD(unspecified supplementary service data) 프로토콜에 따라 이동통신사 별로 미리 정해진 전송 포맷에 삽입하여 USSD 충전 코드를 생성하는 단계;Generating a USSD charging code by converting the recognized serial number into numeric data and inserting the converted numeric data into a predetermined transmission format for each mobile carrier according to an unspecified supplementary service data (USSD) protocol;
    코드 송신 모듈이 상기 스마트 폰의 음성 통화 용량 또는 데이터 용량을 충전하기 위해 사용자가 통화 버튼을 누름으로써 상기 생성된 USSD 충전 코드를 상기 이동통신사 서버로 송신하는 단계를 포함하고,Transmitting, by the code sending module, the generated USSD charging code to the mobile communication company server by pressing a call button by the user to charge the voice call capacity or the data capacity of the smart phone;
    상기 USSD 충전 코드는,The USSD charging code is,
    *, 3자리 숫자로 구성되는 해당 이동통신사의 식별자, *로 구성되는 프리픽스(prefix)와, 상기 삽입된 숫자 데이터와, #로 구성되는 서픽스(suffix)로 구성되는 것을 특징으로 하는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법.A mobile communication scratch comprising a *, an identifier of a corresponding mobile carrier consisting of three digits, a prefix consisting of *, the inserted numeric data, and a suffix consisting of # How to automatically generate / send USSD charge codes for prepaid cards.
  5. 제4항에 있어서, 상기 영상 인식 모듈이 상기 촬영된 스크래치 선불 카드의 이미지에서 하얀 박스(box) 내 표기된 14자리 내지 16자리의 일련 번호(serial number)를 인식하는 단계는,The method of claim 4, wherein the image recognition module recognizes a serial number of 14 to 16 digits indicated in a white box in the image of the photographed scratch prepaid card.
    상기 카메라 모듈에서 촬영된 스크래치 선불 카드의 이미지를 RGB 이미지에서 256 픽셀(pixel)로 구성되는 8 비트(bit)의 그레이스케일(greyscale) 이미지로 변환하고, 변환된 그레이스케일 이미지에서 엣지 검출 알고리즘(edge detection algorithm)을 이용하여 상기 스크래치 선불 카드의 네 모서리를 검출하고, 상기 검출된 네 모서리로부터 원근감 교정 알고리즘(perspective correction algorithm)을 이용하여 각 모서리의 교차점을 직사각형 형상으로 교정하고, 엣지 검출 알고리즘(edge detection algorighm) 및 엣지가 끊김없이 닫혀있는지 확인하는 바운딩 엣지 검출 알고리즘(bounding edge detection algorithm)을 이용하여 상기 하얀 박스의 테두리를 검출하고, 이원화/임계치 알고리즘(binarization/threshold algorithm)을 이용하여 상기 8 비트의 그레이스케일 이미지의 각 픽셀을 소정 임계치를 기준으로 대비하여 0 또는 255의 값으로 변환하며, 고르지 못한 조명 하에서 촬영된 경우에는 적응형 임계치 알고리즘(adaptive threshold algorithm)을 이용하여 상기 그레이스케일 이미지 내에서 평균 밝기 값이 어느 방향으로 변하는지를 스캔한 뒤 소정 오차 범위 내의 값을 갖는 블록의 크기를 산출하고 상기 그레이스케일 이미지를 상기 블록의 크기별로 구분하여 해당 블록마다 각각의 로컬 임계치(local threshold)를 설정하고 설정된 로컬 임계치를 기준으로 각 픽셀을 대비하여 0 또는 255의 값으로 변환하고, 연결 영역 알고리즘(connected region algorithm)을 이용하여 상기 하얀 박스 내의 일련 번호를 인식하는 것을 특징으로 하는 이동통신 스크래치 선불 카드용 USSD 충전 코드 자동 생성/송신 방법.The image of the scratch prepaid card photographed by the camera module is converted into an 8-bit grayscale image composed of 256 pixels in an RGB image, and an edge detection algorithm in the converted grayscale image Four edges of the scratch prepaid card are detected using a detection algorithm, a cross point of each corner is corrected into a rectangular shape using a perspective correction algorithm from the detected four corners, and an edge detection algorithm is used. detecting the edges of the white box using a detection algorighm) and a bounding edge detection algorithm that checks whether the edges are closed seamlessly, and using the binarization / threshold algorithm. Each pixel in the grayscale image has a predetermined threshold It is converted to a value of 0 or 255 in contrast with the quasi-area, and when taken under uneven lighting, an adaptive threshold algorithm is used to scan in which direction the average brightness value changes in the grayscale image. Afterwards, the size of a block having a value within a predetermined error range is calculated, the grayscale image is divided by the size of the block, each local threshold is set for each block, and each pixel is contrasted based on the set local threshold. Converting to a value of 0 or 255, and recognizing a serial number in the white box using a connected region algorithm; and automatically generating / transmitting a USSD charging code for a scratch scratch prepaid card.
PCT/KR2014/004522 2013-05-21 2014-05-21 Apparatus and method for automatically generating/transmitting ussd charge code for mobile communication prepaid scratch card WO2014189273A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020130057206A KR101540772B1 (en) 2013-05-21 2013-05-21 Apparatus and method of making/sending ussd charge code automatically for mobile telecommunication prepaid scratch card of charging using ussd protocl
KR10-2013-0057206 2013-05-21

Publications (1)

Publication Number Publication Date
WO2014189273A1 true WO2014189273A1 (en) 2014-11-27

Family

ID=51933778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2014/004522 WO2014189273A1 (en) 2013-05-21 2014-05-21 Apparatus and method for automatically generating/transmitting ussd charge code for mobile communication prepaid scratch card

Country Status (2)

Country Link
KR (1) KR101540772B1 (en)
WO (1) WO2014189273A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003101677A (en) * 2001-09-19 2003-04-04 Denso Corp Prepaid communication service system
KR20040041778A (en) * 2002-11-11 2004-05-20 삼성전자주식회사 Code recognition apparatus and method
US6975852B1 (en) * 1999-03-17 2005-12-13 Starhome Gmbh System and method for roaming for prepaid mobile telephone service
KR20060020876A (en) * 2004-09-01 2006-03-07 삼성전자주식회사 Method for call service using a prepaid card in wireless terminal
KR100724432B1 (en) * 2006-01-23 2007-06-04 엘지전자 주식회사 Apparatus and method for charging a calling card by using a camera of mobile communication terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6975852B1 (en) * 1999-03-17 2005-12-13 Starhome Gmbh System and method for roaming for prepaid mobile telephone service
JP2003101677A (en) * 2001-09-19 2003-04-04 Denso Corp Prepaid communication service system
KR20040041778A (en) * 2002-11-11 2004-05-20 삼성전자주식회사 Code recognition apparatus and method
KR20060020876A (en) * 2004-09-01 2006-03-07 삼성전자주식회사 Method for call service using a prepaid card in wireless terminal
KR100724432B1 (en) * 2006-01-23 2007-06-04 엘지전자 주식회사 Apparatus and method for charging a calling card by using a camera of mobile communication terminal

Also Published As

Publication number Publication date
KR101540772B1 (en) 2015-08-06
KR20140136742A (en) 2014-12-01

Similar Documents

Publication Publication Date Title
WO2013055069A1 (en) Device and method for automatically identifying a qr code
CN101459751B (en) Control device, image forming apparatus, method of controlling image forming apparatus
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
US7426293B2 (en) Rapid color recognition method
CN101753764B (en) Image processing apparatus and method, image reading apparatus, and image sending method
CN103959749A (en) Transmission device, reception device, and method
CN105427320A (en) Image segmentation and extraction method
CN105550633A (en) Area recognition method and device
CN102769713A (en) Image processing system and image processing method
US20060045389A1 (en) Automatic meter reading
CN108872265A (en) Detection method, apparatus and system
KR20110128574A (en) Method for recognizing human face and recognizing apparatus
CN104079929A (en) Mosaic detection method and device
WO2017014391A1 (en) Method of confirming authenticity of object by using identification code image, and device for carrying out same
WO2018143486A1 (en) Method for providing content using modularizing system for deep learning analysis
CN112115748B (en) Certificate image recognition method, device, terminal and storage medium
WO2021162440A1 (en) Hologram detection service providing server and hologram detection method
WO2021101290A1 (en) Apparatus for determining authenticity using dot diffuse reflection characteristics, and driving method of same apparatus
WO2014189273A1 (en) Apparatus and method for automatically generating/transmitting ussd charge code for mobile communication prepaid scratch card
KR100901125B1 (en) Face detecting method and apparatus
CN102368298A (en) Double-finger, single finger and rolling fingerprints acquisition, registration and identification apparatus
DK2715484T3 (en) Method of data communication via touch surface
WO2014021490A1 (en) Screen perception test device and screen perception test system using same
CN111741093B (en) Screen-based data transmitting method, receiving device, setting system and readable storage medium
CN113159030A (en) Wrong question printing system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14801007

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.03.16)

122 Ep: pct application non-entry in european phase

Ref document number: 14801007

Country of ref document: EP

Kind code of ref document: A1