JP2008040541A - Barcode processor and barcode processing program - Google Patents

Barcode processor and barcode processing program Download PDF

Info

Publication number
JP2008040541A
JP2008040541A JP2006209919A JP2006209919A JP2008040541A JP 2008040541 A JP2008040541 A JP 2008040541A JP 2006209919 A JP2006209919 A JP 2006209919A JP 2006209919 A JP2006209919 A JP 2006209919A JP 2008040541 A JP2008040541 A JP 2008040541A
Authority
JP
Japan
Prior art keywords
barcode
program
spot width
optical mouse
period
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.)
Granted
Application number
JP2006209919A
Other languages
Japanese (ja)
Other versions
JP4280935B2 (en
Inventor
Masayuki Isobe
正幸 礒部
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2006209919A priority Critical patent/JP4280935B2/en
Publication of JP2008040541A publication Critical patent/JP2008040541A/en
Application granted granted Critical
Publication of JP4280935B2 publication Critical patent/JP4280935B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To read a barcode using an optical mouse. <P>SOLUTION: A barcode processor is provided with; a read period split program 18 which splits a read period when an optical mouse 5 which detects moving distance using light passes a barcode into first periods 84 and 85, and second periods 81, 82 and 83; and a barcode reading program 19 which decodes the barcode based on the first periods 84 and 85, and the second periods 81, 82 and 83. The barcode consists of a first area in which movement can be detected by the optical mouse 5 and a second area in which movement cannot be detected by the optical mouse 5. The first periods 84 and 85 are the periods when the movement can be detected by the optical mouse 5 and the second periods 81, 82 and 83 are the periods when the movement cannot be detected by the optical mouse 5. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、バーコード処理装置およびバーコード処理プログラムに関し、特に、光学式マウスを用いてバーコードを処理するときに利用されるバーコード処理装置およびバーコード処理プログラムに関する。   The present invention relates to a barcode processing apparatus and a barcode processing program, and more particularly, to a barcode processing apparatus and a barcode processing program used when processing a barcode using an optical mouse.

光学式マウスを用いてバーコードを読み取るシステムが知られている。このようなシステムに適用される光学式マウスは、特別な仕組みをハードウェア的に備えている。すなわち、その光学式マウスは、通常のマウスとして使用するモードと、バーコードリーダとして使用するモードを相互に切り替える手段を備え、バーコードリーダモードでバーコードをなぞったときに、バーコードのデータをコンピュータへ入力する。このようなマウスは、様々な素材の上に印刷されたバーコードに対応することができる一方、一般的に普及している光学式マウスより高価であり、さらにOSに専用のデバイスドライバを導入しなければならないことも多く、コストが高い。このような特別な仕組みを持たない一般的な光学式マウスを用いてバーコードを読み取ることが望まれている。   A system for reading a bar code using an optical mouse is known. An optical mouse applied to such a system has a special mechanism in hardware. That is, the optical mouse is provided with a means for switching between a mode used as a normal mouse and a mode used as a barcode reader. When the barcode is traced in the barcode reader mode, the barcode data is recorded. Input to the computer. While such a mouse can handle barcodes printed on various materials, it is more expensive than a commonly used optical mouse, and a dedicated device driver is introduced into the OS. There are many things that must be done and the cost is high. It is desired to read a barcode using a general optical mouse that does not have such a special mechanism.

特開2005−4423号公報には、バーコードを精度よく読み取る光学式マウスが開示されている。その光学式マウスは、連続して撮像した被読み取り面の画像を比較することにより、前記被読み取り面に対する移動量を算出する光学式マウスであって、中央部よりも幅が狭い先端部又は後端部において、前記被読み取り面からの高さが、端部に向かって低くなるように傾斜した傾斜部と、前記先端部又は後端部において、前記被読み取り面に対向して設けられた集光レンズと、前記被読み取り面に対する前記集光レンズの上方において、前記傾斜部の内側に沿って設けられた反射部と、前記集光レンズが集光した前記被読み取り面の光学像が前記反射部で反射されて結像する位置に設けられ、前記光学像を撮像する撮像素子と、前記被読み取り面の前記集光レンズに対向する位置に向けて発光する発光部とを備える。   Japanese Patent Laying-Open No. 2005-4423 discloses an optical mouse that accurately reads a barcode. The optical mouse is an optical mouse that calculates the amount of movement with respect to the read surface by comparing images of the read surface taken continuously, and has a front end portion or a rear portion that is narrower than the center portion. An inclined portion that is inclined so that a height from the read surface decreases toward the end portion at the end portion, and a collection provided at the front end portion or the rear end portion so as to face the read surface. An optical image of the optical lens, a reflection part provided along the inside of the inclined part above the condenser lens with respect to the read surface, and an optical image of the read surface condensed by the condenser lens are reflected. An image sensor that captures the optical image, and a light emitting unit that emits light toward a position of the surface to be read facing the condenser lens.

特開2005−4641号公報には、バーコードを精度よく読み取る光学式マウスが開示されている。その光学式マウスは、連続して撮像した被読み取り面の画像を比較することにより、前記被読み取り面に対する移動量を出力する光学式マウスであって、複数の光電変換素子を一面に有する撮像部と、前記被読み取り面の光学像を前記複数の光電変換素子上に投影する投影部と、前記光学像が投影された前記複数の光電変換素子がそれぞれ発生する電荷を、一定の周期で連続して読み出す電荷読み出し部と、当該光学式マウスがバーコードを読み取る場合には、当該光学式マウスが前記移動量を算出する場合よりも狭い範囲の前記光電変換素子によって発生される電荷を、当該光学式マウスが前記移動量を算出する場合よりも短い周期で前記電荷読み出し部に読み出させる読み出し制御部と、前記光学式マウスがバーコードを読み取る場合に、前記電荷読み出し部が読み出した電荷を二値の信号に変換して出力する変換部と、前記変換部が連続して出力する前記二値の信号に基づいて、前記被読み取り面に表示されたバーコード画像を合成する合成部とを備える。   Japanese Patent Application Laid-Open No. 2005-4641 discloses an optical mouse that accurately reads a barcode. The optical mouse is an optical mouse that outputs a moving amount with respect to the read surface by comparing images of the read surface that are continuously captured, and an imaging unit having a plurality of photoelectric conversion elements on one surface And a projection unit that projects an optical image of the surface to be read onto the plurality of photoelectric conversion elements, and a charge generated by each of the plurality of photoelectric conversion elements on which the optical image is projected is continuously generated at a constant period. When the optical mouse reads the barcode, the electric charge generated by the photoelectric conversion element in a narrower range than the case where the optical mouse calculates the movement amount is read. A readout control unit that causes the charge readout unit to read out in a shorter cycle than when the movement mouse calculates the movement amount, and a case where the optical mouse reads a barcode A conversion unit that converts the charge read by the charge reading unit into a binary signal and outputs the signal, and a bar displayed on the read surface based on the binary signal that the conversion unit continuously outputs. A synthesizing unit that synthesizes the code image.

特開平04−7622号公報には、カーソル指示とバーコードの読み取りとを操作者が1つのマウスによる操作で行うことができるバーコードリーダー兼用光学式マウスが開示されている。そのバーコードリーダー兼用光学式マウスは、バーコード読み取り手段と、マウスパッドのラインパターン読み取り手段を備えてなる。   Japanese Patent Application Laid-Open No. 04-7622 discloses an optical mouse that is also used as a barcode reader, which allows an operator to perform cursor instruction and barcode reading by operating with a single mouse. The bar code reader / optical mouse comprises bar code reading means and mouse pad line pattern reading means.

特開平05−19955号公報には、光学式マウスにバーコード形式のコマンド入力機能を設けることにより、キーボード等の他の入力装置を用いることなくコマンドを入力でき作業効率があがる光学式マウスが開示されている。その光学式マウスは、入力信号に対し、信号がバーコードによる信号、またはマウスの移動量を示すための信号かを識別する手段と、バーコードの信号と識別した場合には、バーコードの信号を読み取り、上位接続装置へ通報する手段とを有することを特徴とする。   Japanese Laid-Open Patent Publication No. 05-19955 discloses an optical mouse in which a command input function in the form of a barcode is provided on an optical mouse, so that commands can be input without using other input devices such as a keyboard, thereby improving work efficiency. Has been. The optical mouse has a means for identifying whether the signal is a bar code signal or a signal indicating the amount of movement of the mouse with respect to the input signal. And a means for reporting to the higher-level connection device.

特開平05−189142号公報には、できるだけキーボードを使用することなくコンピュータに対して各種の命令やデータを入力することができ、これによってキーボードの習熟度が低い人でも必要な命令やデータを簡単に入力することができ、操作性を大幅に向上させることができるマウス入力システムが開示されている。そのマウス入力システムは、格子状に形成された位置表示体を有する板状のマウスパッドと、入力対象となるバーコードのバーコード表示体を有する板状のバーコードパッドと、前記マウスパッドに載せられ、通常のマウスモードが設定されているとき、光を出射しながら、前記光の反射光を受光してこの受光内容に基づいて動かされた方向および速度に応じた信号を生成して出力し、また前記バーコードパッドに載せられ、バーコードリーダモードが設定されているとき、光を出射しながら、前記光の反射光を受光してこの受光内容に基づいてその位置にあるバーコード表示体で示されるバーコードを読み出して読み出し内容信号を生成して出力するマウスと、を備えたことを特徴とする。   In Japanese Patent Laid-Open No. 05-189142, various commands and data can be input to a computer without using a keyboard as much as possible. There is disclosed a mouse input system that can be used to input data and can greatly improve operability. The mouse input system includes a plate-like mouse pad having a position display body formed in a grid, a plate-like barcode pad having a barcode display body of a barcode to be input, and the mouse pad. When the normal mouse mode is set, the reflected light of the light is received while emitting light, and a signal corresponding to the direction and speed moved based on the received light content is generated and output. When the barcode reader mode is set on the barcode pad and the barcode reader mode is set, the reflected light of the light is received while emitting the light, and the barcode display body located at the position based on the received light content And a mouse for generating a read content signal and outputting the read content signal.

特公平07−76982号公報には、各文字を表わす異なるマーク・スペース・シーケンスの各グループ自体に自己クロツク機能を組み込んでいる同一幅マークから成るバーコードの形成で識別情報を基板上にマーク付けする装置が開示されている。その装置は、各文字、数字、記号(単に文字と呼ぶ)に対応して予め割り振られている単位スペース幅W1の1倍、2倍・・・M倍(Mは3以上の整数)に等しいスペース幅で相互に隔離されているN個の同一幅W2のマークから成る各文字当り1個の固定長マーク・スペース・シーケンスの複数グループであつて、各グループ内の対応する相次ぐ複数マーク/スペース要素位置に同一組み合せのクロツク用のサブシーケンスが組み込まれているバーコード体系を準備し、基板を識別するための入力文字列情報を、上記バーコード形式の文字列に対応する2進値電気信号を変換する手段と、上記電気信号に応働して上記入力文字列情報を、対応するバーコード形式で、基板上にマークを付ける手段と、より成り、各文字に対応する各コード・シーケンス・グループ中にクロツク用のサブシーケンスが組み込まれているバーコードを基板上にマーク付けする。   In Japanese Examined Patent Publication No. 07-76982, identification information is marked on a substrate by forming a bar code consisting of the same width mark incorporating a self-clocking function in each group of different mark space sequences representing each character. An apparatus is disclosed. The device is equal to 1 time, 2 times,..., M times (M is an integer of 3 or more) a unit space width W1 allocated in advance corresponding to each character, number and symbol (simply called a character). Multiple groups of fixed-length mark-space sequences, one for each character, consisting of N equal-width W2 marks separated from each other by a space width, with corresponding multiple marks / spaces within each group Prepare a barcode system in which sub-sequences for clocks of the same combination are incorporated at the element positions, and input character string information for identifying the board as binary electrical signals corresponding to the character string in the barcode format. And a means for marking the input character string information on the board in a corresponding barcode format in response to the electrical signal, and each code sequence corresponding to each character. A bar code that contains a sub-sequence for clocks in the security group is marked on the substrate.

特開2005−4423号公報JP 2005-4423 A 特開2005−4641号公報JP-A-2005-4641 特開平04−7622号公報Japanese Patent Laid-Open No. 04-7622 特開平05−19955号公報JP 05-19955 A 特開平05−189142号公報JP 05-189142 A 特公平07−76982号公報Japanese Patent Publication No. 07-76982

本発明の課題は、光学式マウスを用いてバーコードを読み取るバーコード処理装置およびバーコード処理プログラムを提供することにある。
本発明の他の課題は、光学式マウスを用いて読み取ることができるバーコードを作成するバーコード処理装置およびバーコード処理プログラムを提供することにある。
An object of the present invention is to provide a barcode processing apparatus and a barcode processing program for reading a barcode using an optical mouse.
Another object of the present invention is to provide a barcode processing apparatus and a barcode processing program for creating a barcode that can be read using an optical mouse.

以下に、発明を実施するための最良の形態・実施例で使用される符号を括弧付きで用いて、課題を解決するための手段を記載する。この符号は、特許請求の範囲の記載と発明を実施するための最良の形態・実施例の記載との対応を明らかにするために付加されたものであり、特許請求の範囲に記載されている発明の技術的範囲の解釈に用いてはならない。   In the following, means for solving the problems will be described using the reference numerals used in the best modes and embodiments for carrying out the invention in parentheses. This reference numeral is added to clarify the correspondence between the description of the claims and the description of the best mode for carrying out the invention / example, and is described in the claims. It should not be used to interpret the technical scope of the invention.

本発明によるバーコード処理装置(2)は、光を用いて移動距離を検出する光学式マウス(5)がバーコードを通過する読取期間を第1期間(84、85)と第2期間(81、82、83)とに分離する読取期間分離プログラム(18)と、第1期間(84、85)と第2期間(81、82、83)とに基づいてバーコードをデコードするバーコード読取プログラム(19)とを備えている。バーコードは、光学式マウス(5)により移動が検出可能である第1領域と、光学式マウス(5)により移動が検出不可能である第2領域とから形成されている。第1期間(84、85)は、光学式マウス(5)により移動が検出される期間である。第2期間(81、82、83)は、光学式マウス(5)により移動が検出されない期間である。   The barcode processing apparatus (2) according to the present invention has a reading period in which the optical mouse (5) that detects the moving distance using light passes through the barcode as the first period (84, 85) and the second period (81). , 82, 83), and a barcode reading program for decoding a barcode based on the first period (84, 85) and the second period (81, 82, 83). (19). The barcode is formed of a first area where movement can be detected by the optical mouse (5) and a second area where movement cannot be detected by the optical mouse (5). The first period (84, 85) is a period during which movement is detected by the optical mouse (5). The second period (81, 82, 83) is a period during which no movement is detected by the optical mouse (5).

バーコードは、等間隔に配置される複数の平行線分領域(53、54、55−1〜55−n)から形成されている。複数の平行線分領域(53、54、55−1〜55−n)は、バーが記載される領域と、バーが記載されない領域とから形成される。   The barcode is formed of a plurality of parallel line segment regions (53, 54, 55-1 to 55-n) arranged at equal intervals. The plurality of parallel line segment regions (53, 54, 55-1 to 55-n) are formed from regions where bars are described and regions where bars are not described.

本発明によるバーコード処理装置(2)は、互いに間隔が異なる複数の線対(42−1〜42−m)が記載されるスポット幅測定用紙(41)を印刷するスポット幅(23)測定用紙印刷プログラム(13)と、光学式マウス(5)が複数の線対(42−1〜42−m)を通過するときに移動が検出される移動検出期間に基づいてスポット幅(23)を算出するスポット幅測定プログラム(14)とをさらに備えている。バーコード読取プログラム(19)は、そのスポット幅(23)にさらに基づいてバーコードをデコードする。   The barcode processing apparatus (2) according to the present invention is a spot width (23) measurement sheet for printing a spot width measurement sheet (41) on which a plurality of line pairs (42-1 to 42-m) having different intervals are described. The spot width (23) is calculated based on the printing program (13) and the movement detection period in which movement is detected when the optical mouse (5) passes through the plurality of line pairs (42-1 to 42-m). And a spot width measurement program (14). The barcode reading program (19) further decodes the barcode based on the spot width (23).

本発明によるバーコード処理装置(2)は、入力装置(6)を用いて情報を収集するデータ入力プログラム(15)と、スポット幅(23)に基づいて情報をエンコードしてバーコードを生成するバーコード印刷プログラム(16)とをさらに備えている。   The barcode processing device (2) according to the present invention generates a barcode by encoding information based on the data input program (15) that collects information using the input device (6) and the spot width (23). And a barcode printing program (16).

本発明によるバーコード処理装置(2)は、互いに間隔が異なる複数の線対(42−1〜42−m)が記載されるスポット幅測定用紙(41)を印刷するスポット幅(23)測定用紙印刷プログラム(13)と、光を用いて移動距離を検出する光学式マウス(5)が複数の線対(42−1〜42−m)を通過するときに移動が検出される移動検出期間に基づいてスポット幅(23)を算出するスポット幅測定プログラム(14)と、入力装置(6)を用いて情報を収集するデータ入力プログラム(15)と、スポット幅(23)に基づいて情報がエンコードされたバーコードを生成するバーコード印刷プログラム(16)とをさらに備えている。   The barcode processing apparatus (2) according to the present invention is a spot width (23) measurement sheet for printing a spot width measurement sheet (41) on which a plurality of line pairs (42-1 to 42-m) having different intervals are described. In a movement detection period in which movement is detected when the printing program (13) and the optical mouse (5) that detects the movement distance using light pass through a plurality of line pairs (42-1 to 42-m). Information is encoded based on a spot width measurement program (14) for calculating a spot width (23) based on the data, a data input program (15) for collecting information using an input device (6), and the spot width (23). And a barcode printing program (16) for generating the barcode.

バーコードは、スポット幅(23)に基づいて算出される間隔(58)で配置される複数の平行線分領域(53、54、55−1〜55−n)から形成されている。複数の平行線分領域(53、54、55−1〜55−n)は、バーが記載される領域と、バーが記載されない領域とから形成される。   The barcode is formed of a plurality of parallel line segment regions (53, 54, 55-1 to 55-n) arranged at intervals (58) calculated based on the spot width (23). The plurality of parallel line segment regions (53, 54, 55-1 to 55-n) are formed from regions where bars are described and regions where bars are not described.

本発明によるバーコード処理プログラムは、光を用いて移動距離を検出する光学式マウス(5)がバーコードを通過する読取期間を第1期間(84、85)と第2期間(81、82、83)とに分離する読取期間分離プログラム(18)と、第1期間(84、85)と第2期間(81、82、83)とに基づいてバーコードをデコードするバーコード読取プログラム(19)とを備えている。バーコードは、光学式マウス(5)により移動が検出可能である第1領域と、光学式マウス(5)により移動が検出不可能である第2領域とから形成されている。第1期間(84、85)は、光学式マウス(5)により移動が検出される期間である。第2期間(81、82、83)は、光学式マウス(5)により移動が検出されない期間である。   According to the barcode processing program of the present invention, the reading period in which the optical mouse (5) that detects the moving distance using light passes the barcode is divided into the first period (84, 85) and the second period (81, 82, 83) and a barcode reading program (19) for decoding a barcode based on the first period (84, 85) and the second period (81, 82, 83). And. The barcode is formed of a first area where movement can be detected by the optical mouse (5) and a second area where movement cannot be detected by the optical mouse (5). The first period (84, 85) is a period during which movement is detected by the optical mouse (5). The second period (81, 82, 83) is a period during which no movement is detected by the optical mouse (5).

バーコードは、等間隔に配置される複数の平行線分領域(53、54、55−1〜55−n)から形成されている。複数の平行線分領域(53、54、55−1〜55−n)は、バーが記載される領域と、バーが記載されない領域とから形成される。   The barcode is formed of a plurality of parallel line segment regions (53, 54, 55-1 to 55-n) arranged at equal intervals. The plurality of parallel line segment regions (53, 54, 55-1 to 55-n) are formed from regions where bars are described and regions where bars are not described.

本発明によるバーコード処理プログラムは、互いに間隔が異なる複数の線対(42−1〜42−m)が記載されるスポット幅測定用紙(41)を印刷するスポット幅(23)測定用紙印刷プログラム(13)と、光学式マウス(5)が複数の線対(42−1〜42−m)を通過するときに移動が検出される移動検出期間に基づいてスポット幅(23)を算出するスポット幅測定プログラム(14)とをさらに備えている。バーコード読取プログラム(19)は、スポット幅(23)にさらに基づいてバーコードをデコードする。   The barcode processing program according to the present invention is a spot width (23) measurement sheet printing program (printing a spot width measurement sheet (41) on which a plurality of line pairs (42-1 to 42-m) having different intervals are described. 13) and a spot width for calculating a spot width (23) based on a movement detection period in which movement is detected when the optical mouse (5) passes through a plurality of line pairs (42-1 to 42-m). And a measurement program (14). The barcode reading program (19) further decodes the barcode based on the spot width (23).

本発明によるバーコード処理プログラムは、入力装置(6)を用いて情報を収集するデータ入力プログラム(15)と、スポット幅(23)に基づいて情報をエンコードしてバーコードを生成するバーコード印刷プログラム(16)とをさらに備えている。   The barcode processing program according to the present invention includes a data input program (15) that collects information using the input device (6), and barcode printing that encodes information based on the spot width (23) to generate a barcode. And a program (16).

本発明によるバーコード処理プログラムは、互いに間隔が異なる複数の線対(42−1〜42−m)が記載されるスポット幅測定用紙(41)を印刷するスポット幅(23)測定用紙印刷プログラム(13)と、光を用いて移動距離を検出する光学式マウス(5)が複数の線対(42−1〜42−m)を通過するときに移動が検出される移動検出期間に基づいてスポット幅(23)を算出するスポット幅測定プログラム(14)と、入力装置(6)を用いて情報を収集するデータ入力プログラム(15)と、スポット幅(23)に基づいて情報がエンコードされたバーコードを生成するバーコード印刷プログラム(16)とをさらに備えている。   The barcode processing program according to the present invention is a spot width (23) measurement sheet printing program (printing a spot width measurement sheet (41) on which a plurality of line pairs (42-1 to 42-m) having different intervals are described. 13) and a spot based on a movement detection period in which movement is detected when the optical mouse (5) that detects the movement distance using light passes through a plurality of line pairs (42-1 to 42-m). A spot width measurement program (14) for calculating the width (23), a data input program (15) for collecting information using the input device (6), and a bar in which information is encoded based on the spot width (23) And a barcode printing program (16) for generating codes.

バーコードは、スポット幅(23)に基づいて算出される間隔(58)で配置される複数の平行線分領域(53、54、55−1〜55−n)から形成されている。複数の平行線分領域(53、54、55−1〜55−n)は、バーが記載される領域と、バーが記載されない領域とから形成される。   The barcode is formed of a plurality of parallel line segment regions (53, 54, 55-1 to 55-n) arranged at intervals (58) calculated based on the spot width (23). The plurality of parallel line segment regions (53, 54, 55-1 to 55-n) are formed from regions where bars are described and regions where bars are not described.

本発明によるバーコード処理装置およびバーコード処理プログラムは、光学式マウスを用いてバーコードを読み取ることができる。または本発明によるバーコード処理装置およびバーコード処理プログラムは、光学式マウスを用いて読み取るバーコードを作成することができる。   The barcode processing apparatus and barcode processing program according to the present invention can read a barcode using an optical mouse. Alternatively, the barcode processing apparatus and barcode processing program according to the present invention can create a barcode that is read using an optical mouse.

図面を参照して、本発明によるバーコード処理装置の実施の形態を記載する。そのバーコード処理装置2は、図1に示されているように、バーコードシステム1に適用されている。バーコードシステム1は、バーコード処理装置2とプリンタ3と光学式マウス5とキーボード6とディスプレイ7とを備えている。バーコード処理装置2は、コンピュータであり、図示されていないCPUと記憶装置とを備えている。そのCPUは、バーコード処理装置2にインストールされるコンピュータプログラムを実行して、その記憶装置とプリンタ3と光学式マウス5とキーボード6とディスプレイ7とを制御する。その記憶装置は、そのコンピュータプログラムを記録し、そのCPUにより生成される情報を一時的に記録する。   An embodiment of a barcode processing apparatus according to the present invention will be described with reference to the drawings. The barcode processing apparatus 2 is applied to a barcode system 1 as shown in FIG. The barcode system 1 includes a barcode processing device 2, a printer 3, an optical mouse 5, a keyboard 6, and a display 7. The barcode processing device 2 is a computer and includes a CPU and a storage device not shown. The CPU executes a computer program installed in the barcode processing device 2 and controls the storage device, the printer 3, the optical mouse 5, the keyboard 6, and the display 7. The storage device records the computer program and temporarily records information generated by the CPU.

光学式マウス5は、図示されていない発光ダイオードと光学センサとを備えている。光学式マウス5は、一定時間ごとに定期的に、その発光ダイオードを用いて照射対象(床面)に光をスポット状に照射して、その光学センサを用いてその光の反射光から得られる照射対象の表面のパターンを読み取る。その光は、その照射対象の素材表面の凹凸によって光と影ができるように、その素材表面に対して斜めに照射されている。光学式マウス5は、その一定時間の間隔の前後で読み取ったパターンを比較することにより、光学式マウス5の移動方向と移動量とを算出してバーコード処理装置2に出力する。   The optical mouse 5 includes a light emitting diode and an optical sensor not shown. The optical mouse 5 is obtained from the reflected light of the light using the optical sensor by regularly irradiating the irradiation target (floor surface) with the light emitting diode in a spot shape at regular intervals. Read the pattern of the surface to be irradiated. The light is irradiated obliquely with respect to the surface of the material so that light and shadow are formed by the unevenness of the surface of the material to be irradiated. The optical mouse 5 calculates the movement direction and the movement amount of the optical mouse 5 by comparing the patterns read before and after the fixed time interval, and outputs the calculated movement direction and movement amount to the barcode processing apparatus 2.

光学式マウス5は、その照射対象が凸凹の無い素材の表面であるときに、その表面を常に同じパターンとして読み取ってしまいパターンを比較することができない。このため、光学式マウス5は、このような素材の表面で動かされたときに、その移動方向と移動量とを検出することができない。光学式マウス5は、その素材の表面に何かが印刷されていれば、その移動方向と移動量とを検出することができる。   When the irradiation target is the surface of a material having no irregularities, the optical mouse 5 always reads the surface as the same pattern and cannot compare the patterns. For this reason, when the optical mouse 5 is moved on the surface of such a material, its movement direction and movement amount cannot be detected. If something is printed on the surface of the material, the optical mouse 5 can detect the moving direction and the moving amount.

光学式マウス5は、さらに、図示されていないマウスボタンを備えている。光学式マウス5は、一定時間ごとに定期的に、そのマウスボタンが押下されているか解放されているかをバーコード処理装置2に出力する。   The optical mouse 5 further includes a mouse button (not shown). The optical mouse 5 periodically outputs to the barcode processing apparatus 2 whether the mouse button is pressed or released at regular time intervals.

キーボード6は、図示されていない複数のキーを備えている。キーボード6は、その複数のキーのうちの押下されたキーを識別する情報をバーコード処理装置2に出力する。たとえば、その複数のキーは、互いに異なる複数の文字に対応付けられ、ユーザは、そのキーを所定の順で押下することにより、所望の文字列をバーコード処理装置2に入力することができる。すなわち、キーボード6は、ユーザに操作されることにより文字列を生成してバーコード処理装置2に出力する。ディスプレイ7は、表示面を備えている。ディスプレイ7は、バーコード処理装置2により生成される画面をその表示面に表示する。   The keyboard 6 includes a plurality of keys not shown. The keyboard 6 outputs information identifying the pressed key among the plurality of keys to the barcode processing device 2. For example, the plurality of keys are associated with a plurality of different characters, and the user can input a desired character string to the barcode processing device 2 by pressing the keys in a predetermined order. That is, the keyboard 6 is operated by the user to generate a character string and output it to the barcode processing device 2. The display 7 has a display surface. The display 7 displays the screen generated by the barcode processing device 2 on its display surface.

プリンタ3は、インクを光沢紙8に塗布することにより、バーコード処理装置2により生成されるイメージを光沢紙8に印刷する。光沢紙8は、表面に凸凹が少ない素材であり、光学式マウス5がその表面を移動するときに、光学式マウス5がその移動方向と移動量とを検出することができない素材である。   The printer 3 prints the image generated by the barcode processing device 2 on the glossy paper 8 by applying ink to the glossy paper 8. The glossy paper 8 is a material with little unevenness on the surface, and the optical mouse 5 cannot detect the moving direction and the moving amount when the optical mouse 5 moves on the surface.

図2は、バーコード処理装置2を示している。バーコード処理装置2は、コンピュータプログラムであるアプリケーションプログラム11とマウスドライバ12とスポット幅測定用紙印刷プログラム13とスポット幅測定プログラム14とデータ入力プログラム15とバーコード印刷プログラム16と停止判定条件入力プログラム17と読取期間分離プログラム18とバーコード読取プログラム19とがインストールされている。   FIG. 2 shows the barcode processing apparatus 2. The barcode processing apparatus 2 includes an application program 11 which is a computer program, a mouse driver 12, a spot width measurement paper printing program 13, a spot width measurement program 14, a data input program 15, a barcode printing program 16, and a stop determination condition input program 17. A reading period separating program 18 and a barcode reading program 19 are installed.

アプリケーションプログラム11は、アプリケーションプログラム11は、キーボード6を用いて入力される文字列をデータ処理するソフトウエアである。そのソフトウェアとしては、ワープロソフト、表計算ソフト、データベースエンジンが例示される。   The application program 11 is software for data processing of a character string input using the keyboard 6. Examples of the software include word processing software, spreadsheet software, and database engine.

マウスドライバ12は、光学式マウス5により出力される移動方向と移動量とに基づいて、ディスプレイ7に表示されるマウスポインタが表示される位置を変更する。   The mouse driver 12 changes the position where the mouse pointer displayed on the display 7 is displayed based on the moving direction and the moving amount output by the optical mouse 5.

スポット幅測定用紙印刷プログラム13は、プリンタ3を用いて所定のイメージを光沢紙8に印刷してスポット幅測定用紙を作製する。   The spot width measurement paper printing program 13 prints a predetermined image on the glossy paper 8 using the printer 3 to produce a spot width measurement paper.

スポット幅測定プログラム14は、光学式マウス5のマウスボタンが押下されながらスポット幅測定用紙印刷プログラム13により作成されたスポット幅測定用紙の一部表面を光学式マウス5が移動する期間を移動が検出された期間と移動が検出されない期間とに分離し、その2つの期間に基づいてスポット幅を測定する。   The spot width measurement program 14 detects a period during which the optical mouse 5 moves on a part of the surface of the spot width measurement paper created by the spot width measurement paper print program 13 while the mouse button of the optical mouse 5 is pressed. The spot width is measured and the spot width is measured based on the two periods.

データ入力プログラム15は、キーボード6が操作されることにより生成される文字列をキーボード6から収集する。   The data input program 15 collects character strings generated by operating the keyboard 6 from the keyboard 6.

バーコード印刷プログラム16は、データ入力プログラム15により収集された文字列をバーコードにエンコードする。バーコード印刷プログラム16は、スポット幅測定プログラム14により測定されたスポット幅に基づいて、そのバーコードのサイズを算出し、プリンタ3を用いてそのバーコードをそのサイズで光沢紙8に印刷する。   The barcode printing program 16 encodes the character string collected by the data input program 15 into a barcode. The barcode printing program 16 calculates the size of the barcode based on the spot width measured by the spot width measurement program 14 and prints the barcode on the glossy paper 8 with the size using the printer 3.

停止判定条件入力プログラム17は、光学式マウス5のマウスボタンが押下されながらバーコード印刷プログラム16により印刷されたバーコードの上を光学式マウス5が移動する期間に基づいて時間間隔変数Deltaを算出する。時間間隔変数Deltaは、スポット幅測定プログラム14により測定されるスポット幅の約1/4を移動するのにかかる平均時間を示している。時間間隔変数Deltaは、マウスポインタが停止したかどうかを判定するための変数であり、マウス移動イベントを受け取った時刻の間隔がDeltaより大きいときに(すなわち、Deltaが示す期間にマウス移動イベントがないときに)、マウスポインタが停止していた(すなわち、バーコードのバーの無い部分の上を光学式マウス5が移動していた)と判定する。   The stop determination condition input program 17 calculates a time interval variable Delta based on a period during which the optical mouse 5 moves on the barcode printed by the barcode printing program 16 while the mouse button of the optical mouse 5 is pressed. To do. The time interval variable Delta indicates the average time taken to move about ¼ of the spot width measured by the spot width measurement program 14. The time interval variable Delta is a variable for determining whether or not the mouse pointer has stopped. When the time interval when the mouse movement event is received is larger than Delta (that is, there is no mouse movement event in the period indicated by Delta). At that time, it is determined that the mouse pointer has stopped (that is, the optical mouse 5 has moved over a portion of the bar code where there is no bar).

読取期間分離プログラム18は、光学式マウス5のマウスボタンが押下されながらバーコード印刷プログラム16により印刷されたバーコードの上を光学式マウス5が移動する期間を、移動が検出された期間と移動が検出されない期間とに分離する。   The reading period separation program 18 determines the period during which the optical mouse 5 moves on the barcode printed by the barcode printing program 16 while the mouse button of the optical mouse 5 is pressed as the period during which the movement is detected. Is separated from the period in which no is detected.

バーコード読取プログラム19は、読取期間分離プログラム18により分離された2つの期間に基づいて、バーコード印刷プログラム16により印刷されたバーコードを文字列にデコードする。   The barcode reading program 19 decodes the barcode printed by the barcode printing program 16 into a character string based on the two periods separated by the reading period separation program 18.

図3は、光学式マウス5のスポット幅を示している。光学式マウス5は、照射対象の表面21の上で操作されるときに、その表面21のうちの一部の領域22に光を照射して、領域22のパターンを撮像する。そのスポット幅23は、領域22の一方向(たとえば、横方向)の幅を示している。一般的な光学式マウスでは、スポット幅は1cm程度である。   FIG. 3 shows the spot width of the optical mouse 5. When the optical mouse 5 is operated on the irradiation target surface 21, the optical mouse 5 irradiates a part of the surface 21 with light and images the pattern of the region 22. The spot width 23 indicates the width in one direction (for example, the horizontal direction) of the region 22. In a general optical mouse, the spot width is about 1 cm.

図4は、光学式マウス5により移動が検出される領域を示している。光沢紙8は、プリンタ3により表面31にバー32が印刷されたときに、領域34と領域35とが形成される。領域34は、表面31に属する点のうちのバー32からの距離がスポット幅23の半分より小さい点の集合であり、光学式マウス5により移動が検出される領域である。領域35は、表面31のうちの領域34を除く領域であり、光学式マウス5により移動が検出されない領域である。   FIG. 4 shows a region where movement is detected by the optical mouse 5. When the bar 32 is printed on the front surface 31 of the glossy paper 8 by the printer 3, a region 34 and a region 35 are formed. The region 34 is a set of points among the points belonging to the surface 31 whose distance from the bar 32 is smaller than half of the spot width 23, and is a region where movement is detected by the optical mouse 5. The region 35 is a region excluding the region 34 in the surface 31 and is a region where movement is not detected by the optical mouse 5.

図5は、スポット幅測定用紙印刷プログラム13により印刷されるスポット幅測定用紙を示している。そのスポット幅測定用紙41は、光沢紙に複数の図形42−1〜42−m(m=2,3,4,…)と複数の文字列43−1〜43−mとが印刷されている。複数の図形42−1〜42−mは、それぞれ、2本の平行線の対から形成され、その平行線対の間隔は、互いに異なっている。複数の図形42−1〜42−mの平行線対の間隔は、たとえば、5mm、6mm、7mm、…であり、1mmずつ次第に広がっている。文字列43−j(j=1,2,3,…,m)は、図形42−jに並んで配置され、図形42−jを識別し、図形42−jの平行線の間隔を示している。光学式マウス5は、図形42−jの平行線対の間隔が光学式マウス5のスポット幅より狭い場合で、図形42−jの上をその平行線に垂直である方向に移動したときに、平行線対の間で移動が検出される。光学式マウス5は、図形42−jの平行線対の間隔が光学式マウス5のスポット幅より広い場合で、図形42−jの上をその平行線に垂直である方向に移動したときに、平行線対の間で移動が検出されないで、すなわち、マウスポインタの動きが、動く、一瞬とまる、動くというふうになる。   FIG. 5 shows a spot width measurement sheet printed by the spot width measurement sheet printing program 13. The spot width measurement paper 41 has a plurality of graphics 42-1 to 42-m (m = 2, 3, 4,...) And a plurality of character strings 43-1 to 43-m printed on glossy paper. . The plurality of figures 42-1 to 42-m are each formed from two parallel line pairs, and the intervals between the parallel line pairs are different from each other. The interval between the parallel line pairs of the plurality of figures 42-1 to 42-m is, for example, 5 mm, 6 mm, 7 mm,... And gradually increases by 1 mm. The character string 43-j (j = 1, 2, 3,..., M) is arranged side by side with the figure 42-j, identifies the figure 42-j, and indicates the interval between the parallel lines of the figure 42-j. Yes. When the distance between the parallel line pairs of the graphic 42-j is narrower than the spot width of the optical mouse 5 and the optical mouse 5 moves on the graphic 42-j in a direction perpendicular to the parallel lines, Movement is detected between parallel line pairs. When the distance between the parallel line pairs of the graphic 42-j is wider than the spot width of the optical mouse 5 and the optical mouse 5 moves on the graphic 42-j in a direction perpendicular to the parallel lines, No movement is detected between the pair of parallel lines, that is, the movement of the mouse pointer moves, stops momentarily, and moves.

このとき、スポット幅測定プログラム14は、ディスプレイ7に文字列43−jを表示して、文字列43−jに対応する図形42−jの上で光学式マウス5を移動させるようにユーザに促す。スポット幅測定プログラム14は、光学式マウス5が図形42−jをその平行線と垂直である方向に移動したときに、ディスプレイ7に表示されるマウスポインタの動きが途中で停止するかどうかを判別する。スポット幅測定プログラム14は、複数の図形42−1〜42−mからマウスポインタの動きが途中で停止する図形を抽出し、その抽出された図形のうちの間隔が最も狭い図形を算出する。スポット幅測定プログラム14は、その算出された図形の間隔をスポット幅として算出する。   At this time, the spot width measurement program 14 displays the character string 43-j on the display 7 and prompts the user to move the optical mouse 5 on the graphic 42-j corresponding to the character string 43-j. . The spot width measurement program 14 determines whether or not the movement of the mouse pointer displayed on the display 7 stops halfway when the optical mouse 5 moves the figure 42-j in a direction perpendicular to the parallel line. To do. The spot width measurement program 14 extracts a figure in which the movement of the mouse pointer stops midway from the plurality of figures 42-1 to 42-m, and calculates a figure having the narrowest interval among the extracted figures. The spot width measurement program 14 calculates the calculated interval between the figures as a spot width.

スポット幅測定用紙印刷プログラム13は、スポット幅測定プログラム14により複数の図形42−1〜42−mの全部においてマウスポインタの動きが途中で停止しないときに、間隔が図形42−1〜42−mよりも大きい平行線対が記載されるスポット幅測定用紙をさらに作製する。   The spot width measurement paper printing program 13 sets the interval between the graphics 42-1 to 42-m when the spot width measurement program 14 does not stop the movement of the mouse pointer in all of the graphics 42-1 to 42-m. Further, a spot width measurement paper on which a larger parallel line pair is described is prepared.

図6は、バーコード印刷プログラム16により印刷されるバーコードを示している。そのバーコード52は、バーコード印刷プログラム16によりプリンタ3を用いて光沢紙8に印刷される。バーコード52は、複数の線分領域から形成されている。その複数の線分領域は、所定の長さ56の線分に形成され、互いに平行になるように配置されている。その複数の線分領域は、左端線分領域53と右端線分領域54と複数の線分領域55−1〜55−n(n=2,3,4,…)とから形成されている。左端線分領域53と右端線分領域54とは、それぞれが長方形の対辺を形成するように、かつ、バーコード52の全長57だけ離れるように、配置されている。複数の線分領域55−1〜55−nは、左端線分領域53と右端線分領域54との間に配置され、左端線分領域53と右端線分領域54とを対辺とする長方形の内部に配置されている。線分領域55−1は、左端線分領域53から所定の間隔58だけ離れるように、配置されている。線分領域55−(i+1)(i=1,2,3,…,n−1)は、線分領域55−iから所定の間隔58だけ離れるように、配置されている。右端線分領域54は、線分領域55−nから所定の間隔58だけ離れるように、配置されている。   FIG. 6 shows a barcode printed by the barcode printing program 16. The barcode 52 is printed on the glossy paper 8 using the printer 3 by the barcode printing program 16. The barcode 52 is formed from a plurality of line segment regions. The plurality of line segment regions are formed as line segments having a predetermined length 56 and are arranged in parallel to each other. The plurality of line segment regions are formed of a left end line segment region 53, a right end line segment region 54, and a plurality of line segment regions 55-1 to 55-n (n = 2, 3, 4,...). The left end line segment area 53 and the right end line segment area 54 are arranged so as to form opposite sides of the rectangle and to be separated by the entire length 57 of the barcode 52. The plurality of line segment regions 55-1 to 55-n are arranged between the left end line segment region 53 and the right end line segment region 54, and are rectangular in shape with the left end line segment region 53 and the right end line segment region 54 as opposite sides. Arranged inside. The line segment area 55-1 is arranged so as to be separated from the left end line segment area 53 by a predetermined interval 58. The line segment region 55- (i + 1) (i = 1, 2, 3,..., N−1) is arranged so as to be separated from the line segment region 55-i by a predetermined interval 58. The right end line segment region 54 is arranged so as to be separated from the line segment region 55-n by a predetermined interval 58.

間隔58は、スポット幅測定プログラム14により算出されるスポット幅に基づいて算出され、たとえば、スポット幅の3/4倍の長さである。全長57は、間隔58の整数倍になるように、調整される。たとえば、全長Lは、間隔58の整数倍でないときに、間隔58の長さ3S/4と剰余演算%とを用いて、次式:
L−L%(3S/4)
により表現される値に置換される。このとき、バーコード52の両端の線分領域を除く線分領域の個数nは、次式:
4L/3S−1
により表現される値に等しい。このとき、バーコード52のパターンの総数は、2となる。バーコード52が表すデータは、0〜2n−1の値とすることができる。たとえば、バーコード52は、nが9を示すときに、9つの線分領域にバーの有無を割り当てることにより、2(=512)通りのパターンが得られる。このとき、バーコード52は、0〜511の整数を表現することができる。
The interval 58 is calculated based on the spot width calculated by the spot width measurement program 14, and is, for example, 3/4 times the spot width. The total length 57 is adjusted to be an integral multiple of the interval 58. For example, when the total length L is not an integral multiple of the interval 58, the length 3S / 4 of the interval 58 and the remainder calculation% are used, and the following formula:
L-L% (3S / 4)
Is replaced by the value represented by. At this time, the number n of line segment areas excluding the line segment areas at both ends of the barcode 52 is expressed by the following formula:
4L / 3S-1
Is equal to the value represented by At this time, the total number of patterns of the barcode 52 is 2n . The data represented by the bar code 52 can be a value from 0 to 2 n-1 . For example, in the barcode 52, when n indicates 9 , 2 9 (= 512) patterns are obtained by assigning the presence or absence of bars to nine line segment regions. At this time, the barcode 52 can represent an integer of 0 to 511.

左端線分領域53と右端線分領域54とは、インクが塗布されてバーが印刷されている。
複数の線分領域55−1〜55−nのうちの一部の線分領域は、インクが塗布されてバーが印刷され、残りの線分領域は、バーが印刷されていない。すなわち、バーコード52は、データ入力プログラム15により収集された文字列を、複数の線分領域55−1〜55−nのバーを印刷する領域とバーを印刷しない領域との順列により表現している。
In the left end line segment area 53 and the right end line segment area 54, ink is applied and a bar is printed.
In some of the plurality of line segment areas 55-1 to 55-n, ink is applied and a bar is printed, and in the remaining line segment areas, no bar is printed. That is, the bar code 52 represents a character string collected by the data input program 15 by a permutation of a region where a bar of a plurality of line segment regions 55-1 to 55-n is printed and a region where a bar is not printed. Yes.

図7は、アプリケーションプログラム11により生成される1つの画面を示している。その画面61は、データ入力領域63を備えている。データ入力領域63には、文字列入力用カーソル64が表示されている。アプリケーションプログラム11は、キーボード6が操作されるときに、その操作により生成される文字列をデータ入力領域63に表示して、その文字列をデータ処理する。   FIG. 7 shows one screen generated by the application program 11. The screen 61 includes a data input area 63. In the data input area 63, a character string input cursor 64 is displayed. When the keyboard 6 is operated, the application program 11 displays a character string generated by the operation in the data input area 63 and processes the character string.

図7は、さらに、読取期間分離プログラム18により生成される画面を示している。その画面62は、ユーザによる光学式マウス5またはキーボード6の操作に応答して表示される。画面62は、光学式マウス5により出力される移動方向と移動量とに基づいて移動するマウスポインタ65を表示するために使用される。すなわち、ユーザは、バーコード52を文字列にデコードさせるときに、マウスポインタ65が画面62の内部を移動するようにマウスボタンを押しながら光学式マウス5をバーコード52の上で移動させる。   FIG. 7 further shows a screen generated by the reading period separation program 18. The screen 62 is displayed in response to the operation of the optical mouse 5 or the keyboard 6 by the user. The screen 62 is used to display a mouse pointer 65 that moves based on the movement direction and movement amount output by the optical mouse 5. That is, when decoding the barcode 52 into a character string, the user moves the optical mouse 5 on the barcode 52 while pressing the mouse button so that the mouse pointer 65 moves within the screen 62.

図8は、光学式マウス5がバーコード52を移動した後のディスプレイ7の画面を示している。読取期間分離プログラム18により生成される画面62には、光学式マウス5のマウスボタンが押下されていた期間にマウスポインタ65が移動した軌跡67が表示される。データ入力領域63には、バーコード52からデコードされた文字列68が表示される。すなわち、バーコード読取プログラム19は、読取期間分離プログラム18により分離された2つの期間に基づいてバーコード52を文字列68にデコードし、文字列68を文字列入力用カーソル64が表示されるデータ入力領域63に表示する。   FIG. 8 shows the screen of the display 7 after the optical mouse 5 moves the barcode 52. On the screen 62 generated by the reading period separation program 18, a locus 67 in which the mouse pointer 65 has moved while the mouse button of the optical mouse 5 was pressed is displayed. In the data input area 63, a character string 68 decoded from the barcode 52 is displayed. That is, the bar code reading program 19 decodes the bar code 52 into the character string 68 based on the two periods separated by the reading period separating program 18, and the character string 68 is displayed as data for displaying the character string input cursor 64. It is displayed in the input area 63.

スポット幅測定プログラム14は、画面62と同様の画面をディスプレイ7に表示する。すなわち、スポット幅測定プログラム14は、マウスボタンが押下されながら光学式マウス5が図形42−jの上を移動して、マウスポインタ65がその画面の内部を移動するときに、マウスポインタ65の動きが途中で停止するかどうかを判別する。   The spot width measurement program 14 displays a screen similar to the screen 62 on the display 7. That is, the spot width measurement program 14 moves the mouse pointer 65 when the optical mouse 5 moves on the figure 42-j while the mouse button is pressed and the mouse pointer 65 moves within the screen. It is determined whether or not stops in the middle.

バーコード処理装置2の動作は、スポット幅を測定する動作とバーコードを印刷する動作と時間間隔変数を設定する動作とバーコードを読み取る動作とを備えている。   The operation of the barcode processing apparatus 2 includes an operation for measuring a spot width, an operation for printing a barcode, an operation for setting a time interval variable, and an operation for reading a barcode.

スポット幅を測定する動作は、ユーザによる光学式マウス5またはキーボード6の操作に応答して開始する。バーコード処理装置2は、まず、プリンタ3を用いて光沢紙8に複数の図形42−1〜42−mと複数の文字列43−1〜43−mとを印刷してスポット幅測定用紙41を作製する。ユーザは、マウスポインタ65が画面62の内部を移動するように、バーコード処理装置2により指示される間隔に対応する図形42−jの上でマウスボタンが押下しながら光学式マウス5を移動させる。バーコード処理装置2は、光学式マウス5が図形42−jを移動したときに、ディスプレイ7に表示されるマウスポインタ65の動きが途中で停止するかどうかを判別する。バーコード処理装置2は、図形42−1〜42−mの全部に関してマウスポインタ65の動きが途中で停止するかどうかを判別した後に、複数の図形42−1〜42−mからマウスポインタの動きが途中で停止する図形を抽出し、その抽出された図形のうちの間隔が最も狭い図形を算出する。スポット幅測定プログラム14は、その算出された図形の間隔をスポット幅として算出する。   The operation of measuring the spot width starts in response to the operation of the optical mouse 5 or the keyboard 6 by the user. First, the barcode processing apparatus 2 uses the printer 3 to print a plurality of graphics 42-1 to 42-m and a plurality of character strings 43-1 to 43-m on the glossy paper 8 to generate a spot width measurement sheet 41. Is made. The user moves the optical mouse 5 while pressing the mouse button on the graphic 42-j corresponding to the interval instructed by the barcode processing apparatus 2 so that the mouse pointer 65 moves within the screen 62. . The barcode processing device 2 determines whether or not the movement of the mouse pointer 65 displayed on the display 7 stops halfway when the optical mouse 5 moves the figure 42-j. After determining whether or not the movement of the mouse pointer 65 stops halfway for all of the graphics 42-1 to 42-m, the barcode processing apparatus 2 moves the mouse pointer from the plurality of graphics 42-1 to 42-m. The figure which stops in the middle is extracted, and the figure with the narrowest interval among the extracted figures is calculated. The spot width measurement program 14 calculates the calculated interval between the figures as a spot width.

バーコードを印刷する動作は、キーボード6を用いて、ユーザによる光学式マウス5またはキーボード6の操作に応答して開始する。ユーザは、まず、バーコードにエンコードさせる所望の整数をバーコード処理装置2に入力する。バーコード処理装置2は、その整数を表現するように、バーコード52の線分領域55−1〜55−nの各々にバーの有無を割り当ててバーコード52を作成する。バーコード処理装置2は、スポット幅を測定する動作により算出されたスポット幅に基づいて算出された間隔で複数の線分領域が配置されるバーコード52を光沢紙に印刷する。   The operation for printing the barcode starts using the keyboard 6 in response to the operation of the optical mouse 5 or the keyboard 6 by the user. The user first inputs a desired integer to be encoded in the barcode into the barcode processing apparatus 2. The barcode processing apparatus 2 creates the barcode 52 by assigning the presence or absence of a bar to each of the line segment regions 55-1 to 55-n of the barcode 52 so as to express the integer. The barcode processing device 2 prints on the glossy paper a barcode 52 in which a plurality of line segment regions are arranged at intervals calculated based on the spot width calculated by the operation of measuring the spot width.

時間間隔変数を設定する動作では、バーコード処理装置2は、まず、適当なバーコードの一回の読み取りでマウス移動にかかる時間を測定する。バーコード処理装置2は、その時間Bを用いて、次式:
Delta=B/(3*(n+1))
により表現される時間間隔変数Deltaを算出する。このとき、時間間隔変数Deltaは、スポット幅の約1/4を移動するのにかかる平均時間を示している。たとえば、時間間隔変数Deltaは、B=1、n=9のときに、概ね33ミリ秒と設定される。時間間隔変数Deltaは、マウスポインタ65が停止したかどうかを判定するための変数であり、マウス移動イベントを受け取った時刻の間隔がDeltaより大きいときに(すなわち、Deltaが示す期間にマウス移動イベントがないときに)、マウスポインタ65が停止していた(すなわち、バーコードのバーの無い部分の上を光学式マウス5が移動していた)と判定する。このため、時間間隔変数Deltaは、大きすぎると離れているバーが連続していると判定されてしまい、小さすぎると連続しているバーを離れていると判定してしまう。
In the operation of setting the time interval variable, the barcode processing apparatus 2 first measures the time required for moving the mouse by reading a suitable barcode once. The barcode processing device 2 uses the time B to
Delta = B / (3 * (n + 1))
The time interval variable Delta expressed by is calculated. At this time, the time interval variable Delta indicates the average time taken to move about ¼ of the spot width. For example, the time interval variable Delta is set to approximately 33 milliseconds when B = 1 and n = 9. The time interval variable Delta is a variable for determining whether or not the mouse pointer 65 has stopped. When the time interval at which the mouse movement event is received is greater than Delta (that is, the mouse movement event is in the period indicated by Delta). It is determined that the mouse pointer 65 has stopped (that is, the optical mouse 5 has moved over a portion of the barcode that does not have a bar). For this reason, if the time interval variable Delta is too large, it is determined that the separated bars are continuous, and if it is too small, it is determined that the continuous bars are separated.

このように算出される時間間隔変数Deltaによれば、バーコード処理装置2は、マウスポインタ65が停止していたかどうかをより確実に判定することができる。すなわち、バー有り、無し、有りというパターンにおいて、バー無しの部分で距離 S/2 の間マウスポインタが停止するため、その半分の 距離 S/4 にかかる移動時間をDeltaの値として設定するのが妥当だからである。   According to the time interval variable Delta calculated in this way, the barcode processing apparatus 2 can more reliably determine whether or not the mouse pointer 65 has stopped. In other words, in the pattern with or without a bar, the mouse pointer stops at a distance S / 2 in a portion without a bar, so the travel time for half the distance S / 4 is set as the Delta value. Because it is reasonable.

バーコードを読み取る動作は、初期化動作と読取期間を分離する動作とデコードする動作とを備えている。図9は、初期化動作を示している。初期化動作は、マウスポインタ65が画面62に配置された状態で、光学式マウス5のマウスボタンが押下されたときに、開始される、バーコード処理装置2は、まず、インデクス変数Counterに0を代入し、変数Lastに負の無限大−∞を代入する(ステップS1)。   The operation for reading the barcode includes an initialization operation, an operation for separating the reading period, and an operation for decoding. FIG. 9 shows the initialization operation. The initialization operation is started when the mouse button of the optical mouse 5 is pressed in a state where the mouse pointer 65 is placed on the screen 62. The barcode processing apparatus 2 first sets the index variable Counter to 0. Is substituted, and negative infinity −∞ is substituted for the variable Last (step S1).

図10は、読取期間を分離する動作を示している。読取期間を分離する動作は、光学式マウス5のマウスボタンが押下された状態で、光学式マウス5の移動が検出されているときに、定期的に開始される。バーコード処理装置2は、時刻変数Tに現在の時刻を代入する(ステップS11)。バーコード処理装置2は、次式:
T−Last>Delta
が成立するときに、すなわち、所定の期間以上に光学式マウス5の移動が検出されなかったときに(ステップS12、YES)、配列変数Edge(Counter)に変数Lastが示す値を代入し、配列変数Edge(Counter+1)に時刻変数Tが示す値を代入し、変数Counterに変数Counterが示す値に2を加算した値を代入する(ステップS13)。
FIG. 10 shows an operation for separating the reading periods. The operation of separating the reading period is periodically started when the movement of the optical mouse 5 is detected with the mouse button of the optical mouse 5 being pressed. The barcode processing apparatus 2 substitutes the current time for the time variable T (step S11). The barcode processing device 2 has the following formula:
T-Last> Delta
Is satisfied, that is, when the movement of the optical mouse 5 is not detected for a predetermined period or longer (step S12, YES), the value indicated by the variable Last is substituted into the array variable Edge (Counter), and the array A value indicated by the time variable T is substituted for the variable Edge (Counter + 1), and a value obtained by adding 2 to the value indicated by the variable Counter is substituted for the variable Counter (step S13).

バーコード処理装置2は、次式:
T−Last>Delta
が成立しないときに、すなわち、光学式マウス5の移動が検出されなかった時間が所定の期間未満であるときに(ステップS12、NO)、または、ステップS13が処理された後に、変数Lastに時刻変数Tが示す値を代入する(ステップS14)。
The barcode processing device 2 has the following formula:
T-Last> Delta
Is not satisfied, that is, when the movement of the optical mouse 5 is not detected for less than a predetermined period (step S12, NO), or after step S13 is processed, the time is set in the variable Last. A value indicated by the variable T is substituted (step S14).

図11は、デコードする動作を示している。そのデコードする動作は、光学式マウス5のマウスボタンが解放されたときに開始される。バーコード処理装置2は、配列変数Edge(Counter)に変数Lastが示す値を代入し、平均時間変数Uに次式:
(Last−Edge(1))*S/(L+S)
により示される値を代入し、バー到達推定時刻変数Eに次式:
Edge(1)+U/2
により示される値を代入し、配列変数Edgeのインデクス用変数Cに1を代入し、変数Blackに0を代入し、インデクス用変数Indexに0を代入する(ステップS21)。
FIG. 11 shows the decoding operation. The decoding operation is started when the mouse button of the optical mouse 5 is released. The barcode processing apparatus 2 assigns the value indicated by the variable Last to the array variable Edge (Counter), and sets the following expression to the average time variable U:
(Last-Edge (1)) * S / (L + S)
Is substituted into the bar arrival estimation time variable E by the following formula:
Edge (1) + U / 2
Then, 1 is substituted into the index variable C of the array variable Edge, 0 is substituted into the variable Black, and 0 is substituted into the index variable Index (step S21).

バーコード処理装置2は、インデクス用変数Cにインデクス用変数Cが示す値に1加算した値を代入し、変数Blackに1から変数Blackが示す値を減算した値を代入する(ステップS22)。バーコード処理装置2は、インデクス用変数Cの値とインデクス変数Counterの値とを比較する(ステップS23)。   The barcode processing apparatus 2 assigns a value obtained by adding 1 to the value indicated by the index variable C to the index variable C, and assigns a value obtained by subtracting the value indicated by the variable Black from 1 to the variable Black (step S22). The barcode processing apparatus 2 compares the value of the index variable C with the value of the index variable Counter (step S23).

バーコード処理装置2は、インデクス用変数Cがインデクス変数Counter以下であるときに(ステップS23、YES)、バー到達推定時刻変数Eの値と配列変数Edge(C)の値とを比較する。バーコード処理装置2は、バー到達推定時刻変数Eの値が配列変数Edge(C)の値以上であるときに(ステップS24、NO)、再度ステップS22を実行する。バーコード処理装置2は、バー到達推定時刻変数Eの値が配列変数Edge(C)の値より小さいときに(ステップS24、YES)、配列変数Bar(Index)に変数Blackが示す値を代入し、インデクス用変数Indexにインデクス用変数Indexが示す値に1を加算した値を代入し、バー到達推定時刻変数Eに次式:
E+U*3/4
により示される値を代入し(ステップS25)、再度ステップS22を実行する。
When the index variable C is less than or equal to the index variable Counter (step S23, YES), the barcode processing apparatus 2 compares the value of the bar arrival estimated time variable E with the value of the array variable Edge (C). When the value of the bar arrival estimated time variable E is equal to or greater than the value of the array variable Edge (C) (step S24, NO), the barcode processing apparatus 2 executes step S22 again. When the value of the bar arrival estimated time variable E is smaller than the value of the array variable Edge (C) (step S24, YES), the barcode processing apparatus 2 substitutes the value indicated by the variable Black for the array variable Bar (Index). Then, a value obtained by adding 1 to the value indicated by the index variable Index is substituted for the index variable Index, and the following expression is assigned to the bar arrival estimated time variable E:
E + U * 3/4
Is substituted (step S25), and step S22 is executed again.

バーコード処理装置2は、インデクス用変数Cがインデクス変数Counterより大きいときに(ステップS23、NO)、配列変数Barをバーコードデータ(整数)に復元し、その整数を表す文字列を構成する複数の文字に対応するキーボードイベントに変換することにより文字列入力用カーソル64の位置にその文字列を入力して、このデコードする動作を終了する。   When the index variable C is larger than the index variable Counter (step S23, NO), the barcode processing apparatus 2 restores the array variable Bar to barcode data (integer) and forms a plurality of character strings representing the integer. The character string is input to the position of the character string input cursor 64 by converting it into a keyboard event corresponding to this character, and the decoding operation is terminated.

図12は、バーコードの例を示している。そのバーコード72は、光沢紙71に印刷されている。バーコード72は、複数の線分領域73−0〜73−3から形成されている。線分領域73−0は、バーが印刷されている。線分領域73−1は、バーが印刷されていない。線分領域73−2は、バーが印刷されている。線分領域73−3は、バーが印刷されている。このとき、光沢紙71の表面には、光学式マウス5が移動したときに移動が検出される領域74が形成される。バーコード72を横切る線分75は、点p0と点p1と点p2と点p3と点p4と点p5とを有している。点p0は、線分75の始点である。点p1と点p2と点p3と点p4とは、領域74の境界と線分75との交点である。点p5は、線分75の終点である。   FIG. 12 shows an example of a barcode. The barcode 72 is printed on the glossy paper 71. The bar code 72 is formed from a plurality of line segment regions 73-0 to 73-3. In the line segment area 73-0, a bar is printed. In the line segment region 73-1, no bar is printed. A bar is printed in the line segment area 73-2. Bars are printed in the line segment area 73-3. At this time, an area 74 in which movement is detected when the optical mouse 5 moves is formed on the surface of the glossy paper 71. A line segment 75 that crosses the barcode 72 has a point p0, a point p1, a point p2, a point p3, a point p4, and a point p5. The point p0 is the start point of the line segment 75. Point p 1, point p 2, point p 3, and point p 4 are the intersections of the boundary of region 74 and line segment 75. Point p5 is the end point of line segment 75.

図13は、ユーザが線分75に沿って点p0から点p5まで光学式マウス5を移動させたときに、バーコード処理装置2により光学式マウス5の移動が検出される期間を示している。時刻t1は、光学式マウス5が点p1を通過する時刻を示している。時刻t2は、光学式マウス5が点p2を通過する時刻を示している。時刻t3は、光学式マウス5が点p3を通過する時刻を示している。時刻t4は、光学式マウス5が点p4を通過する時刻を示している。光学式マウス5が点p0から点p1まで移動する期間、すなわち、時刻t1以前の期間81では、光学式マウス5の移動が検出されない。光学式マウス5が点p1から点p2まで移動する期間、すなわち、時刻t1から時刻t2までの期間84では、光学式マウス5の移動が検出される。光学式マウス5が点p2から点p3まで移動する期間、すなわち、時刻t2から時刻t3までの期間82では、光学式マウス5の移動が検出されない。光学式マウス5が点p3から点p4まで移動する期間、すなわち、時刻t3から時刻t4までの期間85では、光学式マウス5の移動が検出される。光学式マウス5が点p2から点p5まで移動する期間、すなわち、時刻t4以降の期間83では、光学式マウス5の移動が検出されない。   FIG. 13 shows a period in which the movement of the optical mouse 5 is detected by the barcode processing device 2 when the user moves the optical mouse 5 along the line segment 75 from the point p0 to the point p5. . Time t1 indicates the time when the optical mouse 5 passes the point p1. Time t2 indicates the time when the optical mouse 5 passes the point p2. Time t3 indicates the time when the optical mouse 5 passes the point p3. Time t4 indicates the time when the optical mouse 5 passes the point p4. In the period during which the optical mouse 5 moves from the point p0 to the point p1, that is, the period 81 before the time t1, the movement of the optical mouse 5 is not detected. In the period during which the optical mouse 5 moves from the point p1 to the point p2, that is, the period 84 from the time t1 to the time t2, the movement of the optical mouse 5 is detected. In the period during which the optical mouse 5 moves from the point p2 to the point p3, that is, the period 82 from the time t2 to the time t3, the movement of the optical mouse 5 is not detected. In the period during which the optical mouse 5 moves from the point p3 to the point p4, that is, the period 85 from the time t3 to the time t4, the movement of the optical mouse 5 is detected. In the period in which the optical mouse 5 moves from the point p2 to the point p5, that is, the period 83 after the time t4, the movement of the optical mouse 5 is not detected.

バーコードを読み取る動作によれば、光学式マウス5がバーコード72の上を線分75に沿って移動したときに、インデクス変数Counterに4が代入され、配列変数Edge(0)に−∞が代入され、配列変数Edge(1)に時刻t1が代入され、配列変数Edge(2)に時刻t2が代入され、配列変数Edge(3)に時刻t3が代入され、配列変数Edge(4)に時刻t4が代入される。すなわち、配列変数Edge(a)には、変数aが偶数のときに光学式マウス5の移動が検出されている状態から移動が検出されない状態に変化した時刻が代入され、変数aが奇数のときに光学式マウス5の移動が検出されていない状態から移動が検出される状態に変化した時刻が代入される。   According to the operation of reading the barcode, when the optical mouse 5 moves on the barcode 72 along the line segment 75, 4 is assigned to the index variable Counter, and −∞ is assigned to the array variable Edge (0). The time t1 is assigned to the array variable Edge (1), the time t2 is assigned to the array variable Edge (2), the time t3 is assigned to the array variable Edge (3), and the time is assigned to the array variable Edge (4). t4 is substituted. That is, the array variable Edge (a) is assigned the time when the movement of the optical mouse 5 is changed from a state where the movement is not detected when the variable a is an even number, and when the variable a is an odd number. The time when the movement of the optical mouse 5 is detected is changed to the state where the movement is detected.

さらに、インデクス用変数Indexに1が代入され、配列変数Bar(0)に1が代入され、配列変数Bar(1)に0が代入され、配列変数Bar(2)に1が代入され、配列変数Bar(3)に1が代入される。すなわち、配列変数Bar(k)(k=0,1,2,3)は、線分領域73−kの状態を示し、1を示すときに線分領域73−kにバーが印刷されていることを示し、0を示すときに線分領域73−kにバーが印刷されていないことを示している。   Furthermore, 1 is assigned to the index variable Index, 1 is assigned to the array variable Bar (0), 0 is assigned to the array variable Bar (1), 1 is assigned to the array variable Bar (2), and the array variable 1 is assigned to Bar (3). That is, the array variable Bar (k) (k = 0, 1, 2, 3) indicates the state of the line segment area 73-k, and when 1 is indicated, a bar is printed in the line segment area 73-k. When 0 is shown, it indicates that no bar is printed in the line segment area 73-k.

本発明によるバーコード処理装置2によれば、ハードウェア的な特別な仕組みを持たない一般的な光学式マウスを利用して、バーコードを読み取ることができる。また、光沢紙は、家電量販店や事務用品店等で一般的に市販されているため入手が容易であり、家庭用及び事務用のプリンタを使用してそのバーコードを作成することができる。これらの特徴により、バーコードを利用したアプリケーションプログラムを利用する際に、一般的に普及しているPC環境(光学式マウスとプリンタ)が使えるため、コスト低減の効果が期待できる。このため、(名称)2は、個人所蔵の図書目録システム、懸賞つきの商品のラベル、Webページから印刷する飲食店等の割引チケットに利用されることが好適である。   According to the barcode processing apparatus 2 of the present invention, a barcode can be read using a general optical mouse that does not have a special hardware mechanism. Further, glossy paper is generally available at home appliance mass retailers, office supplies stores, and the like, so it is easy to obtain, and barcodes can be created using home and office printers. Due to these features, when using an application program that uses a barcode, a widely used PC environment (optical mouse and printer) can be used, so an effect of cost reduction can be expected. For this reason, (Name) 2 is preferably used for a discount catalog for a book collection system for personal collection, a label for a product with a prize, a restaurant printed from a Web page, and the like.

なお、光沢紙8は、光学式マウス5によりその移動方向と移動量とを検出することができない他の素材に置換することができる。その素材としては、ガラス板が例示される。なお、光沢紙8に置換してガラス板が適用されるときに、プリンタ3は、そのガラス板の表面にイメージを彫刻する装置に置換することができる。その装置は、プリンタ3と同様にして、バーコード処理装置2により生成されるバーコードをそのガラス板に彫刻する。このとき、光学式マウス5は、光沢紙8と同様にして、そのガラス板の表面のうちの彫刻されている部分では、その移動方向と移動量とを検出することができないで、表面のうちの彫刻されている部分でその移動方向と移動量とを検出することができる。   The glossy paper 8 can be replaced with another material whose movement direction and movement amount cannot be detected by the optical mouse 5. As the material, a glass plate is exemplified. When a glass plate is applied instead of the glossy paper 8, the printer 3 can be replaced with a device that engraves an image on the surface of the glass plate. The apparatus engraves the barcode generated by the barcode processing apparatus 2 on the glass plate in the same manner as the printer 3. At this time, like the glossy paper 8, the optical mouse 5 cannot detect the moving direction and the moving amount of the engraved portion of the surface of the glass plate. The moving direction and the moving amount can be detected in the engraved portion.

本発明によるバーコード処理装置の実施の他の形態は、既述の実施の形態におけるバーコード処理装置2のスポット幅測定用紙印刷プログラム13とスポット幅測定プログラム14とがスポット幅入力プログラムに置換されている。そのスポット幅入力プログラムは、キーボード6が操作されることにより生成される文字列に基づいてスポット幅を算出する。すなわち、ユーザは、光学式マウス5のスペックを参照して、スポット幅を算出し、キーボード6を用いてそのスポット幅をバーコード処理装置に入力する。このとき、バーコード処理装置は、ユーザにより入力されるスポット幅を用いてバーコードを印刷し、バーコードを読み取る。このようなバーコード処理装置は、既述の実施の形態におけるバーコード処理装置2と同様にして、ハードウェア的な特別な仕組みを持たない一般的な光学式マウスを利用して、バーコードを読み取ることができ、コストを低減することができる。   In another embodiment of the barcode processing apparatus according to the present invention, the spot width measurement sheet printing program 13 and the spot width measurement program 14 of the barcode processing apparatus 2 in the above-described embodiment are replaced with a spot width input program. ing. The spot width input program calculates the spot width based on a character string generated by operating the keyboard 6. That is, the user refers to the specifications of the optical mouse 5, calculates the spot width, and inputs the spot width to the barcode processing apparatus using the keyboard 6. At this time, the barcode processing apparatus prints the barcode using the spot width input by the user and reads the barcode. Similar to the barcode processing apparatus 2 in the above-described embodiment, such a barcode processing apparatus uses a general optical mouse that does not have a special hardware mechanism to generate a barcode. It can be read and the cost can be reduced.

図1は、バーコードシステムを示すブロック図である。FIG. 1 is a block diagram showing a barcode system. 図2は、本発明によるバーコード処理装置の実施の形態を示すブロック図である。FIG. 2 is a block diagram showing an embodiment of the barcode processing apparatus according to the present invention. 図3は、スポット幅を示す斜視図である。FIG. 3 is a perspective view showing the spot width. 図4は、バーコードのバーを示す平面図である。FIG. 4 is a plan view showing a bar of the barcode. 図5は、スポット幅測定用紙を示す平面図である。FIG. 5 is a plan view showing a spot width measurement sheet. 図6は、バーコードを示す平面図である。FIG. 6 is a plan view showing a barcode. 図7は、情報を入力する前の画面を示す平面図である。FIG. 7 is a plan view showing a screen before inputting information. 図8は、情報を入力した後の画面を示す平面図である。FIG. 8 is a plan view showing a screen after information is input. 図9は、マウスボタンを押したときの動作を示すフローチャートである。FIG. 9 is a flowchart showing an operation when the mouse button is pressed. 図10は、マウスの移動が検出されたときの動作を示すフローチャートである。FIG. 10 is a flowchart showing the operation when the movement of the mouse is detected. 図11は、マウスボタンが解放されたときの動作を示すフローチャートである。FIG. 11 is a flowchart showing the operation when the mouse button is released. 図12は、バーコードを示す平面図である。FIG. 12 is a plan view showing a barcode. 図13は、バーコードを示すグラフである。FIG. 13 is a graph showing a barcode.

符号の説明Explanation of symbols

1 :バーコードシステム
2 :バーコード処理装置
3 :プリンタ
5 :光学式マウス
6 :キーボード
7 :ディスプレイ
8 :光沢紙
11:アプリケーションプログラム
12:マウスドライバ
13:スポット幅測定用紙印刷プログラム
14:スポット幅測定プログラム
15:データ入力プログラム
16:バーコード印刷プログラム
17:停止判定条件入力プログラム
18:読取期間分離プログラム
19:バーコード読取プログラム
21:表面
22:領域
23:スポット幅
31:表面
32:バー
34:領域
35:領域
41:スポット幅測定用紙
42−1〜42−m:図形
43−1〜43−m:文字列
52:バーコード
53:左端線分領域
54:右端線分領域
55−1〜55−n:線分領域
56:長さ
57:全長
58:間隔
61:画面
62:画面
63:データ入力領域
64:文字列入力用カーソル
65:マウスポインタ
67:軌跡
68:文字列
71:光沢紙
72:バーコード
73−0〜73−3:複数の線分領域
74:領域
75:線分
81〜85:期間
1: Barcode system 2: Barcode processing device 3: Printer 5: Optical mouse 6: Keyboard 7: Display 8: Glossy paper 11: Application program 12: Mouse driver 13: Spot width measurement paper printing program 14: Spot width measurement Program 15: Data input program 16: Bar code printing program 17: Stop determination condition input program 18: Reading period separation program 19: Bar code reading program 21: Surface 22: Area 23: Spot width 31: Surface 32: Bar 34: Area 35: Area 41: Spot width measurement paper 42-1 to 42-m: Graphic 43-1 to 43-m: Character string 52: Bar code 53: Left end line segment area 54: Right end line segment area 55-1 to 55- n: line segment area 56: length 57: full length 58: interval 6 1: Screen 62: Screen 63: Data input area 64: Cursor for character string input 65: Mouse pointer 67: Trajectory 68: Character string 71: Glossy paper 72: Bar code 73-0 to 73-3: Multiple line segment areas 74: Area 75: Line segment 81-85: Period

Claims (12)

光を用いて移動距離を検出する光学式マウスがバーコードを通過する読取期間を第1期間と第2期間とに分離する読取期間分離プログラムと、
前記第1期間と前記第2期間とに基づいて前記バーコードをデコードするバーコード読取プログラムとを具備し、
前記バーコードは、
前記光学式マウスにより移動が検出可能である第1領域と、
前記光学式マウスにより移動が検出不可能である第2領域とから形成され、
前記第1期間は、前記光学式マウスにより移動が検出される期間であり、
前記第2期間は、前記光学式マウスにより移動が検出されない期間である
バーコード処理装置。
A reading period separation program that separates a reading period during which an optical mouse that detects a moving distance using light passes a barcode into a first period and a second period;
A barcode reading program for decoding the barcode based on the first period and the second period;
The barcode is
A first region in which movement can be detected by the optical mouse;
A second region where movement is not detectable by the optical mouse,
The first period is a period in which movement is detected by the optical mouse,
The barcode processing apparatus, wherein the second period is a period during which no movement is detected by the optical mouse.
請求項1において、
前記バーコードは、等間隔に配置される複数の平行線分領域から形成され、
前記複数の平行線分領域は、
バーが記載される領域と、
バーが記載されない領域とから形成される
バーコード処理装置。
In claim 1,
The barcode is formed of a plurality of parallel line segment regions arranged at equal intervals,
The plurality of parallel line segment regions are:
The area where the bar is written,
A barcode processing apparatus formed from an area where no bar is described.
請求項2において、
互いに間隔が異なる複数の線対が記載されるスポット幅測定用紙を印刷するスポット幅測定用紙印刷プログラムと、
前記光学式マウスが前記複数の線対を通過するときに移動が検出される移動検出期間に基づいてスポット幅を算出するスポット幅測定プログラムとを更に具備し、
前記バーコード読取プログラムは、前記スポット幅に更に基づいて前記バーコードをデコードする
バーコード処理装置。
In claim 2,
A spot width measurement paper printing program for printing a spot width measurement paper on which a plurality of line pairs having different intervals are described;
A spot width measurement program that calculates a spot width based on a movement detection period in which movement is detected when the optical mouse passes through the plurality of line pairs;
The bar code reading program further decodes the bar code based on the spot width.
請求項3において、
入力装置を用いて情報を収集するデータ入力プログラムと、
前記スポット幅に基づいて前記情報をエンコードして前記バーコードを生成するバーコード印刷プログラム
とを更に具備するバーコード処理装置。
In claim 3,
A data input program for collecting information using an input device;
A barcode processing apparatus further comprising: a barcode printing program that encodes the information based on the spot width to generate the barcode.
互いに間隔が異なる複数の線対が記載されるスポット幅測定用紙を印刷するスポット幅測定用紙印刷プログラムと、
光を用いて移動距離を検出する光学式マウスが前記複数の線対を通過するときに移動が検出される移動検出期間に基づいてスポット幅を算出するスポット幅測定プログラムと、
入力装置を用いて情報を収集するデータ入力プログラムと、
前記スポット幅に基づいて前記情報がエンコードされたバーコードを生成するバーコード印刷プログラム
とを更に具備するバーコード処理装置。
A spot width measurement paper printing program for printing a spot width measurement paper on which a plurality of line pairs having different intervals are described;
A spot width measurement program for calculating a spot width based on a movement detection period in which movement is detected when an optical mouse that detects a movement distance using light passes through the plurality of line pairs;
A data input program for collecting information using an input device;
A barcode processing apparatus further comprising: a barcode printing program that generates a barcode in which the information is encoded based on the spot width.
請求項5において、
前記バーコードは、前記スポット幅に基づいて算出される間隔で配置される複数の平行線分領域から形成され、
前記複数の平行線分領域は、
バーが記載される領域と、
バーが記載されない領域とから形成される
バーコード処理装置。
In claim 5,
The barcode is formed from a plurality of parallel line segment regions arranged at intervals calculated based on the spot width,
The plurality of parallel line segment regions are:
The area where the bar is written,
A barcode processing apparatus formed from an area where no bar is described.
光を用いて移動距離を検出する光学式マウスがバーコードを通過する読取期間を第1期間と第2期間とに分離する読取期間分離プログラムと、
前記第1期間と前記第2期間とに基づいて前記バーコードをデコードするバーコード読取プログラムとを具備し、
前記バーコードは、
前記光学式マウスにより移動が検出可能である第1領域と、
前記光学式マウスにより移動が検出不可能である第2領域とから形成され、
前記第1期間は、前記光学式マウスにより移動が検出される期間であり、
前記第2期間は、前記光学式マウスにより移動が検出されない期間である
バーコード処理プログラム。
A reading period separation program that separates a reading period during which an optical mouse that detects a moving distance using light passes a barcode into a first period and a second period;
A barcode reading program for decoding the barcode based on the first period and the second period;
The barcode is
A first region in which movement can be detected by the optical mouse;
A second region where movement is not detectable by the optical mouse,
The first period is a period in which movement is detected by the optical mouse,
The barcode processing program, wherein the second period is a period during which no movement is detected by the optical mouse.
請求項7において、
前記バーコードは、等間隔に配置される複数の平行線分領域から形成され、
前記複数の平行線分領域は、
バーが記載される領域と、
バーが記載されない領域とから形成される
バーコード処理プログラム。
In claim 7,
The barcode is formed of a plurality of parallel line segment regions arranged at equal intervals,
The plurality of parallel line segment regions are:
The area where the bar is written,
Bar code processing program formed from areas where no bar is described.
請求項8において、
互いに間隔が異なる複数の線対が記載されるスポット幅測定用紙を印刷するスポット幅測定用紙印刷プログラムと、
前記光学式マウスが前記複数の線対を通過するときに移動が検出される移動検出期間に基づいてスポット幅を算出するスポット幅測定プログラムとを更に具備し、
前記バーコード読取プログラムは、前記スポット幅に更に基づいて前記バーコードをデコードする
バーコード処理プログラム。
In claim 8,
A spot width measurement paper printing program for printing a spot width measurement paper on which a plurality of line pairs having different intervals are described;
A spot width measurement program for calculating a spot width based on a movement detection period in which movement is detected when the optical mouse passes through the plurality of line pairs;
The barcode reading program is a barcode processing program for decoding the barcode based further on the spot width.
請求項9において、
入力装置を用いて情報を収集するデータ入力プログラムと、
前記スポット幅に基づいて前記情報をエンコードして前記バーコードを生成するバーコード印刷プログラム
とを更に具備するバーコード処理プログラム。
In claim 9,
A data input program for collecting information using an input device;
A barcode processing program further comprising: a barcode printing program that encodes the information based on the spot width to generate the barcode.
互いに間隔が異なる複数の線対が記載されるスポット幅測定用紙を印刷するスポット幅測定用紙印刷プログラムと、
光を用いて移動距離を検出する光学式マウスが前記複数の線対を通過するときに移動が検出される移動検出期間に基づいてスポット幅を算出するスポット幅測定プログラムと、
入力装置を用いて情報を収集するデータ入力プログラムと、
前記スポット幅に基づいて前記情報がエンコードされたバーコードを生成するバーコード印刷プログラム
とを更に具備するバーコード処理プログラム。
A spot width measurement paper printing program for printing a spot width measurement paper on which a plurality of line pairs having different intervals are described;
A spot width measurement program for calculating a spot width based on a movement detection period in which movement is detected when an optical mouse that detects a movement distance using light passes through the plurality of line pairs;
A data input program for collecting information using an input device;
A barcode processing program further comprising: a barcode printing program that generates a barcode in which the information is encoded based on the spot width.
請求項11において、
前記バーコードは、前記スポット幅に基づいて算出される間隔で配置される複数の平行線分領域から形成され、
前記複数の平行線分領域は、
バーが記載される領域と、
バーが記載されない領域とから形成される
バーコード処理プログラム。
In claim 11,
The barcode is formed from a plurality of parallel line segment regions arranged at intervals calculated based on the spot width,
The plurality of parallel line segment regions are:
The area where the bar is written,
Bar code processing program formed from areas where no bar is described.
JP2006209919A 2006-08-01 2006-08-01 Bar code processing apparatus and bar code processing program Expired - Fee Related JP4280935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006209919A JP4280935B2 (en) 2006-08-01 2006-08-01 Bar code processing apparatus and bar code processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006209919A JP4280935B2 (en) 2006-08-01 2006-08-01 Bar code processing apparatus and bar code processing program

Publications (2)

Publication Number Publication Date
JP2008040541A true JP2008040541A (en) 2008-02-21
JP4280935B2 JP4280935B2 (en) 2009-06-17

Family

ID=39175510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006209919A Expired - Fee Related JP4280935B2 (en) 2006-08-01 2006-08-01 Bar code processing apparatus and bar code processing program

Country Status (1)

Country Link
JP (1) JP4280935B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2144185A1 (en) 2008-07-03 2010-01-13 Seiko Epson Corporation Printing control device, control method for a printing device, and a control program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7446975B2 (en) 2020-10-29 2024-03-11 三菱マテリアル株式会社 Copper alloys, plastic processed copper alloy materials, parts for electronic and electrical equipment, terminals, bus bars, lead frames, heat dissipation boards

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2144185A1 (en) 2008-07-03 2010-01-13 Seiko Epson Corporation Printing control device, control method for a printing device, and a control program
US8915438B2 (en) 2008-07-03 2014-12-23 Seiko Epson Corporation Printing control device, control method for a printing device, and a control program

Also Published As

Publication number Publication date
JP4280935B2 (en) 2009-06-17

Similar Documents

Publication Publication Date Title
JP5084718B2 (en) Combination detection of position coding pattern and barcode
KR101122822B1 (en) Enhanced approach of m-array decoding and error correction
US20040109034A1 (en) Hybrid printing/pointing device
JP4996245B2 (en) Method, apparatus, computer program and storage medium for position decoding
TW200532533A (en) Strokes localization by m-array decoding and fast image matching
WO2009075061A1 (en) Information input device, information processing device, information input system, information processing system, two-dimensional format information server, information input method, control program, and recording medium
JP2009080773A (en) Handwritten information management device, handwritten information management system, and handwritten information management program
WO2010015881A1 (en) Position encoding using an invisible pattern data matrix
JP4280935B2 (en) Bar code processing apparatus and bar code processing program
KR101819076B1 (en) Dot code pattern for absolute position and other information using an optical pen, process of printing the dot code, process of reading the dot code
JP2007328637A (en) Form processing system, form processing method, program, and optical reading form
US8509572B2 (en) Handwriting recognition using an electronic stylus
JP2012063957A (en) Image processing device, identification device, electronic writing tool and program
JP5592234B2 (en) Two-dimensional code generation device, two-dimensional code reading device, two-dimensional code, two-dimensional code generation method, two-dimensional code reading method, and program
JP2006236135A (en) Two-dimensional code recognizing device and program for it
JP2012094083A (en) Reading apparatus, betting ticket pay-back device, betting ticket issuing device and reading method
US20060097052A1 (en) Method and apparatus for acquiring printing medium information using barcode sensors
JP5316104B2 (en) WRITING INFORMATION PROCESSING DEVICE AND PROGRAM
JP2009181514A (en) Handwriting information creation device, program, and handwriting information management system
JP2006240226A (en) Label preparing method, printer controlling equipment, program and recording medium
JP2009181243A (en) Handwriting information processor and program
JP2011048491A (en) Apparatus and system for processing writing information, and program
JP2009252063A (en) Writing information generating device and program
JP2006317612A (en) Keyboard instrument and method for recording fingering data
US20060247802A1 (en) Information encoding and decoding

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090218

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090303

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120327

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees