JPH05290203A - Array direction detection method of bar code label - Google Patents

Array direction detection method of bar code label

Info

Publication number
JPH05290203A
JPH05290203A JP4110880A JP11088092A JPH05290203A JP H05290203 A JPH05290203 A JP H05290203A JP 4110880 A JP4110880 A JP 4110880A JP 11088092 A JP11088092 A JP 11088092A JP H05290203 A JPH05290203 A JP H05290203A
Authority
JP
Japan
Prior art keywords
bar code
read
image
straight line
scanning
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
JP4110880A
Other languages
Japanese (ja)
Inventor
Hideki Mizuochi
秀樹 水落
Kuniharu Hara
邦治 原
Shinichi Kato
真一 加藤
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.)
Nippon Electric Industry Co Ltd
Original Assignee
Nippon Electric Industry 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 Nippon Electric Industry Co Ltd filed Critical Nippon Electric Industry Co Ltd
Priority to JP4110880A priority Critical patent/JPH05290203A/en
Publication of JPH05290203A publication Critical patent/JPH05290203A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To certainly read a bar code symbol even when the applying position of a bar code label is deviated or inclined. CONSTITUTION:A primary straight line which passes respective optional points S on at least two edges (AB and BC) among for edges showing the border of an image I including the bar code symbol 8 and optionally inclines is continuously set and whether one train of the bar code symbols are read from end to end or not is discriminated from the bar code symbol read by scanning in accordance with the straight line so as to detect a proper scanning direction meeting the applying position of the bar code label.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、多段バーコードシン
ボルの読取方法に係り、特に配列方向が一定でないバー
コードシンボルに対しその配列方向を自動的に検出する
バーコードラベルの配列方向検出方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of reading a multi-stage bar code symbol, and more particularly to a method of detecting a bar code label array direction which automatically detects the bar code symbol array direction. It is a thing.

【0002】[0002]

【従来の技術】一般に使用されるバーコードラベルは、
全体の大きさが一定の長さ及び幅に規格化されており、
そのラベル上に黒色等のバーが各種幅及び間隔を保持し
て一列に配列した状態で記録されている。また、この一
段のものからなるバーコードシンボルでは、記録する情
報量がそれ程多くないので、そのバーコードシンボルを
何段か積み重ねた多段のものも開発されており、これに
よって多数の情報を記録することができるようになって
いる。一方これらのバーコードシンボルを読取るバーコ
ードリーダには、片手で把持して使用できるハンディタ
イプのものの他に、所定の位置に固定した据置タイプの
ものも開発されている。ところで、この据置タイプのバ
ーコードリーダにあっては、一般にそのリーダ本体から
射出される読取光が一定範囲・一定方向に制限して投光
・走査されているので、梱包箱等のバーコードシンボル
の被貼付物においてバーコードシンボルの貼付位置が所
定位置に予め定められている場合が多い。
2. Description of the Related Art Bar code labels that are commonly used are
The overall size is standardized to a certain length and width,
Black bars and the like are recorded on the label in a state in which they are arranged in a line with various widths and intervals. In addition, since the amount of information to be recorded is not so large in this one-stage bar code symbol, a multi-stage bar code symbol that has been stacked in several stages has also been developed. Is able to. On the other hand, as bar code readers for reading these bar code symbols, in addition to the handy type that can be used by grasping with one hand, a stationary type that is fixed at a predetermined position has been developed. By the way, in this stationary type bar code reader, the reading light emitted from the reader body is generally projected and scanned in a fixed range and in a fixed direction. In many cases, the sticking position of the bar code symbol is preset to a predetermined position.

【0003】[0003]

【発明が解決しようとする課題】ところが、このような
バーコードリーダでは、そのバーコードラベルの貼付位
置が一定であっても、その取付状態が傾いていたり、ま
た梱包箱等が変形していたりすると、バーコードラベル
を正確に読取ることができなかったり、読取不能となっ
てしまうことがある。そこで、この発明は、上記した従
来の欠点に鑑み、バーコードラベルの貼付位置がずれて
いたり、ばらばらであっても、確実にバーコードシンボ
ルを読取ることができるバーコードラベルの配列方向検
出方法を提供することを目的とするものである。
However, in such a bar code reader, even if the bar code label is stuck at a fixed position, the mounting state of the bar code reader is tilted or the packaging box or the like is deformed. Then, the barcode label may not be read accurately or may not be read. Therefore, in view of the above-mentioned conventional drawbacks, the present invention provides a barcode label array direction detecting method capable of reliably reading barcode symbols even if the barcode label sticking position is displaced or dislocated. It is intended to be provided.

【0004】[0004]

【課題を解決するための手段】即ち、この発明は、バー
コードシンボルを含む矩形状又は方形状のエリアを撮像
し、この撮像した画像に2次元座標を設定し、この画像
の周縁部をなす四辺のうちの少なくとも縦横各1辺上の
各点において傾きaを連続的に変化させた一次関数y=
ax+b(ただし−∞<a<∞)を順次設定し、この設
定した傾きをもつ一次関数の示す直線上にある各画素の
座標を指定し、この指定された各画素に沿って走査しな
がらそこの画像情報からその直線上にあるバーコードシ
ンボルを読取り、この読取った情報から少なくとも1列
のバーコードシンボルの始端から終端まで走査されたか
否かを判別し、多段バーコードラベルの配列方向を検出
するものである。
That is, according to the present invention, a rectangular or rectangular area including a bar code symbol is imaged, two-dimensional coordinates are set in the imaged image, and a peripheral portion of the image is formed. A linear function y = where the slope a is continuously changed at each point on at least one vertical and horizontal side of the four sides.
ax + b (however, −∞ <a <∞) is sequentially set, the coordinates of each pixel on the straight line indicated by the linear function having the set slope are designated, and while scanning along each of the designated pixels, The bar code symbol on the straight line is read from the image information of, and it is determined from the read information whether the bar code symbol of at least one row has been scanned from the start end to the end, and the arrangement direction of the multi-stage bar code label is detected. To do.

【0005】[0005]

【作用】この発明では、画像の周縁部をなす四辺のうち
少なくとも縦横2方向の各周縁部上の各点において、傾
きを連続的に変化させた一次関数を順次設定し、つまり
各設定点においてこの点を通る直線を連続的に回転させ
ていき、そのとき各傾きの直線に沿って読取走査を行な
っていき、1列のバーコードシンボルについてその始端
から終端まで全てのバーを走査できたか否かを判別する
ことによって多段バーコードシンボルの配列方向を検出
する。
According to the present invention, a linear function whose inclination is continuously changed is sequentially set at each point on each of the four sides forming the peripheral edge of the image in at least two vertical and horizontal directions, that is, at each set point. A straight line passing through this point is continuously rotated, and at that time, reading scanning is performed along the straight line of each inclination, and whether or not all the bars can be scanned from the start end to the end of one row of bar code symbols. The array direction of the multi-stage barcode symbol is detected by determining whether or not.

【0006】[0006]

【実施例】以下この発明の一実施例について添付図面を
参照しながら説明する。図1はこの発明に係るバーコー
ドラベルの配列方向検出方法を示すものであり、この配
列方向検出方法は、第1ステップ1〜第7ステップ7か
ら構成されている。第1ステップ1では、バーコードシ
ンボル8(図2参照)を含む矩形状又は方形状のエリア
を、適宜の撮像手段、例えばCCD(電荷結合素子)撮
像カメラ等により撮像すると共に、所定の記憶手段にそ
の画像I(図2参照)を記憶させる。 第2ステップ2
では、図2に示す如く撮像した画像Iに2次元座標O−
X,Yを設定する。第3ステップ3では、第1ステップ
1にて撮像した画像Iのうち、周囲と境界を接する周縁
部となる四辺のうちの少なくとも縦・横2辺(この実施
例では、図2において線分AB,線分BCを指す)上の
各点Sにおいて、傾きa(ただし−∞<a<∞)を連続
的に変化させた一次関数Y=aX+bを順次設定する。
即ち、例えば、図2における点A(0,n)では、一次
関数 Y=aX+n (n:Y切片) において、傾きaが0つまりY=nから徐々に傾きaを
小さくしていき、これらに対応する直線を画像I上に設
定する。換言すれば、点Aを通る直線について、図2に
示す如く、その直線上を時計回りに連続的に回転させて
いく。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the accompanying drawings. FIG. 1 shows a method of detecting the arrangement direction of a barcode label according to the present invention. This arrangement direction detecting method is composed of first step to seventh step 7. In the first step 1, a rectangular or rectangular area including the barcode symbol 8 (see FIG. 2) is imaged by an appropriate image pickup means, for example, a CCD (charge coupled device) image pickup camera, and a predetermined storage means. To store the image I (see FIG. 2). Second step 2
Then, as shown in FIG. 2, a two-dimensional coordinate O-
Set X and Y. In the third step 3, in the image I captured in the first step 1, at least two vertical / horizontal sides of the four side edges that are in contact with the surroundings and are borders (in this embodiment, the line segment AB in FIG. 2). , A linear function Y = aX + b in which the slope a (-∞ <a <∞) is continuously changed is set at each point S on the line segment BC.
That is, for example, at the point A (0, n) in FIG. 2, in the linear function Y = aX + n (n: Y intercept), the slope a is 0, that is, the slope a is gradually reduced from Y = n. A corresponding straight line is set on the image I. In other words, the straight line passing through the point A is continuously rotated clockwise on the straight line as shown in FIG.

【0007】第4ステップ4では、この設定した一定の
傾きをもつ各一次関数の示す直線上にある各画素の座標
(X,Y)を指定していく。第5ステップ5では、第4
ステップ4にて指定された座標に対応する各画素を、画
像I上で連続的に斜めに走査していきながら、その走査
線上にある各画素に対応する白黒等の画像情報を読取
る。第6ステップ6では、第5ステップ5で読取った画
像情報から、その走査線が1列のバーコードシンボルの
配列方向に一致するか否かを判別する。即ち、1列のバ
ーコードシンボルの始端から終端まで全コードが読取れ
たか否かは、読取った数字等の最初と最後のコードが、
予め設定されたものと一致しているか否かによって判別
される。これにより、1列のバーコードシンボルの全コ
ードが全て読取れなかったと判断した場合には、第3ス
テップ3に戻り、再度その第3ステップ3からやり直
す。第7ステップ7では、第6ステップ6にて1列のバ
ーコードシンボルの全バーが読取れていたと判断したな
らば、そのときの一次関数が示す直線と一致する走査位
置から、つまり第1列目のバーコードシンボル8Aから
最終段のバーコードシンボル8Zまで読取っていく。
In the fourth step 4, the coordinates (X, Y) of each pixel on the straight line indicated by each linear function having the set constant inclination are designated. In the fifth step 5, the fourth
Each pixel corresponding to the coordinates designated in step 4 is continuously scanned obliquely on the image I, and image information such as black and white corresponding to each pixel on the scanning line is read. In the sixth step 6, it is judged from the image information read in the fifth step 5 whether or not the scanning line is aligned with the array direction of the barcode symbols in one row. That is, whether or not all the codes from the start end to the end of the bar code symbol in one row can be read is determined by the first and last codes such as the read numbers.
It is determined whether or not it matches the preset value. As a result, when it is determined that all the codes of the bar code symbol in one column cannot be read, the process returns to the third step 3 and the process starts again from the third step 3. In the seventh step 7, if it is determined in the sixth step 6 that all the bars of the bar code symbol in one row have been read, from the scanning position that coincides with the straight line indicated by the linear function at that time, that is, in the first row. Scan from the barcode symbol 8A of the eye to the barcode symbol 8Z of the final stage.

【0008】[0008]

【発明の効果】以上説明してきたように、この発明に係
るバーコードラベルの配列方向検出方法によれば、撮像
した画像の境界周縁部をなす四辺のうち、少なくとも縦
横各1辺上の各点において傾きを連続的に変化させた一
次関数を設定し、この関数が示す直線を先の各点におい
て回転させていきながら、そのときの各直線に合せて走
査させていくことにより、つまり何れかの点において、
かつ何れかの傾きのときの直線に沿った走査を行うこと
により、1列のバーコードシンボルの始端から終端まで
全て読取れたと判断することができる走査位置を検出す
ることができる。従って、この検出方法によれば、その
直線を走査線とみなし、平行移動させ上下にずらしてい
きながら走査することで、ランダムに貼付された多段の
バーコードシンボル等の自動読取りが可能になり、実用
上極めて大きな効果が得られる。
As described above, according to the method for detecting the arrangement direction of the bar code label according to the present invention, among the four sides forming the boundary peripheral portion of the picked-up image, at least each point on each of the vertical and horizontal sides. By setting a linear function in which the slope is continuously changed in, and rotating the straight line indicated by this function at each of the previous points, and scanning according to each straight line at that time, that is, either In terms of
Further, by performing scanning along a straight line at any inclination, it is possible to detect a scanning position where it can be determined that all the barcode symbols in one row have been read from the start end to the end. Therefore, according to this detection method, the straight line is regarded as a scanning line, and the scanning is performed while moving it in parallel and shifting it up and down, thereby enabling automatic reading of randomly attached multi-stage bar code symbols, A very large effect can be obtained in practical use.

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

【図1】この発明に係るバーコードラベルの配列方向検
出方法を示すフローチャート。
FIG. 1 is a flow chart showing a method for detecting the arrangement direction of barcode labels according to the present invention.

【図2】図1の方法を説明するための説明図。FIG. 2 is an explanatory diagram for explaining the method of FIG.

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

8 バーコードシンボル I 画像 8 barcode symbol I image

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 バーコードシンボルを含む矩形状又は方
形状のエリアを撮像し、 この撮像した画像に2次元座標を設定し、 この画像の周縁部をなす四辺のうちの少なくとも縦横各
1辺上の各点において傾きaを連続的に変化させた一次
関数y=ax+b(ただし−∞<a<∞)を順次設定
し、 この設定した傾きをもつ一次関数の示す直線上にある各
画素の座標を指定し、 この指定された各画素に沿って走査しながらそこの画像
情報からその直線上にあるバーコードシンボルを読取
り、 この読取った情報から少なくとも1列のバーコードシン
ボルの始端から終端までが走査されたか否かを判別し、 多段バーコードシンボルの配列方向を検出することを特
徴とするバーコードラベルの配列方向検出方法。
1. An image of a rectangular or rectangular area including a bar code symbol is imaged, two-dimensional coordinates are set in the imaged image, and at least one of the four sides forming the peripheral portion of the image is on each vertical and horizontal side. The linear function y = ax + b (where -∞ <a <∞) in which the slope a is continuously changed is sequentially set at each point of, and the coordinates of each pixel on the straight line indicated by the linear function having the set slope are set. Is specified, the bar code symbols on the straight line are read from the image information there while scanning along each of the specified pixels, and from this read information, at least one row of bar code symbols from the beginning to the end is read. A method for detecting the arrangement direction of a barcode label, which comprises determining whether or not scanning has been performed and detecting the arrangement direction of the multi-stage barcode symbol.
JP4110880A 1992-04-03 1992-04-03 Array direction detection method of bar code label Pending JPH05290203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4110880A JPH05290203A (en) 1992-04-03 1992-04-03 Array direction detection method of bar code label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4110880A JPH05290203A (en) 1992-04-03 1992-04-03 Array direction detection method of bar code label

Publications (1)

Publication Number Publication Date
JPH05290203A true JPH05290203A (en) 1993-11-05

Family

ID=14547040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4110880A Pending JPH05290203A (en) 1992-04-03 1992-04-03 Array direction detection method of bar code label

Country Status (1)

Country Link
JP (1) JPH05290203A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277446A (en) * 2009-05-29 2010-12-09 Toshiba Corp Apparatus and method for processing barcode
WO2014104852A1 (en) * 2012-12-31 2014-07-03 아주대학교산학협력단 Apparatus and method for recognizing qr code

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277446A (en) * 2009-05-29 2010-12-09 Toshiba Corp Apparatus and method for processing barcode
WO2014104852A1 (en) * 2012-12-31 2014-07-03 아주대학교산학협력단 Apparatus and method for recognizing qr code

Similar Documents

Publication Publication Date Title
US6364209B1 (en) Data reading apparatus
JP2835274B2 (en) Image recognition device
CA1320575C (en) Technique for reading bar code
JP3170299B2 (en) Image reading processing device
US6993211B2 (en) Code reader
KR930023865A (en) Barcode reader
US20080069398A1 (en) Code image processing method
JPH08123900A (en) Method and apparatus for decision of position for line scanning image
JPH11502348A (en) How to detect the position and direction of the fiducial mark
JP5140820B2 (en) Symbol information reading apparatus and symbol information reading method
EP1894141B1 (en) System and method for locating a predetermined pattern within an image
US6367698B1 (en) Bar code reader for decoding a four state bar code
JPH05290203A (en) Array direction detection method of bar code label
US7090129B2 (en) Code reader and card type recording medium
JP4322041B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium storing the program
JP2000105795A (en) Omnidirectional-dimensional bar code reader
JP3911411B2 (en) Code reader
JP2001167225A (en) Bar code recognizing device using ccd camera
JP3580901B2 (en) Symbol information reader
JP3022459B2 (en) Form identification registration device
JPH0469788A (en) Optical information reader
JP3230371B2 (en) Character recognition device and character recognition method
JP2001078176A (en) Document image pickup unit
JPH0668294A (en) Scanning direction detecting method for bar code label
JP2506142B2 (en) Character reader