JPH05217011A - System for converting bar code into data - Google Patents
System for converting bar code into dataInfo
- Publication number
- JPH05217011A JPH05217011A JP5445392A JP5445392A JPH05217011A JP H05217011 A JPH05217011 A JP H05217011A JP 5445392 A JP5445392 A JP 5445392A JP 5445392 A JP5445392 A JP 5445392A JP H05217011 A JPH05217011 A JP H05217011A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bar code
- dot
- character
- code
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
- Printers Characterized By Their Purpose (AREA)
Abstract
Description
【0001】[0001]
【技術分野】本発明はバーコードのデータ化システムに
関し、特にバーコードをコンピュータ処理可能なデータ
に変換するバーコードのデータ化方式に関する。TECHNICAL FIELD The present invention relates to a bar code data conversion system, and more particularly to a bar code data conversion system for converting a bar code into computer processable data.
【0002】[0002]
【従来技術】バーコードをコンピュータを用いて処理し
て印刷するビジネスアプリケーションの場合、バーコー
ドをイメージデータと考えないで、プリンタの一般の文
字と同じ様にフォントを用いて印刷処理している。具体
的には、プリンタの機種によって、外字としてバーコー
ドを登録したり、ブリンタのバーコードジェネレータを
用いることにより印刷を行うようになっている。2. Description of the Related Art In the case of a business application in which a bar code is processed by a computer and printed, the bar code is not considered as image data and is printed using a font like a general character of a printer. More specifically, depending on the printer model, a barcode is registered as an external character, or printing is performed by using a barcode generator of Blinter.
【0003】外字による方法では、外字の登録可能な文
字数が少い装置では利用できず、例えば、汎用コンピュ
ータからファクシミリを発信する装置においてバーコー
ドを出力するとき、この装置では外字を8文字しか登録
することができないために、この外部による方式は利用
できない、また、バーコードジェネレータによる方式で
は、装置にその機能がなければ利用できない。The method using external characters cannot be used in a device with a small number of characters that can be registered. For example, when a bar code is output from a general-purpose computer that transmits a facsimile, only 8 external characters can be registered with this device. This external method cannot be used, and the barcode generator method cannot be used unless the device has the function.
【0004】[0004]
【発明の目的】本発明の目的は、バーコードを所定バイ
ト/文字のデータに変換可能として、このデータからバ
ーコードをプログラムにて作成できるようにしたバーコ
ードのデータ化システムを提供することである。SUMMARY OF THE INVENTION An object of the present invention is to provide a bar code data conversion system in which a bar code can be converted into data of a predetermined byte / character and a bar code can be created from this data by a program. is there.
【0005】[0005]
【発明の構成】本発明によるバーコードのデータ化シス
テムは、各単位文字及び各単位記号に夫々割当てられて
いるバーコードのバー(黒部分)とスペース(白部分)
とをドットのオンオフに置換する手段と、この置換後の
各ドットのオンオフをコンピュータの1ビットに対応さ
せる手段とを含むことを特徴とする。The bar code data conversion system according to the present invention is a bar code bar (black part) and space (white part) assigned to each unit character and each unit symbol.
It is characterized by including means for substituting on and off of dots and means for making on and off of each dot after the substitution correspond to one bit of the computer.
【0006】[0006]
【実施例】以下に本発明の実施例につき図面を参照しつ
つ詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0007】先ず、バーコードのバー(黒部分)とスペ
ース(白部分)とを夫々ドットのオン/オフで表現し、
1ドットコンピュータデータの1ドットに対応させる。First, the bar (black portion) and the space (white portion) of the bar code are represented by dot on / off,
1 dot Corresponds to 1 dot of computer data.
【0008】例えば、CODE39の場合バーコードパ
ターンは大小9本のバーまたはスペースで構成され、そ
のうち3本は必ず太いバーまたはスペースとなってい
る。つまり、バーとしては、細バー,太バー,細スペー
ス,太スペースの4種類があり、夫々次の如きドットパ
ターンで表現する。For example, in the case of CODE39, the bar code pattern is composed of nine large and small bars or spaces, and three of them are always thick bars or spaces. That is, there are four types of bars, that is, a thin bar, a thick bar, a thin space, and a thick space, each of which is represented by the following dot pattern.
【0009】細バー →11 太バー →1111111 細スペース→000 太スペース→00000000 これ等4種のビットの組合せにより全てのバーコードが
表現できることになる。Thin bar → 11 thick bar → 1111111 thin space → 000 thick space → 00000000 All the bar codes can be represented by a combination of these four kinds of bits.
【0010】具体例を図1を用いて説明する。(A)に
はバーコードの例として*(アスタリスク)の場合が示
されており、160 ×40のドットマトリックスによるド
ットのオン/オフで表現されており、横1列の各ドット
を1ビットに対応させて表現すれば、(B)に示すデー
タが得られる。更に、この(B)のデータを4ビットず
つ区切って16進表示すると、(C)の如き5バイトの
文字コードデータとなる。A specific example will be described with reference to FIG. In (A), the case of * (asterisk) is shown as an example of the bar code, which is expressed by on / off of dots by a 160 × 40 dot matrix, and each dot in one horizontal row is set to one bit If expressed in correspondence, the data shown in (B) can be obtained. Further, when the data of (B) is divided into 4 bits and displayed in hexadecimal, it becomes the character code data of 5 bytes as shown in (C).
【0011】この様にして、各単位文字や各単位記号
(以下、これ等をキャラクタと称す)に相当するCOD
E39の各バーコードを、5バイト文字コードデータに
変換すると、図2に示す様になる。In this way, the COD corresponding to each unit character and each unit symbol (hereinafter, these are referred to as a character)
When each barcode of E39 is converted into 5-byte character code data, it becomes as shown in FIG.
【0012】この様に図2に示された変換文字コードを
用いて実際のバーコードを作成(逆変換)する場合につ
いて図3を用いて説明する。尚、この例では、任意の7
桁のキャラクタについていのバーコードの作成方法につ
き示している。A case where an actual bar code is created (reverse conversion) using the conversion character code shown in FIG. 2 will be described with reference to FIG. In this example, any 7
It shows how to create a barcode for a digit character.
【0013】図3(A)に示す、例えば、123456
7の7桁のキャラクタ列(尚、データの前後には必ず*
が付加されるものとする)の文字コードは(B)の様に
なっている。ここで、先頭の*について説明すれば、先
ず、*対応の5バイトの文字コードを、(C)に示す如
く8ビット(1バイト)ずつ区切って、各バイト毎に左
右反転する。As shown in FIG. 3A, for example, 123456.
7-digit character string of 7 (Before and after the data
Character code) is as shown in (B). Here, the * at the beginning will be described. First, the 5-byte character code corresponding to * is divided into 8-bits (1 byte) as shown in (C), and the bytes are horizontally reversed.
【0014】この左右反転する理由としては、一般にビ
ット列をシリアル処理するときキャラクタ単位(8ビッ
ト単位)に区切って夫々低位ビットから読込むので、こ
の読込むときの処理に対応したものである。しかし、こ
の左右反転処理を行わなくてもシリアル処理が可能であ
れば、この反転処理は必要ない。The reason for this left-right inversion is that, when a bit string is serially processed, it is generally divided into character units (8-bit units) and read from the low-order bits respectively. However, if the serial processing can be performed without performing the horizontal inversion processing, this inversion processing is not necessary.
【0015】以上の処理を9キャラクタ分全て行い横方
向のデータを得る。その後、この横方向のデータを160
回繰返して生成し、縦のデータを生成する。The above processing is performed for all 9 characters to obtain horizontal data. After that, this horizontal data is
Generates iteratively to generate vertical data.
【0016】こうして得られたデータを用いてイメージ
出力するための装置は、一般にMH圧縮かMR圧縮され
たデータしか扱えないものが多く、よってイメージデー
タ編集圧縮機能を有するプログラム(MMIPF)によ
りデータ圧縮を行う。但し、非圧縮データを扱える装置
であれば、このプログラム処理は不要である。Many devices for outputting an image using the data thus obtained can generally handle only MH-compressed or MR-compressed data. Therefore, data compression is performed by a program (MMIPF) having an image data editing and compression function. I do. However, this program processing is unnecessary if the device can handle uncompressed data.
【0017】ドット密度を200 dpi としたとき、略縦2
cm×横4.5cmのバーコードが、図(D),(E)に示
す如く得られることになる。When the dot density is set to 200 dpi, it is approximately vertical 2
A bar code of cm × width 4.5 cm is obtained as shown in FIGS.
【0018】[0018]
【発明の効果】本発明によれば、各キャラクタ毎に夫々
割当てられているバーコードのバーとスペースとをドッ
トのオン/オフに変換し、この置換後の各ドットのオン
/オフを1ビットに対応させて表現する構成としたの
で、コンピュータプログラム処理が容易となるという効
果がある。According to the present invention, the bar and space of the bar code respectively assigned to each character are converted into dot on / off, and each dot on / off after this replacement is converted into 1 bit. Since the configuration is expressed in correspondence with, there is an effect that computer program processing becomes easy.
【0019】また、ビット表現されたものを所定バイト
/キャラクタのコードデータとすることができるので、
プログラム内でバーコード表記ができ、プログラムによ
るバーコード生成が容易となる。そのために、バーコー
ドを生成するプログラムを媒体として移植が可能となる
と共に、出力装置の機種にかかわらずバーコード出力が
できることになる。Further, since the data expressed in bits can be used as the code data of a predetermined byte / character,
Bar codes can be written in the program, and bar codes can be easily generated by the program. Therefore, the program for generating the barcode can be ported as a medium, and the barcode can be output regardless of the model of the output device.
【図1】(A)は*のバーコードをドットのオン/オフ
で表わした図、(B)は(A)の各ドットのオン/オフ
をビットのオン/オフで表わした図、(C)は(B)の
ビットデータを16進文字コードとして表わした図であ
る。FIG. 1A is a diagram in which a * bar code is represented by dot on / off; FIG. 1B is a diagram in which each dot on / off is represented by bit on / off in FIG. ) Is a diagram showing the bit data of (B) as a hexadecimal character code.
【図2】各キャラクタのバーコードを16進文字コード
で夫々表わした図である。FIG. 2 is a diagram showing a bar code of each character by a hexadecimal character code.
【図3】文字コードで表わされた9桁のキャラクタ列を
実際のバーコードに変換する過程を説明する図である。FIG. 3 is a diagram illustrating a process of converting a 9-digit character string represented by a character code into an actual barcode.
Claims (2)
られているバーコードのバー(黒部分)とスペース(白
部分)とをドットのオンオフに置換する手段と、この置
換後の各ドットのオンオフをコンピュータの1ビットに
対応させる手段とを含むことを特徴とするバーコードの
データ化システム。1. A means for replacing a bar (black part) and a space (white part) of a bar code respectively assigned to each unit character and each unit symbol with dot on / off, and means for replacing each dot after this replacement. A system for converting a bar code into a data, including means for associating ON / OFF with one bit of a computer.
を所定ビットづつ区切ってバイト単位として複数バイト
で表現することを特徴とする請求項1記載のバーコード
のデータ化システム。2. The bar code data conversion system according to claim 1, wherein a bit string in which each dot is turned on and off is divided into predetermined bits and expressed in a plurality of bytes as a byte unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5445392A JPH05217011A (en) | 1992-02-05 | 1992-02-05 | System for converting bar code into data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5445392A JPH05217011A (en) | 1992-02-05 | 1992-02-05 | System for converting bar code into data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05217011A true JPH05217011A (en) | 1993-08-27 |
Family
ID=12971110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5445392A Pending JPH05217011A (en) | 1992-02-05 | 1992-02-05 | System for converting bar code into data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05217011A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE2922076A1 (en) * | 1978-05-30 | 1979-12-06 | Mitsubishi Electric Corp | SPEAKER |
-
1992
- 1992-02-05 JP JP5445392A patent/JPH05217011A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE2922076A1 (en) * | 1978-05-30 | 1979-12-06 | Mitsubishi Electric Corp | SPEAKER |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4602383A (en) | Image data compression system | |
WO1986004703A1 (en) | Electronic publishing | |
JPS58173791A (en) | Compression of complicated characters | |
JP3045008B2 (en) | Halftone image compression method | |
JPH05217011A (en) | System for converting bar code into data | |
JPS5882375A (en) | Character generator | |
JPH0113117B2 (en) | ||
JP2002086809A (en) | Information medium and production method therefor | |
JPH05324931A (en) | Color printer and color display device | |
JPS62136693A (en) | Graphic character output system | |
JPH05323935A (en) | Method of compressing and storing font pattern | |
JP2000123131A (en) | Bar code generating method | |
JPH11227263A (en) | Printing system, printing equipment and printing controller | |
JP3160446B2 (en) | Recording device | |
JPS6173990A (en) | Character pattern generator | |
JPH082712Y2 (en) | Display controller | |
JPS6364086A (en) | Output unit | |
JP2502869B2 (en) | Character font data encoding processing method | |
JP2881924B2 (en) | Data storage device | |
JP2909075B2 (en) | Printing equipment | |
JPH117274A (en) | Method and device for compressing character font, character font reproducing method, tape printing device and document preparation machine | |
JPH0325495A (en) | Printer | |
JPH10312185A (en) | Character font reproducing method and tape printing device and document preparing machine | |
JPS60183177A (en) | Serial-type electronic printer | |
JPS61275789A (en) | Character pattern generator |