JP2006134299A - Device and method for identifying marking code - Google Patents

Device and method for identifying marking code Download PDF

Info

Publication number
JP2006134299A
JP2006134299A JP2005277243A JP2005277243A JP2006134299A JP 2006134299 A JP2006134299 A JP 2006134299A JP 2005277243 A JP2005277243 A JP 2005277243A JP 2005277243 A JP2005277243 A JP 2005277243A JP 2006134299 A JP2006134299 A JP 2006134299A
Authority
JP
Japan
Prior art keywords
light
code
primary color
predetermined
measured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005277243A
Other languages
Japanese (ja)
Inventor
Toshio Hashimoto
利夫 橋本
Yuji Hirai
有司 平井
Masayuki Suzuki
正之 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MEIWA E TEC KK
Meiwa eTec Co Ltd
Original Assignee
MEIWA E TEC KK
Meiwa eTec Co Ltd
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 MEIWA E TEC KK, Meiwa eTec Co Ltd filed Critical MEIWA E TEC KK
Priority to JP2005277243A priority Critical patent/JP2006134299A/en
Publication of JP2006134299A publication Critical patent/JP2006134299A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To identify presence of dot holes for surely identifying an imprinting code consisting of the dot holes even when dirt or a trace of a chip, and the like are left on the surface. <P>SOLUTION: Onto a metal plate upper face 2a on which a code is inscribed by the dot holes, each of which is recessed into a predetermined shape, primary lights consisting of red, green, and blue lights are emitted at predetermined angles in three directions by means of lamps 61, 62 and 63, and a picture is taken by a color CCD camera 5. A personal computer 7 detects reflection areas on the metal plate upper face 2a of respective primary lights emitted in the respective directions from an image captured by the camera 5 and determines presence of the dot holes for two-dimensional code when there are the reflection areas by the respective primary lights in the predetermined areas to the respective light radiation directions. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は刻印コードの認識装置および認識方法に関し、特に、金属板等に複数のドット穴を刻印して形成された二次元コード等を好適に認識できる装置および方法に関する。   The present invention relates to an apparatus and a method for recognizing a stamped code, and more particularly to an apparatus and a method capable of preferably recognizing a two-dimensional code formed by stamping a plurality of dot holes on a metal plate or the like.

この種の認識装置として例えば特許文献1に示すものが知られている。本特許文献に示された装置では、金属板等の表面に複数のドット穴をマーキング装置にて刻印することにより二次元コードを構成している。ドット穴はマーキング装置のポンチによって一定の円錐形や角錐形に凹陥形成されており、このようなドット穴の傾斜開き角に対応した角度で光を金属板面に向けて照射する。ドット穴の部分からはCCDセンサに向けて反射する光が生じるから撮影画像はドット穴の部分が白くなり、その他は黒くなった撮影画像が得られ、これより二次元コードを認識するようにしている。
特開2001−160115
As this type of recognition device, for example, the one shown in Patent Document 1 is known. In the apparatus disclosed in this patent document, a two-dimensional code is configured by marking a plurality of dot holes on the surface of a metal plate or the like with a marking apparatus. The dot holes are recessed and formed in a certain conical shape or pyramid shape by the punch of the marking device, and light is irradiated toward the metal plate surface at an angle corresponding to the inclined opening angle of such dot holes. Since the light reflected from the dot hole portion is generated toward the CCD sensor, the shot image is obtained in which the dot hole portion is white and the others are black. From this, the two-dimensional code is recognized. Yes.
JP 2001-160115 A

しかし、上記従来の装置では、金属板の表面に汚れがあったり、切削跡や鋳物肌、メッキ等による表面ムラ等がある場合には、ドット穴の有無を確実に識別することが困難であるという問題があった。   However, in the above-described conventional apparatus, it is difficult to reliably identify the presence or absence of dot holes when there is dirt on the surface of the metal plate, or there are surface irregularities due to cutting marks, casting skin, plating, etc. There was a problem.

そこで、本発明はこのような課題を解決するもので、ドット穴が刻印された表面の汚れや切削跡、あるいは表面ムラ等があった場合にもドット穴の有無を識別して、ドット穴で構成された刻印コードを確実に認識することができる刻印コードの認識装置および認識方法を提供することを目的とする。   Therefore, the present invention solves such a problem, and even when there is dirt or cutting traces on the surface on which the dot holes are engraved or surface unevenness, the presence or absence of the dot holes is identified. It is an object of the present invention to provide an apparatus and a method for recognizing a stamp code that can reliably recognize the formed stamp code.

上記目的を達成するために本発明の認識装置では、予め定められた形状に凹陥させたドット穴(3)によってコードが刻印されている被測定面(2a)に対して、所定の角度で3方向からそれぞれ赤色、緑色、青色の原色光(Lr,Lg,Lb)を照射する照明手段(6)と、被測定面(2a)を撮像するカラー撮像手段(5)と、カラー撮像手段(5)で得られた画像より、各方向から照射された各原色光(Lr,Lg,Lb)の、被測定面(2a)における反射領域を検出して、各光照射方向に対して予め定められた領域(Zr,Zg,Zb)に各原色光(Lr,Lg,Lb)の反射領域がある場合にコードのドット穴(3)が存在すると判定する判定手段(7)とを具備している。この場合、上記判定手段における判定は例えば、上記画像上の各画素(Pi)について、赤色、緑色、青色の各原色光(Lr,Lg,Lb)の照射方向の反対側に位置する所定の画素(Pr、Ps,Pt)における当該原色光の色相強度(Vr,Vg,Vb)を算出し、各原色光(Lr,Lg,Lb)の色相強度(Vr,Vg,Vb)を加算した判定値(Vi)が所定値以上であるときにこれら各原色光(Vr,Vg,Vb)の反射領域が予め定められた領域(Zr,Zg,Zb)にあるとしてコードのドット穴(3)が存在すると判定する。   In order to achieve the above object, in the recognition apparatus of the present invention, 3 at a predetermined angle with respect to the measured surface (2a) on which the code is engraved by the dot hole (3) recessed into a predetermined shape. Illumination means (6) that emits red, green, and blue primary color lights (Lr, Lg, and Lb) from each direction, color imaging means (5) that images the surface to be measured (2a), and color imaging means (5 ), The reflection area of the surface to be measured (2a) of each primary color light (Lr, Lg, Lb) irradiated from each direction is detected and predetermined for each light irradiation direction. And determining means (7) for determining that the dot hole (3) of the code exists when there is a reflection area of each primary color light (Lr, Lg, Lb) in the area (Zr, Zg, Zb). . In this case, the determination by the determination means is, for example, a predetermined pixel located on the opposite side of the irradiation direction of each primary color light (Lr, Lg, Lb) of red, green, and blue for each pixel (Pi) on the image. A determination value obtained by calculating the hue intensity (Vr, Vg, Vb) of the primary color light at (Pr, Ps, Pt) and adding the hue intensity (Vr, Vg, Vb) of each primary color light (Lr, Lg, Lb). When (Vi) is greater than or equal to a predetermined value, there is a dot hole (3) in the code assuming that the reflection area of each primary color light (Vr, Vg, Vb) is in a predetermined area (Zr, Zg, Zb) Judge that.

ドット穴に原色光を3方向から照射すると、照射光はドット穴のそれぞれ一定部分で反射させられ、この結果、撮像手段で得られる画像上で所定の領域に原色光の反射領域が生じる。そこで、所定の領域に原色光の反射領域が生じている場合にのみ、この部分にドット穴が存在すると判定することによって、表面の汚れや切削跡、あるいは表面ムラ等の影響を受けることなく確実にドット穴を識別して刻印コードを認識することができる。   When the primary color light is irradiated to the dot holes from three directions, the irradiated light is reflected by the respective fixed portions of the dot holes, and as a result, a primary color light reflection area is generated in a predetermined area on the image obtained by the imaging means. Therefore, only when there is a primary color light reflection area in a predetermined area, by determining that there is a dot hole in this area, it is possible to ensure that there is no influence of surface dirt, cutting traces, surface unevenness, etc. It is possible to recognize the marking code by identifying the dot hole.

上記照明手段(6)を、各原色光を発する発光手段(61,62,63)と、各発光手段(61,62,63)から発せられた原色光を導光する導光手段(91,92,93)とを備え、各導光手段(91,92,93)の出光端(95)を被測定面(2a)に対して上記所定の角度で上記3方向に位置させる構成とすることができる。このような構成によれば、各発光手段からの出力光が発散することなく被測定面上の必要部に効率的に照射される。   The illuminating means (6) includes a light emitting means (61, 62, 63) that emits each primary color light and a light guide means (91, 91) that guides the primary color light emitted from each light emitting means (61, 62, 63). 92, 93), and the light emitting end (95) of each light guide means (91, 92, 93) is positioned in the above three directions at the predetermined angle with respect to the surface to be measured (2a). Can do. According to such a configuration, output light from each light emitting means is efficiently irradiated to a necessary portion on the surface to be measured without diverging.

本発明の認識方法では、予め定められた形状に凹陥させた複数のドット穴によってコードが刻印されている被測定面に対して、所定の角度で複数方向から光を照射して、各方向から照射された光の、被測定面における反射領域を検出し、各光照射方向に対して予め定められた領域に反射領域が存在する場合にコードのドット穴が存在すると判定する。   In the recognition method of the present invention, light is irradiated from a plurality of directions at a predetermined angle on a surface to be measured, on which a code is engraved by a plurality of dot holes recessed into a predetermined shape. A reflection area on the surface to be measured of the irradiated light is detected, and when there is a reflection area in a predetermined area with respect to each light irradiation direction, it is determined that a dot hole of the code exists.

他の本発明の認識方法では、予め定められた形状に凹陥させたドット穴によってコードが刻印されている被測定面に対して、所定の角度で3方向からそれぞれ赤色、緑色、青色の原色光を照射して、各方向から照射された前記各原色光の、上記被測定面における反射領域を検出して、各光照射方向に対して予め定められた領域に各原色光の反射領域がある場合にコードの前記ドット穴が存在すると判定する。この場合の判定は例えば、上記被測定面の画像上の各画素について、赤色、緑色、青色の各原色光の照射方向の反対側に位置する所定の画素における当該原色光の色相強度を算出し、各原色光の色相強度を加算した判定値が所定値以上であるときにこれら各原色光の反射領域が予め定められた領域にあるとしてコードのドット穴が存在すると判定する。   In another recognition method of the present invention, red, green, and blue primary color lights are respectively emitted from three directions at a predetermined angle with respect to a measurement surface on which a code is engraved by a dot hole recessed into a predetermined shape. , The reflection area of the surface to be measured of each primary color light emitted from each direction is detected, and there is a reflection area of each primary color light in a predetermined area with respect to each light irradiation direction. In this case, it is determined that the dot hole of the code exists. In this case, for example, for each pixel on the image of the surface to be measured, the hue intensity of the primary color light at a predetermined pixel located on the opposite side of the irradiation direction of each primary color light of red, green, and blue is calculated. When the determination value obtained by adding the hue intensities of the respective primary color lights is equal to or greater than a predetermined value, it is determined that the code dot hole is present as the reflection area of each primary color light is in a predetermined area.

照射する光は同一色としても良いが、三原色とした方が撮像手段にカラーカメラを使用した場合の認識処理が容易になるとともに、同時に照射して処理を迅速に行うことができる。   The irradiating light may be the same color, but if the three primary colors are used, the recognition processing when a color camera is used as the imaging means becomes easier, and the processing can be performed quickly by irradiating simultaneously.

なお、上記カッコ内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。   In addition, the code | symbol in the said parenthesis shows the correspondence with the specific means as described in embodiment mentioned later.

以上のように、本発明の刻印コードの認識装置によれば、ドット穴が刻印された表面の汚れや切削跡、あるいは表面ムラ等があった場合にもドット穴の有無を識別して、ドット穴で構成された刻印コードを確実に認識することができる。   As described above, according to the marking code recognizing device of the present invention, even when there are dirt, cutting traces, surface irregularities, or the like on the surface where the dot holes are stamped, It is possible to reliably recognize the marking code composed of holes.

(第1実施形態)
図1には認識装置の全体構成を示す。図1において、基台1上に金属板2が置かれ、被測定面としてのその表面(上面)2aにマーキング装置によって、データマトリクス等の二次元コードを構成するドット穴3が図2に示すように多数刻印されている。各ドット穴3は平面視で同一径の円形で、図3に示すように、上方へ開放する円錐形に成形されている。ここで、ドット穴3の大きさの一例は、開口直径φ=0.5mm、開き角θ=120°である。この場合の深さdは0.14mm程度になる。
(First embodiment)
FIG. 1 shows the overall configuration of the recognition apparatus. In FIG. 1, a metal plate 2 is placed on a base 1, and a dot hole 3 constituting a two-dimensional code such as a data matrix is shown in FIG. 2 on a surface (upper surface) 2a as a surface to be measured by a marking device. As many are imprinted. Each dot hole 3 has a circular shape with the same diameter in plan view, and is formed in a conical shape that opens upward as shown in FIG. Here, an example of the size of the dot hole 3 is an opening diameter φ = 0.5 mm and an opening angle θ = 120 °. In this case, the depth d is about 0.14 mm.

図1において、金属板2の上方には、固定具4に撮像器としてのカラーCCDカメラ5が保持されて、金属板2の上面2aに向けられている。カメラ5の周囲には、照明手段6を構成する、発光ダイオードを使用した赤色、緑色、青色の各ランプ61,62,63が固定具4によって保持されて金属板2に向けてそれぞれ配置されている。各ランプ61,62,63は平面視で同一円周上に互いに120°間隔で設けられている。そして、各ランプ61〜63は、その照射光Lが図3に示すように当該ランプ61〜63が位置する側とは反対側のドット穴斜面3aで直上のカメラ5に向けて反射されるように、金属板2に対する傾斜角が適当に設定されている。したがって、3方向から各ランプ61〜63で金属板2の上面2aを照射すると、ドット穴3の部分では図4に示すように、各ランプ61〜63から照射された赤色、青色、緑色の各光Lr、Lb,Lgが、ランプ61〜63の位置する側と反対側のドット穴斜面3a(図3参照)で上方へ反射される結果、カメラ5の撮影画面上には各ドット穴3毎に、その中心周りに略120°範囲で赤色領域Zr、青色領域Zb、緑色領域Zgが生じる。   In FIG. 1, above the metal plate 2, a color CCD camera 5 as an image pickup device is held by the fixture 4 and is directed to the upper surface 2 a of the metal plate 2. Around the camera 5, red, green, and blue lamps 61, 62, and 63 using light emitting diodes that constitute the illumination unit 6 are held by the fixture 4 and arranged toward the metal plate 2. Yes. The lamps 61, 62, 63 are provided at 120 ° intervals on the same circumference in plan view. Each of the lamps 61 to 63 reflects the irradiation light L toward the camera 5 directly above the dot hole slope 3a opposite to the side where the lamps 61 to 63 are located as shown in FIG. In addition, the inclination angle with respect to the metal plate 2 is set appropriately. Therefore, when the upper surface 2a of the metal plate 2 is irradiated with the lamps 61 to 63 from the three directions, the red, blue, and green colors emitted from the lamps 61 to 63 are emitted from the lamps 61 to 63 as shown in FIG. As a result of the light Lr, Lb, and Lg being reflected upward by the dot hole slope 3a (see FIG. 3) opposite to the side where the lamps 61 to 63 are located, each dot hole 3 is displayed on the photographing screen of the camera 5. In addition, a red region Zr, a blue region Zb, and a green region Zg are generated around the center in a range of approximately 120 °.

カメラ5は金属板上面2aの画像をカラービットマップデータとしてパソコン7(図1)へ出力する。データを受け取ったパソコン7内のCPUは、以下に説明する処理によって金属板上面2aのドット穴3を識別して二次元コードを再現する。   The camera 5 outputs the image of the upper surface 2a of the metal plate to the personal computer 7 (FIG. 1) as color bitmap data. The CPU in the personal computer 7 that has received the data identifies the dot hole 3 on the upper surface 2a of the metal plate and reproduces the two-dimensional code by the process described below.

カラービットマップデータは図5に示すように、金属板上面2aの各点に対応する撮像画面の各画素…,Pi-1,Pi,Pi+1,…の、赤色、青色、緑色の各強度を8ビットデータDr,Db,Dgとして記憶したものである。CPUはステップ100(図9)で下式(1)、(2),(3)によって、各画素…,Pi-1,Pi,Pi+1,…における赤、青、緑の色相強度Vr,Vb,Vgを算出する(図6)。   As shown in FIG. 5, the color bitmap data includes red, blue, and green intensities of each pixel of the imaging screen corresponding to each point on the metal plate upper surface 2 a..., Pi−1, Pi, Pi + 1,. Is stored as 8-bit data Dr, Db, Dg. In step 100 (FIG. 9), the CPU calculates the hue intensities Vr of red, blue, and green in each pixel..., Pi-1, Pi, Pi + 1,. Vb and Vg are calculated (FIG. 6).

Vr={2Dr−(Db+Dg)}/2…(1)
Vb={2Db−(Dr+Dg)}/2…(2)
Vg={2Dg−(Dr+Db)}/2…(3)
Vr = {2Dr- (Db + Dg)} / 2 (1)
Vb = {2Db- (Dr + Dg)} / 2 (2)
Vg = {2Dg- (Dr + Db)} / 2 (3)

続いてCPUは、各画素…,Pi-1,Pi,Pi+1,…について、その座標値を(X,Y)としたときの、座標値がそれぞれ(X,Y+5)、(X−4,Y−2)、(X+4,Y−2)にある各画素Pr、Ps、Pt(図7)について、それぞれVr、Vg、Vbの値を加算して、各画素…,Pi-1,Pi,Pi+1,…の評価値…,Vi-1,Vi,Vi+1,…を得る(図8、図9のステップ200)。ここで、画素Pr、Ps、Ptの各位置は、画素Piの位置をドット穴3の中心としたときにその周りに略120°毎に離れたベクトル位置になり、赤色領域Zr、緑色領域Zg、青色領域Zb(図4)のほぼ中心位置に相当している。なお、画素Pr、Ps、Ptの各位置は赤色領域Zr、緑色領域Zg、青色領域Zb内にあれば必ずしも中心位置である必要はない。   Subsequently, for each pixel..., Pi-1, Pi, Pi + 1,..., The coordinate values are (X, Y + 5), (X-4) when the coordinate values are (X, Y). , Y−2), (X + 4, Y−2), the values of Vr, Vg, and Vb are added to the pixels Pr, Ps, and Pt (FIG. 7), and the pixels. , Pi + 1,..., Vi-1, Vi, Vi + 1,... Are obtained (step 200 in FIGS. 8 and 9). Here, the positions of the pixels Pr, Ps, and Pt are vector positions separated by about 120 ° around the position of the pixel Pi when the position of the pixel Pi is set as the center of the dot hole 3, and the red region Zr and the green region Zg. This corresponds to substantially the center position of the blue region Zb (FIG. 4). Note that the positions of the pixels Pr, Ps, and Pt are not necessarily center positions as long as they are within the red region Zr, the green region Zg, and the blue region Zb.

CPUは、評価値Viの値がノイズに対して十分なマージンを有する所定値以上となった場合に、画素Piについて、その位置がドット穴3の位置に対応するものとして(図9のステップ300)、これら画素Piの位置に角形ドットを貼り付けて二次元コードを再現する(図9のステップ400)。再現された二次元コードは公知のデータマトリクス変換ソフトによって文字コードに変換される。   The CPU assumes that the position of the pixel Pi corresponds to the position of the dot hole 3 when the evaluation value Vi is equal to or greater than a predetermined value having a sufficient margin for noise (step 300 in FIG. 9). ), Square dots are pasted at the positions of these pixels Pi to reproduce the two-dimensional code (step 400 in FIG. 9). The reproduced two-dimensional code is converted into a character code by known data matrix conversion software.

以上に説明した認識装置において、上記評価値Viの値は、金属板2の上面2aに生じる切削跡や、汚れ、鋳物肌、表面ムラ等に対応する各画素位置での評価値の値に対して、ドット穴3の中心に相当する画素Piの位置では十分大きな値となって、ドット穴が確実に識別される。   In the recognition apparatus described above, the value of the evaluation value Vi corresponds to the value of the evaluation value at each pixel position corresponding to cutting traces, dirt, casting skin, surface unevenness, etc. generated on the upper surface 2a of the metal plate 2. Thus, a sufficiently large value is obtained at the position of the pixel Pi corresponding to the center of the dot hole 3, so that the dot hole is reliably identified.

(第2実施形態)
基台1上の金属板2の照明を図10に示すような構造としても良い。すなわち、図9において、固定具4にはハウジング8が支持されて、当該ハウジング8内の底壁上にカラーCCDカメラ5が設置されている。カメラ5のレンズ部51は底壁を貫通して下方に露出し、金属板2の上面に向けられている。ハウジング8内のカメラ5の周囲には平面視で同一円周上に互いに120°間隔で、照明手段6を構成する赤色、緑色、青色の発光ダイオードを使用した各ランプ61,62,63が下方へ向けて設けられている。各ランプ61〜63に対応させて導光手段としての光ファイバー管91,92,93が設けられており、これら光ファイバー管91〜93は金属管中に光ファイバーを埋設したものである。各光ファイバー管91〜93の入光端としての上端はハウジング8の底壁を貫通して各ランプ61〜63に近接対向している。各光ファイバー管91〜93は平面視で同一円周上に互いに120°間隔で離れて下方の金属板2方向へ延び、その下端部は金属板2に近い上方位置で互いに内方へ湾曲して、出光端としての光ファイバー管91〜93の下端95は金属板2に対して所定の角度で傾斜している。光ファイバー管91〜93にはその外周を連ねてリング板94が接合されて、これら光ファイバー管91〜93の相対姿勢が変動しないように保持されている。このような構造によれば、各ランプ61〜63からの出力光は発散することなく金属板2上の必要部に効率的に照射される。なお、各ランプ61〜63および光ファイバー管91〜93は三原色の各光に対して複数も受けても良い。
(Second Embodiment)
The illumination of the metal plate 2 on the base 1 may be structured as shown in FIG. That is, in FIG. 9, a housing 8 is supported on the fixture 4, and a color CCD camera 5 is installed on the bottom wall in the housing 8. The lens portion 51 of the camera 5 is exposed downward through the bottom wall and is directed to the upper surface of the metal plate 2. Around the camera 5 in the housing 8, lamps 61, 62, and 63 using red, green, and blue light-emitting diodes constituting the illumination unit 6 are arranged below at 120 ° intervals on the same circumference in plan view. It is provided for. Optical fiber tubes 91, 92, and 93 are provided as light guide means corresponding to the lamps 61 to 63, and these optical fiber tubes 91 to 93 are obtained by embedding optical fibers in metal tubes. The upper ends of the optical fiber tubes 91 to 93 as light incident ends pass through the bottom wall of the housing 8 and are in close proximity to the lamps 61 to 63. The optical fiber tubes 91 to 93 are spaced apart from each other at 120 ° intervals on the same circumference in plan view and extend in the direction of the lower metal plate 2, and their lower ends are curved inward from each other at an upper position near the metal plate 2. The lower ends 95 of the optical fiber tubes 91 to 93 as the light exit ends are inclined at a predetermined angle with respect to the metal plate 2. A ring plate 94 is joined to the optical fiber tubes 91 to 93 so as to be connected to the outer periphery thereof, so that the relative postures of the optical fiber tubes 91 to 93 are held so as not to fluctuate. According to such a structure, the output light from each lamp 61-63 is efficiently irradiated to the required part on the metal plate 2 without diverging. Each of the lamps 61 to 63 and the optical fiber tubes 91 to 93 may receive a plurality of lights for the three primary colors.

上記各実施形態においては、カラーカメラにおいて三原色のカラービットデータが得られるとともに、同時照明による迅速かつ容易な処理が可能であることから、照明ランプを赤色、緑色、青色の三原色としたが、同一色としてもよく、また、複数方向から照射すれば、必ずしも120°間隔で3方向から照射する必要はない。またコードは二次元コードに限られず、一次元コードであっても良い。   In each of the above embodiments, the color camera can obtain color bit data of the three primary colors and can perform quick and easy processing by simultaneous illumination. Therefore, the illumination lamp is set to the three primary colors of red, green, and blue. The color may be used, and if irradiation is performed from a plurality of directions, it is not always necessary to perform irradiation from three directions at 120 ° intervals. The code is not limited to a two-dimensional code, and may be a one-dimensional code.

本発明の第1実施形態における認識装置の全体構成図である。It is a whole block diagram of the recognition apparatus in 1st Embodiment of this invention. 刻印されたドット穴で構成された二次元コードの平面図である。It is a top view of the two-dimensional code comprised by the dot hole marked. ドット穴の断面図である。It is sectional drawing of a dot hole. ドット穴における照射光の反射領域を示す図である。It is a figure which shows the reflective area | region of the irradiation light in a dot hole. 各画素のカラービットマップデータの記憶状態を示す概念図である。It is a conceptual diagram which shows the storage state of the color bitmap data of each pixel. 各画素の色相強度データの記憶状態を示す概念図である。It is a conceptual diagram which shows the memory | storage state of the hue intensity data of each pixel. 評価値を算出する場合の画素の相対位置関係を示す図である。It is a figure which shows the relative positional relationship of the pixel in the case of calculating an evaluation value. 各画素の評価値の記憶状態を示す図である。It is a figure which shows the memory | storage state of the evaluation value of each pixel. CPUにおける処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in CPU. 本発明の第2実施形態における認識装置の照明構造を示す部分断面側面図である。It is a fragmentary sectional side view which shows the illumination structure of the recognition apparatus in 2nd Embodiment of this invention.

符号の説明Explanation of symbols

2…金属板、2a…上面、3…ドット穴、5…カラーCCDカメラ、6…照明手段、61,62,63…ランプ、7…パソコン、91,92,93…光ファイバー管、95…出光端、Lr…赤色光、Lg…緑色光、Lb…青色光、Zr…赤色領域、Zg…緑色領域、Zb…青色領域。 2 ... Metal plate, 2a ... Upper surface, 3 ... Dot hole, 5 ... Color CCD camera, 6 ... Illumination means, 61, 62, 63 ... Lamp, 7 ... Personal computer, 91, 92, 93 ... Optical fiber tube, 95 ... Light exit end , Lr ... red light, Lg ... green light, Lb ... blue light, Zr ... red region, Zg ... green region, Zb ... blue region.

Claims (5)

予め定められた形状に凹陥させたドット穴によってコードが刻印されている被測定面に対して、所定の角度で3方向からそれぞれ赤色、緑色、青色の原色光を照射する照明手段と、前記被測定面を撮像するカラー撮像手段と、カラー撮像手段で得られた画像より、各方向から照射された前記各原色光の、前記被測定面における反射領域を検出して、各光照射方向に対して予め定められた領域に各原色光の反射領域がある場合にコードの前記ドット穴が存在すると判定する判定手段とを具備する刻印コードの識別装置。 Illuminating means for irradiating red, green, and blue primary color lights from three directions at predetermined angles to a surface to be measured on which a code is engraved by a dot hole recessed into a predetermined shape; From the color imaging means for imaging the measurement surface and the image obtained by the color imaging means, the reflection area on the measurement surface of each primary color light emitted from each direction is detected, and for each light irradiation direction And a determining means for determining that the dot hole of the code exists when there is a reflection area of each primary color light in a predetermined area. 前記判定手段は、前記画像上の各画素について、赤色、緑色、青色の前記各原色光の照射方向の反対側に位置する所定の画素における当該原色光の色相強度を算出し、前記各原色光の色相強度を加算した判定値が所定値以上であるときにこれら各原色光の反射領域があるとしてコードの前記ドット穴が存在すると判定するように設定されている請求項1に記載の刻印コードの認識装置。 For each pixel on the image, the determination unit calculates a hue intensity of the primary color light in a predetermined pixel located on the opposite side of the irradiation direction of the primary color light of red, green, and blue, and the primary color light The marking code according to claim 1, wherein when the determination value obtained by adding the hue intensities of the codes is equal to or greater than a predetermined value, it is determined that the dot hole of the code exists as if there is a reflection region of each primary color light. Recognition device. 前記照明手段は、各原色光を発する発光手段と、各発光手段から発せられた原色光を導光する導光手段とを備え、各導光手段の出光端を前記被測定面に対して前記所定の角度で前記3方向に位置させた請求項1又は2に記載の刻印コードの認識装置。 The illuminating unit includes a light emitting unit that emits each primary color light, and a light guide unit that guides the primary color light emitted from each light emitting unit, and a light output end of each light guide unit is disposed on the surface to be measured. 3. The stamp code recognition device according to claim 1, wherein the stamp code recognition device is positioned in the three directions at a predetermined angle. 予め定められた形状に凹陥させた複数のドット穴によってコードが刻印されている被測定面に対して、所定の角度で複数方向から光を照射して、各方向から照射された前記光の、前記被測定面における反射領域を検出し、各光照射方向に対して予め定められた領域に前記反射領域が存在する場合にコードの前記ドット穴が存在すると判定することを特徴とする刻印コードの認識方法。 To the surface to be measured in which a code is engraved by a plurality of dot holes recessed into a predetermined shape, irradiate light from a plurality of directions at a predetermined angle, and the light irradiated from each direction, A marking area of a marking code, wherein a reflection area on the surface to be measured is detected, and it is determined that the dot hole of the code exists when the reflection area exists in a predetermined area with respect to each light irradiation direction. Recognition method. 予め定められた形状に凹陥させたドット穴によってコードが刻印されている被測定面に対して、所定の角度で3方向からそれぞれ赤色、緑色、青色の原色光を照射して、各方向から照射された前記各原色光の、前記被測定面における反射領域を検出して、各光照射方向に対して予め定められた領域に各原色光の反射領域がある場合にコードの前記ドット穴が存在すると判定することを特徴とする刻印コードの認識方法。 Irradiation from each direction is performed by irradiating the surface to be measured, which is engraved with a dot hole recessed into a predetermined shape, with primary light in red, green, and blue from three directions at a predetermined angle, respectively. If the reflected area of the measured surface of each primary color light on the surface to be measured is detected and there is a reflective area for each primary color light in a predetermined area with respect to each light irradiation direction, the dot hole of the code exists Then, a method for recognizing a stamp code, characterized in that it is determined.
JP2005277243A 2004-10-05 2005-09-26 Device and method for identifying marking code Pending JP2006134299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005277243A JP2006134299A (en) 2004-10-05 2005-09-26 Device and method for identifying marking code

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004292169 2004-10-05
JP2005277243A JP2006134299A (en) 2004-10-05 2005-09-26 Device and method for identifying marking code

Publications (1)

Publication Number Publication Date
JP2006134299A true JP2006134299A (en) 2006-05-25

Family

ID=36727751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005277243A Pending JP2006134299A (en) 2004-10-05 2005-09-26 Device and method for identifying marking code

Country Status (1)

Country Link
JP (1) JP2006134299A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007286793A (en) * 2006-04-14 2007-11-01 Denso Wave Inc Information code reader
JP2009540473A (en) * 2006-06-14 2009-11-19 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Location using error correction
US10489696B2 (en) 2015-06-30 2019-11-26 Hitachi Automotive Systems, Ltd. Article and code engraving method
US10489697B2 (en) 2015-06-30 2019-11-26 Hitachi Automotive Systems, Ltd. Article and engraving method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007286793A (en) * 2006-04-14 2007-11-01 Denso Wave Inc Information code reader
JP2009540473A (en) * 2006-06-14 2009-11-19 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Location using error correction
US10489696B2 (en) 2015-06-30 2019-11-26 Hitachi Automotive Systems, Ltd. Article and code engraving method
US10489697B2 (en) 2015-06-30 2019-11-26 Hitachi Automotive Systems, Ltd. Article and engraving method

Similar Documents

Publication Publication Date Title
JP5808502B2 (en) Image generation device
US4700078A (en) Method and apparatus for detecting tire information mark
JP2006047290A (en) Image generation method for board inspection, board inspecting device and illumination device for board inspection
JP2005274558A (en) Surface condition inspecting method, surface condition inspecting apparatus employing it, and substrate inspecting apparatus
US20060244955A1 (en) System and method for inspecting wafers in a laser marking system
JP6894977B2 (en) Drug test support device, drug test support method, drug identification device, drug identification method and program, recording medium
JP5048204B2 (en) Method for identifying measurement points in an optical measurement system
US11199504B2 (en) Shape inspection apparatus and shape inspection method
JP2007057421A (en) Ring lighting system
JP2006134299A (en) Device and method for identifying marking code
US9544486B2 (en) Generation of an image of a seal impression
JP2006073767A (en) Led lighting device and lighting control unit
JP3799858B2 (en) Shape recognition device
JP2018502308A (en) Line image scanner and scanning method
JP2009031228A (en) Method for inspecting curved surface state and apparatus for inspecting appearance of substrate
JP2008518230A (en) Container inspection by focusing the light emitting die element directly on the container
JP2007170838A (en) Visual inspection apparatus
JP3090594B2 (en) Coin discrimination device using image recognition device
JP2007286793A (en) Information code reader
JP2004334288A (en) Engraved letter recognition device and method
JP2016109530A (en) Optical device and vehicle in which optical device is mounted
JP2006322951A (en) Method and device for surface condition inspection, and device for inspecting substrate
JP2008305058A (en) Code reading device and method
JP6620322B2 (en) Lighting device
JP3402994B2 (en) Solder paste quality judgment method