JPH0756665B2 - Print bar code automatic monitoring device - Google Patents

Print bar code automatic monitoring device

Info

Publication number
JPH0756665B2
JPH0756665B2 JP61116220A JP11622086A JPH0756665B2 JP H0756665 B2 JPH0756665 B2 JP H0756665B2 JP 61116220 A JP61116220 A JP 61116220A JP 11622086 A JP11622086 A JP 11622086A JP H0756665 B2 JPH0756665 B2 JP H0756665B2
Authority
JP
Japan
Prior art keywords
bar code
barcode
output
printed
printing
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.)
Expired - Lifetime
Application number
JP61116220A
Other languages
Japanese (ja)
Other versions
JPS62273864A (en
Inventor
弘之 橋本
誠司 三上
誠 三瓶
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP61116220A priority Critical patent/JPH0756665B2/en
Publication of JPS62273864A publication Critical patent/JPS62273864A/en
Publication of JPH0756665B2 publication Critical patent/JPH0756665B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K5/00Methods or arrangements for verifying the correctness of markings on a record carrier; Column detection devices
    • G06K5/02Methods or arrangements for verifying the correctness of markings on a record carrier; Column detection devices the verifying forming a part of the marking action

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Printers Characterized By Their Purpose (AREA)

Description

【発明の詳細な説明】 〔発明の目的〕 〔産業上の利用分野〕 本発明は連続帳票類の連続的なバーコードを自動監視す
るための装置に係り、特にロール紙上に印刷された印刷
バーコードを画像データとして抽出してこの画像データ
を数値化し、この数値データを用いて印刷バーコードが
正しく印刷されているか否かを監視する装置に関する。
The present invention relates to an apparatus for automatically monitoring continuous bar codes on continuous forms, and more particularly to a printing bar printed on roll paper. The present invention relates to an apparatus that extracts a code as image data, digitizes the image data, and monitors whether or not a print barcode is correctly printed by using the numerical data.

〔従来の技術〕[Conventional technology]

バーコードとは第3図(a)に示す様に2種の幅の黒と
白の平行バーから成るコード部分とこれに対応する英数
字で構成され、媒体上に印刷されたマークのことを言
う。このバーコードはその両端に英字を示すスタートコ
ード及びエンドコードがありその内側に数値を示すバー
が並んでいる。またバーの下方に各バーが表わす数字が
付記されている。
As shown in Fig. 3 (a), a bar code is a mark printed on a medium that consists of a code part consisting of two types of black and white parallel bars and the corresponding alphanumeric characters. To tell. This bar code has a start code and an end code indicating alphabets at both ends, and a bar indicating a numerical value is arranged inside the bar. Further, the numbers shown by the bars are added below the bars.

各数字は2種類の太さの黒バー4本とそのあいだの白バ
ー3本により表現され、バーの太さ及びその並び方によ
り、各ナンバー固有のパターンを形成している。このパ
ターンを第3図(b)に示す。第3図(b)以外にも数
字を表現するバーのパターンが異なるものもあるが、第
3図(b)に示したものが現在広く用いられているもの
である。
Each number is represented by four black bars of two kinds of thickness and three white bars between them, and a pattern peculiar to each number is formed by the thickness of the bars and the arrangement of the bars. This pattern is shown in FIG. Although there are some patterns other than those shown in FIG. 3 (b) that have different bar patterns for expressing numbers, the one shown in FIG. 3 (b) is currently widely used.

このバーコードは印刷機によって印刷され、たとえばオ
フセット・フォーム輪転機の場合、活版印刷部にバーコ
ードナンバリング機を取付けることによってオフセット
印刷機にバーコードを連続的に印刷する。このバーコー
ド印刷はバーコードナンバリング機の各字輪が回転する
ことによって連続的に番号が印刷される。
This bar code is printed by a printing machine, for example, in the case of an offset foam rotary printing machine, the bar code numbering machine is attached to the letterpress printing section to continuously print the bar code on the offset printing machine. In this barcode printing, numbers are continuously printed by rotating each character ring of the barcode numbering machine.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかし、字輪が回るべきところで回らなかったり、隣り
合った字輪が同時に回ってしまう等の動作上の不具合に
よって正規の順番の番号ではない番号を印刷する場合が
ある。
However, a number that is not in a proper order may be printed due to a malfunction in operation such as a letter wheel that does not turn where it should turn, or adjacent letter wheels that turn at the same time.

そこで印刷バーコードが正しく印刷されていることの確
認のため、正紙の前後に数10〜数100セットの印刷予備
部を設けてこの印刷予備部におけるバーコードが適正に
印刷されているか否かで正紙のバーコード印刷の異常有
無を推定するようにしている。
Therefore, in order to confirm that the printed barcode is printed correctly, whether several tens to several hundreds of sets of print reserve parts are provided before and after the plain paper, and whether the barcode in this print reserve part is printed properly or not. In this way, it is estimated whether or not there is an abnormality in the barcode printing on the original paper.

しかしながら、この印刷予備部の印刷内容から正紙の印
刷バーコードの異常有無を判定する方法では印刷途中で
バーコードのチェックを行なわないので、ナンバリング
機が誤動作を起して適正なバーコードが印刷されなくて
も印刷終了までは発見できない。この結果、バーコード
異常の印刷物についての印刷時間、印刷ロール紙が無駄
になる。この印刷バーコードの異常を監視する手段とし
て既存のバーコードリーダを印刷機上に設置し印刷バー
コードを読み取る事により印刷バーコードの異常の有無
を判定する方式が考えられる。しかしながら、バーコー
ドリーダの読取速度は印刷物の走行速度に比べ遅い為、
印刷バーコードを印刷機上で読み取る事はできない。
However, in the method of determining whether or not there is an abnormality in the print barcode of the original paper based on the print content of the print reserve unit, the barcode is not checked during printing, so the numbering machine malfunctions and a proper barcode is printed. Even if it is not printed, it cannot be found until the end of printing. As a result, the printing time and the printing roll paper for the bar code abnormal printed matter are wasted. As a means for monitoring the abnormality of the print barcode, a method of installing an existing barcode reader on the printing machine and reading the print barcode to determine the abnormality of the print barcode can be considered. However, the reading speed of the bar code reader is slower than the running speed of printed matter, so
The print bar code cannot be read on the press.

さらにバーコードの下側に目視確認用の印刷される数字
をパターン認識する技術を使って判別することにより印
刷バーコードの異常の有無の監視を自動で行なうことが
考えられるが、既存の文字認識装置はきわめて高価であ
り実用的な装置が得られなかった。
In addition, it is possible to automatically monitor the printed barcode for abnormalities by distinguishing the printed number for visual confirmation under the barcode using pattern recognition technology. The device was extremely expensive and a practical device could not be obtained.

本発明は上述の点を考慮してなされたもので、印刷機上
でロール紙に印刷されたバーコードを画像入力し、この
入力内容をリアルタイムで認識して印刷バーコードの正
否を自動で判定し得る装置を提供することを目的とす
る。
The present invention has been made in consideration of the above points, and an image of a bar code printed on a roll paper is input as an image on a printing press, and the input content is recognized in real time to automatically determine the correctness of the print bar code. It is an object of the present invention to provide a device that can be used.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的達成のため、本発明では、印刷機上で高速に走
行するウェブから印刷されたバーコードをストロボ発光
により静止画として画像入力し、この入力されたバーコ
ードを画像処理して数値データとして認識し、印刷機か
ら与えられる本来印刷すべき番号と比較する事により印
刷バーコードの正否を自動判定する装置を提供するもの
である。
To achieve the above object, in the present invention, a barcode printed from a web running at high speed on a printing machine is image-input as a still image by strobe emission, and the inputted barcode is image-processed as numerical data. (EN) An apparatus for automatically determining whether a print barcode is correct by recognizing it and comparing it with a number to be printed originally given by a printing machine.

〔実施例〕〔Example〕

以下添付図面を参照して本発明を一実施例につき説明す
る。
Hereinafter, the present invention will be described with reference to the accompanying drawings.

第7図は本発明の一適用対象である連続帳票類の印刷を
行なうオフセットフォーム輪転機を示したものである。
このオフセットフォーム輪転機は通常、給紙部、オフセ
ットユニット部、活版−ナンバ印刷部、加工部、折部、
巻取部により構成され、この他にカーボン印刷部が加わ
ることもある。
FIG. 7 shows an offset form rotary press for printing continuous forms as an application object of the present invention.
This offset foam rotary press is usually equipped with a paper feed section, an offset unit section, a letterpress-number printing section, a processing section, a folding section,
It is composed of a winding unit, and in addition to this, a carbon printing unit may be added.

連続帳票に例えばバーコードを印刷するときはオフセッ
ト印刷を終えた後の活版−ナンバ印刷部の版胴をナンバ
シャフトに取替えてバーコードナンバリング機を取付け
ることによってバーコードを印刷する。ナンバシャフト
には1軸につき複数のバーコードナンバリング機が取付
けられているのが普通であり、これにより多面付の印刷
を行なう。
When printing, for example, a barcode on a continuous form, the barcode is printed by replacing the plate cylinder of the letterpress-number printing section after the offset printing with a number shaft and attaching a barcode numbering machine. It is usual that a plurality of bar code numbering machines are attached to each number shaft for one axis, thereby performing printing with multiple faces.

ナンバが印刷されると加工部でマージナルパンチ穴あ
け、ミシン目等の加工がなされて巻取排紙されるか、あ
るいは折部でシートカットされたり折られたりして排紙
される。
When the number is printed, a marginal punch hole is punched in the processing section, processing such as perforation is performed and the sheet is wound up and discharged, or the sheet is cut or folded at the folding section and discharged.

第1図は本発明の一実施例を示したものである。この図
においては1は白黒ITVカメラであり、印刷機における
番号印刷が終って用紙上の番号を撮影できる位置に取付
けられている。このカメラ1の撮影視野はストロボ2に
より照明でき、このストロボを短時間のみ発光させるこ
とにより移動する印刷用紙上の絵柄を静止した状態で撮
影することができる。すなわち、ストロボ発光時間を30
〜40μsec、被写体の大きさを15mm、用紙速度を120m/分
としたとき、ストロボを発光しない状態では撮影できな
い程度に外光を抑制してレンズの絞りを調整する。たと
えばビジコンカメラでは被写体近辺の照度が約20ルクス
になるように遮光し、絞りをF4.0程度とする。
FIG. 1 shows an embodiment of the present invention. In this figure, reference numeral 1 denotes a black and white ITV camera, which is mounted at a position where a number on a sheet can be photographed after the number printing on the printing machine is completed. The photographing field of view of the camera 1 can be illuminated by the strobe 2, and the pattern on the moving printing paper can be photographed in a stationary state by illuminating the strobe for a short time. That is, the flash firing time is 30
When the subject size is 15 mm and the paper speed is 120 m / min for ~ 40 μsec, the external light is suppressed to the extent that shooting is not possible without the flash firing, and the lens aperture is adjusted. For example, with a vidicon camera, the light is shielded so that the illuminance near the subject is about 20 lux, and the aperture is set to about F4.0.

ストロボの発光により撮像面に像が焼付けられるが、こ
の間に被写体であるバーコードの移動距離は、 (ストロボ発光時間)×(用紙速度) で求められ、0.06〜0.08mmとなる。これは被写体の大き
さが15mmとすれば文字の大きさの4/1000〜6/1000に当る
長さであり、バーコードはほとんどブレのない静止画像
として撮影できる。この撮影入力画像はモニタTV3上に
映し出されており、カメラ1のピント絞りの調整とかカ
メラ視野の確認を行なう。
The image is printed on the imaging surface by the flash emission, and the moving distance of the barcode, which is the subject, is 0.06 to 0.08 mm, which is calculated by (flash emission time) x (paper speed). This is a length equivalent to 4/1000 to 6/1000 of the character size when the subject size is 15 mm, and the barcode can be captured as a still image with almost no blur. This photographed input image is displayed on the monitor TV3, and the focus aperture of the camera 1 is adjusted and the field of view of the camera is confirmed.

このようにして取り込まれた画像データはイメージメモ
リ4に格納され、この格納されたデータはCPU5により、
画像処理され数値として認識されまたディスプレイ6上
に表示される。版胴7に取付けられたロータリーエンコ
ーダ8からの版胴回転に応じたパルスがカウンタ9に与
えられそのカウント値がCPU5に与えられる。カウント値
は版胴1回転につき所定数発せられるパルスのカウント
値とこのパルスを分周したパルスのカウント値との2種
類がある。
The image data thus captured is stored in the image memory 4, and the stored data is stored in the CPU 5 by the CPU 5.
The image is processed, recognized as a numerical value, and displayed on the display 6. A pulse corresponding to the rotation of the plate cylinder from a rotary encoder 8 attached to the plate cylinder 7 is given to a counter 9, and the count value is given to the CPU 5. There are two types of count values: a count value of a pulse generated by a predetermined number per one rotation of the plate cylinder and a count value of a pulse obtained by dividing this pulse.

CPU5にはテンキー10とプリンタ11とが接続されており、
テンキー10による面付数等の入力に応じて演算を行な
い、またディスプレイ6による表示をプリンタ11でプリ
ント出力できるようになっている。
A ten key 10 and a printer 11 are connected to the CPU 5,
Calculations are performed according to the input of the number of impositions on the ten-key pad 10, and the display on the display 6 can be printed out by the printer 11.

第2図は第1図の装置におけるデータを取扱う部分の構
成をより詳細に示したもので、第1図と同一符号は同一
要素を示している。この図に示すように、カメラ1の撮
影入力はモニタTV3およびイメージメモリ4に与えられ
る。イメージメモリ4はデータバスを介してCPU5に接続
されており、CPU5はデータバスを介してディスプレイ
6、テンキー10、プリンタ11と接続されている。またCP
Uにはロータリーエンコーダ8からの回転パルスを計数
するカウンタ9aおよびこの回転パルスを分周器12で分周
したパルスを計数するカウンタ9bの各出力も与えられ、
このパルス計数値に応じてストロボ発光回路13を動作さ
せてストロボ2を発光させ、このときカメラ1による撮
影入力を行なう。
FIG. 2 shows in more detail the configuration of the portion handling data in the apparatus of FIG. 1, and the same reference numerals as those in FIG. 1 indicate the same elements. As shown in this figure, the photographing input of the camera 1 is given to the monitor TV 3 and the image memory 4. The image memory 4 is connected to the CPU 5 via the data bus, and the CPU 5 is connected to the display 6, the ten-key pad 10 and the printer 11 via the data bus. Also CP
Each output of a counter 9a that counts a rotation pulse from the rotary encoder 8 and a counter 9b that counts a pulse obtained by dividing the rotation pulse by the frequency divider 12 is also given to U,
The strobe light emitting circuit 13 is operated according to the pulse count value to cause the strobe 2 to emit light, and at this time, the camera 1 inputs a photograph.

これら第1図および第2図によって示した装置は、版胴
の回転を基準にして用紙の面から印刷バーコードを所定
数毎に撮影入力して画像データをイメージメモリ4に格
納し、CPU5で印刷バーコードの画像データを数値化する
ことによってそのバーコードに対応する数値として認識
し、カウンタ9bからの出力によりCPU5が算出した印刷さ
れるべき正しい数字とCPU5により比較演算する事により
バーコードが正しく印刷されているか否かを判定する。
この際、バーコードに異常が認められれば警報を発す
る。また警報を発すると同時に印刷機を止めたり、警報
を発しないで印刷機を止めてもよい。またこれと同時に
この格納データ認識数値と印刷されるべき正しい数字を
ディスプレイ6に表示するかプリンタ11に印字出力す
る。
The apparatus shown in FIGS. 1 and 2 stores the image data in the image memory 4 by photographing and inputting a predetermined number of print barcodes from the surface of the paper based on the rotation of the plate cylinder, and the CPU 5 Recognize as a numerical value corresponding to the barcode by digitizing the image data of the printing barcode, the barcode is calculated by the CPU 5 by the output from the counter 9b and the correct number to be printed by the CPU 5 and the barcode is calculated. It is determined whether or not it is printed correctly.
At this time, if an abnormality is found in the bar code, an alarm is issued. Further, the printing machine may be stopped at the same time when the alarm is issued, or the printing machine may be stopped without issuing the alarm. At the same time, the stored data recognition numerical value and the correct numerical value to be printed are displayed on the display 6 or printed out to the printer 11.

これをより具体的に説明すると次の通りである。This will be described more specifically as follows.

版胴7が1回転するとロータリーエンコーダ8が所定数
のパルスを出力する。このパルスはそのままカウンタ9a
に与えられる一方、テンキー10で入力された面付数に応
じて分周器12で分周され、版胴1回転につき面付数と同
数のパルスとされてカウンタ9bに与えられる。すなわ
ち、カウンタ9bは印刷面数をカウントするものである。
When the plate cylinder 7 makes one rotation, the rotary encoder 8 outputs a predetermined number of pulses. This pulse remains counter 9a
On the other hand, the frequency is divided by the frequency divider 12 in accordance with the number of surface attachments inputted by the ten-key pad 10, and the same number of pulses as the number of surface attachments per one rotation of the plate cylinder is given to the counter 9b. That is, the counter 9b counts the number of printing surfaces.

カウンタ9bから信号が与えられるとCPU5はこの時点から
ロータリーエンコーダ8のパルス数をカウントしている
カウンタ9aのカウント出力を監視し始め、カメラ1の視
野中心に印刷された番号が入った時点でカウンタ出力を
得る。すなわち、版胴7からカメラ1までの紙パスが既
知であると版胴7の回転速度によりカメラ1の視野に入
っている流れ方向の絵柄位置は計算が可能である。
When a signal is given from the counter 9b, the CPU 5 starts monitoring the count output of the counter 9a counting the number of pulses of the rotary encoder 8 from this point, and the counter is output when the number printed in the center of the visual field of the camera 1 is entered. Get the output. That is, if the paper path from the plate cylinder 7 to the camera 1 is known, the pattern position in the flow direction within the visual field of the camera 1 can be calculated by the rotation speed of the plate cylinder 7.

ここで、この実施例ではテンキー10から撮影したいバー
コードの版面上での位置座標を入力してCPU5によりカメ
ラ1の視野中心に撮影したいバーコードが入るときの版
胴位相を計算し、これをカウンタ9aに設定することによ
ってこのカウンタ9aの出力が得られるときが撮影したい
バーコードがカメラ視野に丁度入ったこととみてこの瞬
間にCPU5からストロボ発光回路13に信号を送ってストロ
ボ2を発光させ撮影する。
Here, in this embodiment, the position coordinates of the barcode to be photographed on the plate surface are input from the ten-key pad 10, the CPU 5 calculates the plate cylinder phase when the barcode to be photographed enters the center of the visual field of the camera 1, and this is calculated. When the output of this counter 9a is obtained by setting it in the counter 9a, the CPU 5 sends a signal to the strobe light emission circuit 13 to make the strobe 2 emit light at this moment, assuming that the barcode to be photographed has just entered the camera field of view. Take a picture.

ここにおいて、用紙の流れ方向に複数個設けられている
ナンバリング機を各別に監視するためには、撮影する間
隔をナンバリング機の個数では割り切れない数毎の一定
数にして撮影する。
Here, in order to separately monitor a plurality of numbering machines provided in the paper flow direction, the shooting interval is set to a constant number that is not divisible by the number of numbering machines.

尚、入力画像のタイミングをとる回転軸は、版胴と1対
1で回転する軸であれば、版胴以外の加工部中或は折部
中の軸でもよい。
The rotation axis for timing the input image may be an axis in the processing section or folding section other than the plate cylinder as long as it rotates in a one-to-one relationship with the plate cylinder.

このようにして撮影されたバーコードの画像情報をイメ
ージメモリ4に格納し、データバスを通してCPU5に取り
込む。CPU5に取り込まれたバーコードの情報処理手法を
以下第4図ないし第6図として示したフローチャートに
従って説明する。
The image information of the bar code photographed in this way is stored in the image memory 4 and taken into the CPU 5 through the data bus. The information processing method of the bar code read by the CPU 5 will be described below with reference to the flowcharts shown in FIGS. 4 to 6.

まず第4図に基づき第1回目の印刷バーコード処理につ
いて説明する。
First, the first print barcode processing will be described with reference to FIG.

第1回目の印刷バーコードをITVカメラ1より画像入力
する。この時カウンタ9bをリセットしておく。
The first print barcode is input from the ITV camera 1. At this time, the counter 9b is reset.

以後、カウンタ9bの信号を累積して行く。すなわち第1
回目の印刷バーコードを画像入力した後の印刷面数をカ
ウントする。この画像情報をイメージメモリ4に格納し
(S1)、印刷バーコードの画像情報をCPU5で第3図
(a)に示す様にバーコードの左から順に走査しスター
トコードの各バー(黒バー4本、白バー3本)の画素数
を各々カウントする(S2)。この際印刷機上の印刷用紙
が天地方向にずれるとCPU5の走査ライン上にバーコード
情報がない事がありうる。この為、スタートコードの黒
バーを検出出来たか否かを判断し(S3)、検出出来ない
場合には走査ラインを天地方向の何れか一方向に一定量
移動させ再び走査する(S4)。
After that, the signals of the counter 9b are accumulated. Ie the first
Counts the number of printing surfaces after the image of the second print barcode is input. This image information is stored in the image memory 4 (S1), and the image information of the print bar code is scanned by the CPU 5 in order from the left side of the bar code as shown in FIG. The number of pixels of each of the book and the white bar is counted (S2). At this time, if the printing paper on the printing machine shifts in the vertical direction, there may be no barcode information on the scan line of the CPU 5. Therefore, it is determined whether or not the black bar of the start code has been detected (S3), and if it cannot be detected, the scanning line is moved by a certain amount in one of the vertical directions and scanning is performed again (S4).

前述した様にバーコードは2種類の太さの黒と白のバー
にて構成されている。まずこの2種類の太さのバーの差
異を明確にしておく必要がある。この為既に読み取った
スタートコードの各バーの画素数をもとにバーが太いか
細いかを判断する為の画素数の基準値を決定する(S
5)。
As described above, the bar code is composed of two types of black and white bars of different thickness. First of all, it is necessary to clarify the difference between these two types of bar thickness. For this reason, the reference value of the number of pixels for determining whether the bar is thick or thin is determined based on the number of pixels of each bar of the start code that has already been read (S
Five).

バーの太細を判定する基準を決定したならば次のバーコ
ード(黒バー4本、白バー3本)すなわちまだ認識して
いない桁で最も左にあるコードを読みバーの太細を判定
する基準を基にこのパターンを認識する(S6)。この読
み取ったバーコードのパターンとCPU5にあらかじめ与え
られているバーコードのパターンに対応する数値の情報
コード(第3図に示す)とにより、この読み取ったバー
コードが表わす数値を認識する(S7)。
If the criterion for determining the bar thickness is determined, the next bar code (4 black bars, 3 white bars), that is, the leftmost code in the unrecognized digit is read and the bar thickness is determined. The pattern is recognized based on the standard (S6). The numerical value represented by the read bar code is recognized by the read bar code pattern and the numerical information code (shown in FIG. 3) corresponding to the bar code pattern given to the CPU 5 in advance (S7). .

この際、入力した画像の状態が悪くバーコードを数値と
して認識出来ない場合には(S8)走査ラインを天地方向
に移動し再び走査する(S9)。数値として認識出来た場
合にはこの値を記憶する(S10)。
At this time, if the input image is in a bad state and the barcode cannot be recognized as a numerical value (S8), the scanning line is moved in the vertical direction and scanning is performed again (S9). If it can be recognized as a numerical value, this value is stored (S10).

この作業をエンコードを認識するまでバーコード全幅に
わたり行なう(S11)。
This operation is performed over the entire width of the barcode until the encoding is recognized (S11).

この様にしてバーコード全幅の示す番号を認識したらこ
の番号を記憶する(S12)。
When the number indicated by the full width of the barcode is recognized in this way, this number is stored (S12).

次に第2回目以後の印刷バーコード処理について第5図
に従い説明する。
Next, the print barcode processing after the second time will be described with reference to FIG.

ステップS21からステップS24までは前述の第1回目の印
刷バーコード処理と同じであるが、バーの太細を判定す
る基準は既に決定されている為ここではこの基準を基に
バーコードの認識を行なう。ステップS25〜ステップS30
までは前述のステップS6〜ステップS11と同様である。
この様にして第2回目以後に画像入力した印刷バーコー
ドの示す番号を認識したら次に第1回目に記憶したバー
コードの番号にこれまでのカウンタ9bの累積値すなわち
第1回目のバーコードより後幾つのバーコードが印刷さ
れたかを加算する(S31)。バーコードは連続した番号
である為この加算した値は今回、画像入力した時点での
本来印刷されるべき正しい番号となる。この値と印刷バ
ーコードより認識した番号とが一致しているかを判定し
印刷バーコードに誤りがあるか否かを判定する(S3
2)。この際印刷バーコードに異常があれば警報を鳴ら
す(S33)。ただし警報を鳴らすと同時に印刷機を止め
てもよいし、警報を鳴らさないで印刷機を止めてもよ
い。
Steps S21 to S24 are the same as the above-described first print barcode processing, but the criteria for determining the thickness of the bar have already been determined, so here the barcode recognition is based on this criterion. To do. Step S25 ~ Step S30
The steps up to here are the same as steps S6 to S11 described above.
In this way, when the number indicated by the print bar code input from the second time and thereafter is recognized, the bar code number stored in the first time is added to the cumulative value of the counter 9b, that is, the first bar code. Then, the number of bar codes printed is added (S31). Since the barcodes are consecutive numbers, this added value is the correct number that should be printed originally when the image is input this time. It is determined whether this value matches the number recognized from the print barcode, and it is determined whether the print barcode has an error (S3
2). At this time, if the printed bar code is abnormal, an alarm is sounded (S33). However, the printing machine may be stopped at the same time when the alarm is sounded, or the printing machine may be stopped without sounding the alarm.

なお、これと同時にカメラ1により画像入力したバーコ
ード下方の数字の部分と、本来印刷されるべき正しい番
号とをCRT6上に併列表示する事によりオペレータは異常
の生じた番号を目視確認する事ができる。
At the same time, the operator can visually check the abnormal number by displaying the number portion below the barcode input by the camera 1 and the correct number to be printed on the CRT 6 side by side. it can.

この第5図に示す処理をバーコード印刷が終了するまで
繰り返して行ない、印刷バーコードの自動監視を行な
う。従ってバーコード印刷に異常があれば直ちに認識で
きる。
The process shown in FIG. 5 is repeated until the bar code printing is completed, and the print bar code is automatically monitored. Therefore, if there is an abnormality in the barcode printing, it can be immediately recognized.

次に第6図により印刷バーコードを画像処理して数値と
して認識する手法を説明する。これは第4図のステップ
S2,S6、第5図のステップS22,S25に値する。
Next, referring to FIG. 6, a method of image-processing a print barcode and recognizing it as a numerical value will be described. This is the step in Figure 4
It is worth S2, S6 and steps S22, S25 in FIG.

イメージメモリ4に1画素4ビットで記憶されている印
刷バーコードの各画素の濃度データを左端から走査ライ
ンに沿ってCPU5に取り出し各画素の濃度データをあらか
じめ定めたスライスレベルで切って黒画素か白画素か、
すなわち印刷されインキが付いている部分か印刷されず
用紙(白)の地肌部分であるかを判定する(S41)。黒
画素を認識するまで、次々と画素を判定して行く(S4
2)。バーコード1桁は黒バーより始まり黒バーにて終
了する。この間に黒バー4本、白バー3本がある。よっ
て最初の白画素は読み飛ばし黒画素を認識したならば、
これをカウントし(S43)次の画素を読む(S44)。この
画素が黒であれば(S45)、先の黒画素数に1を加える
(S43)。これを白画素を認識するまで続け、白画素を
認識すると黒画素の累積黒画素数を記憶する(S46)。
The density data of each pixel of the print barcode stored in the image memory 4 with 4 bits per pixel is taken out to the CPU 5 along the scanning line from the left end, and the density data of each pixel is cut at a predetermined slice level to determine whether it is a black pixel or not. White pixel
That is, it is determined whether it is a printed portion with ink or a non-printed background portion of the paper (white) (S41). Pixels are successively determined until black pixels are recognized (S4
2). The one digit bar code starts with the black bar and ends with the black bar. There are 4 black bars and 3 white bars in between. Therefore, if the first white pixel is skipped and the black pixel is recognized,
This is counted (S43) and the next pixel is read (S44). If this pixel is black (S45), 1 is added to the previous number of black pixels (S43). This is continued until a white pixel is recognized, and when the white pixel is recognized, the cumulative number of black pixels of black pixels is stored (S46).

バーコード1桁には黒バーが4本ありこの1桁は黒バー
にて終る為、黒バー4本を読んだか否かを確認し(S4
7)、4本読んだらこの処理を終了する。また黒バーが
4本未満の場合には白バーについても黒バーのステップ
S43〜S46と同様の処理を行なう(S48〜S51)。この繰り
返しを黒バー4本、白バー3本について行ない黒バー4
本目の画素数を記憶したら終了する。この処理によりバ
ーコード1桁を構成する黒バー4本と白バー3本の各々
の太さとその順列がわかる。これとバーが太い細いかを
判定する基準値により第3図に示す7ビットコードがわ
かり、前述したCPU5にあらかじめ与えられている情報コ
ードよりバーコード数値を認識することが出来る。
There are 4 black bars in 1 digit of the bar code, and this 1 digit ends at the black bar, so check if you have read 4 black bars (S4
7) After reading four books, this process ends. If the number of black bars is less than 4, the steps for black bars for white bars
The same processing as S43 to S46 is performed (S48 to S51). Repeat this for 4 black bars and 3 white bars.
When the number of pixels of the actual pixel is stored, the process ends. By this processing, the thicknesses and the permutations of the four black bars and the three white bars constituting one digit of the barcode can be known. The 7-bit code shown in FIG. 3 can be understood from this and a reference value for judging whether the bar is thick or thin, and the bar code numerical value can be recognized from the information code previously given to the CPU 5 described above.

第3図のバーコードで具体的に説明すると、バーコード
全幅48mmがイメージメモリ4の512の画素に分割され画
像入力される。この時細いバーは0.3mmであるので3ケ
の画素で、太いバーは0.75mmであるので8ケの画素で表
わされる。バーが太いか細いかを判断する基準値を5画
素とすれば5画素以下のバーは細い、5画素より大きい
バーは太いと見なされる。
Explaining in detail with the bar code in FIG. 3, the bar code full width of 48 mm is divided into 512 pixels of the image memory 4 and the image is input. At this time, the thin bar has a size of 0.3 mm and thus has 3 pixels, and the thick bar has a size of 0.75 mm and thus has 8 pixels. If the reference value for determining whether the bar is thick or thin is set to 5 pixels, a bar having 5 pixels or less is considered to be thin and a bar larger than 5 pixels is considered to be thick.

本実施例では第3図に示すバーコードについて説明を行
なったが、他の種類のバーコード例えばバーのパターン
や太さが第3図に示したものと異なっていても、第3図
に示す情報コードを変更し、第6図中の黒バーを読む数
をバーのパターンに対応して変化させれば同様の処理が
行なえる。
Although the bar code shown in FIG. 3 has been described in the present embodiment, it is shown in FIG. 3 even if the bar code of another type, for example, the bar pattern or thickness is different from that shown in FIG. The same processing can be performed by changing the information code and changing the number of black bars read in FIG. 6 in accordance with the bar pattern.

このバーコード読取り動作は次の通りである。第6図の
フローチャートにおいて、動作開始により画素を読む
(ステップS41)。画素が黒になるまで画素の読込みを
行なう(ステップS42→S41)。黒になったら黒画素が終
るまで画素を読み黒画素数を記憶する(ステップS43→S
46)。1本の黒バーについて黒画素数を記憶したらステ
ップS47を素通りして白画素数をカウントして記憶する
(ステップS48→S51)。そしてステップS43に戻り再び
黒バーの画素数を読む。黒バーの次に白画素数を読み、
これを黒バーが4本になるまで繰返す。黒バーが4本に
なったら動作終了する。これは対象とするバーコードが
黒バー4本と白画素部分との組合わせとして構成されて
いるからである。
This bar code reading operation is as follows. In the flowchart of FIG. 6, the pixel is read when the operation is started (step S41). Pixels are read until the pixels become black (steps S42 → S41). When it becomes black, the pixels are read until the black pixels are finished and the number of black pixels is stored (steps S43 → S).
46). When the number of black pixels is stored for one black bar, step S47 is directly passed and the number of white pixels is counted and stored (steps S48 → S51). Then, returning to step S43, the number of pixels of the black bar is read again. Read the number of white pixels next to the black bar,
This is repeated until there are four black bars. The operation ends when the number of black bars becomes four. This is because the target bar code is configured as a combination of four black bars and white pixel portions.

〔発明の効果〕〔The invention's effect〕

本発明は上述のように、印刷機上で連続的に印刷される
連続帳票からバーコードを画像入力した画像データを所
定タイミングで格納する手段に格納した上で、画像デー
タ処理およびコード−数値変換処理を施して数値として
認識したため、バーコードリーダのような印刷作業に対
する遅れがなく、また文字認識装置のような高価格でも
ないにも拘らず、印刷されたバーコードを迅速かつ正確
に異常検出することができる。
As described above, the present invention stores image data in which a barcode is image-input from a continuous form printed continuously on a printing machine in a means for storing at a predetermined timing, and then performs image data processing and code-numerical conversion. Since it is processed and recognized as a numerical value, there is no delay in printing work such as a bar code reader, and it is not expensive as a character recognition device, but the printed bar code is detected quickly and accurately. can do.

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

第1図は本発明の一実施例の構成を示す図、第2図は同
実施例におけるデータを取扱う各要素についての説明
図、第3図(a)、(b)は本発明が対象とするバーコ
ードの一例を示す説明図、第4図ないし第6図は本発明
装置におけるバーコード読取動作を示すフローチャー
ト、第7図は本発明に係る装置の適用対象である印刷機
の説明図である。 1……白黒カメラ、2……ストロボ、3……モニタTV、
4……イメージメモリ、5……CPU、6……ディスプレ
イ、7……版胴、8……ロータリーエンコーダ、9……
カウンタ、10……テンキー、11……プリンタ。
FIG. 1 is a diagram showing a configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram of each element handling data in the embodiment, and FIGS. 3 (a) and 3 (b) are intended for the present invention. FIG. 4 to FIG. 6 are flowcharts showing the barcode reading operation in the apparatus of the present invention, and FIG. 7 is an explanatory diagram of a printing machine to which the apparatus of the present invention is applied. is there. 1 ... monochrome camera, 2 ... strobe, 3 ... monitor TV,
4 ... Image memory, 5 ... CPU, 6 ... Display, 7 ... Plate cylinder, 8 ... Rotary encoder, 9 ...
Counter, 10 ... Numeric keypad, 11 ... Printer.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 7/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location G06T 7/00

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】連続帳票に連続的にバーコードを印刷する
印刷機上で前記印刷バーコードを画像入力する手段と、 この画像入力手段により所定数おきに前記印刷バーコー
ドを入力するためのタイミングを決定する手段と、 このタイミング決定手段の出力に応じて前記画像入力手
段から入力された画像データを格納する手段と、 この格納手段の画像データを画像データ処理およびコー
ド−数値変換することにより数値として認識する手段
と、 前記印刷機の印刷帳票枚数に応じた出力を生じる印刷枚
数検出手段と、 この検出手段の出力と前記認識手段の出力とを比較して
バーコードが正しく印刷されているか否かを判断する手
段と、 この判断手段がバーコードが正しく印刷されていないと
判断したときに信号を発する手段とをそなえた印刷バー
コード自動監視装置。
1. A means for inputting an image of the print barcode on a printing machine for continuously printing the barcode on a continuous form, and a timing for inputting the print barcode at predetermined intervals by the image input means. Determining means, means for storing the image data input from the image input means in accordance with the output of the timing determining means, and numerical value by image data processing and code-numerical conversion of the image data of the storing means. As the number of printed sheets of the printing machine, and the number of printed sheets detecting means for producing an output according to the number of printed sheets of the printing machine, and comparing the output of the detecting means with the output of the recognizing means to determine whether the bar code is correctly printed. A print bar having means for determining whether the bar code is printed and a means for issuing a signal when the judgment means determines that the barcode is not printed correctly. Over de automatic monitoring equipment.
【請求項2】特許請求の範囲第1項記載の装置におい
て、 前記画像入力手段は、 カメラと、 前記帳票面を前記印刷機の動作に関連して照明するスト
ロボとを有する印刷バーコード自動監視装置。
2. The apparatus according to claim 1, wherein the image input means includes a camera and a print bar code automatic monitoring having a strobe for illuminating the form surface in association with the operation of the printing machine. apparatus.
【請求項3】特許請求の範囲第1項記載の装置におい
て、 前記タイミング決定手段は、 前記印刷機の版胴と同じ位相で回転する軸に取付けられ
たロータリーエンコーダと、 このエンコーダの出力をカウントして前記版胴の回転位
相を検出する位相カウンタと、 前記エンコーダの出力の分周信号をカウントして所定の
帳票枚数に相当する値に達すると出力を生じる枚数カウ
ンタとを有する印刷バーコード自動監視装置。
3. The apparatus according to claim 1, wherein the timing determining unit counts an output of the rotary encoder mounted on a shaft that rotates in the same phase as the plate cylinder of the printing machine. A printing bar code automatic having a phase counter for detecting the rotational phase of the plate cylinder and a number counter for counting the frequency-divided signal of the output of the encoder and producing an output when a value corresponding to a predetermined number of sheets is reached. Monitoring equipment.
【請求項4】特許請求の範囲第1項記載の装置におい
て、 前記画像入力する手段の出力と前記数値として認識する
手段の出力とを得て、両出力を併列表示する手段、 をそなえた印刷バーコード自動監視装置。
4. The printing according to claim 1, further comprising: a means for obtaining an output of the means for inputting the image and an output of the means for recognizing the numerical value and displaying both outputs in parallel. Bar code automatic monitoring device.
JP61116220A 1986-05-22 1986-05-22 Print bar code automatic monitoring device Expired - Lifetime JPH0756665B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61116220A JPH0756665B2 (en) 1986-05-22 1986-05-22 Print bar code automatic monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61116220A JPH0756665B2 (en) 1986-05-22 1986-05-22 Print bar code automatic monitoring device

Publications (2)

Publication Number Publication Date
JPS62273864A JPS62273864A (en) 1987-11-27
JPH0756665B2 true JPH0756665B2 (en) 1995-06-14

Family

ID=14681800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61116220A Expired - Lifetime JPH0756665B2 (en) 1986-05-22 1986-05-22 Print bar code automatic monitoring device

Country Status (1)

Country Link
JP (1) JPH0756665B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01318181A (en) * 1988-06-18 1989-12-22 Dainippon Printing Co Ltd Automatic inspecting device for printed bar code
JPH0749227B2 (en) * 1989-12-22 1995-05-31 株式会社テック Package tag printer
JPH0486964A (en) * 1990-07-30 1992-03-19 Sagawa Insatsu Kk Bar code record monitoring system
US5871287A (en) * 1995-10-12 1999-02-16 International Business Machines Corporation Extended ribbon life for improved bar code printing
CN102463747A (en) * 2010-10-29 2012-05-23 北大方正集团有限公司 Variable-data bar code printing method and variable-data bar code printing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5849907B2 (en) * 1979-11-20 1983-11-07 日本電気精器株式会社 Barcode symbol printing quality inspection equipment
NL8301054A (en) * 1983-03-25 1984-10-16 Stork Screens Bv METHOD FOR CHECKING PATTERNS AND DEVICE THEREFOR

Also Published As

Publication number Publication date
JPS62273864A (en) 1987-11-27

Similar Documents

Publication Publication Date Title
CA2032941C (en) Identification mark reading apparatus
US5729001A (en) Method for evaluating a succession of bar code symbols
US5813333A (en) Automatic register control system for multi-color rotary presses, and apparatus and method for detecting registering errors
US5138667A (en) Process and device for detecting print registration marks on a web from a multi-color printing press
CN110515566B (en) Industrial ink-jet printing preview method, device, equipment and storage medium
CN110039916B (en) Printing quality detection method, computer device, and computer-readable storage medium
EP0894624B2 (en) Printing plate or printed product identifying apparatus
JP2002127374A (en) Device for deciding mounting position of press-plate
DE3321653A1 (en) SIDE PRINTING METHOD AND APPARATUS FOR CARRYING OUT THE METHOD
JPH0756665B2 (en) Print bar code automatic monitoring device
JP5182182B2 (en) Color correction method and imaging system
EP1445100A2 (en) Printed paper inspecting method and apparatus
US20060124012A1 (en) Method and device for the real time control of print images
EP1376451A2 (en) Synchronisation of components for printing
CN113163066B (en) Image correction method, image forming apparatus, and storage medium
JP2008213366A (en) Color density measuring method and apparatus of color bar in printing press, and printing press equipped with this color density measuring apparatus
CN114549423A (en) Label integrity self-adaptive detection method and system
JPH055954A (en) Reader printer for microfilm and microfilm
CA2090611A1 (en) Printer with read-after-write print quality checking
JP2662502B2 (en) Register error detecting method, register error detecting device and register adjusting automatic control device in multicolor printing press
JPH11105263A (en) Method for identification coding press plate, method and apparatus for confirming mounting of the plate
JP2800560B2 (en) Newspaper printing plate misinstallation detection device
US20240100827A1 (en) Printing apparatus
CN110472456A (en) A kind of date print accuracy detection method and system based on two dimensional code
JP2744340B2 (en) Identification mark reader