JP2680450B2 - Optically-readable automatic ticket gate - Google Patents

Optically-readable automatic ticket gate

Info

Publication number
JP2680450B2
JP2680450B2 JP1299274A JP29927489A JP2680450B2 JP 2680450 B2 JP2680450 B2 JP 2680450B2 JP 1299274 A JP1299274 A JP 1299274A JP 29927489 A JP29927489 A JP 29927489A JP 2680450 B2 JP2680450 B2 JP 2680450B2
Authority
JP
Japan
Prior art keywords
image
ticket
ticket gate
automatic ticket
reading
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
JP1299274A
Other languages
Japanese (ja)
Other versions
JPH03157789A (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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal 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 Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP1299274A priority Critical patent/JP2680450B2/en
Publication of JPH03157789A publication Critical patent/JPH03157789A/en
Application granted granted Critical
Publication of JP2680450B2 publication Critical patent/JP2680450B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

本発明は、自動改札機本体に挿入された乗車券や入場
券等を光学的に読取り、その結果に基づいてドアを開閉
制御するようにした自動改札機に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic ticket gate that optically reads a ticket, an entrance ticket, or the like inserted in an automatic ticket gate body and controls opening and closing of a door based on the result.

【従来の技術】[Prior art]

従来、自動改札機としては磁気読取式のものが知られ
ている。この従来の磁気読取式自動改札機は、自動改札
機本体(以下、本体という)の挿入口に挿入された乗車
券や入場券等(以下、代表的に乗車券という)を搬送機
構で排出口まで搬送する間に、その乗車券に記録されて
いる磁気データを磁気ヘッドで読取り、その読取ったデ
ータをマイクロコンピュータを中心に構築された制御器
で演算処理し、その演算結果により、ドアまたはバーを
開閉制御するように構成されている。
Conventionally, a magnetic reading type ticket is known as an automatic ticket gate. This conventional magnetic-reading automatic ticket gate uses a transport mechanism to eject a ticket or admission ticket (hereinafter typically referred to as a ticket) that is inserted into the insertion slot of the automatic ticket gate body (hereinafter referred to as the main body). While it is being transported to, the magnetic data recorded on the ticket is read by a magnetic head, and the read data is processed by a controller built around a microcomputer. Is configured to be controlled to be opened and closed.

【発明が解決しようとする課題】[Problems to be solved by the invention]

しかしながら、上記従来の自動改札機は、乗車券に記
録されている磁気データに基づいて制御されるように構
成されているため、自動改札機で使用される乗車券は、
磁気記録のできるものである。 したがって、従来の自動改札機は、磁気記録式の自動
券売機と対となって、初めて自動改札の機能を果すこと
ができるように構成されているため、自動改札システム
の設備費が嵩む欠点があった。 このような欠点を解決するために、磁気記録面を持た
ない普通の乗車券を光学的に読取り、この読取った情報
の演算結果に基づいて自動改札機を制御することが提案
されている。 この提案に係る光学読取式自動改札機は、撮像された
券面の画像を所定の基準の切出しフォーマットによりブ
ロック毎に切出し、そして切出した画像を基準パターン
と比較して判読するようになっている。 しかし、券面の印字状態は印字位置のバラツキや搬送
ムラにより、例え同一券面を撮像しても画像データが一
様でない。したがって、撮像画像のバラツキを考慮せず
に画一的に切出し処理したときは、切出しデータに誤差
を含み、このような切出しデータを基に読取りを行なう
と誤判定をするおそれがあった。 そこで、本発明は、上記課題を解決するためになされ
たものであって、その目的は、乗車券の券面の印字に通
常発生する程度のバラツキがあっても、また搬送ムラが
あっても、正確に切出すことのできる光学読取式自動改
札機の提供にある。
However, since the above-mentioned conventional automatic ticket gate is configured to be controlled based on the magnetic data recorded in the ticket, the ticket used in the automatic ticket gate is
It can be magnetically recorded. Therefore, the conventional automatic ticket gate is paired with the magnetic recording type automatic ticket vending machine so that the automatic ticket gate function can be achieved for the first time. there were. In order to solve such a drawback, it has been proposed to optically read an ordinary ticket without a magnetic recording surface and control the automatic ticket gate based on the calculation result of the read information. The optical reading type automatic ticket gate according to this proposal is designed to cut out an image of a picked-up ticket face for each block in a predetermined reference cutting-out format, and read the cut-out image in comparison with a reference pattern. However, the printing state of the face of the bill is not uniform even if the same face of the bill is picked up due to variations in printing position and uneven transportation. Therefore, when the cutout processing is performed uniformly without considering the variation of the picked-up image, the cutout data may include an error, and there is a possibility that an erroneous determination may be made if reading is performed based on such cutout data. Therefore, the present invention has been made in order to solve the above-mentioned problems, and the purpose thereof is even if there is a degree of variation that normally occurs in printing of the face of a ticket, or even if there is uneven transport, It is to provide an optical reading type automatic ticket gate that can cut out accurately.

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するために、本発明に係る光学読取式
自動改札機は第1図のようにa〜gで構成されている。 撮像手段aは、自動改札機本体に挿入された乗車券の
券面を撮像するものである。 位置検出手段bは、撮像された画像の特定位置を検出
するものである。 画像誤差検出手段cは、検出された特定部分の位置と
予め記憶されている基準位置とから、撮像された画面の
誤差を検出するものである。 切出し手段dは、予め切出しフォーマット記憶部に格
納されている切出しフォーマットにより、誤差を補正し
ながら撮像された画像を切出すものである。 判読手段eは、予め文字パターン記憶部に格納されて
いる所定の照合幅を有する文字,数字または記号のパタ
ーンを用いて各切出し画像毎に判読するものである。 判定手段fは、判読されたデータを基に、その乗車券
で改札通路の通過を許可するか否かを判定するものであ
る。 ドア制御手段gは、判定結果に基づいてドアを開閉制
御するものである。
In order to achieve the above object, the optical reading type automatic ticket gate according to the present invention is constituted by a to g as shown in FIG. The image pickup means a picks up an image of the ticket face of the ticket inserted in the main body of the automatic ticket gate. The position detecting means b detects a specific position of the captured image. The image error detection means c detects an error of the imaged screen from the detected position of the specific portion and the previously stored reference position. The cutting-out means d cuts out the imaged image while correcting the error by the cutting-out format stored in the cutting-out format storage unit in advance. The reading means e is used to read each cut-out image using a pattern of characters, numbers or symbols having a predetermined matching width which is stored in advance in the character pattern storage unit. The judging means f judges, based on the read data, whether or not the ticket allows passage through the ticket gate passage. The door control means g controls the opening and closing of the door based on the determination result.

【作用】[Action]

本発明に係る光学読取式自動改札機は、撮像した画像
について特定部分の位置を検出し、これと基準位置とか
ら誤差を求め、この誤差を補正しながら所定の区画を切
出し、その切出した画像毎に判読する。そして、その判
読結果を判定し、判定結果に基づいてドアの開閉制御を
行なうように作用する。
The optical reading type automatic ticket gate according to the present invention detects the position of a specific portion in a captured image, obtains an error from this and a reference position, cuts out a predetermined section while correcting this error, and cuts out the image. Read each time. Then, the judgment result is judged, and the door opening / closing control is performed based on the judgment result.

【実施例】【Example】

以下、図面に基づいて本発明の一実施例に係る光学読
取式自動改札機を説明する。 第2図は、実施例に係る自動改札機Aの内部の概略構
成を示した正面図であって、本体1の挿入口2と排出口
3との間には、挿入口2から挿入された乗車券イを排出
口3まで搬送するための搬送機構4が設けられている。 この搬送機構4は、従来の磁気読取式自動改札機の搬
送機構と同じく、モータMによって回転駆動されるエン
ドレスベルトから構成されている。そして、そのうちの
挿入口2に近い部分は、挿入された乗車券イを整列させ
る整列搬送路4aを、また整列搬送路の下流側の部分は、
搬送中の乗車券イを光学的に読取り、さらに必要に応じ
てパンチング処理するための主搬送路4bを構成してい
る。したがって、主搬送路4b上には、搬送中の乗車券イ
を光学的に読取るためのCCDカメラからなる撮像器5
と、この撮像器よりも下流側に乗車券イにパンチングす
るためのパンチングユニット6が設けられている。 図中、Dはドアであって、従来の自動改札機と同様
に、利用客の通過を許可するとき開かれるもので、後述
の制御器の指令により開閉駆動される。また、Wは挿入
された乗車券イが回収券か返却券かにより、制御器の指
令により上,下動するウイングである。 制御器Cは、第3図のブロック図に示すように構成さ
れている。すなわち、システムプログラムの格納されて
いるROM10aと、ワーキングプログラムの格納されている
RAM10bにより演算処理する中央処理部(CPU)10とから
なる、いわゆるマイクロコンピュータを中心に構成され
ている。 CPU10には、挿入された乗車券イの券面を撮像した画
面を所定の区画毎に切出すための切出しフオーマットの
テーブルが格納されている切出しフォーマット記憶部11
と、判読時に基準となる文字,数字,記号またはこれら
の組合せのパターンが格納されている文字パターン記憶
部12とが接続されている。 なお、これらの記憶部11,12はRAM10bの記憶容量を大
きくしてRAMで兼ねさせるようにすることも可能であ
る。 また、CPU10には、I/Oユニット13を介して撮像器5の
画像処理回路14と、パンチングユニット6の駆動回路15
と、ドアDの駆動回路16とが接続されている。なお、CP
U10にはI/Oユニット13を介して駆動モータMの駆動回路
や乗車券イの搬送位置を検出するセンサの回路等が接続
されているが、ここでは省略されている。 以上の構成に基づく本実施例の自動改札機Aの基本的
動作は、第4図のゼネラルフローチャートに従って行な
われる。 先ず、乗車券イが本体1の挿入口2に挿入されると動
作が開始される(ステップ100肯定)。挿入された乗車
券イは搬送機構4により搬送される間に、撮像器5によ
り撮像処理される(ステップ102)。すなわち、乗車券
イが長尺方向に搬送される間、撮像器5は乗車券イの短
尺方向に間欠的にスキャンする。スキャンによって得ら
れた信号は画像処理回路14で2値化されて順次RAM10bに
記憶される。 次いで、切出し処理(ステップ104)が行なわれる。
この切出し処理は、照合線を用いて行なわれる。例え
ば、挿入された乗車券イが第5図(a)に示されるよう
に、新宿駅からA社(自社)線で東京駅まで乗車し、東
京駅からB社(他社)線で120円区間まで乗車する額面2
40円の乗継券の券面パターンであるとする。 照合線、撮像されたデータから券面の空白部分(印字
ドットが存在しない部分)に仮想線(第5図(a)の点
線)を引き、この仮想線が切出しフォーマット記憶部11
に予め記憶されている照合線テーブルのいずれの照合線
に符合するかが判断される。したがって、第5図(a)
の券面の場合は、同図(b)に示されるフォーマット照
合線が抽出される。 切出しフオーム記憶部11には、第5図(c)に示され
るような各照合線に対応した切出しフォーマット(以
下、FTCフォーマットという)が記憶されている(同図
(c)は同図(b)に対応したFTCフォーマットであ
る)ので、照合線が抽出されると、これに対応したFTC
フォーマットが抽出される。 FTCフォーマットが抽出されると、文字,数字,記号
が「新宿から」,「240」,「円」,「東京」,方向記
「120」及び「円」に区画されて切出されるが(ステッ
プ108)、その前に、この切出し処理が正確に行なわれ
るように、画像補正処理が行なわれる(ステップ10
6)。 この画像補正処理は本発明の特徴をなすものであっ
て、後に詳述するが、乗車券イが搬送機構4で搬送され
る際に通常生じる搬送ムラ、あるいは通常生じる印字位
置のバラツキによって生じる画像データの誤差(以下、
ズレというときもある。)を検出し、これを補正するも
のである。 切出し処理の後、切出されたブロック毎に判読処理が
行なわれる(ステップ110)。この判読処理は文字パタ
ーン記憶部12に記憶されている基準となる文字,数字ま
たは記号のパターンを用いて行なわれる。第6図(a)
は駅名「東京」の画像データであり、また同図(b)は
これに対応する基準文字の照合テーブルのパターンが例
示されている。この両図から明らかなように、照合テー
ブルの方は、数ドット(例えば2ドット)分広げたテー
ブルとなっている。このように、照合テーブルに所定の
幅、すなわち、所定の照合幅を持たせるのは、画像デー
タに多少のズレがあっても効率よく判読可能とするため
である。 したがって、実験的に求められたある一定の範囲以上
であれば、対象とされる文字または数値が照合テーブル
の文字または数値と判読される。 判読は、全ての切出されたブロックに優先順位を付け
て判読される。なぜならば、例えば、日付の切出しブロ
ックの判読において、有効期間以外のものと判読されれ
ば、その他の切出しブロックを判読するまでもなく、そ
の挿入された乗車券をエラーとして処理することができ
るからである。 判読処理後、判定処理が行なわれる(ステップ11
2)。すなわち、判定処理は挿入された乗車券イにより
改札通路の通過を許可してもよいか否かを判定するもの
で、その判定が肯定のときは(ステップ112,114肯
定)、従来の磁気読取式の自動改札機と同様に、ドア駆
動回路16が駆動されてドアDが開かれる(ステップ11
6)。なお、ノーマルオープン型の場合はドアが開かれ
たままに保たれる。 これに対して、通過を許可しないと判定されたときは
(ステップ114否定)、その挿入された乗車券イは、利
用客へ返却されるとともに、ドア駆動回路16はドアDを
閉状態に維持し(ノーマルオープン型の場合はドアを閉
じ)、さらにその乗車券イでは通過できない旨のエラー
処理がなされる(ステップ118)。 上記第4図のステップ106の画像補正処理は、撮像さ
れた画像データが切出しフォーマット記憶部11に記憶さ
れている基準のデータとどの程度のズレがあるかを検出
するものである。 そこで、本実施例に係る自動改札機においては、券面
の定位置に必ず現われる行先方向を示す 記号(以下三角マークという)イ′の撮像位置を検出
し、この検出位置が基準データとどの程度の差があるか
を検出するようにしている。 第7図,第8図は第1の画像補正処理例であって、三
角マークを4バイトの走査線でスキャンしてその先端ロ
の位置を検出し、その先端を基準データと比較して、ズ
レを計算することを骨子とする。 さらに、詳述すると、今、券面が第7図矢印ハ方向へ
搬送されているとする。そして、所定位置ニからスキャ
ンが実線の矢印方向へ開始されると(ステップ200)、
先ず最初の1バイト分の測定が行なわれ、その1バイト
分が先端ロに達したかが判断される(ステップ202,20
4)。その最初の1スキャンが終了すると次のスキャン
が行なわれ、順次、先端ロが検出されるまで繰返される
(ステップ204,206否定,208)。 先端ロが検出されると(ステップ204肯定)、その先
端ロの位置が基準データの位置と比較される。すなわ
ち、先端ロの位置を固定し、基準データ(2値データ)
を左へ順次シフトする。このシフトの際、そのシフト回
数をカウントし、かつキャリーフラグの立っているとこ
ろまでシフトする(ステップ212,214,216否定)。そし
て、キャリーフラグの立っているところ、すなわち、基
準データにおける先端ロの位置にきたらシフトを中止す
る(ステップ216肯定)。次いでシフトカウント数を基
にズレが計算される(ステップ218)。 ズレが判明すれば、撮像データと基準データとの差が
定量的に明確になり、次の切出し処理時に、ズレを補正
して切出すことができる。 第9図,第10図は第2の画像補正処理例であって、三
角マークイ′の中心位置(第9図の一点鎖線位置)を検
出し、これを基準データと比較するようにしている。 先ず、三角マークイ′の所定位置から3バイトの走査
線でスキャンし、中央位置が求められ、その位置はRAM1
0bに記憶される(ステップ300〜304)。 次いで、上記走査線に一定値加えた次の走査線が求め
られ、その走査線でスキャンされ、同様に中央位置が求
められる(ステップ306,308否定)。 一例として、4本の走査線のスキャンで4つの中央位
置が求められたら、これを平均して撮像された画像の位
置として検出される(ステップ308肯定,310)。そし
て、この検出された位置が基準データとどの程度ズレて
いるかが検出される(ステップ312)。 ズレが判明すれば、撮像データと基準データとの差が
定量的に明確になり、次の切出し処理時にそのズレを補
正して正確に切出すことができる。 なお、上述の例では、走査線を4本としたが、これ以
上であってもよく、あるいは2本または3本であっても
よい。しかし、4本程度でほぼ正確な中央位置を検出す
ることができる。もちろん、5本以上としてもよいが、
この場合は、正確度は向上するが処理時間が多くなり得
策でない。 以上のように、本実施例に係る自動改札機Aは、撮像
器5で撮像した画像のうち、特定の部分、例えば行先方
向を示すマークなど、乗車券の定位置に位置し、現われ
る文字や図形などの位置を検出してズレを測定し、この
ズレを補償して切出し、切出された画像毎に所定の照合
幅を有する照合テーブルのデータを用いて判読して、そ
の判読結果を判定し、その判定結果によりドアを開閉制
御するようにしたので、切出しを正確に行うことができ
るとともに、効率よく判読することができる。
An optical reading type automatic ticket gate according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a front view showing a schematic internal structure of the automatic ticket gate A according to the embodiment, which is inserted from the insertion opening 2 between the insertion opening 2 and the discharge opening 3 of the main body 1. A transport mechanism 4 for transporting the ticket a to the discharge port 3 is provided. The transport mechanism 4 is composed of an endless belt which is rotationally driven by a motor M, like the transport mechanism of a conventional magnetic reading type automatic ticket gate. And, the part near the insertion port 2 is the alignment conveyance path 4a for aligning the inserted tickets a, and the part on the downstream side of the alignment conveyance path is
A main transport path 4b is configured to optically read the ticket B being transported and to perform punching processing if necessary. Therefore, on the main conveyance path 4b, the image pickup device 5 including a CCD camera for optically reading the ticket B being conveyed
Further, a punching unit 6 for punching a ticket B is provided on the downstream side of the image pickup device. In the figure, D is a door, which is opened when the passage of a passenger is permitted, like a conventional automatic ticket gate, and is opened and closed by a command from a controller described later. W is a wing that moves up and down according to a command from the controller depending on whether the inserted ticket a is a collection ticket or a return ticket. The controller C is configured as shown in the block diagram of FIG. That is, the ROM 10a in which the system program is stored and the working program in which it is stored
A so-called microcomputer mainly including a central processing unit (CPU) 10 that performs arithmetic processing by the RAM 10b is configured. The CPU 10 stores a cut-out format table for cutting out the image of the face of the inserted ticket A in a predetermined format.
Is connected to a character pattern storage unit 12 in which patterns of characters, numbers, symbols, or a combination thereof, which serve as a reference at the time of reading, are stored. It is also possible to increase the storage capacity of the RAM 10b for these storage units 11 and 12 so that the RAM also serves as the storage unit. Further, the CPU 10 includes an image processing circuit 14 of the image pickup device 5 and a driving circuit 15 of the punching unit 6 via the I / O unit 13.
And the drive circuit 16 of the door D are connected. Note that CP
A drive circuit for the drive motor M, a circuit for a sensor for detecting the transport position of the ticket a, and the like are connected to the U10 via the I / O unit 13, but they are omitted here. The basic operation of the automatic ticket gate A of the present embodiment based on the above configuration is performed according to the general flow chart of FIG. First, when the ticket a is inserted into the insertion slot 2 of the main body 1, the operation is started (Yes at step 100). The inserted ticket B is imaged by the image pickup device 5 while being conveyed by the conveying mechanism 4 (step 102). That is, while the ticket a is being conveyed in the long direction, the imaging device 5 intermittently scans the ticket a in the short direction. The signal obtained by scanning is binarized by the image processing circuit 14 and sequentially stored in the RAM 10b. Then, the cutout process (step 104) is performed.
This cutout process is performed using the matching line. For example, as shown in Fig. 5 (a), the inserted ticket a is taken from Shinjuku Station to Tokyo Station on Company A (own company) line, and then 120 yen section from Tokyo Station to Company B (other company) line. Face value 2 to get on
It is assumed that it is the face pattern of a transfer ticket of 40 yen. A virtual line (dotted line in FIG. 5 (a)) is drawn from the collation line and the imaged data to a blank portion (portion where print dots do not exist) of the bill face, and this virtual line is cut out and stored in the format storage unit 11
Which matching line of the matching line table stored in advance is matched. Therefore, FIG.
In the case of the bill, the format matching line shown in FIG. The cut-out form storage unit 11 stores a cut-out format (hereinafter referred to as FTC format) corresponding to each matching line as shown in FIG. 5C (FIG. ) Is compatible with the FTC format), so when the matching line is extracted, the FTC format corresponding to this
The format is extracted. When the FTC format is extracted, the letters, numbers, and symbols are “From Shinjuku”, “240”, “Yen”, “Tokyo”, and direction symbols. The image is divided into “120” and “circles” and cut out (step 108), but before that, an image correction process is performed so that this cutting out process is accurately performed (step 10).
6). This image correction process, which is a feature of the present invention, will be described in detail later, but an image caused by uneven transportation that normally occurs when the ticket a is transported by the transport mechanism 4 or variation in the printing position that normally occurs. Data error (below,
Sometimes there is a gap. ) Is detected and is corrected. After the cutting process, the reading process is performed for each of the cut blocks (step 110). This reading process is performed using the reference character, number, or symbol pattern stored in the character pattern storage unit 12. FIG. 6 (a)
Is the image data of the station name "Tokyo", and FIG. 9B shows the pattern of the reference table of the corresponding reference characters. As is clear from these figures, the collation table is a table expanded by several dots (for example, 2 dots). As described above, the collation table has a predetermined width, that is, a predetermined collation width, so that the collation table can be efficiently read even if the image data has some deviation. Therefore, if it is over a certain range experimentally obtained, the target character or numerical value is read as the character or numerical value in the matching table. The reading is performed by prioritizing all the cut blocks. This is because, for example, in reading the cut-out block of the date, if it is read as something other than the valid period, the inserted ticket can be processed as an error without reading the other cut-out blocks. Is. After the reading process, the determination process is performed (step 11).
2). That is, the determination process is to determine whether or not passage of the ticket passage may be permitted by the inserted ticket B. When the determination is affirmative (steps 112 and 114 affirmative), the conventional magnetic reading type Similar to the automatic ticket gate, the door drive circuit 16 is driven to open the door D (step 11).
6). Note that in the case of the normally open type, the door is kept open. On the other hand, when it is determined that the passage is not permitted (No at step 114), the inserted ticket B is returned to the passenger and the door drive circuit 16 keeps the door D in the closed state. (The door is closed in the case of the normally open type), and error processing is performed to the effect that the ticket B cannot be passed (step 118). The image correction processing of step 106 in FIG. 4 is to detect how much the captured image data deviates from the reference data stored in the cutout format storage unit 11. Therefore, in the automatic ticket gate according to the present embodiment, the destination direction that always appears at a fixed position on the face of the ticket is shown. An image pickup position of a symbol (hereinafter referred to as a triangle mark) a'is detected, and it is detected how much the detected position differs from the reference data. FIGS. 7 and 8 show a first image correction processing example, in which the triangular mark is scanned with a 4-byte scanning line to detect the position of the leading end b, and the leading end is compared with reference data. The point is to calculate the deviation. Furthermore, in detail, it is assumed that the bill surface is now conveyed in the direction of arrow C in FIG. Then, when the scan is started from the predetermined position D in the direction of the solid arrow (step 200),
First, the measurement for the first 1 byte is performed, and it is determined whether or not the 1 byte has reached the leading end (steps 202, 20).
Four). When the first one scan is completed, the next scan is performed, and the sequence is repeated until the front end B is detected (steps 204, 206, NO, 208). When the leading end b is detected (Yes at step 204), the position of the leading end b is compared with the position of the reference data. That is, the position of the tip b is fixed and the reference data (binary data)
Are sequentially shifted to the left. At the time of this shift, the number of times of the shift is counted, and the shift is performed up to the place where the carry flag is set (steps 212, 214, 216 negative). Then, when the carry flag is set, that is, when the position of the leading end B in the reference data is reached, the shift is stopped (step 216: Yes). Then, the shift is calculated based on the shift count number (step 218). If the deviation is found, the difference between the image pickup data and the reference data becomes quantitatively clear, and the deviation can be corrected and cut out at the time of the next cutout processing. 9 and 10 show a second image correction processing example in which the center position of the triangular mark I '(dashed line position in FIG. 9) is detected and compared with the reference data. First, the center position is obtained by scanning with a 3-byte scanning line from the predetermined position of the triangle mark ‘
It is stored in 0b (steps 300 to 304). Next, the next scanning line obtained by adding a certain value to the above scanning line is obtained, and the scanning line is scanned, and similarly the center position is obtained (steps 306, 308 negative). As an example, when four central positions are obtained by scanning four scanning lines, the central positions are averaged and detected as positions of the imaged image (Yes at step 308, 310). Then, it is detected how much the detected position deviates from the reference data (step 312). If the deviation is found, the difference between the image data and the reference data becomes quantitatively clear, and the deviation can be corrected and the accurate cutting can be performed in the next cutting processing. Although the number of scanning lines is four in the above-mentioned example, the number of scanning lines may be more, or two or three. However, the center position can be detected almost accurately with about four lines. Of course, five or more may be used,
In this case, the accuracy is improved but the processing time is long, which is not a good idea. As described above, in the automatic ticket gate A according to the present embodiment, a character that appears at a specific portion of the image picked up by the image pickup device 5, such as a mark indicating the direction of the destination, at a fixed position on the ticket, appears. Positions such as figures are detected and deviations are measured, the deviations are compensated and cut out, and each cut out image is read using the data in the matching table with a specified matching width, and the reading result is judged. Since the door is controlled to be opened / closed based on the result of the determination, the cutout can be performed accurately and the legibility can be efficiently read.

【発明の効果】【The invention's effect】

本発明に係る光学読取式自動改札機は、撮像手段で撮
像した画像のうち、特定の部分の位置を検出してズレを
測定し、このズレを補償して撮像した画像を切出し、切
出された画像毎に所定の照合幅を有するパターンと照合
して判読して、その判読結果を判定し、その判定結果に
よりドアを開閉制御するようにしたので、切出しを正確
に行なうことができる。このため、印字ズレや搬送ムラ
があっても誤った読取りの発生を未然に防止することが
できるとともに、効率よく判読することかできる。
The optical reading type automatic ticket gate according to the present invention detects the position of a specific portion in the image picked up by the image pickup means, measures the shift, cuts out the picked up image by compensating for this shift, and cuts it out. Since each image is read by collating it with a pattern having a predetermined collation width, the reading result is determined, and the opening / closing control of the door is performed based on the determination result, the cutting can be performed accurately. For this reason, it is possible to prevent erroneous reading from occurring even if there is print misalignment or transport unevenness, and it is possible to efficiently read.

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

第1図は本発明に係る光学読取式自動改札機の構成上の
特徴を表わした全体構成図、第2図は本発明の一実施例
に係る自動改札機の概略構成図、第3図は制御器の概略
構成を示すブロック図、第4図は制御器の制御プログラ
ムの概略を示すフローチャート、第5図は切出し手順を
説明する説明図、第6図は画像データと照合テーブルの
説明図、第7図は画像補正処理の一例の説明図、第8図
はそのフローチャート、第9図は画像補正処理の他の例
の説明図、第10図はそのフローチャートである。 1……本体、 2……挿入口、 3……排出口、 4……搬送機構、 5……撮像器、 6……パンチングユニット、 A……光学読取式自動改札機、 10……CPU、 11……切出しフォーマット記憶部、 12……文字パターン記憶部。
FIG. 1 is an overall configuration diagram showing the structural features of the optical reading type automatic ticket gate according to the present invention, FIG. 2 is a schematic configuration diagram of the automatic ticket gate according to one embodiment of the present invention, and FIG. FIG. 4 is a block diagram showing a schematic configuration of a controller, FIG. 4 is a flow chart showing an outline of a control program of the controller, FIG. 5 is an explanatory diagram illustrating a cutting procedure, FIG. 6 is an explanatory diagram of image data and a collation table, FIG. 7 is an explanatory view of an example of the image correction processing, FIG. 8 is its flowchart, FIG. 9 is an explanatory view of another example of the image correction processing, and FIG. 10 is its flowchart. 1 ... Main body, 2 ... Insertion port, 3 ... Ejection port, 4 ... Transport mechanism, 5 ... Imaging device, 6 ... Punching unit, A ... Optical reading automatic ticket gate, 10 ... CPU, 11 …… Cutout format storage section, 12 …… Character pattern storage section.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】自動改札機本体に挿入された乗車券あるい
は入場券等の券面を撮像する撮像手段と、 撮像された画像の特定部分の位置を検出する位置検出手
段と、 検出された特定部分の位置と予め記憶されている基準位
置とから、撮像された画面位置の誤差を検出する画像誤
差検出手段と、 予め切出しフォーマット記憶部に格納されている切出し
フォーマットにより、検出された誤差を補正しながら撮
像された画像を切出す切出し手段と、 予め文字パターン記憶部に格納されている、所定の照合
幅を有する文字,数字または記号のパターンを用いて各
切出し画像毎に判読する判読手段と、 判読されたデータを基に、その乗車券等で改札通路の通
過を許可するか否かを判定する判定手段と、 判定結果に基づいてドアを開閉制御するドア制御手段
と、 からなることを特徴とする光学読取式自動改札機。
Claim: What is claimed is: 1. An image pickup means for picking up an image of a ticket face or an entrance ticket inserted in the main body of an automatic ticket gate, a position detecting means for detecting a position of a specific portion of the picked-up image, and a detected specific portion. The image error detection means for detecting the error of the imaged screen position from the position of the image and the previously stored reference position, and the detected error is corrected by the cutout format stored in the cutout format storage unit in advance. While cutting out means for cutting out the imaged image, reading means for reading out each cut-out image using a pattern of characters, numbers or symbols having a predetermined collation width, which is stored in advance in the character pattern storage section, Based on the deciphered data, a judging means for judging whether or not the ticket or the like is allowed to pass through the ticket gate, and a door control hand for controlling the opening and closing of the door based on the judgment result. If, optical reading type automatic ticket gate, characterized by comprising.
JP1299274A 1989-11-16 1989-11-16 Optically-readable automatic ticket gate Expired - Lifetime JP2680450B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1299274A JP2680450B2 (en) 1989-11-16 1989-11-16 Optically-readable automatic ticket gate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1299274A JP2680450B2 (en) 1989-11-16 1989-11-16 Optically-readable automatic ticket gate

Publications (2)

Publication Number Publication Date
JPH03157789A JPH03157789A (en) 1991-07-05
JP2680450B2 true JP2680450B2 (en) 1997-11-19

Family

ID=17870426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1299274A Expired - Lifetime JP2680450B2 (en) 1989-11-16 1989-11-16 Optically-readable automatic ticket gate

Country Status (1)

Country Link
JP (1) JP2680450B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62206697A (en) * 1986-03-07 1987-09-11 株式会社日立製作所 Optical automatic ticket checker

Also Published As

Publication number Publication date
JPH03157789A (en) 1991-07-05

Similar Documents

Publication Publication Date Title
JP3728770B2 (en) Document reader
KR100623946B1 (en) Paper discriminator
JP2680450B2 (en) Optically-readable automatic ticket gate
US6481624B1 (en) Method and apparatus for processing documents to distinguish various types of documents
JP4315244B2 (en) Bill serial number reading device and bill serial number reading method
US9478089B2 (en) System for handling valuable documents
JP2680449B2 (en) Optically-readable automatic ticket gate
JP3088841B2 (en) Ticket reader
JP2000259764A (en) Medium processor
US20190163938A1 (en) Control method of card reader and card reader
JPH089798Y2 (en) Automatic ticket gate
US10652413B1 (en) System and method for page set separation based on identifier on scanned page
JP2003058931A (en) Device and method for processing form
JP2004025691A (en) Medium handling device
JP3926944B2 (en) Mail reading device and mail reading method
JP2577491B2 (en) Card handling equipment for cash handling equipment
JPS6297087A (en) Paper money discrimination system for automatic depositor
JP2814693B2 (en) Card device
JPH0887646A (en) Bankbooks processor
JP2638031B2 (en) Passbook printer
JPH0221385A (en) Printer
JPH037995B2 (en)
JP2002251525A (en) Processor and method for processing document
JPH04135874A (en) Record medium processor
JP2005321880A (en) Paper sheet identification device and method