JP2001167225A - Bar code recognizing device using ccd camera - Google Patents

Bar code recognizing device using ccd camera

Info

Publication number
JP2001167225A
JP2001167225A JP34714699A JP34714699A JP2001167225A JP 2001167225 A JP2001167225 A JP 2001167225A JP 34714699 A JP34714699 A JP 34714699A JP 34714699 A JP34714699 A JP 34714699A JP 2001167225 A JP2001167225 A JP 2001167225A
Authority
JP
Japan
Prior art keywords
bar code
ccd camera
barcode
code
width
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
JP34714699A
Other languages
Japanese (ja)
Inventor
Hirobumi Matsuo
博文 松尾
Fujio Kurokawa
不二雄 黒川
Yasuhiro Okada
安弘 岡田
Hisatsugu Shirahama
久嗣 白濱
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.)
Choryo Software Co Ltd
Original Assignee
Choryo Software 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 Choryo Software Co Ltd filed Critical Choryo Software Co Ltd
Priority to JP34714699A priority Critical patent/JP2001167225A/en
Publication of JP2001167225A publication Critical patent/JP2001167225A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To surely identify a bar code even when the code is inclined in the case of reading the bar code stuck on a product. SOLUTION: A belt conveyer 1 is moved at a moving speed υ and a product 6 is loaded on the belt conveyer 1 and moved. A bar code 3 is stuck on the product 6, the bar code 3 is read by a CCD camera 2, image processing is performed and the cods is identified. The CCD camera 2 is composed of two bodies for position detection and read, specifies the position of the bar code 3 with the body for read and identifies the bar code with image processing due to the body for read. In image processing, segmentation is first performed on the basis of the width of the code, projection is performed on the basis of five pixels of the width and next, it is identified whether the code is wide or narrow on the basis of the area of a luminance value. Therefore, even when a distance is longer than 2 m and the bar code is inclined, identification is enabled and identification in all directions is enabled.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、工場においてベル
トコンベア上を移動する形状の異なった製品に貼られ
た、製品の種類を示すバーコードラベルを、CCDカメ
ラを用いて読み取り、識別するバーコード認識装置に関
し、特にカメラで読み取るバーコードが傾斜している場
合でも高精度で認識を可能とするバーコード認識の為の
アルゴリズムを備えたものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code label attached to a product having a different shape which moves on a belt conveyor in a factory and which indicates the type of the product using a CCD camera. The recognition device is provided with an algorithm for barcode recognition that enables highly accurate recognition even when a barcode read by a camera is inclined.

【0002】[0002]

【従来の技術】従来、ベルトコンベア上を移動する形状
の異なった製品に貼られたバーコードラベルを読み取る
には、例えば、レザー光を用いたバーコード読み取り装
置を使用している。その際、読み取り精度を上げる為、
バーコードを貼る位置、バーコードの方向、ベルトコン
ベアへの載せ方等に工夫を行っている。また、バーコー
ドラベルが貼られた製品の形状(大きさ)が変わる度
に、製品と読み取り装置との距離を一定に保つため、読
み取り装置自身を上下に移動させている。
2. Description of the Related Art Conventionally, to read a bar code label attached to a product having a different shape moving on a belt conveyor, for example, a bar code reading device using laser light is used. At that time, to increase the reading accuracy,
The bar code sticking position, the direction of the bar code, how to put it on the belt conveyor, etc. are devised. Further, every time the shape (size) of the product to which the barcode label is attached changes, the reading device itself is moved up and down in order to keep the distance between the product and the reading device constant.

【0003】又、バーコード読み取りにCCDカメラを
用いる場合、バーコードがコンベア移動方向に対して傾
いていると、CCDカメラにて撮影したバーコードの画
像を元に、バーコードの傾きに対して、傾きに関係なく
直接その方向に切り出し投影を行ってきた。このため、
バーコードラベルの方向が不特定の場合には、著しく識
別の精度が低下していた。
When a CCD camera is used for reading a bar code, if the bar code is inclined with respect to the moving direction of the conveyor, the bar code is tilted with respect to the bar code image based on the image of the bar code taken by the CCD camera. , And cut out and projected directly in that direction regardless of the tilt. For this reason,
When the direction of the barcode label is unspecified, the accuracy of identification is significantly reduced.

【0004】[0004]

【発明が解決しようとする課題】通常、バーコードを読
み取る場合、読み取り装置に対するバーコードの方向
は、不定であるが、読み取り装置は、正確にバーコード
を読み取る必要がある。従来のCCDカメラを用いたバ
ーコード認識の為のアルゴリズムでは、CCDカメラの
画素に対し、バーコードが水平に撮影されていない場
合、つまり傾きを持つ場合は、バーコードの傾きに対し
て、直接その水平方向にバーコードを切り出し、輝度値
の投影を行なっていた為、バーコードが水平に撮影され
た場合に比べて輝度値を投影する為の情報が必然的に減
少し、バーコードの認識精度が低下し、CCDカメラと
バーコードの距離が広がるほどその精度は低下してい
く。
Normally, when reading a barcode, the direction of the barcode with respect to the reader is undefined, but the reader must read the barcode accurately. In a conventional algorithm for barcode recognition using a CCD camera, when the barcode is not captured horizontally with respect to the pixels of the CCD camera, that is, when the barcode has a tilt, the barcode is directly tilted with respect to the barcode tilt. Since the bar code was cut out in the horizontal direction and the luminance value was projected, the information for projecting the luminance value inevitably decreased compared to when the bar code was taken horizontally, and the bar code was recognized. The accuracy decreases and the accuracy decreases as the distance between the CCD camera and the barcode increases.

【0005】そこで、本発明は、上記の課題を解決する
ためになされたもので、バーコードラベルがCCDカメ
ラに対して水平でない場合でも、高精度の認識を可能と
し、かつCCDカメラとバーコードとの距離を離した場
合においても、全方向に対して識別可能にすることを目
的とする。
Accordingly, the present invention has been made to solve the above-mentioned problem, and enables high-precision recognition even when a barcode label is not horizontal with respect to a CCD camera. It is intended to be able to identify in all directions even when the distance is large.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明はCCDカメラを用いて、バーコードラベル
全体が被写体となるように撮像し、撮像した画素を切り
出して、切り出し部を少なくとも5画素の幅で投影し、
又、バーコードラベルが不特定に傾斜している場合に
は、各画素を階段状に切り出し、画素処理することによ
り、高精度なバーコードの読み取り、識別を可能とした
CCDカメラを用いたバーコード認識装置を提供する。
In order to achieve the above object, the present invention uses a CCD camera to image a bar code label so that the entire bar code label becomes an object, cuts out the imaged pixels, and forms at least a cut-out portion. Project at a width of 5 pixels,
If the barcode label is tilted indefinitely, each pixel is cut out in a stepwise manner and processed by a pixel, so that a barcode using a CCD camera capable of reading and identifying barcodes with high accuracy can be obtained. A code recognition device is provided.

【0007】即ち、本発明は、(1)ベルトコンベア上
を移動する製品に貼られたバーコードラベルを離れた位
置から非接触で読み取るCCDカメラと、同CCDカメ
ラで撮影したバーコードの画像を取込みコード列を所定
の幅で切り出し、同切り出し部分を所定の幅だけ投影
し、同投影部分の輝度値を求め、同輝度値を所定のしき
い値と比較して二値化処理を行い、各コード列のバーと
スペースを識別してバーコードを認識するアルゴリズム
を有する画像処理部とを備えたバーコード認識装置にお
いて、前記アルゴリズムにおけるコード列の所定幅の投
影は、前記画像処理部で処理する画素の少なくとも5画
素の幅で投影して入力画像とすることを特徴とする。
That is, the present invention provides (1) a CCD camera for reading a bar code label attached to a product moving on a belt conveyor from a remote position in a non-contact manner, and a bar code image taken by the CCD camera. Cut out the capture code string with a predetermined width, project the cut-out portion by a predetermined width, obtain the luminance value of the projected portion, perform the binarization process by comparing the same luminance value with a predetermined threshold value, In a barcode recognition device comprising an image processing unit having an algorithm for recognizing a barcode by identifying a bar and a space in each code sequence, projection of a predetermined width of the code sequence in the algorithm is processed by the image processing unit. It is characterized in that an input image is projected by projecting with a width of at least 5 pixels.

【0008】本発明の(2)は、前記アルゴリズムのコ
ード列の切り出しは、前記CCDカメラで撮影したバー
コードラベルの方向が前記コンベアの流れ方向に対し不
特定に傾いている場合には、前記コンベア流れ方向及び
これに直行する方向の両直交座標系で定まる画素上で前
記傾斜方向と平行に各画素の輝度値を階段状に切り出す
ことを特徴とする。
According to a second aspect of the present invention, the code string of the algorithm is cut out when the direction of the bar code label photographed by the CCD camera is indefinitely inclined with respect to the flow direction of the conveyor. The method is characterized in that the luminance value of each pixel is cut out in a stepwise manner in parallel with the inclination direction on a pixel defined by both orthogonal coordinate systems in a conveyor flow direction and a direction perpendicular to the conveyor flow direction.

【0009】本発明は、上記(1),(2)の構成によ
り、製品に貼られたバーコードラベルをどの方向で貼ら
れているかを考慮することなく、CCDカメラでこれを
読み取り、画像処理部で画像を切り出し、少なくとも5
画素の幅で切り出し画像を投影し、処理するので、少な
い演算時間でバーコードを正確に識別し、CCDカメラ
とバーコードの距離が2m離れた場合でも、バーコード
の認識が良好に行え、このためにベルトコンベア上を高
速で製品を移送することができ、製造ラインの生産能力
を向上させる効果がある。
According to the present invention, according to the above-mentioned constitutions (1) and (2), a bar code label attached to a product is read by a CCD camera and image processing is performed without considering the direction in which the label is attached. Cut out the image in the section, at least 5
Since the cutout image is projected and processed with the width of the pixel, the barcode can be accurately identified in a short calculation time, and the barcode can be recognized well even when the distance between the CCD camera and the barcode is 2 m. Therefore, the product can be transferred at a high speed on the belt conveyor, and there is an effect of improving the production capacity of the production line.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面に基づいて具体的に説明する。
Embodiments of the present invention will be specifically described below with reference to the drawings.

【0011】本発明は、工場等においてベルトコンベア
上を高速で移動する形状、大きさの異なる製品に貼られ
たバーコードを非接触で読み取り識別することが目的で
ある。高速で移動するものをCCDカメラで読み取るた
め、比較的離れた所から、形状が小さい品質が低下した
画像としてのバーコードを読み取る必要がある。そのた
め、レーザスキャナでバーコードを識別する場合のよう
にラインで読み取るのではなく、ある程度幅を持たせて
切り出したバーコードを投影し、積分効果を持たせるこ
とにより識別を容易にしている。
An object of the present invention is to contactlessly read and identify barcodes affixed to products of different shapes and sizes that move at high speed on a belt conveyor in a factory or the like. Since a moving object at a high speed is read by a CCD camera, it is necessary to read a barcode as an image having a small shape and reduced quality from a relatively distant place. Therefore, instead of reading the barcode with a line as in the case of identifying a barcode with a laser scanner, the barcode cut out with a certain width is projected and an integration effect is provided to facilitate identification.

【0012】しかし、上記の識別方法においては、バー
コードがCCDカメラの画素並びに対して水平あるいは
垂直な場合は問題ないが、斜めになった場合は識別の精
度が著しく落ちることが知られている。本発明は、この
問題を解決したものであり、以下、図面を参照しながら
本発明の一実施形態を説明する。
However, in the above-described identification method, there is no problem when the barcode is horizontal or vertical to the pixel arrangement of the CCD camera, but it is known that the accuracy of identification is significantly reduced when the barcode is oblique. . The present invention has solved this problem, and an embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は、本発明の実施の一形態に係るバー
コード認識装置における目標としたバーコードの撮影環
境を示した図であり、ベルトコンベア1上には製品6が
載せられ、製品6にはバーコード3が貼られている。製
品6のバーコード3は上方のCCDカメラ2により読み
取られる構成である。このような構成で、ベルトコンベ
ア1の移動速度υを15〜20m/分の高速に設定し、
そのためバーコード1とカメラ2の距離Lは2m必要と
なっている。
FIG. 1 is a view showing a target barcode photographing environment in a barcode recognition device according to an embodiment of the present invention. A product 6 is placed on a belt conveyor 1 and a product 6 is placed on the belt conveyor 1. Has a bar code 3 attached thereto. The bar code 3 of the product 6 is configured to be read by the upper CCD camera 2. With such a configuration, the moving speed の of the belt conveyor 1 is set to a high speed of 15 to 20 m / min,
Therefore, the distance L between the barcode 1 and the camera 2 needs to be 2 m.

【0014】図2は本発明の実施の一形態に係るバーコ
ードを自動的に識別するシステムで、CCDカメラを用
いたバーコード認識装置の構成図である。図において、
まず、ベルトコンベア上を移動する対象物の表面全体を
NO.1CCDカメラ2−1で撮像する。次に上記撮像
で得られた画像に対し画像処理部4とホストコンピュー
タ5とで画像処理を行い、バーコードラベルの位置を検
出する。画像処理部4は主に二値化等の画像処理及び認
識を行い、ホストコンピュータ5はシステム全体のタイ
ミングの制御、モニタ、デバック等を行う。
FIG. 2 is a block diagram of a system for automatically identifying a barcode according to an embodiment of the present invention, which is a barcode recognition apparatus using a CCD camera. In the figure,
First, the entire surface of the object moving on the belt conveyor is set to NO. One CCD camera 2-1 captures an image. Next, the image processing unit 4 and the host computer 5 perform image processing on the image obtained by the above imaging, and detect the position of the barcode label. The image processing unit 4 mainly performs image processing such as binarization and recognition, and the host computer 5 controls the timing of the entire system, monitors, debugs, and the like.

【0015】この結果をホストコンピュータ5によりN
O.2のCCDカメラ2−2に送信し、NO.2CCD
カメラ2−2では撮影対象をバーコードに絞り、このバ
ーコードの部分を入力画像として画像処理部4へ取り込
む。NO.2のCCDカメラ2−2により得られた画像
は、画像処理部4とホストコンピュータ5により以下に
説明するように画像分割の処理を行うことにより、バー
コードの形状を抽出し、識別が行われる。
The result is transmitted to the host computer 5 by N
O. No. 2 to the CCD camera 2-2. 2 CCD
The camera 2-2 narrows down the object to be photographed to a barcode, and captures the barcode portion into the image processing unit 4 as an input image. NO. The image obtained by the second CCD camera 2-2 is subjected to image division processing by the image processing unit 4 and the host computer 5 as described below, thereby extracting the barcode shape and performing identification. .

【0016】まず、NO.2CCDカメラ2−2で撮像
したバーコードの画像に基づいてバーコードを切り出し
て抽出し、これを所定の幅で投影し、認識処理するアル
ゴリズムについて説明する。
First, the NO. An algorithm for extracting and extracting a barcode based on the barcode image captured by the 2CCD camera 2-2, projecting the barcode with a predetermined width, and performing a recognition process will be described.

【0017】図3はバーコードを示し、(a)はバーコ
ード全体の平面図、(b)はバーの拡大図である。今回
認識の対象としては、産業分野で最も多く使用されてい
るCode−39を用いる。図に示すようにバーコード
3は、黒い部分のバーと白い部分のスペースのエレメン
トで構成されている。これらバーとスペースには幅の狭
いものと広いものがあり、それぞれを細エレメントおよ
び太エレメントと呼ぶ。通常、細エレメントと太エレメ
ントの幅の比率は、1:2〜1:3である。
FIGS. 3A and 3B show a bar code. FIG. 3A is a plan view of the entire bar code, and FIG. 3B is an enlarged view of the bar. The object of recognition this time is Code-39, which is most frequently used in the industrial field. As shown in the figure, the barcode 3 is composed of black bars and white space elements. These bars and spaces are narrow and wide, and are referred to as thin and thick elements, respectively. Usually, the ratio of the width of the thin element to the width of the thick element is 1: 2 to 1: 3.

【0018】図3(b)において、バーコード3は、こ
のバー,スペース,細エレメント,太エレメントの組合
せによる細バー(NB),太バー(WB),細スペース
(NS),太スペース(WS)によって構成されてい
る。Code−39では5本のバー、4本のスペースで
1キャラクタを表示し、その内(WB)と(WS)は合
計で3本である。バーコードの認識においては、この細
エレメントと太エレメントを的確に判定することが重要
である。
In FIG. 3B, a bar code 3 is composed of a combination of a bar, a space, a thin element, and a thick element. The narrow bar (NB), the thick bar (WB), the thin space (NS), and the thick space (WS) ). In Code-39, one character is displayed with five bars and four spaces, of which (WB) and (WS) are three in total. In recognition of a barcode, it is important to accurately determine the thin element and the thick element.

【0019】次に、図1のCCDカメラ2から入力され
たバーコードの画像を画像処理部4で投影法および二値
化を用いて処理する場合の手順について述べる。
Next, a procedure for processing an image of a bar code input from the CCD camera 2 of FIG. 1 using the projection method and binarization in the image processing section 4 will be described.

【0020】図4の画像は、カメラ2より入力したバー
コードである。この図に対して線で囲った部分の切り出
し部(A)を切り出す。
FIG. 4 shows a bar code input from the camera 2. With respect to this figure, a cutout portion (A) of a portion surrounded by a line is cut out.

【0021】図5は図4で切り出した切り出し部(A)
の詳細を示す図である。図において、(a)では、図4
において切り出した図に対して、図に示すように白ぬき
矢印の方向に投影を行うことを示している。2本の太線
で示した投影を行う幅Wpは、広すぎるとバーコードの
傾き具合によっては検出領域の外にはみ出す恐れがあ
り、狭すぎると雑音に対して弱くなる。この幅Wpは、
ある程度広い方が良いが、次に説明するように5画素程
度が好ましい。
FIG. 5 is a cutout portion (A) cut out in FIG.
It is a figure which shows the detail of. In the figure, FIG.
Indicates that projection is performed in the direction of the white arrow as shown in the figure. If the projection width Wp indicated by the two thick lines is too wide, there is a possibility that the width Wp may protrude outside the detection area depending on the inclination of the barcode. If the width Wp is too narrow, the projection is weak against noise. This width Wp is
Although it is better to have a certain width, it is preferable to use about 5 pixels as described below.

【0022】図5(a)の区間λを模式的に示したのが
図5(b)であり、ここでは投影の幅Wpは5画素に設
定している。本発明では最小5画素程度でも充分にバー
コードを識別できるものである。また、丸印は画素を表
し、輝度値が高い場合を白色、低い場合を黒色で表して
いる。図5(b)の輝度値を縦方向の画素の列毎に足し
合わせた投影結果が図5(c)である。映像信号は8ビ
ットなので0〜225の整数により輝度値が表示され、
投影の輝度値が最も大きくなるのは、各画素の輝度値が
全て255の時で、Wpを5画素とすると1,275と
なる。
FIG. 5B schematically shows the section λ in FIG. 5A, in which the projection width Wp is set to 5 pixels. In the present invention, a barcode can be sufficiently identified even with a minimum of about 5 pixels. Also, circles represent pixels, where a high luminance value is represented by white, and a low luminance value is represented by black. FIG. 5C shows a projection result obtained by adding the luminance values of FIG. 5B for each column of pixels in the vertical direction. Since the video signal is 8 bits, the luminance value is displayed by an integer of 0 to 225,
The luminance value of the projection becomes the largest when the luminance value of each pixel is 255, and when Wp is 5 pixels, it becomes 1,275.

【0023】次に、図5(c)のようにこの投影図に対
して、しきい値を設けて二値化を行った結果が図5
(d)である。図5(d)より、バーおよびスペースの
幅が1〜2画素を細エレメント、即ち、細スペース(N
S),細バー(NB)とし、3〜4画素を太エレメン
ト、即ち、太スペース(WS),太バー(WB)とし、
これらを基に判定する。
Next, as shown in FIG. 5C, a threshold value is set on this projection view and the result of binarization is shown in FIG.
(D). From FIG. 5D, the width of the bar and the space is set to 1 to 2 pixels by the thin element, that is, the thin space (N
S), a thin bar (NB), and 3 to 4 pixels as a thick element, that is, a thick space (WS) and a thick bar (WB),
Judge based on these.

【0024】次に、バーコードを平面上で回転させた場
合の切り出しおよび投影の方法について説明する。図6
はバーコードの傾きがCCDカメラの画面の水平軸に対
し45°の場合の投影図であり、(a)は本発明、
(b)は従来の投影法をそれぞれ示す。ここでは、画像
の輝度値を階段状に切り出す新しい方式を提案する。
Next, a method of cutting out and projecting when the barcode is rotated on a plane will be described. FIG.
FIG. 4A is a projection view when the inclination of the barcode is 45 ° with respect to the horizontal axis of the screen of the CCD camera, and FIG.
(B) shows a conventional projection method. Here, a new method of cutting out the luminance value of an image in a stepwise manner is proposed.

【0025】図6(a)に示すように、図ではバーコー
ドが水平軸に対して45°で左上りに傾斜しており、各
画素は図中二点鎖線で示すように、λの幅で斜めに切り
出しを行い、図5(c)に相当する輝度値は、図示のよ
うに斜めの階段状の各画素をそれぞれ足し合わせたもの
である。図示の例では、幅λの左端から順に二点鎖線で
示すように、右側に向かって7列の階段状の画素5個を
それぞれ足し合わせて輝度値が求められている。
As shown in FIG. 6A, the bar code is inclined upward to the left at 45 ° with respect to the horizontal axis, and each pixel has a width of λ as shown by a two-dot chain line in the figure. 5c, and the luminance value corresponding to FIG. 5C is obtained by adding each pixel in a diagonal step shape as shown in the figure. In the example shown in the figure, the luminance value is obtained by adding five stepwise pixels in seven columns toward the right side as shown by the two-dot chain line in order from the left end of the width λ.

【0026】図6(a)に示すようにこの方式では、画
像の輝度値を階段状に切り出すため、同じ切り出し部の
長さλに対して、多くの投影における情報量が得られ
る。これに対して、図6(b)の従来の切り出し方式で
は、バーコードの傾きに対して、直接その方向に(図で
は垂直方向に)バーコードを切り出し投影を行うため、
0°の場合よりも傾き45°の場合に最も情報量が減少
する。このため、図6(a)の本発明の方式を用いると
傾き45°では従来の方式に比べおよそ2倍の情報量が
得られる。
As shown in FIG. 6A, in this method, since the luminance value of the image is cut out in a stepwise manner, a large amount of information can be obtained for the same cutout length λ. On the other hand, in the conventional clipping method shown in FIG. 6B, the barcode is cut out and projected directly in the direction (vertical direction in the figure) with respect to the inclination of the barcode.
The amount of information decreases most when the inclination is 45 ° than when it is 0 °. Therefore, when the method of the present invention shown in FIG. 6A is used, an information amount approximately twice as large as that of the conventional method can be obtained at the inclination of 45 °.

【0027】図7は、この上記に説明の提案アルゴリズ
ムを用い、CCDカメラとバーコードの距離Lを変化さ
せた場合の認識結果を示す図である。図より、45°の
バーコードの傾きに対して、直接その方向に投影を行う
黒丸印の場合よりも、階段状に行う四角印の新しい方式
の方が認識率が高くなっていることが分かる。
FIG. 7 is a diagram showing a recognition result when the distance L between the CCD camera and the barcode is changed by using the above-described proposed algorithm. From the figure, it can be seen that the recognition rate is higher in the new method of square marks performed stepwise than in the case of black circles that directly project in the direction with respect to the inclination of the barcode of 45 °. .

【0028】従って、本発明の方式は従来の方式と異な
り、傾きがある場合の方が認識率が高い。本発明の例で
は、白丸印の0°の場合に認識が最も難しくなり、三角
印の22.5°、四角印の45°の順に認識率が良くな
る。このため、従来の方式では、1.4mまでしか読め
なかったバーコードが、0°の傾きでも2m離れたとこ
ろで100%認識ができ、方向に係わらず読み取れるよ
うになった。
Therefore, the system of the present invention differs from the conventional system in that the recognition rate is higher when there is an inclination. In the example of the present invention, recognition is most difficult when the white circle is 0 °, and the recognition rate is improved in the order of 22.5 ° for the triangle and 45 ° for the square. For this reason, in the conventional method, a barcode which can be read only up to 1.4 m can be recognized 100% at a distance of 2 m even with a tilt of 0 °, and can be read regardless of the direction.

【0029】なお、上記の実施の形態においては、製品
6に貼られたバーコードの例で説明したが、他の画像を
投影し、画像を識別する装置に広く適用されることがで
き、同様の効果が得られるものである。
Although the above embodiment has been described with reference to the example of the barcode affixed to the product 6, the present invention can be widely applied to a device for projecting another image and identifying the image. The effect of is obtained.

【0030】[0030]

【発明の効果】以上述べたように、請求項1及び請求項
2の本発明のアルゴリズムを用いれば、製品に貼られた
バーコードラベルをどの方向で貼られているかを考慮す
ることなく、CCDカメラでこれを読み取り、画像処理
部で画像を切り出し、少なくとも5画素の幅で切り出し
た画像を投影し、処理するので、少ない演算時間でバー
コードを正確に識別し、CCDカメラとバーコードの距
離が2m離れた場合でも、バーコードの認識が良好に行
え、ベルトコンベア上を高速で製品を移送することがで
き、製造ラインの生産能力を向上させる効果がある。
As described above, according to the algorithms of the first and second aspects of the present invention, the CCD can be used without considering the direction in which the barcode label attached to the product is attached. This is read by the camera, the image is cut out by the image processing unit, and the image cut out with a width of at least 5 pixels is projected and processed. Therefore, the bar code is accurately identified in a short calculation time, and the distance between the CCD camera and the bar code is reduced. Is 2 m away, the barcode can be recognized well, the product can be transferred on the belt conveyor at high speed, and the production capacity of the production line is improved.

【0031】また、本発明は、バーコードだけでなく他
の画像を投影する場合にも広く応用できる。特に計測の
精密さが要求される場合に効果がある。
The present invention can be widely applied to projection of not only bar codes but also other images. It is particularly effective when precision of measurement is required.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の一形態に係るCCDカメラを用
いたバーコード認識装置によるバーコードの撮像環境を
示す斜視図であり、CCDカメラと製品に貼られたバー
コードの距離がLの場合を示す。
FIG. 1 is a perspective view showing a barcode image capturing environment by a barcode recognition apparatus using a CCD camera according to an embodiment of the present invention, wherein the distance between the CCD camera and a barcode attached to a product is L; Show the case.

【図2】本発明の実施の一形態に係るCCDカメラを用
いたバーコード認識装置のシステム構成図である。
FIG. 2 is a system configuration diagram of a barcode recognition device using a CCD camera according to an embodiment of the present invention.

【図3】本発明の実施の一形態に係るバーコードCod
e−39を示し、(a)はバーコードの平面図、(b)
はコードの拡大図である。
FIG. 3 is a barcode Cod according to an embodiment of the present invention.
FIGS. 7A and 7B show e-39, wherein FIG.
Is an enlarged view of the code.

【図4】本発明の実施の一形態に係るバーコードの切り
出しを示す図である。
FIG. 4 is a diagram showing cutout of a barcode according to an embodiment of the present invention.

【図5】本発明の実施の一形態に係るバーコードの切り
出し部を示し、(a)は切り出し部の拡大図、(b)は
画素をモデル化した概念図、(c)はしきい値による投
影の様子を示した図、(d)は(c)の状態を二値化に
よる処理を行った図である。
5A and 5B show a barcode cutout portion according to an embodiment of the present invention, wherein FIG. 5A is an enlarged view of the cutout portion, FIG. 5B is a conceptual diagram in which a pixel is modeled, and FIG. FIG. 4D is a diagram showing a state of projection by (b), and FIG. 4D is a diagram in which the state of (c) is processed by binarization.

【図6】本発明の実施の一形態に係るバーコードの切り
出しおよび投影法を示し、バーコードが45°に傾斜し
た場合であり、(a)は本発明、(b)が従来の投影法
を示す。
FIGS. 6A and 6B show a bar code cutting and projecting method according to an embodiment of the present invention, in which the bar code is inclined at 45 °, FIG. 6A shows the present invention, and FIG. Is shown.

【図7】本発明の実施の一形態に係るバーコードの回転
角をバラメータとした場合のCCDカメラとバーコード
の距離Lとバーコード認識の実験結果を示す図である。
FIG. 7 is a diagram showing experimental results of distance L between a CCD camera and a barcode and barcode recognition when the rotation angle of the barcode is a parameter according to the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 ベルトコンベア 2 CCDカメラ 2−1 位置検出用CCDカメラ 2−2 読み取り用CCDカメラ 3 バーコード 4 画像処理部 5 ホストコンピュータ 6 製品 DESCRIPTION OF SYMBOLS 1 Belt conveyor 2 CCD camera 2-1 CCD camera for position detection 2-2 CCD camera for reading 3 Barcode 4 Image processing unit 5 Host computer 6 Product

フロントページの続き (72)発明者 岡田 安弘 長崎県長崎市飽の浦町1番1号 長菱ソフ トウェア株式会社内 (72)発明者 白濱 久嗣 長崎県長崎市飽の浦町1番1号 長菱ソフ トウェア株式会社内 Fターム(参考) 5B072 AA01 AA02 CC13 CC24 DD02 DD23 DD25 Continuing on the front page (72) Inventor Yasuhiro Okada 1-1, Akunoura-cho, Nagasaki-shi, Nagasaki Nagasaki Software Co., Ltd. (72) Inventor Hisashi Shirahama 1-1-1, Akunoura-cho, Nagasaki-shi, Nagasaki Nagakishi Software Stock In-house F-term (reference) 5B072 AA01 AA02 CC13 CC24 DD02 DD23 DD25

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ベルトコンベア上を移動する製品に貼ら
れたバーコードラベルを離れた位置から非接触で読み取
るCCDカメラと、同CCDカメラで撮影したバーコー
ドの画像を取込みコード列を所定の幅で切り出し、同切
り出し部分を所定の幅だけ投影し、同投影部分の輝度値
を求め、同輝度値を所定のしきい値と比較して二値化処
理を行い、各コード列のバーとスペースを識別してバー
コードを認識するアルゴリズムを有する画像処理部とを
備えたバーコード認識装置において、前記アルゴリズム
におけるコード列の所定幅の投影は、前記画像処理部で
処理する画素の少なくとも5画素の幅で投影して入力画
像とすることを特徴とするCCDカメラを用いたバーコ
ード認識装置。
1. A CCD camera which reads a bar code label attached to a product moving on a belt conveyor from a distant position in a non-contact manner, a bar code image taken by the CCD camera, and a code line having a predetermined width. And projecting the cut portion by a predetermined width, obtaining a luminance value of the projected portion, comparing the same luminance value with a predetermined threshold value, performing a binarization process, and bar and space of each code string. And an image processing unit having an algorithm for recognizing a bar code by recognizing a bar code. In the bar code recognition device, the projection of a code string having a predetermined width in the algorithm includes at least five pixels of pixels processed by the image processing unit. A barcode recognition device using a CCD camera, wherein the input image is projected by width.
【請求項2】 前記アルゴリズムのコード列の切り出し
は、前記CCDカメラで撮影したバーコードラベルの方
向が前記コンベアの流れ方向に対し不特定に傾いている
場合には、前記コンベア流れ方向及びこれに直行する方
向の両直交座標系で定まる画素上で前記傾斜方向と平行
に各画素の輝度値を階段状に切り出すことを特徴とする
請求項1記載のCCDカメラを用いたバーコード認識装
置。
2. The method according to claim 1, wherein when the direction of the bar code label photographed by the CCD camera is indefinitely inclined with respect to the flow direction of the conveyor, the code stream of the algorithm is separated from the flow direction of the conveyor. 2. A bar code recognition apparatus using a CCD camera according to claim 1, wherein a luminance value of each pixel is cut out in a stepwise manner on a pixel defined by both orthogonal coordinate systems in a direction perpendicular to the pixel, in parallel with the inclination direction.
JP34714699A 1999-12-07 1999-12-07 Bar code recognizing device using ccd camera Pending JP2001167225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34714699A JP2001167225A (en) 1999-12-07 1999-12-07 Bar code recognizing device using ccd camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34714699A JP2001167225A (en) 1999-12-07 1999-12-07 Bar code recognizing device using ccd camera

Publications (1)

Publication Number Publication Date
JP2001167225A true JP2001167225A (en) 2001-06-22

Family

ID=18388235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34714699A Pending JP2001167225A (en) 1999-12-07 1999-12-07 Bar code recognizing device using ccd camera

Country Status (1)

Country Link
JP (1) JP2001167225A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172267A (en) * 2004-12-17 2006-06-29 Toyo Kanetsu Solutions Kk System for recognizing symbol on mobile object
JP2006276997A (en) * 2005-03-28 2006-10-12 Toshiba Tec Corp Desktop radio tag reading system, and read control method of radio tag
JP2009187208A (en) * 2008-02-05 2009-08-20 Denso Wave Inc Optical information reader
WO2012103092A3 (en) * 2011-01-24 2013-01-10 Datalogic ADC, Inc. Exception detection and handling in automated optical code reading systems
WO2014018553A1 (en) * 2012-07-24 2014-01-30 Datalogic ADC, Inc. Systems and methods of object measurement in an automated data reader
CN107096720A (en) * 2017-06-22 2017-08-29 西安科技大学 Express mail bar code automatic recognition system and method based on image procossing
CN111385531A (en) * 2018-12-29 2020-07-07 希姆通信息技术(上海)有限公司 Double-camera respectively-locating code reading device and method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172267A (en) * 2004-12-17 2006-06-29 Toyo Kanetsu Solutions Kk System for recognizing symbol on mobile object
JP2006276997A (en) * 2005-03-28 2006-10-12 Toshiba Tec Corp Desktop radio tag reading system, and read control method of radio tag
JP4690758B2 (en) * 2005-03-28 2011-06-01 東芝テック株式会社 Desktop wireless tag reading system and wireless tag reading control method
JP2009187208A (en) * 2008-02-05 2009-08-20 Denso Wave Inc Optical information reader
WO2012103092A3 (en) * 2011-01-24 2013-01-10 Datalogic ADC, Inc. Exception detection and handling in automated optical code reading systems
US8939369B2 (en) 2011-01-24 2015-01-27 Datalogic ADC, Inc. Exception detection and handling in automated optical code reading systems
WO2014018553A1 (en) * 2012-07-24 2014-01-30 Datalogic ADC, Inc. Systems and methods of object measurement in an automated data reader
US9651363B2 (en) 2012-07-24 2017-05-16 Datalogic Usa, Inc. Systems and methods of object measurement in an automated data reader
CN107096720A (en) * 2017-06-22 2017-08-29 西安科技大学 Express mail bar code automatic recognition system and method based on image procossing
CN107096720B (en) * 2017-06-22 2022-11-29 西安科技大学 Express item bar code automatic identification system and method based on image processing
CN111385531A (en) * 2018-12-29 2020-07-07 希姆通信息技术(上海)有限公司 Double-camera respectively-locating code reading device and method

Similar Documents

Publication Publication Date Title
US8254683B2 (en) Code image processing method
US5872870A (en) Machine vision methods for identifying extrema of objects in rotated reference frames
JP2835274B2 (en) Image recognition device
JP5414685B2 (en) System and method for reading a pattern using a plurality of image frames
US9946947B2 (en) System and method for finding saddle point-like structures in an image and determining information from the same
US7438232B2 (en) Two-dimensional code and information processing method
EP3462372B1 (en) System and method for detecting optical codes with damaged or incomplete finder patterns
JP2005173646A (en) Code-kind discrimination method and code border detecting method
JP2000503145A (en) Machine vision method and apparatus for edge-based image histogram analysis
JP6344389B2 (en) Optical character recognition device
JP5140820B2 (en) Symbol information reading apparatus and symbol information reading method
US11170487B2 (en) Adhered substance detection apparatus
EP1894141B1 (en) System and method for locating a predetermined pattern within an image
JP2007081458A (en) Image processing apparatus and control method of image processing apparatus
US20210302529A1 (en) Determining Imperfections in an Imaging Camera for Determining the Orientation of Objects in Space
CN110502948B (en) Restoration method and device for folding two-dimensional code image and code scanning equipment
KR20190080275A (en) Barcode detecting apparatus and barcode detecting method using the apparatus
JP2001167225A (en) Bar code recognizing device using ccd camera
JP2007072642A (en) Image processor and controlling method of image processor
JP2019091339A (en) Image collection device, program, and method
JP4116709B2 (en) Omnidirectional 1D barcode reader
JP4398498B2 (en) Code boundary detection method
JP4634250B2 (en) Image recognition method and apparatus for rectangular parts
JP4513394B2 (en) Color image processing method and image processing apparatus
JP2008211534A (en) Face detecting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060907

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20060907

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20060907

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071204

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080422