JPH05307632A - Optical card recording / reading method - Google Patents

Optical card recording / reading method

Info

Publication number
JPH05307632A
JPH05307632A JP4110519A JP11051992A JPH05307632A JP H05307632 A JPH05307632 A JP H05307632A JP 4110519 A JP4110519 A JP 4110519A JP 11051992 A JP11051992 A JP 11051992A JP H05307632 A JPH05307632 A JP H05307632A
Authority
JP
Japan
Prior art keywords
mark
marks
reading
recording
information
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
JP4110519A
Other languages
Japanese (ja)
Inventor
Shinji Nureki
伸二 濡木
Hiroshi Nonaka
啓 野中
Takashi Ishida
隆 石田
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP4110519A priority Critical patent/JPH05307632A/en
Publication of JPH05307632A publication Critical patent/JPH05307632A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 光学式カード処理装置における情報の記録密
度を高める。 【構成】 白または黒の同一極性のマークが5個以上連
続しないようにマークを構成し、読み取り時にはマーク
の長さからマークの個数を判定することで記録時と読み
取り時のピッチの誤差の許容量を大きくした。また、読
み取り時にはAD変換したマークの濃度データを元に、
マーク濃度の変化点前後の最大、最小値の中点、あるい
は濃度データの隣接する2点間の差分データの極大、極
小点からマークの正確な変化点を求めてマークの個数を
計算するようにした。 【効果】 記録時と読み取り時のピッチのずれや、マー
クやカードの濃度変化に対して安定した読み取りが可能
になり、記録密度を高めることができる。
(57) [Abstract] [Purpose] To increase the recording density of information in an optical card processing device. [Structure] Marks are configured so that five or more marks of the same polarity, black or white, do not continue, and the number of marks is determined from the length of the mark at the time of reading to allow for a pitch error between recording and reading. Increased capacity. In addition, at the time of reading, based on the density data of the AD-converted mark,
Calculate the number of marks by obtaining the exact change point of the mark from the midpoint of the maximum and minimum values before and after the change point of the mark density, or the maximum and minimum points of the difference data between two adjacent points of the density data. did. [Effect] It becomes possible to perform stable reading against a deviation in pitch between recording and reading and a change in the density of marks or cards, and it is possible to increase the recording density.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、光学検出用マークで情
報の記録、読み取りを行なうカード処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card processing device for recording and reading information with optical detection marks.

【0002】[0002]

【従来の技術】従来、最も広く利用されている光学式マ
ークの記録・読み取りはバーコードを用いたものが良く
知られている。しかしながら、バーコードの読み取りは
手動でマークを走査することを前提に考慮されているた
め、以下のような問題がある。即ち、バーコードの基本
原理は、0か1かの情報をワイド、ナローの2種類のマ
ークに対応させ、このマークを白と黒で交互に記録する
ことで情報に変換していたため、情報を記録するために
は記録・読み取りの最小幅であるナローマークと、それ
よりも大きい記録幅のワイドマークとを組み合せる必要
がある。このため、同一ピッチで0を白、1を黒として
記録する方法に対して、1〜2倍の記録面積が必要とな
っていた。
2. Description of the Related Art Conventionally, a bar code is well known for recording and reading the most widely used optical mark. However, since the reading of the barcode is considered on the assumption that the mark is manually scanned, there are the following problems. That is, the basic principle of the bar code is to convert information of 0 or 1 into information by making it correspond to two types of marks, wide and narrow, and recording these marks alternately in black and white. In order to record, it is necessary to combine a narrow mark, which is the minimum recording / reading width, and a wide mark, which has a recording width larger than that. Therefore, the recording area is required to be 1 to 2 times that of the method of recording 0 as white and 1 as black at the same pitch.

【0003】一方、機械でマークを走査する方法に対し
ては書き込み、読み取りの走査ピッチが安定しているこ
と、情報内容による記録面積の増減がないことから、
0、1を白、黒に対応させて同一ピッチで記録する方法
が行なわれている。このようなカード処理装置では、固
定の位置でマークを検出してマーク列を読み取る方法
や、図6−1のようにスタートマークのエッジから固定
ピッチでマークを検出して順次マーク列を読み取る方法
を用いており、また、マークが黒か白かの判定はマーク
読み取りセンサの出力電圧が、あらかじめ設定した電圧
よりも高いか低いかで行なっていた。
On the other hand, as compared with the method of mechanically scanning a mark, the scanning pitch for writing and reading is stable, and the recording area does not increase or decrease depending on the information content.
A method of recording 0 and 1 at the same pitch by making them correspond to white and black is used. In such a card processing apparatus, a method of detecting a mark at a fixed position and reading a mark row, or a method of detecting a mark at a fixed pitch from the edge of a start mark and sequentially reading a mark row as shown in FIG. In addition, whether the mark is black or white is determined by the output voltage of the mark reading sensor being higher or lower than a preset voltage.

【0004】[0004]

【発明が解決しようとする課題】しかし、記録時のマー
クピッチと読み取り時のマークピッチとは、装置間の誤
差、あるいは温度、湿度等によって変化するカードの伸
縮により相違するので、図6−2に示すようにマークに
対する読み取りピッチがずれてしまい読み取りエラーが
発生する可能性がある。また、黒白の判定を固定電圧と
の比較で行なっているので、記録されているマーク濃度
やカードの反射率が変化すると、読み取ったマークの大
きさが実際に記録されているマークの大きさと相違する
問題が発生する。
However, since the mark pitch at the time of recording and the mark pitch at the time of reading differ due to the error between the devices or the expansion and contraction of the card which changes due to temperature, humidity, etc., FIG. As shown in, the reading pitch with respect to the mark is deviated, and a reading error may occur. Also, since black and white are judged by comparison with a fixed voltage, when the recorded mark density or the reflectance of the card changes, the size of the read mark differs from the size of the actually recorded mark. Problem occurs.

【0005】したがって、これらマークの位置にずれが
発生しても読み取りエラーが発生しないように、一つ一
つのマーク幅を大きくせざるを得ず、これに伴い記録密
度を向上できないという課題があった。例えば、従来は
164ドット分のマーク記録領域を持つカード処理装置
で、記録時と読み取り時で最悪の場合3ドット程度ずれ
る可能性があるため、7ドットで1マークを構成してい
た。
Therefore, each mark width must be increased so that a reading error does not occur even if the positions of these marks are deviated, and there is a problem that the recording density cannot be improved accordingly. It was For example, conventionally, in a card processing device having a mark recording area of 164 dots, there is a possibility that there will be a shift of about 3 dots at the time of recording and reading, so one mark is composed of 7 dots.

【0006】この発明の目的は、装置やカードに変更を
加えることなく、新しい記録・読み取り方法を用いるこ
とで、より高密度の情報記録が可能な光学式のカード処
理装置を提供することである。
An object of the present invention is to provide an optical card processing device capable of recording information at a higher density by using a new recording / reading method without changing the device or the card. ..

【0007】[0007]

【課題を解決するための手段】上記課題を解決するた
め、この発明は情報をマークに変換する際に、白または
黒の同一極性のマークが特定個数以上、例えば5個以上
連続しないように数値的に変換して記録するようにし
た。また、読み取り時にはタイミング信号に同期してマ
ーク濃度をAD変換して記憶し、記憶したマーク濃度の
変化点の直前、直後の最大値と最小値の中点を黒・白の
判定濃度としてマークの変化点を求めて連続するマーク
の長さを計算するか、あるいは記憶したマーク濃度デー
タの隣接する2点の差分をとり、差分値の正と負のピー
クをマークの変化点として連続するマークの長さを計算
するようにし、計算した長さをマーク幅で割ることで含
まれているマークの個数を判定するようにしたものであ
る。
In order to solve the above-mentioned problems, the present invention, when converting information into marks, has a numerical value such that white or black marks of the same polarity do not exceed a specified number, for example, 5 or more. I converted it to record it. Further, at the time of reading, the mark density is AD-converted and stored in synchronization with the timing signal, and the midpoint between the maximum value and the minimum value immediately before and after the stored change point of the mark density is used as the black / white determination density of the mark. The change point is calculated to calculate the length of consecutive marks, or the difference between two adjacent points in the stored mark density data is calculated, and the positive and negative peaks of the difference value are used as the change points of the marks. The length is calculated and the number of marks included is determined by dividing the calculated length by the mark width.

【0008】[0008]

【作用】上記のように構成された光学式カードにおいて
は、読み取り時に連続するマークの長さが3.5個以上
から4.5個未満であれば4個と判定することができ、
同一極性のマークの最大連続個数をNとすると、マーク
の記録や読み取りのピッチのずれがマーク幅の−1/
(2×N)以上、1/(2×N)未満までであれば正し
く読み取ることが可能となる。また、マークの濃度、カ
ードの反射率が変化しても正確なマークの長さを求める
ことが可能となるので、更に精度よくマークを読み取る
ことが可能になる。
In the optical card constructed as described above, if the length of continuous marks at the time of reading is 3.5 or more and less than 4.5, it can be judged as four.
Assuming that the maximum number of consecutive marks of the same polarity is N, the gap between the recording and reading of marks is -1 / the width of the mark.
If it is (2 × N) or more and less than 1 / (2 × N), correct reading is possible. Further, even if the density of the mark and the reflectance of the card are changed, it is possible to obtain the accurate length of the mark, so that the mark can be read with higher accuracy.

【0009】例えば、白または黒の同一極性のマークが
最大でも4個までしか連続しないことが保証されている
ので、記録時と読み取り時で−12.5%以上、+1
2.5%未満のずれが発生しても正しく認識でき、16
4ドット分のマーク記録領域を持つカード処理装置で、
1マークを4ドットで構成しても十分な読み取り精度を
得ることができる。
For example, since it is guaranteed that up to four white or black marks of the same polarity are continuous, at the time of recording and reading, -12.5% or more, +1.
Even if a deviation of less than 2.5% occurs, it can be recognized correctly.
With a card processing device that has a mark recording area for 4 dots,
Even if one mark is composed of 4 dots, sufficient reading accuracy can be obtained.

【0010】[0010]

【実施例】以下に、この発明の実施例を図面に基づいて
説明する。第1図は本発明による光学式マーク処理装置
のブロック図である。CPU2は入出力装置1によって
外部装置に対してデータや装置の動作命令を入出力す
る。前記CPU2はYモータ10によりカードをY方向
に往復させることができ、Xモータ8によりヘッドユニ
ット5をカード上でX方向に往復移動させることができ
る構成になっている。前記Xモータ8はDCモータで、
タコジェネレータ9に連結されており、前記CPU2は
前記タコジェネレータ9からXモータ8の回転に同期し
た信号を得ることができる。以下、この同期信号をTG
信号として記述する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an optical mark processing device according to the present invention. The CPU 2 uses the input / output device 1 to input and output data and device operation commands with respect to external devices. The CPU 2 is configured so that the Y motor 10 can reciprocate the card in the Y direction and the X motor 8 can reciprocate the head unit 5 on the card in the X direction. The X motor 8 is a DC motor,
It is connected to the tacho generator 9, and the CPU 2 can obtain a signal synchronized with the rotation of the X motor 8 from the tacho generator 9. Hereafter, this synchronization signal is referred to as TG
Describe as a signal.

【0011】前記ヘッドユニット5は、ヘッド7とセン
サ6とで構成されており、該センサ6は反射式の光学セ
ンサで、カード上のマークの濃度に応じた電圧を出力す
る。センサの出力電圧はAD変換器3により数値変換さ
れ、一方、CPU2はXモータ8を駆動し、TG信号に
同期してAD変換器3からデータを読み取り、カード上
の一行分のマーク列を順次マーク濃度データとして読み
取ることができる。
The head unit 5 comprises a head 7 and a sensor 6. The sensor 6 is a reflection type optical sensor and outputs a voltage according to the density of a mark on a card. The output voltage of the sensor is converted into a numerical value by the AD converter 3, while the CPU 2 drives the X motor 8 to read the data from the AD converter 3 in synchronization with the TG signal and sequentially read the mark row for one row on the card. It can be read as mark density data.

【0012】ヘッド7は7ドットのサーマルヘッドで、
カードは感熱方式を使用している。前記CPU2はXモ
ータ8を駆動すると共に、TG信号に同期してヘッドド
ライバ4に適切な通電パルスを与えることでサーマルヘ
ッドを駆動し、カード上に一行分のマーク列を記録する
ことができる。このようにしてCPU2は、X、Yの各
モータドライバに駆動信号を与えることでカード上の任
意の行をヘッドユニット5で走査し、これにより任意の
行にマーク列を記録し、あるいは読み取ることが可能な
ように構成されている。本実施例ではサーマル方式のヘ
ッドとカードを用いているが、熱転写方式、インパクト
方式、印刷等による印字で行っても同様に実現できる。
The head 7 is a 7-dot thermal head,
The card uses a thermal method. The CPU 2 drives the X motor 8 and drives the thermal head by applying an appropriate energizing pulse to the head driver 4 in synchronization with the TG signal, thereby recording a mark row for one line on the card. In this way, the CPU 2 scans an arbitrary line on the card with the head unit 5 by applying a drive signal to each of the X and Y motor drivers, and thereby records or reads a mark column in the arbitrary line. Is configured to be possible. In this embodiment, the thermal type head and the card are used, but the same can be realized by printing by a thermal transfer type, an impact type, printing or the like.

【0013】また、前記CPU2にはRAMを内蔵して
おり、TG信号に同期してAD変換器から読み取ったマ
ーク濃度データを1行分記憶しておくことができる。図
2は8ビットの情報を9ビットのマーク情報に変換する
ための256個の要素を持ったテーブルを示したもの
で、理解を容易にするために2進数で表示し、括弧内に
要素番号を併記してある。このテーブルは0または1の
ビットが最大でも4個しか連続しないように構成されて
おり、最上位、最下位の部分についても0または1のビ
ットが最大でも2個しか連続しないように構成されてい
る。従って、テーブル中の任意のデータを連結しても0
または1のビットが5個以上連続しないのである。
Further, the CPU 2 has a built-in RAM so that the mark density data read from the AD converter in synchronization with the TG signal can be stored for one line. FIG. 2 shows a table having 256 elements for converting 8-bit information into 9-bit mark information. It is displayed in binary for easy understanding, and the element number is shown in parentheses. Is also shown. This table is configured so that only 4 bits of 0 or 1 are continuous, and that the highest and lowest bits are also configured so that only 2 bits of 0 or 1 are continuous. There is. Therefore, even if any data in the table is concatenated, 0
Alternatively, 5 or more 1 bits do not continue.

【0014】CPU2は入出力装置1を介して入力した
情報をマークとして記録する際、記録する情報Aにエラ
ー検出用の情報等を付け加えて24ビットの情報Bを作
成する。この情報Bを8ビットづつ3バイトに分割し
て、それぞれのバイトを要素番号としてテーブルから9
ビットに変換されたデータを得る。得られた3つの9ビ
ットデータを連結すると、27ビットの情報Cとなる。
CPU2はこの情報Cの1のビットを黒、0のビットを
白のマークとしてカード上に記録する。こうして黒また
は白が5個以上連続しないマーク列が実現されるのであ
る。
When the CPU 2 records the information input via the input / output device 1 as a mark, it adds 24-bit information B by adding error detection information and the like to the recorded information A. This information B is divided into 3 bytes of 8 bits each, and each byte is set as an element number from the table 9
Get the data converted to bits. When the obtained three 9-bit data are concatenated, 27-bit information C is obtained.
The CPU 2 records the 1 bit of this information C as a black mark and the 0 bit as a white mark on the card. In this way, a mark string in which five or more blacks or whites are not continuous is realized.

【0015】ただし、このマーク列は8ビットにつき1
ビットの冗長ビットが付加されるため、本来必要な記録
面積に対して12.5%広い記録面積が必要である。こ
の冗長ビットの割合は、8ビットよりも大きい単位で、
例えば12ビットを13ビットに変換することで減らす
ことができ、記録密度を向上することができる。図3は
実際の記録フォーマットを示したものである。インデッ
クスマーク31は縦5ドット、横12ドットで構成し、
行位置の検出と読み取りの基点を決めるためのマークで
ある。前記インデックスマーク31と第1マーク33の
間には必ず4ドット分の空白32を設け、読み取り時に
はインデックスマーク31から空白32のマークの変化
を基点とする。第1マーク33から第27マーク34は
縦7ドット、横4ドットで構成し、情報Cの1のビット
を黒のマーク、0のビットを白のマークで記録する領域
である。文字領域35は情報Aを文字として表示する領
域である。文字は縦7ドット、横6ドットで¥記号を含
めて6文字を印字することができる。
However, this mark string is 1 for every 8 bits.
Since redundant bits are added, a recording area that is 12.5% wider than the originally required recording area is required. The ratio of this redundant bit is a unit larger than 8 bits,
For example, it can be reduced by converting 12 bits to 13 bits, and the recording density can be improved. FIG. 3 shows an actual recording format. The index mark 31 is composed of 5 dots vertically and 12 dots horizontally,
This is a mark for determining the base point for detecting the row position and reading. A blank 32 of 4 dots is always provided between the index mark 31 and the first mark 33, and the change of the mark from the index mark 31 to the blank 32 is used as a base point during reading. The first mark 33 to the 27th mark 34 are areas that are composed of vertical 7 dots and horizontal 4 dots, and record 1 bit of the information C with black mark and 0 bit with white mark. The character area 35 is an area for displaying the information A as characters. Characters can be printed with 7 dots vertically and 6 dots horizontally, including the ¥ symbol.

【0016】ここで述べたマークのビット構成、記録フ
ォーマットは、同一極性のマークが特定の個数以上連続
しないように変換し記録する一例であり、他のビット構
成、フォーマットで記録することも容易である。次に読
み取り時の処理について説明する。CPU2は入出力装
置1から入力した動作命令に従って、Yモータ10を駆
動し、指定された行がヘッドユニット5の直下に来るま
でカードを搬送する。その後、Xモータ8を駆動して一
行分のマークを読み取り、この一行分の濃度データをメ
モリに記憶する。
The bit configuration and recording format of the mark described here is an example of converting and recording so that the marks of the same polarity do not continue more than a specific number, and it is easy to record with another bit configuration and format. is there. Next, the processing at the time of reading will be described. The CPU 2 drives the Y motor 10 in accordance with the operation command input from the input / output device 1 and conveys the card until the designated row comes directly under the head unit 5. Thereafter, the X motor 8 is driven to read the mark for one line, and the density data for this one line is stored in the memory.

【0017】図4はマーク列を読み取った時のマーク濃
度データのグラフであり、図4(A)は情報Bとして1
6進数563412Hをテーブルで情報Cに変換して記
録したマークである。図4(B)は濃度データすなわち
AD変換値を縦軸に、TG信号のカウントを横軸にし
て、図4(A)のマークを読み取った濃度データをプロ
ットしたものである。このようにしてマークは濃度デー
タとしてCPU2のメモリに記憶されている。また、図
4(C)は図4(B)の波形のTG信号のT+1番目の
濃度データからT番目の濃度データを減算した差分デー
タをプロットしたグラフである。図4(B)に示した濃
度データから実際のマークの有り無しを示す情報Cを復
元できれば情報Cから情報Bへ、情報Bからエラー検出
用の情報等で情報の正当性を確認して記録されている情
報Aを復元することができるのである。
FIG. 4 is a graph of the mark density data when the mark train is read, and FIG.
It is a mark recorded by converting the hexadecimal number 563412H into information C in a table. FIG. 4B is a plot of the density data obtained by reading the marks in FIG. 4A with the density data, that is, the AD conversion value as the vertical axis and the TG signal count as the horizontal axis. In this way, the mark is stored in the memory of the CPU 2 as density data. 4C is a graph in which difference data obtained by subtracting the T + 1th density data from the T + 1th density data of the TG signal having the waveform of FIG. 4B is plotted. If the information C indicating the presence / absence of an actual mark can be restored from the density data shown in FIG. 4B, the information C is changed to the information B, and the information B is checked for validity by the information for error detection or the like and recorded. The information A that has been stored can be restored.

【0018】濃度データから情報Cを読み取る方法とし
て以下に2つの実施例を示す。一番目は、マーク濃度デ
ータの変化点前後の最大値と最小値の中点を、黒か白か
を判定するための濃度としてマークの変化点を求め、連
続するマークの長さを計算する方法である。図5(A)
は黒マーク付近の濃度データの波形で、a〜jはTG信
号の0〜9番目の濃度データ、d〜f付近が黒のマーク
がある部分である。ここではこの黒マークの長さを計算
する方法を述べる。
Two examples will be described below as a method of reading the information C from the density data. The first is a method of calculating the mark change points as the density for determining the black and white of the midpoint between the maximum value and the minimum value before and after the change point of the mark density data and calculating the length of consecutive marks. Is. Figure 5 (A)
Is the waveform of the density data near the black mark, a to j are the 0th to 9th density data of the TG signal, and the vicinity of d to f is the portion with the black mark. Here, a method of calculating the length of the black mark will be described.

【0019】まず、白から黒への変化点を求めるため
に、a〜fの最大値と最小値を探して、それぞれbとe
を得る。正確な変化点は、この最大値と最小値の中点M
1を横切るTG信号の位置である。 M1=(b+e)÷2 M1を横切る点はcとdの間にあるので、cとdを直線
で結んでM1を横切るTG位置を次のようにして求め
る。次式中、2はcのTG位置である。
First, in order to obtain the change point from white to black, the maximum value and the minimum value of a to f are searched for, and b and e are obtained.
To get The exact change point is the midpoint M between the maximum and minimum values.
This is the position of the TG signal that crosses 1. M1 = (b + e) / 2 The point that crosses M1 is between c and d, so a straight line connecting c and d is used to determine the TG position that crosses M1 as follows. In the following equation, 2 is the TG position of c.

【0020】N1=2+(c−M1)÷(c−d) 次に黒から白への変化点を求めるためにe〜jの最大値
と最小値を探し、e、iを得て、黒から白の中点M2を
計算する。 M2=(e+i)÷2 M2はfとgの間にあるので、fとgを直線で結んでM
2を横切るTG位置を次のよう求める。次式中、5はf
のTG位置である。
N1 = 2 + (c-M1) ÷ (cd) Next, in order to find the change point from black to white, the maximum and minimum values of e to j are searched, and e and i are obtained to obtain black. From this, calculate the white midpoint M2. M2 = (e + i) / 2 M2 is between f and g, so connect f and g with a straight line
The TG position across 2 is determined as follows. In the following formula, 5 is f
Is the TG position of.

【0021】N2=5+(M2−f)÷(g−f) こうして白から黒、黒から白への変化点のTG位置が分
かったので、この黒マークの長さLは L=N2−N1 で求めることができ、一個のマークはTG信号4個分の
幅で記録されているので、この黒マークの個数Nは N=(L+2)÷4 のようにして四捨五入して算出することができる。同様
の処理を繰返し適用することで、黒、白のマークの個数
を順に算出して情報Cを復元することができるのであ
る。
N2 = 5 + (M2-f) / (g-f) Since the TG position of the change point from white to black and from black to white is known in this way, the length L of this black mark is L = N2-N1. Since one mark is recorded with a width of four TG signals, the number N of black marks can be calculated by rounding off as N = (L + 2) ÷ 4. .. By repeatedly applying the same processing, it is possible to restore the information C by sequentially calculating the number of black and white marks.

【0022】二番目の方法は、マーク濃度データの隣接
する2点間の差分をとり、差分値の正と負のピークをマ
ークの変化点として、連続するマークの長さを計算する
方法である。図4(C)に示した差分データのグラフで
極大値が黒から白への変化点、極小値が白から黒への変
化点である。従って、極大値から極小値までの長さが白
マークの長さ、極小値から極大値までの長さが黒マーク
の長さとなる。
The second method is to calculate the difference between two adjacent points of the mark density data and calculate the length of consecutive marks using the positive and negative peaks of the difference value as the mark change points. .. In the graph of the difference data shown in FIG. 4C, the maximum value is the change point from black to white, and the minimum value is the change point from white to black. Therefore, the length from the maximum value to the minimum value is the length of the white mark, and the length from the minimum value to the maximum value is the length of the black mark.

【0023】図5(B)は図5(A)の濃度データの差
分をk=b−a、l=c−bのようにしてプロットした
ものである。ここで極小値のTG位置は極小値mの前後
のデータから次のようにして求める。次式中、2はmの
TG位置である。 N1=2+(l−m)÷(l+n−2×m) この計算はlからmへの変化量とmからnへの変化量を
足して、その中に占めるlからmへの変化量の割合をT
G位置に足したものである。
FIG. 5B is a plot of the difference of the density data of FIG. 5A as k = b-a and l = c-b. Here, the TG position of the minimum value is obtained from the data before and after the minimum value m as follows. In the following equation, 2 is the TG position of m. N1 = 2 + (1−m) ÷ (1 + n−2 × m) This calculation adds the amount of change from 1 to m and the amount of change from m to n to obtain the change amount from 1 to m. Ratio to T
It is added to the G position.

【0024】同様に、極大値のTG位置は極大値pの前
後のデータから次のように求めることができる。次式
中、5はpのTG位置である。 N2=5+(p−o)÷(2×p−o−q) こうして求めたN1、N2は極大値、極小値の正しいT
G位置ではなく、あるオフセットを持つが、マークの長
さを求めるときにN1、N2の両方に含まれているオフ
セット分が減算で相殺されるので、マークの長さは正し
く求めることができるのである。この黒マークの長さL
は L=N2−N1 で求めることができ、一個のマークはTG信号4個分の
幅で記録されているので、この黒マークの個数Nは N=(L+2)÷4 のようにして四捨五入して算出することができる。この
ようにして同様の処理を繰返し適用することで、黒、白
のマークの個数を順に算出して情報Cを復元することが
でき、情報Cから情報BへテーブルTBLを基に変換
し、更に情報Bからエラー検出用の情報等で情報の正当
性を確認して、記録されている情報Aを復元することが
できるのである。
Similarly, the TG position of the maximum value can be obtained from the data before and after the maximum value p as follows. In the following equation, 5 is the TG position of p. N2 = 5 + (p−o) ÷ (2 × p−o−q) N1 and N2 obtained in this way are correct T of maximum and minimum values.
Although it has a certain offset instead of the G position, when the length of the mark is obtained, the offsets included in both N1 and N2 are offset by subtraction, so the length of the mark can be obtained correctly. is there. The length L of this black mark
Can be obtained by L = N2-N1. Since one mark is recorded with a width of four TG signals, the number N of black marks is rounded off as N = (L + 2) ÷ 4. Can be calculated by By repeatedly applying the same processing in this way, it is possible to sequentially calculate the number of black and white marks and restore the information C, and convert the information C to the information B based on the table TBL. It is possible to restore the recorded information A by confirming the validity of the information from the information B using the information for error detection or the like.

【0025】以上で述べた方法で記録し、読み取りを行
なえば、黒または白のマークは最大4個しか連続しない
ことが保証されているので−12.5%以上、+12.
5%未満のずれや誤差があっても正しく読み取ることが
できるのである。本実施例ではマーク情報を作成する際
に、マークを横4ドットで同一極性のマークが5個以上
連続しないように構成したが、装置やカードの誤差や読
み取り精度が向上すれば、マークを更に小さくして情報
の記録密度を向上することも、同一極性のマークの連続
する個数と情報Bから情報Cへの変換単位を大きくして
冗長ビット数を減らすことで情報量を増大することも可
能である。
When recording and reading by the method described above, it is guaranteed that only a maximum of four black or white marks are continuous, so -12.5% or more, +12.
Even if there is a deviation or error of less than 5%, it can be read correctly. In the present embodiment, when the mark information is created, the marks are configured so that the marks are 4 dots wide and 5 or more marks of the same polarity are not continuous. It is possible to increase the information recording density by reducing the number of continuous marks having the same polarity and the conversion unit from the information B to the information C to reduce the number of redundant bits. Is.

【0026】[0026]

【発明の効果】以上述べたように、本発明によれば、装
置やカードの記録誤差やずれに関係なく、安定して情報
を読み取ることができ、かつ高密度の情報記録が可能な
カード処理装置を提供することができる。
As described above, according to the present invention, it is possible to stably read information regardless of the recording error or deviation of the device or the card, and the card processing capable of high-density information recording. A device can be provided.

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

【図1】本発明のカード処理装置のブロック図である。FIG. 1 is a block diagram of a card processing device of the present invention.

【図2】8ビットの情報を9ビットのマーク情報に変換
するためのテーブルの内容を示した説明図である。
FIG. 2 is an explanatory diagram showing contents of a table for converting 8-bit information into 9-bit mark information.

【図3】記録フォーマットの例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a recording format.

【図4】マーク列と、マーク濃度データ、差分データを
説明したグラフである。
FIG. 4 is a graph illustrating a mark row, mark density data, and difference data.

【図5】黒マーク付近の濃度データ波形、及びその差分
データ波形の説明図である。
FIG. 5 is an explanatory diagram of a density data waveform near a black mark and a difference data waveform thereof.

【図6】従来のマークの読み取り方法を示した説明図で
ある。
FIG. 6 is an explanatory diagram showing a conventional mark reading method.

【符号の説明】 1 入出力装置 2 CPU 3 AD変換器 4 ヘッドドライバ 5 ヘッドユニット 6 センサ 7 ヘッド 8 Xモータ 9 タコジェネレータ 10 Yモータ[Explanation of reference numerals] 1 input / output device 2 CPU 3 AD converter 4 head driver 5 head unit 6 sensor 7 head 8 X motor 9 tacho generator 10 Y motor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 列状に並べた黒・白あるいは有効・無効
等の2極性のマーク列に変換した情報をカード上に記録
し、この記録されているマーク列を読み取って元の情報
に変換する光学式カード処理装置において、 前記マーク列に同一極性のマークが特定の個数以上連続
しないように記録するとともに、前記特定の個数以内で
連続するマークの長さから該マークの個数を判定し、同
一極性のマークの最大連続個数をNとした時、マークの
記録や読み取りのピッチのずれを記録マーク幅の−1/
(2×N)以上、1/(2×N)未満まで許容可能とし
た光学式カードの記録・読み取り方法。
1. The information converted into a black / white or effective / ineffective bipolar mark array arranged in a row is recorded on a card, and the recorded mark row is read and converted to original information. In the optical card processing device to do, while recording so that the marks of the same polarity do not continue in a specified number or more in the mark row, determine the number of the marks from the length of the continuous marks within the specified number, Assuming that the maximum number of consecutive marks of the same polarity is N, the deviation of the recording and reading pitches of marks is -1 / the recording mark width.
A method of recording / reading an optical card, which is acceptable from (2 × N) to less than 1 / (2 × N).
【請求項2】 マーク読み取り用センサの出力電圧をA
D変換するAD変換器を設けた光学式カード処理装置に
おいて、マークの連続する長さを読み取るために、マー
クの読取時にはセンサの出力電圧をAD変換して得られ
るマーク濃度データを、タイミング信号に同期して順次
メモリに記憶し、一列分のマーク濃度データを記憶した
後、マークの変化点を求めて連続するマークの長さを計
算するか、あるいは記憶したマーク濃度データの隣接す
る2点間の差分をとり、差分値の正と負のピークをマー
クの変化点として連続するマークの長さを計算すること
を特徴とした光学式カードの読取方法。
2. The output voltage of the mark reading sensor is set to A
In an optical card processing device provided with an AD converter for D conversion, mark density data obtained by AD converting the output voltage of the sensor at the time of reading the mark is used as a timing signal in order to read the continuous length of the mark. Sequentially storing in the memory in sequence and storing one row of mark density data, then calculating the mark change point and calculating the length of consecutive marks, or between two adjacent points of the stored mark density data. A method for reading an optical card, characterized in that the length of consecutive marks is calculated with the positive and negative peaks of the difference value as the change points of the marks.
JP4110519A 1992-04-28 1992-04-28 Optical card recording / reading method Pending JPH05307632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4110519A JPH05307632A (en) 1992-04-28 1992-04-28 Optical card recording / reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4110519A JPH05307632A (en) 1992-04-28 1992-04-28 Optical card recording / reading method

Publications (1)

Publication Number Publication Date
JPH05307632A true JPH05307632A (en) 1993-11-19

Family

ID=14537858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4110519A Pending JPH05307632A (en) 1992-04-28 1992-04-28 Optical card recording / reading method

Country Status (1)

Country Link
JP (1) JPH05307632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009525524A (en) * 2006-02-02 2009-07-09 ホーホシューレ・ダルムシュタット・ユニバーシティー・オブ・アプライド・サイエンシズ How to decode information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009525524A (en) * 2006-02-02 2009-07-09 ホーホシューレ・ダルムシュタット・ユニバーシティー・オブ・アプライド・サイエンシズ How to decode information

Similar Documents

Publication Publication Date Title
US5042079A (en) Method of recording/reproducing data of mesh pattern, and apparatus therefor
US4607290A (en) Image information filing apparatus
US5101096A (en) Optical recording sheet and method and apparatus for reproducing the same
JPH06318368A (en) Method and equipment for reading data
US5343031A (en) Method of decoding a two-dimensional code symbol mark
US4885458A (en) Card-form recording medium and data recording device therefor
US4291305A (en) Method for generating format lines and character data in an image scanning system
JPS61260426A (en) Information medium with prerecord pattern and reader therefor
JPH03505497A (en) optical reader
US5591957A (en) Apparatus for reading mesh pattern image data having bars along upper and lower sides of mesh pattern and a boundary line between horizontally adjacent dark and light area of mesh pattern
JPH0462048B2 (en)
US4853920A (en) Information recording medium and reproducing method therefor
US5142519A (en) Optical recording medium and device for writing and reading information in and from the recording medium
EP0226960A1 (en) Synchronous control system
JP2576370B2 (en) ID mark reading device
US3959626A (en) Distorted two frequency coded data interpreting method and apparatus
US5233598A (en) Information recording medium having a plurality of information tracks arranged in a predetermined rectilinear direction
JP2541797B2 (en) Scale device
JPH0250282A (en) data reader
JPS62110628A (en) Method of reading optical recording and reproducing card
JPH0555931B2 (en)
JP2620222B2 (en) Optical digital data recording method
JPH011184A (en) information reproducing device
JPH09293240A (en) Optical card device
JPS6318481A (en) Bar code demodulator