JP2008117249A - Card reader and bar code reading method - Google Patents

Card reader and bar code reading method Download PDF

Info

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
Application number
JP2006301248A
Other languages
Japanese (ja)
Inventor
Naoki Harakita
直樹 原北
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.)
Sega Corp
Original Assignee
Sega 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 Sega Corp filed Critical Sega Corp
Priority to JP2006301248A priority Critical patent/JP2008117249A/en
Publication of JP2008117249A publication Critical patent/JP2008117249A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a card reader allowed to be provided at a low price and capable of accurately reading out the contents of a card even when a reading speed of a play card is varied. <P>SOLUTION: In the card reader comprising a width measuring means for successively measuring the width of each bar of a bar code composed of a plurality of bars, a thin/thick judgment means for judging whether each bar is a thin bar or a thick bar on the basis of the width measuring means and a character encoding part for analyzing a pattern on the basis of thin bars and thick bars in the bar code on the basis of a result judged by the thin/thick judgment means and determining a character code indicated by the pattern; the thin/thick judgment part judges thinness/thickness of a first bar and a second bar according to the value of a ratio R of the width H1 of the first bar to the width H2 of the second bar on the basis of the width of the first bar measured by the width measuring means and the width of the second bar adjacent to the first bar and measured prior to the first bar. <P>COPYRIGHT: (C)2008,JPO&INPIT

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に記載されたものが知られている。
特開平5−62005号公報 特開平5−101214号公報 特開平8−202798号公報
As a card reader, for example, those described in Patent Document 1, Patent Document 2, and Patent Document 3 are known.
Japanese Patent Laid-Open No. 5-62005 Japanese Patent Laid-Open No. 5-101214 JP-A-8-202798

しかしながら、携帯用ゲーム装置や家庭用ゲーム装置用のゲームソフトに附属させるカードリーダは、ゲームソフトとしての価格の制約から、アーケード型ゲーム装置のカードリーダに比べて非常に低価格で提供する必要がある。しかしながら、従来のカードリーダ、例えば、特許文献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 game apparatus 10 includes a first LCD 11 having a first display screen 11a and a second LCD 12 having a second display screen 12a. The first display screen 11a is a display screen physically different from the second display screen 12a, and is provided with a predetermined gap from the second display screen 12a.

第1表示画面11aの左右両側には、ゲーム音楽や音声を出力するためのスピーカ15a、15bが設けられている。   Speakers 15a and 15b for outputting game music and sound are provided on both the left and right sides of the first display screen 11a.

第2表示画面12aの表面は、タッチパネル13によって覆われている。第2表示画面12aの右側には、プレイヤの右手によって操作可能な位置に、Aボタン14a、Bボタン14b、Xボタン14c、Yボタン14d、スタートボタン14e、セレクトボタン14fが設けられている。第2表示画面12aの左側には、プレイヤの左手によって操作可能な位置に、十字キー14gが設けられている。   The surface of the second display screen 12 a is covered with the touch panel 13. On the right side of the second display screen 12a, an A button 14a, a B button 14b, an X button 14c, a Y button 14d, a start button 14e, and a select button 14f are provided at positions that can be operated by the player's right hand. On the left side of the second display screen 12a, a cross key 14g is provided at a position that can be operated by the left hand of the player.

ゲーム装置10には、タッチパネル13に対する入力を行うためのスタイラス(図示せず)が設けられ、スタイラスはゲーム装置10内に着脱自在に収納されている。   The game apparatus 10 is provided with a stylus (not shown) for inputting to the touch panel 13, and the stylus is detachably accommodated in the game apparatus 10.

タッチパネル13の位置検出精度が高い場合にはスタイラスを利用することが有効であるが、位置検出精度が低い場合にはスタイラスを利用する必要がなく、例えばプレイヤの指によってタッチパネル13の入力を行うことも可能である。   When the position detection accuracy of the touch panel 13 is high, it is effective to use the stylus. However, when the position detection accuracy is low, it is not necessary to use the stylus. For example, the touch panel 13 is input by a player's finger. Is also possible.

また、タッチパネル13は、抵抗膜式、光学式、超音波式、静電容量式、電磁誘導式などのいずれの方式でもよく、特に抵抗膜式が低コストであるため有利である。また、検出方式は、その構成によりマトリクス方式(デジタル)および抵抗値検出方式(アナログ)のいずれであってもかまわない。   Further, the touch panel 13 may be of any type such as a resistive film type, an optical type, an ultrasonic type, a capacitance type, and an electromagnetic induction type, and is particularly advantageous because the resistive film type is low cost. The detection method may be either a matrix method (digital) or a resistance value detection method (analog) depending on the configuration.

ゲーム装置10の第1LCD11側の上端にはコネクタ16が設けられ、ゲームのソフトウエアが記憶されたカートリッジ18が接続される。   A connector 16 is provided at the upper end of the game apparatus 10 on the first LCD 11 side, and a cartridge 18 in which game software is stored is connected.

ゲーム装置10の第2LCD12側の下端にはコネクタ17が設けられ、遊戯カードを読み込むためのカード読取装置19が接続される。   A connector 17 is provided at the lower end of the game apparatus 10 on the second LCD 12 side, and a card reader 19 for reading a game card is connected thereto.

(ゲーム装置の構成)
ゲーム装置10の回路基板20は、ゲームプログラムを実行するためのコンピュータの一例であるCPUコア21等を備える。CPU(中央処理装置)コア21には、WRAM(作業用記憶装置)22、第1GPU(画像処理装置)24、第2GPU26、およびI/F(インターフェイス)回路27が所定のバスを介して電気的に接続される。
(Configuration of game device)
The circuit board 20 of the game apparatus 10 includes a CPU core 21 that is an example of a computer for executing a game program. The CPU (central processing unit) core 21 is electrically connected to a WRAM (working storage device) 22, a first GPU (image processing device) 24, a second GPU 26, and an I / F (interface) circuit 27 via a predetermined bus. Connected to.

第1GPU24と第2GPU26には、座標系を有するメモリがある。   The first GPU 24 and the second GPU 26 have a memory having a coordinate system.

WRAM22は、CPUコア21によって実行されるゲームプログラムや、CPUコア21の演算結果などを一次的に記憶するメモリである。   The WRAM 22 is a memory that temporarily stores a game program executed by the CPU core 21 and a calculation result of the CPU core 21.

第1GPU24は、CPUコア21からの指示に応じて第1LCD11に表示出力するための第1ゲーム画像を第1VRAM(ビデオRAM)23に描画し、描画した当該第1ゲーム画像を第1LCD11の第1表示画面11aに表示させる。   The first GPU 24 draws a first game image to be displayed and output on the first LCD 11 in accordance with an instruction from the CPU core 21 in a first VRAM (video RAM) 23, and the drawn first game image is displayed on the first LCD 11. It is displayed on the display screen 11a.

第2GPU26は、CPUコア21からの指示に応じて第2LCD12に表示出力するための第2ゲーム画像を第2VRAM25に描画し、描画した当該第2ゲーム画像を第2表示画面12aに表示させる。   The second GPU 26 draws a second game image to be displayed and output on the second LCD 12 in accordance with an instruction from the CPU core 21 in the second VRAM 25, and displays the drawn second game image on the second display screen 12a.

I/F回路27は、タッチパネル13、操作スイッチ部14、およびスピーカ15などの外部入出力装置とCPUコア21との間のデータの受け渡しを行う回路である。   The I / F circuit 27 is a circuit that exchanges data between the CPU core 21 and an external input / output device such as the touch panel 13, the operation switch unit 14, and the speaker 15.

タッチパネル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 second VRAM 25, and outputs position coordinate data corresponding to a position input (instructed) by a stylus, a player's finger, or the like. To do.

なお、本実施形態では、一例として第1表示画面11aおよび第2表示画面12aの解像度を、それぞれ192dot×256dotであるとする。また、タッチパネル13の検出精度も第2表示画面12aに対応した192dot×256dotとして説明するが、タッチパネル13の検出精度は表示画面の解像度よりも低いものであってもよい。   In the present embodiment, it is assumed that the resolution of the first display screen 11a and the second display screen 12a is 192 dots × 256 dots, respectively, as an example. Although the detection accuracy of the touch panel 13 is described as 192 dots × 256 dots corresponding to the second display screen 12a, the detection accuracy of the touch panel 13 may be lower than the resolution of the display screen.

さらに、CPUコア21にはコネクタ16、17が電気的に接続されている。コネクタ16にはカートリッジ18が着脱可能に接続され、コネクタ17にはカード読取装置19が着脱可能に接続されている。   Further, connectors 16 and 17 are electrically connected to the CPU core 21. A cartridge 18 is detachably connected to the connector 16, and a card reader 19 is detachably connected to the connector 17.

カートリッジ18には、ゲームプログラムを記憶するROM18a、バックアップデータを書き換え可能に記憶するRAM18bが設けられている。   The cartridge 18 is provided with a ROM 18a for storing game programs and a RAM 18b for storing backup data in a rewritable manner.

カートリッジ18のROM18aに記憶されたゲームプログラムは、WRAM22にロードされ、WRAM22にロードされたゲームプログラムがCPUコア21によって実行される。   The game program stored in the ROM 18 a of the cartridge 18 is loaded into the WRAM 22, and the game program loaded into the WRAM 22 is executed by the CPU core 21.

(遊戯カード)
本実施形態のゲーム装置で用いる遊戯カードの一例を図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 & makeup card 30, and FIG. 3B shows the back surface of the hair & makeup card 30.

図3(a)に示すように、ヘア&メイクアップカード30の表面左上部には、カードの属性を表す属性欄31が設けられている。図3(a)では、属性欄31に「H」というデザイン文字がハート中に描かれている。   As shown in FIG. 3 (a), an attribute column 31 representing the attribute of the card is provided in the upper left part of the front surface of the hair & makeup card 30. In FIG. 3A, a design letter “H” is drawn in the heart in the attribute column 31.

ヘア&メイクアップカード30の表面上縁部には、カードの属性名が記された属性名表記欄32が設けられている。図3(a)では、属性名称欄32に「ヘア&メイクアップカード」と記されている。   At the upper edge of the surface of the hair & makeup card 30 is provided an attribute name notation field 32 in which the attribute name of the card is written. In FIG. 3A, “Hair & Makeup Card” is written in the attribute name column 32.

ヘア&メイクアップカード30の表面属性名表記欄32の右横には、3桁−3桁の数字のアイテム番号が記されたアイテム番号欄33が設けられている。図3(a)では、アイテム番号欄33に「001−04A」と記されている。   On the right side of the surface attribute name notation column 32 of the hair & makeup card 30 is provided an item number column 33 in which item numbers of three to three digits are written. In FIG. 3A, “001-04A” is written in the item number column 33.

ヘア&メイクアップカード30の表面左縁部には、ゲーム装置10のカード読取装置19によるカード読取のためのバーコードが描かれたバーコード欄34aが設けられている。バーコード欄34aのバーコードはカード30の左縁にバーが接している。   A bar code field 34 a on which a bar code for card reading by the card reading device 19 of the game apparatus 10 is provided is provided on the left edge of the front surface of the hair & makeup card 30. The bar code in the bar code column 34 a is in contact with the left edge of the card 30.

ヘア&メイクアップカード30の表面中央には、カードのアイテム番号に対応した顔部分が描かれる肖像画欄35と、コメントが記されたコメント欄36が設けられている。図3(a)では、肖像画欄35に「さらさらロングヘア」の絵柄が描かれ、コメント欄36に「どんなコーデにも合うていばんヘアだよね。ナチュラルメイクでせいそにきめるよ。」と記されている。   In the center of the surface of the hair & makeup card 30, there are provided a portrait field 35 in which a face corresponding to the item number of the card is drawn and a comment field 36 in which comments are written. In FIG. 3 (a), the portrait field 35 has a pattern of “Sarasara Long Hair” and the comment field 36 says “Tabane hair that suits any coordination. Yes.

ヘア&メイクアップカード30の表面右上部のアイテム番号欄33の下部には、カードのアイテム番号に対応した名称が描かれる名称欄37aが設けられている。図3(a)では、名称欄37aに「さらさらロング」と記されている。   A name field 37 a in which a name corresponding to the item number of the card is drawn is provided below the item number field 33 in the upper right part of the front surface of the hair & makeup card 30. In FIG. 3A, “Sara Sara Long” is written in the name column 37a.

ヘア&メイクアップカード30の表面下縁部には、カードのアイテム番号に対応した名称が描かれる名称欄37bが設けられている。図3(a)では、名称欄37bに「SARASARA LONG」と記されている。   A name field 37 b in which a name corresponding to the item number of the card is drawn is provided on the lower edge of the surface of the hair & makeup card 30. In FIG. 3A, “SARASARA LONG” is written in the name column 37b.

ヘア&メイクアップカード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 & makeup card 30, there is provided a game name field 38a in which the game name of this game is written. In FIG. 3B, “Osharemajo Love & Berry” is written in the game name column 38a. In the overseas version, “LOVE AND BERRY Dress up and Dance!” Is written in the play name column 38a.

図3(b)に示すように、ヘア&メイクアップカード30の裏面右縁部には、ゲーム装置10のカード読取装置19によるカード読取のためのバーコードが描かれたバーコード欄34bが設けられている。このバーコード欄34bは、ヘア&メイクアップカード30の表面のバーコード欄34aと対応していて、同じバーコードの長さ、幅、内容は同じである。バーコード欄34bのバーコードはカード30の左縁にバーが接している。   As shown in FIG. 3B, a bar code field 34 b on which a bar code for card reading by the card reading device 19 of the game apparatus 10 is provided is provided on the right edge of the back surface of the hair & makeup card 30. It has been. The barcode column 34b corresponds to the barcode column 34a on the surface of the hair & makeup card 30, and the same barcode has the same length, width, and content. The bar code in the bar code column 34 b is in contact with the left edge of the card 30.

ヘア&メイクアップカード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 & makeup card 30, there is provided a game name column 38b in which the game name of this game is written. In the center of the back side of the hair & makeup card 30 is provided a portrait field 39 on which a representative portrait of this game is drawn. In FIG. 3B, “Fashion Witch Love and Berry” (registered trademark) is written in the game name column 38 b, and a uniform portrait is drawn in the portrait column 39. In the overseas version, “LOVE AND BERRY Dress up and Dance!” Is written in the play name column 38b.

なお、図3では、表面のバーコード欄34aや裏面のバーコード欄34bのように、バーコード表示専用の領域を設け、この領域内にバーコードを印刷している。このバーコードは、黒色の太線又は細線(バー)が所定の間隔(スペース)を挟んで配置されている。本実施形態では、表面のバーコード欄34aや裏面のバーコード欄34bの地色を白色とし、それに黒色のバーを印刷している。   In FIG. 3, an area dedicated to barcode display is provided as in the barcode field 34a on the front surface and the barcode field 34b on the back surface, and the barcode is printed in this area. In this barcode, black thick lines or thin lines (bars) are arranged with a predetermined interval (space) therebetween. In the present embodiment, the ground color of the barcode column 34a on the front surface and the barcode column 34b on the back surface is white, and a black bar is printed thereon.

本実施形態では、バーは黒色でスペースは白色であったが、バーとスペースが識別することができれば如何なる色の組合せでもよい。スペースの「白色」としては、白に限定されず発光素子の色を反射する色であればよいし、バーの「黒色」としては、黒に限定されず発光素子の色を吸収する色であればよい。   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 barcode field 34a on the front surface and the barcode field 34b on the back surface may be light blue, and the bar may be dark red.

また、スペースの「白色」や、バーの「黒色」は、単色でなくてもよい。例えば、グラデーションがかかった色や絵柄であってもよい。   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 barcode field 34a on the front surface and the barcode field 34b on the back surface, and the area within the boundary line is an area dedicated to barcode display. Instead of describing the boundary line, a pattern such as a pattern or a photograph may be described on the entire front or back surface of the game card, and a bar may be printed on the pattern.

(カード読取装置の構成)
本実施形態のカード読取装置について図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 card reader 19 has a groove 19 a for reading the game card 30. Inside the groove 19a, a light emitting element and a light receiving element for optically reading the barcodes described in the bar code fields 34a and 34b of the game card 30 are provided. The player inserts the bar code fields 34a and 34b of the game card 30 into the groove 19a and moves in the horizontal direction to read the bar code described in the bar code field 34b.

なお、バーコードは、黒色の太線又は細線が所定の間隔を挟んで配置されている。通常、黒色の線のことをバー、隣接するバー間の間隔のことをスペースと読んでいるが、本実施形態では、バーのことを黒バー、スペースのことを白バーと呼ぶこととする。   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 card reader 19 is shown in FIG.

カード読取装置19の溝19a内側に、遊戯カード30のバーコード欄34a、34bを照射するための発光素子40と、遊戯カード30のバーコード欄34a、34bからの反射光を受光する受光素子42とが設けられている。   Inside the groove 19a of the card reader 19, a light emitting element 40 for irradiating the bar code fields 34a, 34b of the game card 30 and a light receiving element 42 for receiving the reflected light from the bar code fields 34a, 34b of the game card 30. And are provided.

受光素子42にはバンドパスフィルタ44が接続されている。バンドパスフィルタ44は、受光素子42から出力される受光信号を濾波し、その直流成分や不要な周波数成分をカットする。   A band pass filter 44 is connected to the light receiving element 42. The band pass filter 44 filters the received light signal output from the light receiving element 42 and cuts the DC component and unnecessary frequency components.

バンドパスフィルタ44には増幅回路46が接続されている。増幅回路46は、バンドパスフィルタ44により濾波された受光信号を増幅する。   An amplifying circuit 46 is connected to the band pass filter 44. The amplification circuit 46 amplifies the light reception signal filtered by the band pass filter 44.

増幅回路46には2値化処理部(幅測定部)48が接続されている。   A binarization processing unit (width measuring unit) 48 is connected to the amplifier circuit 46.

2値化処理部(幅測定部)48には、黒用バーカウンタ50A、白用バーカウンタ50Bと、黒用終了フラグ51A、白用終了フラグ51Bが設けられている。   The binarization processing unit (width measurement unit) 48 is provided with a black bar counter 50A, a white bar counter 50B, a black end flag 51A, and a white end flag 51B.

2値化処理部(幅測定部)48は、増幅回路46から出力される受光信号を所定のしきい値と比較して、所定のしきい値よりも小さいときには「黒」と判断し、所定のしきい値よりも大きいときには「白」と判断する。   The binarization processing unit (width measurement unit) 48 compares the light reception signal output from the amplifier circuit 46 with a predetermined threshold value, and determines that the signal is “black” when the signal is smaller than the predetermined threshold value. When it is larger than the threshold value, it is judged as “white”.

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 black bar counter 50A is incremented. If it is determined that the light reception signal is white, the white bar counter 50B is incremented.

走査された遊戯カード30のバーコードを読み取り、ひとつのバーの読み取りが終了したと判断されると、黒用終了フラグ51A又は白用終了フラグ51Bにフラグを立てる。例えば、黒の受光信号が連続した後に、所定時間だけ白の受光信号が連続すると、黒バーの測定が完了したと判断し、黒用終了フラグ51Aにフラグを立てる。また、白の受光信号が連続した後に、所定時間だけ黒の受光信号が連続すると、白バーの測定が完了したと判断し、白用終了フラグ51Bにフラグを立てる。   When the bar code of the scanned game card 30 is read and it is determined that the reading of one bar is completed, the black end flag 51A or the white end flag 51B is set. For example, when the white light reception signal continues for a predetermined time after the black light reception signal continues, it is determined that the measurement of the black bar is completed, and the black end flag 51A is set. If the black light reception signal continues for a predetermined time after the white light reception signal continues, it is determined that the measurement of the white bar is completed, and the white end flag 51B is set.

黒用終了フラグ51Aにフラグが立ったときの黒用バーカウンタ50Aのカウンタ値が、受光素子42により黒が受光された時間、すなわち、バーコードの黒バーの幅に比例した値となる。   The counter value of the black bar counter 50A when the black end flag 51A is raised becomes a value proportional to the time when the black light is received by the light receiving element 42, that is, the width of the black bar of the barcode.

白用終了フラグ51Bにフラグが立ったときの白用バーカウンタ50Bのカウンタ値が、受光素子42により白が受光された時間、すなわち、バーコードの白バーの幅に比例した値となる。   The counter value of the white bar counter 50B when the white end flag 51B is set is a value proportional to the time when the white light is received by the light receiving element 42, that is, the width of the white bar of the barcode.

なお、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 thinness determination unit 52 is connected to the binarization processing unit (width measurement unit) 48. The thin determination section 52 is provided with a black data memory 54A and a white data memory 54B.

細太判定部52は、黒用バーカウンタ50Aと白用バーカウンタ50Bに基づいて、現在読み取っている黒バー又は白バーが、太いバーであるか細いバーである判断する。黒バーの判断結果は、黒用データメモリ54Aに記憶され、白バーの判定結果は、白用データメモリ54Bに記憶される。   Based on the black bar counter 50A and the white bar counter 50B, the thin / thickness determination unit 52 determines whether the currently read black bar or white bar is a thick bar or a thin bar. The black bar determination result is stored in the black data memory 54A, and the white bar determination result is stored in the white data memory 54B.

走査された遊戯カード30のバーコードを読み取ると、黒用データメモリ54Aには、黒バーが細いか太いかの情報が読み取ったバーの順番に記憶され、白用データメモリ54Bには、白バーが細いか太いかの情報が読み取ったバーの順番に記憶される。黒バー及び白バーについて、例えば、「細い→太い→細い→細い→・・・・」というような情報が記憶される。なお、細太判定部52の処理の詳細については後述する。   When the bar code of the scanned game card 30 is read, information on whether the black bar is thin or thick is stored in the black data memory 54A in the order of the read bars, and the white data memory 54B stores the white bar. Information on whether thin or thick is stored in the order of bars read. For the black bar and the white bar, for example, information such as “thin → thick → thin → thin →...” Is stored. Details of the processing of the thinness determination unit 52 will be described later.

細太判定部52には文字コード化部56が接続されている。文字コード化部56は、CODE39等のコード化規則により定められたキャラクタのパターンを参照して、黒データメモリ54Aに記憶された黒バーの細いバーと太いバーの並びによるパターンと、白データメモリ54Bに記憶された白バーの細いバーと太いバーの並びによるパターンとに基づき、読み取ったバーコードが示す文字コードを決定する。文字コード化部56により決定された文字コードは文字コードメモリ58に記憶される。   A character encoding unit 56 is connected to the thin determination unit 52. The character encoding unit 56 refers to a character pattern determined by a coding rule such as CODE 39, and stores a pattern of thin black bars and thick bars stored in the black data memory 54A, and a white data memory. The character code indicated by the read bar code is determined based on the thin bar of white bar and the pattern formed by arranging the thick bar stored in 54B. The character code determined by the character encoding unit 56 is stored in the character code memory 58.

(カード読取処理)
本実施形態のカード読取装置によるカード読取処理の概略について図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 bar code fields 34a and 34b of the game card 30 into the groove 19a of the bar code reader 19, and moves in the horizontal direction to read the bar code described in the bar code field 34b.

バーコード読取装置19では、発光素子40により遊戯カード30のバーコード欄34a、34bを照射し、遊戯カード30のバーコード欄34a、34bからの反射光を受光素子42により受光する。   In the bar code reader 19, the bar code fields 34 a and 34 b of the game card 30 are irradiated by the light emitting element 40, and the reflected light from the bar code fields 34 a and 34 b of the game card 30 is received by the light receiving element 42.

受光素子42からの受光信号は、バンドパスフィルタ44により濾波され、増幅回路46により増幅され、2値化処理部(幅測定部)48により2値化される。2値化処理部(幅測定部)48は、クロック信号に基づく所定周期で受光信号が黒であるか白であるかを判断し、受光信号が黒であると判断されると、黒用バーカウンタ50Aがインクリメントされ、受光信号が白であると判断されると、白用バーカウンタ50Bがインクリメントされる。   The light reception signal from the light receiving element 42 is filtered by the band pass filter 44, amplified by the amplification circuit 46, and binarized by the binarization processing unit (width measurement unit) 48. The binarization processing unit (width measurement unit) 48 determines whether the light reception signal is black or white in a predetermined cycle based on the clock signal, and if it is determined that the light reception signal is black, the black bar When the counter 50A is incremented and it is determined that the light reception signal is white, the white bar counter 50B is incremented.

まず、図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 black end flag 51A or the white end flag 51B (step S10).

黒用終了フラグ51A又は白用終了フラグ51Bにバー終了フラグが立った場合には、細太判定部52により細太判定処理を行い(ステップS20)、その後、細太判定処理の結果に基づいて文字コード化部56により文字コード化処理を行う(ステップS30)。これら細太判定処理及び文字コード化処理については後述する。   When the bar end flag is set in the black end flag 51A or the white end flag 51B, the thinness determination unit 52 performs the thinness determination processing (step S20), and then, based on the result of the thinness determination processing. Character encoding processing is performed by the character encoding unit 56 (step S30). The thinness determination process and the character encoding process will be described later.

黒用終了フラグ51A又は白用終了フラグ51Bにバー終了フラグが立っていない場合には、続いて、黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしていないか判定する(ステップS11)。   If the bar end flag is not set in the black end flag 51A or the white end flag 51B, it is subsequently determined whether the black bar counter 50A or the white bar counter 50B has overflowed (step S11).

遊戯カード30ではない白紙等が溝19a差し込まれている場合や、遊戯カード30が差し込まれているが動かされず停止している場合等には、黒又は白の受光信号が入力し続けて黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローする。この場合にはタイムアウト処理してバーコード読み取りをリセットする必要がある。   When a blank sheet or the like that is not the game card 30 is inserted into the groove 19a, or when the game card 30 is inserted but stopped without being moved, the black or white light reception signal is continuously input for black. The bar counter 50A or the white bar counter 50B overflows. In this case, it is necessary to reset the bar code reading by a timeout process.

そこで、黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしている場合には、黒用バーカウンタ50A及び白用バーカウンタ50Bと2値化処理部48をクリアして、バーコード読み取り待ち状態にして(ステップS12)、ステップS10に戻る。   Therefore, when the black bar counter 50A or the white bar counter 50B overflows, the black bar counter 50A, the white bar counter 50B and the binarization processing unit 48 are cleared, and the bar code reading waiting state is established. (Step S12), the process returns to Step S10.

黒用バーカウンタ50A又は白用バーカウンタ50Bがオーバーフローしていない場合には、通常通り、黒用バーカウンタ50A又は白用バーカウンタ50Bのカウント値をインクリメントして(ステップS13)、ステップS10に戻る。   If the black bar counter 50A or the white bar counter 50B does not overflow, the count value of the black bar counter 50A or the white bar counter 50B is incremented as usual (step S13), and the process returns to step S10. .

(細太判定処理)
次に、本実施形態のカード読取処理における細太判定処理について図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 black bar counter 50A or the white bar counter 50B is stored. The black data memory 54A or the white data memory 54B stores whether the bar measured immediately before is a thin bar or a thick bar. It should be noted that nothing is stored when the thinness measurement of the bar measured immediately before has not been made yet.

まず、直前に測定されたバーが太バーであったか判断する(ステップ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 light receiving element 42, FIG. 8C shows the output signal of the bandpass filter 44, and FIG. Indicates an output signal of the amplifier circuit 46.

図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 light receiving element 42 is saturated as shown in FIG. 8B. When the output signal of the light reception signal 42 is saturated, as shown in FIG. 8C, the output signal of the bandpass filter 44 is cut back to the reference potential with the DC component cut off.

このため、次の黒バーの信号が入力されたときに、一点鎖線で示す通常の信号波形よりも早いタイミングで、バンドパスフィルタ44の出力信号が黒バーの閾値信号を超えてしまう。したがって、右から1番目の黒バーの幅は通常よりも太く測定され、右から2番目の白バーの幅は通常よりも細く測定される。   For this reason, when the next black bar signal is input, the output signal of the band-pass filter 44 exceeds the black bar threshold signal at a timing earlier than the normal signal waveform indicated by the one-dot chain line. Therefore, the width of the first black bar from the right is measured wider than usual, and the width of the second white bar from the right is measured thinner than usual.

そこで、本願発明者は、今測定したバーの幅(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 CODE 39 that is a barcode standard.

前述したように、文字コード化部56は、CODE39のコード化規則により定められたキャラクタのパターンを参照して、黒データメモリ54Aに記憶された黒バーの細いバーと太いバーの並びによるパターンと、白データメモリ54Bに記憶された白バーの細いバーと太いバーの並びによるパターンとに基づき、読み取ったバーコードが示す文字コードを決定する。   As described above, the character encoding unit 56 refers to the character pattern defined by the CODE 39 encoding rule, and stores the pattern of thin black bars and thick bars stored in the black data memory 54A. The character code indicated by the read barcode is determined on the basis of the pattern of thin white bars and thick bars stored in the white data memory 54B.

CODE39は、図11に示すように、バーコードの最初と最後に*(アスタリスク)のコードを設け、その間に必要数(図11の例では2個)のキャラクタのデータを挿入する。*(アスタリスク)のコードは、図11に示すように決まっているので、最初の白バーと2番目の白バーを比較し、最初の黒バーと2番目の黒バーとを比較することにより、遊戯カード30の走査方向を確定することができる。   As shown in FIG. 11, the CODE 39 provides * (asterisk) codes at the beginning and end of the bar code, and inserts the required number of character data (two in the example of FIG. 11) between them. * Since the code of (asterisk) is determined as shown in FIG. 11, by comparing the first white bar with the second white bar and comparing the first black bar with the second black bar, The scanning direction of the game card 30 can be determined.

そこで、まず、最初の白バーと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 character code memory 58 is converted into an ASCII code and output (step S34).

なお、本実施形態では、バーコード規格として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.

本発明の一実施形態によるゲーム装置の外観を示す図である。It is a figure which shows the external appearance of the game device by one Embodiment of this invention. 本発明の一実施形態によるゲーム装置のブロック図である。It is a block diagram of the game device by one Embodiment of this invention. 本発明の一実施形態によるゲーム装置で用いる遊戯カードの一具体例であるヘア&メイクアップカードを示す図である。It is a figure which shows the hair & makeup card | curd which is a specific example of the game card used with the game device by one Embodiment of this invention. 本発明の一実施形態によるカード読取装置のブロック図である。It is a block diagram of the card reader by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理の概略を示すフローチャートである。It is a flowchart which shows the outline of the card | curd reading process by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理における細太判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the thinness determination process in the card | curd reading process by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理における細太判定処理での補正処理の説明図である。It is explanatory drawing of the correction process in the thinness determination process in the card | curd reading process by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理における細太判定処理の原理を説明するための図である。It is a figure for demonstrating the principle of the thinness determination process in the card | curd reading process by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理における細太判定処理の説明図である。It is explanatory drawing of the thinness determination process in the card | curd reading process by one Embodiment of this invention. 本発明の一実施形態によるカード読取処理における文字コード化処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the character encoding process in the card | curd reading process by one Embodiment of this invention. バーコード規格であるCODE39の説明図である。It is explanatory drawing of CODE39 which is a barcode standard.

符号の説明Explanation of symbols

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 ... Game device 11 ... First LCD
11a ... 1st display screen 12 ... 2nd LCD
12a ... second display screen 13 ... touch panel 14 ... operation button 14a ... A button 14b ... B button 14c ... X button 14d ... Y button 14e ... start button 14f ... select button 14g ... cross keys 15, 15a, 15b ... speaker 16, 17 ... Connector 18 ... Game cartridge 18a ... ROM
18b ... RAM
DESCRIPTION OF SYMBOLS 19 ... Card reader 19a ... Groove 20 ... Circuit board 21 ... CPU core 22 ... WRAM (working storage device)
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) circuit 30 ... hair & makeup card 31 ... attribute column 32 ... attribute name notation column 33 ... item number column 34a, 34b ... barcode column 35 ... portrait column 36 ... comment column 37a, 37b ... Name field 38a ... Game name field 39 ... Portrait field 40 ... Light emitting element 42 ... Light receiving element 44 ... Band pass filter 46 ... Amplifying circuit 48 ... Binarization processing section (width measuring section)
50A ... Black bar counter 50B ... White bar counter 51A ... Black end flag 51B ... White end flag 52 ... Thin determination unit 54A ... Black data memory 54B ... White data memory 56 ... Character encoding unit 58 ... Character code memory

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.
請求項1記載のカード読取装置において、
定数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.
請求項3記載のカード読取装置において、
定数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.
請求項1乃至4のいずれか1項に記載のカード読取装置において、
前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、
前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、
前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、
前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定する
ことを特徴とするカード読取装置。
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
複数のバーからなるバーコードの各バーの幅を順次測定する第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のバーの太さは変化しないと判定する
ことを特徴とするバーコード読取方法。
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.
請求項6記載のバーコード読取方法において、
定数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.
複数のバーからなるバーコードの各バーの幅を順次測定する第1のステップと、
前記測定された各バーの幅に基づいて、各バーが細いバーか太いバーかを判定する第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:
請求項8記載のバーコード読取方法において、
定数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.
請求項6乃至9のいずれか1項に記載のバーコード読取方法において、
前記バーコードのバーは、光を吸収する色のバー又は光を反射する色のバーであり、
前記幅測定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーの幅を測定し、
前記細太判定手段は、前記バーコードの光を吸収する色のバー又は光を反射する色のバーが細いバーか太いバーかを判定し、
前記文字コード化手段は、前記バーコードの光を吸収する色のバーの細いバーと太いバーの並びによるパターン、又は、前記バーコードの光を反射する色のバーの細いバーと太いバーの並びによるパターンに基づいて、文字コードを決定する
ことを特徴とするカード読取装置。
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
コンピュータに、請求項6乃至10のいずれか1項に記載のバーコード読取方法における前記第1のステップと、前記第2のステップと、前記第3のステップとを実行させるためのプログラム。   A program for causing a computer to execute the first step, the second step, and the third step in the barcode reading method according to any one of claims 6 to 10. コンピュータに、請求項6乃至10のいずれか1項に記載のバーコード読取方法における前記第1のステップと、前記第2のステップと、前記第3のステップとを実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。   A program for causing a computer to execute the first step, the second step, and the third step in the barcode reading method according to any one of claims 6 to 10 is recorded. Computer-readable recording medium.
JP2006301248A 2006-11-07 2006-11-07 Card reader and bar code reading method Withdrawn JP2008117249A (en)

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)

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