JP2008117249A - Card reader and bar code reading method - Google Patents
Card reader and bar code reading method Download PDFInfo
- Publication number
- JP2008117249A JP2008117249A JP2006301248A JP2006301248A JP2008117249A JP 2008117249 A JP2008117249 A JP 2008117249A JP 2006301248 A JP2006301248 A JP 2006301248A JP 2006301248 A JP2006301248 A JP 2006301248A JP 2008117249 A JP2008117249 A JP 2008117249A
- Authority
- JP
- Japan
- Prior art keywords
- bar
- width
- thin
- thick
- barcode
- 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.)
- Withdrawn
Links
Images
Abstract
Description
本発明は、遊戯カード等のカードに記録されたバーコード等を読み取るカード読取装置及びバーコード読取方法に関する。 The present invention relates to a card reader and a barcode reading method for reading a barcode or the like recorded on a card such as a game card.
遊戯カードとしては従来からトランプカードが一般的であるが、トレーディングカードなどの各種遊戯カードを用いたゲームも人気を集めている。 Traditionally, playing cards are generally used as game cards, but games using various game cards such as trading cards are also gaining popularity.
遊戯カードを用いたゲームシステムとして、甲虫の対戦をテーマとしたゲームシステム(「甲虫王者ムシキング」(登録商標))がある。遊戯カードを遊戯装置に読み込ませ、甲虫同士を闘わせるカード格闘ゲームである。 As a game system using a play card, there is a game system (“Coleoptera King Musiking” (registered trademark)) on the theme of beetle fighting. This is a card fighting game in which a game card is read by a game machine and beetles fight each other.
遊戯カードを用いた女児向けのゲームシステムとして、着せ替え遊びをテーマとしたゲームシステム(「オシャレ魔女ラブandベリー」(登録商標))がある。遊戯カードを遊戯装置に読み込ませ、キャラクタに着せ替えを行うカード着せ替えゲームである。 As a game system for girls using game cards, there is a game system (“Fashion Witch Love and Berry” (registered trademark)) based on the theme of dress-up play. This is a card changing game in which a game card is read by a game device and a character is changed.
これらゲームシステムは、ゲームセンタ等に設置された所謂アーケード型ゲーム装置により行われている。しかしながら、アーケード型ゲーム装置だけのゲームでは飽き足りなくなり、携帯用ゲーム装置や、家庭用ゲーム装置等でも同様のゲームを行いたいとの需要が高まってきている。 These game systems are performed by so-called arcade type game devices installed in a game center or the like. However, games with only arcade-type game devices are not sufficient, and there is an increasing demand for playing similar games on portable game devices, home game devices, and the like.
しかしながら、遊戯カードを用いたゲームを携帯用ゲーム装置や家庭用ゲーム装置用のゲームソフトとして提供する場合には、遊戯カードを読み込むためのカードリーダを附属させる必要がある。 However, when a game using a game card is provided as game software for a portable game device or a home game device, it is necessary to attach a card reader for reading the game card.
カードリーダとして、例えば、特許文献1、特許文献2、特許文献3に記載されたものが知られている。
しかしながら、携帯用ゲーム装置や家庭用ゲーム装置用のゲームソフトに附属させるカードリーダは、ゲームソフトとしての価格の制約から、アーケード型ゲーム装置のカードリーダに比べて非常に低価格で提供する必要がある。しかしながら、従来のカードリーダ、例えば、特許文献3のカードリーダは、光源のビームスポットの大小による読み取り誤差を補正するためのロジック回路が複雑であるためゲート数が多くなり、高コストであった。 However, card readers attached to game software for portable game devices and home game devices need to be provided at a very low price compared to card readers for arcade game devices due to price restrictions as game software. is there. However, the conventional card reader, for example, the card reader of Patent Document 3, is expensive because the logic circuit for correcting the reading error due to the size of the beam spot of the light source is complicated and the number of gates is large.
一方、家庭内で用いられるために、カードの読み取り環境が良好であることは期待できない。特に、遊戯カードの読み取り速度については、アーケード型ゲーム装置の場合よりも変動が大きい可能性があり、アーケード型ゲーム装置のカードリーダに比べて少なくとも同等又はそれ以上の性能が求められる。 On the other hand, since it is used at home, it cannot be expected that the card reading environment is good. In particular, there is a possibility that the reading speed of a game card will vary more than in the case of an arcade game device, and at least equal or higher performance is required compared to a card reader of an arcade game device.
本発明の目的は、低価格で提供でき、しかも、遊戯カードの読み取り速度が変動しても正確に読み取ることができる高性能なカード読取装置及びバーコード読取方法を提供することにある。 An object of the present invention is to provide a high-performance card reader and barcode reading method that can be provided at a low price and can be read accurately even if the reading speed of a game card varies.
本発明の一態様によるカード読取装置は、複数のバーからなるバーコードの各バーの幅を順次測定する幅測定手段と、前記幅測定手段により測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する細太判定手段と、前記細太測定手段により判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する文字コード化部とを有するカード読取装置において、前記細太判定手段は、前記幅測定手段により測定された第1のバーの幅と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅とに基づき、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R>A
ただし、Aは1より大きい定数
を満足した場合、前記第1のバーを太いバー、前記第2のバーを細いバーと判定し、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R<B
ただし、Bは1より小さい定数
を満足した場合、前記第1のバーを細いバー、前記第2のバーを太いバーと判定し、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
B≦R≦A
を満足した場合、前記第1のバーと前記第2のバーの太さは変化しないと判定することを特徴とする。
A card reader according to an aspect of the present invention includes a width measuring unit that sequentially measures the width of each bar of a bar code including a plurality of bars, and each bar based on the width of each bar measured by the width measuring unit. Based on the result of determination by the thinness measurement means and the thinness determination means for determining whether the bar is a thin bar or a thick bar, the pattern based on the arrangement of the thin bar and the thick bar in the barcode is analyzed, and the pattern is In the card reader having a character encoding unit that determines a character code to be displayed, the thinness determination means is adjacent to the first bar and the width of the first bar measured by the width measurement means, Based on the width of the second bar measured before the first bar, the ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is Formula R> A
However, when A satisfies a constant larger than 1, the first bar is determined to be a thick bar, the second bar is determined to be a thin bar, and the width of the first bar with respect to the width H2 of the second bar. The ratio R of H1 (= H1 / H2) is given by the following formula R <B
However, when B satisfies a constant smaller than 1, the first bar is determined to be a thin bar, the second bar is determined to be a thick bar, and the width of the first bar with respect to the width H2 of the second bar. The ratio R of H1 (= H1 / H2) is expressed by the following formula B ≦ R ≦ A
Is satisfied, it is determined that the thicknesses of the first bar and the second bar do not change.
上述したカード読取装置において、定数Aは、1.25〜1.50の範囲の値であり、定数Bは、0.6250〜0.8125の範囲の値であるようにしてもよい。 In the card reader described above, the constant A may be a value in the range of 1.25 to 1.50, and the constant B may be a value in the range of 0.6250 to 0.8125.
本発明の他の態様によるカード読取装置は、複数のバーからなるバーコードの各バーの幅を順次測定する幅測定手段と、前記幅測定手段により測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する細太判定手段と、前記細太測定手段により判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する文字コード化部とを有するカード読取装置において、前記幅測定手段により第1のバーの幅H1と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅H2とが測定され、前記細太判定手段により前記第2のバーが太いバーと判定されたときには、前記第1のバーの幅H1を次式
H1′=H1×C
ただし、Cは1より小さい定数
によりH1′に補正する幅補正手段を更に有することを特徴とする。
A card reader according to another aspect of the present invention includes a width measuring unit that sequentially measures the width of each bar of a plurality of bars, and each bar based on the width of each bar measured by the width measuring unit. Based on the result of the determination by the thinness measuring means and the thinness measuring means for determining whether the bar is a thin bar or a thick bar, the pattern according to the arrangement of the thin bar and the thick bar in the barcode is analyzed, and the pattern In the card reader having a character encoding unit for determining the character code indicated by, a width H1 of the first bar is adjacent to the first bar by the width measuring means, and is before the first bar. When the second bar width H2 is measured and the second bar is determined to be a thick bar by the thin / thickness determining means, the width H1 of the first bar is expressed by the following formula H1 ′ = H1 × C
However, C is characterized by further having a width correcting means for correcting to H1 ′ by a constant smaller than 1.
上述したカード読取装置において、定数Cは、0.750〜0.875の範囲の値であるようにしてもよい。 In the card reader described above, the constant C may be a value in the range of 0.750 to 0.875.
上述したカード読取装置において、前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定するようにしてもよい。 In the above card reader, the bar of the bar code is a bar of a color that absorbs light or a bar of a color that reflects light, and the width measuring means is a bar of a color that absorbs the light of the bar code or Measure the width of a color bar that reflects light, the thin thickness determination means determines whether the color bar that absorbs light of the barcode or the color bar that reflects light is a thin bar or a thick bar, The character encoding means includes a pattern formed by an arrangement of thin bars and thick bars of a color bar that absorbs light of the barcode, or an arrangement of thin bars and thick bars of a color bar that reflects the light of the barcode. The character code may be determined based on the pattern.
本発明の一態様によるバーコード読取方法は、複数のバーからなるバーコードの各バーの幅を順次測定する第1のステップと、前記測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する第2のステップと、前記判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する第3のステップとを有するバーコード読取方法であって、前記第1のステップは、前記幅測定手段により測定された第1のバーの幅と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅とに基づき、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R>A
ただし、Aは1より大きい定数
を満足した場合、前記第1のバーを太いバー、前記第2のバーを細いバーと判定し、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R<B
ただし、Bは1より小さい定数
を満足した場合、前記第1のバーを細いバー、前記第2のバーを太いバーと判定し、前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
B≦R≦A
を満足した場合、前記第1のバーと前記第2のバーの太さは変化しないと判定することを特徴とする。
In the barcode reading method according to one aspect of the present invention, the first step of sequentially measuring the width of each bar of the barcode composed of a plurality of bars, and each bar is thin based on the measured width of each bar. A second step of determining whether the bar is thick or a thick bar; and, based on the determined result, a pattern based on an arrangement of thin bars and thick bars in the bar code is analyzed, and a character code indicated by the pattern is determined. 3, wherein the first step includes the width of the first bar measured by the width measuring means, the first bar adjacent to the first bar, and the first step. Based on the width of the second bar measured before the bar, the ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following equation: R> A
However, when A satisfies a constant larger than 1, the first bar is determined to be a thick bar, the second bar is determined to be a thin bar, and the width of the first bar with respect to the width H2 of the second bar. The ratio R of H1 (= H1 / H2) is given by the following formula R <B
However, when B satisfies a constant smaller than 1, the first bar is determined to be a thin bar, the second bar is determined to be a thick bar, and the width of the first bar with respect to the width H2 of the second bar. The ratio R of H1 (= H1 / H2) is expressed by the following formula B ≦ R ≦ A
Is satisfied, it is determined that the thicknesses of the first bar and the second bar do not change.
上述したバーコード読取方法において、定数Aは、1.25〜1.50の範囲の値であり、定数Bは、0.6250〜0.8125の範囲の値であるようにしてもよい。 In the barcode reading method described above, the constant A may be a value in the range of 1.25 to 1.50, and the constant B may be a value in the range of 0.6250 to 0.8125.
本発明の他の態様によるバーコード読取方法は、複数のバーからなるバーコードの各バーの幅を順次測定する第1のステップと、前記測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する第2のステップと、前記判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する第3のステップとを有するバーコード読取方法であって、前記第1のステップでは、第1のバーの幅H1と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅H2とを測定し、前記第2のステップでは、前記第1のステップで前記第2のバーが太いバーと判定されたときには、前記第1のバーの幅H1を次式
H1′=H1×C
ただし、Cは1より小さい定数
によりH1′に補正することを特徴とする。
A barcode reading method according to another aspect of the present invention includes a first step of sequentially measuring a width of each bar of a barcode including a plurality of bars, and each bar is based on the measured width of each bar. Based on the second step of determining whether the bar is a thin bar or a thick bar and the determined result, the pattern based on the arrangement of the thin bar and the thick bar in the bar code is analyzed, and the character code indicated by the pattern is determined. A bar code reading method comprising a third step, wherein in the first step, the width H1 of the first bar and the measurement is performed before the first bar, adjacent to the first bar. The width H2 of the second bar is measured, and in the second step, when the second bar is determined to be a thick bar in the first step, the width H1 of the first bar is determined. The following formula H1 ′ = H1 × C
However, C is corrected to H1 'by a constant smaller than 1.
上述したバーコード読取方法において、定数Cは、0.750〜0.875の範囲の値であるようにしてもよい。 In the barcode reading method described above, the constant C may be a value in the range of 0.750 to 0.875.
上述したバーコード読取方法において、前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定するようにしてもよい。 In the barcode reading method described above, the bar of the barcode is a bar of a color that absorbs light or a bar of a color that reflects light, and the width measuring unit is a bar of a color that absorbs the light of the barcode. Alternatively, the width of a color bar that reflects light is measured, and the thin thickness determination means determines whether the color bar that absorbs light of the barcode or the color bar that reflects light is a thin bar or a thick bar. The character encoding means includes a pattern formed by arranging a thin bar and a thick bar of a color bar that absorbs light of the barcode, or a thin bar and a thick bar of a color bar that reflects the light of the barcode. The character code may be determined based on the pattern by arrangement.
本発明によれば、複数のバーからなるバーコードの各バーの幅を順次測定する幅測定手段と、幅測定手段により測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する細太判定手段と、細太測定手段により判定された結果に基づいて、バーコードにおける細いバーと太いバーの並びによるパターンを解析し、パターンが示す文字コードを決定する文字コード化部とを有するカード読取装置において、細太判定手段は、幅測定手段により測定された第1のバーの幅と、第1のバーに隣接し、第1のバーよりも前に測定された第2のバーの幅とに基づき、第2のバーの幅H2に対する第1のバーの幅H1の比Rの値に応じて、第1のバーと第2のバーの細太判定をするようにしたので、低価格で提供でき、しかも、遊戯カードの読み取り速度が変動しても正確に読み取ることができる。 According to the present invention, a width measuring unit that sequentially measures the width of each bar of a bar code including a plurality of bars, and each bar is a thin bar or a thick bar based on the width of each bar measured by the width measuring unit. Based on the result determined by the thin thickness determination means and the thin thickness measurement means, the character code that determines the character code indicated by the pattern is analyzed by analyzing the pattern based on the arrangement of the thin bar and the thick bar in the barcode In the card reader having the first and second portions, the thinness determining means includes the first bar width measured by the width measuring means and the first bar measured before the first bar, adjacent to the first bar. Based on the width of the second bar, the thin bar of the first bar and the second bar is determined according to the ratio R of the width H1 of the first bar to the width H2 of the second bar. So it can be offered at a low price, and it is a game car Also reading speed is varied can be read accurately.
[一実施形態]
本発明の一実施形態によるカード読取装置について、以下、図面を用いて説明する。
[One Embodiment]
A card reader according to an embodiment of the present invention will be described below with reference to the drawings.
(ゲーム装置)
本実施形態のカード読取装置を用いたゲーム装置を図1及び図2に示す。図1は本実施形態のゲーム装置の外観を示す図であり、図2は本実施形態のゲーム装置の構成を示すブロック図である。
(Game device)
A game device using the card reader of this embodiment is shown in FIGS. FIG. 1 is a diagram showing an appearance of the game apparatus according to the present embodiment, and FIG. 2 is a block diagram showing a configuration of the game apparatus according to the present embodiment.
(ゲーム装置の外観)
本実施形態のゲーム装置として、物理的に二つの表示画面を有し、一方の表示画面がタッチパネルに覆われている携帯型ゲーム装置を一例に上げて説明する。
(Appearance of game device)
As a game apparatus of this embodiment, a portable game apparatus having two display screens physically and one of the display screens covered with a touch panel will be described as an example.
ゲーム装置10は、第1表示画面11aを有する第1LCD11と、第2表示画面12aを有する第2LCD12とを備えている。第1表示画面11aは、第2表示画面12aとは物理的に異なった表示画面であり、第2表示画面12aとは所定間隙を隔てて設けられている。
The
第1表示画面11aの左右両側には、ゲーム音楽や音声を出力するためのスピーカ15a、15bが設けられている。
第2表示画面12aの表面は、タッチパネル13によって覆われている。第2表示画面12aの右側には、プレイヤの右手によって操作可能な位置に、Aボタン14a、Bボタン14b、Xボタン14c、Yボタン14d、スタートボタン14e、セレクトボタン14fが設けられている。第2表示画面12aの左側には、プレイヤの左手によって操作可能な位置に、十字キー14gが設けられている。
The surface of the
ゲーム装置10には、タッチパネル13に対する入力を行うためのスタイラス(図示せず)が設けられ、スタイラスはゲーム装置10内に着脱自在に収納されている。
The
タッチパネル13の位置検出精度が高い場合にはスタイラスを利用することが有効であるが、位置検出精度が低い場合にはスタイラスを利用する必要がなく、例えばプレイヤの指によってタッチパネル13の入力を行うことも可能である。
When the position detection accuracy of the
また、タッチパネル13は、抵抗膜式、光学式、超音波式、静電容量式、電磁誘導式などのいずれの方式でもよく、特に抵抗膜式が低コストであるため有利である。また、検出方式は、その構成によりマトリクス方式(デジタル)および抵抗値検出方式(アナログ)のいずれであってもかまわない。
Further, the
ゲーム装置10の第1LCD11側の上端にはコネクタ16が設けられ、ゲームのソフトウエアが記憶されたカートリッジ18が接続される。
A
ゲーム装置10の第2LCD12側の下端にはコネクタ17が設けられ、遊戯カードを読み込むためのカード読取装置19が接続される。
A
(ゲーム装置の構成)
ゲーム装置10の回路基板20は、ゲームプログラムを実行するためのコンピュータの一例であるCPUコア21等を備える。CPU(中央処理装置)コア21には、WRAM(作業用記憶装置)22、第1GPU(画像処理装置)24、第2GPU26、およびI/F(インターフェイス)回路27が所定のバスを介して電気的に接続される。
(Configuration of game device)
The
第1GPU24と第2GPU26には、座標系を有するメモリがある。
The
WRAM22は、CPUコア21によって実行されるゲームプログラムや、CPUコア21の演算結果などを一次的に記憶するメモリである。
The
第1GPU24は、CPUコア21からの指示に応じて第1LCD11に表示出力するための第1ゲーム画像を第1VRAM(ビデオRAM)23に描画し、描画した当該第1ゲーム画像を第1LCD11の第1表示画面11aに表示させる。
The
第2GPU26は、CPUコア21からの指示に応じて第2LCD12に表示出力するための第2ゲーム画像を第2VRAM25に描画し、描画した当該第2ゲーム画像を第2表示画面12aに表示させる。
The
I/F回路27は、タッチパネル13、操作スイッチ部14、およびスピーカ15などの外部入出力装置とCPUコア21との間のデータの受け渡しを行う回路である。
The I /
タッチパネル13(タッチパネル用のデバイスドライバを含む)は、第2VRAM25の座標系に対応する座標系を有し、スタイラスやプレイヤの指などによって入力(指示)された位置に対応する位置座標のデータを出力する。
The touch panel 13 (including a device driver for the touch panel) has a coordinate system corresponding to the coordinate system of the
なお、本実施形態では、一例として第1表示画面11aおよび第2表示画面12aの解像度を、それぞれ192dot×256dotであるとする。また、タッチパネル13の検出精度も第2表示画面12aに対応した192dot×256dotとして説明するが、タッチパネル13の検出精度は表示画面の解像度よりも低いものであってもよい。
In the present embodiment, it is assumed that the resolution of the
さらに、CPUコア21にはコネクタ16、17が電気的に接続されている。コネクタ16にはカートリッジ18が着脱可能に接続され、コネクタ17にはカード読取装置19が着脱可能に接続されている。
Further,
カートリッジ18には、ゲームプログラムを記憶するROM18a、バックアップデータを書き換え可能に記憶するRAM18bが設けられている。
The
カートリッジ18のROM18aに記憶されたゲームプログラムは、WRAM22にロードされ、WRAM22にロードされたゲームプログラムがCPUコア21によって実行される。
The game program stored in the
(遊戯カード)
本実施形態のゲーム装置で用いる遊戯カードの一例を図3に示す。
(Play card)
An example of a game card used in the game device of this embodiment is shown in FIG.
本実施形態の遊戯カードは、トランプサイズと呼ばれる縦88mmで横63mmの厚手の紙製のカードである。本実施形態では3種類の遊戯カード(オシャレ魔法カード)が用意されている。頭部のおしゃれをするヘア&メイクアップカードと、胴体部のおしゃれをするドレスアップカードと、足部のおしゃれをするフットウエアカードである。 The game card of this embodiment is a card made of thick paper called a playing card size of 88 mm in length and 63 mm in width. In this embodiment, three types of game cards (fashionable magic cards) are prepared. A hair and makeup card for fashionable heads, a dress-up card for fashionable torso parts, and a footwear card for fashionable foot parts.
図3に示す遊戯カードは、3種類の遊戯カードのうち、頭部のおしゃれをするヘア&メイクアップカードである。図3(a)はヘア&メイクアップカード30の表面を示し、図3(b)はヘア&メイクアップカード30の裏面を示している。
The game card shown in FIG. 3 is a hair and make-up card that makes the head look stylish among the three types of game cards. FIG. 3A shows the front surface of the hair &
図3(a)に示すように、ヘア&メイクアップカード30の表面左上部には、カードの属性を表す属性欄31が設けられている。図3(a)では、属性欄31に「H」というデザイン文字がハート中に描かれている。
As shown in FIG. 3 (a), an
ヘア&メイクアップカード30の表面上縁部には、カードの属性名が記された属性名表記欄32が設けられている。図3(a)では、属性名称欄32に「ヘア&メイクアップカード」と記されている。
At the upper edge of the surface of the hair &
ヘア&メイクアップカード30の表面属性名表記欄32の右横には、3桁−3桁の数字のアイテム番号が記されたアイテム番号欄33が設けられている。図3(a)では、アイテム番号欄33に「001−04A」と記されている。
On the right side of the surface attribute
ヘア&メイクアップカード30の表面左縁部には、ゲーム装置10のカード読取装置19によるカード読取のためのバーコードが描かれたバーコード欄34aが設けられている。バーコード欄34aのバーコードはカード30の左縁にバーが接している。
A
ヘア&メイクアップカード30の表面中央には、カードのアイテム番号に対応した顔部分が描かれる肖像画欄35と、コメントが記されたコメント欄36が設けられている。図3(a)では、肖像画欄35に「さらさらロングヘア」の絵柄が描かれ、コメント欄36に「どんなコーデにも合うていばんヘアだよね。ナチュラルメイクでせいそにきめるよ。」と記されている。
In the center of the surface of the hair &
ヘア&メイクアップカード30の表面右上部のアイテム番号欄33の下部には、カードのアイテム番号に対応した名称が描かれる名称欄37aが設けられている。図3(a)では、名称欄37aに「さらさらロング」と記されている。
A
ヘア&メイクアップカード30の表面下縁部には、カードのアイテム番号に対応した名称が描かれる名称欄37bが設けられている。図3(a)では、名称欄37bに「SARASARA LONG」と記されている。
A
ヘア&メイクアップカード30の表面右縁部には、本遊戯の遊戯名称が表記された遊戯名称欄38aが設けられている。図3(b)では、遊戯名称欄38aに「Osharemajo Love & Berry」と記されている。なお、海外版では、遊戯名称欄38aに「LOVE AND BERRY Dress up and Dance!」と記されている。
On the right edge of the surface of the hair &
図3(b)に示すように、ヘア&メイクアップカード30の裏面右縁部には、ゲーム装置10のカード読取装置19によるカード読取のためのバーコードが描かれたバーコード欄34bが設けられている。このバーコード欄34bは、ヘア&メイクアップカード30の表面のバーコード欄34aと対応していて、同じバーコードの長さ、幅、内容は同じである。バーコード欄34bのバーコードはカード30の左縁にバーが接している。
As shown in FIG. 3B, a
ヘア&メイクアップカード30の裏面上部には、本遊戯の遊戯名称が表記された遊戯名称欄38bが設けられている。ヘア&メイクアップカード30の裏面中央には、本遊戯の代表的肖像が描かれた肖像画欄39が設けられている。図3(b)では、遊戯名称欄38bに「オシャレ魔女ラブandベリー」(登録商標)と記され、肖像画欄39に統一した絵柄の肖像が描かれている。なお、海外版では、遊戯名称欄38bに、「LOVE AND BERRY Dress up and Dance!」と記されている。
In the upper part of the back surface of the hair &
なお、図3では、表面のバーコード欄34aや裏面のバーコード欄34bのように、バーコード表示専用の領域を設け、この領域内にバーコードを印刷している。このバーコードは、黒色の太線又は細線(バー)が所定の間隔(スペース)を挟んで配置されている。本実施形態では、表面のバーコード欄34aや裏面のバーコード欄34bの地色を白色とし、それに黒色のバーを印刷している。
In FIG. 3, an area dedicated to barcode display is provided as in the
本実施形態では、バーは黒色でスペースは白色であったが、バーとスペースが識別することができれば如何なる色の組合せでもよい。スペースの「白色」としては、白に限定されず発光素子の色を反射する色であればよいし、バーの「黒色」としては、黒に限定されず発光素子の色を吸収する色であればよい。 In this embodiment, the bar is black and the space is white. However, any combination of colors may be used as long as the bar and the space can be identified. The “white” of the space is not limited to white as long as it reflects the color of the light-emitting element, and the “black” of the bar is not limited to black and may be a color that absorbs the color of the light-emitting element. That's fine.
例えば、発光素子の色が赤色の場合は、スペースの「白色」は、赤色又は赤成分が多い色(ピンク色など)であればよいし、バーの「黒色」は、赤の補色又はその成分が多い色(青色など)であればよい。例えば、表面のバーコード欄34aや裏面のバーコード欄34bの地色を薄い青色とし、バーを濃い赤色としてもよい。
For example, when the color of the light emitting element is red, the “white” of the space may be a color with a lot of red or red components (such as pink), and the “black” of the bar may be a complementary color of red or its component As long as there are many colors (such as blue). For example, the background color of the
また、スペースの「白色」や、バーの「黒色」は、単色でなくてもよい。例えば、グラデーションがかかった色や絵柄であってもよい。 Further, the “white” of the space and the “black” of the bar may not be a single color. For example, a color or a pattern with gradation may be used.
また、本実施形態絵では、表面のバーコード欄34aや裏面のバーコード欄34bのように境界線を記載し、その境界線内の領域をバーコード表示専用の領域としたが、そのような境界線は記載せず、遊戯カードの表面又は裏面の全面に模様や写真等の絵柄を記載し、その絵柄上にバーを印刷するようにしてもよい。
Further, in the present embodiment picture, boundary lines are described as in the
(カード読取装置の構成)
本実施形態のカード読取装置について図1及び図4を用いて説明する。
(Configuration of card reader)
The card reader according to this embodiment will be described with reference to FIGS.
カード読取装置19には、図1に示すように、遊戯カード30を読み込ませるための溝19aが形成されている。溝19a内側には、遊戯カード30のバーコード欄34a、34bに記載されたバーコードを光学的に読み取るための発光素子と受光素子が設けられている。遊戯者は遊戯カード30のバーコード欄34a、34bを溝19aに差し入れ、横方向に移動してバーコード欄34bに記載されたバーコードを読取らせる。
As shown in FIG. 1, the
なお、バーコードは、黒色の太線又は細線が所定の間隔を挟んで配置されている。通常、黒色の線のことをバー、隣接するバー間の間隔のことをスペースと読んでいるが、本実施形態では、バーのことを黒バー、スペースのことを白バーと呼ぶこととする。 In the barcode, black thick lines or thin lines are arranged at a predetermined interval. Normally, the black line is read as a bar, and the interval between adjacent bars is read as a space. However, in this embodiment, the bar is called a black bar, and the space is called a white bar.
また、遊戯カードの表面又は裏面の全面に模様や写真等の絵柄を記載し、その絵柄上にバーを印刷するようにした場合には、印刷したバーが黒バーであり、その黒バー間の地色(地模様)の部分が白バーとなる。 In addition, when a pattern such as a pattern or a photograph is written on the entire front or back of the game card and a bar is printed on the pattern, the printed bar is a black bar, and between the black bars The part of the ground color (ground pattern) becomes a white bar.
本実施形態では、黒バーが細いか太いか、すなわち、細黒バーか、太黒バーか、白バーが細いか太いか、すなわち、細白バーか、太白バーかを判定し、それに基づいて、バーコードが示す文字コードを判定する。 In the present embodiment, it is determined whether the black bar is thin or thick, that is, a thin black bar, a thick black bar, or a white bar is thin or thick, that is, whether it is a fine white bar or a thick white bar. The character code indicated by the barcode is determined.
カード読取装置19の構成を図4に示す。
The configuration of the
カード読取装置19の溝19a内側に、遊戯カード30のバーコード欄34a、34bを照射するための発光素子40と、遊戯カード30のバーコード欄34a、34bからの反射光を受光する受光素子42とが設けられている。
Inside the
受光素子42にはバンドパスフィルタ44が接続されている。バンドパスフィルタ44は、受光素子42から出力される受光信号を濾波し、その直流成分や不要な周波数成分をカットする。
A
バンドパスフィルタ44には増幅回路46が接続されている。増幅回路46は、バンドパスフィルタ44により濾波された受光信号を増幅する。
An amplifying
増幅回路46には2値化処理部(幅測定部)48が接続されている。
A binarization processing unit (width measuring unit) 48 is connected to the
2値化処理部(幅測定部)48には、黒用バーカウンタ50A、白用バーカウンタ50Bと、黒用終了フラグ51A、白用終了フラグ51Bが設けられている。
The binarization processing unit (width measurement unit) 48 is provided with a
2値化処理部(幅測定部)48は、増幅回路46から出力される受光信号を所定のしきい値と比較して、所定のしきい値よりも小さいときには「黒」と判断し、所定のしきい値よりも大きいときには「白」と判断する。
The binarization processing unit (width measurement unit) 48 compares the light reception signal output from the
2値化処理部(幅測定部)48は、クロック信号に基づく所定周期で受光信号が黒であるか白であるかを判断する。受光信号が黒であると判断されると、黒用バーカウンタ50Aをインクリメントする。受光信号が白であると判断されると、白用バーカウンタ50Bをインクリメントする。
The binarization processing unit (width measurement unit) 48 determines whether the received light signal is black or white in a predetermined cycle based on the clock signal. If it is determined that the received light signal is black, the
走査された遊戯カード30のバーコードを読み取り、ひとつのバーの読み取りが終了したと判断されると、黒用終了フラグ51A又は白用終了フラグ51Bにフラグを立てる。例えば、黒の受光信号が連続した後に、所定時間だけ白の受光信号が連続すると、黒バーの測定が完了したと判断し、黒用終了フラグ51Aにフラグを立てる。また、白の受光信号が連続した後に、所定時間だけ黒の受光信号が連続すると、白バーの測定が完了したと判断し、白用終了フラグ51Bにフラグを立てる。
When the bar code of the scanned
黒用終了フラグ51Aにフラグが立ったときの黒用バーカウンタ50Aのカウンタ値が、受光素子42により黒が受光された時間、すなわち、バーコードの黒バーの幅に比例した値となる。
The counter value of the
白用終了フラグ51Bにフラグが立ったときの白用バーカウンタ50Bのカウンタ値が、受光素子42により白が受光された時間、すなわち、バーコードの白バーの幅に比例した値となる。
The counter value of the
なお、2値化処理部(幅測定部)48の処理の詳細については後述する。 Details of the processing of the binarization processing unit (width measurement unit) 48 will be described later.
2値化処理部(幅測定部)48には細太判定部52が接続されている。細太判定部52には、黒用データメモリ54Aと白用データメモリ54Bが設けられている。
A
細太判定部52は、黒用バーカウンタ50Aと白用バーカウンタ50Bに基づいて、現在読み取っている黒バー又は白バーが、太いバーであるか細いバーである判断する。黒バーの判断結果は、黒用データメモリ54Aに記憶され、白バーの判定結果は、白用データメモリ54Bに記憶される。
Based on the
走査された遊戯カード30のバーコードを読み取ると、黒用データメモリ54Aには、黒バーが細いか太いかの情報が読み取ったバーの順番に記憶され、白用データメモリ54Bには、白バーが細いか太いかの情報が読み取ったバーの順番に記憶される。黒バー及び白バーについて、例えば、「細い→太い→細い→細い→・・・・」というような情報が記憶される。なお、細太判定部52の処理の詳細については後述する。
When the bar code of the scanned
細太判定部52には文字コード化部56が接続されている。文字コード化部56は、CODE39等のコード化規則により定められたキャラクタのパターンを参照して、黒データメモリ54Aに記憶された黒バーの細いバーと太いバーの並びによるパターンと、白データメモリ54Bに記憶された白バーの細いバーと太いバーの並びによるパターンとに基づき、読み取ったバーコードが示す文字コードを決定する。文字コード化部56により決定された文字コードは文字コードメモリ58に記憶される。
A
(カード読取処理)
本実施形態のカード読取装置によるカード読取処理の概略について図5を用いて説明する。図5は本実施形態のカード読取装置によるカード読取処理の概略を示すフローチャートである。
(Card reading process)
An outline of card reading processing by the card reading device of this embodiment will be described with reference to FIG. FIG. 5 is a flowchart showing an outline of the card reading process by the card reading apparatus of this embodiment.
遊戯者が、遊戯カード30のバーコード欄34a、34bをバーコード読取装置19の溝19aに差し入れ、横方向に移動してバーコード欄34bに記載されたバーコードを読取らせる。
The player inserts the
バーコード読取装置19では、発光素子40により遊戯カード30のバーコード欄34a、34bを照射し、遊戯カード30のバーコード欄34a、34bからの反射光を受光素子42により受光する。
In the
受光素子42からの受光信号は、バンドパスフィルタ44により濾波され、増幅回路46により増幅され、2値化処理部(幅測定部)48により2値化される。2値化処理部(幅測定部)48は、クロック信号に基づく所定周期で受光信号が黒であるか白であるかを判断し、受光信号が黒であると判断されると、黒用バーカウンタ50Aがインクリメントされ、受光信号が白であると判断されると、白用バーカウンタ50Bがインクリメントされる。
The light reception signal from the
まず、図5のフローチャートに示すように、黒用終了フラグ51A又は白用終了フラグ51Bにバー終了フラグが立ったか否かを判定する(ステップS10)。
First, as shown in the flowchart of FIG. 5, it is determined whether or not a bar end flag is set on the
黒用終了フラグ51A又は白用終了フラグ51Bにバー終了フラグが立った場合には、細太判定部52により細太判定処理を行い(ステップS20)、その後、細太判定処理の結果に基づいて文字コード化部56により文字コード化処理を行う(ステップS30)。これら細太判定処理及び文字コード化処理については後述する。
When the bar end flag is set in the
黒用終了フラグ51A又は白用終了フラグ51Bにバー終了フラグが立っていない場合には、続いて、黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしていないか判定する(ステップS11)。
If the bar end flag is not set in the
遊戯カード30ではない白紙等が溝19a差し込まれている場合や、遊戯カード30が差し込まれているが動かされず停止している場合等には、黒又は白の受光信号が入力し続けて黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローする。この場合にはタイムアウト処理してバーコード読み取りをリセットする必要がある。
When a blank sheet or the like that is not the
そこで、黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしている場合には、黒用バーカウンタ50A及び白用バーカウンタ50Bと2値化処理部48をクリアして、バーコード読み取り待ち状態にして(ステップS12)、ステップS10に戻る。
Therefore, when the
黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしていない場合には、通常通り、黒用バーカウンタ50A又は白用バーカウンタ50Bのカウント値をインクリメントして(ステップS13)、ステップS10に戻る。
If the
(細太判定処理)
次に、本実施形態のカード読取処理における細太判定処理について図6乃至図9を用いて説明する。図6は本実施形態のカード読取処理における細太判定処理の詳細を示すフローチャートであり、図7は本実施形態のカード読取処理における細太判定処理での補正処理の説明図であり、図8は本実施形態のカード読取処理における細太判定処理の原理を説明するための図であり、図9は本実施形態のカード読取処理における細太判定処理の説明図である。
(Thinness judgment processing)
Next, the thinness determination process in the card reading process of this embodiment will be described with reference to FIGS. FIG. 6 is a flowchart showing details of the thinness determination process in the card reading process of the present embodiment, and FIG. 7 is an explanatory diagram of the correction process in the thinness determination process in the card reading process of the present embodiment. FIG. 9 is a diagram for explaining the principle of thinness determination processing in the card reading processing of the present embodiment, and FIG. 9 is an explanatory diagram of thinness determination processing in the card reading processing of the present embodiment.
この細太判定処理の前には、2値化処理部(幅測定部)48により黒バー又は白バーの幅が測定され、今測定したバーの幅(H1)と共に、この測定したバーに隣接する直前に測定したバーの幅(H2)が、黒用バーカウンタ50A又は白用バーカウンタ50Bに格納されている。また、黒用データメモリ54A又は白用データメモリ54Bには、直前に測定したバーが細バーであるか太バーであるかが格納されている。なお、直前に測定したバーの細太判定が未だなされていない場合には何も格納されていない。
Before the thinness determination process, the width of the black bar or the white bar is measured by the binarization processing unit (width measurement unit) 48, and the measured bar width (H1) is adjacent to the measured bar. The bar width (H2) measured immediately before the
まず、直前に測定されたバーが太バーであったか判断する(ステップ21)。直前のバーが太バーの場合には、今測定したバーの幅(H1)を補正する(ステップS22)。 First, it is determined whether the bar measured immediately before was a thick bar (step 21). If the immediately preceding bar is a thick bar, the width (H1) of the bar that has just been measured is corrected (step S22).
本願発明者は、例えば、図7に示すようなバーコードを読み取った場合、太バーの直後のバーは、黒バーの場合でも白バーの場合でも実際よりも太く測定されることに気がついた。 For example, when the present inventor reads a bar code as shown in FIG. 7, he noticed that the bar immediately after the thick bar is measured to be thicker than the actual case in both the black bar and the white bar.
図7に示すように、黒細バー→白細バー→黒細バー→白細バー→黒太バー→白太バー→黒太バー→白細バー→黒細バー→白細バー→黒細バー→白細バー→黒細バー、というパターンを読み取る場合、黒太バーの直後の白太バー、白太バーの直後の黒太バー、黒太バーの直後の白細バーは、本来測定されるべき正しい太さよりも太く測定される。 As shown in FIG. 7, black thin bar → white thin bar → black thin bar → white thin bar → black thick bar → white thick bar → black thick bar → white thin bar → black thin bar → white thin bar → black thin bar → When reading the pattern of white thin bar → black thin bar, the white thick bar immediately after the black thick bar, the black thick bar immediately after the white thick bar, and the white thin bar immediately after the black thick bar are originally measured. Measured thicker than the correct thickness.
このように測定される理由を、図8を用いて説明する。 The reason for this measurement will be described with reference to FIG.
図8(a)はバーコードの具体例を示し、図8(b)は受光素子42の出力信号を示し、図8(c)はバンドパスフィルタ44の出力信号を示し、図8(d)は増幅回路46の出力信号を示している。
8A shows a specific example of the barcode, FIG. 8B shows the output signal of the
図8(a)に示す実施形態では、右から2番目の白バーが太い。この太い白バーを読み取ると、白を検出している時間が長くなり、図8(b)に示すように、受光素子42の出力信号が飽和してしまう。受光信号42の出力信号が飽和すると、図8(c)に示すように、バンドパスフィルタ44の出力信号は、直流成分がカットされて基準電位に戻ろうとする。
In the embodiment shown in FIG. 8A, the second white bar from the right is thick. When this thick white bar is read, it takes a long time to detect white, and the output signal of the
このため、次の黒バーの信号が入力されたときに、一点鎖線で示す通常の信号波形よりも早いタイミングで、バンドパスフィルタ44の出力信号が黒バーの閾値信号を超えてしまう。したがって、右から1番目の黒バーの幅は通常よりも太く測定され、右から2番目の白バーの幅は通常よりも細く測定される。
For this reason, when the next black bar signal is input, the output signal of the band-
そこで、本願発明者は、今測定したバーの幅(H1)に様々な定数Cを乗算して、次式
H1′=H1×C
により補正することに思い至った。本願発明者は、定数Cとして、0.375、0.500、0.625、0.750、0.8125、0.875、1.000を用意し、いずれの値が適切か実験を行った、
その実験の結果、定数Cとして、0.8125が最も適しており、0.750〜0.875の範囲の値が望ましいということがわかった。
Therefore, the present inventor multiplies the bar width (H1) just measured by various constants C to obtain the following formula: H1 ′ = H1 × C
I came up with a correction. The present inventor prepared 0.375, 0.500, 0.625, 0.750, 0.8125, 0.875, 1.000 as the constant C, and conducted an experiment to determine which value was appropriate. ,
As a result of the experiment, it was found that 0.8125 is most suitable as the constant C, and a value in the range of 0.750 to 0.875 is desirable.
次に、直前のバーの幅H2に対する今測定したバーの幅H1(ステップS22で補正した場合には補正後の幅H1′)の比Rを演算する(ステップS23)。本実施形態では、この比Rの値に基づいて、今測定したバーが細バーか太バーかを決定する。 Next, a ratio R of the bar width H1 just measured to the previous bar width H2 (or the corrected width H1 ′ when corrected in step S22) is calculated (step S23). In this embodiment, based on the value of the ratio R, it is determined whether the currently measured bar is a thin bar or a thick bar.
本実施形態では、今測定したバーの幅H1を直前測定したバーの幅H2と逐次比較して次のように判断する。
(1)直前測定したバーが細バーで次のバーがある一定範囲内の大きさの場合には、今のバーも細バーであると判断する。
(2)直前測定したバーが太バーで次のバーがある一定範囲内の大きさの場合には、今のバーも太バーであると判断する。
(3)直前測定したバーが細バーで次のバーがある一定範囲を超える大きさの場合には、今のバーは太バーであると判断する。
(4)直前測定したバーが細バーで次のバーがある一定範囲を下回る大きさの場合には、今のバーは細バーであると判断する。
In the present embodiment, the bar width H1 just measured is sequentially compared with the bar width H2 measured immediately before, and the following determination is made.
(1) When the last measured bar is a thin bar and the next bar has a size within a certain range, it is determined that the current bar is also a thin bar.
(2) If the last measured bar is a thick bar and the next bar has a size within a certain range, it is determined that the current bar is also a thick bar.
(3) If the bar measured immediately before is a thin bar and the size of the next bar exceeds a certain range, it is determined that the current bar is a thick bar.
(4) If the last measured bar is a thin bar and the size of the next bar is below a certain range, it is determined that the current bar is a thin bar.
具体的には、図6のフローチャートに示すように、直前のバーの幅H2に対する今測定したバーの幅H1の比R(=H1/H2)の範囲を判定し(ステップS24)、比Rが定数Aよりも小さい場合には、今のバーは太バーであり直前のバーは細バーであるとし(ステップS27)、比Rが定数Bよりも小さい場合には、今のバーは細バーであり直前のバーは太バーであるとし(ステップS25)、比Rが定数B以上で定数A以下である場合には、今のバーの細太判定を直前のバーの細太判定を同じとする(ステップS26)。 Specifically, as shown in the flowchart of FIG. 6, the range of the ratio R (= H1 / H2) of the bar width H1 just measured to the width H2 of the immediately preceding bar is determined (step S24). If it is smaller than the constant A, the current bar is a thick bar and the previous bar is a thin bar (step S27). If the ratio R is smaller than the constant B, the current bar is a thin bar. Assume that the immediately preceding bar is a thick bar (step S25), and if the ratio R is greater than or equal to constant B and less than or equal to constant A, the current bar thinness determination is the same as the previous bar thinness determination. (Step S26).
本願発明者は、定数Aと定数Bとしてどの値が適切であるか繰り返し実験を行った。 The inventor of the present application repeatedly performed an experiment to determine which value is appropriate for the constant A and the constant B.
その実験の結果、定数Aとして、1.375が最も適しており、1.25〜1.50の範囲の値が望ましいと言うことがわかった。 As a result of the experiment, it was found that 1.375 is most suitable as the constant A, and a value in the range of 1.25 to 1.50 is desirable.
また、定数Bとして、0.75が最も適しており、0.6250〜0.8125の範囲の値が望ましいと言うことがわかった。 Further, it has been found that 0.75 is most suitable as the constant B, and a value in the range of 0.6250 to 0.8125 is desirable.
図9に示すように、黒バーについて、幅100→幅90→幅200→幅160→幅140→幅95→幅85が続く場合には、次のように細太判定がなされる。 As shown in FIG. 9, for the black bar, when width 100 → width 90 → width 200 → width 160 → width 140 → width 95 → width 85 continues, the thinness determination is made as follows.
比較(1)
今測定したバーの幅が90、直前測定したバーの幅が100(R=90/100=0.90)の場合、直前測定したバーと今測定したバーは同じと判定する(太バーか細バーかは不明)。
Comparison (1)
If the width of the currently measured bar is 90 and the width of the previously measured bar is 100 (R = 90/100 = 0.90), it is determined that the previously measured bar is the same as the currently measured bar (thick or thin). It is unknown whether it is a bar).
比較(2)
今測定したバーの幅が200、直前測定したバーの幅が90(R=200/90=2.22)の場合、直前測定したバーは細バー、今測定したバーは太バーと判定する。この時点で比較(1)でのバーが細バーであることが判明する。
Comparison (2)
When the width of the currently measured bar is 200 and the width of the last measured bar is 90 (R = 200/90 = 2.22), the last measured bar is determined to be a thin bar, and the currently measured bar is determined to be a thick bar. At this point, it is found that the bar in comparison (1) is a thin bar.
比較(3)
今測定したバーの幅が160、直前測定したバーの幅が200(R=160/200=0.80)の場合、直前測定したバーは太バー、今測定したバーも太バーと判定する。
Comparison (3)
If the width of the currently measured bar is 160 and the width of the last measured bar is 200 (R = 160/200 = 0.80), the last measured bar is determined to be a thick bar, and the currently measured bar is also determined to be a thick bar.
比較(4)
今測定したバーの幅が140、直前測定したバーの幅が160(R=140/160=0.88)の場合、直前測定したバーは太バー、今測定したバーも太バーと判定する。
Comparison (4)
When the width of the bar measured just now is 140 and the width of the bar measured immediately before is 160 (R = 140/160 = 0.88), it is determined that the bar measured immediately before is a thick bar, and the bar measured just now is also a thick bar.
比較(5)
今測定したバーの幅が95、直前測定したバーの幅が140(R=95/140=0.68)の場合、直前測定したバーは太バー、今測定したバーは細バーと判定する。
Comparison (5)
When the width of the bar measured just now is 95 and the width of the bar measured immediately before is 140 (R = 95/140 = 0.68), it is determined that the bar measured immediately before is a thick bar and the bar just measured is a thin bar.
比較(6)
今測定したバーの幅が85、直前測定したバーの幅が95(R=85/95=0.89)の場合、直前測定したバーは細バー、今測定したバーも細バーと判定する。
Comparison (6)
When the width of the bar measured just now is 85 and the width of the bar measured immediately before is 95 (R = 85/95 = 0.89), it is determined that the bar measured immediately before is a thin bar, and the bar just measured is also a thin bar.
このように本実施形態では、基準となるバーの幅を細太判定したバーの幅に逐次置き換えて判定しているので遊戯カードの走査速度が変動しても正しく測定できる。例えば、上述した比較(2)と太さ200のバーも、比較(4)における太さ140のバーも、幅として測定値は異なっていても正しく太バーと判別できる。 As described above, in this embodiment, since the determination is performed by sequentially replacing the width of the reference bar with the width of the bar determined to be thin, it can be measured correctly even if the scanning speed of the game card fluctuates. For example, the bar having the thickness of 200 in the comparison (2) and the bar having the thickness of 140 in the comparison (4) can be correctly distinguished from the thick bar even if the measured values are different as the width.
(文字コード化処理)
次に、本実施形態のカード読取装置における文字コード化処理について図10及び図11を用いて説明する。図10は本実施形態のカード読取処理における文字コード化処理の詳細を示すフローチャートであり、図11はバーコード規格であるCODE39の説明図である。
(Character encoding process)
Next, the character encoding process in the card reader according to the present embodiment will be described with reference to FIGS. FIG. 10 is a flowchart showing details of the character encoding process in the card reading process of this embodiment, and FIG. 11 is an explanatory diagram of the
前述したように、文字コード化部56は、CODE39のコード化規則により定められたキャラクタのパターンを参照して、黒データメモリ54Aに記憶された黒バーの細いバーと太いバーの並びによるパターンと、白データメモリ54Bに記憶された白バーの細いバーと太いバーの並びによるパターンとに基づき、読み取ったバーコードが示す文字コードを決定する。
As described above, the
CODE39は、図11に示すように、バーコードの最初と最後に*(アスタリスク)のコードを設け、その間に必要数(図11の例では2個)のキャラクタのデータを挿入する。*(アスタリスク)のコードは、図11に示すように決まっているので、最初の白バーと2番目の白バーを比較し、最初の黒バーと2番目の黒バーとを比較することにより、遊戯カード30の走査方向を確定することができる。
As shown in FIG. 11, the
そこで、まず、最初の白バーと2番目の白バーの比較と、最初の黒バーと2番目の黒バーの比較を同時に行う(ステップS31)。 Therefore, first, the comparison between the first white bar and the second white bar and the comparison between the first black bar and the second black bar are simultaneously performed (step S31).
次に、その比較の結果から、*(アスタリスク)のコードが順方向で読まれているか判断する(ステップS32)。 Next, from the result of the comparison, it is determined whether or not the * (asterisk) code is read in the forward direction (step S32).
*(アスタリスク)のコードが順方向で読まれている場合には、読み取ったデータを文字コードメモリ58の上位ビットから下位ビットへ順番に格納する(ステップS33)。 If the * (asterisk) code is read in the forward direction, the read data is stored in order from the upper bit to the lower bit of the character code memory 58 (step S33).
*(アスタリスク)のコードが順方向で読まれていない場合には、読み取ってデータを文字コードメモリ58の下位ビットから上位ビットへ順番に格納する(ステップS34)。 If the * (asterisk) code is not read in the forward direction, the code is read and stored in order from the lower bit to the upper bit of the character code memory 58 (step S34).
次に、文字コードメモリ58に格納したデータをアスキーコードに変換して出力する(ステップS34)。
Next, the data stored in the
なお、本実施形態では、バーコード規格としてCODE39を用いたが、他のコード規格を用いてもよい。 In this embodiment, CODE39 is used as the barcode standard, but other code standards may be used.
[変形実施形態]
本発明は上記実施形態に限らず種々の変形が可能である。
[Modified Embodiment]
The present invention is not limited to the above embodiment, and various modifications can be made.
例えば、上記実施形態では、各遊戯者がそれぞれ着せ替え処理を行ったが、遊戯者同士がキャラクタを操作して対戦し、勝ち負けを決定するようにしてもよい。 For example, in the above-described embodiment, each player performs a dress-up process, but the players may play a battle by operating characters to determine whether to win or lose.
また、上記実施形態では、携帯用ゲーム装置を例として説明したが、家庭用ゲーム装置や、パーソナルコンピュータ、あるいは携帯電話機等を用いたゲームシステムや、ゲームセンタに設置された所謂アーケード型のゲーム装置を用いたゲームシステムにも適用することができる。 In the above embodiment, a portable game device has been described as an example. However, a home game device, a game system using a personal computer, a mobile phone, or the like, or a so-called arcade game device installed in a game center. It can also be applied to a game system using.
また、上記実施形態では、カード読取装置におけるバーコード読取機能を、図4のブロック図に示すような電子回路により実現したが、その代わりに、汎用のコンピュータに専用のプログラムを読み込ませて実行することにより、バーコード読取機能を実現するようにしてもよい。上記専用のプログラムは、コンピュータ読み取り可能な記録媒体に記録するようにしてもよい。 In the above embodiment, the barcode reading function in the card reader is realized by an electronic circuit as shown in the block diagram of FIG. 4, but instead, a general-purpose computer reads and executes a dedicated program. Thus, a barcode reading function may be realized. The dedicated program may be recorded on a computer-readable recording medium.
また、上記実施形態では、バーコードに光を照射する光源として発光素子を用いたが、レーザや白熱球を使用してもよい。また、ペンスキャナやレーザスキャナで用いられる素子のホトセンサでもよい。 In the above embodiment, the light emitting element is used as the light source for irradiating the barcode with light, but a laser or an incandescent bulb may be used. Further, it may be a photosensor of an element used in a pen scanner or a laser scanner.
また、上記実施形態では、遊戯者がカードを動かしてバーコードを走査したが、モータ等を用いて自動的に走査するようにしてもよい。また、バーコードを走査する方向は、いずれの方向であってもよい。 In the above embodiment, the player moves the card and scans the barcode. However, the player may automatically scan using a motor or the like. Further, the scanning direction of the barcode may be any direction.
また、上記実施形態では、バーコードとして直線状に長いバーのバーコードを用いたが、他の形状、例えば、円形のカードに円弧状にバーを配したバーコードでもよい。 In the above-described embodiment, a bar code having a linearly long bar is used as the bar code. However, a bar code having another shape, for example, a bar having a circular arc arranged on a circular card may be used.
10…ゲーム装置
11…第1LCD
11a…第1表示画面
12…第2LCD
12a…第2表示画面
13…タッチパネル
14…操作ボタン
14a…Aボタン
14b…Bボタン
14c…Xボタン
14d…Yボタン
14e…スタートボタン
14f…セレクトボタン
14g…十字キー
15、15a、15b…スピーカ
16、17…コネクタ
18…ゲームカートリッジ
18a…ROM
18b…RAM
19…カードリーダ
19a…溝
20…回路基板
21…CPUコア
22…WRAM(作業用記憶装置)
23…第1VRAM(ビデオRAM)
24…第1GPU(画像処理装置)
25…第2VRAM(ビデオRAM)
26…第2GPU(画像処理装置)
27…I/F(インターフェイス)回路
30…ヘア&メイクアップカード
31…属性欄
32…属性名表記欄
33…アイテム番号欄
34a、34b…バーコード欄
35…肖像画欄
36…コメント欄
37a、37b…名称欄
38a…遊戯名称欄
39…肖像画欄
40…発光素子
42…受光素子
44…バンドパスフィルタ
46…増幅回路
48…2値化処理部(幅測定部)
50A…黒用バーカウンタ
50B…白用バーカウンタ
51A…黒用終了フラグ
51B…白用終了フラグ
52…細太判定部
54A…黒用データメモリ
54B…白用データメモリ
56…文字コード化部
58…文字コードメモリ
10 ...
11a ...
12a ...
18b ... RAM
DESCRIPTION OF
23. First VRAM (video RAM)
24. First GPU (image processing apparatus)
25. Second VRAM (video RAM)
26. Second GPU (image processing apparatus)
27 ... I / F (interface)
50A ...
Claims (12)
前記幅測定手段により測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する細太判定手段と、
前記細太測定手段により判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する文字コード化部と
を有するカード読取装置であって、
前記細太判定手段は、
前記幅測定手段により測定された第1のバーの幅と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅とに基づき、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R>A
ただし、Aは1より大きい定数
を満足した場合、前記第1のバーを太いバー、前記第2のバーを細いバーと判定し、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R<B
ただし、Bは1より小さい定数
を満足した場合、前記第1のバーを細いバー、前記第2のバーを太いバーと判定し、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
B≦R≦A
を満足した場合、前記第1のバーと前記第2のバーの太さは変化しないと判定する
ことを特徴とするカード読取装置。 Width measuring means for sequentially measuring the width of each bar of a bar code comprising a plurality of bars;
Based on the width of each bar measured by the width measuring means, a thinness determining means for determining whether each bar is a thin bar or a thick bar;
A card reader having: a character encoding unit that analyzes a pattern based on an arrangement of a thin bar and a thick bar in the bar code based on a result determined by the thin thickness measuring unit and determines a character code indicated by the pattern Because
The thin thickness determination means includes
Based on the width of the first bar measured by the width measuring means and the width of the second bar measured adjacent to the first bar and before the first bar,
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following equation: R> A
However, when A satisfies a constant larger than 1, the first bar is determined to be a thick bar, and the second bar is determined to be a thin bar.
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following formula R <B
However, when B satisfies a constant smaller than 1, the first bar is determined to be a thin bar and the second bar is determined to be a thick bar.
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following formula: B ≦ R ≦ A
When the above is satisfied, it is determined that the thicknesses of the first bar and the second bar do not change.
定数Aは、1.25〜1.50の範囲の値であり、
定数Bは、0.6250〜0.8125の範囲の値である
ことを特徴とするカード読取装置。 The card reader according to claim 1, wherein
The constant A is a value in the range of 1.25 to 1.50,
The card reader is characterized in that the constant B is a value in the range of 0.6250 to 0.8125.
前記幅測定手段により測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する細太判定手段と、
前記細太測定手段により判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する文字コード化部と
を有するカード読取装置であって、
前記幅測定手段により第1のバーの幅H1と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅H2とが測定され、前記細太判定手段により前記第2のバーが太いバーと判定されたときには、前記第1のバーの幅H1を次式
H1′=H1×C
ただし、Cは1より小さい定数
によりH1′に補正する幅補正手段を更に有する
ことを特徴とするカード読取装置。 Width measuring means for sequentially measuring the width of each bar of a bar code comprising a plurality of bars;
Based on the width of each bar measured by the width measuring means, a thinness determining means for determining whether each bar is a thin bar or a thick bar;
A card reader having: a character encoding unit that analyzes a pattern based on an arrangement of a thin bar and a thick bar in the bar code based on a result determined by the thin thickness measuring unit and determines a character code indicated by the pattern Because
The width measuring means measures the width H1 of the first bar and the width H2 of the second bar that is adjacent to the first bar and is measured before the first bar. When the determination means determines that the second bar is a thick bar, the width H1 of the first bar is expressed by the following equation: H1 ′ = H1 × C
However, the card reader further comprises a width correcting means for correcting C to H1 ′ by a constant smaller than 1.
定数Cは、0.750〜0.875の範囲の値である
ことを特徴とするカード読取装置。 The card reader according to claim 3, wherein
The card reader is characterized in that the constant C is a value in the range of 0.750 to 0.875.
前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、
前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、
前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、
前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定する
ことを特徴とするカード読取装置。 The card reader according to any one of claims 1 to 4,
The bar of the barcode is a color bar that absorbs light or a color bar that reflects light,
The width measuring means measures a width of a bar of a color that absorbs light of the barcode or a bar of a color that reflects light,
The thin thickness determination means determines whether the color bar that absorbs light of the barcode or the color bar that reflects light is a thin bar or a thick bar,
The character encoding means includes a pattern formed by an arrangement of thin bars and thick bars of a color bar that absorbs light of the barcode, or an arrangement of thin bars and thick bars of a color bar that reflects the light of the barcode. A card reader characterized by determining a character code based on the pattern of
前記測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する第2のステップと、
前記判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する第3のステップと
を有するバーコード読取方法であって、
前記第1のステップは、
前記幅測定手段により測定された第1のバーの幅と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅とに基づき、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R>A
ただし、Aは1より大きい定数
を満足した場合、前記第1のバーを太いバー、前記第2のバーを細いバーと判定し、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
R<B
ただし、Bは1より小さい定数
を満足した場合、前記第1のバーを細いバー、前記第2のバーを太いバーと判定し、
前記第2のバーの幅H2に対する前記第1のバーの幅H1の比R(=H1/H2)が次式
B≦R≦A
を満足した場合、前記第1のバーと前記第2のバーの太さは変化しないと判定する
ことを特徴とするバーコード読取方法。 A first step of sequentially measuring the width of each bar of a bar code comprising a plurality of bars;
A second step of determining whether each bar is a thin bar or a thick bar based on the measured width of each bar;
Analyzing the pattern based on the arrangement of thin and thick bars in the barcode based on the determined result, and determining a character code indicated by the pattern;
The first step includes
Based on the width of the first bar measured by the width measuring means and the width of the second bar measured adjacent to the first bar and before the first bar,
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following equation: R> A
However, when A satisfies a constant larger than 1, the first bar is determined to be a thick bar, and the second bar is determined to be a thin bar.
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following formula: R <B
However, when B satisfies a constant smaller than 1, the first bar is determined to be a thin bar and the second bar is determined to be a thick bar.
The ratio R (= H1 / H2) of the width H1 of the first bar to the width H2 of the second bar is expressed by the following formula: B ≦ R ≦ A
If it is satisfied, it is determined that the thicknesses of the first bar and the second bar do not change.
定数Aは、1.25〜1.50の範囲の値であり、
定数Bは、0.6250〜0.8125の範囲の値である
ことを特徴とするバーコード読取方法。 The barcode reading method according to claim 6, wherein
The constant A is a value in the range of 1.25 to 1.50,
The constant B is a value in the range of 0.6250 to 0.8125.
前記測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する第2のステップと、
前記判定された結果に基づいて、前記バーコードにおける細いバーと太いバーの並びによるパターンを解析し、前記パターンが示す文字コードを決定する第3のステップと
を有するバーコード読取方法であって、
前記第1のステップでは、第1のバーの幅H1と、前記第1のバーに隣接し、前記第1のバーよりも前に測定された第2のバーの幅H2とを測定し、
前記第2のステップでは、前記第1のステップで前記第2のバーが太いバーと判定されたときには、前記第1のバーの幅H1を次式
H1′=H1×C
ただし、Cは1より小さい定数
によりH1′に補正する
ことを特徴とするバーコード読取方法。 A first step of sequentially measuring the width of each bar of a bar code comprising a plurality of bars;
A second step of determining whether each bar is a thin bar or a thick bar based on the measured width of each bar;
Analyzing the pattern based on the arrangement of thin and thick bars in the barcode based on the determined result, and determining a character code indicated by the pattern;
In the first step, a width H1 of the first bar and a width H2 of the second bar that is adjacent to the first bar and is measured before the first bar are measured.
In the second step, when it is determined in the first step that the second bar is a thick bar, the width H1 of the first bar is expressed by the following equation: H1 ′ = H1 × C
However, C is corrected to H1 ′ by a constant smaller than 1 A bar code reading method characterized by:
定数Cは、0.750〜0.875の範囲の値である
ことを特徴とするバーコード読取方法。 The barcode reading method according to claim 8, wherein
The constant C is a value in the range of 0.750 to 0.875.
前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、
前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、
前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、
前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定する
ことを特徴とするカード読取装置。 The barcode reading method according to any one of claims 6 to 9,
The bar of the barcode is a color bar that absorbs light or a color bar that reflects light,
The width measuring means measures a width of a bar of a color that absorbs light of the barcode or a bar of a color that reflects light,
The thin thickness determination means determines whether the color bar that absorbs light of the barcode or the color bar that reflects light is a thin bar or a thick bar,
The character encoding means includes a pattern formed by an arrangement of thin bars and thick bars of a color bar that absorbs light of the barcode, or an arrangement of thin bars and thick bars of a color bar that reflects the light of the barcode. A card reader characterized by determining a character code based on the pattern of
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006301248A JP2008117249A (en) | 2006-11-07 | 2006-11-07 | Card reader and bar code reading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006301248A JP2008117249A (en) | 2006-11-07 | 2006-11-07 | Card reader and bar code reading method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008117249A true JP2008117249A (en) | 2008-05-22 |
Family
ID=39503099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006301248A Withdrawn JP2008117249A (en) | 2006-11-07 | 2006-11-07 | Card reader and bar code reading method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008117249A (en) |
-
2006
- 2006-11-07 JP JP2006301248A patent/JP2008117249A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7563974B2 (en) | Storage medium storing sound processing program and sound processing apparatus | |
US7634136B2 (en) | Touch input program and touch input device | |
US8062131B2 (en) | Game system and game apparatus used for the same | |
US20110244937A1 (en) | Game execution method, storage medium, and electronic instrument | |
US8306330B2 (en) | Game apparatus and storage medium storing a handwriting input program | |
US9403086B2 (en) | Electronic game with overlay card | |
CN101512470A (en) | Information outputting device | |
US9724613B2 (en) | Game device, control method of game device, program, and information storage medium | |
US8167714B2 (en) | Puzzle game apparatus and computer readable storage medium having puzzle game program stored thereon | |
US8447605B2 (en) | Input voice command recognition processing apparatus | |
JP2006247166A (en) | Card for game | |
JP2006107152A (en) | Information processing device and information input program | |
JP4464444B2 (en) | GAME DEVICE, GAME CONTROL METHOD, AND PROGRAM | |
TW201726215A (en) | Game device | |
JP5000132B2 (en) | Training program, training apparatus, training system, training control method, game program, game apparatus, game system, and game control method | |
JP5219114B2 (en) | Card game device having card arrangement direction recognition means | |
JP4943659B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP5177410B2 (en) | GAME DEVICE, GAME CONTROL METHOD, AND PROGRAM | |
JP2008117249A (en) | Card reader and bar code reading method | |
JP5168855B2 (en) | Game system and program | |
JP5603305B2 (en) | Handwriting learning support program and handwritten character recognition program | |
JP6673876B2 (en) | Game device, game system and program | |
JP5009349B2 (en) | Handwriting learning support program and handwriting learning support device | |
JP2804631B2 (en) | Card game machine and game switching method | |
JP2006284861A (en) | Program and device to support learning by handwriting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20100202 |