KR20060115023A - Image code and method and apparatus for recognizing thereof - Google Patents
Image code and method and apparatus for recognizing thereof Download PDFInfo
- Publication number
- KR20060115023A KR20060115023A KR1020050037288A KR20050037288A KR20060115023A KR 20060115023 A KR20060115023 A KR 20060115023A KR 1020050037288 A KR1020050037288 A KR 1020050037288A KR 20050037288 A KR20050037288 A KR 20050037288A KR 20060115023 A KR20060115023 A KR 20060115023A
- Authority
- KR
- South Korea
- Prior art keywords
- code
- image
- figures
- distance
- value
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
Description
도 1은 종래의 컬러 코드의 일 예를 도시한 것이다.1 illustrates an example of a conventional color code.
도 2는 본 발명의 실시예에 따른 이미지 코드를 나타낸다.2 illustrates an image code according to an embodiment of the present invention.
도 3은 본 발명의 다른 실시예에 따른 이미지 코드 영역을 나타낸다.3 illustrates an image code region according to another embodiment of the present invention.
도 4는 RGB 컬러 큐브를 나타낸다.4 shows an RGB color cube.
도 5는 도 4로부터 만들어진 HSI 컬러 모델을 나타낸다.FIG. 5 shows the HSI color model created from FIG. 4.
도 6은 본 발명의 실시예에 따른 이미지 코드에서 소정의 색상 순서에 따라 코드 도형들의 거리코드와 방향코드를 산출하는 과정에 대한 개략도를 나타낸다. 6 is a schematic diagram of a process of calculating a distance code and a direction code of code figures according to a predetermined color order in an image code according to an embodiment of the present invention.
도 7은 본 발명의 실시예에 따른 이미지 코드에서 소정의 색상 순서에 따라 코드 도형들의 거리코드를 산출하는 다른 과정에 대한 개략도를 나타낸다. 7 is a schematic diagram of another process of calculating distance codes of code figures according to a predetermined color order in an image code according to an embodiment of the present invention.
도 8은 기준 도형의 주위 영역이 소정의 분할각도로 분할되어 형성되는 이미지 코드를 나타낸다. 8 illustrates an image code formed by dividing a peripheral area of a reference figure at a predetermined division angle.
도 9는 본 발명의 실시예에 따른 이미지 코드에서 다른 방식으로 소정의 색상 순서에 따라 코드 도형들의 거리코드와 방향코드를 산출하는 과정에 대한 개략도를 나타낸다. 9 is a schematic diagram of a process of calculating a distance code and a direction code of code figures according to a predetermined color order in an image code according to an embodiment of the present invention.
도 10은 본 발명의 실시예에 따른 이미지 코드의 인식방법에 대한 구성도를 나타낸다.10 is a block diagram of a method of recognizing an image code according to an embodiment of the present invention.
도 11은 본 발명의 실시예에 따른 이미지 코드의 인식장치에 대한 블록도를 나타낸다.11 is a block diagram of an apparatus for recognizing an image code according to an embodiment of the present invention.
본 발명은 소정의 색상 순서에 따른 도형들의 거리 및 각도를 이용하여 소정의 정보를 표시하는 이미지 코드와 이의 인식방법 및 인식장치에 관한 것이다.The present invention relates to an image code for displaying predetermined information using distances and angles of figures in a predetermined color order, a recognition method thereof, and a recognition apparatus thereof.
일반적으로 문자나 숫자와 같은 정보를 이미지 형태로 표현하는 코드는 대표적인 것으로 바코드가 있다. 상기 바코드는 선의 두께와 폭을 이용하여 정보를 표현하며, 바코드 리더기를 바코드가 표시된 부분에 가까이 접근시켜 직접 바코드를 읽도록 한다. 이와 같이, 종래에 사용되는 바코드의 경우에는 바코드 리더기가 바코드 이미지 부분을 근접한 거리에서 직접 촬영하여 바코드의 정보를 인식하게 된다. 그러나, 움직이는 물체에 코드 이미지를 부착한 다음 그 코드 이미지에 의하여 그 물체를 식별하기 위해서는 종래의 방식을 적용할 수 없다.In general, a code that represents information such as letters and numbers in the form of an image is a typical one. The bar code expresses information using the thickness and width of the line, and the bar code reader approaches the bar marked area to read the bar code directly. As described above, in the case of a barcode used in the related art, a barcode reader recognizes the information of the barcode by directly photographing the barcode image portion at a close distance. However, conventional methods cannot be applied to attach a code image to a moving object and then identify the object by the code image.
한편, 최근에는 움직이는 물체에 대한 정보를 표시하고 식별하기 위해서 컬러 코드가 사용되기도 한다. 도 1은 종래의 컬러 코드의 일 예를 도시한 것이다. 상기 컬러 코드는 도 1과 같이 각 색상 별로 정해진 코드 값을 이용하여 정보를 표현하게 된다. 이러한 컬러 코드는 먼 거리에서 디지털 카메라 등을 이용하여 촬영하여도 정확하게 정보를 얻을 수 있는 장점이 있다. 그러나, 도 1에 도시된 바와 같이, 각 컬러 영역이 인접하면 각 인접 컬러 영역간에 간섭이 발생하기 쉬운 단점이 있다. 또한, 기존이 컬러 코드는 색상이라는 하나의 요소(parameter)를 이용하여 코드화하여 정보를 표현하기 때문에, 쉽게 해독 가능하여 타인의 무단 도용에 취약한 문제점이 있다. 나아가, 이러한 유형의 컬러 코드는, 예를 들어 좌에서 우로 읽는 것과 같이 컬러 코드의 구성 단위의 순서가 단순하게 고정되어 있기 때문에 실질적으로 이차원 코드의 장점을 충분히 살리지 못하는 단점이 있다.Recently, color codes are also used to display and identify information about moving objects. 1 illustrates an example of a conventional color code. The color code expresses information using a code value determined for each color as shown in FIG. 1. Such color codes have an advantage of obtaining accurate information even when photographed using a digital camera at a long distance. However, as shown in FIG. 1, when each color area is adjacent, interference between each adjacent color area is likely to occur. In addition, since the existing color codes are coded using a single parameter (color) to represent information, they are easily decipherable and are vulnerable to unauthorized theft of others. Furthermore, this type of color code has a disadvantage in that it does not sufficiently take advantage of the two-dimensional code because the order of the structural units of the color code is simply fixed, for example, reading from left to right.
상기와 같은 문제점을 해결하기 위한 본 발명은 소정의 색상 순서에 따른 도형들의 거리 및 각도를 이용하여 소정의 정보를 표시하는 이미지 코드와 이의 인식방법 및 인식장치를 제공하는 것을 그 목적으로 한다. An object of the present invention is to provide an image code for displaying predetermined information, a recognition method thereof, and a recognition device using distances and angles of figures in a predetermined color order.
상기와 같은 과제를 달성하기 위하여 안출된 본 발명의 이미지 코드는 소정의 이미지 코드 영역에 소정의 정보를 표시하는 이미지 코드에 있어서, 소정 형상과 크기 및 서로 다른 색상을 갖는 적어도 3개의 도형들이 서로 소정 거리와 각도로 분리되어 상기 이미지 코드 영역에 포함되며, 소정의 색상 순서에 따른 상기 도형들의 거리코드와 방향코드를 포함하는 코드 값으로 상기 소정의 정보를 표시하는 것을 특징으로 한다. 상기 도형들은 원형 또는 사각형상, 삼각형을 포함하는 다각형 중 어느 하나 또는 이들의 조합으로 형성되며, 상기 도형들은 각각 빨강(Red), 초록(Green), 파랑(Blue), 시안(Cyan), 마젠타(Magenta), 노랑(Yellow)의 색상 중 어느 하나로 형성될 수 있다. 또한, 상기 도형들은 각 도형들간의 거리와 각도를 산출하는데 기준이 되는 기준도형과 상기 거리코드와 방향코드를 갖는 코드 도형을 포함하여 형성될 수 있다. 이때, 상기 거리코드는 상기 색상 순서에 따라 인접한 각 도형들간의 중심을 연결하는 중심연결선의 길이를 기준 도형의 크기로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 거리코드는 상기 색상 순서에 따라 인접한 각 도형들간의 중심을 연결하는 중심연결선의 수평방향 길이와 수직방향 길이의 합인 직각방향 길이를 기준 도형의 크기로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 이때, 상기 직각방향의 길이는 상기 기준 도형의 크기의 대략 자연수 배로 설정될 수 있다. 또한, 상기 기준 도형의 크기는 이미지 코드 형성시 설정되는 상기 이미지 코드 영역의 크기에 대한 기준 도형의 크기 비와 획득된 이미지 코드로부터 산출되는 이미지 코드 영역의 크기로부터 산출될 수 있다. 또한, 상기 중심연결선은 그 길이가 상기 기준 도형의 크기의 대략 자연수 배로 설정되는 것이 바람직하다. 또한, 상기 방향코드는 소정의 기준방향에 대한 상기 색상 순서에 따라 인접한 도형들의 중심연결선의 반 시계 방향 또는 시계 방향 각도를 소정의 분할각도로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 도형들은 상기 분할 각도로 분할되는 각 영역의 중심 각도에서 소정 각도 이내에 도형의 중심이 위치되도록 형성되는 것이 바람직하다. 또한, 상기 기준 방향은 상기 기준 도형과 상기 기준 도형으로부터 소정 거리 이격되어 표시되는 방향기준 도형의 중심을 연결하는 방향으로 설정되거나, 상기 기준 방향은 상기 도형들이 표시되는 사각형상의 이미지 코드 영역의 일측변의 방향으로 설정될 수 있다. 또한, 상기 거리코드는 기준 색상을 갖는 기준 도형과 상기 색상 순서에 따른 특정 색상을 갖는 도형의 중심을 연결하는 중심연결선의 길이를 상기 기준 도형의 크기로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 거리코드는 기준 색상을 갖는 기준 도형과 상기 색상 순서에 따른 특정 색상을 갖는 도형의 중심을 연결하는 중심연결선의 수평방향 길이와 수직방향 길이의 합인 직각방향 길이를 기준 도형의 크기로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 방향코드는 소정의 기준방향에 대한 상기 기준 도형과 상기 색상 순서에 따라 특정 색상을 갖는 코드 도형들의 중심을 연결하는 중심연결선의 각도를 소정의 분할각도로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 이미지 코드 영역은 소정 개수의 행과 열로 분할되며, 상기 이미지 코드의 코드 값은 상기 기준 도형이 위치되는 행과 열에 따라 부여되는 위치코드를 더 포함할 수 있다. 또한, 상기 이미지 코드의 코드 값은 상기 도형들의 형상에 따라 부여되는 형상코드를 더 포함할 수 있다.The image code of the present invention devised to achieve the above object is an image code for displaying predetermined information in a predetermined image code area, wherein at least three figures having a predetermined shape and size and different colors are predetermined from each other. The predetermined information is divided into a distance and an angle and included in the image code area, and the predetermined information is displayed as a code value including a distance code and a direction code of the figures according to a predetermined color order. The figures may be formed of one or a combination of polygons including a circle or a quadrangle, and triangles, and the figures may be red, green, blue, cyan, magenta, respectively. Magenta) and yellow (Yellow) may be formed of any one. The figures may include a reference figure that is a reference for calculating distances and angles between the figures and a code figure having the distance code and the direction code. In this case, the distance code may be calculated from a value of an integer part from a value obtained by dividing the length of a center connection line connecting the centers of adjacent figures according to the color order by the size of a reference figure. In addition, the distance code is calculated from a value of an integer part of a value obtained by dividing a perpendicular length, which is the sum of the horizontal length and the vertical length of the center connecting line connecting the centers between adjacent figures in the color order, by the size of the reference figure. Can be. In this case, the length of the right angle direction may be set to approximately a natural number of times the size of the reference figure. In addition, the size of the reference figure may be calculated from the size ratio of the reference figure to the size of the image code region set when the image code is formed and the size of the image code region calculated from the obtained image code. In addition, the length of the center connecting line is preferably set to approximately a natural number of times the size of the reference figure. In addition, the direction code may be calculated from a value of an integer part of a value obtained by dividing a counterclockwise or clockwise angle of a center connection line of adjacent figures according to the color order with respect to a predetermined reference direction by a predetermined division angle. In addition, the figures are preferably formed such that the center of the figure is located within a predetermined angle from the center angle of each region divided by the dividing angle. The reference direction may be set to a direction connecting a center of the reference figure and a direction reference figure displayed at a predetermined distance away from the reference figure, or the reference direction may correspond to one side of a rectangular image code area in which the figures are displayed. Direction can be set. The distance code may be calculated from a value of an integer part of a value obtained by dividing a length of a center connecting line connecting a reference figure having a reference color with a center of a figure having a specific color according to the color order by the size of the reference figure. have. The distance code may be divided by the size of the reference figure, which is a sum of the horizontal length and the vertical length of the center connecting line connecting the center of the reference figure having the reference color and the figure having the specific color according to the color order. It can be calculated from the value of the integer part of the value. In addition, the direction code is obtained by dividing the angle of the center connecting line connecting the center of the code figures having a specific color with the reference figure in a predetermined reference direction by a predetermined division angle from a value of an integer part. Can be calculated. The image code area may be divided into a predetermined number of rows and columns, and the code value of the image code may further include a location code assigned according to the row and column in which the reference figure is located. In addition, the code value of the image code may further include a shape code given according to the shape of the figures.
또한, 본 발명에 따른 이미지 코드의 인식방법은 소정의 이미지 코드 영역에 소정 형상의 서로 다른 색상을 갖는 기준 도형 및 코드 도형들간의 거리와 각도에 따른 거리 코드와 방향 코드를 이용하여 코드 값으로 소정 정보를 표시하는 이미지 코드의 인식방법에 있어서, 사진 또는 이미지에서 상기 이미지 코드가 구현되어 있는 이미지 코드 영역을 검출하는 단계와, 상기 이미지 코드 영역에 포함되어 상기 도형들을 추출하는 도형 추출단계와, 소정의 색상 순서에 따라 상기 추출된 도형들간의 거리인 중심연결선의 길이와 소정의 기준 방향에 대한 상기 중심연결선과 각도를 산출하는 거리 및 각도 산출단계 및 상기 도형들간의 거리와 각도로부터 상기 코드 도형들의 거리코드와 방향코드를 산출하여 상기 이미지 코드의 소정의 정보인 코드 값을 산출하는 코드 값 산출단계를 포함하는 것을 특징으로 한다. 또한, 상기 코드 값 산출단계는 행과 열로 구분된 이미지 코드 영역에서의 기준 도형의 위치에 따라 부여되는 위치코드를 산출하는 과정을 더 포함하며, 상기 코드 값은 위치코드를 더 포함할 수 있다. 또한, 상기 코드 값 산출단계는 상기 도형들의 형상에 따라 부여되는 형상코드를 산출하는 과정을 더 포함하며, 상기 코드 값은 형상코드를 더 포함할 수 있다.In addition, the method of recognizing the image code according to the present invention is predetermined as a code value by using a distance code and a direction code according to the distance and angle between the reference figure and code figures having different colors of a predetermined shape in a predetermined image code region. An image code recognition method for displaying information, the method comprising: detecting an image code region in which a picture code is implemented in a picture or an image, extracting a figure included in the image code region, and extracting the figures; Calculating a distance and an angle of calculating a length of a center connection line, which is a distance between the extracted figures, and an angle with the center connection line with respect to a predetermined reference direction, and a distance and an angle between the figures. The code value, which is predetermined information of the image code, is calculated by calculating a distance code and a direction code. Shipping is characterized by including the calculated code phase values. The calculating of the code value may further include calculating a location code assigned according to the location of the reference figure in the image code area divided into rows and columns, and the code value may further include a location code. The code value calculating step may further include calculating a shape code given according to the shapes of the figures, and the code value may further include a shape code.
또한, 본 발명에 따른 이미지 코드의 인식장치는 소정의 이미지 코드 영역에 소정 형상의 서로 다른 색상을 갖는 기준 도형 및 코드 도형들간의 거리와 각도에 따른 거리 코드와 방향 코드를 이용하여 코드 값으로 소정 정보를 표시하는 이미지 코드의 인식장치에 있어서, 상기 이미지 코드의 소정 정보인 코드 값을 산출하는데 필요한 상기 이미지 코드 영역의 크기와 상기 기준 도형의 상기 이미지 코드 영역의 크기에 대한 비와 분할각도 및 상기 도형들의 개수가 저장되는 저장부와 상기 이미지 코드가 포함된 사진 또는 이미지로부터 이미지 코드 영역을 포함하는 영역의 이미지를 획득하는 이미지 획득부와, 상기 이미지 코드 영역에 포함되어 있는 도형들의 색상을 필터링 하는 필터에 의하여 각 색상에 따른 각 도형의 필터링 이미지를 추출하는 이미지 처리부와 상기 이미지 처리부로부터 처리된 필터링 이미지로부터 각 도형들간의 거리인 중심연결선의 길이와 각도를 산출하는 상기 거리 및 각도 산출부 및 상기 거리 및 각도 산출부로부터 전송되는 각 코드 도형들의 거리 및 각도와 상기 저장부로부터 전송되는 기준 도형의 크기 및 분할 각도로부터 각 코드 도형들의 거리코드와 방향코드를 계산하고 이에부터 코드 값을 산출하는 코드 값 산출부를 포함하는 것을 특징으로 한다. 또한, 상기 코드 값 산출부는 이미지 코드 영역이 소정의 행과 열로 구분되어 있는 경우에 기준 도형이 위치하는 행과 열의 위치에 따라 부여되는 위치코드를 산출하도록 구성될 수 있다. 또한, 상기 코드 값 산출부는 상기 각 도형들이 원형 또는 사각형 또는 삼각형과 같이 소정의 형상으로 형성되는 경우에는 이들의 형상에 따라 부여되는 형상코드를 산출하도록 구성될 수 있다. In addition, the apparatus for recognizing an image code according to the present invention uses a distance code and a direction code according to a distance and an angle between a reference figure and code figures having different colors having a predetermined shape in a predetermined image code region, and the predetermined code value. An apparatus for recognizing an image code displaying information, comprising: a ratio and a dividing angle of a size of the image code area necessary for calculating a code value that is predetermined information of the image code and a size of the image code area of the reference figure; A storage unit storing the number of figures, an image obtaining unit obtaining an image of an area including an image code area from a picture or an image including the image code, and filtering colors of the shapes included in the image code area Extracting the filtered image of each figure according to each color by the filter The distance and angle calculator for calculating the length and angle of the center connection line which is the distance between the figures from the filtered image processed by the image processor and the image processor, and the distance and angle of each code figure transmitted from the distance and angle calculator. And a code value calculator for calculating a distance code and a direction code of each code figure from a size and a division angle of the reference figure transmitted from the storage unit, and calculating a code value therefrom. The code value calculator may be configured to calculate a location code given according to the position of the row and column in which the reference figure is located when the image code area is divided into predetermined rows and columns. In addition, the code value calculation unit may be configured to calculate a shape code given according to the shape of each figure is formed in a predetermined shape, such as a circle, a square or a triangle.
이하, 본 발명에 따른 이미지 코드 및 이의 인식방법과 인식장치를 첨부한 도면과 실시예를 통하여 설명한다.Hereinafter, an image code, a recognition method thereof, and a recognition device according to the present invention will be described with reference to the accompanying drawings and embodiments.
도 2는 본 발명의 실시예에 따른 이미지 코드를 나타낸다. 도 3은 본 발명의 다른 실시예에 따른 이미지 코드 영역을 나타낸다. 도 4는 RGB 컬러 큐브를 나타낸다. 도 5는 도 4로부터 만들어진 HSI 컬러 모델을 나타낸다.2 illustrates an image code according to an embodiment of the present invention. 3 illustrates an image code region according to another embodiment of the present invention. 4 shows an RGB color cube. FIG. 5 shows the HSI color model created from FIG. 4.
본 발명의 실시예에 따른 이미지 코드(10)는, 도 2를 참조하면, 소정 면적을 갖는 이미지 코드 영역(20)에 소정 형상과 크기를 갖으며 서로 다른 색상을 갖는 6개의 도형(30, 40a, ... 40e)이 서로 소정 거리와 각도로 이격되어 형성된다. 도 2에서 각 도형의 내부에 표시되어 있는 영어 문자는 해당 도형이 갖는 색상을 의미한다. 따라서, 상기 이미지 코드(10)는 실제로 해당 색상을 갖는 칼라 도형으로 표현된다. 상기 이미지 코드(10)는 소정의 색상 순서에 따라 각각 다른 색상을 갖는 상기 도형(30, 40a, ... 40e)들의 상호간의 거리와 각도에 따른 거리코드와 방향코드를 이용하여 소정의 정보를 표시하게 된다. 즉, 상기 이미지 코드(10)가 표시하는 정보는 상기 도형들(30, 40a, ... 40e)의 거리와 각도에 따라 부여되는 거리코드와 방향코드의 조합에 의하여 표현된다. 한편, 상기 이미지 코드(10)는 정보를 포함하지 않고 방향코드의 기준 방향을 설정하는 방향기준 도형(32)을 더 포함하여 형성될 수 있다.Referring to FIG. 2, the
상기 이미지 코드(10)는, 도 2를 참조하면에 도시된 바와 같이 이미지 코드 영역(20)에 6개의 도형을 포함하여 형성되며 다만, 여기서는 도형의 개수를 제한하는 것은 아니며 표현하고자 하는 정보의 수에 따라 다수의 도형들이 포함되어 형성될 수 있다. 따라서, 상기 이미지 코드(10)는 적어도 3개의 도형을 소정의 색상 순서에 따라 표시하여 소정의 정보를 표시할 수 있으며, 바람직하게는 3개 내지 6개의 도형을 포함하여 형성될 수 있다. 또한, 상기 이미지 코드(10)는 도형이 색상에 따라 명확히 구별될 수 있다면 6개보다 많은 색상이 사용될 수 있으며, 이러한 경우에 이미지 코드(10)는 더 많은 수의 도형으로 이루어 질 수 있다.As illustrated in FIG. 2, the
상기 이미지 코드 영역(20)은 상기 이미지 코드(10)가 사용되는 사진 또는 물건의 소정 위치에서 상기 도형들(30, 40a, ... 40e)이 표시되는 영역으로, 상기 도형들(30, 40a, ... 40e)이 표시되기에 적정한 면적으로 형성된다. 상기 이미지 코드 영역(20)은 바람직하게는 사각형상으로 형성되며, 다만 여기서 그 형상을 한정하는 것은 아니다. 따라서 상기 이미지 코드 영역(20)은 이미지 코드(10)가 사용되는 사진 또는 물건의 디자인 또는 형상에 따라 원형 또는 삼각형과 같은 다각형 의 형상으로 형성될 수 있음은 물론이다. 또한 상기 이미지 코드 영역(20)은 도형(30, 40a, ... 40e)의 색상이 명확하게 구별되도록 하기 위해서 바람직하게는 백색으로 형성된다. 또한, 상기 이미지 코드 영역(20)은 이미지 코드(10)가 사용되는 사진 또는 물건의 내용 또는 디자인 부분과 구별되도록 별도의 테두리선(20a, 20b, 20c, 20d)을 포함하여 형성될 수 있다.The
또한, 상기 이미지 코드 영역(20)은 이미지 코드(10)에서 기준 도형(30)과 소정의 크기 비를 갖도록 형성된다. 따라서, 상기 이미지 코드 영역(20)은 사각형상으로 형성될 때는 저변 또는 측변 또는 대각선의 길이가 기준 도형(30)과 소정의 설정된 길이 비를 갖도록 형성하게 된다. In addition, the
또한, 상기 이미지 코드 영역(20)은, 도 3을 참조하면, 전체가 소정 수의 행과 열로 구분되어 형성될 수 있다. 상기 도형들의 행과 열에 대한 위치 정보는 이미지 코드(10)의 일부를 구성하는 위치코드 값으로 포함될 수 있으며, 이미지 코드(10)는 표시할 수 있는 조합의 수가 증가된다. 따라서 도 3에서 보는 바와 같이 중앙의 기준 도형(130a)과 외곽의 기준 도형(130b)은 서로 다른 위치코드 값을 갖게 된다. 상기 위치코드 값은 기준 도형이 위치한 행과 열의 번호 또는 일정한 행과 열의 방향에 따라 각 칸에 부여되는 일련 번호로 설정될 수 있다. 예를 들면, 상기 기준 도형(130a)은 위치코드가 "33" 또는 "13", 상기 기준도형(130b)은 위치코드가 "22" 또는 "07"로 설정될 수 있다. 상기 위치코드 값은 이미지 코드(10)의 코드 값에서 소정의 위치에 배치될 수 있다. 예를 들면 기준 도형(30)의 위치코드는 코드 값의 처음에 배치될 수 있다. 따라서, 상기 이미지 코드 영역(20)은 이미지 코드 영역(20)을 소정의 행과 열로 구분하는 구획선이 표시되어 포함될 수 있다. 또한, 상기 이미지 코드 영역(20)은 이러한 행과 열을 구분하는 구획선이 표시되지 않으며, 이미지 코드(10)가 형성될 때 이미지 코드 영역(20)을 전체 크기 및 필요한 행과 열의 수에 따라 소정의 행과 열 영역을 상대적인 좌표 값을 기준으로 분할하여 각 도형을 특정 행과 열에 위치되도록 할 수 있다. 따라서, 상기 이미지 코드(10)는 코드 값을 산출할 때 행과 열을 구분하는 구획선이 표시되어 있는 경우에는 구획선을 인식하여 기준 도형의 행과 열을 결정할 수 있으며, 구획선이 표시되지 않은 경우에는 기준 도형이 위치하는 행과 열의 상대적인 좌표 값으로부터 행과 열의 위치를 결정할 수 있다.In addition, referring to FIG. 3, the
상기 도형들(30, 40a, ... 40e)은 각각 서로 다른 색상을 갖는 다수의 원형 형상을 갖는 도형으로 형성된다. 다만, 여기서는 상기 도형들(30, 40a, ... 40e)의 형상을 한정하는 것은 아니며, 사각형상 또는 삼각형상등 다각형의 형상으로 형성될 수 있음은 물론이다. 따라서, 상기 도형들(30, 40a, ... 40e)은 그 형상은 일정한 값이 부여되는 형상코드 값을 갖도록 형성될 수 있다. 즉 상기 도형들(30, 40a, ... 40e)의 크기가 원형이면 "01" 또는 "1" 또는 "A", 사각형이면 "02" 또는 "2" 또는 "B", 삼각형이면 "03" 또는 "3" 또는 "C"과 같이 일정한 값이 형상코드로 부여될 수 있다. 상기 형상코드 값은 이미지 코드(10)의 코드 값에서 소정의 위치에 포함될 수 있다. 예를 들면 기준 도형(30)의 형상코드는 코드 값의 처음에 배치되며, 코드 도형들(40a, ..., 40e)의 형상코드는 각 코드 도형들(40a, ... 40e)의 방향코드의 뒤에 배치될 수 있다. 또한, 상기 도형들(30, 40a, ... 40e)은 각각 서로 다른 크기로 형성될 수 있다.The figures 30, 40a, ... 40e are each formed as a figure having a plurality of circular shapes having different colors. However, the shape of the figures 30, 40a, ... 40e is not limited thereto, but may be formed in a polygonal shape such as a quadrangular shape or a triangular shape. Therefore, the figures 30, 40a, ... 40e may be formed to have a shape code value to which a certain value is assigned. That is, if the size of the figures 30, 40a, ... 40e is circular, "01" or "1" or "A", if the rectangle is "02" or "2" or "B", if the triangle is "03" Alternatively, a constant value such as "3" or "C" may be assigned to the shape code. The shape code value may be included in a predetermined position in the code value of the
상기 도형들(30, 40a, ... 40e)의 색상은 서로 구분이 용이한 색상으로 선택되며, 바람직하게는 안전색인 빨강(Red), 초록(Green), 파랑(Blue), 시안(Cyan), 마젠타(Magenta), 노랑(Yellow)이 사용된다. 이러한 색상은, 도 4와 도 5를 참조하면, 채도(Saturation)와 색조(Hue)의 차이가 있어 서로 구별이 용이하게 된다. 도 4에서 보는 바와 같이 R, G, B, C, M, Y는 RGB 색상 체계에서 서로에 대하여 먼 거리의 위치에 해당하는 색상 값을 갖는다. 또한, 도 5에서 보는 바와 같이 R, G, B, C, M, Y는 채도가 높고 서로에 대하여 등 간격 각도로 이격되어 위치하는 색상 값을 갖게 된다. 도 5에서 각 색상의 채도(Saturation) 값은 원점으로부터의 거리에 비례하며, 색조(Hue) 값은 적색으로부터의 각도에 해당한다. 즉, R, G, B, C, M, Y는 채도 값은 최대 값인 1.0, 색상 값은 60의 배수의 각도를 갖게 된다. 따라서 R, G, B, C, M, Y는 서로에 대하여 구별이 용이하게 되며, 이미지 코드에서 각 색상을 갖는 도형을 추출하여 코드 값을 산출하는 경우에 오차를 최소화 할 수 있게 된다. 다만 여기서 상기 도형들(30, 40a, ... 40e)은 상기 색상 외에도 다양한 색상으로 표현될 수 있으며, 여기서 그 색상을 한정하는 것은 아니다. 또한, 상기 도형들(30, 40a, ... 40e)은 RGB 색상체계 외에도 다양한 색상 체계에 의한 색상으로 표현될 수 있음은 물론이다.Colors of the figures 30, 40a, ... 40e are selected to be easily distinguishable from each other, and preferably red, green, blue, and cyan, which are safety colors. Magenta and Yellow are used. 4 and 5, there is a difference between saturation and hue, so that the colors can be easily distinguished from each other. As shown in FIG. 4, R, G, B, C, M, and Y have color values corresponding to distant positions with respect to each other in the RGB color system. In addition, as shown in FIG. 5, R, G, B, C, M, and Y have high saturation and have color values that are spaced apart at equal intervals from each other. In FIG. 5, the saturation value of each color is proportional to the distance from the origin, and the hue value corresponds to an angle from red. That is, R, G, B, C, M, and Y have an saturation value of 1.0, which is the maximum value, and a color value of multiples of 60. Therefore, R, G, B, C, M, and Y can be easily distinguished from each other, and the error can be minimized when calculating a code value by extracting a figure having each color from an image code. However, the figures 30, 40a, ... 40e may be expressed in various colors in addition to the color, and the color is not limited thereto. In addition, the figures 30, 40a, ... 40e may be represented by colors using various color systems in addition to the RGB color system.
상기 도형들(30, 40a, ... 40e)은 이미지 코드 영역(20)에 서로 소정 거리와 각도로 이격되어 표시되며, 특정한 기준 색상을 갖는 기준 도형(30)과 코드 값을 갖는 코드 도형들(40a, ... 40e)을 포함하여 구성된다. 또한, 상기 이미지 코드 영 역(20)에는 상기 기준 도형(30)과 함께 기준 방향(x)을 설정하는 방향기준 도형(32)을 더 포함하여 형성될 수 있다. 상기 기준 도형(30)은 이미지 코드(10)의 코드 값을 설정함에 있어서 코드 도형들(40a, ... 40e)의 거리와 각도에 대한 기준이 된다. 따라서, 상기 기준 도형(30)은 이미지 코드(10)의 코드 값을 인식하는 과정에서 검색이 시작되는 도형으로 제일 먼저 인식되며, 소정의 색상 순서에 따라 나머지 코드 도형들(40a, ... 40e)이 인식된다. 예를 들면, 상기 기준 도형(30)은 그 색상이 빨강으로 설정되며, 나머지 코드 도형들(40a, ... 40e)은 그 색상 순서가 초록(Green) → 파랑(Blue) → 시안(Cyan) → 마젠타(Magenta) → 노랑(Yellow)의 순서로 설정될 수 있다. 다만, 여기서 기준 도형(30)의 기준 색상과 색상 순서는 상기와 같이 한정되는 것이 아니며, 다양한 기준 색상과 색상 순서가 사용될 수 있음은 물론이다. 한편, 상기 도형들(30, 40a, ... 40e)은, 도 2에서 보는 바와 같이, 기준 도형(30)이 이미지 코드 영역(20)의 중심영역에 위치되고, 다른 코드 도형(40a, ... 40e)들은 기준 도형(30)을 중심으로 주위에 위치되도록 구성되어 있으나, 이러한 위치 구성에 한정하는 것은 아니며 기준 도형(30)과 다른 코드 도형들(40a, ... 40e)이 서로 다양하게 위치되도록 구성될 수 있음은 물론이다. The figures 30, 40a, ... 40e are displayed on the
상기 방향기준 도형(32)은 바람직하게는 상기 기준 도형(30)과 동일한 색상을 갖도록 형성되며, 이미지 코드를 설정할 때 반영되는 소정의 기준에 의하여 기준 도형(30)과 구별된다. 예를 들면 상기 방향기준 도형(32)은 이미지 코드 영역(20)내에서 기준 도형(30)보다 외곽 또는 좌 또는 우에 위치되는 도형으로 설정될 수 있다. The direction reference figure 32 is preferably formed to have the same color as the reference figure 30 and is distinguished from the reference figure 30 by a predetermined reference reflected when setting an image code. For example, the direction reference figure 32 may be set to a figure located outside, left or right, of the reference figure 30 in the
도 6은 본 발명의 실시예에 따른 이미지 코드(10)에서 소정의 색상 순서에 따라 도형들(30, 40a, ... 40e)의 거리코드와 방향코드를 산출하는 과정에 대한 개략도를 나타낸다. 즉, 도 6은 이미지코드(10)가 거리코드와 방향코드의 조합에 의하여 표현한 코드 값을 산출하는 과정을 나타낸다.6 is a schematic diagram of a process of calculating a distance code and a direction code of figures 30, 40a, ... 40e according to a predetermined color order in an
상기 코드 도형들(40a, ... 40e)은, 도 6을 참조하면, 서로 소정 거리 이격되어 표시되며 코드 도형들(40a, ... 40e)간의 이격된 거리는 소정의 기준에 의하여 거리코드로 변환되어 이미지 코드(10)의 코드 값 일부를 형성하게 된다. 상기 코드 도형들(40a, ... 40e)의 거리코드는 기준 도형(30)의 크기에 대한 상기 도형들(30, 40a, ... 40e)의 중심을 연결하는 중심연결선(d1, d2, d3, d4, d5)의 길이의 비로부터 산출될 수 있다. 즉, 상기 기준 도형(30)은 형상이 원형이면 그 지름 또는 반지름에 해당하는 크기를 갖게 되며, 사각 형상이면 대각선의 길이 또는 특정 변의 길이 또는 내접 또는 외접원의 지름/반지름에 해당하는 크기를 갖게 된다. 또한, 상기 중심연결선은 상기 색상 순서에 따라 인접한 순서의 도형의 중심을 연결한 선이 된다. 따라서, 상기 거리코드는 각 도형이 색상 순서대로 인식될 때 인접한 순서의 도형들간의 중심연결선의 길이를 기준 도형(30)의 크기로 나눈 값에서 정수부분에 해당하는 값으로부터 산출될 수 있다. 예를 들면, 상기 기준 도형(30)은 빨강 색을 갖는 도형이며, 상기에서 예시한 색상 순서에 따라 기준 도형(30) 다음 순서인 초록 색상을 갖는 도형(40a)(이하 "초록 도형"이라 한다)이 인식된다. 따라서, 상기 초록 도형(40a)이 나타내는 거리 코드는 상기 기준 도형(30)과 초록 도형(40a)의 중심을 연결하는 중심연결선(d1)의 길이를 기준 도형(30)의 크기로 나 눈 값에서 정수 값 부분으로 산출된다. 또한, 다음 색상 순서는 파랑이므로 파랑 색상을 갖는 도형(40b)의 거리코드는 초록 도형(40a)과 파랑 도형(40b)의 중심을 연결하는 중심연결선(d2)의 길이를 기준 도형(30)의 크기로 나눈 값에서 정수부분에 해당하는 값으로 된다. 이와 같이 상기 도형들(30, 40a, ... 40e)의 거리코드는 설정된 색상 순서에 따라 인접한 색상을 갖는 도형들(30, 40a, ... 40e)의 중심을 연결하는 중심연결선(d1, d2, d3, d4, d5)의 길이를 산출하여 각각 계산하게 되며, 코드 도형들(40a, ... 40e)의 거리코드는 이미지 코드(10)가 표시하는 코드 값의 일부분을 이루게 된다. Referring to FIG. 6, the code figures 40a, ... 40e are displayed spaced apart from each other by a predetermined distance, and the spaced distances between the code figures 40a, ... 40e are represented by a distance code based on a predetermined criterion. Is converted to form part of the code value of the
상기 기준 도형(30)은 그 크기가 이미지 코드(10)를 형성할 때 미리 정해지게 되며, 도형들(30, 40a, ... 40e)간의 중심연결선(d1, d2, d3, d4, d5)의 길이는 각 도형들(40a, ... 40e)의 코드 값에 따라 기준 도형(30)의 크기를 기준으로 상대적으로 설정된다. 또한, 상기 기준 도형(30)은 이미지 코드(10)의 크기 즉, 이미지 코드 영역(20)의 크기에 대하여 일정한 크기 비를 갖도록 형성될 수 있다. 즉, 상기 이미지 코드(10)는 이미지 코드 인식장치에 의하여 촬영 영상으로 이미지가 획득되는 과정에서 이미지 촬영 조건 예를 들면, 이미지 코드로부터의 거리에 따라 그 크기가 달라지게 된다. 따라서, 촬영된 이미지 코드의 크기가 원래 이미지 코드의 크기와 다르게 되면 기준 도형의 크기도 변하게 되므로, 이러한 경우에는 이미지 코드(10) 설정시의 기준 도형(30)의 이미지 코드 영역(20)에 대한 크기 비를 반영하여 거리코드를 산출하는 것이 필요하게 된다. 상기 이미지 코드 영역(20)의 크기는 이미지 코드 영역의 형상에 따라 지름 또는 반지름, 변 또는 대각선의 길이 등으로 설정될 수 있다.The reference figure 30 is predetermined when the size of the
또한, 상기 도형들(30, 40a, ... 40e)의 중심연결선의 길이는 바람직하게는 색상 순서에 따라 인접되는 각 도형들(30, 40a, ... 40e)의 중심간의 거리가 대략 기준 도형(30) 크기의 정수배가 되도록 설정되어, 중심연결선의 길이를 산출할 때 오차를 줄이게 된다. 즉, 상기 기준 도형(30)과 초록 도형(40a)의 중심연결선의 거리, 초록 도형(40a)과 파랑 도형(40b)의 중심연결선의 거리등은 각각 기준 도형(30) 크기의 대략 정수배가 된다. 따라서, 이미지 코드(10)의 인식과정에서 도형들(30, 40a, ... 40e)의 위치를 인식하고 각 중심연결선의 길이를 산출할 때 일부 오차가 발생되어도 거리 코드에는 영향을 미치지 않게 된다.In addition, the length of the center connection line of the figures 30, 40a, ... 40e is preferably based on the distance between the centers of the adjacent figures 30, 40a, ... 40e according to the color order. The figure 30 is set to be an integer multiple of the size, thereby reducing the error when calculating the length of the center connection line. That is, the distance between the center connection line of the reference figure 30 and the green figure 40a, and the distance between the center connection line of the green figure 40a and the blue figure 40b are approximately integer multiples of the size of the reference figure 30, respectively. . Therefore, even when some errors occur when recognizing the positions of the figures 30, 40a, ... 40e and calculating the length of each center connecting line in the recognition process of the
도 7은 본 발명의 실시예에 따른 이미지 코드에서 소정의 색상 순서에 따라 코드 도형들의 거리코드를 산출하는 다른 과정에 대한 개략도를 나타낸다. 7 is a schematic diagram of another process of calculating distance codes of code figures according to a predetermined color order in an image code according to an embodiment of the present invention.
한편, 상기 도형들(30, 40a, ... 40e)의 거리 코드는, 도 7을 참조하면, 각 도형들을 수평방향 길이(h1 ... )와 수직 방향 길이(o1 ... )로부터 산출할 수 있다. 즉, 상기 도형들(30, 40a, ... 40e)간의 거리는 도형들(30, 40a, ... 40e)을 연결하는 중심연결선(d1, ..., d5)을 수평 방향과 수직 방향으로 분리하여 수평방향 길이와 상기 수평방향에 수직인 수직방향 길이의 합인 직각방향 길이로 설정될 수 있다. 따라서, 상기 코드 도형들(40a, ... 40e)의 거리 코드는 직각방향 길이를 기준 도형(30)의 크기로 나눈 값에서 정수 값 부분으로부터 산출될 수 있다. 이와 같이 상기 코드 도형들(40a, ... 40e)의 거리 코드가 직각방향 길이로부터 산출되는 경우에는 직각방향 길이가 중심연결선의 길이보다 크기 때문에 이미지 코드의 전체 크기를 상대적으로 작게 형성할 수 있게 된다. 또한, 중심연결선의 길이와 마찬가지로, 상기 직각방향 길이는 대략 기준 도형(30) 크기의 정수배가 되도록 설정되어 거리 코드의 산출시 오차가 발생되는 것을 방지하게 된다. 한편 도 7에서는 기준방향(x)과 수평 방향(h1)이 일치하도록 표시되어 있으나, 반드시 기준방향(x)과 수평방향(h1)이 일치하는 것은 아니며, 방향기준 도형(32)의 위치가 변경되면 기준 방향과 수평방향이 일치하지 않게 됨은 물론이다.Meanwhile, referring to FIG. 7, the distance codes of the figures 30, 40a, ... 40e are calculated from the horizontal length h1 ... and the vertical length o1 ... can do. That is, the distance between the figures 30, 40a, ... 40e may be such that the center connecting lines d1, ..., d5 connecting the figures 30, 40a, ... 40e are in a horizontal direction and a vertical direction. Separately, it may be set to a perpendicular length that is the sum of the horizontal length and the vertical length perpendicular to the horizontal direction. Therefore, the distance codes of the code figures 40a, ... 40e may be calculated from an integer value portion in a value obtained by dividing the right-angle length by the size of the reference figure 30. As described above, when the distance codes of the code figures 40a, ... 40e are calculated from right angles, the total length of the image code can be formed relatively small because the right angles are larger than the length of the center connection line. do. In addition, similar to the length of the center connection line, the right-angle length is set to be approximately an integer multiple of the size of the reference figure 30 to prevent the occurrence of an error when calculating the distance code. In FIG. 7, the reference direction x and the horizontal direction h1 are shown to coincide, but the reference direction x and the horizontal direction h1 do not necessarily coincide with each other, and the position of the direction reference figure 32 is changed. If the reference direction and the horizontal direction does not match, of course.
상기 코드 도형들(40a, ... 40e)은 이미지 코드 영역(20)에서 서로 소정 각도를 이루도록 표시되며 코드 도형들(40a, ... 40e)간의 각도는 방향코드로 이미지 코드(10)가 표시하는 코드 값의 일부를 형성하게 된다. 상기 코드 도형들(40a, ... 40e)의 방향코드는 소정의 기준 방향(x)에 대한 상기 색상 순서에 따라 인접한 도형들(40a, ... 40e)의 중심을 연결하는 중심연결선의 각도(θ1, θ2, θ3, θ4, θ5)를 소정의 분할각도로 나눈 값에서 정수 부분의 값으로부터 산출될 수 있다.The code figures 40a, ... 40e are displayed to form a predetermined angle with each other in the
상기 기준 방향은 이미지 코드 영역(20)에서 다양한 방향으로 설정될 수 있으며 바람직하게는 기준 도형(30)과 방향기준 도형(32)을 연결하는 중심연결선(x)의 방향으로 설정될 수 있다. 또한 상기 기준 방향은 이미지 코드 영역(20)을 형성하는 도형의 일측변(20a, 20b, 20c, 20e)의 방향으로 설정될 있다. 예를 들면 상기 기준 방향은 이미지 코드 영역(20)이 사각형상으로 형성되는 경우에 저변 또는 측변으로 설정될 수 있다.The reference direction may be set in various directions in the
도 8은 기준 도형의 주위 영역이 소정의 분할각도로 분할되어 형성되는 이미지 코드를 나타낸다.8 illustrates an image code formed by dividing a peripheral area of a reference figure at a predetermined division angle.
상기 분할 각도는, 도 8을 참조하면, 360도를 소정 간격으로 분할하는 각도를 의미하며, 각 도형들(30, 40a, ... 40e)의 주위는 상기 분할 각도의 간격에 따라 다수의 영역으로 나누어지게 된다. 예를 들면, 상기 분할 각도가 30도로 설정되는 경우에 각 도형들(30, 40a, ... 40e)의 주위는 30도 간격으로 12개의 영역(α1, ... α12)으로 나누어지게 된다. 상기 분할 각도는 이미지 코드(10)를 형성하는 과정에서 미리 설정되어야 한다. 상기 분할 각도는 이미지 코드(10)가 필요로 하는 코드 값의 수에 따라 미리 설정되며, 표현되어야 하는 코드 값의 조합수가 많은 경우에는 보다 작은 각도를 갖게 된다. 또한, 상기 분할 각도는 이미지 코드(10)를 인식하는 장치의 정밀도가 높은 경우에 보다 작게 각도를 갖을 수 있게 된다.Referring to FIG. 8, the dividing angle refers to an angle dividing 360 degrees at predetermined intervals, and the periphery of each of the figures 30, 40a,. Divided by. For example, when the dividing angle is set to 30 degrees, the periphery of each figure 30, 40a, ... 40e is divided into 12 regions α1, ... α12 at intervals of 30 degrees. The dividing angle should be set in advance in the process of forming the
상기 코드 도형들(40a, ... 40e)의 각도(θ1, θ2, θ3, θ4, θ5)는 상기에서 설명한 바와 같이 기준 방향(x)에 대한 소정 색상 순서에 따라 인접한 색상을 갖는 두 도형의 중심을 연결한 중심연결선(d1, d2, d3, d4, d5)의 방향의 각도로 설정되며, 이때 중심연결선의 방향은 색상 순서에서 선 순위 색상의 도형에서 후 순위 색상의 도형으로의 방향으로 설정된다. 또한, 상기 코드 도형들(40a, ... 40e)의 각도는 반 시계 방향으로의 각도로 설정되며, 시계 방향으로의 각도로 설정될 수 있음은 물론이다. 예를 들면, 초록 도형(40a)의 각도는 상기 기준 방향(x)을 시작으로 반 시계 방향으로 기준 도형(30)과 초록 도형(40a)의 중심을 연결하는 중심연결선(d1)의 방향 사이의 각도로 산출된다. 또한, 상기 파랑 도형(40b)의 각도는 기준 방향(x)을 시작으로 반 시계 방향으로 초록 도형(40a)과 파랑 도형(40b)의 중심을 연결하는 중심연결선(d2)의 방향 사이의 각도로 산출된다. 상기 코드 도형 (40a, ... 40e)의 각도는 상기에서 기준 방향(x)에 대하여 반 시계 또는 시계 방향과 같이 일정한 방향으로의 각도로 산출되어야 코드 도형들(40a, ... 40e)로부터 산출되는 각도와 방향 코드가 일관성을 가지게 된다.The angles θ1, θ2, θ3, θ4, and θ5 of the code figures 40a,..., And 40e may be divided into two figures having adjacent colors in a predetermined color order with respect to the reference direction x, as described above. It is set as the angle of the direction of the center connecting line (d1, d2, d3, d4, d5) connecting the center, and the direction of the center connecting line is set from the figure of the line rank color to the figure of the next rank color in the color order. do. In addition, the angles of the code figures 40a, ... 40e may be set to the counterclockwise angle, and may be set to the clockwise angle. For example, the angle of the green figure 40a is formed between the direction of the center connecting line d1 connecting the center of the reference figure 30 and the green figure 40a in a counterclockwise direction starting with the reference direction x. Calculated in degrees. In addition, the angle of the blue figure 40b is an angle between the direction of the center connection line d2 connecting the center of the green figure 40a and the blue figure 40b in the counterclockwise direction starting from the reference direction x. Is calculated. The angles of the code figures 40a, ... 40e must be calculated at an angle in a constant direction, such as counterclockwise or clockwise, with respect to the reference direction x, from the code figures 40a, ... 40e. The calculated angle and direction codes are consistent.
상기 코드 도형들(40a, ... 40e)의 방향코드는 코드 도형들(40a, ... 40e)의 각도를 상기 분할 각도로 나눈 값에서 정수부분의 값으로부터 산출될 수 있다. 또한, 상기 코드 도형들(40a, ... 40e)의 각 방향코드는 바람직하게는 최대 방향코드 값의 자리 수와 동일한 자리 수로 설정될 수 있다. 예를 들면, 상기 분할 각도가 30도인 경우에, 코드 도형들(40a, ... 40e)의 방향코드는 최대방향코드인 11의 자리 수인 2자리 수로 표현된다. 따라서, 상기 초록 도형(40a)의 각도가 대략 40도인 경우에, 상기 초록 도형(40a)의 방향코드는 "01"이 된다. 또한, 상기 파랑 도형(40b)의 방향코드는 상기 파랑 도형의 각도가 대략 260도이므로 "08"이 된다. 또한, 상기 방향코드는 한자리수로 표현하기 위해서 0, 1, 2 , ..., 9, A, B와 같이 표현될 수 있다.The direction codes of the code figures 40a, ... 40e may be calculated from the value of the integer part of the value obtained by dividing the angles of the code figures 40a, ... 40e by the dividing angle. In addition, each direction code of the code figures 40a, ... 40e may be set to the same number of digits as the number of digits of the maximum direction code value. For example, when the dividing angle is 30 degrees, the direction codes of the code figures 40a, ... 40e are represented by two digits which are 11 digits which are the maximum direction codes. Therefore, when the angle of the green figure 40a is approximately 40 degrees, the direction code of the green figure 40a becomes "01". The direction code of the blue figure 40b is " 08 " because the angle of the blue figure is approximately 260 degrees. In addition, the direction code may be expressed as 0, 1, 2, ..., 9, A, B in order to represent a single digit.
상기 코드 도형들(40a, ... 40e)은 바람직하게는 전 순서 색상의 도형 주위가 상기 분할각도에 의하여 소정 영역으로 분할될 때 각도를 기준으로 분할 영역의 중앙 각도 부분에서 소정의 허용각도 내에 위치된다. 예를 들면, 초록 도형(40a)은, 도 8을 참조하여 보면, 각도를 기준으로 분할 영역인 α2 영역의 대략 중앙 각도에 표시된다. 상기 코드 도형들(40a, ... 40e)의 중심이 각 분할 영역의 경계 부분에 위치하게 되면 도형의 방향코드를 산출함에 있어서 오류가 발생될 염려가 있다. 또한, 상기 코드 도형들(40a, ... 40e)이 원형으로 형성되는 경우에도 검출된 이미지가 완전한 원으로 검출되지 않는 경우 실제 이미지 코드(10)에 표시된 도형의 중심과 검출된 도형의 중심간의 위치 차이에 따른 오차에 의하여도 오류가 발생될 염려가 있게 된다. 따라서 이러한 오류를 줄이기 위해서 상기 도형들(30, 40a, ... 40e)의 중심은 대략적으로 각 분할 영역의 중심 부분에 위치되도록 형성하는 것이 바람직하다.The code figures 40a, ... 40e are preferably within a predetermined allowable angle in the central angle portion of the divided region based on the angle when the periphery of the figure of the previous color is divided into the predetermined region by the dividing angle. Is located. For example, with reference to FIG. 8, the green figure 40a is displayed at the substantially center angle of the
한편, 상기 코드도형들(40a, ... 40e)의 각도는 소정의 색상 순서에 따라 인접하는 도형들(30, 40a, ... 40e)간의 수평방향길이와 수직방향길이 및 도형들이 위치하는 사분면을 사용하여 산출할 수 있다.(상기 수평방향길이와 수직방향길이는 도 7에 표시되어 있다.) 이때, 수평방향에 대한 기준을 상기에서 설명한 바와 같이 미리 설정하게 된다. 상기 코드도형들(40a, ... 40e)의 각도를 구하는 방법은, 보다 상세하게는, 먼저 방향코드를 구하고자 하는 도형이 위치한 사분면을 구한다. 다음으로 방향코드를 구하고자 하는 도형과 색상 순서에 따라 이전 순서의 도형 사이에서 이전 순서의 도형으로부터 방향코드를 구하고자 하는 도형에 이르는 수평방향길이와 수직방향길이를 산출하여, 수평방향과 수직방향이 이루는 각도(즉, 수평방향길이와 수직방향길이의 아크탄젠트(arctangent)값)를 구한다. 마지막으로, 방향코드를 구하고자 하는 도형의 각도는 방향코드를 구하고자 하는 도형이 위치한 사분면에서 1을 차감한 수에 90도를 곱한 각도(예를 들어, 도형이 2사분면에 위치하면 90도)와 수평방향과 수직방향이 이루는 각도를 합하여 산출하게 된다. 따라서, 상기 방향코드를 구하고자 하는 도형의 방향코드는 산출된 각도를 분할각도로 나누어 산출할 수 있게 된다. 다만 이러한 과정은 도형들의 각도를 반시계 방향을 기준으로 산출하는 경우에 적용되며, 시계방향을 기준으로 산출하는 경우에는 다르게 된다. 또한, 상기와 같은 방식으로 코드도형들(40a, ... 40e)의 각도를 산출할 때 도형들의 각도 방향과 도형들이 위치한 사분면에 따라 아크탄젠트 값을 구하는 기준이 다르게 된다. 예를 들면, 코드 도형들(40a, ... 40e)이 1사분면 또는 3사분면에 위치하게 되면 코드 도형들(40a, ... 40e)의 아크탄젠트 값은 수평방향길이에 대한 수직방향 길이의 비로부터 산출된다. 그러나, 코드도형들(40a, ... 40e)이 2사분면 또는 4사분면에 위치하게 되면 코드도형들(40a, ... 40e)의 아크탄젠트 값은 수직방향길이에 대한 수평방향길이의 비로부터 산출된다. 따라서, 도형의 각도를 시계방향을 기준으로 산출하는 경우에는 상기에서 설명한 기준의 반대로 적용하게 된다.On the other hand, the angles of the code figures 40a, ... 40e are the horizontal length, the vertical length and the shape between the adjacent figures (30, 40a, ... 40e) according to a predetermined color order It can be calculated using the quadrant. (The horizontal length and the vertical length are shown in FIG. 7.) At this time, the reference for the horizontal direction is set in advance as described above. In the method of obtaining the angles of the code figures 40a, ... 40e, more specifically, first, a quadrant in which a figure for which a direction code is to be obtained is located. Next, the horizontal direction and the vertical direction are calculated between the figure in the previous order and the figure in the previous order, from the figure in the previous order to the figure in which the direction code is to be obtained. This angle (ie, arctangent value of the horizontal length and the vertical length) is obtained. Lastly, the angle of the figure for which the direction code is to be obtained is the angle obtained by subtracting 1 from the quadrant in which the figure for which the direction code is to be found is 90 times (for example, 90 degrees when the figure is located in the second quadrant). And the angle between the horizontal direction and the vertical direction is calculated. Therefore, the direction code of the figure to obtain the direction code can be calculated by dividing the calculated angle by the divided angle. However, this process is applied when the angles of the figures are calculated based on the counterclockwise direction, and are different when the angles of the figures are calculated based on the clockwise direction. In addition, when calculating the angles of the code figures 40a, ... 40e in the above manner, the criterion for obtaining the arc tangent value differs according to the angular direction of the figures and the quadrants in which the figures are located. For example, if the code figures 40a, ... 40e are located in the first or third quadrant, the arc tangent value of the code figures 40a, ... 40e is the length of the vertical length with respect to the horizontal length. It is calculated from the ratio. However, if the code figures 40a, ... 40e are located in the second or fourth quadrant, the arc tangent value of the code figures 40a, ... 40e is determined from the ratio of the horizontal length to the vertical length. Is calculated. Therefore, when the angle of the figure is calculated based on the clockwise direction, the above-described criterion is applied.
다음은 본 발명의 실시예에 따른 이미지 코드(10)가 표시하는 코드 값의 구성에 대하여 설명한다.Next, a configuration of code values displayed by the
상기 이미지 코드(10)는, 도 6을 참조하면, 6개의 색상을 갖는 도형들(30, 40a, ... 40e)을 포함하며, 도형들(30, 40a, ... 40e)의 인식 순서는 색상 순서에 따라 빨강(Red)(기준 도형) → 초록(Green) → 파랑(Blue) → 시안(Cyan) → 마젠타(Magenta) → 노랑(Yellow)이다, 또한, 상기 기준 도형(30)은 그 크기 즉, 지름이 D이며 예를 들면, 획득된 영상이미지에서 8mm 또는 8화소의 값을 갖도록 형성된다. 또한, 상기 분할 각도는 30도로 설정된다. 표 1은 상기와 같은 과정에 따라 본 발명의 실시예에 따른 이미지 코드(10)가 표시하는 거리코드와 방향코드를 각각 나 타낸다.Referring to FIG. 6, the
따라서, 상기 이미지 코드(10)는 색상 순서에 따라 각 코드 도형들(40a, ... 40e)의 거리코드와 방향코드가 순서대로 나열되어 코드 값을 표시하게 된다. 즉, 도 6의 이미지 코드(10)는 "03010308040602030300"의 코드 값을 갖게 된다.Accordingly, the
본 발명에 따른 이미지 코드(10)는 표현 가능한 코드 값의 조합수가 사용되는 도형의 수와 기준 도형의 크기에 대한 각 도형들간의 중심연결선 길이의 비 및 분할각도의 크기에 따라 증가하게 된다. 예로서, 상기 실시예와 같이 도형의 수가 6개, 기준 도형의 크기에 대한 각 도형들간의 중심연결선의 길이의 비가 5배, 분할 각도가 30도인 경우에 본 발명의 이미지 코드(10)가 표시할 수 있는 코드 값의 조합수를 산출하여 본다. 상기 기준 도형을 제외한 하나의 코드 도형으로 표시될 수 있는 코드 값이 5 X 12 = 60이므로, 다섯 개의 도형으로 표현될 수 있는 코드 값의 조합수는 (60)5 = 777,600,000개로 된다.The
또한, 상기 이미지 코드 영역(20)은, 상기에서 설명한 바와 같이, 소정 개수의 행과 열로 구분되어 형성될 수 있으며, 상기 기준 도형(30)이 위치하는 행과 열이 소정의 기준 도형(30)의 위치코드 값으로 표시될 수 있다. 따라서 이러한 경우는 이미지 코드 영역(20)의 행과 열을 곱한 수만큼 이미지 코드 값의 조합수가 증가될 수 있다. 예를 들어, 상기 이미지 코드 영역(20)이 도 3과 같이 5행 5열로 형성되면 이미지 코드 값의 조합수는 25 x 777,600,000 = 19,440,000,000개로 된다.In addition, as described above, the
또한, 상기 도형들(30, 40a, ... 40e)은 원형과 삼각형과 사각형의 형상으로 형성되고 각 도형의 형상에 소정의 형상코드 값이 부여될 수 있으며, 형상코드 값이 이미지 코드에 포함될 수 있다. 이러한 경우에 이미지 코드 값은 각 도형의 거리코드, 방향코드, 형상코드가 순차적으로 표시되며, 이미지 코드 값의 조합수는 19,440,000,000 x (3)6 = 14,171,760,000,000 개로 된다. 한편, 상기 도형들(30, 40a, ... 40e)은 타원, 직각사각형, 직각 삼각형 등으로 구분되어 형성되며, 이러한 형상에 대한 형상코드 값이 이미지 코드 값에 포함될 수 있음은 물론이다. 상기 위치코드와 형상코드는 이미지 코드(10)의 코드 값에서 소정의 위치에 포함될 수 있다. 예를 들면 기준 도형(30)의 위치코드와 형상코드는 코드 값의 맨 처음에 배치되며, 코드 도형들(40a, ..., 40e)의 형상코드는 각 코드 도형들의 방향코드의 뒤에 배치될 수 있다.In addition, the figures 30, 40a, ... 40e may be formed in the shape of a circle, a triangle, and a rectangle, and a predetermined shape code value may be assigned to the shape of each figure, and the shape code value is included in the image code. Can be. In this case, the image code values are sequentially displayed as distance codes, direction codes, and shape codes of each figure, and the number of combinations of image code values is 19,440,000,000 x (3) 6 = 14,171,760,000,000. Meanwhile, the figures 30, 40a, ... 40e are formed by being divided into ellipses, rectangular rectangles, rectangular triangles, and the like, and the shape code values for the shapes may be included in the image code values. The location code and the shape code may be included in a predetermined position in the code value of the
다음은 본 발명의 실시예에 따른 이미지 코드의 코드 값을 표시하는 다른 방법을 설명한다. The following describes another method for displaying a code value of an image code according to an embodiment of the present invention.
도 9는 본 발명의 실시예에 따른 이미지 코드의 코드 값을 표시하는 다른 방법을 나타낸다.9 illustrates another method of displaying code values of an image code according to an embodiment of the present invention.
상기 이미지 코드(110)의 코드 값은, 도 9를 참조하면, 소정의 색상 순서에 따라 기준 도형(130)과 각 코드 도형들(140a, ..., 140e)간의 중심연결선(d11, d12, d13, d14, d15)의 길이 및 각도(θ11, θ12, θ13, θ14, θ15)에 따른 거리코드와 방향코드로부터 산출될 수 있다. 즉, 상기 거리코드는 기준 도형(130)과 각 코드 도형들(140a, ..., 140e)의 중심을 연결하는 중심연결선(d11, d12, d13, d14, d15)의 길이를 기준 도형(130)의 크기로 나눈 값의 정수부분으로 산출된다. 또한, 상기 방향코드는 기준 방향(x)과 상기 중심연결선(d11, d12, d13, d14, d15) 사이의 반 시계 방향으로의 각도(θ11, θ12, θ13, θ14, θ15)를 분할 각도로 나눈 값의 정수부분으로 산출된다. 예를 들면, 상기 이미지 코드(110)의 코드 값은 색상 순서에 따라 기준 도형인 빨강 도형(130)과 초록 도형(140a)의 중심연결선(d11)의 길이 및 각도(θ11), 기준 도형(130)과 다음 색상 순서인 파랑 도형(140b)의 중심연결선(d12)의 길이 및 각도(θ12) 순서로 기준 도형(130)과 각 코드 도형들(140a, ... 140e)간의 중심연결선(d11, d12, d13, d14, d15)의 길이 및 각도(θ11, θ12, θ13, θ14, θ15)에 따른 거리코드와 방향코드로부터 산출된다. 한편, 도 9에 따른 상기 이미지 코드(110)는 도 6에서의 이미지 코드(10)와 달리 각 코드 도형들(140a, ... 140e)간의 거리 및 각도가 코드 값에 반영되지 않으므로 별도로 산출할 필요가 없게 된다.Referring to FIG. 9, the code value of the
한편, 상기 도형들(130, 140a, ..., 140e)의 거리 코드는, 도 7에서와 같이, 각 도형들을 수평방향 길이와 상기 수평방향에 수직인 수직 방향 길이로부터 산출할 수 있다. 즉, 상기 거리코드는 기준 도형(130)과 각 코드 도형들(140a, ..., 140e)의 중심을 연결하는 중심연결선(d11, d12, d13, d14, d15)을 수평 방향과 수직 방향으로 분리하여 수평방향 길이와 수직방향 길이의 합인 직각방향 길이로 설정될 수 있다. 따라서, 상기 코드 도형들(140a, ..., 140e)의 거리 코드는 직각방향 길이를 기준 도형(130)의 크기로 나눈 값에서 정수 값 부분으로부터 산출될 수 있다. On the other hand, the distance code of the figures (130, 140a, ..., 140e), as shown in Figure 7, can calculate each figure from the horizontal length and the vertical length perpendicular to the horizontal direction. That is, the distance code includes a center connection line d11, d12, d13, d14, d15 connecting the reference figure 130 and the center of each code figure 140a,..., 140e in a horizontal direction and a vertical direction. Separately, it may be set to a perpendicular length that is the sum of the horizontal length and the vertical length. Therefore, the distance codes of the code figures 140a, ..., 140e may be calculated from an integer value portion in a value obtained by dividing the right-angle length by the size of the reference figure 130.
다음은 본 발명의 실시예에 따른 이미지 코드의 인식 방법에 대하여 설명한다. 도 10은 본 발명의 실시예에 따른 이미지 코드 인식방법에 대한 구성도를 나타낸다. The following describes a method of recognizing an image code according to an embodiment of the present invention. 10 is a block diagram of an image code recognition method according to an embodiment of the present invention.
본 발명의 실시예에 따른 이미지 코드(10)의 인식 방법은 이미지 코드 영역 검출단계(S10)와 상기 이미지 코드 영역에 포함되어 있는 서로 다른 색상을 갖는 기준 도형과 코드 도형들을 추출하는 도형 추출단계(S20)와 소정의 색상 순서에 따라 상기 추출된 코드 도형들의 거리인 중심연결선의 길이와 각도를 산출하는 거리 및 각도 산출단계(S30) 및 상기 거리와 각도로부터 거리코드와 방향코드를 산출하여 코드 값을 산출하는 코드 값 산출단계(S40)를 포함하여 형성된다. 또한 상기 코드 값 산출단계(S40)는 이미지 코드의 형상에 따라 기준 도형(30)의 위치코드 값, 각 도형들의 형상코드 값을 산출하는 단계를 포함할 수 있다.In the method of recognizing an
이하에서는 6개의 도형을 포함하는 이미지 코드(10)의 인식방법을 예로 설명한다. 또한 색상의 순서는 빨강(Red)(기준 도형) → 초록(Green) → 파랑(Blue) → 시안(Cyan) → 마젠타(Magenta) → 노랑(Yellow)의 순서로 미리 설정된다. 또한, 상기 이미지 코드(10)는 형성될 때 소정의 목적에 맞게 미리 이미지 코드 영역(20)의 크기와 기준 도형(30)의 크기 및 이미지 코드 영역(20)에 대한 기준 도형(30)의 크기의 비가 설정된다. 또한, 상기 이미지 코드(10)는 분할 각도가 설정된다. 따라서, 상기 이미지 코드(10)의 인식방법에서는 이미지 영역(20)의 크기가 산출되면, 이미지 코드 영역(20)과 기준 도형(30)의 크기의 비로부터 기준 도형(30)의 크기가 산출되므로 기준 도형(30)의 크기를 별도로 산출할 필요가 없게된다. 다만, 상기 기준 도형(30)의 크기는 획득된 이미지의 정확성을 평가하기 위해서 산출될 수 있다. Hereinafter, a method of recognizing the
상기 이미지 코드 영역 검출 단계(S10)는 사진 또는 이미지에서 상기 이미지 코드(10)가 구현되어 있는 이미지 코드 영역(20)을 검출하는 단계이다. 먼저 상기 이미지 코드(10)가 표시되어 있는 사진이나 이미지는 디지털 카메라나 캠코더와 같은 영상 촬영 장치에 의하여 촬영하여 이미지 상태로 획득하게 되며, 획득된 이미지로부터 이미지 코드 영역(20)을 검출하게 된다, 상기 이미지 코드 영역(20)은 상기에서 설명한 바와 같이 흰색 또는 지정된 특정 색 바탕으로 형성되거나 외곽에 식별 가능한 특정한 선이 형성되어 사진 또는 이미지의 다른 영역과 구별되도록 할 수 있다. 또한, 상기 이미지 코드 영역(20)이 검출되면, 검출된 이미지 코드 영역(20)의 크기를 산출하게 된다. 이때, 이미지 코드 영역(20)의 크기는 이미지 코드를 설정할 때 기준 도형(30)과의 크기 비를 설정하는데 적용된 위치 즉, 사각형의 저변 또는 측변의 크기가 된다.The image code area detection step S10 is a step of detecting an
상기 도형 추출단계(S20)는 검출된 이미지 코드 영역에 포함되어 있는 도형들을 검출하는 과정이다. 상기 도형들은 기준 도형(30)과 코드 도형들(40a, ... 40e)을 포함하여 형성된다. 상기 도형들(30, 40a, ... 40e)은 예를 들면 서로 다른 색상으로 형성되므로 각각의 색상만을 필터링 하는 필터에 의하여 상기 이미지 코드 영역(20)에서 각 도형을 추출할 수 있다. 따라서, 상기 필터에 의하여 필터링된 필터링 이미지는 상기 이미지 코드 영역(20)과 동일한 크기를 가지면서 해당 색상을 갖는 도형만이 표시된다. 따라서, 상기 이미지 코드(10)가 6가지 색상의 도형으로 형성되는 경우에는 여섯 장의 필터링 이미지가 생성된다. 또한, 상기 이미지 코드(10)가 방향기준 도형(32)을 포함하는 경우에는 기준 도형(30)의 색상을 갖는 필터링 이미지는 2개의 도형이 표시된다. 상기에서의 컬러 필터를 사용한 도형의 추출방법은 도형을 추출하는 하나의 방법으로 예시된 것이며, 획득된 이미지에서 각 도형의 색상을 직접 인식하여 도형을 추출하는 방법과 같이 다양한 추출 방법이 사용될 수 있음은 물론이다.The figure extracting step S20 is a process of detecting figures included in the detected image code region. The figures are formed including a reference figure 30 and code figures 40a, ... 40e. Since the figures 30, 40a, ... 40e are formed with different colors, for example, each figure may be extracted from the
상기 거리 및 각도 산출단계(S30)는 상기 필터링 이미지에서 기준 도형을 기준으로 각 코드 도형들의 거리와 각도를 산출하는 단계이다. 먼저 기준 색상으로 갖는 기준 도형(30)을 포함하는 필터링 이미지로부터 기준 도형(30)의 위치를 산출하게 된다. 상기 기준 도형(30)의 위치는 상기 이미지 코드 영역(20)에서의 상대적인 위치가 된다. 또한 상기 기준 도형(30)이 포함된 필터링 이미지에서 방향기준 도형(32)의 위치를 산출하여 기준 방향을 설정하게 된다. 다만 여기서 기준 방향을 이미지 코드 영역(20)의 일 측변으로 설정하는 경우에는 방향기준 도형(32)이 형성되지 않게 된다. 다음으로 미리 설정된 색상 순서에 따라 다음 색상인 초록 색상을 갖는 도형(40a)이 포함된 필터링 이미지로부터 초록 도형(40a)의 위치를 산출하게 된다. 상기 초록 도형(40a)의 위치는 기준 도형(30)과 마찬가지로 이미지 코드 영역(20)에서의 상대적인 위치가 된다. 상기 초록 도형(40a)의 거리와 각도는 이미지 코드 영역(20)에서 기준 도형(30)에 대한 위치로부터 산출된다. 따라서, 상기 초록 도형(40a)의 거리는 기준 도형(30)과 초록 도형(40a)의 중심을 연결하는 중심연결선의 거리로부터 산출된다. 또한, 상기 초록 도형(40a)의 각도는 기준 도형(30)과 초록 도형(40a)을 연결하는 중심연결선의 초록 도형(40a)을 향한 방향과 기준 방향과의 각도로 산출된다. 이때, 상기 초록 도형(40a)의 각도는 반 시계 방향의 각도로 산출된다. 다음으로 상기 색상 순서에 따라 다음 색상 순서인 파랑 도형(40b)이 포함된 필터링 이미지로부터 파랑 도형(40b)의 위치를 산출하고 이로부터 색상 순서에서 전 순서인 초록 도형(40a)에 대한 거리와 각도를 산출하게 된다. 따라서, 상기 파랑 도형(40b)의 거리는 초록 도형(40a)의 중심과 파랑 도형(40b)의 중심을 연결하는 중심연결선의 거리로 산출된다. 또한, 상기 파랑 도형(40b)의 각도는 초록 도형(40a)의 중심과 파랑 도형(40b)의 중심을 연결하는 중심연결선의 파랑 도형(40b)을 향한 방향과 기준 방향과의 각도로 산출된다. 이때, 상기 파랑 도형(40b)의 각도는 반 시계 방향의 각도로 산출된다. 상기와 같은 과정에 따라 시안 도형(40c), 마젠타 도형(40d), 노랑 도형(40e)의 거리와 각도를 각각 산출하게 된다.The distance and angle calculating step S30 is a step of calculating a distance and an angle of each code figure based on a reference figure in the filtered image. First, the position of the reference figure 30 is calculated from the filtered image including the reference figure 30 having the reference color. The position of the reference figure 30 becomes a relative position in the
한편, 상기 거리 및 각도 산출단계(S30)는 상기 도형들(30, 40a, ... 40e)의 거리를 도형들(30, 40a, ... 40e)을 연결하는 중심연결선(d1)을 수평 방향과 수직 방향으로 분리하여 수평방향 길이와 상기 수평방향에 수직인 수직방향 길이의 합인 직각방향 길이로 산출할 수 있다.On the other hand, the distance and angle calculation step (S30) is horizontal to the center connecting line (d1) connecting the distances of the figures (30, 40a, ... 40e) connecting the figures (30, 40a, ... 40e) It can be calculated as a perpendicular length which is the sum of the horizontal length and the vertical length perpendicular to the horizontal direction by separating in the vertical direction.
한편, 상기 거리 및 각도 산출단계(S30)는 도형들(30, 40a, ... 40e)의 거리와 각도를 색상 순서에 따라 인접한 도형들(30, 40a, ... 40e)간의 거리와 각도로부터 산출하였으나, 도 9에서와 같이 기준 도형(30)을 중심으로 기준 도형(30)에 대한 각 코드 도형들(40a, ... 40e)의 거리 및 각도를 산출할 수 있다.On the other hand, the distance and angle calculation step (S30) is the distance and angle between the adjacent figures (30, 40a, ... 40e) in accordance with the color order of the distance and angle of the figures (30, 40a, ... 40e) 9, the distances and angles of the code figures 40a and 40e with respect to the reference figure 30 can be calculated based on the reference figure 30 as shown in FIG. 9.
또한, 상기 거리 및 각도 산출단계(S30)는 이미지 코드 영역(20)이 소정의 행과 열로 구분되어 있는 경우에 기준 도형(30)이 위치하는 행과 열의 위치를 산출하는 기준 도형(30)의 위치 산출과정을 포함할 수 있다. 또한, 상기 거리 및 각도 산출단계(S30)는 상기 각 도형(30, 40a, ..., 40e)들이 원형 또는 사각형 또는 삼각형과 같이 소정의 형상으로 형성되는 경우에는 이들의 형상을 산출하는 형상 산출과정을 포함할 수 있다.In addition, the distance and angle calculation step (S30) of the reference figure 30 for calculating the position of the row and column in which the reference figure 30 is located when the
상기 코드 값 산출단계(S40)는 상기 각 도형들의 거리 및 각도로부터 도형들이 거리코드와 방향코드를 산출하여 이미지 코드(10)가 표시하는 코드 값을 산출하는 단계이다. 상기 코드 도형들(40a, ... 40e)의 거리코드는 색상 순서에 따라 인접한 각 코드 도형들(40a, ... 40e)의 중심연결선 거리를 기준 도형(30)의 크기로 나눈 값에서 정수부분의 값으로부터 산출된다. 한편, 상기 도형들(30, 40a, ... 40e)의 거리가 도형들(30, 40a, ... 40e)을 연결하는 중심연결선(d1)을 수평 방향과 수직 방향으로 분리하여 수평방향 길이와 상기 수평방향에 수직인 수직방향 길이의 합인 직각방향 길이로 산출되는 경우, 상기 코드 도형들(40a, ... 40e)의 거리코드는 상기 직각방향 길이를 기준도형(30)의 크기로 나눈 값으로부터 산출하게 된다. 상기에서 설명한 바와 같이, 상기 기준 도형(30)의 크기는 이미지 코드(10)를 만들 때 설정된 기준 도형(30)과 이미지 코드 영역(20)의 크기의 비와 산출된 이미지 코드 영역(90)의 크기로부터 산출될 수 있다. 또한, 설정된 이미지 코드의 크기와 획득된 이미지 코드의 크기가 동일한 경우에는 획득된 이미지 코드에서 직접 기준 도형(30)의 크기를 산출할 수 있음은 물론이다. 또한, 상기 코드 도형들(40a, ... 40e)의 방향코드는 색상 순서에 따라 인접한 코드 도형들(40a, ... 40e)의 중심연결선의 기준 방향에 대한 각도를 분할 각도로 나눈 값에서 정수부분의 값으로 산출된다. 상기 코드 값은 이미지 코드(10)가 표시하는 소정의 정보로서 색상 순서에 따른 각 도형들의 거리코드와 방향코드를 나열하여 산출된다. 따라서 상기 코드 값은 일련의 숫자로 표시되며 각 거리코드와 방향코드가 두 자리 숫자로 표시되는 경우에 24자리 숫자로 표시된다.The code value calculating step (S40) is a step of calculating a code value displayed by the
또한, 상기 코드 값 산출단계(S40)는 행과 열로 구분된 이미지 코드 영역(20)에서의 기준 도형(30)의 위치에 부여되는 위치코드를 산출하는 과정을 포함할 수 있다. 또한, 상기 코드 값 산출단계(S40)는 상기 각 도형(30, 40a, ..., 40e)들의 형상에 부여되는 형상코드를 산출하는 과정을 포함할 수 있다. 따라서, 상기 이미지 코드(10)의 코드 값은 거리코드와 방향코드 외에도 위치코드와 형상코드를 더 포함하여 형성될 수 있다. 상기 위치코드와 형상코드는 이미지 코드(10)의 코드 값에서 소정의 위치에 포함될 수 있다. 예를 들면 기준 도형(30)의 위치코드와 형상코드는 코드 값의 맨 처음에 배치되며, 코드 도형들(40a, ..., 40e)의 형상코드는 각 코드 도형들의 방향코드의 뒤에 배치될 수 있다.In addition, the code value calculating step S40 may include calculating a position code assigned to a position of the reference figure 30 in the
다음은 본 발명의 실시예에 따른 이미지 코드 인식장치에 대하여 설명한다.Next, an image code recognition apparatus according to an embodiment of the present invention will be described.
도 11은 본 발명의 실시예에 따른 이미지 코드 인식장치에 대한 블록도를 나타낸다. 11 is a block diagram of an image code recognition apparatus according to an embodiment of the present invention.
본 발명의 실시예에 따른 이미지 코드 인식장치는, 도 11을 참조하면, 저장부(1)와 이미지 획득부(2)와 이미지 처리부(4)와 거리 및 각도 산출부(6) 및 코드 산출부(8)를 포함하여 형성된다. 한편, 상기 거리 및 각도 산출부(6)와 코드 산출부(8)는 일체로 형성될 수 있음은 물론이다.In the image code recognition apparatus according to the embodiment of the present invention, referring to FIG. 11, the
상기 저장부(1)는 이미지 코드(10)의 코드 값을 산출하는데 필요한 이미지 코드(10)의 크기 즉, 이미지 코드 영역(20)의 크기, 이미지 코드 영역(20)과 기준 도형(30)의 크기 비, 분할각도 등이 저장된다. 또한, 상기 저장부(1)는 이미지 코드(10)에 사용되는 색상 또는 도형의 수가 저장된다. 또한, 상기 저장부(1)는 상기 거리 및 각도 산출부로부터 산출되는 각 도형들(30, 40a, ... 40e)간의 거리인 중심연결선의 길이 및 각도가 일시 저장될 수 있다.The
상기 이미지 획득부(2)는 이미지 코드(10)가 포함된 사진 또는 이미지로부터 이미지 코드 영역(20)을 포함하는 영역의 이미지를 획득하게 된다. 상기 이미지 획득부(2)는 디지털 카메라 또는 캠코더 또는 스캐너와 같은 영상 촬영 장치로 촬영한 이미지 또는 파일 형태로 존재하는 이미지 파일로부터 이미지 코드 영역(20)의 이미지를 획득하게 된다. 상기 이미지 코드 영역(20)은 사진 또는 이미지와 구별되는 바탕색으로 형성되거나 별도의 테두리선을 포함하고 있으므로, 이미지 획득부는 이러한 특징에 따라 이미지 코드 영역(20)의 이미지를 획득하게 된다.The
상기 이미지 처리부(4)는 이미지 코드 영역(20)에 포함되어 있는 도형들의 각각의 색상을 필터링 하는 필터를 사용하여 각 색상에 따른 각 도형의 필터링 이미지를 추출하게 된다. 따라서, 추출된 상기 필터링 이미지는 해당 색상을 갖는 각 도형의 이미지만을 포함하게 되며, 필터링 이미지는 사용된 색상의 수만큼 형성된다. 또한, 상기 이미지 처리부(4)는 필터링 이미지에서 도형의 형상이 쏠림(shearing), 회전, 사영 왜곡(projective distortion)등에 의하여 왜곡되어 있는 경우에 사영변환(projective transformation), 어파인 변환(affine transformation)등에 의해 보정할 수 있다.The
상기 거리 및 각도 산출부(6)는 상기 이미지 처리부로부터 처리된 필터링 이미지로부터 각 도형들간의 거리와 각도를 산출하게 된다. 상기 거리 및 각도 산출부(6)는 상기 이미지 처리부로부터 전송된 각 색상에 대한 필터링 이미지에서 기준 도형(30)의 필터링 이미지로부터 기준 도형(30)을 인식하여 그의 위치를 산출하게 된다. 또한, 상기 거리 및 각도 산출부(6)는 이미지 처리부(4)로부터 전송된 각 색상을 갖는 코드 도형들에 대한 필터링 이미지로부터 코드 도형의 이미지 코드 영역(20)에서의 상대적인 위치를 산출하게 된다. 이때, 각 코드 도형의 상대적인 위치는 이미지 코드 영역(20)에서의 좌표 값으로 표시될 수 있다.The distance and
또한, 상기 거리 및 각도 산출부(6)는 이미지 코드 영역이 소정의 행과 열로 구분되어 있는 경우에 기준 도형(30)이 위치하는 행과 열의 위치를 산출하는 기준 도형(30)의 위치를 산출할 수 있다. 또한, 상기 거리 및 각도 산출부(6)는 상기 각 도형(30, 40a, ..., 40e) 들이 원형 또는 사각형 또는 삼각형과 같이 소정의 형상으로 형성되는 경우에는 이들의 형상을 산출할 수 있다. In addition, the distance and
상기 코드 산출부(8)는 상기 거리 및 각도 산출부(6)로부터 전송되는 각 코드 도형들의 거리 및 각도와 미리 설정된 기준 도형(30)의 크기 및 분할 각도로부터 각 도형들의 거리코드와 방향코드를 계산하고 이로부터 코드 값을 산출하게 된다. 상기에서 설명한 바와 같이 소정의 목적을 위해서 제작되는 이미지 코드(10)는 이미지 코드(10)를 제작할 때 미리 기준 도형(30)의 크기와 분할 각도가 설정되며, 상기 저장부에 저장된다. 따라서, 상기 코드 산출부(8)는 상기 저장부로부터 필요한 수치를 전송받아 각 코드 도형들의 거리코드와 방향코드를 산출하게 된다. 또한, 상기 코드 산출부(8)는 색상 순서에 따른 코드 도형들의 거리코드와 방향코드를 나열하여 이미지 코드(10)의 코드 값을 산출하게된다. 또한, 상기 코드 산출부(8)는 이미지 코드 영역(20)에서의 기준 도형(30) 위치에 부여되는 기준 도형(30)의 위치코드를 산출할 수 있다. 또한, 상기 코드 산출부(8)는 상기 각 도형(30, 40a, ..., 40e)들의 형상에 부여되는 형상코드를 산출할 수 있다. 상기 코드 산출부(8)에 의하여 산출된 코드 값은 이미지 코드(10)가 표시하는 소정 정보가 된다.The
이상 설명한 바와 같이, 본 발명은 상술한 특정의 바람직한 실시예에 한정되지 아니하며, 특허청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형의 실시가 가능한 것은 물론이고, 그와 같은 변경은 특허청구범위 기재의 범위 내에 있게 된다.As described above, the present invention is not limited to the specific preferred embodiments described above, and any person having ordinary skill in the art to which the present invention pertains without departing from the gist of the present invention claimed in the claims. Various modifications are possible, of course, and such changes are within the scope of the claims.
본 발명에 따른 이미지 코드에 의하면 소정 색상 순서에 따라 도형들의 거리 치 및 방향코드의 조합에 의하여 코드 값이 부여되므로 보다 다양한 이미지 코드를 형성할 수 있는 효과가 있다.According to the image code according to the present invention, since a code value is given by a combination of distance values and direction codes of figures according to a predetermined color order, there is an effect of forming more various image codes.
또한, 본 발명에 의하면 이미지 코드의 도형을 기존의 바코드나 컬러코드에 비하여 보다 자유롭게 배치할 수 있으므로 이미지 코드가 적용되는 사진 또는 물건의 형상 또는 디자인에 적합하도록 다양한 디자인으로 형성할 수 있는 효과가 있다.In addition, according to the present invention, since the figure of the image code can be arranged more freely than the existing barcode or color code, there is an effect that can be formed in various designs to be suitable for the shape or design of the photograph or object to which the image code is applied. .
또한, 본 발명에 의하면 코드 값을 형성하는 색상 순서와 도형들의 거리코드 및 방향코드를 보다 다양하게 형성할 수 있으므로 코드 값의 조합수를 증가시킬 수 있는 효과가 있다. 또한, 상기 이미지 코드는 기준 도형의 위치에 대한 위치코드와 각 도형들의 형상에 따른 형상코드를 포함하면 코드 값의 조합수를 더 증가시킬 수 있는 효과가 있다.In addition, according to the present invention, since the color code and the distance code and the direction code of the figures forming the code value can be formed in various ways, the number of combinations of the code values can be increased. In addition, the image code may further increase the number of combinations of code values by including a position code for a position of a reference figure and a shape code according to the shape of each figure.
또한, 본 발명에 의하면 적용되는 분야에 따라서 색상의 순서나 분할 각도를 변경함으로써 이미지 코드가 무단으로 도용되는 것을 방지할 수 있는 효과가 있다.In addition, according to the present invention, by changing the order of the color or the angle of division in accordance with the applied field there is an effect that can be prevented from being stolen image code.
Claims (24)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050037288A KR100702292B1 (en) | 2005-05-03 | 2005-05-03 | Image code and method and apparatus for recognizing thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050037288A KR100702292B1 (en) | 2005-05-03 | 2005-05-03 | Image code and method and apparatus for recognizing thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060115023A true KR20060115023A (en) | 2006-11-08 |
KR100702292B1 KR100702292B1 (en) | 2007-03-30 |
Family
ID=37652558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050037288A KR100702292B1 (en) | 2005-05-03 | 2005-05-03 | Image code and method and apparatus for recognizing thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100702292B1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101226751B1 (en) * | 2011-02-18 | 2013-01-25 | (주)앤드웍스 | Design code pattern representing information interpreted with a digital device, and operating system thereof |
WO2013015516A1 (en) * | 2011-07-26 | 2013-01-31 | (주)아트아크앤도어웍스 | Design code pattern comprising information deciphered by digital device and operating system for same |
KR101645136B1 (en) * | 2015-07-28 | 2016-08-02 | 성균관대학교산학협력단 | Color code displaying method for data communication in display screen and data transferring method using color code |
KR101665363B1 (en) * | 2015-05-08 | 2016-10-24 | 주식회사 인디고엔터테인먼트 | Interactive contents system having virtual Reality, augmented reality and hologram |
KR101700120B1 (en) * | 2015-10-28 | 2017-01-31 | 주식회사 아이에스엘코리아 | Apparatus and method for object recognition, and system inculding the same |
CN113706660A (en) * | 2021-09-03 | 2021-11-26 | 北京有竹居网络技术有限公司 | Information identification method and device, electronic equipment and storage medium |
CN118102446A (en) * | 2024-04-28 | 2024-05-28 | 中孚安全技术有限公司 | Location wireless signal checking and positioning method, system, equipment and medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3577503B2 (en) * | 1992-09-28 | 2004-10-13 | 大日本インキ化学工業株式会社 | Color code |
JPH08263580A (en) * | 1995-03-20 | 1996-10-11 | Y E Data Inc | Identification code mark |
JP2000293644A (en) | 1999-04-01 | 2000-10-20 | Omron Corp | Dot code and two-dimensional code |
KR100341504B1 (en) * | 1999-11-13 | 2002-06-21 | 한탁돈 | Machine readable code for representing information and method and apparatus for encoding/decoding the same |
KR100339691B1 (en) * | 2001-11-03 | 2002-06-07 | 한탁돈 | Apparatus for recognizing code and method therefor |
JP4052190B2 (en) | 2002-10-29 | 2008-02-27 | 株式会社デンソー | Two-dimensional code formation structure |
KR100701292B1 (en) * | 2004-08-17 | 2007-03-29 | (주)아이미디어아이앤씨 | Image code and method and apparatus for recognizing thereof |
-
2005
- 2005-05-03 KR KR1020050037288A patent/KR100702292B1/en not_active IP Right Cessation
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101226751B1 (en) * | 2011-02-18 | 2013-01-25 | (주)앤드웍스 | Design code pattern representing information interpreted with a digital device, and operating system thereof |
US9082053B2 (en) | 2011-02-18 | 2015-07-14 | Artarch & Door Works Inc. | Code pattern comprising information deciphered by digital device and operating system for same |
WO2013015516A1 (en) * | 2011-07-26 | 2013-01-31 | (주)아트아크앤도어웍스 | Design code pattern comprising information deciphered by digital device and operating system for same |
KR101665363B1 (en) * | 2015-05-08 | 2016-10-24 | 주식회사 인디고엔터테인먼트 | Interactive contents system having virtual Reality, augmented reality and hologram |
KR101645136B1 (en) * | 2015-07-28 | 2016-08-02 | 성균관대학교산학협력단 | Color code displaying method for data communication in display screen and data transferring method using color code |
KR101700120B1 (en) * | 2015-10-28 | 2017-01-31 | 주식회사 아이에스엘코리아 | Apparatus and method for object recognition, and system inculding the same |
CN113706660A (en) * | 2021-09-03 | 2021-11-26 | 北京有竹居网络技术有限公司 | Information identification method and device, electronic equipment and storage medium |
CN118102446A (en) * | 2024-04-28 | 2024-05-28 | 中孚安全技术有限公司 | Location wireless signal checking and positioning method, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
KR100702292B1 (en) | 2007-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100702292B1 (en) | Image code and method and apparatus for recognizing thereof | |
US10083522B2 (en) | Image based measurement system | |
CN101167084B (en) | Information I/O method using dot pattern | |
KR101393391B1 (en) | Vehicle license plate recognition method based on embedded system | |
JP2009139197A (en) | Color-coded target, color code extracting device and three-dimensional measuring system | |
WO1997009830A1 (en) | Method and apparatus for determining the position of a tv camera for use in a virtual studio | |
US20170199099A1 (en) | Method and system for measuring lens distortion | |
CN108986129B (en) | Calibration plate detection method | |
CN110956660A (en) | Positioning method, robot, and computer storage medium | |
US11182918B2 (en) | Distance measurement device based on phase difference | |
KR20180038942A (en) | Method of length measurement for 2d photography | |
WO2020156553A1 (en) | Qr code positioning box identification method and apparatus, and electronic device and storage medium | |
CN113658039A (en) | Method for determining splicing sequence of label images of medicine bottles | |
CN116503486A (en) | Calibration system, calibration method, calibration device and readable storage medium | |
JP6468880B2 (en) | Character area extraction apparatus and program | |
JP2013084031A (en) | Marker, two-dimensional code, recognition method for marker, and recognition method for two-dimensional code | |
CN105741268B (en) | A kind of vision positioning method based on colored segment and its topological relation | |
CN113822092B (en) | Method and apparatus for positioning position detection pattern, electronic device, and medium | |
Yang et al. | Broken traffic sign recognition based on local histogram matching | |
JP2014142866A (en) | Lane identification device, and lane identification method | |
US11501511B2 (en) | Method for optical recognition of markers | |
JP5533988B2 (en) | Image processing system | |
JP2010151582A (en) | Camera calibration target and camera calibration method | |
CN113160320A (en) | Chessboard angular point detection method and device for camera parameter calibration | |
KR100701292B1 (en) | Image code and method and apparatus for recognizing thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20130321 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20140325 Year of fee payment: 8 |
|
FPAY | Annual fee payment |
Payment date: 20150626 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |