TWI696955B - QR code - Google Patents

QR code Download PDF

Info

Publication number
TWI696955B
TWI696955B TW107134180A TW107134180A TWI696955B TW I696955 B TWI696955 B TW I696955B TW 107134180 A TW107134180 A TW 107134180A TW 107134180 A TW107134180 A TW 107134180A TW I696955 B TWI696955 B TW I696955B
Authority
TW
Taiwan
Prior art keywords
edge portion
pattern
code
specific pattern
dimensional code
Prior art date
Application number
TW107134180A
Other languages
Chinese (zh)
Other versions
TW201923661A (en
Inventor
神戶陽介
田畑惣太郎
原昌宏
森本敏生
Original Assignee
日商電裝威福股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日商電裝威福股份有限公司 filed Critical 日商電裝威福股份有限公司
Publication of TW201923661A publication Critical patent/TW201923661A/en
Application granted granted Critical
Publication of TWI696955B publication Critical patent/TWI696955B/en

Links

Images

Abstract

提供可抑制關於碼區域的檢測不需要之碼檢測處理的二維碼。矩形狀之碼區域(31)的外緣(34)中,複數種類的格子排列成一列所成的第1緣部(34a),係至少於中間部位中,重複排列2個以上不同格子所成的特定圖案(40)所構成;以與第1緣部(34a)對向之方式複數種類的格子排列成一列所成的第2緣部(34b),係至少於中間部位中,重複前述特定圖案(40)所構成。Provide a two-dimensional code that can suppress code detection processing that is unnecessary for detection of a code area. In the outer edge (34) of the rectangular code area (31), plural kinds of lattices are arranged in a row, and the first edge portion (34a) is formed by repeatedly arranging two or more different lattices at least in the middle part The specific pattern (40) is formed; the second edge portion (34b) formed by arranging a plurality of kinds of lattices in a row to face the first edge portion (34a) is at least in the middle portion, repeating the above specific Pattern (40).

Description

二維碼QR code

本發明係關於將複數格子配置成矩陣狀所成的二維碼。The present invention relates to a two-dimensional code formed by arranging complex lattices in a matrix.

先前,提供各種將複數格子配置成矩陣狀所成的二維碼。讀取此種二維碼的讀取裝置(二維碼讀取機)係一般來說是取得包含該二維碼的畫像資料後,進行從該畫像資料中檢測出二維碼之區域(碼區域)的解析處理,並由該被檢測出的碼區域,依據畫像內容決定各格子的座標,根據各座標位置的畫像資訊來判別格子的顏色,進行解碼處理的構造者。作為關於此種二維碼的技術,例如公知專利文獻1所揭示的資料矩陣。 [先前技術文獻] [專利文獻]Previously, various two-dimensional codes formed by arranging complex lattices in a matrix were provided. A reading device (two-dimensional code reader) for reading such a two-dimensional code generally obtains the portrait data including the two-dimensional code, and then detects the area (code Area) analysis process, and the detected code area determines the coordinates of each grid based on the content of the image, determines the color of the grid based on the image information at each coordinate position, and performs decoding processing. As a technique for such a two-dimensional code, for example, a data matrix disclosed in Patent Document 1 is known. [Prior Technical Literature] [Patent Literature]

[專利文獻1]日本特開平07-152885號公報[Patent Document 1] Japanese Patent Application Publication No. 07-152885

[發明所欲解決之課題][Problems to be solved by the invention]

在讀取所攝像之二維碼時,必須正確地檢測出攝像畫像中所佔之二維碼的碼區域及各格子的座標。然而,如前述專利文獻1所揭示的資料矩陣般,在利用暗色格子以L字狀排列成一列的緣部與以亮色格子及暗色格子成為交互之方式L字狀排列成一列的緣部,以檢測出矩形狀的碼區域的構造中,有發生如以下的問題的可能性。例如,從攝像畫像檢測出碼區域時,即使資料矩陣未被攝像的狀況中,相當於將暗色格子排列成一列的直線區域的實線部分被攝像的話,當成有資料矩陣被攝像的可能性,進行用以檢測碼區域的檢測處理。When reading the captured two-dimensional code, it is necessary to correctly detect the code area of the two-dimensional code occupied in the captured image and the coordinates of each grid. However, like the data matrix disclosed in the aforementioned Patent Document 1, the edge portions arranged in a row in an L-shape using a dark grid and the edge portions arranged in a row in an L-shape in a manner in which a bright grid and a dark grid interact with each other, to When the structure of the rectangular code region is detected, the following problems may occur. For example, when the code area is detected from the captured image, even if the data matrix is not imaged, if the solid line portion of the linear area corresponding to the dark grids arranged in a row is imaged, there is a possibility that the data matrix is imaged, The detection process for detecting the code area is performed.

亦即,作為碼區域檢測用的圖案而採用將暗色格子排列成一列之碼區域檢測用的圖案的二維碼是讀取對象時,有因為僅與該二維碼無關的實線部分被攝像,就會多進行用以檢測出其碼區域的檢測處理的問題。又,即使如上述之二維碼被攝像,其攝像畫像包含無關的實線部分的話,也會有進行以其實線部分為基準而用以檢測出碼區域的檢測處理的狀況。尤其,實線部分即使設為L字狀,藉由顯示二維碼之顯示面的緣部分及設置於顯示面之表面的框線等構成而包含於攝像畫像的可能性也高,故容易發生前述問題。That is, when a two-dimensional code using a pattern for detecting a code region in which dark grids are arranged in a row as a pattern for detecting a code region is an object to be read, only a solid line part that is not related to the two-dimensional code is imaged , There will be more problems with the detection process to detect the code area. In addition, even if the two-dimensional code is imaged as described above, if the captured image includes an irrelevant solid line portion, there may be a case where detection processing for detecting the code area is performed based on the solid line portion. In particular, even if the solid line portion is L-shaped, it is highly likely to be included in the captured image by the edge portion of the display surface displaying the two-dimensional code and the frame line provided on the surface of the display surface, so it is likely to occur The aforementioned problem.

本發明係為了解決上述之課題所發明者,其目的係提供可抑制關於碼區域的檢測不需要之碼檢測處理的二維碼。 [用以解決課題之手段]The present invention is made to solve the above-mentioned problems, and an object of the present invention is to provide a two-dimensional code that can suppress code detection processing that is unnecessary for detection of a code area. [Means to solve the problem]

為了達成前述目的,申請專利範圍的請求項1所記載的發明: 一種二維碼,係複數種類的格子矩陣狀地排列於矩形狀之碼區域(31)內所成的二維碼(30,30a~30e),其特徵為: 前述碼區域的外緣(34)中,前述複數種類的格子排列成一列所成的第1緣部(34a),係至少於中間部位中,重複排列2個以上不同格子所成的特定圖案(40,40a)所構成;以與前述第1緣部對向之方式前述複數種類的格子排列成一列所成的第2緣部(34b),係至少於中間部位中,重複前述特定圖案所構成。 再者,前述各括弧內的符號是表示與後述之實施形態所記載之具體手段的對應關係者。 [發明的效果]In order to achieve the aforementioned purpose, the invention described in claim 1 of the scope of patent application: A two-dimensional code is a two-dimensional code (30, 30a to 30e) formed by a plurality of kinds of lattices arranged in a rectangular code area (31) in a matrix form, characterized by: In the outer edge (34) of the code area, the first edge portion (34a) formed by arranging the plural types of lattices in a row is a specific pattern formed by repeatedly arranging two or more different lattices at least in the middle portion ( 40, 40a); the second edge portion (34b) formed by arranging the plural kinds of lattices in a row so as to face the first edge portion is formed by repeating the specific pattern at least in the middle portion . In addition, the symbols in the aforementioned brackets indicate the correspondence with the specific means described in the embodiments described below. [Effect of invention]

在請求項1的發明中,矩形狀之碼區域的外緣中,複數種類的格子排列成一列所成的第1緣部,係至少於中間部位中,重複排列2個以上不同格子所成的特定圖案所構成;以與第1緣部對向之方式複數種類的格子排列成一列所成的第2緣部,係至少於中間部位中,重複前述特定圖案所構成。In the invention of claim 1, a first edge portion formed by arranging plural kinds of lattices in a row at the outer edge of the rectangular code area is formed by repeatedly arranging two or more different lattices at least in the middle portion A specific pattern; a second edge formed by arranging a plurality of types of lattices in a manner opposed to the first edge, at least in the middle, by repeating the aforementioned specific pattern.

如此,相互對向的第1緣部及第2緣部,係至少中間部位藉由前述特定圖案的重複所構成,所以,從攝像畫像可檢測出重複前述特定圖案之兩個平行部分的話,即可檢測出將其兩個平行部分設為對向之外緣的碼區域。尤其,如重複前述特定圖案之有週期性的圖案,係難以與二維碼一起由顯示於顯示面的框線及文字等構成,與實線部分不同,包含於攝像畫像的可能性低,故前述碼區域未被攝像的狀況中可抑制關於該碼區域的檢測不需要的碼檢測處理。 再者,上述之構造及作用效果,係根據與以下的添附圖面一起說明的實施形態明確說明。In this way, the first edge portion and the second edge portion that are opposed to each other are constituted by the repetition of the specific pattern at least in the middle portion, so if two parallel portions repeating the specific pattern can be detected from the captured image, that is The code area with its two parallel parts as the opposite outer edges can be detected. In particular, if there is a periodic pattern repeating the aforementioned specific pattern, it is difficult to form a frame and text displayed on the display surface together with the two-dimensional code. Unlike the solid line, the possibility of being included in the captured image is low, so In the case where the aforementioned code area is not imaged, it is possible to suppress unnecessary code detection processing regarding the detection of the code area. In addition, the above-mentioned structure, function, and effect are clearly explained based on the embodiment described together with the following drawings.

[第1實施形態] 以下,針對具體實現本發明的二維碼的第1實施形態,參照圖面來進行說明。 首先,參照圖1,說明本實施形態之二維碼的構造。 本實施形態的二維碼30係藉由印刷或貼附等形成於紙等地保持媒體。該保持媒體進而藉由貼附等附著於商品。又,該二維碼30也可電子顯示於映像機器或手機等的顯示畫像。在該顯示的狀況中,顯示畫像(也是背景)為保持媒體。 該二維碼30係如圖1、2所示般,作為一例,於保持媒體R上藉由印刷或電子的畫面顯示的手法,於矩形狀(更具體來說為長方形狀)的碼區域31內,複數種類之正方形狀的資訊顯示單位格子(以下也單稱為格子)排列成矩陣狀所構成。 作為上述的變形例,可將二維碼30製作於媒體的內部。此時,例如,媒體的碼前面側以至少具有透光性的媒體形成。此時,能以照射光是可視光、紅外光、及/或紫外光之方式構成。 該碼區域31係區分為配置預先訂定之形狀的圖案的固定圖案區域,與根據複數種類格子來記錄資料的資料記錄區域32。藉此,可利用固定圖案區域來檢測出佔攝像畫像的碼區域31,利用該被檢測出之碼區域31的資料記錄區域32,讀取二維碼30所記錄的資料。再者,於資料記錄區域32,可包含記錄錯誤訂正符號的錯誤訂正符號記錄區域。又,在圖1等中,於資料記錄區域32附加影線。[First Embodiment] The first embodiment of the two-dimensional code that specifically implements the present invention will be described below with reference to the drawings. First, referring to FIG. 1, the structure of the two-dimensional code of this embodiment will be described. The two-dimensional code 30 of this embodiment is formed on paper or the like by printing, sticking, etc. to hold the medium. The holding medium is further attached to the product by attachment or the like. In addition, the two-dimensional code 30 may be electronically displayed on a display image of a video device, a mobile phone, or the like. In this displayed state, the displayed image (also the background) is the holding medium. The two-dimensional code 30 is, as shown in FIGS. 1 and 2, as an example, on the holding medium R by printing or electronic screen display, in a rectangular (more specifically, rectangular) code area 31 Inside, plural types of square information display unit grids (hereinafter also simply referred to as grids) are arranged in a matrix. As a modification of the above, the two-dimensional code 30 may be produced inside the media. At this time, for example, the code front side of the medium is formed with a medium having at least light transmission. At this time, it can be configured such that the irradiation light is visible light, infrared light, and/or ultraviolet light. The code area 31 is divided into a fixed pattern area where a pattern of a predetermined shape is arranged, and a data recording area 32 where data is recorded according to a plurality of types of lattices. In this way, the fixed pattern area can be used to detect the code area 31 occupying the captured image, and the data recording area 32 of the detected code area 31 can be used to read the data recorded by the two-dimensional code 30. Furthermore, the data recording area 32 may include an error correction symbol recording area for recording error correction symbols. In addition, in FIG. 1 and the like, hatching is added to the material recording area 32.

固定圖案區域係由配置於碼區域31的隅部之一的第1位置檢測圖案33a、配置於對於第1位置檢測圖案33a成為對角之碼區域31的隅部的第2位置檢測圖案33b、除了第1位置檢測圖案33a及第2位置檢測圖案33b之外的碼區域31的外緣34所構成。The fixed pattern area is composed of a first position detection pattern 33a arranged in one of the corners of the code area 31, and a second position detection pattern 33b arranged in the corner of the code area 31 diagonal to the first position detection pattern 33a, The outer edge 34 of the code region 31 except for the first position detection pattern 33a and the second position detection pattern 33b is configured.

在本實施形態中,二維碼30係如圖1所示,亮色格子與暗色格子的兩種類格子排列成矩陣狀所構成。然後,第1位置檢測圖案33a係由排列成中央的正方形狀的9個暗色格子、一列地包圍該等9個暗色格子的亮色格子群、一列地包圍該亮色格子群的暗色格子群、區分該暗色格子群與資料記錄區域32之L字狀的亮色格子群所構成。因此,第1位置檢測圖案33a係與QR碼(註冊商標)的位置檢測圖案相同,可依據以暗、亮、暗、亮、暗的順序,其連續比率為1:1:3:1:1的區域來檢測。In the present embodiment, the two-dimensional code 30 is composed of two types of grids, a bright grid and a dark grid, arranged in a matrix as shown in FIG. 1. Then, the first position detection pattern 33a is composed of nine dark grids arranged in a square in the center, a bright grid group surrounding the nine dark grids in a row, a dark grid group surrounding the bright grid group in a row, and distinguishing the The dark grid group and the L-shaped bright grid group of the data recording area 32 are formed. Therefore, the first position detection pattern 33a is the same as the position detection pattern of the QR code (registered trademark), and the continuous ratio is 1:1:3:1:1 according to the order of dark, light, dark, light, and dark. Area to detect.

又,第2位置檢測圖案33b係由中央的1個暗色格子、一列地包圍該暗色格子的亮色格子群、一列地包圍該亮色格子群的暗色格子群所構成。因此,第2位置檢測圖案33b係可依據以暗、亮、暗、亮、暗的順序,其連續比率為1:1:1:1:1的區域來檢測。The second position detection pattern 33b is composed of a dark grid in the center, a bright grid group surrounding the dark grid in a row, and a dark grid group surrounding the bright grid in a row. Therefore, the second position detection pattern 33b can be detected in the order of dark, bright, dark, bright, and dark, with a continuous ratio of 1:1:1:1:1:1.

碼區域31的外緣34係將各格子排列成一列所構成者,由構成第1位置檢測圖案33a側之長邊的第1緣部34a、構成第2位置檢測圖案33b側之長邊的第2緣部34b、構成第1位置檢測圖案33a側之短邊的第3緣部34c、構成第2位置檢測圖案33b側之短邊的第4緣部34d所成。The outer edge 34 of the code region 31 is formed by arranging the lattices in a row. The first edge portion 34a constituting the long side of the first position detection pattern 33a and the first edge constituting the long side of the second position detection pattern 33b The second edge portion 34b, the third edge portion 34c constituting the short side on the first position detection pattern 33a side, and the fourth edge portion 34d constituting the short side on the second position detection pattern 33b side.

第1緣部34a係一方的端部接續於第1位置檢測圖案33a,另一方的端部作為端部用的圖案35a由3個暗色格子所成,除了端部用的圖案35a之外的部位是亮色格子與暗色格子交互排列所構成。亦即,第1緣部34a係至少於中間部位(部分區域)中,排列一組的亮色格子及暗色格子所成的特定圖案40到達第1位置檢測圖案33a為止重複所構成。The first edge portion 34a is one end connected to the first position detection pattern 33a, and the other end as the end pattern 35a is formed by three dark grids, except for the end pattern 35a It is composed of bright grids and dark grids arranged alternately. That is, the first edge portion 34a is formed by repeating the specific pattern 40 formed by arranging a group of bright grids and dark grids at least in the middle portion (partial area) until reaching the first position detection pattern 33a.

第2緣部34b係一方的端部作為端部用的圖案35b由3個暗色格子所成,另一方的端部接續於第2位置檢測圖案33b,除了端部用的圖案35b之外的部位是亮色格子與暗色格子交互排列所構成。亦即,第2緣部34b係至少於中間部位(部分區域)中,與第1緣部34a同樣地構成的特定圖案40到達第2位置檢測圖案33b為止重複所構成。The second edge portion 34b is formed by three dark grids at one end as the end pattern 35b, and the other end is connected to the second position detection pattern 33b except for the end pattern 35b It is composed of bright grids and dark grids arranged alternately. That is, the second edge portion 34b is formed repeatedly at least in the middle portion (partial region), and the specific pattern 40 configured in the same manner as the first edge portion 34a reaches the second position detection pattern 33b.

尤其,第2緣部34b係以於第1緣部34a中重複特定圖案40的部分(參照圖1的L1)與於第2緣部34b中重複特定圖案40的部分(參照圖1的L2)中,在與第1緣部34a及第2緣部34b正交的對向方向(圖1的Y方向)中對向之位置的格子成為相同種類之方式構成。因此,例如延伸於圖1的對向方向的一點鎖線S1通過之第1緣部34a的格子與第2緣部34b的格子成為相同暗色格子。In particular, the second edge portion 34b is a portion where the specific pattern 40 is repeated in the first edge portion 34a (see L1 in FIG. 1) and a portion where the specific pattern 40 is repeated in the second edge portion 34b (see L2 in FIG. 1) In this case, the lattices at opposite positions in the opposing direction (Y direction in FIG. 1) orthogonal to the first edge portion 34 a and the second edge portion 34 b are configured to be of the same type. Therefore, for example, the lattice of the first edge portion 34a and the lattice of the second edge portion 34b passing through the one-point lock line S1 extending in the opposite direction of FIG. 1 become the same dark lattice.

第3緣部34c係以一方的端部接續於第1位置檢測圖案33a,另一方的端部作為端部用的圖案35c,由與第2緣部34b的端部用的圖案35b相同的暗色格子所成之方式構成。一方的端部與另一方的端部之間的中間部位(部分區域)係以重複前述特定圖案40之方式構成。然後,端部用的圖案35c係藉由與第2緣部34b之端部用的圖案35b接續成L字狀,和端部用的圖案35c與端部用的圖案35b之間的1個亮色格子一起構成隅圖案33c。The third edge portion 34c has one end connected to the first position detection pattern 33a, and the other end is used as the end pattern 35c, and has the same dark color as the pattern 35b for the end of the second edge 34b. The way the grid is made. The intermediate portion (partial region) between one end and the other end is constructed so as to repeat the aforementioned specific pattern 40. Then, the pattern 35c for the end portion is formed into an L-shape by continuing the pattern 35b for the end portion of the second edge portion 34b, and one bright color between the pattern 35c for the end portion and the pattern 35b for the end portion The lattices together constitute the corner pattern 33c.

第4緣部34d係以一方的端部作為端部用的圖案35d,由與第1緣部34a的端部用的圖案35a相同的暗色格子所成,另一方的端部接續於第2位置檢測圖案33b之方式構成。一方的端部與另一方的端部之間的中間部位(部分區域)係以重複前述特定圖案40之方式構成。然後,端部用的圖案35d係藉由與第1緣部34a之端部用的圖案35a接續成L字狀,和端部用的圖案35d與端部用的圖案35a之間的1個亮色格子一起構成隅圖案33d。The fourth edge portion 34d has one end portion as the end pattern 35d, and is formed by the same dark grid as the first edge portion 34a end pattern 35a, and the other end portion continues to the second position The structure of the detection pattern 33b is comprised. The intermediate portion (partial region) between one end and the other end is constructed so as to repeat the aforementioned specific pattern 40. Then, the pattern 35d for the end portion is formed into an L-shape by continuing the pattern 35a for the end portion of the first edge portion 34a, and one bright color between the pattern 35d for the end portion and the pattern 35a for the end portion The lattices together form the corner pattern 33d.

在如此構成的二維碼30中,相互對向的第1緣部34a及第2緣部34b,係至少中間部位(部分區域)藉由前述特定圖案40的重複所構成,所以,從攝像畫像可檢測出重複前述特定圖案40之兩個平行部分的話,即可檢測出將其兩個平行部分設為對向之外緣的碼區域31。尤其,重複前述特定圖案40之有週期性的圖案只要不是意圖地配置此種圖案,包含於相同攝像畫像的可能性會變低。In the two-dimensional code 30 configured in this manner, the first edge portion 34a and the second edge portion 34b facing each other are composed of at least the middle portion (partial area) by the repetition of the specific pattern 40. If two parallel parts repeating the aforementioned specific pattern 40 can be detected, the code region 31 whose two parallel parts are set to be opposite outer edges can be detected. In particular, repeating the periodic pattern of the specific pattern 40 as long as it is not intended to arrange such a pattern, the possibility of being included in the same captured image becomes low.

接著,針對具有作為可光學讀取本實施形態之二維碼30的二維碼讀取裝置之功能的資訊碼讀取裝置1,使用圖2進行說明。 本實施形態的資訊碼讀取裝置1係光學讀取二維碼30及條碼等之攜帶型的讀取裝置。如圖2所示,資訊碼讀取裝置1係於未圖示之殼體的內部收容電路部所成者,電路部主要具備照明光源11、受光感測器13、成像透鏡12等的光學系,與記憶體16、控制部20等的微型電腦(以下稱為「微電腦」)系電路CP。再者,資訊碼讀取裝置1並不限於攜帶型,構成為固定型的讀取裝置亦可。Next, an information code reading device 1 having a function as a two-dimensional code reading device that can optically read the two-dimensional code 30 of this embodiment will be described using FIG. 2. The information code reading device 1 of this embodiment is a portable reading device that optically reads a two-dimensional code 30, a bar code, and the like. As shown in FIG. 2, the information code reading device 1 is formed by housing a circuit part inside a casing (not shown), and the circuit part mainly includes an optical system such as an illumination light source 11, a light receiving sensor 13, an imaging lens 12, etc. It is a circuit CP with a microcomputer (hereinafter referred to as "microcomputer") such as the memory 16, the control unit 20, and the like. Furthermore, the information code reading device 1 is not limited to a portable type, and may be configured as a fixed type reading device.

光學系分為投光光學系與受光光學系。構成投光光學系的照明光源11係具有可讓照明光Lf發光之照明光源的功能者,例如由紅色的LED與設置於該LED的射出側的透鏡所構成。再者,在圖2中,概念性揭示朝向附二維碼30的讀取對象物R照射照明光Lf的範例。The optical system is divided into a projection optical system and a light receiving optical system. The illumination light source 11 constituting the projection optical system has a function of an illumination light source that allows the illumination light Lf to emit light, and is composed of, for example, a red LED and a lens provided on the exit side of the LED. In addition, FIG. 2 conceptually discloses an example of illuminating the illumination light Lf toward the object R to be read with the two-dimensional code 30.

受光光學系係藉由受光感測器13、成像透鏡12、反射鏡(省略圖示)等所構成。受光感測器13係例如構成為將C-MOS或CCD等的固體攝像元件即受光元件二維排列的區域感測器者,以對應受光之資訊碼的各格子(圖案)輸出因應反射光Lr之強度的電性訊號之方式構成。該受光感測器13係可對透過成像透鏡12射入之入射光進行受光地安裝於印刷配線板(省略圖示)。The light-receiving optical system is composed of a light-receiving sensor 13, an imaging lens 12, a reflecting mirror (not shown), and the like. The light-receiving sensor 13 is, for example, an area sensor configured as a two-dimensional array of light-receiving elements, which is a solid-state imaging element such as C-MOS or CCD, and outputs corresponding reflected light Lr in each lattice (pattern) corresponding to the received information code The strength of the electrical signal is constructed. The light-receiving sensor 13 is mounted on a printed wiring board (not shown) to receive incident light that has entered through the imaging lens 12.

成像透鏡12係具有作為將從外部透過讀取口(省略圖示)射入之入射光聚光,可將像成像於受光感測器13的受光面13a的成像光學系之功能者。在本實施形態中,從照明光源11照射之照明光Lf等在資訊碼等反射之後,以成像透鏡12對該反射光Lr進行聚光,使碼像成像於受光感測器13的受光面13a。The imaging lens 12 has a function as an imaging optical system that collects incident light incident from the outside through a reading port (not shown) and can image an image on the light receiving surface 13a of the light receiving sensor 13. In the present embodiment, after the illumination light Lf irradiated from the illumination light source 11 is reflected by an information code or the like, the reflected light Lr is condensed by the imaging lens 12 so that the code image is formed on the light receiving surface 13a of the light receiving sensor 13 .

微電腦系電路CP係具備放大電路14、A/D轉換電路15、記憶體16、位址產生電路17、同步訊號產生電路18、控制部20、操作部21、液晶顯示器22、蜂鳴器23、振動器24、發光部25、通訊介面26。該微電腦系電路CP係以具有CPU20A,可具有微電腦(資訊處理裝置)之功能的控制部20及記憶體16為中心所構成。微電腦系電路CP係可對包含藉由上述之光學系所攝像的二維碼30之資訊碼的畫像訊號,進行硬體性及軟體性訊號處理者。又,控制部20也管理該資訊碼讀取裝置1的整體系統相關的控制。The microcomputer-based circuit CP is equipped with an amplifier circuit 14, an A/D conversion circuit 15, a memory 16, an address generation circuit 17, a synchronization signal generation circuit 18, a control unit 20, an operation unit 21, a liquid crystal display 22, a buzzer 23, Vibrator 24, light emitting section 25, communication interface 26. The microcomputer circuit CP is composed mainly of a control unit 20 and a memory 16 having a CPU 20A and a function of a microcomputer (information processing device). The microcomputer-based circuit CP can perform hardware and software signal processing on the portrait signal including the information code of the two-dimensional code 30 captured by the optical system described above. In addition, the control unit 20 also manages the control of the entire system of the information code reading device 1.

從光學系的受光感測器13輸出之畫像訊號(類比訊號)係利用輸入至放大電路14以所定增益放大之後,被輸入至A/D轉換電路15時,從類比訊號轉換成數位訊號。然後,被數位化的畫像訊號,亦即畫像資料(畫像資訊)被輸入至記憶體16時,則積存於畫像資料積存區域。再者,同步訊號產生電路18係構成為可產生對於受光感測器13及位址產生電路17的同步訊號,又,位址產生電路17係構成為可依據從該同步訊號產生電路18供給的同步訊號,產生儲存於記憶體16的畫像資料的儲存位址。The portrait signal (analog signal) output from the light-receiving sensor 13 of the optical system is amplified by a predetermined gain by input to the amplifying circuit 14 and then input to the A/D conversion circuit 15 to convert the analog signal into a digital signal. Then, when the digitized portrait signal, that is, portrait data (portrait information) is input to the memory 16, it is accumulated in the portrait data storage area. Furthermore, the synchronization signal generating circuit 18 is configured to generate a synchronization signal to the light-receiving sensor 13 and the address generating circuit 17, and the address generating circuit 17 is configured to be based on the supply from the synchronization signal generating circuit 18 The synchronization signal generates the storage address of the image data stored in the memory 16.

記憶體16係半導體記憶體裝置,例如RAM16A(DRAM、SRAM等)或ROM16B(EPROM、EEPROM等)相當於其。於該記憶體16中的RAM16A,構成為除了上述之畫像資料積存區域之外,也可確保控制部20利用於算術運算及邏輯運算等的各處理時之作業區域及讀取條件表。又,於ROM16B,預先儲存有可控制照明光源11、受光感測器13等之各硬體的系統程式等。又,於記憶體16,也記憶有構成成為讀取對象之二維碼30的第1緣部34a及第2緣部34b的特定圖案40及端部用的圖案、位置檢測圖案33a、33b及隅圖案33c、33d等的固定圖案區域相關的資訊(以下也稱為特定圖案資訊)及利用該特定圖案資訊等,用以執行光學讀取二維碼30之讀取處理的程式等。The memory 16 is a semiconductor memory device, and for example, RAM16A (DRAM, SRAM, etc.) or ROM16B (EPROM, EEPROM, etc.) is equivalent thereto. The RAM 16A in the memory 16 is configured such that, in addition to the above-mentioned image data storage area, the operation area and reading condition table used by the control unit 20 at each processing such as arithmetic operation and logical operation can be secured. In addition, in the ROM 16B, a system program and the like that can control the hardware of the illumination light source 11, the light receiving sensor 13, and the like are stored in advance. In addition, the memory 16 also stores the specific patterns 40 and the patterns for the end portions, the position detection patterns 33a, 33b and the patterns constituting the first edge portion 34a and the second edge portion 34b of the two-dimensional code 30 to be read. Information related to the fixed pattern area of the corner patterns 33c, 33d, etc. (hereinafter also referred to as specific pattern information), and a program that uses the specific pattern information, etc., to perform a reading process for optically reading the two-dimensional code 30.

控制部20係可控制資訊碼讀取裝置1整體的微電腦裝置,具備CPU20A、系統匯流排、及輸出入介面,可與記憶體16一起構成資訊處理裝置且具有資訊處理功能。該控制部20係構成為可透過內藏之輸出入介面而與各種輸出入裝置(周邊裝置)連接,在本實施形態的狀況中,連接操作部21、液晶顯示器22、蜂鳴器23、振動器24、發光部25、通訊介面26等。The control unit 20 is a microcomputer device that can control the entire information code reading device 1 and is equipped with a CPU 20A, a system bus, and an input/output interface, and can form an information processing device together with the memory 16 and has an information processing function. The control unit 20 is configured to be connected to various input/output devices (peripheral devices) through the built-in input/output interface. In the case of this embodiment, the operation unit 21, the liquid crystal display 22, the buzzer 23, and the vibration are connected. Device 24, light-emitting part 25, communication interface 26, etc.

操作部21係藉由複數鍵所構成,作為因應使用者的鍵操作以對於控制部20賦予操作訊號的構造,控制部20係以從操作部21接收操作訊號時,進行因應其操作訊號的動作之方式構成。液晶顯示器22係藉由公知的液晶顯示面板所構成,藉由控制部20控制顯示內容。蜂鳴器23係藉由公知的蜂鳴器所構成,以因應來自控制部20的動作訊號,產生所定聲音之方式構成。振動器24係藉由搭載於攜帶機器之公知的振動器所構成,以因應來自控制部20的驅動訊號,產生振動之方式構成。發光部25係例如LED,以因應來自控制部20的訊號而點燈之方式構成。通訊介面26係構成為用以進行與外部(例如主機裝置)之間的資料通訊的介面,作為與控制部20協力動作來進行通訊處理的構造。The operation unit 21 is composed of a plurality of keys. As a structure for giving an operation signal to the control unit 20 in response to a user's key operation, the control unit 20 performs an operation in response to the operation signal when receiving the operation signal from the operation unit 21 Way composition. The liquid crystal display 22 is composed of a well-known liquid crystal display panel, and the display content is controlled by the control unit 20. The buzzer 23 is composed of a known buzzer, and is configured to generate a predetermined sound in response to an operation signal from the control unit 20. The vibrator 24 is composed of a known vibrator mounted on a portable device, and is configured to generate vibration in response to a driving signal from the control unit 20. The light emitting unit 25 is, for example, an LED, and is configured to light in response to a signal from the control unit 20. The communication interface 26 is configured as an interface for data communication with an outside (for example, a host device), and serves as a structure for performing communication processing in cooperation with the control unit 20.

接著,針對讀取二維碼30時以資訊碼讀取裝置1的控制部20(詳細來說是CPU20A)執行的讀取處理,參照圖3的流程圖來進行說明。 在資訊碼讀取裝置1的讀取口OP朝向二維碼30之狀態下對於操作部21進行所定操作時,則開始控制部20所致之讀取處理。首先,進行步驟S101所示的攝像處理,依據從對來自二維碼30的反射光Lr受光的受光感測器13輸出之訊號,產生包含該二維碼30之攝像畫像的畫像資料。Next, the reading process executed by the control unit 20 (specifically, the CPU 20A) of the information code reading device 1 when reading the two-dimensional code 30 will be described with reference to the flowchart of FIG. 3. When a predetermined operation is performed on the operation unit 21 with the reading port OP of the information code reading device 1 facing the two-dimensional code 30, the reading process by the control unit 20 is started. First, the imaging process shown in step S101 is performed, and based on the signal output from the light-receiving sensor 13 that receives the reflected light Lr from the two-dimensional code 30, image data including the captured image of the two-dimensional code 30 is generated.

接著,進行步驟S103所示的外緣檢測處理。在該處理中,進行依據預先記憶於記憶體16的特定圖案資訊等,用以從如上所述般攝像的攝像畫像,檢測出重複前述特定圖案40之兩個平行部分,亦即,第1緣部34a及第2緣部34b的處理。在該處理中,利用前述特定圖案40及端部用的圖案35a、35b等,從攝像畫像直接檢測出第1緣部34a及第2緣部34b亦可,依據從攝像畫像檢測出的位置檢測圖案33a、33b及隅圖案33c、33d的位置,檢測出第1緣部34a及第2緣部34b亦可。Next, the outer edge detection process shown in step S103 is performed. In this process, based on the specific pattern information pre-stored in the memory 16, etc., to detect the two parallel portions repeating the specific pattern 40, that is, the first edge, from the captured image captured as described above Processing of the portion 34a and the second edge portion 34b. In this process, the first pattern 34a and the second frame 34b may be directly detected from the captured image using the aforementioned specific pattern 40 and the patterns 35a, 35b for the end, etc., based on the position detected from the captured image The positions of the patterns 33a and 33b and the corner patterns 33c and 33d may be detected by the first edge portion 34a and the second edge portion 34b.

然後,由於對二維碼30進行攝像,從被攝像的攝像畫像檢測出第1緣部34a及第2緣部34b的話(S105為Yes),則進行步驟S107所示的碼區域檢測處理。在此處理中,依據如上述般檢測出的第1緣部34a及第2緣部34b與第1位置檢測圖案33a及第2位置檢測圖案33b等,檢測出碼區域31。Then, when the two-dimensional code 30 is imaged and the first edge portion 34a and the second edge portion 34b are detected from the captured image (Yes in S105), the code area detection process shown in step S107 is performed. In this process, the code area 31 is detected based on the first edge portion 34a and the second edge portion 34b and the first position detection pattern 33a and the second position detection pattern 33b detected as described above.

然後,進行步驟S109所示的解碼處理,依據如上所述般檢測出的碼區域31內之各格子的排列,進行用以解碼(解讀)記錄於資料記錄區域32之所定資料的處理。然後,該解碼處理成功時(S111為Yes),則進行用以將藉由解碼處理所取得之所定資料輸出至外部的處理(S113),結束本讀取處理。另一方面,解碼處理失敗時(S111為No),則當成二維碼30未被可解碼地攝像,進行前述步驟S101起的處理。Then, the decoding process shown in step S109 is performed, and a process for decoding (interpreting) the predetermined data recorded in the data recording region 32 is performed according to the arrangement of the lattices in the code region 31 detected as described above. Then, when the decoding process is successful (Yes in S111), a process for outputting the predetermined data obtained by the decoding process to the outside is performed (S113), and the reading process is ended. On the other hand, when the decoding process fails (No in S111), the two-dimensional code 30 is taken as image without being decodable, and the processing from step S101 is performed.

又,從被攝像的攝像畫像未檢測出第1緣部34a及第2緣部34b時(S105為No),則當成二維碼30未被攝像,不進行檢測碼區域31的碼區域檢測處理(S107),進行前述步驟S101起的處理。In addition, when the first edge portion 34a and the second edge portion 34b are not detected from the captured image captured (S105: No), the two-dimensional code 30 is not captured, and the code area detection process of detecting the code area 31 is not performed (S107), the processing from the aforementioned step S101 is performed.

如以上所說明般,在本實施形態的二維碼30中,矩形狀之碼區域31的外緣34中,複數種類的格子排列成一列所成的第1緣部34a,係至少於中間部位(部分區域)中,重複排列2個以上不同格子所成的特定圖案40所構成;以與第1緣部34a對向之方式複數種類的格子排列成一列所成的第2緣部34b,係至少於中間部位(部分區域)中,重複前述特定圖案40所構成。As described above, in the two-dimensional code 30 of the present embodiment, the first edge portion 34a formed by arranging plural kinds of lattices in a row in the outer edge 34 of the rectangular code region 31 is at least in the middle In the (partial area), a specific pattern 40 formed by repeatedly arranging two or more different lattices; a second edge portion 34b formed by arranging plural kinds of lattices in a row so as to face the first edge portion 34a The specific pattern 40 is repeated at least in the middle part (partial region).

如此,相互對向的第1緣部34a及第2緣部34b,係至少中間部位(部分區域)藉由相同特定圖案40的重複所構成,所以,從攝像畫像可檢測出重複前述特定圖案40之兩個平行部分的話,即可檢測出將其兩個平行部分設為對向之外緣34的第1緣部34a及第2緣部34b的碼區域31。尤其,如重複前述特定圖案40之有週期性的圖案,係難以與二維碼30一起由顯示於顯示面的框線及文字等構成,與實線部分不同,包含於攝像畫像的可能性低,故前述碼區域31未被攝像的狀況中可抑制關於該碼區域31的檢測不需要的碼檢測處理。結果,可縮短資訊碼讀取裝置1之讀取處理相關的處理時間。In this way, the first edge portion 34a and the second edge portion 34b facing each other are formed by repeating the same specific pattern 40 at least in the middle portion (partial area), so the repeated specific pattern 40 can be detected from the captured image If there are two parallel parts, the code region 31 in which the two parallel parts are the first edge part 34a and the second edge part 34b facing the outer edge 34 can be detected. In particular, if the periodic pattern of the specific pattern 40 is repeated, it is difficult to form the frame and text displayed on the display surface together with the two-dimensional code 30. Unlike the solid line, it is unlikely to be included in the captured image Therefore, in the case where the aforementioned code area 31 is not imaged, it is possible to suppress unnecessary code detection processing regarding the detection of the code area 31. As a result, the processing time related to the reading process of the information code reading device 1 can be shortened.

又,於碼區域31的隅部之一,配置該碼區域31的檢測所利用之第1位置檢測圖案33a,第1緣部34a係以到達第1位置檢測圖案33a為止,重複特定圖案40之方式構成。因此,以所檢測出的第1位置檢測圖案33a為基準,檢測出第1緣部34a的狀況中,可容易進行其檢測處理。In addition, at one of the corners of the code area 31, a first position detection pattern 33a for detecting the code area 31 is arranged, and the first edge portion 34a repeats the specific pattern 40 until it reaches the first position detection pattern 33a Way composition. Therefore, when the first edge portion 34a is detected based on the detected first position detection pattern 33a, the detection process can be easily performed.

又,於對於第1位置檢測圖案33a成為對角之碼區域31的隅部,以與第1位置檢測圖案33a不同的排列,配置該碼區域31的檢測所利用之第2位置檢測圖案33b,第2緣部34b係以到達第2位置檢測圖案33b為止,重複特定圖案40之方式構成。因此,以所檢測出的第2位置檢測圖案33b為基準,檢測出第2緣部34b的狀況中,可容易進行其檢測處理。進而,檢測出第1位置檢測圖案33a及第2位置檢測圖案33b的任一方時,利用以其場所為基準來搜尋另一方,可檢測出位於碼區域31的對角之兩個角的位置,容易檢測出碼區域31的外形。In addition, the second position detection pattern 33b used for the detection of the code area 31 is arranged in a different arrangement from the first position detection pattern 33a in the corner portion of the code area 31 that is diagonal to the first position detection pattern 33a, The second edge portion 34b is configured to repeat the specific pattern 40 until reaching the second position detection pattern 33b. Therefore, when the second edge portion 34b is detected based on the detected second position detection pattern 33b, the detection process can be easily performed. Furthermore, when any one of the first position detection pattern 33a and the second position detection pattern 33b is detected, by searching for the other based on its location, the positions of two corners located at opposite corners of the code area 31 can be detected. The outer shape of the code area 31 can be easily detected.

尤其,第1位置檢測圖案33a與第2位置檢測圖案33b中排列不同,故根據第1位置檢測圖案33a及第2位置檢測圖案33b與第1緣部34a及第2緣部34b的位置關係,可容易判斷在碼區域31表背面反轉的狀態下是否被攝像。藉此,對於從攝像畫像檢測出的碼區域31,不需進行在表背面反轉的狀態下(參照圖4)解碼的處理與在不表背面反轉的狀態下(參照圖1)解碼的處理的兩個處理,僅進行一方的處理即可,所以,關於讀取二維碼30的讀取處理,可縮短處理時間。In particular, the first position detection pattern 33a and the second position detection pattern 33b are arranged differently. Therefore, according to the positional relationship between the first position detection pattern 33a and the second position detection pattern 33b and the first edge portion 34a and the second edge portion 34b, It can be easily judged whether the image is captured in the state where the front and back of the code area 31 are inverted. By this means, the code region 31 detected from the captured image does not need to be decoded in the state where the front and back sides are reversed (see FIG. 4) and decoded in the state where the front and back sides are not reversed (see FIG. 1). Only one of the two processes can be performed. Therefore, the processing time for reading the two-dimensional code 30 can be shortened.

進而,第1緣部34a係以與第1位置檢測圖案33a相反側的端部,成為與特定圖案40不同之端部用的圖案35a之方式構成,故以該端部用的圖案35a為基準,可容易檢測出第1緣部34a的端部,亦即與第1緣部34a正交之碼區域31的外緣的第4緣部34d。Furthermore, the first edge portion 34a is configured such that the end on the opposite side to the first position detection pattern 33a becomes a pattern 35a for an end different from the specific pattern 40, so the pattern 35a for this end is used as a reference It is possible to easily detect the end of the first edge portion 34a, that is, the fourth edge portion 34d of the outer edge of the code region 31 orthogonal to the first edge portion 34a.

進而,第2緣部34b係以與第2位置檢測圖案33b相反側的端部,成為與特定圖案40不同之端部用的圖案35b之方式構成,故以該端部用的圖案35b為基準,可容易檢測出第2緣部34b的端部,亦即與第2緣部34b正交之碼區域31的外緣的第3緣部34c。Furthermore, the second edge portion 34b is configured such that the end opposite to the second position detection pattern 33b becomes a pattern 35b for an end different from the specific pattern 40, so the pattern 35b for this end is used as a reference , The end of the second edge portion 34b, that is, the third edge portion 34c of the outer edge of the code region 31 orthogonal to the second edge portion 34b can be easily detected.

尤其,以於第1緣部34a中重複特定圖案40的部分(參照圖1的L1)與於第2緣部34b中重複特定圖案40的部分(參照圖1的L2)中,在與第1緣部34a及第2緣部34b正交的對向方向(圖1的Y方向)中對向之位置的格子成為相同種類(參照圖1的S1)。藉此,以各特定圖案40為基準,關於前述對向方向容易正確地求出各格子的格子座標,可提升解碼成功率。In particular, the portion where the specific pattern 40 is repeated in the first edge portion 34a (refer to L1 in FIG. 1) and the portion where the specific pattern 40 is repeated in the second edge portion 34b (refer to L2 in FIG. 1) The lattices at opposite positions in the opposing direction (the Y direction in FIG. 1) in which the edge portion 34 a and the second edge portion 34 b are orthogonal are the same type (see S1 in FIG. 1 ). With this, the lattice coordinates of each lattice can be easily and accurately obtained in the aforementioned facing direction based on each specific pattern 40, and the decoding success rate can be improved.

又,前述特定圖案40係由一組的亮色格子與暗色格子所成,因此,即使以具有亮色格子與暗色格子交互重覆之有週期性的圖案之方式構成第1緣部34a及第2緣部34b,也難以與二維碼30一起由顯示於顯示面的框線及文字等構成,與實線部分不同,包含於攝像畫像的可能性低,故前述碼區域31未被攝像的狀況中可抑制關於該碼區域31的檢測不需要的碼檢測處理。In addition, the specific pattern 40 is composed of a group of bright grids and dark grids. Therefore, even if the first edge portion 34a and the second edge are formed in such a manner that there is a periodic pattern in which the bright grid and the dark grid alternately overlap. It is also difficult for the portion 34b to be composed of the frame lines and characters displayed on the display surface together with the two-dimensional code 30. Unlike the solid line portion, the possibility of being included in the captured image is low, so the aforementioned code area 31 is not captured It is possible to suppress unnecessary code detection processing regarding the detection of the code area 31.

再者,特定圖案40並不限於由一組的亮色格子及暗色格子所構成,以利用接續而外緣具有週期性之方式,藉由其他格子的組合構成亦可。例如,作為本實施形態的第1變形例,如圖5所例示的二維碼30a之特定圖案40a般,由1個亮色格子與3個暗色格子構成亦可。In addition, the specific pattern 40 is not limited to be composed of a group of bright grids and dark grids, and may be formed by a combination of other grids in such a manner that the outer edges have periodicity by using continuity. For example, as a first modification of the present embodiment, as the specific pattern 40a of the two-dimensional code 30a illustrated in FIG. 5, it may be composed of one bright grid and three dark grids.

又,第1緣部34a及第2緣部34b以成為長方形狀之碼區域31的長邊之方式構成,故相較於第1緣部34a及第2緣部34b以成為其碼區域31的短邊之方式構成的狀況,由於特定圖案40的重複出現頻度變高,可容易檢測出第1緣部34a及第2緣部34b。In addition, the first edge portion 34a and the second edge portion 34b are configured to be the long sides of the rectangular-shaped code region 31, so they are compared with the first edge portion 34a and the second edge portion 34b to be the code region 31. In the case of the short-side configuration, the frequency of repeated occurrences of the specific pattern 40 becomes higher, so that the first edge portion 34a and the second edge portion 34b can be easily detected.

再者,根據利用二維碼30的環境等,碼區域31係構成為正方形狀亦可,以重複前述特定圖案40所構成之第1緣部34a及第2緣部34b成為短邊之方式構成亦可。In addition, depending on the environment in which the two-dimensional code 30 is used, the code area 31 may be configured in a square shape, and the first edge portion 34a and the second edge portion 34b formed by repeating the specific pattern 40 may be configured to be short sides. Also.

又,固定圖案區域並不限於以具備兩個第1位置檢測圖案33a及第2位置檢測圖案33b雙方之方式構成,以具備任一方之方式構成亦可。又,不具備兩個第1位置檢測圖案33a及第2位置檢測圖案33b亦可。此時,作為本實施形態的第2變形例,第1緣部34a係利用起始端及結束端如圖6所例示的二維碼30b之端部用的圖案35a、36a,以與特定圖案40不同之端部用的圖案(例如由3個暗色格子所成的圖案)之方式構成,以該端部用的圖案35a、36a為基準,可容易檢測出第1緣部34a的兩端部,亦即,成為與第1緣部34a正交之碼區域31的外緣的第3緣部34c及第4緣部34d。同樣地,第2緣部34b係利用起始端及結束端如圖6所例示之端部用的圖案35b、36b,以與特定圖案40不同之端部用的圖案之方式構成,以該端部用的圖案35b、36b為基準,可容易檢測出第2緣部34b的兩端部,亦即,成為與第2緣部34b正交之碼區域31的外緣的第3緣部34c及第4緣部34d。In addition, the fixed pattern area is not limited to being configured to include both the first position detection pattern 33a and the second position detection pattern 33b, but may be configured to include either. In addition, two first position detection patterns 33a and a second position detection pattern 33b may not be provided. At this time, as a second modification of the present embodiment, the first edge portion 34a uses the patterns 35a and 36a for the ends of the two-dimensional code 30b illustrated in FIG. The pattern for the different end portions (for example, the pattern formed by three dark grids) is configured, and the two end portions of the first edge portion 34a can be easily detected based on the pattern 35a, 36a for the end portions, That is, the third edge portion 34c and the fourth edge portion 34d that become the outer edges of the code region 31 orthogonal to the first edge portion 34a. Similarly, the second edge portion 34b is composed of patterns for the end portions different from the specific pattern 40 by using end patterns 35b and 36b as illustrated in FIG. 6, and the end portions Using the patterns 35b and 36b as a reference, it is possible to easily detect both end portions of the second edge portion 34b, that is, the third edge portion 34c and the third edge portion that become the outer edge of the code region 31 orthogonal to the second edge portion 34b 4 Edge portion 34d.

又,如圖6所例示般,利用藉由第1緣部34a之端部用的圖案36a與第3緣部34c之端部用的圖案36c與藉由兩圖案之間的亮色格子所構成之隅圖案,藉此可檢測出第1緣部34a及第3緣部34c。又,利用藉由第2緣部34b之端部用的圖案36b與第4緣部34d之端部用的圖案36d與藉由兩圖案之間的亮色格子所構成之隅圖案,藉此可檢測出第2緣部34b及第4緣部34d。Also, as illustrated in FIG. 6, a pattern 36a for the end of the first edge 34a and a pattern 36c for the end of the third edge 34c and a bright grid between the two patterns are used. With the corner pattern, the first edge portion 34a and the third edge portion 34c can be detected. Also, by using the pattern 36b for the end of the second edge portion 34b and the pattern 36d for the end of the fourth edge portion 34d, and the corner pattern formed by the bright grid between the two patterns, it can be detected The second edge portion 34b and the fourth edge portion 34d appear.

[第2實施形態] 接著,針對本第2實施形態的二維碼,參照圖7進行說明。 在本第2實施形態中,主要作為固定圖案區域的一部分,在前述對向方向中斷開資料記錄區域32的斷開圖案新配置於碼區域31內之處,與前述第1實施形態不同。所以,於與第1實施形態的二維碼實質上相同的構造部分,附加相同符號,省略其說明。[Second Embodiment] Next, the two-dimensional code of the second embodiment will be described with reference to FIG. 7. In the second embodiment, mainly as a part of the fixed pattern area, the disconnection pattern of the disconnection data recording area 32 in the facing direction is newly arranged in the code area 31, which is different from the first embodiment. Therefore, the structural parts that are substantially the same as the two-dimensional code of the first embodiment are given the same symbols and their descriptions are omitted.

如圖7所示,本實施形態的二維碼30c之第1緣部34a及第2緣部34b,係以排列與特定圖案40不同之第2特定圖案41在特定圖案40的重複之中出現兩個之方式構成。第2特定圖案41係以擾亂利用特定圖案40的週期性之方式,例如由3個暗色格子所構成,第1緣部34a的第2特定圖案41與第2緣部34b的第2特定圖案41中在對向方向中對向之位置的格子為相同種類。As shown in FIG. 7, the first edge portion 34 a and the second edge portion 34 b of the two-dimensional code 30 c of this embodiment appear in the repetition of the specific pattern 40 by arranging the second specific pattern 41 different from the specific pattern 40 Two ways. The second specific pattern 41 is configured by disturbing the periodicity of the specific pattern 40, and is composed of, for example, three dark grids. The second specific pattern 41 of the first edge portion 34a and the second specific pattern 41 of the second edge portion 34b The grids in opposite positions in the opposite direction are of the same type.

然後,在前述對向方向中,從第1緣部34a的第2特定圖案41之中央的暗色格子涵蓋到對向之第2緣部34b的第2特定圖案41之中央的暗色格子,配置分別格子的排列相同的斷開圖案37。斷開圖案37係與第1緣部34a及第2緣部34b相同,亮色格子及暗色格子以一列交互排列,且以與第2特定圖案41之中央的暗色格子接續之端部的格子37a,成為與構成該第2特定圖案41的格子不同種類的亮色格子之方式構成。Then, in the aforementioned facing direction, the dark grid at the center of the second specific pattern 41 of the first edge portion 34a covers the dark grid at the center of the second specific pattern 41 of the opposing second edge portion 34b The arrangement of the lattices is the same in the disconnection pattern 37. The disconnection pattern 37 is the same as the first edge portion 34a and the second edge portion 34b. The bright grids and the dark grids are alternately arranged in a row, and the end grids 37a that follow the dark grids in the center of the second specific pattern 41, It is configured to be a different type of bright grid from the grid constituting the second specific pattern 41.

藉此,使斷開圖案37具有校準圖案的功能,可利用於格子座標的失真校正。尤其,在本實施形態中,鄰接於斷開圖案37之端部的格子37a的格子也包含於前述固定圖案區域,包圍該端部之格子37a的格子藉由與構成第2特定圖案41的格子相同種類的格子(暗色格子)構成。Thereby, the disconnection pattern 37 has the function of calibrating the pattern, and can be used for distortion correction of the grid coordinates. In particular, in this embodiment, the grid adjacent to the grid 37a at the end of the disconnected pattern 37 is also included in the fixed pattern area. The grid surrounding the grid 37a at the end is combined with the grid constituting the second specific pattern 41. The same kind of grid (dark grid) is constructed.

然後,第3緣部34c及第4緣部34d係以至少構成中間部位(部分區域)的格子的種類,成為與沿著第1緣部34a及第2緣部34b的方向(圖7的X方向)中對向之位置的斷開圖案37的格子相同種類之方式構成。因此,關於例如延伸於圖7的X方向的一點鎖線S2通過之格子的種類,第3緣部34c的格子、第4緣部34d的格子、斷開圖案37的格子成為相同暗色格子。Then, the third edge portion 34c and the fourth edge portion 34d are of a type that forms at least an intermediate portion (partial region), and become in a direction along the first edge portion 34a and the second edge portion 34b (X of FIG. 7 The grid of the disconnection pattern 37 at the opposite position in the direction) is configured in the same kind. Therefore, for example, the type of the grid passing through the one-point lock line S2 extending in the X direction in FIG. 7 is the same dark grid as the grid of the third edge portion 34c, the grid of the fourth edge portion 34d, and the grid of the disconnection pattern 37.

如以上所說明般,在本實施形態的二維碼30c中,第1緣部34a及第2緣部34b係以排列與特定圖案40不同的第2特定圖案41在特定圖案40的重複之中出現兩個之方式構成,第1緣部34a的第2特定圖案41與第2緣部34b的第2特定圖案41中在對向方向中對向之位置的格子為相同種類。藉此,不僅各特定圖案40,也以第2特定圖案41為基準,關於前述對向方向可容易正確地求出各格子的格子座標,可更提升解碼成功率。As described above, in the two-dimensional code 30c of this embodiment, the first edge portion 34a and the second edge portion 34b are arranged with the second specific pattern 41 different from the specific pattern 40 in the repetition of the specific pattern 40 There are two configurations, and the second specific pattern 41 of the first edge portion 34a and the second specific pattern 41 of the second edge portion 34b are the same type of grids at positions facing each other in the facing direction. As a result, not only each specific pattern 40 but also the second specific pattern 41 can be used as a reference, and the lattice coordinates of each lattice can be easily and accurately obtained in the aforementioned facing direction, and the decoding success rate can be further improved.

然後,第1緣部34a及第2緣部34b係以分別第2特定圖案41出現兩個之方式構成,在前述對向方向中從第1緣部34a的第2特定圖案41涵蓋到對向之第2緣部34b的第2特定圖案41,配置分別格子的排列相同的斷開圖案37。藉此,可以各特定圖案40與第2特定圖案41為基準,求出前述對向方向(圖7的Y方向)相關之各格子的格子座標,可以斷開圖案37為基準,求出沿著第1緣部34a及第2緣部34b的方向(圖7的X方向)相關之各格子的格子座標,可更提升解碼成功率。Then, the first edge portion 34a and the second edge portion 34b are configured in such a manner that two second specific patterns 41 appear, and the second specific pattern 41 of the first edge portion 34a covers the opposite direction in the aforementioned facing direction The second specific pattern 41 of the second edge portion 34b is provided with the disconnection pattern 37 in which the arrangement of the lattices is the same. In this way, the grid coordinates of each grid related to the aforementioned facing direction (Y direction in FIG. 7) can be obtained based on each specific pattern 40 and the second specific pattern 41, and along the broken pattern 37 can be obtained. The lattice coordinates of each lattice related to the direction of the first edge portion 34a and the second edge portion 34b (the X direction in FIG. 7) can further improve the decoding success rate.

尤其,第2特定圖案41係排列3個暗色格子所構成,斷開圖案37係與第2特定圖案41之中央的暗色格子連接之端部的格子37a,藉由與構成該第2特定圖案41的格子不同種類的亮色格子所構成,包圍該端部之格子37a的格子,藉由與構成第2特定圖案41的格子相同種類的暗色格子所構成。藉此,斷開圖案37之端部的格子37a係不僅被不同種類的格子包圍,包圍其斷開圖案37之端部的格子37a的格子全部都是相同種類的格子,所以,容易檢測出斷開圖案37之端部的格子37a,結果,可容易檢測出斷開圖案37及第2特定圖案41。In particular, the second specific pattern 41 is formed by arranging three dark grids, and the disconnection pattern 37 is a grid 37a at the end connected to the dark grid at the center of the second specific pattern 41, and the second specific pattern 41 is formed by The grids of different types are constituted by bright grids of different types, and the grids surrounding the grids 37a at the ends are constituted by dark grids of the same type as the grids constituting the second specific pattern 41. As a result, the grid 37a at the end of the disconnection pattern 37 is not only surrounded by different types of grids, but the grids surrounding the grid 37a at the end of the disconnection pattern 37 are all the same type of grid, so it is easy to detect the breakage The lattice 37a at the end of the opening pattern 37 results in easy detection of the disconnection pattern 37 and the second specific pattern 41.

進而,第3緣部34c及第4緣部34d係以至少構成中間部位(部分區域)的格子的種類,成為與沿著第1緣部34a及第2緣部34b的方向(圖7的X方向)中對向之位置的斷開圖案37的格子相同種類之方式構成。藉此,不僅斷開圖案37,也以第3緣部34c及第4緣部34d的中間部位為基準,關於第1緣部34a及第2緣部34b可容易正確地求出各格子的格子座標,可更提升解碼成功率。Furthermore, the third edge portion 34c and the fourth edge portion 34d are of a type that forms at least an intermediate portion (partial region), and are in a direction along the first edge portion 34a and the second edge portion 34b (X of FIG. 7 The grid of the disconnection pattern 37 at the opposite position in the direction) is configured in the same kind. With this, not only the disconnection pattern 37 but also the middle portion of the third edge portion 34c and the fourth edge portion 34d is used as a reference, the lattice of each lattice can be easily and accurately obtained with respect to the first edge portion 34a and the second edge portion 34b Coordinates can further improve the decoding success rate.

再者,第1緣部34a及第2緣部34b並不限定於以第2特定圖案41在特定圖案40的重複之中出現兩個之方式構成,以第2特定圖案41在特定圖案40的重複之中出現1個之方式構成亦可,以出現3個以上之方式構成亦可。例如,作為本實施形態的第1變形例,如圖8所例示的二維碼30d般,以第2特定圖案41在特定圖案40的重複之中出現3個之方式構成亦可。再者,斷開圖案37係如圖8所例示,關於所有第2特定圖案41,從第1緣部34a的第2特定圖案41涵蓋到對向之第2緣部34b的第2特定圖案41分別配置亦可,關於各第2特定圖案41的一部分,從第1緣部34a的第2特定圖案41涵蓋到對向之第2緣部34b的第2特定圖案41配置1個以上亦可。Furthermore, the first edge portion 34a and the second edge portion 34b are not limited to the structure in which the second specific pattern 41 appears two times in the repetition of the specific pattern 40, and the second specific pattern 41 is in the specific pattern 40. It may be constituted that one of them appears in the repetition, and it may be constituted that three or more appear. For example, as a first modification of the present embodiment, as the two-dimensional code 30d illustrated in FIG. 8, the second specific pattern 41 may be configured such that three of the specific patterns 40 appear repeatedly. In addition, as shown in FIG. 8, the disconnection pattern 37 includes all the second specific patterns 41 from the second specific pattern 41 of the first edge portion 34 a to the second specific pattern 41 of the opposing second edge portion 34 b. Each of the second specific patterns 41 may be arranged. One or more of the second specific patterns 41 of the first edge portion 34a may be covered by the second specific pattern 41 of the opposing second edge portion 34b.

又,作為本實施形態的第2變形例,如圖9所例示的二維碼30e般,即使不配置第2特定圖案41的狀況中,也可從第1緣部34a的1個格子涵蓋到對向之第2緣部34b的格子,配置斷開圖案37亦可。在該構造中,斷開圖案37係從第1緣部34a的1個格子涵蓋到對向之第2緣部34b的格子配置1個亦可,配置兩個以上亦可。即使該狀況中,第3緣部34c及第4緣部34d也可以至少構成中間部位的格子的種類,成為與沿著第1緣部34a及第2緣部34b的方向(圖9的X方向)中對向之位置的斷開圖案37的格子相同種類之方式構成。藉此,不僅斷開圖案37,也以第3緣部34c及第4緣部34d的中間部位為基準,關於第1緣部34a及第2緣部34b可容易正確地求出各格子的格子座標,可更提升解碼成功率。Also, as a second modification of the present embodiment, as in the case of the two-dimensional code 30e illustrated in FIG. 9, even in the case where the second specific pattern 41 is not arranged, it can be covered by one grid of the first edge portion 34a The grid of the opposing second edge portion 34b may be provided with a disconnection pattern 37. In this structure, the disconnection pattern 37 may be arranged from one grid of the first edge portion 34a to the grid of the opposing second edge portion 34b, and two or more may be arranged. Even in this situation, the third edge portion 34c and the fourth edge portion 34d may constitute at least the type of the lattice at the middle portion, and become the direction along the first edge portion 34a and the second edge portion 34b (X direction in FIG. 9) ), the grid of the disconnection pattern 37 at the opposite position is configured in the same kind. With this, not only the disconnection pattern 37 but also the middle portion of the third edge portion 34c and the fourth edge portion 34d is used as a reference, the lattice of each lattice can be easily and accurately obtained with respect to the first edge portion 34a and the second edge portion 34b Coordinates can further improve the decoding success rate.

[第3實施形態] 接著,針對本第3實施形態的二維碼,參照圖10及圖11進行說明。 在本第3實施形態中,主要是斷開圖案因應連接於第1緣部的位置來特定碼區域的尺寸之處,與前述第2實施形態不同。所以,於與第2實施形態的二維碼實質上相同的構造部分,附加相同符號,省略其說明。[Third Embodiment] Next, the two-dimensional code of the third embodiment will be described with reference to FIGS. 10 and 11. The third embodiment mainly differs from the second embodiment in that the disconnection pattern specifies the size of the code region according to the position connected to the first edge. Therefore, the structural parts that are substantially the same as the two-dimensional code of the second embodiment are given the same symbols and their descriptions are omitted.

在本實施形態中,在較早的階段中特定碼區域31的尺寸(以下也稱為碼尺寸),故以構成成為第1緣部34a的第1位置檢測圖案33a側之一方的端部的端部格子(在圖10中為暗色格子)Cs為基準,利用連接於第1緣部34a之斷開圖案37的位置。具體來說,作為尺寸特定用格子個數,求出到最接近端部格子Cs的斷開圖案37之端部的格子37a所連接的格子(第2特定圖案41之中央的暗色格子)為止並排於一方向的格子的個數,因應該尺寸特定用格子個數,來特定碼尺寸。In the present embodiment, the size of the code region 31 (hereinafter also referred to as code size) is specified at an early stage, so that the end portion of the first edge detection portion 33a on the side of the first position detection pattern 33a is configured. The end grid (dark grid in FIG. 10) Cs is used as a reference, and the position of the disconnection pattern 37 connected to the first edge 34a is used. Specifically, as the number of grids for size specification, the grids connected to the grids 37a (the dark grids at the center of the second specific pattern 41) connected to the ends of the disconnection patterns 37 closest to the end grids Cs are obtained side by side For the number of grids in one direction, the code size is specified by the number of grids according to the size specification.

如此可特定碼尺寸,故在本實施形態中,以碼尺寸與尺寸特定用格子個數1對1對應之方式生成二維碼。具體來說,如圖11(A)所例示般,預先訂定碼尺寸與尺寸特定用格子個數的關係,本實施形態的二維碼係以利用決定碼尺寸,根據該碼尺寸一意地訂定尺寸特定用格子個數的話,則因應該尺寸特定用格子個數,訂定碼區域31之斷開圖案37的位置之方式生成。再者,碼尺寸係如圖11(A)所例示般,不限於僅橫尺寸(沿著第1緣部34a之方向的尺寸)因應尺寸特定用格子個數而變化,僅縱尺寸(沿著第3緣部34c之方向的尺寸)因應尺寸特定用格子個數而變化亦可,橫尺寸及縱尺寸雙方因應尺寸特定用格子個數而變化亦可。Since the code size can be specified in this way, in this embodiment, the two-dimensional code is generated in such a way that the code size corresponds to the number of grids for size specification in one-to-one correspondence. Specifically, as illustrated in FIG. 11(A), the relationship between the code size and the number of grids for size specification is predetermined. The two-dimensional code of this embodiment uses the code size to determine the size of the code according to the code size. If the number of grids for specifying the size is determined, the position of the break pattern 37 of the code region 31 is generated according to the number of grids for specifying the size. Furthermore, the code size is as illustrated in FIG. 11(A), and is not limited to only the horizontal size (the size along the direction of the first edge portion 34a), which varies according to the number of grids for size specification, and only the vertical size (along The size of the third edge portion 34c in the direction) may be changed according to the number of grids for size specification, and both the horizontal size and the vertical size may be changed according to the number of grids for size specification.

如此生成二維碼,故圖10所示之二維碼30c被攝像的狀況中,碼區域31的檢測時尺寸特定用格子個數被求出為20個,根據圖11(A)所示的關係,特定碼尺寸為15×71。同樣地,根據攝像之二維碼,尺寸特定用格子個數被求出為22個時,則特定碼尺寸為15×43,根據攝像之二維碼,尺寸特定用格子個數被求出為24個時,則特定碼尺寸為15×99。Since the two-dimensional code is generated in this way, in the case where the two-dimensional code 30c shown in FIG. 10 is imaged, the number of grids for size specification at the time of detection of the code area 31 is obtained as 20, according to FIG. 11(A) Relationship, the specific code size is 15×71. Similarly, when the number of grids for size specification is determined to be 22 based on the two-dimensional code of the camera, the size of the specific code is 15×43, and the number of grids for size specification is determined as the two-dimensional code of the camera. When 24, the specific code size is 15×99.

如此,在本實施形態中,碼區域31的碼尺寸係根據斷開圖案37連接第1緣部34a的位置來訂定,故利用求出第1緣部34a之斷開圖案37的端部的格子37a連接的位置,可馬上特定碼尺寸。亦即,在檢測出碼區域31時,僅利用求出從構成第1緣部34a的端部之端部格子Cs等之所定位置的格子到連接斷開圖案37之端部的格子37a的格子為止並排於一方向之格子的個數,即可特定碼區域31的碼尺寸,所以,不用二維地求出格子的排列,可在較早的階段中特定碼區域31的碼尺寸。如此,可特定碼區域31的碼尺寸,故即使在碼區域31的附近存在類似格子的集合體的部分,也不會對於該部分進行用以檢測出碼區域31的處理,所以,減輕了不需要的處理,可謀求讀取處理相關之處理時間的縮短。In this way, in the present embodiment, the code size of the code region 31 is determined according to the position where the disconnection pattern 37 connects the first edge portion 34a, so the end of the disconnection pattern 37 of the first edge portion 34a is obtained by The position where the grid 37a is connected can be immediately specified for the code size. That is, when the code region 31 is detected, only the grid obtained from the grid at a predetermined position of the end grid Cs or the like constituting the end of the first edge 34a to the grid 37a at the end of the disconnection pattern 37 is obtained The number of lattices arranged in one direction so far can specify the code size of the code region 31. Therefore, the code size of the code region 31 can be specified at an earlier stage without calculating the arrangement of the lattices two-dimensionally. In this way, the code size of the code region 31 can be specified, so even if there is a lattice-like aggregate part near the code region 31, the process for detecting the code region 31 is not performed on the part, so The necessary processing can shorten the processing time related to the reading processing.

再者,本實施形態的二維碼並不限於以碼尺寸與尺寸特定用格子個數1對1對應之方式生成,以碼尺寸與尺寸特定用格子個數1對多對應之方式生成亦可。亦即,只要可從尺寸特定用格子個數一意地特定碼尺寸即可。例如,如圖11(B)所例示般,在根據攝像的二維碼,尺寸特定用格子個數被求出為19個或20個時,則特定碼尺寸為15×71。同樣地,根據攝像之二維碼,尺寸特定用格子個數被求出為21個或22個時,則特定碼尺寸為15×43,根據攝像之二維碼,尺寸特定用格子個數被求出為24個時,則特定碼尺寸為15×99。Furthermore, the two-dimensional code of this embodiment is not limited to being generated in a one-to-one correspondence between the code size and the number of grids for specifying the size, but may be generated in a one-to-many correspondence between the code size and the size of the grid for specifying the size. . That is, as long as the code size can be specified intentionally from the number of size specifying grids. For example, as illustrated in FIG. 11(B), when the number of grids for size specification is found to be 19 or 20 based on the two-dimensional code imaged, the specific code size is 15×71. Similarly, when the number of grids for size specification is found to be 21 or 22 according to the two-dimensional code of the camera, the size of the specific code is 15×43, and the number of grids for size specification is determined by the two-dimensional code of the camera. When 24 are found, the specific code size is 15×99.

又,尺寸特定用格子個數並不限於求出作為最接近第1緣部34a的端部格子Cs之斷開圖案37的端部的格子37a連接的格子為止並排於一方向之格子的個數,例如,求出作為從第1位置檢測圖案33a中構成碼區域31的隅部之格子等的所定格子到斷開圖案37之端部的格子37a連接的格子為止並排於一方向之格子的個數亦可。In addition, the number of grids for size specification is not limited to the number of grids juxtaposed in one direction until the grids connected to the grids 37a of the ends of the disconnection pattern 37 which is the end grid Cs closest to the first edge 34a For example, find the number of grids that are aligned in one direction from a predetermined grid such as the grid forming the corner of the code area 31 in the first position detection pattern 33a to the grid connected to the grid 37a at the end of the disconnection pattern 37 Number is also available.

又,並不限於碼區域31之碼尺寸的整體(縱×橫)與尺寸特定用格子個數建立關聯,例如碼區域31之碼尺寸的橫尺寸(沿著第1緣部34a之方向的尺寸)與尺寸特定用格子個數建立關聯亦可。Also, it is not limited to that the entire code size of the code area 31 (vertical×horizontal) is related to the number of grids for size specification, for example, the horizontal size of the code size of the code area 31 (the size along the direction of the first edge portion 34a) ) It may be related to the number of grids for size specification.

又,碼區域31的碼尺寸並不限於如上所述般根據尺寸特定用格子個數來訂定,使用與格子個數不同的手法,例如利用像素數的距離測定等,以第1位置檢測圖案33a的所定位置為基準,求出斷開圖案37連接第1緣部34a的位置,並因應該位置來訂定亦可。In addition, the code size of the code area 31 is not limited to be determined by the number of grids for size specification as described above, and a technique different from the number of grids is used, for example, distance measurement using the number of pixels, and the pattern is detected at the first position The predetermined position of 33a is used as a reference, and the position where the disconnection pattern 37 connects to the first edge portion 34a may be obtained and may be determined according to the position.

再者,本發明並不是限定於前述各實施形態及變形例等者,例如如以下所述具體化亦可。 (1)本發明並不限於適用於亮色格子及暗色格子的兩種類格子排列成矩陣狀所構成的二維碼,適用於彩色碼等,3種類以上的格子排列成矩陣狀所構成的二維碼亦可。In addition, the present invention is not limited to the aforementioned embodiments and modifications, and may be embodied as described below, for example. (1) The present invention is not limited to a two-dimensional code composed of two types of grids arranged in a matrix, such as a bright grid and a dark grid, and is suitable for a color code, etc., a two-dimensional code composed of more than three types of grids arranged in a matrix Code is also available.

(2)並不限於第2緣部34b以於第1緣部34a中重複特定圖案40的部分與第2緣部34b重複特定圖案40的部分中,對向之位置的格子為相同種類之方式構成,以對向之位置的格子的種類經常成為既定的關係之方式構成亦可。例如,採用亮色格子及暗色格子之兩種類的格子時,作為既定的關係,作為與第1緣部34a的亮色格子對向之位置的第2緣部34b的格子,配置暗色格子,作為與第1緣部34a的暗色格子對向之位置的第2緣部34b的格子,配置亮色格子亦可。(2) The second edge portion 34b is not limited to the part where the specific pattern 40 is repeated in the first edge portion 34a and the second edge portion 34b in which the specific pattern 40 is repeated, the grids at the opposite positions are of the same type The configuration may be such that the type of the lattice at the opposite position often becomes a predetermined relationship. For example, when two types of grids of a bright grid and a dark grid are used, as a predetermined relationship, as a grid of the second edge section 34b opposite to the bright grid of the first edge section 34a, a dark grid is arranged as the The grid of the second edge portion 34b at the position where the dark grid of the one edge portion 34a opposes may be a bright grid.

11‧‧‧照明光源 12‧‧‧成像透鏡 13‧‧‧受光感測器 13a‧‧‧受光面 14‧‧‧放大電路 15‧‧‧A/D轉換電路 16‧‧‧記憶體 16A‧‧‧RAM 16B‧‧‧ROM 17‧‧‧位址產生電路 18‧‧‧同步訊號產生電路 20‧‧‧控制部 20A‧‧‧CPU 21‧‧‧操作部 22‧‧‧液晶顯示器 23‧‧‧蜂鳴器 24‧‧‧振動器 25‧‧‧發光部 26‧‧‧通訊介面 30、30a~30e‧‧‧二維碼 31‧‧‧碼區域 32‧‧‧資料記錄區域 33a‧‧‧第1位置檢測圖案 33b‧‧‧第2位置檢測圖案 33c‧‧‧隅圖案 33d‧‧‧隅圖案 34‧‧‧外緣 34a‧‧‧第1緣部 34b‧‧‧第2緣部 34c‧‧‧第3緣部 34d‧‧‧第4緣部 35a、35b、35c、35d‧‧‧端部用的圖案 36a、36b、36c、36d‧‧‧端部用的圖案 37‧‧‧斷開圖案 40、40a‧‧‧特定圖案 41‧‧‧第2特定圖案 CP‧‧‧微電腦系電路11‧‧‧Light source 12‧‧‧Imaging lens 13‧‧‧ Received light sensor 13a‧‧‧Receiving surface 14‧‧‧Amplifying circuit 15‧‧‧A/D conversion circuit 16‧‧‧Memory 16A‧‧‧RAM 16B‧‧‧ROM 17‧‧‧ Address generation circuit 18‧‧‧ Synchronous signal generating circuit 20‧‧‧Control Department 20A‧‧‧CPU 21‧‧‧Operation Department 22‧‧‧LCD monitor 23‧‧‧Buzzer 24‧‧‧Vibrator 25‧‧‧Lighting Department 26‧‧‧Communication interface 30, 30a~30e‧‧‧ QR code 31‧‧‧ code area 32‧‧‧Data recording area 33a‧‧‧First position detection pattern 33b‧‧‧Second position detection pattern 33c‧‧‧corner pattern 33d‧‧‧ corner pattern 34‧‧‧Outer edge 34a‧‧‧First edge 34b‧‧‧2nd edge 34c‧‧‧The third edge 34d‧‧‧4th margin 35a, 35b, 35c, 35d 36a, 36b, 36c, 36d 37‧‧‧Disconnect pattern 40、40a‧‧‧Special pattern 41‧‧‧The second specific pattern CP‧‧‧Microcomputer circuit

[圖1]揭示第1實施形態之二維碼的說明圖。 [圖2]概略例示讀取第1實施形態之二維碼的資訊碼讀取裝置的電性構造的區塊圖。 [圖3]例示以資訊碼讀取裝置的控制部進行之讀取處理的流程的流程圖。 [圖4]說明表背面反轉圖1之二維碼的狀態的說明圖。 [圖5]揭示第1實施形態的第1變形例之二維碼的說明圖。 [圖6]揭示第1實施形態的第2變形例之二維碼的說明圖。 [圖7]揭示第2實施形態之二維碼的說明圖。 [圖8]揭示第2實施形態的第1變形例之二維碼的說明圖。 [圖9]揭示第2實施形態的第2變形例之二維碼的說明圖。 [圖10]揭示第3實施形態之二維碼的說明圖。 [圖11]圖11(A)係說明碼尺寸與尺寸特定用格子個數以1對1對應之狀態的說明圖,圖11(B)係碼尺寸與尺寸特定用格子個數以1對多對應之狀態的說明圖。[Fig. 1] An explanatory diagram showing a two-dimensional code according to the first embodiment. [Fig. 2] A block diagram schematically illustrating the electrical structure of an information code reading device that reads a two-dimensional code of the first embodiment. [Fig. 3] A flowchart illustrating the flow of reading processing by the control unit of the information code reading device. [Fig. 4] An explanatory diagram illustrating a state in which the two-dimensional code of Fig. 1 is inverted on the front and back. [Fig. 5] An explanatory diagram showing a two-dimensional code according to a first modification of the first embodiment. [Fig. 6] An explanatory diagram showing a two-dimensional code according to a second modification of the first embodiment. [Fig. 7] An explanatory diagram showing a two-dimensional code in the second embodiment. [Fig. 8] An explanatory diagram showing a two-dimensional code according to a first modification of the second embodiment. [Fig. 9] An explanatory diagram showing a two-dimensional code according to a second modification of the second embodiment. [Fig. 10] An explanatory diagram showing a two-dimensional code according to the third embodiment. [FIG. 11] FIG. 11(A) is an explanatory diagram illustrating a state where the code size and the number of grids for specifying the size correspond to one to one, and FIG. 11(B) is a code of the size and the size of grids for specifying the number of one to one. An explanatory diagram of the corresponding state.

30‧‧‧二維碼 30‧‧‧ QR code

31‧‧‧碼區域 31‧‧‧ code area

32‧‧‧資料記錄區域 32‧‧‧Data recording area

33a‧‧‧第1位置檢測圖案 33a‧‧‧First position detection pattern

33b‧‧‧第2位置檢測圖案 33b‧‧‧Second position detection pattern

33c‧‧‧隅圖案 33c‧‧‧corner pattern

33d‧‧‧隅圖案 33d‧‧‧ corner pattern

34‧‧‧外緣 34‧‧‧Outer edge

34a‧‧‧第1緣部 34a‧‧‧First edge

34b‧‧‧第2緣部 34b‧‧‧2nd edge

34c‧‧‧第3緣部 34c‧‧‧The third edge

34d‧‧‧第4緣部 34d‧‧‧4th margin

35a‧‧‧端部用的圖案 35a‧‧‧End pattern

35b‧‧‧端部用的圖案 35b‧‧‧End pattern

35c‧‧‧端部用的圖案 35c‧‧‧End pattern

35d‧‧‧端部用的圖案 35d‧‧‧End pattern

40‧‧‧特定圖案 40‧‧‧Special pattern

Claims (19)

一種二維碼,係複數種類的格子矩陣狀地排列於矩形狀之碼區域內所成的二維碼,其特徵為:前述碼區域的外緣中,前述複數種類的格子排列成一列所成的第1緣部,係至少於中間部位中,重複排列2個以上不同格子所成的特定圖案所構成;以與前述第1緣部對向之方式前述複數種類的格子排列成一列所成的第2緣部,係至少於中間部位中,重複前述特定圖案所構成。 A two-dimensional code is a two-dimensional code formed by a plurality of kinds of lattices arranged in a rectangular code area in a matrix, and is characterized in that: the outer edges of the code area are formed by the plurality of kinds of lattices arranged in a row The first edge portion is composed of a specific pattern formed by repeatedly arranging two or more different lattices at least in the middle portion; The second edge portion is formed by repeating the aforementioned specific pattern at least in the middle portion. 如申請專利範圍第1項所記載之二維碼,其中,於前述碼區域的隅部之一,配置該碼區域的檢測所利用之第1位置檢測圖案;前述第1緣部,係以到達前述第1位置檢測圖案為止,重複前述特定圖案之方式構成。 The two-dimensional code as described in item 1 of the patent application scope, wherein the first position detection pattern used for detection of the code area is arranged on one of the corners of the code area; the first edge portion is Up to the first position detection pattern, the specific pattern is repeated. 如申請專利範圍第2項所記載之二維碼,其中,於對於前述第1位置檢測圖案成為對角之前述碼區域的隅部,以與前述第1位置檢測圖案不同的排列,配置該碼區域的檢測所利用之第2位置檢測圖案;前述第2緣部,係以到達前述第2位置檢測圖案為止,重複前述特定圖案之方式構成。 The two-dimensional code as described in item 2 of the patent application scope, wherein the code is arranged in a different arrangement from the first position detection pattern in the corner of the code area diagonal to the first position detection pattern The second position detection pattern used for the detection of the area; the second edge portion is configured to repeat the specific pattern until it reaches the second position detection pattern. 如申請專利範圍第1項至第3項中任一項所記載之二維 碼,其中,前述第1緣部,係以起始端及結束端的至少一方,成為與前述特定圖案不同之端部用的圖案之方式構成。 2D as described in any of items 1 to 3 of the scope of patent application The code, wherein the first edge portion is configured such that at least one of the start end and the end end becomes a pattern for an end different from the specific pattern. 如申請專利範圍第1項至第3項中任一項所記載之二維碼,其中,前述第2緣部,係以起始端及結束端的至少一方,成為與前述特定圖案不同之端部用的圖案之方式構成。 The two-dimensional code as described in any one of items 1 to 3 of the patent application range, wherein the second edge is formed by at least one of the start end and the end end, and becomes an end different from the specific pattern The way the pattern is composed. 如申請專利範圍第1項至第3項中任一項所記載之二維碼,其中,於前述碼區域內,在與前述第1緣部及前述第2緣部正交的對向方向中,從前述第1緣部涵蓋到前述第2緣部,配置1個以上之分別格子的排列相同的斷開圖案。 The two-dimensional code as described in any one of items 1 to 3 of the patent application range, in the code area, in the opposing direction orthogonal to the first edge portion and the second edge portion From the first edge portion to the second edge portion, one or more separate grids are arranged in the same disconnection pattern. 如申請專利範圍第6項所記載之二維碼,其中,前述碼區域的外緣中,以與前述第1緣部及前述第2緣部正交之方式相互對向的第3緣部及第4緣部,係以至少構成中間部位之格子的種類,成為與在沿著前述第1緣部及前述第2緣部的方向中對向之位置的前述斷開圖案的格子相同種類之方式構成。 The two-dimensional code as described in Item 6 of the patent application scope, wherein the outer edge of the code area has a third edge portion opposed to each other so as to be orthogonal to the first edge portion and the second edge portion The fourth edge portion is of the same type as the lattice of the broken pattern at a position facing each other in the direction along the first edge portion and the second edge portion in the type of the lattice constituting at least the middle portion constitute. 如申請專利範圍第6項所記載之二維碼,其中,前述碼區域的尺寸,係根據前述斷開圖案連接於前述 第1緣部的位置來決定。 The two-dimensional code as described in item 6 of the patent application scope, wherein the size of the code area is connected to the code according to the disconnection pattern The position of the first edge is determined. 如申請專利範圍第1項至第3項中任一項所記載之二維碼,其中,於前述第1緣部中重複前述特定圖案的部分與於前述第2緣部中重複前述特定圖案的部分中,在與前述第1緣部及前述第2緣部正交的對向方向中對向之位置的格子為相同種類。 The two-dimensional code as described in any one of items 1 to 3 of the patent application scope, wherein the portion where the specific pattern is repeated in the first edge portion and the pattern where the specific pattern is repeated in the second edge portion In some portions, the lattices at positions facing each other in the opposing direction orthogonal to the first edge portion and the second edge portion are of the same type. 如申請專利範圍第9項所記載之二維碼,其中,前述第1緣部及前述第2緣部,係以排列與前述特定圖案不同的第2特定圖案,在前述特定圖案的重複中出現1或兩個以上之方式構成;前述第1緣部的前述第2特定圖案與前述第2緣部的前述第2特定圖案中在前述對向方向中對向之位置的格子為相同種類。 The two-dimensional code as described in item 9 of the patent application scope, wherein the first edge portion and the second edge portion are arranged with a second specific pattern different from the specific pattern, which appears in the repetition of the specific pattern It is constituted by one or more than two modes; the second specific pattern of the first edge portion and the second specific pattern of the second edge portion are the same type of lattices at positions facing in the facing direction. 如申請專利範圍第10項所記載之二維碼,其中,前述第1緣部及前述第2緣部,係分別以前述第2特定圖案出現1個以上之方式構成;在前述對向方向中從前述第1緣部的前述第2特定圖案涵蓋到對向之前述第2緣部的前述第2特定圖案,配置分別格子的排列相同的斷開圖案。 The two-dimensional code as described in item 10 of the patent application scope, wherein the first edge portion and the second edge portion are each formed in such a manner that more than one of the second specific pattern appears; in the opposite direction From the second specific pattern of the first edge portion to the second specific pattern of the second edge portion opposite to each other, the disconnection patterns of the same arrangement of the lattices are arranged. 如申請專利範圍第11項所記載之二維碼,其中,前述第2特定圖案,係排列3個相同種類的格子所構成;前述斷開圖案,係與前述第2特定圖案之中央的格子連接之端部的格子,藉由與構成該第2特定圖案的格子不同種類的格子所構成;包圍前述端部之格子的格子,藉由與構成前述第2特定圖案的格子相同種類的格子所構成。 The two-dimensional code described in item 11 of the patent application scope, wherein the second specific pattern is formed by arranging three lattices of the same type; the disconnected pattern is connected to the center grid of the second specific pattern The grid at the end of the end is formed by a different kind of grid from the grid that constitutes the second specific pattern; the grid that surrounds the grid at the end is formed by the same kind of grid as the grid that constitutes the second specific pattern . 如申請專利範圍第11項所記載之二維碼,其中,前述碼區域的外緣中,以與前述第1緣部及前述第2緣部正交之方式相互對向的第3緣部及第4緣部,係以至少構成中間部位之格子的種類,成為與在沿著前述第1緣部及前述第2緣部的方向中對向之位置的前述斷開圖案的格子相同種類之方式構成。 The two-dimensional code as described in item 11 of the patent application scope, wherein the outer edge of the code area has a third edge portion opposed to each other so as to be orthogonal to the first edge portion and the second edge portion The fourth edge portion is of the same type as the lattice of the broken pattern at a position facing each other in the direction along the first edge portion and the second edge portion in the type of the lattice constituting at least the middle portion constitute. 如申請專利範圍第11項所記載之二維碼,其中,前述碼區域的尺寸,係根據前述斷開圖案連接於前述第1緣部的位置來決定。 The two-dimensional code as described in item 11 of the patent application range, wherein the size of the code area is determined according to the position where the disconnection pattern is connected to the first edge portion. 如申請專利範圍第1項至第3項中任一項所記載之二維碼,其中,前述複數種類的格子,係由亮色格子與暗色格子所成; 前述特定圖案,係由一組的前述亮色格子及前述暗色格子所成。 The two-dimensional code as described in any one of items 1 to 3 of the patent application range, wherein the aforementioned plural types of grids are formed by bright grids and dark grids; The specific pattern is formed by a group of the bright grid and the dark grid. 如申請專利範圍第1項至第3項中任一項所記載之二維碼,其中,前述碼區域為長方形狀;前述第1緣部及前述第2緣部,係構成前述碼區域的長邊。 The two-dimensional code as described in any one of items 1 to 3 of the patent application range, wherein the code area is rectangular; the first edge portion and the second edge portion constitute the length of the code area side. 如申請專利範圍第4項所記載之二維碼,其中,前述第2緣部,係以起始端及結束端的至少一方,成為與前述特定圖案不同之端部用的圖案之方式構成。 The two-dimensional code as described in item 4 of the patent application range, wherein the second edge portion is configured such that at least one of the start end and the end end becomes a pattern for an end different from the specific pattern. 如申請專利範圍第4項所記載之二維碼,其中,於前述碼區域內,在與前述第1緣部及前述第2緣部正交的對向方向中,從前述第1緣部涵蓋到前述第2緣部,配置1個以上之分別格子的排列相同的斷開圖案。 The two-dimensional code as described in item 4 of the patent application scope, wherein, in the code area, in the opposing direction orthogonal to the first edge portion and the second edge portion, it covers from the first edge portion Up to the second edge portion, one or more split patterns with the same grid arrangement are arranged. 如申請專利範圍第5項所記載之二維碼,其中,於前述碼區域內,在與前述第1緣部及前述第2緣部正交的對向方向中,從前述第1緣部涵蓋到前述第2緣部,配置1個以上之分別格子的排列相同的斷開圖案。 The two-dimensional code as described in item 5 of the patent application scope, wherein, in the code area, in the opposing direction orthogonal to the first edge portion and the second edge portion, it covers from the first edge portion Up to the second edge portion, one or more split patterns with the same grid arrangement are arranged.
TW107134180A 2017-10-06 2018-09-27 QR code TWI696955B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2017-195747 2017-10-06
JP2017195747 2017-10-06
JP2018160048A JP7167553B2 (en) 2017-10-06 2018-08-29 Two-dimensional code
JP2018-160048 2018-08-29

Publications (2)

Publication Number Publication Date
TW201923661A TW201923661A (en) 2019-06-16
TWI696955B true TWI696955B (en) 2020-06-21

Family

ID=66441393

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107134180A TWI696955B (en) 2017-10-06 2018-09-27 QR code

Country Status (2)

Country Link
JP (1) JP7167553B2 (en)
TW (1) TWI696955B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420859A (en) 2019-03-18 2021-09-21 创新先进技术有限公司 Two-dimensional code, and method, device and equipment for generating and identifying two-dimensional code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201428636A (en) * 2012-11-13 2014-07-16 Kyodo Printing Co Ltd Two-dimensional code
TW201439919A (en) * 2012-12-19 2014-10-16 Denso Wave Inc Information code, method for generating information code, device for reading information code, and system for using information code
US8924712B2 (en) * 2011-11-14 2014-12-30 Ca, Inc. Using QR codes for authenticating users to ATMs and other secure machines for cardless transactions
TW201727542A (en) * 2016-01-27 2017-08-01 Xi'an Xiaoguangzi Network Technology Co Ltd Optical label based information interaction system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3448120B2 (en) * 1994-12-27 2003-09-16 シャープ株式会社 Digital information record carrier
CN1396538A (en) 2002-08-07 2003-02-12 深圳矽感科技有限公司 Method and system for electronizing character and chart information on ordinary carrier
CN104781834B (en) 2012-11-13 2018-01-19 共同印刷株式会社 The generation system and analysis program of Quick Response Code, Quick Response Code
US9367782B2 (en) 2014-05-29 2016-06-14 Konica Minolta Laboratory U.S.A., Inc. High capacity 2D color barcode and method for decoding the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924712B2 (en) * 2011-11-14 2014-12-30 Ca, Inc. Using QR codes for authenticating users to ATMs and other secure machines for cardless transactions
TW201428636A (en) * 2012-11-13 2014-07-16 Kyodo Printing Co Ltd Two-dimensional code
TW201439919A (en) * 2012-12-19 2014-10-16 Denso Wave Inc Information code, method for generating information code, device for reading information code, and system for using information code
TW201727542A (en) * 2016-01-27 2017-08-01 Xi'an Xiaoguangzi Network Technology Co Ltd Optical label based information interaction system and method

Also Published As

Publication number Publication date
TW201923661A (en) 2019-06-16
JP2019071045A (en) 2019-05-09
JP7167553B2 (en) 2022-11-09

Similar Documents

Publication Publication Date Title
JP2007122243A (en) Optical information verification device
KR20150094734A (en) Information code, information code generation method, information code reader device, and information code usage system
TWI696955B (en) QR code
JP4470860B2 (en) Information code reader
TWI725329B (en) Two-dimensional code and two-dimensional code reading device
CN109657513B (en) Two-dimensional code
JP4325602B2 (en) Optical information reader
JP6246176B2 (en) Three-dimensional information code and three-dimensional information code reading device
JP2010231436A (en) Code symbol reader
JP2010020589A (en) Code symbol reader
JP5113885B2 (en) Scanner and checkout system
JP5888199B2 (en) Bar code reader
JP2004252599A (en) Image reader system, recording medium, image reading device and image processing method for pos terminal
JP2007034388A (en) Optical information reading device
JP5900246B2 (en) Optical information reader
JP2014079314A (en) Game device and game device set
JP4293203B2 (en) Information code reader
JP2014233005A (en) Image display apparatus
JP2008033466A (en) Optical reader
JP2009301320A (en) Code symbol reader
JP2017084262A (en) Code reader
JP5212389B2 (en) Optical information reader
JP6070429B2 (en) Two-dimensional code display method and display medium
JP3675051B2 (en) Bar code reader
JP2012118779A (en) Code analysis system