JP2017184800A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2017184800A
JP2017184800A JP2016073800A JP2016073800A JP2017184800A JP 2017184800 A JP2017184800 A JP 2017184800A JP 2016073800 A JP2016073800 A JP 2016073800A JP 2016073800 A JP2016073800 A JP 2016073800A JP 2017184800 A JP2017184800 A JP 2017184800A
Authority
JP
Japan
Prior art keywords
image
circuit
medal
image data
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016073800A
Other languages
Japanese (ja)
Other versions
JP6604887B2 (en
Inventor
徹 菅原
Toru Sugawara
徹 菅原
洋一 小山
Yoichi Koyama
洋一 小山
啓文 鶴田
Takafumi Tsuruta
啓文 鶴田
佐藤 浩二
Koji Sato
浩二 佐藤
朋典 秋谷
Tomonori Akitani
朋典 秋谷
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.)
Universal Entertainment Corp
Original Assignee
Universal Entertainment 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 Universal Entertainment Corp filed Critical Universal Entertainment Corp
Priority to JP2016073800A priority Critical patent/JP6604887B2/en
Publication of JP2017184800A publication Critical patent/JP2017184800A/en
Application granted granted Critical
Publication of JP6604887B2 publication Critical patent/JP6604887B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a game machine capable of detecting a fraudulent act in which a game is played by misunderstanding that a normal game medium is used.SOLUTION: A token selector 201 comprises: a token rail 210 for forming a passage through which a token passes; a CMOS image sensor 232 for capturing an image of a token passing through the passage; and a control LSI 234 for detecting whether the token is a normal token or not on the basis of the image data of the captured token. The control LSI 234 includes an image recognition DSP circuit 242 and an image recognition accelerator circuit 249, and rotation integration processing and marking determination processing on the image data of the captured token are performed by these circuits. In addition, the image recognition accelerator circuit 249 performs coordinate conversion of the image data, referring to a conversion parameter 280 in which processing contents of the coordinate conversion are designated.SELECTED DRAWING: Figure 23

Description

本発明は、遊技機に関する。   The present invention relates to a gaming machine.

従来、複数の図柄がそれぞれの表面に配された複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a game called pachislot, comprising a plurality of reels each having a plurality of symbols arranged on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit. The machine is known. The start switch detects that the start lever has been operated by the player after a game medium such as a medal has been inserted into the gaming machine (hereinafter also referred to as “start operation”), and starts the rotation of all reels. Output the requested signal. The stop switch detects that a stop button provided for each reel has been pressed by the player (hereinafter also referred to as “stop operation”), and outputs a signal requesting the rotation of the corresponding reel to stop. To do. The stepping motor transmits the driving force to the corresponding reel. Further, the control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せが表示されると、その図柄の組合せに対応する特典が遊技者に付与される。   In such a gaming machine, when a start operation is detected, lottery processing using random numbers (hereinafter referred to as “internal lottery processing”) is performed on the program, and the result of the lottery (hereinafter referred to as “internal winning combination”). And the rotation of the reel is stopped based on the timing of the stop operation. Then, when the rotation of all the reels is stopped and the symbol combination related to the winning is displayed, a privilege corresponding to the symbol combination is given to the player.

また、このような遊技機には、メダル投入口の先に投入されたメダルを検知するためのメダルセレクタが設けられている。また、このメダルセレクタに対しては、メダル投入口に適正なメダル(正規メダル)でないメダル(不正メダル)を投入したり、器具をメダル投入口に挿入したりして、遊技機に正規メダルが投入されたと誤認させて遊技が行われる不正行為に対する対策がとられている。   In addition, such a gaming machine is provided with a medal selector for detecting a medal inserted at the end of the medal slot. In addition, for this medal selector, a medal (illegal medal) that is not a proper medal (regular medal) is inserted into the medal insertion slot, or a device is inserted into the medal insertion slot, so that a regular medal is inserted into the gaming machine. Measures are taken against fraudulent acts in which a game is played by misunderstanding that it has been inserted.

例えば、特許文献1には、メダル通路に2個のメダル検知用の近接センサを設け、各近接センサの出力に基づいてメダル通路を遊技用のメダルが通過したかどうかを判断することで、板状体のような器具が用いられた不正行為を検知するスロットマシンが記載されている。   For example, in Patent Document 1, two medal detection proximity sensors are provided in a medal passage, and it is determined whether a game medal has passed through the medal passage based on the output of each proximity sensor. A slot machine is described that detects fraud using a tool such as a body.

他方、特許文献2には、入力した画像データに対して歪み補正処理を施して出力画像を出力する画像処理装置が開示されており、この画像処理装置では、メモリ間のデータ転送を制御するDMAC(ダイレクトメモリアクセスコントローラ(Direct Memory Access Controller))を用いて、バスを介したデータ転送が、CPUの代わりに、DMACからの制御信号に応じて行われる。   On the other hand, Patent Document 2 discloses an image processing apparatus that performs distortion correction processing on input image data and outputs an output image. In this image processing apparatus, a DMAC that controls data transfer between memories is disclosed. Using (Direct Memory Access Controller), data transfer via the bus is performed in response to a control signal from the DMAC instead of the CPU.

また、特許文献3には、画像データを記憶する記憶回路と歪み補正処理を行う処理回路との間で、上述のDMACを用いてデータ転送を行うデータ転送装置が開示されており、このデータ転送装置では、記憶回路と、処理回路内のキャッシュメモリとの間のバスを介したデータ転送が、CPUの代わりに、DMACからの制御信号に応じて行われる。   Patent Document 3 discloses a data transfer apparatus that performs data transfer using the above-described DMAC between a storage circuit that stores image data and a processing circuit that performs distortion correction processing. In the apparatus, data transfer via a bus between the storage circuit and the cache memory in the processing circuit is performed in response to a control signal from the DMAC instead of the CPU.

特開2002−342814号公報JP 2002-342814 A 特開2013−186624号公報JP 2013-186624 A 特開2013−186705号公報JP 2013-186705 A

しかしながら、特許文献1に記載されたスロットマシンでは、板状体以外の様々な形状の不正行為用器具をメダル投入口に挿入してメダルセレクタの計数機能を不正に動作させることで、メダルを投入しているように見せかけて多数のクレジットを得る不正行為や、不正メダルを用いて行われる不正行為を検知することができない。   However, in the slot machine described in Patent Document 1, medals are inserted by illegally operating the counting function of the medal selector by inserting various shapes of fraudulent instruments other than plates into the medal slot. It is impossible to detect fraudulent acts that seem to be performed and obtain a large number of credits, or fraudulent acts that are performed using illegal medals.

例えば、このスロットマシンが設置されるホールで貸し出される貸出単価が1枚20円のメダルと1枚5円のメダルとが同径で色や刻印(模様)のみ異なる場合、このスロットマシンでは、これらを判別することができず、低賭け遊技機(いわゆる、5スロ)で取得したメダルを通常の遊技機(いわゆる、20スロ)で使用するといった不正遊技を行う者がいるために、遊技店で被害が発生している。   For example, if the lending unit loaned in the hall where this slot machine is installed is a medals with 20 yen per piece and medals with 5 yen per piece having the same diameter and only different colors and stamps (patterns), Can not be discriminated, and there are those who perform illegal games such as using medals obtained with low betting game machines (so-called 5 slots) with normal gaming machines (so-called 20 slots), Damage has occurred.

また、特許文献1に記載されたスロットマシンでは、遊技機が設置されているホールで貸し出されたメダルと、別のホールで貸し出されたメダルや中古機販売店で購入した遊技機に附属しているメダル、または、偽造メダル(メダルに見せかけた器具を含む)等とが同径で色や刻印(模様)のみ異なる場合、これらを判別することができない。このため、正規メダル以外のメダル(不正メダル)を用いて遊技を行う不正行為を検知(検出)することが困難だった。   In addition, the slot machine described in Patent Document 1 is attached to a medal lent out in a hall in which a gaming machine is installed, a medal lent out in another hall, or a gaming machine purchased at a used machine dealer. When a medal or a counterfeit medal (including an instrument pretending to be a medal) is the same diameter and only differs in color or stamp (pattern), these cannot be discriminated. For this reason, it has been difficult to detect (detect) an illegal act of playing a game using medals other than regular medals (unauthorized medals).

したがって、特許文献1に記載されたスロットマシンのような、通常のセンサを用いた従来技術での不正判定では、上述した様々な不正行為に対応できず、その効果は限定的なものとなっている。   Therefore, the fraud determination in the prior art using a normal sensor, such as the slot machine described in Patent Document 1, cannot cope with the various frauds described above, and the effect is limited. Yes.

さらに、こうしたメダル等の遊技媒体についての不正判定を画像処理によって行おうとする場合は、処理時間の問題が生ずる。すなわち、高度に模倣された偽造メダル等について精度の高い不正判定を行う場合、スロットマシン等に投入されたメダルを高解像度で撮像し、撮像されたそれぞれの画素データについて複数の画像処理を行う必要があり、高性能のCPUや画像処理回路を用いた場合であっても、当該不正判定にはかなり長い時間を要する。   Furthermore, when it is attempted to perform fraud determination on a game medium such as a medal by image processing, there is a problem of processing time. In other words, when performing highly accurate fraud determination for highly imitated counterfeit medals, etc., it is necessary to image medals inserted into a slot machine or the like with high resolution, and to perform multiple image processing for each captured pixel data Even if a high-performance CPU or image processing circuit is used, the fraud determination requires a considerably long time.

また、メダル等の遊技媒体は、通常、スロットマシン等に連続的に投入されるため、上述したような、画像処理による不正判定を、投入されたメダルのそれぞれに対してリアルタイムに行うことは非常に困難である。   In addition, since game media such as medals are normally continuously inserted into a slot machine or the like, it is very difficult to perform fraud determination by image processing as described above on each of the inserted medals in real time. It is difficult to.

こうした遊技媒体に関する画像処理による不正判定の時間短縮に関連し、様々なアプローチが検討されているが、特許文献2、及び特許文献3に記載されているような、DMA転送を利用して処理時間の短縮を実現した回路を含む遊技機については、これまでに提案されていない。   Various approaches are being considered in connection with shortening the time of fraud determination by image processing relating to such game media. However, the processing time using DMA transfer as described in Patent Document 2 and Patent Document 3 is considered. A gaming machine including a circuit that realizes shortening of the above has not been proposed so far.

さらに、画像処理によって遊技媒体の不正判定を行う回路について、製造コストやセキュリティー面での優位性を備えるとともに、DMA転送を採用して処理時間を短縮した回路を含む遊技機も、これまでに提案されていない。   In addition, a game machine including a circuit that performs an illegal determination of a game medium by image processing has advantages in terms of manufacturing cost and security, and includes a circuit that uses DMA transfer to reduce processing time. It has not been.

また、遊技媒体の不正判定のための画像処理において実行される座標変換の処理内容が変換パラメータによって指定されるような、遊技媒体の不正判定を行う回路は、これまでに提案されていない。
In addition, no circuit has been proposed so far for determining whether a game medium is fraudulent such that the content of coordinate transformation executed in image processing for determining whether the game medium is fraudulent is specified by a conversion parameter.

本発明は、上記課題を解決するためになされたものであり、本発明の目的は、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為を検知することができる遊技機を提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to detect an illegal act of playing a game by misidentifying that a regular gaming medium is used in the gaming machine. It is to provide a gaming machine.

上記目的を達成するために、本発明の第1実施態様では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記第1記憶手段に記憶し、
前記座標変換の処理内容は、変換パラメータ(例えば、変換パラメータ280)によって指定され、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記特徴画像生成手段における前記画像処理後の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われる。
In order to achieve the above object, the first embodiment of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 249, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
Image data relating to the image data after the format conversion is acquired from the first storage means, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is converted into the first data. Memorize it in the memory means,
The processing content of the coordinate transformation is specified by a transformation parameter (for example, transformation parameter 280),
The game medium determination means further includes
Direct transfer control means for controlling direct transfer of data (for example, DMAC 252),
At least one of storage in the first storage unit of the image data after the format conversion in the conversion unit, and storage in the first storage unit of the image data after the image processing in the feature image generation unit, This is done by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, by changing the conversion parameter, the content of the coordinate conversion process can be changed as appropriate. Furthermore, since the writing and reading of the image data with respect to the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

本発明の第2実施態様は、第1実施態様において、以下のような構成を有する。
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
前記変換パラメータを記憶する第2記憶手段(例えば、メモリ274)を備え、
前記第2記憶手段から取得された前記変換パラメータに基づいて前記座標変換を行うよう構成される。
The second embodiment of the present invention has the following configuration in the first embodiment.
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (for example, a memory 274) for storing the conversion parameter;
The coordinate conversion is performed based on the conversion parameter acquired from the second storage unit.

本発明のこのような構成によって、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, when image processing including coordinate conversion is performed in the feature image generation means, conversion parameters can be acquired by accessing the memory in the circuit, and access via the bus is avoided. Thus, the bus bandwidth can be secured and the processing efficiency can be further improved.

本発明の第3実施態様は、第1実施態様または第2実施態様において、以下のような構成を有する。
前記変換パラメータは、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換の少なくともいずれかを指示するパラメータであるよう構成される。
The third embodiment of the present invention has the following configuration in the first embodiment or the second embodiment.
The conversion parameter is configured to indicate at least one of coordinate conversion related to rotation, coordinate conversion related to enlargement, coordinate conversion related to reduction, and coordinate conversion related to parallel movement.

本発明のこのような構成によって、変換パラメータにより、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換を指示することができる。   According to such a configuration of the present invention, it is possible to instruct coordinate conversion related to rotation, coordinate conversion related to enlargement, coordinate conversion related to reduction, and coordinate conversion related to parallel movement by the conversion parameter.

本発明によれば、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為を検知することができる。   According to the present invention, it is possible to detect an illegal act of playing a game by misidentifying that a regular gaming medium is used in the gaming machine.

本発明の一実施形態の遊技機における機能フローを説明する説明図である。It is explanatory drawing explaining the functional flow in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における外観構成例を示す斜視図である。It is a perspective view which shows the example of an external appearance structure in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを閉じた状態の斜視図である。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door closed. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを開けた状態の斜視図である。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door opened. 本発明の一実施形態の遊技機におけるキャビネットの内部を示す説明図である。It is explanatory drawing which shows the inside of the cabinet in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるフロントドアの裏面側を示す説明図である。It is explanatory drawing which shows the back surface side of the front door in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め後方から見た斜視図である。It is the perspective view which looked at the medal selector in the gaming machine of one embodiment of the present invention from the slanting back of the gaming machine. 本発明の一実施形態の遊技機におけるメダルセレクタの分解図である。It is an exploded view of the medal selector in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め前方から見た斜視図である。It is the perspective view which looked at the medal selector in the gaming machine of one embodiment of the present invention from the diagonal front of the gaming machine. 本発明の一実施形態の遊技機におけるメダルセレクタのセレクトプレートの斜視図である。It is a perspective view of the select plate of the medal selector in the gaming machine of one embodiment of the present invention. 発明の一実施形態の遊技機におけるメダルセレクタがメダルをホッパー装置へ案内する場合のメダルの経路を示す図である。It is a figure which shows the path | route of a medal when the medal selector in the game machine of one Embodiment of this invention guides a medal to a hopper apparatus. 発明の一実施形態の遊技機におけるメダルセレクタがメダルをメダルシュートに案内する場合のメダルの経路を示す図である。It is a figure which shows the path | route of a medal when the medal selector in the gaming machine of one embodiment of the invention guides the medal to the medal shoot. 本発明の一実施形態の遊技機における制御系を示すブロック図である。It is a block diagram which shows the control system in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における主制御回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of the main control circuit in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における副制御回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of the sub control circuit in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of the medal selector in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIの回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of control LSI in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるカメラユニットの機能ブロック図である。It is a functional block diagram of the camera unit in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機に用いられる正規メダルの一例を示す図であり、Aは正規メダルの一方の面を示し、Bは正規メダルの画像データを示す図である。It is a figure which shows an example of the regular medal used for the game machine of one Embodiment of this invention, A shows one side of a regular medal, B is a figure which shows the image data of a regular medal. 本発明の一実施形態の遊技機に用いられる正規メダルに関する処理画像データの生成(合成)について説明するための図である。It is a figure for demonstrating the production | generation (synthesis | combination) of the process image data regarding the regular medal used for the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of the image recognition accelerator circuit contained in control LSI in the gaming machine of one Embodiment of this invention. 対象画像データに対して、座標変換を行い変換後画像データを生成する概念を示す図である。It is a figure which shows the concept which performs coordinate conversion with respect to object image data, and produces | generates the image data after conversion. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の座標変換回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the coordinate transformation circuit of the image recognition accelerator circuit contained in control LSI in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の変換パラメータの例を示す図である。It is a figure which shows the example of the conversion parameter of the image recognition accelerator circuit contained in control LSI in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の特定情報の例を示す図である。It is a figure which shows the example of the specific information of the image recognition accelerator circuit contained in control LSI in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路によって、それぞれ回転角度が異なる変換パラメータによって変換後画像データが生成される例を模式的に示す図である。It is a figure which shows typically the example in which the image data after conversion are produced | generated by the conversion parameter from which a rotation angle differs by the image recognition accelerator circuit contained in control LSI in the game machine of one Embodiment of this invention. 変換パラメータによる座標変換の一例を説明するための図である。It is a figure for demonstrating an example of the coordinate transformation by a transformation parameter. 複数の変換後画像データを合成して処理画像データを生成する概念を示す図である。It is a figure which shows the concept which synthesize | combines several image data after conversion and produces | generates process image data. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の動作の概要を説明するための図である。It is a figure for demonstrating the outline | summary of operation | movement of the image processing circuit of the image recognition accelerator circuit contained in control LSI in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の構成を示す図である。It is a figure which shows the structure of the image processing circuit of the image recognition accelerator circuit contained in control LSI in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機において1番目のメダルに関する正規メダル判別処理のフローを説明するための図である。It is a figure for demonstrating the flow of the regular medal discrimination | determination process regarding the 1st medal in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機において1番目〜6番目のメダルに関する正規メダル判別処理のフローを説明するための図である。It is a figure for demonstrating the flow of the regular medal discrimination | determination process regarding the 1st-6th medal in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の動作フローを示す図である。It is a figure which shows the operation | movement flow of the image recognition accelerator circuit contained in control LSI in the gaming machine of one Embodiment of this invention. 不正メダルの一方の面と不正メダルの画像データの例を示す図である。It is a figure which shows the example of the image data of one side of an unauthorized medal, and an unauthorized medal. 不正メダルの一方の面、不正メダルの画像データ、及び不正メダルの処理画像データの例を示す図である。It is a figure which shows the example of one side of an unauthorized medal, the image data of an unauthorized medal, and the process image data of an unauthorized medal. 本発明の一実施形態の遊技機におけるカメラユニットの撮像装置を介して得られる撮像画像の一例を模式的に示す図である。It is a figure which shows typically an example of the captured image obtained via the imaging device of the camera unit in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるカメラユニットの機能ブロック図である。It is a functional block diagram of the camera unit in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における特徴画像生成部の構成をより詳細に示す図である。It is a figure which shows the structure of the characteristic image generation part in the game machine of one Embodiment of this invention in detail. 本発明の一実施形態の遊技機におけるカメラユニットで実施される正規メダル判別処理の一連の動作を示すフローチャートである。It is a flowchart which shows a series of operation | movement of the regular medal discrimination | determination process implemented with the camera unit in the game machine of one Embodiment of this invention. メダル領域の一例を模式的に示す図である。It is a figure which shows an example of a medal area typically. 背景画像の一例を模式的に示す図である。It is a figure which shows an example of a background image typically. 背景差分画像の一例を模式的に示す図である。It is a figure which shows an example of a background difference image typically. 外形テンプレートの一例を模式的に示す図である。It is a figure which shows an example of an external shape template typically. テンプレートマッチングを説明するための図である。It is a figure for demonstrating template matching. メダル領域の抽出処理を説明するための図である。It is a figure for demonstrating the extraction process of a medal area. エッジ画像の一例を模式的に示す図である。It is a figure which shows an example of an edge image typically. 回転合成画像の生成方法を説明するための図である。It is a figure for demonstrating the production | generation method of a rotation synthetic | combination image. 本発明の一実施形態の変形例1における制御LSIに含まれる画像認識アクセラレータ回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image recognition accelerator circuit contained in the control LSI in the modification 1 of one Embodiment of this invention. 対象画像データに対して、複数の座標変換を重ねて行い処理画像データを生成する概念を示す図である。It is a figure which shows the concept of producing | generating process image data by superimposing several coordinate transformation with respect to object image data. 本発明の一実施形態の変形例2における制御LSIに含まれる画像認識アクセラレータ回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image recognition accelerator circuit contained in the control LSI in the modification 2 of one Embodiment of this invention. 本発明の一実施形態の変形例2における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image processing circuit of the image recognition accelerator circuit contained in the control LSI in the modification 2 of one Embodiment of this invention. 本発明の一実施形態の変形例2における制御LSIに含まれる画像認識アクセラレータ回路の変換パラメータの例を示す図である。It is a figure which shows the example of the conversion parameter of the image recognition accelerator circuit contained in the control LSI in the modification 2 of one Embodiment of this invention. 本発明の一実施形態の変形例2における制御LSIに含まれる画像認識アクセラレータ回路の特定情報の例を示す図である。It is a figure which shows the example of the specific information of the image recognition accelerator circuit contained in the control LSI in the modification 2 of one Embodiment of this invention. 本発明の一実施形態の変形例2における制御LSIに含まれる画像認識アクセラレータ回路の動作を説明するための図である。It is a figure for demonstrating operation | movement of the image recognition accelerator circuit contained in the control LSI in the modification 2 of one Embodiment of this invention. 本発明の一実施形態の変形例3における制御LSIに含まれる画像認識アクセラレータ回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image recognition accelerator circuit contained in the control LSI in the modification 3 of one Embodiment of this invention. 本発明の一実施形態の変形例3における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image processing circuit of the image recognition accelerator circuit contained in the control LSI in the modification 3 of one Embodiment of this invention. 本発明の一実施形態の変形例4における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の回路構成例を示す図である。It is a figure which shows the circuit structural example of the image processing circuit of the image recognition accelerator circuit contained in the control LSI in the modification 4 of one Embodiment of this invention.

<<一実施形態>>
以下、本発明の一実施形態に係る遊技機であるパチスロについて、図1〜図47を参照しながら説明する。
<< One Embodiment >>
Hereinafter, a pachislot machine that is a gaming machine according to an embodiment of the present invention will be described with reference to FIGS.

<機能フロー>
まず、図1を参照して、パチスロの機能フローについて説明する。本実施の形態のパチスロでは、遊技を行うための遊技媒体としてメダルを用いる。なお、本発明のすべての実施形態、変形例は、パチスロ機に限定して適用されるものではなく、パチスロ以外の他の遊技機(例えば、パチンコ機等)に適用することができる。また、遊技媒体としては、メダル以外にも、コイン、遊技球、遊技用のポイントデータまたはトークン等を対象とすることもできる。
<Function flow>
First, the functional flow of the pachislot will be described with reference to FIG. In the pachislot of this embodiment, medals are used as game media for playing games. Note that all the embodiments and modifications of the present invention are not limited to the pachislot machine, and can be applied to other gaming machines (for example, pachinko machines) other than the pachislot machine. In addition to medals, the game media can be coins, game balls, game point data, tokens, or the like.

遊技の開始時において、遊技者によりメダルが投入され、スタートレバーが操作されると、予め定められた数値の範囲(例えば、0〜65535)の乱数から1つの値(以下、乱数値)が抽出される。   At the start of the game, when a player inserts a medal and operates the start lever, one value (hereinafter referred to as a random value) is extracted from random numbers in a predetermined numerical range (for example, 0 to 65535). Is done.

内部抽籤手段は、抽出された乱数値に基づいて抽籤を行い、内部当籤役を決定する。この内部抽籤手段は、後述する主制御回路が担う。内部当籤役の決定により、後述の入賞判定ラインに沿って表示を行うことを許可する図柄の組合せが決定される。なお、図柄の組合せの種別としては、メダルの払い出し、再遊技の作動、ボーナスの作動等といった特典が遊技者に与えられる「入賞」に係るものと、それ以外のいわゆる「ハズレ」に係るものとが設けられている。   The internal lottery means performs lottery based on the extracted random number value and determines an internal winning combination. This internal lottery means is carried out by a main control circuit described later. By determining the internal winning combination, a combination of symbols that permits display along a winning determination line described later is determined. The types of symbol combinations include those related to “winning” in which benefits such as paying out medals, re-games, bonuses, etc. are given to players, and other so-called “loses”. Is provided.

また、スタートレバーが操作されると、複数のリールの回転が行われる。その後、遊技者により所定のリールに対応するストップボタンが押されると、リール停止制御手段は、内部当籤役とストップボタンが押されたタイミングとに基づいて、該当するリールの回転を停止する制御を行う。このリール停止制御手段は、後述する主制御回路が担う。   Further, when the start lever is operated, a plurality of reels are rotated. Thereafter, when the player presses the stop button corresponding to the predetermined reel, the reel stop control means performs control to stop the rotation of the corresponding reel based on the internal winning combination and the timing when the stop button is pressed. Do. The reel stop control means is responsible for a main control circuit described later.

パチスロでは、基本的に、ストップボタンが押されたときから規定時間(190msecまたは75msec)内に、該当するリールの回転を停止する制御が行われる。本実施形態では、この規定時間内にリールの回転に伴って移動する図柄の数を「滑り駒数」と呼ぶ。規定期間が190msecである場合には、滑り駒数の最大数を図柄4個分に定め、規定期間が75msecである場合には、滑り駒数の最大数を図柄1個分に定める。   In the pachislot, basically, a control for stopping the rotation of the corresponding reel is performed within a specified time (190 msec or 75 msec) from when the stop button is pressed. In the present embodiment, the number of symbols that move with the rotation of the reel within the specified time is referred to as “the number of sliding symbols”. When the specified period is 190 msec, the maximum number of sliding symbols is set to 4 symbols, and when the specified period is 75 msec, the maximum number of sliding symbols is set to 1 symbol.

リール停止制御手段は、入賞に係る図柄の組合せ表示を許可する内部当籤役が決定されているときは、通常、190msec(図柄4コマ分)の規定時間内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。また、リール停止制御手段は、例えば、第2種特別役物であるチャレンジボーナス(CB)及びCBを連続して作動させるミドルボーナス(MB)の動作時には、1つ以上のリールに対して、規定時間75msec(図柄1コマ分)内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。さらに、リール停止制御手段は、遊技状態に対応する各種規定時間を利用して、内部当籤役によってその表示が許可されていない図柄の組合せが入賞判定ラインに沿って表示されないようにリールの回転を停止させる。   When the internal winning combination allowing the symbol combination display related to winning is determined, the reel stop control means usually displays the symbol combination within the specified time of 190 msec (four symbols) for the winning determination line. The rotation of the reel is stopped so as to display as much as possible. In addition, the reel stop control means is defined for one or more reels when, for example, a challenge bonus (CB), which is a second-type special accessory, and a middle bonus (MB) for continuously operating the CB are operated. The reel rotation is stopped so that the combination of symbols is displayed as much as possible along the winning determination line within a time of 75 msec (for one symbol). Furthermore, the reel stop control means uses various specified times corresponding to the gaming state to rotate the reels so that combinations of symbols that are not permitted to be displayed by the internal winning combination are not displayed along the winning determination line. Stop.

こうして、複数のリールの回転がすべて停止されると、入賞判定手段は、入賞判定ラインに沿って表示された図柄の組合せが、入賞に係るものであるか否かの判定を行う。この入賞判定手段は、後述する主制御回路が担う。入賞判定手段により入賞に係るものであるとの判定が行われると、メダルの払い出し等の特典が遊技者に与えられる。パチスロでは、以上のような一連の流れが1回の遊技として行われる。   Thus, when the rotation of the plurality of reels is all stopped, the winning determination means determines whether or not the combination of symbols displayed along the winning determination line is related to winning. This winning determination means is carried out by a main control circuit described later. When it is determined by the winning determination means that it is related to winning, a privilege such as paying out medals is given to the player. In the pachislot, a series of flows as described above is performed as one game.

また、パチスロでは、前述した一連の流れの中で、液晶表示装置などの表示装置により行う映像の表示、各種ランプにより行う光の出力、スピーカにより行う音の出力、或いはこれらの組合せを利用して様々な演出が行われる。   Further, in the pachislot, in the above-described series of flows, video display performed by a display device such as a liquid crystal display device, light output performed by various lamps, sound output performed by a speaker, or a combination thereof is used. Various productions are performed.

スタートレバーが操作されると、上述した内部当籤役の決定に用いられた乱数値とは別に、演出用の乱数値(以下、演出用乱数値)が抽出される。演出用乱数値が抽出されると、演出内容決定手段は、内部当籤役に対応づけられた複数種類の演出内容の中から今回実行するものを抽籤により決定する。この演出内容決定手段は、後述する副制御回路が担う。   When the start lever is operated, an effect random number value (hereinafter referred to as effect random number value) is extracted separately from the random number value used for determining the internal winning combination. When the effect random number value is extracted, the effect content determining means determines, by lottery, what is to be executed this time from among a plurality of types of effect contents associated with the internal winning combination. This effect content determination means is carried out by a sub-control circuit described later.

演出内容が決定されると、演出実行手段は、リールの回転開始時、各リールの回転停止時、入賞の有無の判定時等の各契機に連動させて対応する演出を実行する。このように、パチスロでは、内部当籤役に対応づけられた演出内容を実行することによって、決定された内部当籤役(言い換えると、狙うべき図柄の組合せ)を知る機会または予想する機会が遊技者に提供され、遊技者の興味の向上を図ることができる。   When the contents of the effect are determined, the effect executing means executes the corresponding effect in conjunction with each opportunity, such as when the rotation of the reels starts, when the rotation of each reel stops, or when determining whether there is a winning. In this way, in the pachislot, the player is given an opportunity to know or predict the determined internal winning combination (in other words, the combination of symbols to be aimed at) by executing the production contents associated with the internal winning combination. It is possible to improve the player's interest.

<パチスロの構造>
次に、図2〜図6を参照して、本実施形態におけるパチスロ1の構造について説明する。
<Pachislot structure>
Next, the structure of the pachislo 1 according to the present embodiment will be described with reference to FIGS.

[外観構造]
図2は、パチスロ1の外部構造を示す斜視図である。
[Appearance structure]
FIG. 2 is a perspective view showing the external structure of the pachi-slot 1.

図2に示すように、パチスロ1は、外装体2を備えている。外装体2は、後述するホッパー装置51やメダル補助収納庫52等(図5参照)を収容するキャビネット2aと、キャビネット2aに対して開閉可能に取り付けられるフロントドア2bとを有している。キャビネット2aの両側面には、把手7が設けられている(図2では一側面の把手7のみを示す)。この把手7は、パチスロ1を運搬するときに手をかける凹部である。   As shown in FIG. 2, the pachi-slot 1 includes an exterior body 2. The exterior body 2 includes a cabinet 2a that houses a hopper device 51, a medal auxiliary storage 52, and the like (see FIG. 5), which will be described later, and a front door 2b that is attached to the cabinet 2a so as to be opened and closed. Handles 7 are provided on both side surfaces of the cabinet 2a (only one handle 7 is shown in FIG. 2). The handle 7 is a recess that is put on when carrying the pachi-slot 1.

外装体2の内部には、3つのリール3L、3C、3Rが横並びに設けられている。以下、各リール3L、3C、3Rを、それぞれ左リール3L、中リール3C、右リール3Rという。各リール3L、3C、3Rは、円筒状に形成されたリール本体と、リール本体の周面に装着された透光性のシート材を有している。シート材の表面には、複数(例えば20個)の図柄が周方向に沿って所定の間隔をあけて描かれている。   Three reels 3L, 3C, and 3R are provided side by side in the exterior body 2. Hereinafter, the reels 3L, 3C, and 3R are referred to as a left reel 3L, a middle reel 3C, and a right reel 3R, respectively. Each reel 3L, 3C, 3R has a reel body formed in a cylindrical shape and a translucent sheet material mounted on the peripheral surface of the reel body. A plurality of (for example, 20) symbols are drawn on the surface of the sheet material at predetermined intervals along the circumferential direction.

フロントドア2bは、ドア本体9と、フロントパネル10と、表示装置の一具体例を示す液晶表示装置11とを備えている。   The front door 2b includes a door body 9, a front panel 10, and a liquid crystal display device 11 showing a specific example of the display device.

ドア本体9は、ヒンジ(不図示)を用いてキャビネット2aに取り付けられており、キャビネット2aの開口部を開閉する。ヒンジは、パチスロ1の前方からドア本体9を見た場合に、ドア本体9における左側の端部に設けられている。液晶表示装置11は、ドア本体9の上部に取り付けられている。この液晶表示装置11は、表示部(表示画面)11aを備えており、液晶表示装置11を用いて映像の表示による演出が実行される。   The door body 9 is attached to the cabinet 2a using a hinge (not shown), and opens and closes the opening of the cabinet 2a. The hinge is provided at the left end of the door body 9 when the door body 9 is viewed from the front of the pachi-slot 1. The liquid crystal display device 11 is attached to the upper part of the door body 9. The liquid crystal display device 11 includes a display unit (display screen) 11a, and the liquid crystal display device 11 performs an effect by displaying an image.

フロントパネル10は、液晶表示装置11の表示部11a側に重畳して配置され、液晶表示装置11の表示部11aを露出させるパネル開口10aを有する枠状に形成されている。フロントパネル10には、ランプ群18が設けられている。ランプ群18は、LED(Light Emitting Diode)等で構成され、演出内容に対応するパターンで、光を点灯及び消灯する。   The front panel 10 is disposed so as to overlap the display unit 11 a side of the liquid crystal display device 11, and is formed in a frame shape having a panel opening 10 a that exposes the display unit 11 a of the liquid crystal display device 11. A lamp group 18 is provided on the front panel 10. The lamp group 18 is configured by an LED (Light Emitting Diode) or the like, and turns on and off the light in a pattern corresponding to the effect content.

フロントドア2bの中央には、台座部12が形成されている。この台座部12には、図柄表示領域4と、遊技者による操作の対象となる各種装置が設けられている。   A pedestal 12 is formed in the center of the front door 2b. The pedestal portion 12 is provided with a symbol display area 4 and various devices to be operated by the player.

図柄表示領域4は、正面から見て3つのリール3L、3C、3Rに重畳する手前側に配置されており、3つのリール3L、3C、3Rに対応して設けられている。この図柄表示領域4は、表示窓としての機能を果たすものであり、その背後に設けられた各リール3L、3C、3Rを透過することが可能な構成になっている。以下、図柄表示領域4を、リール表示窓4という。   The symbol display area 4 is arranged on the front side superimposed on the three reels 3L, 3C, 3R when viewed from the front, and is provided corresponding to the three reels 3L, 3C, 3R. The symbol display area 4 functions as a display window, and is configured to be able to pass through the reels 3L, 3C, and 3R provided behind it. Hereinafter, the symbol display area 4 is referred to as a reel display window 4.

リール表示窓4は、その背後に設けられたリール3L、3C、3Rの回転が停止されたとき、各リール3L、3C、3Rの複数種類の図柄のうち、その枠内における上段、中段及び下段の各領域にそれぞれ1個の図柄(合計で3個)を表示する。本実施の形態では、リール表示窓4の上段、中段及び下段からなる3つの領域のうち予め定められたいずれかを組み合わせて構成される擬似的なラインを、入賞か否かの判定を行う対象となるライン(入賞判定ライン)として定義する。   When the reels 3L, 3C, and 3R provided behind the reel display window 4 are stopped from rotating, the reel display window 4 has an upper stage, a middle stage, and a lower stage within the frame among the plural types of symbols of the reels 3L, 3C, and 3R. One symbol (three in total) is displayed in each area. In the present embodiment, a target for determining whether or not to win a pseudo line configured by combining any one of the three regions including the upper, middle and lower regions of the reel display window 4 is determined. Is defined as a line (winning determination line).

リール表示窓4は、台座部12に設けられた枠部材13により形成されている。この枠部材13は、リール表示窓4と、情報表示窓14と、ストップボタン取付部15を有している。   The reel display window 4 is formed by a frame member 13 provided on the pedestal portion 12. The frame member 13 has a reel display window 4, an information display window 14, and a stop button attachment portion 15.

情報表示窓14は、リール表示窓4の下部に連続して設けられており、上方に向かって開口している。すなわち、リール表示窓4と情報表示窓14は、連続する1つの開口部として形成されている。この情報表示窓14及びリール表示窓4は、透明の窓カバー16によって覆われている。   The information display window 14 is provided continuously below the reel display window 4 and opens upward. That is, the reel display window 4 and the information display window 14 are formed as one continuous opening. The information display window 14 and the reel display window 4 are covered with a transparent window cover 16.

窓カバー16は、枠部材13の内面側に配置されており、フロントドア2bの前面側から取り外し不可能になっている。また、枠部材13は、窓カバー16を挟んで情報表示窓14の開口に対向するシート載置部17を有している。そして、シート載置部17と窓カバー16との間には、遊技に関する情報が記載されたシート部材(情報シート)が配置されている。したがって、情報シートは、凹凸や隙間の無い滑らかな表面を有する窓カバー16により覆われている。   The window cover 16 is disposed on the inner surface side of the frame member 13 and cannot be removed from the front side of the front door 2b. In addition, the frame member 13 includes a sheet placement portion 17 that faces the opening of the information display window 14 with the window cover 16 interposed therebetween. And between the sheet | seat mounting part 17 and the window cover 16, the sheet | seat member (information sheet) in which the information regarding a game was described is arrange | positioned. Therefore, the information sheet is covered with the window cover 16 having a smooth surface without unevenness or gaps.

情報シートの取付部を構成する窓カバー16は、フロントドア2bの前面側から取り外し不可能であり、凹凸や隙間の無い滑らかな表面であるため、情報シートの取付部を利用して、パチスロ1の内部にアクセスする不正行為を防ぐことができる。   The window cover 16 that constitutes the information sheet attachment portion cannot be removed from the front side of the front door 2b, and has a smooth surface with no irregularities or gaps. Can prevent fraudulent access to the inside.

ストップボタン取付部15は、情報表示窓14の下方に設けられており、正面を向いた平面に形成されている。このストップボタン取付部15には、ストップボタン19L、19C、19Rが貫通する貫通孔が設けられている。ストップボタン19L、19C、19Rは、3つのリール3L、3C、3Rのそれぞれに対応づけられ、対応するリールの回転整を停止するために設けられる。以下、ストップボタン19L、19C、19Rを、それぞれ左ストップボタン19L、中ストップボタン19C、右ストップボタン19Rという。   The stop button mounting portion 15 is provided below the information display window 14 and is formed on a plane facing the front. The stop button mounting portion 15 is provided with a through hole through which the stop buttons 19L, 19C, 19R pass. The stop buttons 19L, 19C, 19R are associated with the three reels 3L, 3C, 3R, respectively, and are provided to stop the rotation of the corresponding reels. Hereinafter, the stop buttons 19L, 19C, and 19R are referred to as a left stop button 19L, a middle stop button 19C, and a right stop button 19R, respectively.

ストップボタン19L、19C、19Rは、遊技者による操作の対象となる各種装置の一例を示す。また、台座部12には、遊技者による操作の対象となる各種装置として、メダル投入口21、BETボタン22、スタートレバー23が設けられている。   The stop buttons 19L, 19C, and 19R show examples of various devices that are targets of operations by the player. In addition, the pedestal portion 12 is provided with a medal slot 21, a BET button 22, and a start lever 23 as various devices to be operated by the player.

メダル投入口21は、遊技者によって外部から投下されるメダルを受け入れるために設けられる。メダル投入口21に受け入れられたメダルは、予め定められた規定数(例えば、3枚)を上限として1回の遊技に投入されることとなり、規定数を超えた分はパチスロ1の内部に預けることが可能となる(いわゆるクレジット機能)。   The medal slot 21 is provided to accept a medal dropped from the outside by the player. The medals accepted by the medal slot 21 are inserted into one game with a predetermined number (for example, three) as the upper limit, and the amount exceeding the specified number is deposited inside the pachislot 1. (So-called credit function).

BETボタン22は、パチスロ1の内部に預けられているメダルから1回の遊技に投入する枚数を決定するために設けられる。スタートレバー23は、全てのリール(3L、3C、3R)の回転を開始するために設けられる。   The BET button 22 is provided to determine the number of coins to be inserted into one game from medals deposited inside the pachislot 1. The start lever 23 is provided to start the rotation of all the reels (3L, 3C, 3R).

また、フロントドア2bを正面から見てリール表示窓4の左側方には、7セグメントLED(Light Emitting Diode)からなる7セグ表示器24が設けられている。この7セグ表示器24は、特典として遊技者に対して払い出すメダルの枚数(以下、払出枚数)、パチスロ内部に預けられているメダルの枚数(以下、クレジット枚数)等の情報をデジタル表示する。   In addition, a 7-segment display 24 including a 7-segment LED (Light Emitting Diode) is provided on the left side of the reel display window 4 when the front door 2b is viewed from the front. The 7-segment display 24 digitally displays information such as the number of medals to be paid out to the player as a privilege (hereinafter referred to as payout number) and the number of medals deposited in the pachislot (hereinafter referred to as credit number). .

フロントドア2bを正面から見て台座部12の左側には、精算ボタン27が設けられている。この精算ボタン27は、パチスロ1の内部に預けられている外部に引き出す(排出する)ために設けられる。台座部12の下方には、腰部パネルユニット31が設けられている。腰部パネルユニット31は、任意の画像が描かれた装飾パネルと、この装飾パネルを背面側から照明するための光を出射する光源を有している。   A settlement button 27 is provided on the left side of the base 12 when the front door 2b is viewed from the front. The checkout button 27 is provided to pull out (discharge) the outside stored in the interior of the pachislot machine 1. A lower panel unit 31 is provided below the pedestal 12. The waist panel unit 31 includes a decorative panel on which an arbitrary image is drawn and a light source that emits light for illuminating the decorative panel from the back side.

腰部パネルユニット31の下方には、メダル払出口32と、スピーカ用孔33L、33Rと、メダルトレイユニット34が設けられている。メダル払出口32は、後述のメダルセレクタ201から排出されるメダルや後述のホッパー装置51の駆動により排出されるメダルを外部に導く。メダル払出口32から排出されたメダルは、メダルトレイユニット34に貯められる。スピーカ用孔33L、33Rは、演出内容に応じた効果音や楽曲等の音を出力するために設けられている。   Below the waist panel unit 31, a medal payout port 32, speaker holes 33L and 33R, and a medal tray unit 34 are provided. The medal payout port 32 guides medals discharged from a medal selector 201 described later and medals discharged by driving a hopper device 51 described later to the outside. The medals discharged from the medal payout opening 32 are stored in the medal tray unit 34. The speaker holes 33L and 33R are provided to output sound such as sound effects and music corresponding to the contents of the performance.

[内部構造]
図3及び図4は、パチスロ1の内部構造を示す斜視図である。この図3では、フロントドア2bが開放され、フロントドア2bの裏面側に設けられたミドルドア41がフロントドア2bに対して閉じた状態を示している。また、図4では、フロントドア2bが開放され、ミドルドア41がフロントドア2bに対して開いた状態を示している。また、図5は、キャビネット2aの内部を示す説明図である。図6は、フロントドア2bの裏面側を示す説明図である。
[Internal structure]
3 and 4 are perspective views showing the internal structure of the pachi-slot 1. FIG. 3 shows a state in which the front door 2b is opened and the middle door 41 provided on the back side of the front door 2b is closed with respect to the front door 2b. FIG. 4 shows a state where the front door 2b is opened and the middle door 41 is opened with respect to the front door 2b. FIG. 5 is an explanatory diagram showing the inside of the cabinet 2a. FIG. 6 is an explanatory view showing the back side of the front door 2b.

キャビネット2aは、上面板20aと、底面板20bと、左右の側面板20c、20dと、背面板20eを有している(図5参照)。キャビネット2a内部の上側には、キャビネット側スピーカ42が配設されている。このキャビネット側スピーカ42は、取付ブラケット43L、43Rを介してキャビネット2aの背面板20eに取り付けられている。キャビネット側スピーカ42は、例えば、効果音を出力するためのスピーカである。   The cabinet 2a includes a top plate 20a, a bottom plate 20b, left and right side plates 20c and 20d, and a back plate 20e (see FIG. 5). A cabinet-side speaker 42 is disposed on the upper side inside the cabinet 2a. The cabinet-side speaker 42 is attached to the back plate 20e of the cabinet 2a via attachment brackets 43L and 43R. The cabinet side speaker 42 is, for example, a speaker for outputting sound effects.

キャビネット2a内部を正面から見て、キャビネット側スピーカ42の左側方には、キャビネット側中継基板44が配設されている。このキャビネット側中継基板44は、キャビネット2aの左側面板20cに取り付けられている。キャビネット側中継基板44は、ミドルドア41(図3及び図4参照)に取り付けられた後述する主制御基板71(図13参照)と、ホッパー装置51、メダル補助収納庫スイッチ(不図示)、メダル払出カウントスイッチ(不図示)とを接続する配線の中継を行う。   A cabinet-side relay board 44 is disposed on the left side of the cabinet-side speaker 42 when the inside of the cabinet 2a is viewed from the front. The cabinet side relay board 44 is attached to the left side plate 20c of the cabinet 2a. The cabinet-side relay board 44 includes a main control board 71 (see FIG. 13), which will be described later, attached to the middle door 41 (see FIGS. 3 and 4), a hopper device 51, a medal auxiliary storage switch (not shown), and a medal payout. The wiring connecting the count switch (not shown) is relayed.

キャビネット2a内部の中央部には、キャビネット側スピーカ42による音の出力を制御するアンプ基板45が配設されている。このアンプ基板45は、左右の側面板20c、20dに固定された取付棚46に取り付けられている。   An amplifier board 45 that controls the output of sound from the cabinet-side speaker 42 is disposed in the center of the cabinet 2a. The amplifier board 45 is attached to an attachment shelf 46 fixed to the left and right side plates 20c and 20d.

また、キャビネット2a内部を正面から見て、アンプ基板45の右側には、外部集中端子板47が配設されている(図5参照)。この外部集中端子板47は、キャビネット2aの右側面板20dに取り付けられている。外部集中端子板47は、メダル投入信号、メダル払出信号及びセキュリティー信号などの信号をパチスロ1の外部へ出力するために設けられている。   Further, an external concentrated terminal plate 47 is disposed on the right side of the amplifier board 45 when the inside of the cabinet 2a is viewed from the front (see FIG. 5). The external concentrated terminal plate 47 is attached to the right side plate 20d of the cabinet 2a. The external concentration terminal board 47 is provided for outputting signals such as a medal insertion signal, a medal payout signal, and a security signal to the outside of the pachislot machine 1.

キャビネット2a内部を正面から見て、アンプ基板45の左側には、サブ電源装置48が配設されている。このサブ電源装置48は、キャビネット2aの左側面板20cに取り付けられている。サブ電源装置48は、交流電圧100Vの電力を後述する電源装置53に供給する。また、交流電圧100Vの電力を直流電圧の電力に変換して、アンプ基板45に供給する。   A sub power supply device 48 is disposed on the left side of the amplifier board 45 when the inside of the cabinet 2a is viewed from the front. The sub power supply 48 is attached to the left side plate 20c of the cabinet 2a. The sub power supply device 48 supplies power with an AC voltage of 100 V to the power supply device 53 described later. Further, the power of the AC voltage 100V is converted into the power of the DC voltage and supplied to the amplifier board 45.

キャビネット2aの内部の下側には、メダル払出装置(以下、ホッパー装置)51と、メダル補助収納庫52と、電源装置53が配設されている。   A medal payout device (hereinafter referred to as a hopper device) 51, a medal auxiliary storage 52, and a power supply device 53 are disposed on the lower side of the cabinet 2a.

ホッパー装置51は、キャビネット2aにおける底面板20bの中央部に取り付けられている。このホッパー装置51は、多量のメダルを収容可能であり、それらを1枚ずつ排出可能な構造を有する。ホッパー装置51は、例えば、精算ボタン27(図2参照)が押圧されてパチスロ内部に預けられているメダルの精算を行うときに、収容したメダルをクレジット枚数分排出する。ホッパー装置51によって払い出されたメダルは、メダル払出口32(図2参照)から排出される。   The hopper device 51 is attached to the central portion of the bottom plate 20b in the cabinet 2a. This hopper device 51 can accommodate a large amount of medals, and has a structure capable of discharging them one by one. For example, when the settlement button 27 (see FIG. 2) is pressed to settle the medals stored in the pachislot, the hopper device 51 discharges the stored medals by the number of credits. The medals paid out by the hopper device 51 are discharged from the medal payout port 32 (see FIG. 2).

メダル補助収納庫52は、ホッパー装置51から溢れ出たメダルを収納する。このメダル補助収納庫52は、キャビネット2a内部を正面から見て、ホッパー装置51の右側に配置されている。メダル補助収納庫52は、キャビネット2aの底面板20bに係合されており、底面板20bに対して着脱可能に構成されている。   The medal auxiliary storage 52 stores medals overflowing from the hopper device 51. The medal auxiliary storage 52 is disposed on the right side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front. The medal auxiliary storage 52 is engaged with the bottom plate 20b of the cabinet 2a, and is configured to be detachable from the bottom plate 20b.

電源装置53は、キャビネット2a内部を正面から見て、ホッパー装置51の左側に配置されており、左側面板20cに取り付けられている。この電源装置53は、電源スイッチ53aと、電源基板53bを有している(図13参照)。電源装置53は、サブ電源装置48から供給された交流電圧100Vの電力を各部で必要な直流電圧の電力に変換して、変換した電力を各部へ供給する。   The power supply device 53 is disposed on the left side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front, and is attached to the left side plate 20c. The power supply device 53 includes a power switch 53a and a power supply board 53b (see FIG. 13). The power supply device 53 converts the power of the AC voltage 100V supplied from the sub power supply device 48 into the power of the DC voltage necessary for each part, and supplies the converted power to each part.

図3、図4及び図6に示すように、ミドルドア41は、フロントドア2bの裏面における中央部に配置され、リール表示窓4(図4参照)を裏側から開閉可能に構成されている。ミドルドア41の上部と下部には、ドアストッパ41a、41b、41cが設けられている。このドアストッパ41a、41b、41cは、リール表示窓4を裏側から閉じた状態のミドルドア41の開動作を固定(禁止)する。すなわち、ミドルドア41を開くには、ドアストッパ41a、41b、41cを回転させてミドルドア41の固定を解除する必要がある。   As shown in FIGS. 3, 4 and 6, the middle door 41 is arranged at the center of the back surface of the front door 2b, and is configured to open and close the reel display window 4 (see FIG. 4) from the back side. Door stoppers 41a, 41b, and 41c are provided at the upper and lower portions of the middle door 41. The door stoppers 41a, 41b, 41c fix (prohibit) the opening operation of the middle door 41 in a state where the reel display window 4 is closed from the back side. That is, in order to open the middle door 41, it is necessary to rotate the door stoppers 41a, 41b, 41c to release the middle door 41 from being fixed.

ミドルドア41には、主制御基板71(図13参照)を収納した主制御基板ケース55と、3つのリール3L、3C、3Rが取り付けられている。3つのリール3L、3C、3Rには、所定の減速比をもったギアを介してステッピングモータが接続されている。   A main control board case 55 that houses a main control board 71 (see FIG. 13) and three reels 3L, 3C, and 3R are attached to the middle door 41. Stepping motors are connected to the three reels 3L, 3C, and 3R through gears having a predetermined reduction ratio.

図6に示すように、主制御基板ケース55には、設定用鍵型スイッチ56が設けられている。この設定用鍵型スイッチ56は、パチスロ1の設定を変更もしくはパチスロ1の設定の確認を行うときに使用する。本実施の形態では、主制御基板ケース55と、この主制御基板ケース55に収納された主制御基板71により、主制御基板ユニットが構成されている。   As shown in FIG. 6, the main control board case 55 is provided with a setting key type switch 56. The setting key type switch 56 is used when changing the setting of the pachislot 1 or confirming the setting of the pachislot 1. In the present embodiment, a main control board unit is configured by the main control board case 55 and the main control board 71 accommodated in the main control board case 55.

主制御基板ケース55に収納された主制御基板71は、後述する主制御回路91(図14参照)を構成する。主制御回路91は、内部当籤役の決定、リール3L、3C、3Rの回転及び停止、入賞の有無の判定といった、パチスロ1における遊技の主な流れを制御する回路である。主制御回路91の具体的な構成は後述する。   The main control board 71 accommodated in the main control board case 55 constitutes a main control circuit 91 (see FIG. 14) described later. The main control circuit 91 is a circuit that controls the main flow of the game in the pachislot 1 such as determination of an internal winning combination, rotation and stop of the reels 3L, 3C, 3R, and determination of the presence or absence of winning. A specific configuration of the main control circuit 91 will be described later.

ミドルドア41の上方には、副制御基板72(図13参照)を収容する副制御基板ケース57が配設されおり、副制御基板ケース57の上方には、センタースピーカ58が配設されている。副制御基板ケース57に収納された副制御基板72は、副制御回路101(図15参照)を構成する。この副制御回路101は、映像の表示等による演出の実行を制御する回路である。副制御回路101の具体的な構成は後述する。   A sub control board case 57 that accommodates the sub control board 72 (see FIG. 13) is disposed above the middle door 41, and a center speaker 58 is disposed above the sub control board case 57. The sub control board 72 housed in the sub control board case 57 constitutes the sub control circuit 101 (see FIG. 15). The sub-control circuit 101 is a circuit that controls execution of effects by displaying images. A specific configuration of the sub control circuit 101 will be described later.

フロントドア2bを裏面側から見て、副制御基板ケース57の右側方には、副中継基板61が配設されている。この副中継基板61は、副制御基板72と主制御基板71とを接続する配線を中継する。また、副制御基板72と副制御基板72の周辺に配設された基板とを接続する配線を中継する基板である。なお、副制御基板72の周辺に配設される基板としては、後述するLED基板62A、62B、62Cが挙げられる。   A sub relay board 61 is disposed on the right side of the sub control board case 57 when the front door 2b is viewed from the back side. The sub relay board 61 relays the wiring connecting the sub control board 72 and the main control board 71. Further, it is a board that relays the wiring that connects the sub-control board 72 and the board disposed around the sub-control board 72. In addition, as a board | substrate arrange | positioned around the sub control board 72, LED board 62A, 62B, 62C mentioned later is mentioned.

LED基板62A、62B、62Cは、フロントドア2bの裏面側から見て、副制御基板ケース57の両側に配設されている。これらLED基板62A、62B、62Cは、副制御回路101(図15参照)の制御により実行される演出に応じて、光源の一具体例を示す複数のLED(Light Emitting Diode)85(図13参照)を発光させて、点滅パターンを表示する。なお、本実施形態に係る遊技機では、LED基板62A、62B、62C以外に複数のLED基板を備えている。   The LED boards 62A, 62B, and 62C are disposed on both sides of the sub control board case 57 when viewed from the back side of the front door 2b. These LED boards 62A, 62B, and 62C have a plurality of LEDs (Light Emitting Diodes) 85 (see FIG. 13) showing a specific example of the light source in accordance with the effects executed by the control of the sub-control circuit 101 (see FIG. 15). ) To display a blinking pattern. Note that the gaming machine according to the present embodiment includes a plurality of LED boards in addition to the LED boards 62A, 62B, and 62C.

副中継基板61の下方には、24hドア開閉監視ユニット63が配設されている。この24hドア開閉監視ユニット63は、ミドルドア41の開閉の履歴を保存する。また、ミドルドア41を開放したときに、液晶表示装置11にエラー表示を行うための信号を副制御基板72(副制御回路101)に出力する。   Below the sub-relay board 61, a 24h door opening / closing monitoring unit 63 is disposed. The 24h door opening / closing monitoring unit 63 stores the opening / closing history of the middle door 41. When the middle door 41 is opened, a signal for displaying an error on the liquid crystal display device 11 is output to the sub control board 72 (sub control circuit 101).

ミドルドア41の下方には、ボードスピーカ64と、下部スピーカ65L、65Rが配設されている。ボードスピーカ64は、腰部パネルユニット31(図2参照)に対向しており、下部スピーカ65L、65Rは、それぞれスピーカ用孔33L、33R(図2参照)に対向している。   Below the middle door 41, a board speaker 64 and lower speakers 65L and 65R are arranged. The board speaker 64 faces the waist panel unit 31 (see FIG. 2), and the lower speakers 65L and 65R face the speaker holes 33L and 33R (see FIG. 2), respectively.

下部スピーカ65Lの上方には、メダルセレクタ201と、メダルシュート202と、ドア開閉監視スイッチ67と、が配設されている。メダルセレクタ201は、メダルの材質や形状等が適正であるか否かを判別する装置であり、メダル投入口21に投入されたメダルを、スロープ203を介してホッパー装置51へ案内し、またはメダルシュート202へ案内する。メダルセレクタ201の具体的な構成については後述する。   Above the lower speaker 65L, a medal selector 201, a medal chute 202, and a door open / close monitoring switch 67 are disposed. The medal selector 201 is a device that determines whether or not the material and shape of the medal are appropriate. The medal selector 201 guides the medal inserted into the medal insertion slot 21 to the hopper device 51 via the slope 203 or the medal. Guide to the chute 202. A specific configuration of the medal selector 201 will be described later.

メダルシュート202は、略Y字状の筒状の部材であり、メダルセレクタ201によって案内されたメダルやホッパー装置51から排出されたメダルをメダル払出口32(図2参照)に案内する。   The medal chute 202 is a substantially Y-shaped cylindrical member, and guides the medal guided by the medal selector 201 and the medal discharged from the hopper device 51 to the medal payout opening 32 (see FIG. 2).

ドア開閉監視スイッチ67は、フロントドア2bを裏面側から見て、メダルセレクタ201の左側方に配置されている。このドア開閉監視スイッチ67は、パチスロ1の外部へ、フロントドア2bの開閉を報知するためのセキュリティー信号を出力する。   The door open / close monitoring switch 67 is disposed on the left side of the medal selector 201 when the front door 2b is viewed from the back side. The door open / close monitoring switch 67 outputs a security signal for notifying the opening / closing of the front door 2b to the outside of the pachi-slot 1.

また、リール表示窓4の下方であってミドルドア41により開閉される領域には、ドア中継端子板68が配設されている(図4参照)。このドア中継端子板68は、主制御基板ケース55内の主制御基板71(図13参照)と、各種のボタンやスイッチ、副制御基板72(図13参照)、メダルセレクタ201及び遊技動作表示基板81(図13参照)との配線を中継する基板である。なお、各種のボタン及びスイッチとしては、例えば、BETボタン22、精算ボタン27、ドア開閉監視スイッチ67、後述するBETスイッチ77、スタートスイッチ79等を挙げることができる。   Further, a door relay terminal plate 68 is disposed in a region below the reel display window 4 and opened and closed by the middle door 41 (see FIG. 4). The door relay terminal board 68 includes a main control board 71 (see FIG. 13) in the main control board case 55, various buttons and switches, a sub-control board 72 (see FIG. 13), a medal selector 201, and a game operation display board. It is a board | substrate which relays wiring with 81 (refer FIG. 13). Examples of the various buttons and switches include a BET button 22, a settlement button 27, a door open / close monitoring switch 67, a BET switch 77, a start switch 79, and the like, which will be described later.

<メダルセレクタの構成>
次に、図7〜図12を参照して、メダルセレクタ201の具体的な構成について説明する。図7は、メダルセレクタ201をパチスロ1の斜め後方から見た斜視図である。図8は、メダルセレクタ201の分解図である。図9は、メダルセレクタ201をパチスロ1の斜め前方から見た斜視図である。図10は、メダルセレクタ201の後述するセレクトプレート207の斜視図である。図11は、メダルセレクタ201がメダルをホッパー装置51へ案内する場合のメダルの経路を示す図である。図12は、メダルセレクタ201がメダルをメダルシュート202に案内する場合のメダルの経路を示す図である。なお、図7〜図12に示す矢印Xはパチスロ1の左右方向を示し、矢印Yはパチスロ1の前後方向を示し、矢印Zは上下方向を示す。
<Composition of medal selector>
Next, a specific configuration of the medal selector 201 will be described with reference to FIGS. FIG. 7 is a perspective view of the medal selector 201 when viewed from an oblique rear side of the pachi-slot 1. FIG. 8 is an exploded view of the medal selector 201. FIG. 9 is a perspective view of the medal selector 201 as viewed obliquely from the front of the pachi-slot 1. FIG. 10 is a perspective view of a select plate 207, which will be described later, of the medal selector 201. FIG. FIG. 11 is a diagram showing a medal path when the medal selector 201 guides the medal to the hopper device 51. FIG. 12 is a diagram showing a medal path when the medal selector 201 guides the medal to the medal chute 202. In addition, the arrow X shown in FIGS. 7-12 shows the left-right direction of the pachislot 1, the arrow Y shows the front-back direction of the pachislot 1, and the arrow Z shows the up-down direction.

図7〜図9に示すように、メダルセレクタ201は、ベース板部204と、サブプレート205と、キャンセルシュータ206と、セレクトプレート207と、メダルソレノイド208(図9参照)、カメラユニット209と、を備えている。   As shown in FIGS. 7 to 9, the medal selector 201 includes a base plate portion 204, a sub plate 205, a cancel shooter 206, a select plate 207, a medal solenoid 208 (see FIG. 9), a camera unit 209, It has.

ベース板部204は、メダルセレクタ201の外枠筐体を構成する略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の後方に折曲するように成型されている。ベース板部204は、パチスロ1の前後方向に直交する一方の平面である後面204bと他方の平面である前面204a(図9参照)を有している。後面204bには、メダルレール210が、パチスロ1の前方へ凹むように、且つ、略L字状に形成されている。メダルレール210の表面には、複数の突条部が形成されている。   The base plate portion 204 is a substantially plate-like member that constitutes the outer frame housing of the medal selector 201, and is molded so that both left and right end portions of the pachi-slot 1 bend to the rear of the pachi-slot 1. The base plate portion 204 has a rear surface 204b that is one plane orthogonal to the front-rear direction of the pachislot 1 and a front surface 204a (see FIG. 9) that is the other plane. A medal rail 210 is formed on the rear surface 204b so as to be recessed forward of the pachi-slot 1 and in a substantially L shape. A plurality of ridges are formed on the surface of the medal rail 210.

ベース板部204の上端部には、メダル投入口21(図2参照)から投入されるメダルを受け入れるメダル入口部211が設けられている。メダル入口部211からメダルセレクタ201内に投入されたメダルは、メダルレール210に沿って上方から下方へ移動する。ベース板部204の下部には、メダル出口部204c(図8参照)が設けられている。メダルセレクタ201内を移動したメダルは、メダル出口部204cから排出され、スロープ203(図4参照)を介してホッパー装置51に収容される。   At the upper end portion of the base plate portion 204, a medal entrance portion 211 that receives a medal inserted from the medal insertion port 21 (see FIG. 2) is provided. A medal inserted into the medal selector 201 from the medal entrance 211 moves along the medal rail 210 from above to below. A medal outlet portion 204c (see FIG. 8) is provided at the lower portion of the base plate portion 204. The medals that have moved in the medal selector 201 are discharged from the medal outlet 204c and are accommodated in the hopper device 51 via the slope 203 (see FIG. 4).

メダルレール210の略中間位置には前後方向に貫通する中央孔212が形成されており、この中央孔212からはメダルプレッシャ213(図8参照)の端部が露出している。図9に示すように、メダルプレッシャ213は、ベース板部204の前面204aに設けられた軸部214に回動可能に支持されている。この軸部214には、コイルばね215が取り付けられており、メダルプレッシャ213は、コイルばね215により、メダルプレッシャ213が中央孔212から突出するように付勢されている。   A central hole 212 penetrating in the front-rear direction is formed at a substantially intermediate position of the medal rail 210, and an end of the medal pressure 213 (see FIG. 8) is exposed from the central hole 212. As shown in FIG. 9, the medal pressure 213 is rotatably supported by a shaft portion 214 provided on the front surface 204 a of the base plate portion 204. A coil spring 215 is attached to the shaft portion 214, and the medal pressure 213 is urged by the coil spring 215 so that the medal pressure 213 protrudes from the central hole 212.

図9に示すように、ベース板部204の前面204aには、磁石217が設けられている。磁石217は、メダルレール210上を移動するメダルの内、適正な材質でない不正メダルを吸着(着磁)する。   As shown in FIG. 9, a magnet 217 is provided on the front surface 204 a of the base plate portion 204. The magnet 217 attracts (magnetizes) an illegal medal that is not an appropriate material among medals moving on the medal rail 210.

また、図8に示すように、メダルレール210の下流領域の略中央部には、前後方向に貫通し、後述するアフタメダルプレッシャ218の後端部が露出する上露出孔219が形成されている。また、メダルレール210の下流領域の下部には、前後方向に貫通し、セレクトプレート207の後述するメダルストッパ部227が露出する下露出孔220が形成されている。   As shown in FIG. 8, an upper exposure hole 219 that penetrates in the front-rear direction and exposes a rear end portion of an after-medal pressure 218, which will be described later, is formed in a substantially central portion of the downstream region of the medal rail 210. . Further, a lower exposure hole 220 that penetrates in the front-rear direction and exposes a later-described medal stopper portion 227 of the select plate 207 is formed in the lower portion of the downstream area of the medal rail 210.

図9に示すように、アフタメダルプレッシャ218は、ベース板部204の前面204aに回動可能に軸支されている。アフタメダルプレッシャ218の前端部がメダルソレノイド208によってパチスロ1の後方へ押圧されると、アフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   As shown in FIG. 9, the after medal pressure 218 is pivotally supported on the front surface 204 a of the base plate portion 204 so as to be rotatable. When the front end of the after medal pressure 218 is pressed rearward of the pachislot 1 by the medal solenoid 208, the after medal pressure 218 rotates, and the rear end of the after medal pressure 218 passes through the upper exposure hole 219 (see FIG. 8). Exposed.

図7及び図8に示すように、キャンセルシュータ206は、略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の前方に折曲するように成型されている。キャンセルシュータ206は、ベース板部204に着脱可能に固定され、ベース板部204の下部を後方から覆っている。キャンセルシュータ206は、メダル出口部204cを介することなく排出されるメダルをメダルシュート202(図4参照)に案内する。キャンセルシュータ206の左右方向の略中央部の上部には、下方に略矩形状に切り欠いた切欠き部206aが形成されている。   As shown in FIGS. 7 and 8, the cancel shooter 206 is a substantially plate-like member, and is molded so that both ends in the left-right direction of the pachislot 1 bend forward of the pachislot 1. The cancel shooter 206 is detachably fixed to the base plate portion 204 and covers the lower portion of the base plate portion 204 from the rear. The cancel shooter 206 guides the medals discharged without going through the medal outlet 204c to the medal chute 202 (see FIG. 4). A cutout portion 206 a that is cut out in a substantially rectangular shape is formed at the upper portion of the substantially central portion in the left-right direction of the cancel shooter 206.

図7に示すように、サブプレート205は、メダルレール210を後方から覆う板状の部材である。サブプレート205は、平板状の本体部221と、この本体部221の上部に設けた軸部222と、を有している。本体部221の略中央部には、前後方向に貫通する貫通孔221aが設けられており、貫通孔221aからはメダルレール210の略中央部から下流領域が露出している。   As shown in FIG. 7, the sub plate 205 is a plate-like member that covers the medal rail 210 from behind. The sub-plate 205 has a flat plate-like main body part 221 and a shaft part 222 provided on the upper part of the main body part 221. A through hole 221a penetrating in the front-rear direction is provided in a substantially central portion of the main body portion 221, and a downstream region is exposed from the substantially central portion of the medal rail 210 from the through hole 221a.

軸部222は、ベース板部204に支持されており、サブプレート205は、軸部222を中心に回動可能にベース板部204に取り付けられている。軸部222には、コイルばね223が取り付けられている。通常時、サブプレート205は、コイルばね223の付勢力により、ベース板部204側に押し付けられている。このとき、サブプレート205と、サブプレート205に覆われたメダルレール210の上部との間には、メダルが通過可能な空間が形成されている。すなわち、サブプレート205は、メダルを通過させるガイド板として機能する。   The shaft portion 222 is supported by the base plate portion 204, and the sub-plate 205 is attached to the base plate portion 204 so as to be rotatable about the shaft portion 222. A coil spring 223 is attached to the shaft portion 222. Under normal conditions, the sub plate 205 is pressed against the base plate portion 204 side by the biasing force of the coil spring 223. At this time, a space through which medals can pass is formed between the sub plate 205 and the upper part of the medal rail 210 covered with the sub plate 205. That is, the sub plate 205 functions as a guide plate that allows the medal to pass therethrough.

ここで、例えば、メダルセレクタ201内にメダル詰まりが生じた場合、サブプレート205をコイルばね223の付勢力に抗して回動させて、メダル詰まりを解消することができる。   Here, for example, when a medal jam occurs in the medal selector 201, the sub plate 205 can be rotated against the urging force of the coil spring 223 to eliminate the medal jam.

図8に示すように、セレクトプレート207は、サブプレート205に覆われていないメダルレール210の略中央部を移動するメダルをガイドする部材である。図10に示すように、セレクトプレート207は、略台形板状のプレート本体224と、プレート本体224の左右方向の両端部がパチスロ1の前方へ折曲することで形成されている一対の軸受部225と、を有している。また、プレート本体224の上部には、パチスロ1の前方へ折曲し、後端部が上方へ折曲することで形成されているフランジ部226が形成されている。また、一方の軸受部225には、下方へ延びるメダルストッパ部227が形成されている。   As shown in FIG. 8, the select plate 207 is a member that guides a medal that moves in a substantially central portion of the medal rail 210 that is not covered by the sub plate 205. As shown in FIG. 10, the select plate 207 includes a substantially trapezoidal plate main body 224 and a pair of bearing portions formed by bending both left and right end portions of the plate main body 224 forward of the pachislot 1. 225. A flange portion 226 is formed on the upper portion of the plate main body 224. The flange portion 226 is formed by bending the pachislot 1 forward and bending the rear end portion upward. One bearing portion 225 is formed with a medal stopper portion 227 extending downward.

図8に示すように、プレート本体224は、サブプレート205に覆われていないメダルレール210の略中央部とパチスロ1の前後方向に対向している。   As shown in FIG. 8, the plate main body 224 is opposed to the substantially central portion of the medal rail 210 not covered by the sub-plate 205 in the front-rear direction of the pachislot 1.

図9に示すように、セレクトプレート207は、ベース板部204の前面204aに設けられた軸部228に回動可能に支持されている。軸部228にはコイルばね229が設けられており、フランジ部226をパチスロ1の前方へ付勢する。フランジ部226は、メダルソレノイド208の一端部と接触している。メダルソレノイド208がON状態にあるとき、フランジ部226はメダルソレノイド208の一端部に押圧され、コイルばね229の付勢力に抗してパチスロ1の後方へ移動する。このときの、セレクトプレート207の回動位置を「ガイド位置」と称する。ガイド位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、メダルをキャンセルシュータ206側に排出することなくホッパー装置51へガイド可能な所定の距離に設定されている。また、このときメダルストッパ部227は、下露出孔220(図8参照)から突出しない。   As shown in FIG. 9, the select plate 207 is rotatably supported by a shaft portion 228 provided on the front surface 204 a of the base plate portion 204. The shaft portion 228 is provided with a coil spring 229 and biases the flange portion 226 forward of the pachislot 1. The flange portion 226 is in contact with one end portion of the medal solenoid 208. When the medal solenoid 208 is in the ON state, the flange portion 226 is pressed by one end of the medal solenoid 208 and moves to the rear of the pachislot 1 against the urging force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “guide position”. The distance between the plate body 224 of the select plate 207 at the guide position and the medal rail 210 is set to a predetermined distance that allows the medal to be guided to the hopper device 51 without discharging the medal to the cancel shooter 206 side. At this time, the medal stopper portion 227 does not protrude from the lower exposure hole 220 (see FIG. 8).

また、メダルソレノイド208がOFF状態にあるとき、フランジ部226はメダルソレノイド208の押圧から解放され、コイルばね229の付勢力によってパチスロ1の前方へ移動する。このときの、セレクトプレート207の回動位置を「排出位置」と称する。排出位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、所定の距離よりも長い距離に設定されている。このとき、パチスロ1の前方へ移動するフランジ部226に押圧され、メダルソレノイド208の一端部はパチスロ1の前方へ移動する。これに伴ってメダルソレノイド208の他端部がパチスロ1の後方へ移動し、アフタメダルプレッシャ218の前端部を押圧する。これによってアフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   When the medal solenoid 208 is in the OFF state, the flange portion 226 is released from the pressing of the medal solenoid 208 and moves forward of the pachislot 1 by the biasing force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “discharge position”. The distance between the plate body 224 of the select plate 207 at the discharge position and the medal rail 210 is set to be longer than a predetermined distance. At this time, the flange portion 226 that moves forward of the pachislot 1 is pressed, and one end of the medal solenoid 208 moves forward of the pachislot 1. Along with this, the other end of the medal solenoid 208 moves to the rear of the pachislot 1 and presses the front end of the after medal pressure 218. As a result, the after medal pressure 218 rotates and the rear end of the after medal pressure 218 is exposed from the upper exposure hole 219 (see FIG. 8).

メダルストッパ部227は、セレクトプレート207がガイド位置にあるときは下露出孔220(図8参照)から突出せず、排出位置にあるときは下露出孔220から突出する。   The medal stopper 227 does not protrude from the lower exposure hole 220 (see FIG. 8) when the select plate 207 is at the guide position, and protrudes from the lower exposure hole 220 when at the discharge position.

図11に示すように、ガイド位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合、移動するメダルの上部と接触し、メダルをメダル出口部204c(図8参照)へ案内する。メダルは、セレクトプレート207に案内されているとき、メダルプレッシャ213をパチスロ1の前方へ押圧する。なお、図11では、メダルセレクタ201のサブプレート205やキャンセルシュータ206の図示を省略している。   As shown in FIG. 11, when the medal moving on the medal rail 210 satisfies the standard dimension, the select plate 207 at the guide position comes into contact with the upper part of the moving medal and the medal outlet 204c (see FIG. 8). ) When the medal is guided by the select plate 207, the medal pressure 213 is pressed forward of the pachislot 1. In FIG. 11, illustration of the sub plate 205 and the cancel shooter 206 of the medal selector 201 is omitted.

一方、図12に示すように、排出位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合であっても、プレート本体224とメダルレール210との距離が離れているため、メダルをメダル出口部204c(図8参照)へ案内することができない。また、メダルは、メダルプレッシャ213、上露出孔219から突出するアフタメダルプレッシャ218、または、下露出孔220から突出するメダルストッパ部227に押し出され、キャンセルシュータ206に向けて排出される。なお、図12では、図11と同様に、メダルセレクタ201のサブプレート205やキャンセルシュータ206の図示を省略している。   On the other hand, as shown in FIG. 12, the select plate 207 in the discharge position has a distance between the plate body 224 and the medal rail 210 even if the medal moving on the medal rail 210 satisfies the standard dimension. Therefore, the medal cannot be guided to the medal outlet 204c (see FIG. 8). The medal is pushed out by the medal pressure 213, the after medal pressure 218 protruding from the upper exposure hole 219, or the medal stopper portion 227 protruding from the lower exposure hole 220, and is discharged toward the cancel shooter 206. In FIG. 12, as in FIG. 11, the sub-plate 205 and the cancel shooter 206 of the medal selector 201 are not shown.

また、本実施形態においてセレクトプレート207は、通常、ガイド位置に位置付けされているが、所定の条件下(例えば、規定枚数のメダル投入時、エラー発生時、遊技開始時など)では、排出位置に位置付けされている。   In this embodiment, the select plate 207 is normally positioned at the guide position. However, under a predetermined condition (for example, when a predetermined number of medals are inserted, when an error occurs, when a game starts, etc.), It is positioned.

また、メダルレール210上を移動するメダルが規格寸法よりも小径の場合、セレクトプレート207がガイド位置にあっても、メダルはセレクトプレート207に案内されず、メダルプレッシャ213に押し出され、キャンセルシュータ206に向けて排出される。   If the medal moving on the medal rail 210 has a smaller diameter than the standard dimension, even if the select plate 207 is in the guide position, the medal is not guided to the select plate 207 but pushed out to the medal pressure 213 and the cancel shooter 206 It is discharged toward

図7及び図8に示すように、カメラユニット209は、第1の基板230と第2の基板231で構成されており、メダルレール210上を移動する物体が正規メダルか否かを判別するユニットである。第1の基板230には、CMOSイメージセンサ232(図16参照)及びLED233(図16参照)が設けられている。第2の基板231には、CMOSイメージセンサ232及びLED233と通信可能、及び、制御可能に接続されている制御LSI234(図16参照)が設けられている。第1の基板230と第2の基板231は、BtoB(Board-to-Board)形式のコネクタ(不図示)で接続され、また、各基板230、231の角部に設けられた脚部235によって固定されている。なお、カメラユニット209の回路の具体的な構成については後述する。また、本実施形態では、カメラユニット209を2つの基板230、231で構成する態様を説明したが、これに代えて、CMOSイメージセンサ232、LED233及び制御LSI234を設けた1つの基板で、カメラユニットを構成してもよい。   As shown in FIGS. 7 and 8, the camera unit 209 includes a first board 230 and a second board 231, and determines whether or not an object moving on the medal rail 210 is a regular medal. It is. The first substrate 230 is provided with a CMOS image sensor 232 (see FIG. 16) and an LED 233 (see FIG. 16). The second substrate 231 is provided with a control LSI 234 (see FIG. 16) connected to the CMOS image sensor 232 and the LED 233 so as to be communicable and controllable. The first substrate 230 and the second substrate 231 are connected by a BtoB (Board-to-Board) type connector (not shown), and by legs 235 provided at the corners of the substrates 230 and 231. It is fixed. The specific configuration of the camera unit 209 circuit will be described later. Further, in the present embodiment, the mode in which the camera unit 209 is configured by the two substrates 230 and 231 has been described, but instead of this, the camera unit 209 is configured by a single substrate provided with the CMOS image sensor 232, the LED 233, and the control LSI 234. May be configured.

カメラユニット209は、キャンセルシュータ206の上部の切欠き部206aの周囲に設けられたビス穴206bに、第1の基板230がビス止めされることで、固定されている。CMOSイメージセンサ232(図16参照)は、第1の基板230の略中央部分に設けられている。CMOSイメージセンサ232は、メダルレール210上を移動するメダルを撮像し、撮像したメダルの画像データを制御LSI234(図16参照)に出力する。LED233(図16参照)は、CMOSイメージセンサ232の周囲で面発光し、メダルレール210上を移動するメダルに光を照射する。制御LSI234(図16参照)は、CMOSイメージセンサ232から出力された画像データに基づいて、メダルレール210上を移動する物体が正規メダルか否かを判別し、判別結果を出力する。すなわち、本実施形態では、制御LSI234はメダルレール210上を移動するメダルが正規メダルか否かを判別する、遊技媒体判定手段を構成する。なお、本実施形態では、切欠き部206aの周囲に形成したビス穴206bにビス止めすることでカメラユニット209をキャンセルシュータ206に固定する態様を説明したが、カメラユニットの固定態様はこれに限定されない。例えば、第1の基板230と第2の基板231の間に取り付けレールを設け、また、キャンセルシュータ206の上部に凹部を設け、この凹部に取り付けレールを嵌めた上で、取り付けレールとキャンセルシュータ206をビス止めまたは接着剤で固定するようにしてもよい。   The camera unit 209 is fixed by screwing the first substrate 230 into a screw hole 206b provided around a notch 206a at the top of the cancel shooter 206. The CMOS image sensor 232 (see FIG. 16) is provided at a substantially central portion of the first substrate 230. The CMOS image sensor 232 images a medal that moves on the medal rail 210 and outputs image data of the imaged medal to the control LSI 234 (see FIG. 16). The LED 233 (see FIG. 16) emits light around the CMOS image sensor 232, and irradiates the medal moving on the medal rail 210 with light. The control LSI 234 (see FIG. 16) determines whether the object moving on the medal rail 210 is a regular medal based on the image data output from the CMOS image sensor 232, and outputs the determination result. That is, in the present embodiment, the control LSI 234 constitutes a game medium determination unit that determines whether or not a medal moving on the medal rail 210 is a regular medal. In this embodiment, the mode in which the camera unit 209 is fixed to the cancel shooter 206 by screwing in the screw hole 206b formed around the notch portion 206a has been described. However, the camera unit fixing mode is limited to this. Not. For example, an attachment rail is provided between the first substrate 230 and the second substrate 231, and a recess is provided in the upper part of the cancel shooter 206. The attachment rail and the cancel shooter 206 are fitted in the recess. May be fixed with screws or an adhesive.

<パチスロの回路構成>
次に、パチスロ1が備える回路の構成について、図13〜図20を参照して説明する。まず、図13を参照してパチスロ1が備える回路全体の概要について説明する。図13は、パチスロ1が備える回路全体のブロック構成図である。
<Pachislot circuit configuration>
Next, a configuration of a circuit included in the pachislo 1 will be described with reference to FIGS. First, the outline of the entire circuit provided in the pachislot machine 1 will be described with reference to FIG. FIG. 13 is a block configuration diagram of the entire circuit provided in the pachi-slot 1.

パチスロ1は、ミドルドア41に配設された主制御基板71と、フロントドア2bに配設された副制御基板72を有している。主制御基板71には、リール中継端子板74と、設定用鍵型スイッチ56と、外部集中端子板47と、ホッパー装置51と、メダル補助収納庫スイッチ75と、電源装置53の電源基板53bが接続されている。設定用鍵型スイッチ56、外部集中端子板47、ホッパー装置51及びメダル補助収納庫スイッチ75は、キャビネット側中継基板44を介して主制御基板71に接続されている。外部集中端子板47及びホッパー装置51については、上述したため、説明を省略する。   The pachi-slot 1 has a main control board 71 disposed on the middle door 41 and a sub-control board 72 disposed on the front door 2b. The main control board 71 includes a reel relay terminal board 74, a setting key switch 56, an external concentration terminal board 47, a hopper device 51, a medal auxiliary storage switch 75, and a power supply board 53b of the power supply 53. It is connected. The setting key switch 56, the external concentration terminal board 47, the hopper device 51, and the medal auxiliary storage switch 75 are connected to the main control board 71 via the cabinet-side relay board 44. Since the external concentration terminal board 47 and the hopper device 51 have been described above, description thereof will be omitted.

リール中継端子板74は、各リール3L、3C、3Rのリール本体の内側に配設されている。このリール中継端子板74は、各リール3L、3C、3Rのステッピングモータ(不図示)に電気的に接続されており、主制御基板71からステッピングモータに出力される信号を中継する。   The reel relay terminal board 74 is disposed inside the reel body of each of the reels 3L, 3C, 3R. The reel relay terminal plate 74 is electrically connected to stepping motors (not shown) of the reels 3L, 3C, and 3R, and relays signals output from the main control board 71 to the stepping motors.

メダル補助収納庫スイッチ75は、メダル補助収納庫52のスイッチ貫通孔(非表示)を貫通している。このメダル補助収納庫スイッチ75は、メダル補助収納庫52がメダルで満杯になっているか否かを検出する。   The medal auxiliary storage switch 75 passes through a switch through hole (not shown) of the medal auxiliary storage 52. The medal auxiliary storage switch 75 detects whether or not the medal auxiliary storage 52 is full of medals.

電源装置53の電源基板53bには、電源スイッチ53aが接続されている。この電源スイッチ53aは、パチスロ1に必要な電源を供給するときにONにする。   A power switch 53 a is connected to the power supply board 53 b of the power supply device 53. The power switch 53a is turned on when supplying necessary power to the pachislot machine 1.

また、主制御基板71には、ドア中継端子板68を介して、メダルセレクタ201、ドア開閉監視スイッチ67、BETスイッチ77、精算スイッチ78、スタートスイッチ79、ストップスイッチ基板80、遊技動作表示基板81及び副中継基板61が接続されている。ドア開閉監視スイッチ67及び副中継基板61については、上述したため、説明を省略する。メダルセレクタ201の回路構成については後述する。   The main control board 71 has a medal selector 201, a door open / close monitoring switch 67, a BET switch 77, a settlement switch 78, a start switch 79, a stop switch board 80, and a game operation display board 81 via a door relay terminal board 68. The sub-relay board 61 is connected. Since the door opening / closing monitoring switch 67 and the sub relay board 61 have been described above, the description thereof will be omitted. The circuit configuration of the medal selector 201 will be described later.

BETスイッチ77は、BETボタン22が遊技者により押されたことを検出する。精算スイッチ78は、精算ボタン27が遊技者により押されたことを検出する。スタートスイッチ79は、スタートレバー23が遊技者により操作されたこと(開始操作)を検出する。   The BET switch 77 detects that the BET button 22 has been pressed by the player. The settlement switch 78 detects that the settlement button 27 has been pressed by the player. The start switch 79 detects that the start lever 23 has been operated by the player (start operation).

ストップスイッチ基板80は、回転しているリールを停止させるための回路と、停止可能なリールをLEDなどにより表示するための回路を構成する基板である。このストップスイッチ基板80には、ストップスイッチが設けられている。ストップスイッチは、各ストップボタン19L、19C、19Rが遊技者により押されたこと(停止操作)を検出する。   The stop switch substrate 80 is a substrate constituting a circuit for stopping the rotating reel and a circuit for displaying the stopable reel by an LED or the like. The stop switch substrate 80 is provided with a stop switch. The stop switch detects that each stop button 19L, 19C, 19R has been pressed by the player (stop operation).

遊技動作表示基板81は、メダルの投入を受け付けるとき、3つのリール3L、3C、3Rが回動可能なとき及び再遊技を行うときに、投入されたメダルの枚数を7セグ表示器24に表示させるための基板である。この遊技動作表示基板81には、7セグ表示器24とLED82が接続されている。LED82は、例えば、遊技の開始を表示するマークや再遊技を行うマークなどを点灯させる。   The game operation display board 81 displays the number of inserted medals on the 7-segment display 24 when accepting insertion of medals, when the three reels 3L, 3C, 3R are rotatable and when replaying. It is a substrate for making it. A 7-segment display 24 and an LED 82 are connected to the game operation display board 81. The LED 82 lights, for example, a mark for displaying the start of a game or a mark for performing a re-game.

副制御基板72は、ドア中継端子板68と副中継基板61を介して主制御基板71に接続されている。この副制御基板72には、副中継基板61を介して、サウンドI/O基板84、LED基板62A、62B、62C、24hドア開閉監視ユニット63が接続されている。これらLED基板62A、62B、62C及び24hドア開閉監視ユニット63については、上述したため、説明を省略する。   The sub control board 72 is connected to the main control board 71 via the door relay terminal board 68 and the sub relay board 61. A sound I / O board 84, LED boards 62A, 62B, 62C, and a 24h door open / close monitoring unit 63 are connected to the sub control board 72 through a sub relay board 61. Since these LED substrates 62A, 62B, 62C and the 24h door opening / closing monitoring unit 63 have been described above, the description thereof will be omitted.

サウンドI/O基板84は、センタースピーカ58、ボードスピーカ64、下部スピーカ65L、65R及びフロントドア2bに設けられた不図示のスピーカへの音声の出力を行う。   The sound I / O board 84 outputs sound to a center speaker 58, a board speaker 64, lower speakers 65L and 65R, and a speaker (not shown) provided on the front door 2b.

また、副制御基板72には、ロムカートリッジ基板86と、液晶中継基板87が接続されている。これらロムカートリッジ基板86及び液晶中継基板87は、副制御基板72と共に副制御基板ケース57に収納されている。ロムカートリッジ基板86は、演出用の画像(映像)、音声、LED基板62A、62B及びその他のLED基板(不図示)、通信のデータを管理するための基板である。液晶中継基板87は、副制御基板72と液晶表示装置11とを接続する配線を中継する基板である。   The sub-control board 72 is connected to a ROM cartridge board 86 and a liquid crystal relay board 87. The ROM cartridge substrate 86 and the liquid crystal relay substrate 87 are housed in the sub control board case 57 together with the sub control board 72. The ROM cartridge substrate 86 is a substrate for managing production images (video), sound, LED substrates 62A and 62B, other LED substrates (not shown), and communication data. The liquid crystal relay substrate 87 is a substrate that relays wiring that connects the sub-control board 72 and the liquid crystal display device 11.

[主制御回路]
次に、主制御基板71により構成される主制御回路91について、図14を参照して説明する。図14は、パチスロ1の主制御回路91の構成例を示すブロック図である。
[Main control circuit]
Next, the main control circuit 91 constituted by the main control board 71 will be described with reference to FIG. FIG. 14 is a block diagram illustrating a configuration example of the main control circuit 91 of the pachi-slot 1.

主制御回路91は、主制御基板71上に設置されたマイクロコンピュータ92を主たる構成要素としている。マイクロコンピュータ92は、メインCPU93、メインROM94及びメインRAM95により構成される。メインCPU93と前述のホッパー装置51は、本発明の遊技媒体払出装置を構成している。   The main control circuit 91 includes a microcomputer 92 installed on the main control board 71 as a main component. The microcomputer 92 includes a main CPU 93, a main ROM 94, and a main RAM 95. The main CPU 93 and the hopper device 51 described above constitute a game medium payout device of the present invention.

メインROM94には、メインCPU93により実行される制御プログラム(例えば、上述した内部抽籤処理の実行のためのプログラム)、データテーブル、副制御回路101に対して各種制御指令(コマンド)を送信するためのデータ等が記憶されている。メインRAM95には、制御プログラムの実行により決定された内部当籤役等の各種データを格納する格納領域が設けられる。   The main ROM 94 is used to transmit various control commands (commands) to the control program executed by the main CPU 93 (for example, the program for executing the internal lottery process described above), the data table, and the sub-control circuit 101. Data etc. are stored. The main RAM 95 is provided with a storage area for storing various data such as an internal winning combination determined by execution of the control program.

メインCPU93には、クロックパルス発生回路96、分周器97、乱数発生器98及びサンプリング回路99が接続されている。クロックパルス発生回路96及び分周器97は、クロックパルスを発生する。メインCPU93は、発生されたクロックパルスに基づいて、制御プログラムを実行する。乱数発生器98は、予め定められた範囲の乱数(例えば、0〜65535)を発生する。サンプリング回路99は、発生された乱数の中から1つの値を抽出する。   The main CPU 93 is connected to a clock pulse generation circuit 96, a frequency divider 97, a random number generator 98, and a sampling circuit 99. The clock pulse generation circuit 96 and the frequency divider 97 generate clock pulses. The main CPU 93 executes a control program based on the generated clock pulse. The random number generator 98 generates a random number in a predetermined range (for example, 0 to 65535). The sampling circuit 99 extracts one value from the generated random numbers.

メインCPU93は、リールインデックスを検出してから各リール3L、3C、3Rのステッピングモータに対してパルスを出力した回数をカウントする。これにより、メインCPU93は、各リール3L、3C、3Rの回転角度(主に、リールが図柄何個分だけ回転したか)を管理する。なお、リールインデックスとは、リールが一回転したことを示す情報である。このリールインデックスは、例えば、発光部及び受光部を有する光センサと、各リール3L、3C、3Rの所定の位置に設けられ、各リール3L、3C、3Rの回転により発光部と受光部との間に介在される検知片を備えたリール位置検出部(不図示)により検出する。   The main CPU 93 counts the number of times pulses are output to the stepping motors of the reels 3L, 3C, and 3R after detecting the reel index. Thereby, the main CPU 93 manages the rotation angle of each reel 3L, 3C, 3R (mainly, how many symbols the reel has rotated). The reel index is information indicating that the reel has made one revolution. For example, the reel index is provided at a predetermined position of each of the reels 3L, 3C, and 3R, and the light sensor and the light receiving unit are rotated by rotation of the reels 3L, 3C, and 3R. Detection is performed by a reel position detection unit (not shown) including a detection piece interposed therebetween.

ここで、各リール3L、3C、3Rの回転角度の管理について、具体的に説明する。ステッピングモータに対して出力されたパルスの数は、メインRAM95に設けられたパルスカウンタによって計数される。そして、図柄1つ分の回転に必要な所定回数(例えば16回)のパルスの出力がパルスカウンタで計数される毎に、メインRAM95に設けられた図柄カウンタが1ずつ加算される。図柄カウンタは、各リール3L、3C、3Rに応じて設けられている。図柄カウンタの値は、リール位置検出部(不図示)によってリールインデックスが検出されるとクリアされる。   Here, management of the rotation angles of the reels 3L, 3C, and 3R will be specifically described. The number of pulses output to the stepping motor is counted by a pulse counter provided in the main RAM 95. Each time the output of a predetermined number of pulses (for example, 16 times) necessary for the rotation of one symbol is counted by the pulse counter, the symbol counter provided in the main RAM 95 is incremented by one. The symbol counter is provided for each reel 3L, 3C, 3R. The value of the symbol counter is cleared when a reel index is detected by a reel position detector (not shown).

つまり、本実施の形態では、図柄カウンタを管理することにより、リールインデックスが検出されてから図柄何個分の回転が行われたのかを管理するようになっている。したがって、各リール3L、3C、3Rの各図柄の位置は、リールインデックスが検出される位置を基準として検出される。   In other words, in the present embodiment, by managing the symbol counter, it is possible to manage how many symbols have been rotated since the reel index was detected. Therefore, the position of each symbol on each reel 3L, 3C, 3R is detected with reference to the position where the reel index is detected.

上述したように、滑り駒数の最大数を図柄4個分に定めた場合は、左ストップボタン19Lが押されたときにリール表示窓4の中段にある左リール3Lの図柄と、その4個先の図柄までの範囲内にある各図柄が、リール表示窓4の中段に停止可能な図柄となる。   As described above, when the maximum number of sliding symbols is set to four symbols, the symbol of the left reel 3L in the middle of the reel display window 4 when the left stop button 19L is pressed, and the four symbols. Each symbol within the range up to the previous symbol becomes a symbol that can be stopped at the middle stage of the reel display window 4.

[副制御回路]
次に、副制御基板72により構成される副制御回路101について、図15を参照して説明する。図15は、パチスロ1の副制御回路101の構成例を示すブロック図である。
[Sub control circuit]
Next, the sub control circuit 101 constituted by the sub control board 72 will be described with reference to FIG. FIG. 15 is a block diagram illustrating a configuration example of the sub control circuit 101 of the pachi-slot 1.

副制御回路101は、主制御回路91と電気的に接続されており、主制御回路91から送信されるコマンドに基づいて演出内容の決定や実行等の処理を行う。副制御回路101は、基本的に、サブCPU102、サブRAM103、レンダリングプロセッサ104、描画用RAM105、ドライバ106を含んで構成されている。   The sub control circuit 101 is electrically connected to the main control circuit 91 and performs processing such as determination and execution of effect contents based on a command transmitted from the main control circuit 91. The sub control circuit 101 basically includes a sub CPU 102, a sub RAM 103, a rendering processor 104, a drawing RAM 105, and a driver 106.

サブCPU102は、主制御回路91から送信されたコマンドに応じて、ロムカートリッジ基板86に記憶されている制御プログラムに従い、映像、音、光の出力の制御を行う。ロムカートリッジ基板86は、基本的に、プログラム記憶領域とデータ記憶領域によって構成される。   The sub CPU 102 controls the output of video, sound, and light according to the control program stored in the ROM cartridge substrate 86 in accordance with the command transmitted from the main control circuit 91. The ROM cartridge substrate 86 basically includes a program storage area and a data storage area.

プログラム記憶領域には、サブCPU102が実行する制御プログラムが記憶されている。例えば、制御プログラムには、主制御回路91との通信を制御するための主基板通信タスクや、演出用乱数値を抽出し、演出内容(演出データ)の決定及び登録を行うための演出登録タスクが含まれる。また、決定した演出内容に基づいて液晶表示装置11(図2参照)による映像の表示を制御する描画制御タスク、LED85等の光源による光の出力を制御するランプ制御タスク、スピーカ58、64、65L、65R等のスピーカによる音の出力を制御する音声制御タスク等が含まれる。   A control program executed by the sub CPU 102 is stored in the program storage area. For example, the control program includes a main board communication task for controlling communication with the main control circuit 91 and an effect registration task for extracting and registering effect contents (effect data) by extracting effect random numbers. Is included. Further, a drawing control task for controlling display of an image by the liquid crystal display device 11 (see FIG. 2) based on the determined contents of the effect, a lamp control task for controlling light output by a light source such as the LED 85, and the speakers 58, 64, 65L. , 65R, etc., a voice control task for controlling the output of sound by a speaker.

データ記憶領域は、各種データテーブルを記憶する記憶領域、各演出内容を構成する演出データを記憶する記憶領域、映像の作成に関するアニメーションデータを記憶する記憶領域が含まれている。また、BGMや効果音に関するサウンドデータを記憶する記憶領域、光の点消灯のパターンに関するランプデータを記憶する記憶領域等が含まれている。   The data storage area includes a storage area for storing various data tables, a storage area for storing effect data constituting each effect content, and a storage area for storing animation data related to creation of video. Also included are a storage area for storing sound data related to BGM and sound effects, a storage area for storing lamp data related to the light on / off pattern, and the like.

サブRAM103は、決定された演出内容や演出データを登録する格納領域や、主制御回路91から送信される内部当籤役等の各種データを格納する格納領域が設けられている。   The sub-RAM 103 is provided with a storage area for registering the determined contents and effects data, and a storage area for storing various data such as an internal winning combination transmitted from the main control circuit 91.

サブCPU102、レンダリングプロセッサ104、描画用RAM(フレームバッファを含む)105及びドライバ106は、演出内容により指定されたアニメーションデータにしたがって映像を作成し、作成した映像を液晶表示装置11に表示させる。   The sub CPU 102, the rendering processor 104, the drawing RAM (including the frame buffer) 105, and the driver 106 create a video according to the animation data designated by the contents of the presentation, and display the created video on the liquid crystal display device 11.

また、サブCPU102は、演出内容により指定されたサウンドデータにしたがってBGMなどの音をスピーカ58、64、65L、65R等のスピーカにより出力させる。また、サブCPU102は、演出内容により指定されたランプデータにしたがってLED85等の光源の点灯及び消灯を制御する。   Further, the sub CPU 102 causes a speaker such as speakers 58, 64, 65L, and 65R to output a sound such as BGM according to the sound data specified by the production contents. Further, the sub CPU 102 controls the turning on and off of the light source such as the LED 85 according to the lamp data designated by the contents of the effect.

<メダルセレクタの回路構成>
次に、メダルセレクタ201の回路構成について、図16を参照して説明する。図16は、メダルセレクタ201の回路構成例を示すブロック図である。
<Circuit configuration of medal selector>
Next, the circuit configuration of the medal selector 201 will be described with reference to FIG. FIG. 16 is a block diagram illustrating a circuit configuration example of the medal selector 201.

図16に示すように、メダルセレクタ201は、カメラユニット209とメダルソレノイド208を備えている。また、メダルセレクタ201は、ドア中継端子板68を介して、主制御基板71に接続されている。すなわちメダルセレクタ201は、主制御回路91と電気的に接続されている。したがって、主制御回路91は、メダルセレクタ201のメダルソレノイド208をON状態またはOFF状態に設定することができる。   As shown in FIG. 16, the medal selector 201 includes a camera unit 209 and a medal solenoid 208. The medal selector 201 is connected to the main control board 71 via the door relay terminal board 68. That is, the medal selector 201 is electrically connected to the main control circuit 91. Therefore, the main control circuit 91 can set the medal solenoid 208 of the medal selector 201 to the ON state or the OFF state.

カメラユニット209は、制御LSI234、CMOSイメージセンサ232及びLED233で構成されている。カメラユニット209の制御LSI234は、例えば、ASIC(Application Specific Integrated Circuit)やFPGA(Field-programmable Gate Array)等の、画像処理制御専用のLSIとして構成され、CMOSイメージセンサ232及びLED233と電気的に接続されている。制御LSI234は、LED233の発光を制御する。また、制御LSI234は、CMOSイメージセンサ232から出力された画像データに基づいて、投入が正規メダルか否かを判別し、判別結果を、ドア中継端子板68を介して主制御基板71に出力する。なお、本実施形態において、採用されているCMOSイメージセンサ232は、解像度が648×488ピクセルであり、フレームレートが240fps(Frames Per Second)のCMOSイメージセンサであるが、このようなイメージセンサに限定される必要はない(CMOS以外の撮像装置も用いられ得る)。また、LED以外の発光装置を用いることもできる。   The camera unit 209 includes a control LSI 234, a CMOS image sensor 232, and an LED 233. The control LSI 234 of the camera unit 209 is configured as an LSI dedicated to image processing control such as an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA), and is electrically connected to the CMOS image sensor 232 and the LED 233, for example. Has been. The control LSI 234 controls the light emission of the LED 233. Further, the control LSI 234 determines whether the insertion is a regular medal based on the image data output from the CMOS image sensor 232, and outputs the determination result to the main control board 71 via the door relay terminal board 68. . In the present embodiment, the adopted CMOS image sensor 232 is a CMOS image sensor having a resolution of 648 × 488 pixels and a frame rate of 240 fps (Frames Per Second), but is limited to such an image sensor. Need not be done (an imaging device other than CMOS may also be used). Moreover, light-emitting devices other than LED can also be used.

[制御LSIの回路構成]
次に、制御LSI234の回路構成について、図17ないし図20を参照して説明する。図17は、制御LSI234の回路構成例を示すブロック図である。図18は、制御LSI234を含むカメラユニット209の機能ブロック図であり、図19は、正規メダルを説明するための図であり、図19Aは正規メダルの一面を示し、図19Bは正規メダルの画像データを示している。また、図20は正規メダルに係る処理画像データ(勾配平均画像データ)の生成(合成)を説明するための図である。なお、カメラユニット209は、LED等からなる発光部を備えるが、図18では図示を省略する。
[Control LSI circuit configuration]
Next, the circuit configuration of the control LSI 234 will be described with reference to FIGS. FIG. 17 is a block diagram illustrating a circuit configuration example of the control LSI 234. 18 is a functional block diagram of the camera unit 209 including the control LSI 234, FIG. 19 is a diagram for explaining a regular medal, FIG. 19A shows one side of the regular medal, and FIG. 19B is an image of the regular medal. Data are shown. FIG. 20 is a diagram for explaining generation (combination) of processed image data (gradient average image data) related to a regular medal. The camera unit 209 includes a light emitting unit made of an LED or the like, but is not shown in FIG.

制御LSI234は、ホストコントローラ241、画像認識DSP(digital signal processor)回路242、DMAC(ダイレクトメモリアクセスコントローラ(Direct Memory Access Controller))252、SRAM(Static Random Access Memory)243、フラッシュメモリ244、ISP(Image Signal Processing)回路245及びメダルカウント回路246を備えている。また、制御LSI234は、カラー認識回路247、魚眼補正スケーラ回路248、画像認識アクセラレータ回路249、及びGPIO(General Purpose Input/Output)250を備えている。これら制御LSI234を構成するデバイスは、バスを介して相互に接続されおり、本実施形態の制御LSI234では、バスのプロトコルとしてAXI(Advanced eXtensible Interface)が採用されている。   The control LSI 234 includes a host controller 241, an image recognition DSP (digital signal processor) circuit 242, a DMAC (Direct Memory Access Controller) 252, an SRAM (Static Random Access Memory) 243, a flash memory 244, an ISP (Image Signal Processing) circuit 245 and medal count circuit 246 are provided. The control LSI 234 includes a color recognition circuit 247, a fisheye correction scaler circuit 248, an image recognition accelerator circuit 249, and a GPIO (General Purpose Input / Output) 250. These devices constituting the control LSI 234 are connected to each other via a bus, and the control LSI 234 of this embodiment employs AXI (Advanced eXtensible Interface) as a bus protocol.

また、制御LSI234は、ISI(Image Sensor Interface)回路251を備えている。ISI回路251は、CMOSイメージセンサ232とISP回路に電気的に接続されている。ISI回路251は、CMOSイメージセンサ232からLVDS(Low voltage differential signaling)方式で出力された画像データをRGBベイヤ画像に変換して、ISP回路245に出力する。   The control LSI 234 includes an ISI (Image Sensor Interface) circuit 251. The ISI circuit 251 is electrically connected to the CMOS image sensor 232 and the ISP circuit. The ISI circuit 251 converts the image data output from the CMOS image sensor 232 by the LVDS (Low voltage differential signaling) method into an RGB Bayer image and outputs the RGB data to the ISP circuit 245.

DMAC252は、ホストコントローラ241を介さずにメモリや入出力装置の間でデータ転送を行う直接転送(すなわち、DMA(ダイレクトメモリアクセス)転送)の制御を行う回路である。本実施形態では、制御LSI234に含まれる上述の各回路のメモリとSRAM243との間等においてデータ転送を行う場合に、必要に応じ、DMAC252の制御によるDMA転送が行われる。なお、本実施形態では、所定のデータに関して、必要に応じて少なくとも1つの転送・記憶に関してDMAC252の制御によるDMA転送が行われるが、このようなDMA転送を行わず、構成からDMAC252を削除することもできる。すなわち、本実施形態では、ホストコントローラ241を介さずデータ転送を各回路とSRAM243の間で直接転送するDMAの制御を行うDMAC252は、直接転送制御手段を構成する。   The DMAC 252 is a circuit that controls direct transfer (that is, DMA (direct memory access) transfer) in which data is transferred between a memory and an input / output device without going through the host controller 241. In the present embodiment, when data transfer is performed between the memory of each of the above-described circuits included in the control LSI 234 and the SRAM 243, DMA transfer under the control of the DMAC 252 is performed as necessary. In the present embodiment, DMA transfer is performed under the control of the DMAC 252 for at least one transfer / storage as required for predetermined data, but the DMAC 252 is deleted from the configuration without performing such DMA transfer. You can also. In other words, in this embodiment, the DMAC 252 that performs DMA control for directly transferring data between each circuit and the SRAM 243 without using the host controller 241 constitutes a direct transfer control unit.

ISP回路245は、ISI回路251からRGBベイヤ画像を受信すると、VSYNC(Vertical Synchronization)割込信号を、ホストコントローラ241に出力する。また、ISP回路245は、ISI回路251から出力されたRGBベイヤ画像を各種フォーマットに変換するフォーマット変換処理を行う。フォーマット変換処理において、ISP回路245は、RGBベイヤ画像をY(各ピクセルの輝度)に変換し、変換した画像データを、例えば、DMA転送によりSRAM243に記憶させる。また、ISP回路245は、RGBベイヤ画像を、YUV色空間に対応する画像データ(YUV画像データ)に変換し、このYUV画像データにおける輝度に係るデータをメダルカウント回路246に出力する。また、ISP回路245は、RGBベイヤ画像を、HSV色空間に対応する画像データ(HSV画像データ)に変換し、このHSV画像データにおける色相と彩度に係るデータをカラー認識回路247に出力する。   When receiving the RGB Bayer image from the ISI circuit 251, the ISP circuit 245 outputs a VSYNC (Vertical Synchronization) interrupt signal to the host controller 241. The ISP circuit 245 also performs format conversion processing for converting the RGB Bayer image output from the ISI circuit 251 into various formats. In the format conversion process, the ISP circuit 245 converts the RGB Bayer image to Y (the luminance of each pixel), and stores the converted image data in the SRAM 243 by, for example, DMA transfer. Further, the ISP circuit 245 converts the RGB Bayer image into image data (YUV image data) corresponding to the YUV color space, and outputs data relating to the luminance in the YUV image data to the medal count circuit 246. Further, the ISP circuit 245 converts the RGB Bayer image into image data (HSV image data) corresponding to the HSV color space, and outputs data relating to hue and saturation in the HSV image data to the color recognition circuit 247.

ここで、CMOSイメージセンサ232は、図18に示す撮像部261に対応する。また、ISI回路251(及びISI回路251を制御するホストコントローラ241)とISP回路245の一部(少なくとも、RGBベイヤ画像を、YUV色空間に対応する画像データ(YUV画像データ)に変換する処理機能部)、及びこれを制御するホストコントローラ241は、図18の変換部263に対応する。撮像部261から変換部263に、撮像画像262が送出される。   Here, the CMOS image sensor 232 corresponds to the imaging unit 261 shown in FIG. Also, a processing function for converting the ISI circuit 251 (and the host controller 241 that controls the ISI circuit 251) and a part of the ISP circuit 245 (at least an RGB Bayer image into image data (YUV image data) corresponding to the YUV color space). And a host controller 241 for controlling the same correspond to the conversion unit 263 in FIG. The captured image 262 is sent from the imaging unit 261 to the conversion unit 263.

メダルカウント回路246は、ISP回路245から出力された輝度に係るデータに基づいてカウント処理を行う。カウント処理において、メダルカウント回路246は、画像における所定の領域であるカウント領域の輝度に係るデータと、カウントしきい値とを比較し、背景差分法によってメダルが通過したか否かを判定する。カウントしきい値とは、正規メダルの画像におけるカウント領域の輝度に係るデータに基づいて予め定められているしきい値である。メダルカウント回路246は、差分が小さければメダルが通過したと判定し、差分が大きければメダルが通過していない(メダル以外のものが通過した)と判定する。そして、メダルカウント回路246は、判定結果をSRAM243に記憶させる。   The medal count circuit 246 performs count processing based on the data relating to the luminance output from the ISP circuit 245. In the counting process, the medal count circuit 246 compares data relating to the brightness of the count area, which is a predetermined area in the image, with the count threshold value, and determines whether or not a medal has passed by the background difference method. The count threshold value is a threshold value determined in advance based on data relating to the brightness of the count area in the regular medal image. The medal count circuit 246 determines that the medal has passed if the difference is small, and determines that the medal has not passed (other than the medal has passed) if the difference is large. Then, the medal count circuit 246 stores the determination result in the SRAM 243.

なお、カウント領域は、パチスロ1が正規メダルとして用いるメダルに応じて任意に設定可能であるが、メダルの回転角度が輝度の差分に大きな影響を与えないに領域に設定するのが好ましい。例えば、図19Aに示すような、両面に同じ刻印(模様)が施されている正規メダル400を用いる場合、この正規メダル400の画像データ402(図19B参照)では、領域内における正規メダルの一方の面に施された刻印(模様)がメダルの回転角度によって変化しない、すなわち、メダルの回転角度が輝度の差分に大きな影響を与えないに場所(図19Bの領域403)をカウント領域として設定するのが好ましい。また、カウント領域の範囲が狭いほど、カウント処理を高速化させることができる。   The count area can be arbitrarily set according to the medal used as a regular medal by the pachislot 1. However, it is preferable to set the count area so that the rotation angle of the medal does not greatly affect the difference in luminance. For example, when a regular medal 400 having the same marking (pattern) on both sides as shown in FIG. 19A is used, in the image data 402 (see FIG. 19B) of the regular medal 400, one of the regular medals in the area. The place (area 403 in FIG. 19B) is set as the count area so that the marking (pattern) on the surface of the face does not change with the rotation angle of the medal, that is, the rotation angle of the medal does not greatly affect the difference in luminance. Is preferred. Further, the count process can be speeded up as the range of the count area is narrowed.

カラー認識回路247は、ISP回路245から出力された色相と彩度に係るデータに基づいて色判定処理を行う。色判定処理において、カラー認識回路247は、まず、画像データの中心付近の色相と彩度に係るデータの積算値をベクトルで表現し(ベクトル変換し)、3次元空間上でベクトルの角度を計算する。次に、カラー認識回路247は、計算したベクトルの角度と、所定の色しきい値とを比較して、正規メダルの色と一致するか否かを判定する。所定のしきい値は、正規メダルに係る画像データについて上述した処理と同様の方法で計算したベクトルの角度に基づいて予め定められているしきい値(例えば、比較対象となる正規メダルに係る3次元空間上のベクトルの個々の座標(XYZ)上の角度の±10度以内)である。そして、カラー認識回路247は、判定結果をSRAM243に記憶させる。   The color recognition circuit 247 performs color determination processing based on data relating to hue and saturation output from the ISP circuit 245. In the color determination process, the color recognition circuit 247 first expresses an integrated value of data related to hue and saturation near the center of the image data as a vector (vector conversion), and calculates the angle of the vector in a three-dimensional space. To do. Next, the color recognition circuit 247 compares the calculated vector angle with a predetermined color threshold value, and determines whether or not it matches the color of the regular medal. The predetermined threshold value is a threshold value determined in advance based on the vector angle calculated by the same method as that described above for the image data related to the regular medal (for example, 3 for the regular medal to be compared). (Within ± 10 degrees of the angle on the individual coordinates (XYZ) of the vector in the dimensional space). The color recognition circuit 247 stores the determination result in the SRAM 243.

魚眼補正スケーラ回路248は、SRAM243からRGBベイヤ画像をY(各ピクセルの輝度)変換した画像データを、例えば、DMA転送によって取得し、魚眼補正処理を行う。魚眼補正処理において、魚眼補正スケーラ回路248は、取得した画像データを魚眼補正(例えば、バイリニア補間)し、1/2、1/4、1/8に縮小した縮小画像データを作成する。そして、魚眼補正スケーラ回路248は、作成した縮小画像データを、例えば、DMA転送によりSRAM243に記憶させる。   The fish-eye correction scaler circuit 248 acquires image data obtained by converting the RGB Bayer image from the SRAM 243 by Y (luminance of each pixel) by, for example, DMA transfer, and performs fish-eye correction processing. In the fish-eye correction process, the fish-eye correction scaler circuit 248 performs fish-eye correction (for example, bilinear interpolation) on the acquired image data, and creates reduced image data reduced to 1/2, 1/4, and 1/8. . Then, the fisheye correction scaler circuit 248 stores the created reduced image data in the SRAM 243 by, for example, DMA transfer.

魚眼補正スケーラ回路248、及びこれを制御するホストコントローラ241は、図18の変換部263に含まれる。   The fisheye correction scaler circuit 248 and the host controller 241 that controls the fisheye correction scaler circuit 248 are included in the conversion unit 263 of FIG.

画像認識DSP回路242は、SRAM243から縮小画像データ(本実施形態では、1/4に縮小した縮小画像データ)を、例えば、DMA転送によって取得し、前処理を行う。前処理において、画像認識DSP回路242は、取得した縮小画像データを、非線形拡散フィルタを通してエッジ画像データに変換し、エッジ画像データを、例えば、DMA転送によりSRAM243に記憶させる。   The image recognition DSP circuit 242 obtains reduced image data (in this embodiment, reduced image data reduced to ¼) from the SRAM 243 by, for example, DMA transfer, and performs preprocessing. In the preprocessing, the image recognition DSP circuit 242 converts the obtained reduced image data into edge image data through a non-linear diffusion filter, and stores the edge image data in the SRAM 243 by, for example, DMA transfer.

ここで、画像認識DSP回路242の一部(上述の、取得した縮小画像データを、非線形拡散フィルタを通してエッジ画像データに変換する処理機能部)、及びこれを制御するホストコントローラ241は、図18の変換部263に含まれる。   Here, a part of the image recognition DSP circuit 242 (the above-described processing function unit that converts the acquired reduced image data into edge image data through a non-linear diffusion filter) and the host controller 241 that controls this are shown in FIG. It is included in the conversion unit 263.

画像認識アクセラレータ回路249は、処理画像データ(例えば、ここでは勾配平均画像データ)を作成する画像処理(例えば、ここでは回転積算処理)を行う。この画像処理において、画像認識アクセラレータ回路249は、SRAM243からエッジ画像データを、例えば、DMA転送によって取得し、取得したエッジ画像データ(例えば、図19Bに示す画像データ402)を、例えば、1度単位で回転させて生成した360度分の変換後画像データを積算して(重ね合わせて)処理画像データを生成する。画像認識アクセラレータ回路249によって生成された処理画像データは、例えば、DMA転送によりSRAM243に記憶される。処理画像データが生成(合成)される例として、図19Aに示す正規メダル400の処理画像データ405を図20に示す。処理画像データ405は、「A」の形状のエッジ画像データが、例えば360度回転しながら積算される(すなわち、360回積算される)画像データ(勾配平均画像データ)となるが、ここではこれを、簡略化して示すものとする。   The image recognition accelerator circuit 249 performs image processing (for example, rotation integration processing here) for creating processed image data (for example, gradient average image data here). In this image processing, the image recognition accelerator circuit 249 obtains edge image data from the SRAM 243 by, for example, DMA transfer, and obtains the obtained edge image data (for example, the image data 402 shown in FIG. 19B), for example, in units of 1 degree. The post-conversion image data for 360 degrees generated by rotating in (1) is integrated (superposed) to generate processed image data. The processed image data generated by the image recognition accelerator circuit 249 is stored in the SRAM 243 by DMA transfer, for example. As an example in which processed image data is generated (synthesized), FIG. 20 shows processed image data 405 of a regular medal 400 shown in FIG. 19A. The processed image data 405 is image data (gradient average image data) in which edge image data having the shape of “A” is integrated while rotating 360 degrees (ie, 360 times), but here, Is shown in a simplified manner.

なお、画像認識アクセラレータ回路249の、処理画像データを生成する処理機能部、及びこれを制御するホストコントローラ241は、図18の特徴画像生成部264に対応する。   Note that the processing function unit that generates the processing image data and the host controller 241 that controls the processing function unit of the image recognition accelerator circuit 249 correspond to the feature image generation unit 264 of FIG.

また、画像認識DSP回路242は、メダルの刻印(模様)が正規メダルの刻印と一致するか否かを判定する刻印判定処理を行う。刻印判定処理において、画像認識DSP回路242は、画像認識アクセラレータ回路249が画像処理で作成した処理画像データを、例えば、DMA転送によってSRAM243から取得する。次に、画像認識DSP回路242は、取得した処理画像データと、刻印判定処理用のテンプレートデータ(例えば、予め用意したSRAM243またはフラッシュメモリ244に記憶されている正規メダルの処理画像データ)との差分を算出する。そして、画像認識DSP回路242は、算出した差分値と刻印判定用のしきい値とに基づいてメダルの刻印が正規メダルの刻印と一致するか否かを判定し、判定結果をSRAM243に記憶させる。例えば、画像認識DSP回路242は、取得した処理画像データとテンプレートデータとの各画素における輝度を比較し、一致するか否か(多諧調の場合は差分が所定の範囲以内か)を判定し、一致する(差分が所定範囲内)画素が一定数以上ある場合は、メダルの刻印(模様)が正規メダルの刻印と一致すると判定し、一致する画素が一定数に満たない場合はメダルの刻印(模様)が正規メダルの刻印と一致しないと判定する。   Further, the image recognition DSP circuit 242 performs a stamp determination process for determining whether or not the stamp (pattern) of the medal matches the stamp of the regular medal. In the marking determination process, the image recognition DSP circuit 242 acquires processed image data created by the image recognition accelerator circuit 249 through image processing from the SRAM 243 by, for example, DMA transfer. Next, the image recognition DSP circuit 242 makes a difference between the acquired processed image data and template data for engraving determination processing (for example, processed image data of regular medals stored in the SRAM 243 or the flash memory 244 prepared in advance). Is calculated. Then, the image recognition DSP circuit 242 determines whether or not the medal stamp matches the stamp of the regular medal based on the calculated difference value and the threshold value for stamp determination, and stores the determination result in the SRAM 243. . For example, the image recognition DSP circuit 242 compares the luminance of each pixel of the acquired processed image data and template data to determine whether or not they match (in the case of multi-tone, whether the difference is within a predetermined range), If there are more than a certain number of matching pixels (difference is within a predetermined range), it is determined that the medal stamp (pattern) matches the stamp of the regular medal. If the number of matching pixels is less than the predetermined number, the medal stamp ( It is determined that the pattern) does not match the stamp of the regular medal.

なお、このような、画像認識DSP回路242の、刻印判定処理に係る処理機能部、及びこれを制御するホストコントローラ241は、図18に示す判定部265に対応し、テンプレートデータは、テンプレートデータ267に対応する。   Note that the processing function unit related to the marking determination process of the image recognition DSP circuit 242 and the host controller 241 that controls the processing function unit correspond to the determination unit 265 shown in FIG. 18, and the template data is the template data 267. Corresponding to

上述の刻印判定処理等を行う画像認識DSP回路242やホストコントローラ241は、プログラム(シーケンスプログラム)によって動作し、当該プログラムは、例えば、画像認識DSP回路242やホストコントローラ241に配置されるメモリ(例えば、DRAM)に記憶される。また、これらのプログラムをSRAM243やフラッシュメモリ244に記憶してもよい。また、テンプレートデータは、例えば、SRAM243に記憶される。   The image recognition DSP circuit 242 and the host controller 241 that perform the above-described engraving determination processing and the like operate according to a program (sequence program), and the program is, for example, a memory (for example, a memory (for example, the image recognition DSP circuit 242 or the host controller 241). , DRAM). Further, these programs may be stored in the SRAM 243 or the flash memory 244. The template data is stored in, for example, the SRAM 243.

ホストコントローラ241はプロセッサを含み、各デバイスすなわちメダルカウント回路246、カラー認識回路247、魚眼補正スケーラ回路248、画像認識DSP回路242、画像認識アクセラレータ回路249、GPIO250の制御を行う。また、ホストコントローラ241は、GPIO250を介して、LED233へ点灯指示や消灯指示に係る信号を出力する。また、ホストコントローラ241は、GPIO250を介して、SRAM243に記憶されているカウント処理に係る判定結果、色判定処理に係る判定結果、刻印判定処理に係る判定結果を出力する。   The host controller 241 includes a processor, and controls each device, that is, the medal count circuit 246, the color recognition circuit 247, the fisheye correction scaler circuit 248, the image recognition DSP circuit 242, the image recognition accelerator circuit 249, and the GPIO 250. In addition, the host controller 241 outputs a signal relating to a lighting instruction or a lighting instruction to the LED 233 via the GPIO 250. Further, the host controller 241 outputs, via the GPIO 250, the determination result related to the count process, the determination result related to the color determination process, and the determination result related to the marking determination process stored in the SRAM 243.

なお、上述の、色判定処理または刻印判定処理に係る判定結果を出力するGPIO250とこれを制御するホストコントローラ241は、図18に示す入出力部266に対応し、判定結果は、図18の判定結果268に対応する。   Note that the GPIO 250 that outputs a determination result related to the color determination process or the marking determination process and the host controller 241 that controls the GPIO 250 correspond to the input / output unit 266 shown in FIG. 18, and the determination result is the determination of FIG. Corresponds to result 268.

ホストコントローラ241、画像認識DSP回路242、魚眼補正スケーラ回路248、及び画像認識アクセラレータ回路249は、それぞれメモリ(例えば、DRAM)を有し、そのメモリに、各種処理に用いるパラメータやデータ(例えば、画像データ)を記憶する。また、これらのパラメータやデータを、SRAM243やフラッシュメモリ244に記憶することもできる。   Each of the host controller 241, the image recognition DSP circuit 242, the fisheye correction scaler circuit 248, and the image recognition accelerator circuit 249 has a memory (for example, DRAM), and parameters and data (for example, for example) used for various processes are stored in the memory. Image data). Also, these parameters and data can be stored in the SRAM 243 and the flash memory 244.

[画像認識アクセラレータ回路の構成]
次に、画像認識アクセラレータ回路249の構成について、図21を参照して説明する。図21は、画像認識アクセラレータ回路249の回路構成例を示すブロック図である。
[Configuration of image recognition accelerator circuit]
Next, the configuration of the image recognition accelerator circuit 249 will be described with reference to FIG. FIG. 21 is a block diagram illustrating a circuit configuration example of the image recognition accelerator circuit 249.

図21に示すように、画像認識アクセラレータ回路249は、入力フレームバッファ271、座標変換回路272、画像処理回路273、及びメモリ274(メモリ274は、例えば、DRAMのような記憶回路により構成される)を備えている。入力フレームバッファ271には、上述のCMOSイメージセンサ232により撮像されたメダルの画像データに基づいて生成され、SRAM243等に記憶されている対象画像データ275が入力される。   As shown in FIG. 21, the image recognition accelerator circuit 249 includes an input frame buffer 271, a coordinate conversion circuit 272, an image processing circuit 273, and a memory 274 (the memory 274 is configured by a storage circuit such as a DRAM). It has. The input frame buffer 271 receives target image data 275 that is generated based on the medal image data captured by the CMOS image sensor 232 and stored in the SRAM 243 or the like.

画像認識アクセラレータ回路249は、DMAC252の制御によって、ホストコントローラ241を介さずにSRAM243にアクセスし、対象画像データ275をSRAM243から入力フレームバッファ271に転送(DMA転送)することが可能である。すなわち、画像認識アクセラレータ回路249とSRAM243との間では、ホストコントローラ241のCPUを介さずにデータ転送が行われる。   The image recognition accelerator circuit 249 can access the SRAM 243 without the host controller 241 under the control of the DMAC 252 and transfer the target image data 275 from the SRAM 243 to the input frame buffer 271 (DMA transfer). That is, data transfer is performed between the image recognition accelerator circuit 249 and the SRAM 243 without going through the CPU of the host controller 241.

入力フレームバッファ271は、1フレーム分の対象画像データ275を記憶することができる。DMAC252は、SRAM243に記憶されている対象画像データ275を読み出して、当該データを入力フレームバッファ271に書き込むよう制御する。DMAC252は、このような制御を所定のタイミングで繰り返し、SRAM243に記憶されている対象画像データ275を読み出して入力フレームバッファ271に順次記憶する。   The input frame buffer 271 can store target image data 275 for one frame. The DMAC 252 controls to read the target image data 275 stored in the SRAM 243 and write the data to the input frame buffer 271. The DMAC 252 repeats such control at a predetermined timing, reads the target image data 275 stored in the SRAM 243, and sequentially stores it in the input frame buffer 271.

また、DMAC252は、複数の画素データからなる画像データを記憶することが可能なバッファを有するように構成することもできる。バッファは例えばFIFO(first in first out)バッファで構成される。この場合、DMAC252は、SRAM243に記憶されている対象画像データ275を読み出して、当該データをバッファに一旦記憶する。そして、DMAC252は、バッファ内の複数の画素データを入力フレームバッファ271に書き込む。この処理が複数回繰り返されることによって、1フレーム分の対象画像データ275が入力フレームバッファ271に書き込まれる。   The DMAC 252 can also be configured to have a buffer capable of storing image data composed of a plurality of pixel data. The buffer is composed of, for example, a FIFO (first in first out) buffer. In this case, the DMAC 252 reads the target image data 275 stored in the SRAM 243 and temporarily stores the data in the buffer. Then, the DMAC 252 writes a plurality of pixel data in the buffer to the input frame buffer 271. By repeating this process a plurality of times, the target image data 275 for one frame is written into the input frame buffer 271.

座標変換回路272は、入力フレームバッファ271に記憶されている対象画像データ275に対して画像の座標変換を行う。座標変換が行われた変換後画像データ276は、画像処理回路273に入力される。座標変換回路272は、入力フレームバッファ271に新たな対象画像データ275が記憶されると、入力フレームバッファ271に記憶された新たな対象画像データ275に対して画像の座標変換を行う。なお、本明細書では、座標変換回路272による座標変換が行われた画像データを「変換後画像データ」と称し、座標変換が行われる前の画像データを「対象画像データ」と称する。   The coordinate conversion circuit 272 performs image coordinate conversion on the target image data 275 stored in the input frame buffer 271. The converted image data 276 subjected to the coordinate conversion is input to the image processing circuit 273. When new target image data 275 is stored in the input frame buffer 271, the coordinate conversion circuit 272 performs image coordinate conversion on the new target image data 275 stored in the input frame buffer 271. In this specification, image data that has undergone coordinate transformation by the coordinate transformation circuit 272 is referred to as “post-conversion image data”, and image data before coordinate transformation is referred to as “target image data”.

また、座標変換回路272には、メモリ274に記憶されている変換パラメータ280が提供される。変換パラメータ280は、例えば、SRAM243から、画像認識アクセラレータ回路249の初期設定といったタイミングでコピーされたものである。   The coordinate conversion circuit 272 is provided with a conversion parameter 280 stored in the memory 274. For example, the conversion parameter 280 is copied from the SRAM 243 at a timing such as initial setting of the image recognition accelerator circuit 249.

画像処理回路273は、座標変換回路272で得られた変換後画像データ276に対して所定の画像処理を行う。例えば、画像処理回路273は、座標変換回路272で得られた複数の変換後画像データ276を合成し、それによって得られた処理画像データ277を出力する。なお、本明細書では、画像処理回路273による画像処理の結果、生成された画像データ(例えば、複数の変換後画像データを積算した画像データや、対象画像データに対して複数の座標変換を実行した画像データ)を「処理画像データ」と称する。   The image processing circuit 273 performs predetermined image processing on the converted image data 276 obtained by the coordinate conversion circuit 272. For example, the image processing circuit 273 synthesizes a plurality of converted image data 276 obtained by the coordinate conversion circuit 272 and outputs processed image data 277 obtained thereby. In this specification, as a result of image processing by the image processing circuit 273, image data generated (for example, image data obtained by integrating a plurality of converted image data or a plurality of coordinate conversions on target image data is executed. Image data) is referred to as “processed image data”.

画像処理回路273によって生成された処理画像データ277は、DMAC252の制御により、SRAM243に転送(DMA転送)される。なお、DMAC252がバッファを有する場合、DMAC252は、画像処理回路273から出力される処理画像データ277の複数の画素データをバッファに一旦記憶し、その後、バッファ内の複数の画素データをSRAM243に書き込む。この処理が複数回繰り返されることによって、1フレーム分の処理画像データがSRAM243に書き込まれる。   The processed image data 277 generated by the image processing circuit 273 is transferred to the SRAM 243 (DMA transfer) under the control of the DMAC 252. If the DMAC 252 has a buffer, the DMAC 252 temporarily stores a plurality of pixel data of the processed image data 277 output from the image processing circuit 273 in the buffer, and then writes the plurality of pixel data in the buffer to the SRAM 243. By repeating this process a plurality of times, processed image data for one frame is written into the SRAM 243.

[座標変換回路の動作と構成]
ここでは、まず座標変換回路272の動作の概要を説明した上で、座標変換回路272の構成及び詳細な動作について説明する。
[Operation and configuration of coordinate transformation circuit]
Here, the outline of the operation of the coordinate conversion circuit 272 will be described first, and then the configuration and detailed operation of the coordinate conversion circuit 272 will be described.

[座標変換回路の動作の概要]
座標変換回路272は、入力フレームバッファ271に記憶された1フレーム分の対象画像データ275を用いて複数の座標変換を行う。具体的には、座標変換回路272は、図22に示すように、対象画像データ275に対して、複数の座標変換をそれぞれを個別に行って、複数の変換後画像データ276(例えば、276−1〜276−360)を生成する。
[Outline of operation of coordinate transformation circuit]
The coordinate conversion circuit 272 performs a plurality of coordinate conversions using the target image data 275 for one frame stored in the input frame buffer 271. Specifically, as shown in FIG. 22, the coordinate conversion circuit 272 individually performs a plurality of coordinate conversions on the target image data 275 to obtain a plurality of converted image data 276 (for example, 276- 1-276-360).

本実施形態では、座標変換回路272は、画像のアフィン変換を行うための座標変換を対象画像データ275に対して行う。具体的には、座標変換回路272は、画像の回転を行うための座標変換を対象画像データ275に対して行う。これにより、座標変換回路272では、対象画像データ275の回転が行われ、回転された画像データが、変換後画像データ276として得られる。ここで、画像の回転とは、画像に映る被写体の回転であって、画像が回転したとしても、画像の外形が変化するのではない。以後、変換後画像データ276によって表される回転された画像を単に「回転画像」と呼ぶことがある。   In the present embodiment, the coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 for performing affine conversion of the image. Specifically, the coordinate conversion circuit 272 performs coordinate conversion for rotating the image on the target image data 275. As a result, the coordinate conversion circuit 272 rotates the target image data 275, and the rotated image data is obtained as the converted image data 276. Here, the rotation of the image means rotation of the subject shown in the image, and even if the image is rotated, the outer shape of the image does not change. Hereinafter, the rotated image represented by the converted image data 276 may be simply referred to as “rotated image”.

座標変換回路272は、入力フレームバッファ271に記憶された対象画像データ275に対して、複数の座標変換をそれぞれ別個に行って、互いに回転角度が異なる複数の変換後画像データ276を生成する。座標変換回路272は、入力フレームバッファ271に対象画像データ275が書き込まれるたびに、その入力フレームバッファ271に記憶された対象画像データ275に対して、複数の座標変換をそれぞれを別個に行う。   The coordinate conversion circuit 272 separately performs a plurality of coordinate conversions on the target image data 275 stored in the input frame buffer 271 to generate a plurality of converted image data 276 having different rotation angles. Each time the target image data 275 is written in the input frame buffer 271, the coordinate conversion circuit 272 separately performs a plurality of coordinate conversions on the target image data 275 stored in the input frame buffer 271.

[座標変換回路の構成]
図23は、主として座標変換回路272の構成を示す図であり、図23に示される画像認識アクセラレータ回路249は、図21に示したものと同様の回路である。図23に示すように、座標変換回路272は、座標変換を行う変換回路281と、制御回路282とを備えている。本実施形態に係る座標変換回路272は、例えば、CPUでプログラムを実行することにより所定の処理が行われる構成のものとは異なり、ソフトウェアを使用せずに動作するハードウェアとして構成される。
[Configuration of coordinate conversion circuit]
FIG. 23 is a diagram mainly showing the configuration of the coordinate conversion circuit 272, and the image recognition accelerator circuit 249 shown in FIG. 23 is a circuit similar to that shown in FIG. As shown in FIG. 23, the coordinate conversion circuit 272 includes a conversion circuit 281 that performs coordinate conversion, and a control circuit 282. The coordinate conversion circuit 272 according to the present embodiment is configured as hardware that operates without using software, unlike, for example, a configuration in which predetermined processing is performed by executing a program with a CPU.

図23に示すように、メモリ274には、座標変換で使用される変換パラメータ280が記憶されている。変換パラメータ280には、複数の座標変換において必要な複数の変換パラメータ280が含まれている。変換パラメータ280は、後述するように、ホストコントローラ241によって、SRAM243からメモリ274に書き込まれる。   As shown in FIG. 23, the memory 274 stores conversion parameters 280 used for coordinate conversion. The conversion parameter 280 includes a plurality of conversion parameters 280 necessary for a plurality of coordinate conversions. The conversion parameter 280 is written from the SRAM 243 to the memory 274 by the host controller 241 as described later.

変換回路281は、入力フレームバッファ271に記憶された1つの対象画像データ275に対して、複数の座標変換をそれぞれ個別に行って複数の変換後画像データ276を生成する。   The conversion circuit 281 individually performs a plurality of coordinate conversions on one target image data 275 stored in the input frame buffer 271 to generate a plurality of converted image data 276.

図24は、メモリ274に変換パラメータ280が記憶されている様子の一例を示す図である。図24に示すように、変換パラメータ280には、画像に対して複数の回転をそれぞれ行うための複数の変換パラメータ(280−1〜280−360)が含まれている。図24に示す変換パラメータ280は、例えば、画像を1°から360°まで回転するための360の変換パラメータ(280−1〜280−360)である。   FIG. 24 is a diagram illustrating an example of a state in which the conversion parameter 280 is stored in the memory 274. As shown in FIG. 24, the conversion parameter 280 includes a plurality of conversion parameters (280-1 to 280-360) for performing a plurality of rotations on the image. The conversion parameter 280 illustrated in FIG. 24 is, for example, 360 conversion parameters (280-1 to 280-360) for rotating the image from 1 ° to 360 °.

メモリ274では、回転角度が小さい変換パラメータ280ほど、アドレスが小さい記憶領域に記憶される。したがって、メモリ274に記憶されている360の変換パラメータ280を、それが記憶されている記憶領域のアドレスが小さいもの順に見ると、360の変換パラメータ280は、回転角度が小さいもの順に並んでいる。   In the memory 274, the conversion parameter 280 having a smaller rotation angle is stored in a storage area having a smaller address. Therefore, when viewing the 360 conversion parameters 280 stored in the memory 274 in ascending order of addresses of the storage areas in which they are stored, the 360 conversion parameters 280 are arranged in the order of the smaller rotation angle.

変換回路281は、メモリ274に記憶されている変換パラメータ280に基づいて、対象画像データ275に対する座標変換を行う。これにより、対象画像データ275は、変換パラメータ280に応じた回転角度だけ回転するよう座標変換処理が施される。なお、本実施形態では、対象画像データ275は、例えば、対象画像データ275に表された図形の重心を中心として、時計回りで回転されるよう変換されるものとする。   The conversion circuit 281 performs coordinate conversion on the target image data 275 based on the conversion parameter 280 stored in the memory 274. As a result, the target image data 275 is subjected to coordinate conversion processing so as to rotate by a rotation angle corresponding to the conversion parameter 280. In the present embodiment, it is assumed that the target image data 275 is converted so as to be rotated clockwise around the center of gravity of the figure represented in the target image data 275, for example.

制御回路282は、メモリ274から、複数の変換パラメータ280を順次読み出し、その変換パラメータ280を変換回路281に提供する。これにより、変換回路281には、制御回路282の働きにより、メモリ274に記憶された複数の変換パラメータ280が順次入力され、変換回路281は、変換パラメータ280が入力されるたびに、入力された変換パラメータ280に基づいて、入力フレームバッファ271の対象画像データ275を回転し、それよって得られた変換後画像データ276を画像処理回路273に出力する。   The control circuit 282 sequentially reads a plurality of conversion parameters 280 from the memory 274 and provides the conversion parameters 280 to the conversion circuit 281. Thus, the conversion circuit 281 is sequentially input with a plurality of conversion parameters 280 stored in the memory 274 by the operation of the control circuit 282, and the conversion circuit 281 is input each time the conversion parameter 280 is input. Based on the conversion parameter 280, the target image data 275 of the input frame buffer 271 is rotated, and the converted image data 276 obtained thereby is output to the image processing circuit 273.

制御回路282はまた、レジスタ283を有している。レジスタ283には、変換パラメータ280(図24の例では、360の変換パラメータ(280−1〜280−360))のうち、変換回路281で使用される複数の変換パラメータ280を特定するための特定情報290が記憶される。制御回路282は、レジスタ283の特定情報290に基づいて、変換パラメータ280をメモリ274から順次読み出す。特定情報290は、後述するように、ホストコントローラ241によってレジスタ283に設定される。   The control circuit 282 also has a register 283. The register 283 has a specification for specifying a plurality of conversion parameters 280 used in the conversion circuit 281 among the conversion parameters 280 (360 conversion parameters (280-1 to 280-360 in the example of FIG. 24)). Information 290 is stored. The control circuit 282 sequentially reads the conversion parameters 280 from the memory 274 based on the specific information 290 in the register 283. The specific information 290 is set in the register 283 by the host controller 241 as described later.

図25は、特定情報290の一例を示す図である。図25に示すように、特定情報290には、例えば、使用パラメータ数291、使用開始位置292、及び使用間隔293が含まれる。本実施形態では、上述のように、座標変換回路272が、順次入力される複数の変換パラメータ280に基づいて、対象画像データ275の座標変換を順次連続的に重ねて行う。また、このように入力される変換パラメータ280は、例えば、(座標変換を行う)回転角度が小さいものの順に提供される。   FIG. 25 is a diagram illustrating an example of the specific information 290. As illustrated in FIG. 25, the specific information 290 includes, for example, a use parameter number 291, a use start position 292, and a use interval 293. In the present embodiment, as described above, the coordinate conversion circuit 272 performs coordinate conversion of the target image data 275 sequentially and continuously based on a plurality of conversion parameters 280 that are sequentially input. In addition, the conversion parameters 280 input in this way are provided in the order of, for example, those with a small rotation angle (for performing coordinate conversion).

使用パラメータ数291は、1つの対象画像データ275に関し、座標変換回路272において使用される変換パラメータ280の数を示している。本実施形態では、対象画像データ275に対し、1つの変換パラメータ280が使用されて1回の座標変換が行われることから、使用パラメータ数291は、1つの対象画像データ275についての座標変換回数を示していると言える。使用パラメータ数291が例えば「180」を示す場合、変換回路281は、1つの対象画像データ275に対して、180回の座標変換を個別に行って、互いに回転角度が異なる180の変換後画像データ276を連続的に生成する。   The number of used parameters 291 indicates the number of conversion parameters 280 used in the coordinate conversion circuit 272 for one target image data 275. In the present embodiment, since one conversion parameter 280 is used for the target image data 275 and one coordinate conversion is performed, the number of used parameters 291 indicates the number of coordinate conversions for one target image data 275. It can be said that it shows. When the number of used parameters 291 indicates, for example, “180”, the conversion circuit 281 individually performs 180 coordinate conversions on one target image data 275, and 180 converted image data having different rotation angles. 276 is continuously generated.

使用開始位置292は、最初に使用される変換パラメータ280の格納位置、つまり最初に使用される変換パラメータ280が記憶される(メモリ274の記憶領域における)アドレスを示している。図25の例において、使用開始位置292が例えば「0001h」を示す場合、対象画像データ275を2°回転させるための変換パラメータ(280−2)が最初に使用される。   The use start position 292 indicates the storage position of the conversion parameter 280 to be used first, that is, the address (in the storage area of the memory 274) where the conversion parameter 280 to be used first is stored. In the example of FIG. 25, when the use start position 292 indicates “0001h”, for example, the conversion parameter (280-2) for rotating the target image data 275 by 2 ° is used first.

使用間隔293は、座標変換を行う場合に、回転角度が小さいものの順に並ぶ複数の変換パラメータ280において、前回の座標変換で使用された変換パラメータ280から何個離れた変換パラメータ280を使用するかを示している。例えば、使用間隔293が「2」を示す場合、座標変換を行う際には、前回の座標変換で使用された変換パラメータ280(例えば、対象画像データ275を2°回転させるための変換パラメータ280−2)から2個離れた変換パラメータ280(例えば、対象画像データ275を4°回転させるための変換パラメータ280−4)が使用される。   The use interval 293 indicates how many conversion parameters 280 are used apart from the conversion parameter 280 used in the previous coordinate conversion among the plurality of conversion parameters 280 arranged in order of the small rotation angle when performing coordinate conversion. Show. For example, when the use interval 293 indicates “2”, when the coordinate conversion is performed, the conversion parameter 280 used in the previous coordinate conversion (for example, the conversion parameter 280 − for rotating the target image data 275 by 2 °) is used. A conversion parameter 280 (for example, a conversion parameter 280-4 for rotating the target image data 275 by 4 °) separated by 2 from 2) is used.

以上より、入力フレームバッファ271に記憶された1つの対象画像データ275を2°から360°まで2°ずつ回転させる場合には、使用パラメータ数291が「180」となり、使用開始位置292が「0001h」となり、使用間隔293が「2」となる。この場合、制御回路282によって、メモリ274から、回転角度が2°の変換パラメータ280−2、回転角度が4°の変換パラメータ280−4、回転角度が6°の変換パラメータ280−6、・・・回転角度が358°の変換パラメータ280−358、回転角度が360°の変換パラメータ280−360が順次読み出されて変換回路281に順次入力される。これにより、変換回路281では、図26に示すように、回転角度が2°ずつ異なる180の変換後画像データ276(276−1、276−2、276−3、・・・276−179、276−180)が順次生成される。   As described above, when one target image data 275 stored in the input frame buffer 271 is rotated by 2 ° from 2 ° to 360 °, the use parameter number 291 is “180” and the use start position 292 is “0001h”. ”And the use interval 293 becomes“ 2 ”. In this case, the control circuit 282 reads from the memory 274 a conversion parameter 280-2 with a rotation angle of 2 °, a conversion parameter 280-4 with a rotation angle of 4 °, a conversion parameter 280-6 with a rotation angle of 6 °,. Conversion parameters 280 to 358 with a rotation angle of 358 ° and conversion parameters 280 to 360 with a rotation angle of 360 ° are sequentially read out and sequentially input to the conversion circuit 281. Thereby, in the conversion circuit 281, as shown in FIG. 26, 180 post-conversion image data 276 (276-1, 276-2, 276-3,... 276-179, 276) whose rotation angles are different by 2 °. -180) are generated sequentially.

このほか、図25の例において、使用パラメータ数291に「360」を設定し、使用開始位置292に「0000h」を設定し、使用間隔293に「1」を設定すると、入力フレームバッファ271に記憶された1つの対象画像データ275が1°から360°まで1°ずつ回転させられて、360の変換後画像データ276が生成される。   In addition, in the example of FIG. 25, if “360” is set in the number of used parameters 291, “0000h” is set in the use start position 292, and “1” is set in the use interval 293, the data is stored in the input frame buffer 271. The single target image data 275 is rotated by 1 ° from 1 ° to 360 °, and 360-converted image data 276 is generated.

また、使用パラメータ数291を「36」に設定し、使用開始位置292を、回転角度が10°の変換パラメータ280が記憶される記憶領域のアドレスに設定し、使用間隔293を「10」に設定すると、入力フレームバッファ271に記憶された1つの対象画像データ275が10°から360°まで10°ずつ回転させられて、36の変換後画像データ276が生成される。   Also, the number of use parameters 291 is set to “36”, the use start position 292 is set to the address of the storage area where the conversion parameter 280 having a rotation angle of 10 ° is stored, and the use interval 293 is set to “10”. Then, one target image data 275 stored in the input frame buffer 271 is rotated by 10 ° from 10 ° to 360 °, and 36 converted image data 276 are generated.

また、使用パラメータ数291を「18」に設定し、使用開始位置292を、回転角度が270°の変換パラメータ280が記憶される記憶領域のアドレスに設定し、使用間隔293を「5」に設定すると、入力フレームバッファ271に記憶された1つの対象画像データ275が270°から360°まで5°ずつ回転させられて、18の変換後画像データ276が生成される。   Also, the use parameter number 291 is set to “18”, the use start position 292 is set to the address of the storage area in which the conversion parameter 280 having a rotation angle of 270 ° is stored, and the use interval 293 is set to “5”. Then, one target image data 275 stored in the input frame buffer 271 is rotated by 5 ° from 270 ° to 360 °, and 18 converted image data 276 is generated.

変換回路281は、変換後画像データ276を1つずつ画像処理回路273に出力する。また、変換回路281は、変換後画像データ276を構成する複数の画素を、所定の画素数の単位で、または1画素ずつ(その画素が生成されるたびに)、画像処理回路273に出力することができる。   The conversion circuit 281 outputs the converted image data 276 one by one to the image processing circuit 273. Also, the conversion circuit 281 outputs a plurality of pixels constituting the converted image data 276 to the image processing circuit 273 in units of a predetermined number of pixels or one pixel at a time (every time the pixel is generated). be able to.

このように、座標変換回路272では、特定情報290によって、変換パラメータ280が特定されることから、特定情報290によって、座標変換回路272にどのような座標変換を行わせるかを決定することができる。   As described above, in the coordinate conversion circuit 272, since the conversion parameter 280 is specified by the specification information 290, it is possible to determine what kind of coordinate conversion is to be performed by the coordinate conversion circuit 272 by the specification information 290. .

また、特定情報290によって、変換パラメータ280が特定されることから、制御LSI234やメダルセレクタ201によって、座標変換回路272が使用する特定情報290を異ならせることで、複数の制御LSI234やメダルセレクタ201の間で互いに異なる座標変換を実行させることができる。   Further, since the conversion parameter 280 is specified by the specific information 290, the control LSI 234 and the medal selector 201 make the specific information 290 used by the coordinate conversion circuit 272 different, so that a plurality of control LSIs 234 and medal selectors 201 Different coordinate transformations can be executed between the two.

また、1つの制御LSI234やメダルセレクタ201において、複数の特定情報290が使用されてもよい。この場合、座標変換回路272は、ある対象画像データ275に対して座標変換を行う場合には第1特定情報290−1を使用し、他の対象画像データ275’に対して座標変換を行う場合には第1特定情報290−1とは異なる第2特定情報290−2を使用する。これにより、座標変換回路272は、対象画像データごとに異なる座標変換を行うことができる。   Further, a plurality of specific information 290 may be used in one control LSI 234 or medal selector 201. In this case, the coordinate conversion circuit 272 uses the first specifying information 290-1 when performing coordinate conversion on certain target image data 275, and performs coordinate conversion on other target image data 275 ′. The second specific information 290-2 different from the first specific information 290-1 is used. Accordingly, the coordinate conversion circuit 272 can perform different coordinate conversion for each target image data.

なお、本実施形態においては、特定情報290が、使用パラメータ数291、使用開始位置292、及び使用間隔293を含むように構成されているが、一部の情報を省略することもできる(例えば、メモリ274に記憶されている変換パラメータ280の数が分かっている場合は、使用パラメータ数291を省略できる)。   In the present embodiment, the specific information 290 is configured to include the number of used parameters 291, the use start position 292, and the use interval 293, but some information can be omitted (for example, If the number of conversion parameters 280 stored in the memory 274 is known, the number of used parameters 291 can be omitted).

[変換パラメータの例]
対象画像データ275の座標変換では、変換後画像データ276における、ある座標Zでの画素として、対象画像データ275における、当該ある座標Zに対応する座標CZでの画素が採用される。対象画像データ275において、変換後画像データ276でのある座標Zに対応する座標CZに画素が存在しない場合には、その対応する座標CZでの画素データは、当該対応する座標CZの周辺の複数の座標PCZに存在する複数の画素の画素データを用いた補間によって求められる。この画素補間には、例えば、バイリニア補間あるいはバイキュービック補間などが使用される。
[Example of conversion parameters]
In the coordinate conversion of the target image data 275, the pixel at the coordinate CZ corresponding to the certain coordinate Z in the target image data 275 is adopted as the pixel at the certain coordinate Z in the converted image data 276. In the target image data 275, when there is no pixel at the coordinate CZ corresponding to the coordinate Z in the converted image data 276, the pixel data at the corresponding coordinate CZ includes a plurality of pixels around the corresponding coordinate CZ. Is obtained by interpolation using pixel data of a plurality of pixels existing at the coordinates PCZ. For example, bilinear interpolation or bicubic interpolation is used for the pixel interpolation.

図27は、変換パラメータ280による座標変換の一例を説明するための図である。本実施形態では、変換パラメータ280には、変換後画像データ276により表される画像での4隅の画素の座標A1、B1、C1、D1にそれぞれ対応する、対象画像データ275により表される画像での4つの座標A0、B0、C0、D0が含まれている。   FIG. 27 is a diagram for explaining an example of coordinate conversion by the conversion parameter 280. In the present embodiment, the conversion parameter 280 includes an image represented by the target image data 275 corresponding to the coordinates A1, B1, C1, and D1 of the four corner pixels in the image represented by the converted image data 276. 4 coordinates A0, B0, C0 and D0 are included.

変換回路281は、変換パラメータ280が入力されると、入力された変換パラメータ280に含まれる4つの座標A0、B0、C0、D0に基づいて、変換後画像データ276を構成する複数の画素の座標にそれぞれ対応する、対象画像データ275での複数の座標を求める。そして、変換回路281は、対象画像データ275に関して求めた複数の座標のそれぞれでの画素データを、対象画像データ275を構成する複数の画素の画素データに基づいて決定する。このとき、必要に応じて画素補間が使用される。その後、変換回路281は、変換後画像データ276における各座標での画素データとして、対象画像データ275における、対応する座標での画素データを採用する。これにより、変換回路281では、入力された変換パラメータ280に基づいて対象画像データ275により表される画像が回転され、回転画像が生成される。   When the conversion parameter 280 is input, the conversion circuit 281 receives the coordinates of a plurality of pixels constituting the post-conversion image data 276 based on the four coordinates A0, B0, C0, and D0 included in the input conversion parameter 280. A plurality of coordinates in the target image data 275 respectively corresponding to are obtained. Then, the conversion circuit 281 determines pixel data at each of the plurality of coordinates obtained with respect to the target image data 275 based on the pixel data of the plurality of pixels constituting the target image data 275. At this time, pixel interpolation is used as necessary. Thereafter, the conversion circuit 281 employs pixel data at corresponding coordinates in the target image data 275 as pixel data at each coordinate in the converted image data 276. As a result, the conversion circuit 281 rotates the image represented by the target image data 275 based on the input conversion parameter 280 to generate a rotated image.

なお、対象画像データ275に対して所定の座標変換を行うことによって、対象画像データ275に含まれる、たる型歪み等の画像歪みを補正することができる。そこで、変換パラメータ280として、画像を回転させるための座標変換と歪み補正を行うための座標変換の両方に対応した変換パラメータ280をメモリ274に記憶し、座標変換回路272は、変換パラメータ280に基づいて、対象画像データ275に対して、画像の回転と歪み補正を同時に行ってもよい。上記の特許文献2、及び特許文献3には、たる型歪みの補正技術が開示されている。   Note that image distortion such as barrel distortion included in the target image data 275 can be corrected by performing predetermined coordinate transformation on the target image data 275. Therefore, a conversion parameter 280 corresponding to both the coordinate conversion for rotating the image and the coordinate conversion for performing distortion correction is stored in the memory 274 as the conversion parameter 280, and the coordinate conversion circuit 272 is based on the conversion parameter 280. Thus, image rotation and distortion correction may be performed on the target image data 275 at the same time. Patent Document 2 and Patent Document 3 described above disclose barrel distortion correction techniques.

[画像処理回路の動作と構成]
ここでは、まず画像処理回路273の動作の概要を説明した上で、画像処理回路273の構成及び詳細な動作について説明する。
[Operation and configuration of image processing circuit]
Here, the outline of the operation of the image processing circuit 273 will be described first, and then the configuration and detailed operation of the image processing circuit 273 will be described.

[画像処理回路の動作の概要]
画像処理回路273は、図28に示すように、座標変換回路272で生成される複数の変換後画像データ276を合成し、それによって得られた処理画像データ277を出力画像データとしてSRAM243に(DMA転送により)出力する。画像処理回路273は、1フレーム分の画像データを記憶することが可能なフレームメモリを有しており、当該フレームメモリを用いて処理画像データ277を生成する。
[Overview of image processing circuit operation]
As shown in FIG. 28, the image processing circuit 273 synthesizes a plurality of converted image data 276 generated by the coordinate conversion circuit 272, and the processed image data 277 obtained thereby is output to the SRAM 243 (DMA) as output image data. Output). The image processing circuit 273 has a frame memory capable of storing image data for one frame, and generates processed image data 277 using the frame memory.

図29は画像処理回路273の動作の概要を説明するための図である。画像処理回路273は、N個の変換後画像データ276’を順次積算することによって処理画像データ277(図29に示す処理画像データ277−(N−1))を生成する。   FIG. 29 is a diagram for explaining the outline of the operation of the image processing circuit 273. The image processing circuit 273 generates processed image data 277 (processed image data 277- (N-1) shown in FIG. 29) by sequentially integrating the N converted image data 276 '.

図29に示すように、画像処理回路273は、変換回路281で最初に生成された変換後画像データ276−1(例えば、図26の例では回転角度が2°の変換後画像データ276−1に対応)をフレームメモリに記憶する。   As shown in FIG. 29, the image processing circuit 273 generates the converted image data 276-1 first generated by the conversion circuit 281 (for example, the converted image data 276-1 having a rotation angle of 2 ° in the example of FIG. 26). Are stored in the frame memory.

次に、画像処理回路273は、変換回路281で2番目に生成された変換後画像データ276−2(例えば、図26の例では回転角度が4°の変換後画像データ276−2に対応)を、フレームメモリ内の最初の変換後画像データ276−1に対して加算して1回処理画像データ277−1を生成する。ここで画像処理回路273は、この1回処理画像データ277−1をフレームメモリに記憶する。   Next, the image processing circuit 273 converts the converted image data 276-2 generated second by the conversion circuit 281 (for example, corresponds to the converted image data 276-2 having a rotation angle of 4 ° in the example of FIG. 26). Is added to the first converted image data 276-1 in the frame memory to generate one-time processed image data 277-1. Here, the image processing circuit 273 stores the once-processed image data 277-1 in the frame memory.

次に、画像処理回路273は、変換回路281で3番目に生成された変換後画像データ276−3(例えば、図26の例では回転角度が6°の変換後画像データ276−3に対応)を、フレームメモリ内の1回処理画像データ277−1に対して加算して2回処理画像データ277−2を生成する。ここで画像処理回路273は、2回処理画像データ277−2をフレームメモリに記憶する。   Next, the image processing circuit 273 converts the converted image data 276-3 generated third by the conversion circuit 281 (for example, corresponds to the converted image data 276-3 having a rotation angle of 6 ° in the example of FIG. 26). Are added to the once processed image data 277-1 in the frame memory to generate twice processed image data 277-2. Here, the image processing circuit 273 stores the twice-processed image data 277-2 in the frame memory.

以後、画像処理回路273は同様の動作を繰り返し、変換回路281で最後に生成された変換後画像データ276−N(例えば、図26の例では回転角度が360°の変換後画像データ276−180に対応)を、フレームメモリ内の(N−2)回処理画像データ277−(N−2)に対して加算して(N−1)回処理画像データ277−(N−1)を生成する。この(N−1)回処理画像データ277−(N−1)が処理画像データ277となる。画像処理回路273は、処理画像データ277をフレームメモリに記憶する。その後、フレームメモリ内の処理画像データ277は、DMAC252の制御によるDMA転送により、フレームメモリからSRAM243に出力される。   Thereafter, the image processing circuit 273 repeats the same operation, and the converted image data 276-N finally generated by the conversion circuit 281 (for example, the converted image data 276-180 having a rotation angle of 360 ° in the example of FIG. 26). Is added to (N-2) -time processed image data 277- (N-2) in the frame memory to generate (N-1) -time processed image data 277- (N-1). . The (N-1) -time processed image data 277- (N-1) is processed image data 277. The image processing circuit 273 stores the processed image data 277 in the frame memory. Thereafter, the processed image data 277 in the frame memory is output from the frame memory to the SRAM 243 by DMA transfer under the control of the DMAC 252.

[画像処理回路の構成]
図30は画像処理回路273の構成を示す図である。図30に示すように、画像処理回路273は、フレームメモリ309、記憶制御部300、加算処理部305、ライトバッファ306、リードバッファ307、及び出力制御部308を備えている。本実施形態における画像処理回路273は、例えば、CPUでプログラムを実行することにより所定の処理が行われる構成のものとは異なり、ソフトウェアを使用せずに動作するハードウェアである。したがって、記憶制御部300は記憶制御回路、加算処理部305は加算処理回路、出力制御部308は出力制御回路と、それぞれ呼ぶことができる。画像処理回路273は、画像データを処理する一種のデータ処理装置である。
[Configuration of image processing circuit]
FIG. 30 is a diagram showing the configuration of the image processing circuit 273. As illustrated in FIG. 30, the image processing circuit 273 includes a frame memory 309, a storage control unit 300, an addition processing unit 305, a write buffer 306, a read buffer 307, and an output control unit 308. The image processing circuit 273 in the present embodiment is hardware that operates without using software, unlike, for example, a configuration in which predetermined processing is performed by executing a program by a CPU. Therefore, the storage control unit 300 can be called a storage control circuit, the addition processing unit 305 can be called an addition processing circuit, and the output control unit 308 can be called an output control circuit. The image processing circuit 273 is a kind of data processing device that processes image data.

フレームメモリ309は、一種の記憶回路であって、例えばSRAMで構成されている。フレームメモリ309は、例えば、1フレーム(1枚)分の画像データを記憶することができる。また、フレームメモリ309は、複数フレーム分の画像データを記憶することができるように構成されてもよい。   The frame memory 309 is a kind of storage circuit, and is composed of, for example, an SRAM. The frame memory 309 can store image data for one frame (one frame), for example. The frame memory 309 may be configured to store image data for a plurality of frames.

出力制御部308は、フレームメモリ309から読み出されたデータを入力し、さらに、当該データをSRAM243に(DMA転送によって)出力するよう制御する。また、出力制御部308は、動作モードとして、入力されたデータをDMA転送によって出力するDMA出力モードと、入力されたデータをDMA転送によらず出力する非DMA出力モードとを有するように構成できる。本実施形態において、出力制御部308は、基本的には非DMA出力モードで動作し、フレームメモリ309から出力対象データが読み出されるときにだけDMA出力モードで動作する。これにより、フレームメモリ309から読み出された出力対象データは、出力制御部308からDMA転送により出力される。   The output control unit 308 inputs data read from the frame memory 309, and further controls to output the data to the SRAM 243 (by DMA transfer). Further, the output control unit 308 can be configured to have, as operation modes, a DMA output mode that outputs input data by DMA transfer and a non-DMA output mode that outputs input data without DMA transfer. . In this embodiment, the output control unit 308 basically operates in the non-DMA output mode, and operates in the DMA output mode only when output target data is read from the frame memory 309. As a result, the output target data read from the frame memory 309 is output from the output control unit 308 by DMA transfer.

記憶制御部300は、フレームメモリ309、ライトバッファ306、リードバッファ307、及び出力制御部308を制御する。記憶制御部300がフレームメモリ309を制御することによって、フレームメモリ309にデータが書き込まれたり、フレームメモリ309からデータが読み出されたりする。出力制御部308は、記憶制御部300による制御に応じて、フレームメモリ309から読み出されたデータについてのDMA転送による出力を制御する。なお、記憶制御部300については後で詳細に説明する。   The storage control unit 300 controls the frame memory 309, the write buffer 306, the read buffer 307, and the output control unit 308. When the storage control unit 300 controls the frame memory 309, data is written to the frame memory 309 or data is read from the frame memory 309. The output control unit 308 controls the output by DMA transfer for the data read from the frame memory 309 according to the control by the storage control unit 300. The storage control unit 300 will be described in detail later.

加算処理部305は、変換回路281で生成される変換後画像データを、記憶制御部300による制御でフレームメモリ309から読み出された加算対象の画像に対して加算する。例えば、図29に示すように、2番目の変換後画像データ276−2についての加算対象の画像は、最初の変換後画像データ276−1となり、m番目(mは変数で、3≦m≦N)の変換後画像データ276−mについての加算対象の画像は、(m−2)回処理画像データ277−(m−2)となる。   The addition processing unit 305 adds the converted image data generated by the conversion circuit 281 to the addition target image read from the frame memory 309 under the control of the storage control unit 300. For example, as shown in FIG. 29, the addition target image for the second converted image data 276-2 is the first converted image data 276-1, and the mth (m is a variable, 3 ≦ m ≦ The image to be added for the converted image data 276-m of (N) is (m-2) times processed image data 277- (m-2).

ここで、加算される2つの画像データの一方を「第1画像データ」と称し、他方を「第2画像データ」と称する。そして、第1画像データを構成する複数の画素データのそれぞれを「第1画素データ」と称し、第2画像データを構成する複数の画素データのそれぞれを「第2画素データ」と称する。   Here, one of the two image data to be added is referred to as “first image data”, and the other is referred to as “second image data”. Each of the plurality of pixel data constituting the first image data is referred to as “first pixel data”, and each of the plurality of pixel data constituting the second image data is referred to as “second pixel data”.

加算処理部305は、第1画像データを構成する複数の第1画素データのそれぞれについて、当該第1画素データと、第2画像データにおける、当該第1画素データと同じ位置(座標)での第2画素データとを加算することによって、第1画像データと第2画像データとを加算する。   For each of the plurality of first pixel data constituting the first image data, the addition processing unit 305 performs the first processing at the same position (coordinates) as the first pixel data in the first pixel data and the second image data. By adding the two pixel data, the first image data and the second image data are added.

本実施形態において、座標変換回路272は、上述のように、変換後画像データ276の画像データを構成する複数の画素データを1画素分ずつ出力する。加算処理部305は、最初の変換後画像データ276の画素データが1画素分入力されると、加算処理を行わずに、入力された画素データをそのままライトバッファ306に書き込む。ライトバッファ306は、例えば4画素分の画素データを記憶することが可能である。ライトバッファ306に4画素分の画素データが蓄積されると、記憶制御部300によるフレームメモリ309に対する制御によって、ライトバッファ306のなかの4画素分の画素データがフレームメモリ309に一度に書き込まれる。このような書き込み処理の繰り返しにより、フレームメモリ309には、4画素単位で画素データが繰り返し書き込まれる。   In the present embodiment, the coordinate conversion circuit 272 outputs a plurality of pixel data constituting the image data of the converted image data 276 one pixel at a time as described above. When the pixel data of the first converted image data 276 is input for one pixel, the addition processing unit 305 writes the input pixel data as it is in the write buffer 306 without performing addition processing. For example, the write buffer 306 can store pixel data for four pixels. When the pixel data for four pixels is accumulated in the write buffer 306, the pixel data for four pixels in the write buffer 306 is written into the frame memory 309 at a time by the control of the frame memory 309 by the storage control unit 300. By repeating such writing processing, pixel data is repeatedly written into the frame memory 309 in units of four pixels.

フレームメモリ309では、ライトバッファ306のなかの4画素分の画素データが、フレームメモリ309に記憶され、読み出された元の画像データの同じアドレスの記憶領域に書き込まれる。ライトバッファ306のデータがフレームメモリ309に書き込まれると、書き込まれたデータはライトバッファ306から消去される。このように、画像処理後の画像データがフレームメモリ309に書き込まれた場合、当該画像データがライトバッファ306から消去されるため、画像データが書き込まれてすぐに、書込要求出力部302からの要求が可能となり、結果的に、画像データの効率的なライトバッファ306への書き込みが順次行われることとなる。   In the frame memory 309, the pixel data for four pixels in the write buffer 306 is stored in the frame memory 309 and written into the storage area of the same address of the read original image data. When the data in the write buffer 306 is written into the frame memory 309, the written data is erased from the write buffer 306. As described above, when image data after image processing is written in the frame memory 309, the image data is erased from the write buffer 306, so that the image data is written from the write request output unit 302 immediately after the image data is written. As a result, the image data can be efficiently written to the write buffer 306 sequentially.

記憶制御部300によるフレームメモリ309に対する制御によって、フレームメモリ309から、4画素単位で画素データが読み出される。つまり、フレームメモリ309に対する1回のリードアクセスで、フレームメモリ309から、4画素分の画素データが読み出される。フレームメモリ309から一度に読み出された4画素分の画素データはリードバッファ307に書き込まれる。   Pixel data is read from the frame memory 309 in units of four pixels by the control of the frame memory 309 by the storage controller 300. That is, pixel data for four pixels is read from the frame memory 309 by one read access to the frame memory 309. Pixel data for four pixels read from the frame memory 309 at a time is written into the read buffer 307.

加算処理部305は、座標変換回路272から入力した画素データが、L番目(Lは変数で、2≦L≦N)の変換後画像データ276−Lの画素データである場合、リードバッファ307から加算対象の画素データを読み出す。そして、加算処理部305は、リードバッファ307から読み出した画素データに対して入力した画素データを加算する。これにより、加算処理部305では、(L−1)回処理画像データ277−(L−1)の画素データが得られる。   When the pixel data input from the coordinate conversion circuit 272 is the pixel data of the converted image data 276-L of the Lth (L is a variable and 2 ≦ L ≦ N), the addition processing unit 305 receives from the read buffer 307. Read pixel data to be added. Then, the addition processing unit 305 adds the input pixel data to the pixel data read from the read buffer 307. As a result, the addition processing unit 305 obtains pixel data of (L-1) -time processed image data 277- (L-1).

加算処理部305は、(L−1)回処理画像データ277−(L−1)の画素データを、ライトバッファ306に記憶する。ライトバッファ306の画素データはフレームメモリ309に記憶される。加算処理部305は、座標変換回路272から画素データが入力されるたびに同様の処理を行う。これにより、フレームメモリ309には、処理画像データ277(すなわち、(N−1)回処理画像データ277−(N−1))の画像データが記憶される。リードバッファ307からデータが読み出されると、読み出されたデータはリードバッファ307から消去される。このように、画像処理の対象となる画像データが、画像処理のために読み出された場合、当該画像データがリードバッファ307から消去されるため、画像データが読み出されてすぐに、第1読出要求出力部301からの要求が可能となり、結果的に、画像データの効率的なリードバッファ307への読み出しが順次行われることとなる。   The addition processing unit 305 stores the pixel data of (L−1) -time processed image data 277-(L−1) in the write buffer 306. Pixel data in the write buffer 306 is stored in the frame memory 309. The addition processing unit 305 performs the same processing every time pixel data is input from the coordinate conversion circuit 272. As a result, the frame memory 309 stores the image data of the processed image data 277 (that is, (N-1) -time processed image data 277- (N-1)). When data is read from the read buffer 307, the read data is erased from the read buffer 307. As described above, when image data to be subjected to image processing is read for image processing, the image data is erased from the read buffer 307, so that the first data is read immediately after the image data is read. Requests from the read request output unit 301 can be made, and as a result, efficient reading of image data to the read buffer 307 is sequentially performed.

上述したように、加算処理部305は、L番目の変換後画像データ276−Lの画素データを、リードバッファ307内の加算対象の画素データに対して加算して、(L−1)回処理画像データ277−(L−1)の画素データを生成する。   As described above, the addition processing unit 305 adds the pixel data of the L-th converted image data 276-L to the pixel data to be added in the read buffer 307, and performs (L-1) times processing. Pixel data of the image data 277- (L-1) is generated.

例えば、2番目の変換後画像データ276−2の画素データが座標変換回路272から入力された場合、当該入力された画素データについての加算対象の画素データは、最初の変換後画像データ276−1における、当該入力された画素データと同じ位置の画素データとなる。また、3番目の変換後画像データ276−3の画素データが座標変換回路272から入力された場合、当該入力された画素データについての加算対象の画素データは、1回処理画像データ277−1における、当該入力された画素データと同じ位置の画素データとなる。加算対象の画素データは、記憶制御部300によるフレームメモリ309に対する制御によって、当該入力された画素データが加算処理部305に提供されるときには、リードバッファ307に記憶されている。   For example, when the pixel data of the second converted image data 276-2 is input from the coordinate conversion circuit 272, the pixel data to be added with respect to the input pixel data is the first converted image data 276-1. The pixel data at the same position as the input pixel data in FIG. When the pixel data of the third converted image data 276-3 is input from the coordinate conversion circuit 272, the pixel data to be added for the input pixel data is the one-time processed image data 277-1. The pixel data at the same position as the input pixel data. The pixel data to be added is stored in the read buffer 307 when the input pixel data is provided to the addition processing unit 305 by control of the frame memory 309 by the storage control unit 300.

本実施形態では、フレームメモリ309は、例えば、1ポートメモリである。したがって、フレームメモリ309からデータが読み出されているときに、フレームメモリ309に対してデータを書き込むことはできない。   In the present embodiment, the frame memory 309 is, for example, a 1-port memory. Therefore, data cannot be written to the frame memory 309 when data is being read from the frame memory 309.

また、画像処理回路273では、フレームメモリ309に対してリードモディファイライトが行われる。例えば、フレームメモリ309の、あるアドレスの記憶領域に記憶されている画素データがフレームメモリ309から読み出された後、加算処理部305において加算処理が実行され、(L−1)回処理画像データ277−(L−1)の画素データが生成され、ライトバッファ306に記憶される。その後、こうして加算処理された画素データが、ライトバッファ306から、フレームメモリ309の同じアドレスの記憶領域に書き戻される。   Further, the image processing circuit 273 performs read modify write on the frame memory 309. For example, after pixel data stored in a storage area at a certain address in the frame memory 309 is read from the frame memory 309, an addition process is performed in the addition processing unit 305, and (L-1) times processed image data 277- (L−1) pixel data is generated and stored in the write buffer 306. Thereafter, the pixel data thus subjected to addition processing is written back from the write buffer 306 to the storage area of the same address in the frame memory 309.

言い換えれば、ライトバッファ306に記憶された処理画像データの画素データがフレームメモリ309に書き込まれる場合、当該処理画像データの画素データは、加算対象の画素データが記憶されていたフレームメモリ309の記憶位置と同じ位置に記憶される。   In other words, when the pixel data of the processed image data stored in the write buffer 306 is written in the frame memory 309, the pixel data of the processed image data is stored in the frame memory 309 where the pixel data to be added is stored. Is stored at the same position.

本実施形態では、フレームメモリ309から一度に4画素分の画素データが読み出されて、リードバッファ307に記憶される。また、加算処理によって記憶されたライトバッファ306の4画素分の画素データもフレームメモリ309に対して一度に書き込まれる。   In the present embodiment, pixel data for four pixels is read from the frame memory 309 at a time and stored in the read buffer 307. Also, the pixel data for four pixels of the write buffer 306 stored by the addition process is written to the frame memory 309 at a time.

画像処理回路273では、フレームメモリ309のあるアドレスの記憶領域に記憶されている4画素分の画素データは、フレームメモリ309から読み出されて、一旦、リードバッファ307に記憶された後、加算処理部305で加算処理が実行される。そして、加算処理された4画素分の画素データは、ライトバッファ306に一旦記憶された後、フレームメモリ309(当該あるアドレスと同じアドレスの記憶領域)に書き戻される。   In the image processing circuit 273, pixel data for four pixels stored in a storage area at a certain address in the frame memory 309 is read from the frame memory 309, temporarily stored in the read buffer 307, and then added. Addition processing is executed by the unit 305. The pixel data for the four pixels subjected to the addition processing is temporarily stored in the write buffer 306 and then written back to the frame memory 309 (a storage area having the same address as the certain address).

このように、本実施形態では、フレームメモリ309が1ポートメモリであって、フレームメモリ309に対してリードモディファイライトが行われる。したがって、このような構成により、フレームメモリ309の回路規模を小さくすることができ、結果的に、画像処理回路273の回路規模を小さくすることができる。   As described above, in this embodiment, the frame memory 309 is a one-port memory, and read-modify-write is performed on the frame memory 309. Therefore, with such a configuration, the circuit scale of the frame memory 309 can be reduced, and as a result, the circuit scale of the image processing circuit 273 can be reduced.

フレームメモリ309に記憶された、最終的な処理画像データ277は、出力制御部308からDMA転送によりSRAM243に出力される。例えば、記憶制御部300によるフレームメモリ309に対する制御によって、フレームメモリ309から、処理画像データ277の画素データが読み出されると、出力制御部308は、読み出された画素データをDMA転送によりSRAM243に出力する。フレームメモリ309からは、4画素分の画素データが一度に読み出されることから、出力制御部308は、フレームメモリ309から読み出された、処理画像データ277を、4画素単位で出力する。フレームメモリ309から読み出された処理画像データ277の画素データは、記憶制御部300によるリードバッファ307に対する制御によって、リードバッファ307には記憶されない。   The final processed image data 277 stored in the frame memory 309 is output from the output control unit 308 to the SRAM 243 by DMA transfer. For example, when the pixel data of the processed image data 277 is read from the frame memory 309 by the control of the frame memory 309 by the storage control unit 300, the output control unit 308 outputs the read pixel data to the SRAM 243 by DMA transfer. To do. Since the pixel data for four pixels is read from the frame memory 309 at a time, the output control unit 308 outputs the processed image data 277 read from the frame memory 309 in units of four pixels. The pixel data of the processed image data 277 read from the frame memory 309 is not stored in the read buffer 307 due to control of the read buffer 307 by the storage control unit 300.

DMAC252がバッファを有する場合、DMAC252は、画像処理回路273から入力される画素データをバッファに一旦記憶する。バッファは、複数画素分の画素データを記憶することが可能である。DMAC252は、バッファが一杯になると、バッファ内の複数画素分の画素データをSRAM243に転送するよう制御する。これにより、SRAM243には、画像認識アクセラレータ回路249で生成された処理画像データ277が記憶される。DMAC252では、バッファ内のデータがSRAM243に転送されると、転送されたデータはバッファから消去される。また、DMAC252は、バッファ内のデータのデータ量が所定以上になった場合に、バッファのデータをSRAM243に転送するよう構成することもできる。   When the DMAC 252 has a buffer, the DMAC 252 temporarily stores the pixel data input from the image processing circuit 273 in the buffer. The buffer can store pixel data for a plurality of pixels. The DMAC 252 controls to transfer pixel data for a plurality of pixels in the buffer to the SRAM 243 when the buffer is full. Thereby, the processed image data 277 generated by the image recognition accelerator circuit 249 is stored in the SRAM 243. In the DMAC 252, when the data in the buffer is transferred to the SRAM 243, the transferred data is erased from the buffer. The DMAC 252 can also be configured to transfer the buffer data to the SRAM 243 when the data amount of the data in the buffer exceeds a predetermined value.

[画像処理回路の記憶制御部における詳細な動作]
記憶制御部300は、加算処理部305で処理される加算対象の画素データをフレームメモリ309から読み出す第1読出処理を実行する。また、記憶制御部300は、加算処理部305で生成される、処理画像データ277の画素データを、フレームメモリ309に書き込む書込処理を行う。処理画像データ277の画素データは、加算処理部305で加算処理された画素データであると言える。そして、記憶制御部300は、最終的な出力対象データである、処理画像データ277の画素データを、フレームメモリ309から読み出す第2読出処理を実行する。
[Detailed Operation in Storage Control Unit of Image Processing Circuit]
The storage control unit 300 executes a first readout process for reading out the pixel data to be added processed by the addition processing unit 305 from the frame memory 309. Further, the storage control unit 300 performs a writing process for writing the pixel data of the processed image data 277 generated by the addition processing unit 305 into the frame memory 309. It can be said that the pixel data of the processed image data 277 is pixel data subjected to addition processing by the addition processing unit 305. Then, the storage control unit 300 executes a second reading process for reading out the pixel data of the processed image data 277, which is the final output target data, from the frame memory 309.

記憶制御部300は、第1読出要求出力部301、書込要求出力部302、第2読出要求出力部303、及び調停部304を備えている。   The storage control unit 300 includes a first read request output unit 301, a write request output unit 302, a second read request output unit 303, and an arbitration unit 304.

第1読出要求出力部301は、第1読出処理の実行要求である第1読出要求を出力する。書込要求出力部302は、書込要求の実行要求である書込要求を出力する。第2読出要求出力部303は、第2読出処理の実行要求である第2読出要求を出力する。   The first read request output unit 301 outputs a first read request that is an execution request for the first read process. The write request output unit 302 outputs a write request that is an execution request for the write request. The second read request output unit 303 outputs a second read request that is an execution request for the second read process.

第1読出要求出力部301による第1読出要求の出力は、例えば、第1読出要求を示す第1読出要求信号を出力することである。第1読出要求信号には、フレームメモリ309において、読出対象の画素データが記憶される記憶領域のアドレスが含まれている。   The output of the first read request by the first read request output unit 301 is, for example, outputting a first read request signal indicating the first read request. The first read request signal includes an address of a storage area in the frame memory 309 where pixel data to be read is stored.

書込要求出力部302による書込要求の出力は、例えば、書込要求を示す書込要求信号を出力することである。書込要求信号には、フレームメモリ309において、書込対象の画素データを書き込む記憶領域のアドレスが含まれている。   The output of the write request by the write request output unit 302 is, for example, outputting a write request signal indicating the write request. The write request signal includes the address of the storage area in the frame memory 309 where the pixel data to be written is written.

第2読出要求出力部303による第2読出要求の出力は、第2読出要求を示す第2読出要求信号を出力することである。第2読出要求信号には、フレームメモリ309において、読出対象の画素データが記憶される記憶領域のアドレスが含まれている。   The output of the second read request by the second read request output unit 303 is to output a second read request signal indicating the second read request. The second read request signal includes the address of the storage area in the frame memory 309 where the pixel data to be read is stored.

第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303は、互いに独立した基準に基づいて、第1読出要求、書込要求、及び第2読出要求をそれぞれ出力する。   The first read request output unit 301, the write request output unit 302, and the second read request output unit 303 output the first read request, the write request, and the second read request based on mutually independent criteria, respectively. To do.

第1読出要求出力部301は、例えば、リードバッファ307が空の場合に、第1読出要求(第1読出要求信号)を出力する。このように、第1読出要求出力部301は、リードバッファ307が空の場合に、画像処理の対象となる画像データをフレームメモリ309から読み出す要求を出力するため、当該リードバッファ307の回路規模を小さくすることができ、さらに、独立した効果的な基準により、画像データの読み出しタイミングが決定されることになる。   For example, when the read buffer 307 is empty, the first read request output unit 301 outputs a first read request (first read request signal). In this way, the first read request output unit 301 outputs a request to read image data to be subjected to image processing from the frame memory 309 when the read buffer 307 is empty, so that the circuit scale of the read buffer 307 is increased. Further, the read timing of the image data is determined by an independent and effective standard.

書込要求出力部302は、ライトバッファ306に所定量のデータが書き込まれた場合(例えば、一杯になった場合、すなわち、ライトバッファ306の容量と同じ量のデータが書き込まれた場合)に、書込要求(書込要求信号)を出力する。このように、書込要求出力部302は、ライトバッファ306が、例えば一杯になった場合に、画像処理後の画像データをライトバッファ306からフレームメモリ309に書き込む要求を出力するため、当該ライトバッファ306の回路規模を小さくすることができ、さらに、独立した効果的な基準により、画像データの書き込みタイミングが決定されることになる。   When a predetermined amount of data is written in the write buffer 306 (for example, when the data is full, that is, when the same amount of data as the capacity of the write buffer 306 is written), the write request output unit 302 A write request (write request signal) is output. Thus, the write request output unit 302 outputs a request to write image data after image processing from the write buffer 306 to the frame memory 309 when the write buffer 306 is full, for example. The circuit scale of 306 can be reduced, and the writing timing of the image data is determined by an independent and effective reference.

第2読出要求出力部303は、フレームメモリ309に記憶されている処理画像データ277を読み出して、DMAC252の制御によりSRAM243にデータ転送する場合に、所定のタイミングで第2読出要求(第2読出要求信号)を出力するよう制御する。   The second read request output unit 303 reads out the processed image data 277 stored in the frame memory 309 and transfers the data to the SRAM 243 under the control of the DMAC 252 at a predetermined timing. Signal).

また、第2読出要求出力部303は、DMAC252がバッファを備える場合に、例えば、DMAC252のバッファの空き状況に基づいて、第2読出要求(第2読出要求信号)を出力する。例えば、第2読出要求出力部303は、バッファが空の場合、第2読出要求を出力する。あるいは、第2読出要求出力部303は、バッファの空き容量が所定量以上の場合(例えば、4画素分の画素データのデータ量以上の場合)、第2読出要求を出力する。言い換えれば、第2読出要求出力部303は、バッファに記憶することができるデータ量が所定量以上の場合、第2読出要求を出力する。   Further, when the DMAC 252 includes a buffer, the second read request output unit 303 outputs a second read request (second read request signal) based on, for example, the buffer availability of the DMAC 252. For example, the second read request output unit 303 outputs a second read request when the buffer is empty. Alternatively, the second read request output unit 303 outputs a second read request when the free space of the buffer is equal to or greater than a predetermined amount (for example, when the amount of data of pixel data for four pixels is equal to or greater). In other words, the second read request output unit 303 outputs a second read request when the amount of data that can be stored in the buffer is greater than or equal to a predetermined amount.

ただし、フレームメモリ309内に、出力対象データ、つまり処理画像データ277が記憶されていない場合には、記憶制御部300は出力対象データをフレームメモリ309から読み出すことができない。したがって、第2読出要求出力部303は、フレームメモリ309において、処理画像データ277の画素データが4画素分以上記憶されている場合であって、かつバッファが空の場合、第2読出要求を出力する。あるいは、第2読出要求出力部303は、フレームメモリ309において、処理画像データ277の画素データが4画素分以上記憶されている場合であって、かつバッファの空き容量が所定量以上の場合、第2読出要求を出力する。   However, if output target data, that is, processed image data 277 is not stored in the frame memory 309, the storage control unit 300 cannot read the output target data from the frame memory 309. Therefore, the second read request output unit 303 outputs the second read request when the pixel data of the processed image data 277 is stored in the frame memory 309 for four pixels or more and the buffer is empty. To do. Alternatively, the second read request output unit 303 is the case where the pixel data of the processed image data 277 is stored in the frame memory 309 for four pixels or more, and the buffer free space is a predetermined amount or more. 2 Read request is output.

このように、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303は、互いに独立した基準に基づいて、第1読出要求、書込要求、及び第2読出要求をそれぞれ出力することから、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合することがある。つまり、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303の少なくとも2つから同時に要求が出力されることがある。   In this manner, the first read request output unit 301, the write request output unit 302, and the second read request output unit 303 are based on the mutually independent criteria, and the first read request, the write request, and the second read Since each request is output, at least two requests of the first read request, the write request, and the second read request may conflict. That is, a request may be simultaneously output from at least two of the first read request output unit 301, the write request output unit 302, and the second read request output unit 303.

そこで、記憶制御部300には、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合する場合に、競合する少なくとも2つの要求を調停する調停部304が設けられている。   Therefore, the storage control unit 300 is provided with an arbitration unit 304 that arbitrates at least two conflicting requests when at least two requests of the first read request, the write request, and the second read request conflict. Yes.

調停部304は、第1読出要求、書込要求、及び第2読出要求が競合しない場合には、入力される要求に応じた処理をフレームメモリ309に対して行う。一方で、調停部304は、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合する場合には、競合する少なくとも2つの要求を調停することによって当該2つの要求の一つを選択する。そして、調停部304は、選択した要求に応じた処理をフレームメモリ309に対して行う。   When the first read request, the write request, and the second read request do not conflict, the arbitrating unit 304 performs processing corresponding to the input request on the frame memory 309. On the other hand, when at least two requests of the first read request, the write request, and the second read request conflict, the arbitrating unit 304 arbitrates the at least two conflicting requests, thereby adjusting the two requests. Select one. Then, the arbitrating unit 304 performs processing on the frame memory 309 according to the selected request.

本実施形態では、第1読出要求、書込要求、及び第2読出要求に対して(または、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303の各出力部に対して)、処理の優先度が割り当てられている。例えば、第1読出要求に対して最も高い優先度が割てられ、書込要求に対して2番目に高い優先度が割り当てら、第2読出要求に対しては最も低い優先度が割り当てられる。そして、調停部304は、競合した要求の優先度に基づいて、当該要求を調停する。調停部304では、競合した要求のうち、優先度が最も高い要求が選択され、選択された要求に応じた処理が行われる。したがって、例えば、第1読出要求、書込要求、及び第2読出要求の3つの要求が競合する場合には、第1読出要求が選択される。また、書込要求、及び第2読出要求の2つの要求が競合する場合には、書込要求が選択される。   In the present embodiment, each of the first read request, the write request, and the second read request (or each of the first read request output unit 301, the write request output unit 302, and the second read request output unit 303). Processing priority is assigned to the output unit). For example, the highest priority is assigned to the first read request, the second highest priority is assigned to the write request, and the lowest priority is assigned to the second read request. Then, the arbitrating unit 304 arbitrates the request based on the priority of the conflicting request. In the arbitrating unit 304, a request having the highest priority is selected from the conflicting requests, and processing according to the selected request is performed. Therefore, for example, when the three requests of the first read request, the write request, and the second read request conflict, the first read request is selected. Further, when the two requests, the write request and the second read request, conflict, the write request is selected.

調停部304は、第1読出要求に応じた処理を行う場合には、第1読出要求出力部301から入力される第1読出要求信号に含まれるアドレスと、リード信号とをフレームメモリ309に出力する。これにより、フレームメモリ309における、第1読出要求信号に含まれるアドレスの記憶領域から4画素分の画素データが読み出され、読み出された画素データがリードバッファ307に書き込まれる。調停部304が第1読出要求に応じた処理を行う際には、出力制御部308が非DMA出力モードで動作していることから、フレームメモリ309から読み出されたデータは出力制御部308からSRAM243等に出力されることはない。   When the arbitration unit 304 performs processing in response to the first read request, the arbitration unit 304 outputs the address included in the first read request signal input from the first read request output unit 301 and the read signal to the frame memory 309. To do. As a result, the pixel data for four pixels is read from the storage area of the address included in the first read request signal in the frame memory 309, and the read pixel data is written to the read buffer 307. When the arbitration unit 304 performs processing in response to the first read request, the data read from the frame memory 309 is output from the output control unit 308 because the output control unit 308 operates in the non-DMA output mode. It is not output to the SRAM 243 or the like.

調停部304は、書込要求に応じた処理を行う場合には、ライトバッファ306から4画素分の画素データを読み出してフレームメモリ309に出力するとともに、書込要求出力部302から入力される書込要求信号に含まれるアドレスと、ライト信号とをフレームメモリ309に出力する。これにより、ライトバッファ306から出力される4画素分の画素データが、フレームメモリ309における、書き込み要求信号に含まれるアドレスの記憶領域に対して書き込まれる。   The arbitration unit 304 reads out the pixel data for four pixels from the write buffer 306 and outputs the pixel data to the frame memory 309 when performing processing according to the write request, and also receives the write input from the write request output unit 302. The address and write signal included in the write request signal are output to the frame memory 309. As a result, the pixel data for four pixels output from the write buffer 306 is written to the storage area of the address included in the write request signal in the frame memory 309.

調停部304は、第2読出要求に応じた処理を行う場合には、第2読出要求出力部303から入力される第2読出要求信号に含まれるアドレスと、リード信号とをフレームメモリ309に出力するとともに、出力制御部308の動作モードを非DMA出力モードからDMA出力モードに変更する。これにより、フレームメモリ309における、第2読出要求信号に含まれるアドレスの記憶領域から4画素分の画素データが読み出され、読み出された4画素分の画素データは、出力制御部308からDMAC252の制御によりSRAM243に出力される。   When the arbitration unit 304 performs processing in response to the second read request, the arbitration unit 304 outputs the address included in the second read request signal input from the second read request output unit 303 and the read signal to the frame memory 309. At the same time, the operation mode of the output control unit 308 is changed from the non-DMA output mode to the DMA output mode. Thereby, the pixel data for four pixels is read from the storage area of the address included in the second read request signal in the frame memory 309, and the read pixel data for four pixels is read from the output control unit 308 from the DMAC 252. Is output to the SRAM 243 under the control of.

なお、上記の例では、座標変換回路272での処理時間が比較的大きく、座標変換回路272において変換後画像データ276の画素データがすぐに得られず、その結果、処理画像データ277の画素データが得られにくい状況を想定し、制御LSI234全体での処理速度を向上するために、処理画像データ277の画素データの生成に必要な第1読出要求、及び書込要求の優先度を、第2読出要求の優先度よりも高くしている。しかしながら、第1読出要求、書込要求、及び第2読出要求に対する優先度の割り当て方はこの限りではない。   In the above example, the processing time in the coordinate conversion circuit 272 is relatively long, and the pixel data of the converted image data 276 cannot be obtained immediately in the coordinate conversion circuit 272. As a result, the pixel data of the processed image data 277 In order to improve the processing speed of the entire control LSI 234, the priority of the first read request and the write request necessary for generating the pixel data of the processed image data 277 is set to the second priority. The priority is higher than the priority of the read request. However, the method of assigning priority to the first read request, the write request, and the second read request is not limited to this.

例えば、DMAC252の制御によって、フレームメモリ309の処理画像データ277をSRAM243にDMA転送する場合であって、制御LSI234のバスの使用率が常に高く、SRAM243に対してデータを転送しにくく、その結果、処理画像データ277の転送レートが上がらない場合には、フレームメモリ309において出力対象データ(処理画像データ277の画素データ)が蓄積されやすい状況となる。この場合に、第1読出要求、及び書込要求の優先度を、第2読出要求の優先度よりも高くすると、フレームメモリ309に記憶された処理画像データ277はいつまでも画像処理回路273から出力されない可能性がある。そこで、このような場合には、フレームメモリ309から処理画像データ277を読み出すための第2読出要求の優先度を、第1読出要求、及び書込要求の優先度よりも高く設定し、これによって、制御LSI234全体での処理速度を向上させることができる。   For example, when the processed image data 277 of the frame memory 309 is DMA-transferred to the SRAM 243 under the control of the DMAC 252, the bus utilization rate of the control LSI 234 is always high, and it is difficult to transfer data to the SRAM 243. When the transfer rate of the processed image data 277 does not increase, output target data (pixel data of the processed image data 277) is easily stored in the frame memory 309. In this case, if the priority of the first read request and the write request is higher than the priority of the second read request, the processed image data 277 stored in the frame memory 309 is not output from the image processing circuit 273 indefinitely. there is a possibility. Therefore, in such a case, the priority of the second read request for reading the processed image data 277 from the frame memory 309 is set higher than the priority of the first read request and the write request. The processing speed of the entire control LSI 234 can be improved.

また、例えば、DMAC252がバッファを備える場合であって、制御LSI234のバスの使用率が常に高く、DMAC252からSRAM243に対してデータを転送しにくく、その結果、DMAC252のバッファに空きが生じにくい場合には、フレームメモリ309において出力対象データ(処理画像データ277の画素データ)が蓄積されやすい状況となる。この場合に、第1読出要求、及び書込要求の優先度を、第2読出要求の優先度よりも高くすると、フレームメモリ309に記憶された処理画像データ277はいつまでも画像処理回路273から出力されない可能性がある。そこで、このような場合には、フレームメモリ309から処理画像データ277を読み出すための第2読出要求の優先度を、第1読出要求、及び書込要求の優先度よりも高く設定し、これによって、制御LSI234全体での処理速度を向上することができる。   In addition, for example, when the DMAC 252 includes a buffer, and the bus usage rate of the control LSI 234 is always high, it is difficult to transfer data from the DMAC 252 to the SRAM 243, and as a result, it is difficult for the DMAC 252 buffer to be empty. This is a situation where the output target data (pixel data of the processed image data 277) is likely to be accumulated in the frame memory 309. In this case, if the priority of the first read request and the write request is higher than the priority of the second read request, the processed image data 277 stored in the frame memory 309 is not output from the image processing circuit 273 indefinitely. there is a possibility. Therefore, in such a case, the priority of the second read request for reading the processed image data 277 from the frame memory 309 is set higher than the priority of the first read request and the write request. The processing speed of the entire control LSI 234 can be improved.

このように、記憶制御部300では、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合する場合には、当該少なくとも2つの要求が調停される。そのため、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303は互いに独立して動作することができる。よって、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303のうちの特定の出力部での処理がボトルネックになることを抑制することができる。その結果、制御LSI234全体の処理速度を向上させることができる。   As described above, in the storage control unit 300, when at least two requests of the first read request, the write request, and the second read request compete, the at least two requests are arbitrated. Therefore, the first read request output unit 301, the write request output unit 302, and the second read request output unit 303 can operate independently of each other. Therefore, it is possible to suppress processing at a specific output unit among the first read request output unit 301, the write request output unit 302, and the second read request output unit 303 from becoming a bottleneck. As a result, the processing speed of the entire control LSI 234 can be improved.

なお、処理の優先度は変更できるように構成することができる。例えば、ユーザの操作により、または自動的に処理の優先度を変更できるように制御LSI234を構成してもよい。また、画像処理回路273は、制御LSI234の動作状況に応じて処理の優先度を変更してもよい。例えば、バスの使用率を求めるバス使用率算出回路を制御LSI234に設け、画像処理回路273が、当該バス使用率算出回路で得られるバスの使用率に基づいて処理の優先度を変更するように構成してもよい。具体的には、バスの使用率が所定値よりも大きい場合には、第2読出要求の優先度を、第1読出要求、及び書込要求の優先度よりも高くし、バスの使用率が所定値以下の場合には、第1読出要求、及び書込要求の優先度を、第2読出要求の優先度よりも高くする。このように、処理の優先度を動的に変更することにより、画像処理回路273全体の処理速度をさらに向上させることができる。   The processing priority can be changed. For example, the control LSI 234 may be configured so that the processing priority can be changed by a user operation or automatically. Further, the image processing circuit 273 may change the processing priority according to the operation status of the control LSI 234. For example, a bus usage rate calculation circuit for determining the bus usage rate is provided in the control LSI 234 so that the image processing circuit 273 changes the processing priority based on the bus usage rate obtained by the bus usage rate calculation circuit. It may be configured. Specifically, when the bus usage rate is greater than a predetermined value, the priority of the second read request is set higher than the priority of the first read request and the write request, and the bus usage rate is If the value is equal to or less than the predetermined value, the priority of the first read request and the write request is set higher than the priority of the second read request. In this way, the processing speed of the entire image processing circuit 273 can be further improved by dynamically changing the processing priority.

[制御LSI234による正規メダル判別処理のフロー]
次に、図31ないし図33を参照して、制御LSI234が行う、メダルレール210上を移動する物体が正規メダルか否かを判別するための処理(以下、「正規メダル判別処理」と称する場合がある)について説明する。
[Flow of regular medal discrimination process by control LSI 234]
Next, referring to FIG. 31 to FIG. 33, a process performed by the control LSI 234 for determining whether or not the object moving on the medal rail 210 is a regular medal (hereinafter referred to as “regular medal determination process”). Explain).

図31、及び図32は、制御LSI234の正規メダル判別処理を説明するための図である。図31、及び図32は、制御LSI234を構成する各デバイスにおける処理の関係を時系列的に示しており、各デバイス名の下方に延在する垂直線における比較的太線の部分は、そのデバイスが上述した各種処理を行っている状態であることを示している。また、各デバイスに対応する線からホストコントローラにおける「IN」の下方に延在する垂直線に向かって延びる破線矢印は、各デバイスからホストコントローラ241へ出力される割込信号を示している。   FIGS. 31 and 32 are diagrams for explaining the regular medal discrimination process of the control LSI 234. FIG. 31 and FIG. 32 show the relationship of processing in each device constituting the control LSI 234 in time series, and the relatively thick line portion of the vertical line extending below each device name indicates that the device is It shows that the various processes described above are being performed. A broken line arrow extending from a line corresponding to each device toward a vertical line extending below “IN” in the host controller indicates an interrupt signal output from each device to the host controller 241.

また、ホストコントローラにおける「OUT」の下方に延在する垂直線から各デバイスに対応する線に向かって延びる破線矢印は、ホストコントローラ241から各デバイスに出力される信号を示している。また、ホストコントローラにおける「IN」の下方に延在する垂直線と「OUT」の下方に延在する垂直線との間の実線矢印は、ホストコントローラ241が検知した割込信号とホストコントローラ241から出力される信号との対応関係を示している。   A broken line arrow extending from a vertical line extending below “OUT” in the host controller toward a line corresponding to each device indicates a signal output from the host controller 241 to each device. In addition, a solid arrow between a vertical line extending below “IN” and a vertical line extending below “OUT” in the host controller indicates an interrupt signal detected by the host controller 241 and the host controller 241. The correspondence relationship with the output signal is shown.

なお、図31は、メダル投入口21(図2参照)に6枚のメダルが連続して投入された場合の正規メダル判別処理に関し、最初のメダルに関する判別処理を抜き出して示しており、図32は、6枚のメダルが連続して投入された場合の正規メダル判別処理の全体を(最初のメダルに関する判別処理を含んで)示している。また、何枚目のメダルに係る信号なのかが明確になるように、各信号に付した符号の先頭には、メダルの投入順を表す数字を付している。例えば、1枚目のメダルに係る後述するISP回路245からホストコントローラ241に出力されるVSYNC割込信号には、「1IH」という符号を付し、2枚目のメダルに係る同様のVSYNC割込信号には、「2IH」という符号を付した。   Note that FIG. 31 shows an extraction process of the first medal regarding the regular medal determination process when six medals are continuously inserted into the medal insertion slot 21 (see FIG. 2). Shows the entire regular medal discrimination process when 6 medals are inserted consecutively (including the discrimination process for the first medal). In addition, in order to clarify the number of medals related to the signal, a number indicating the order of insertion of medals is attached to the head of the code attached to each signal. For example, a VSYNC interrupt signal output to the host controller 241 from an ISP circuit 245, which will be described later, related to the first medal is labeled with “1IH”, and the same VSYNC interrupt related to the second medal is assigned. The signal was labeled “2IH”.

まず、CMOSイメージセンサ232(図17参照)がメダルレール210上を移動する物体(本例では1枚目のメダル)を撮像し、画像データを制御LSI234に出力すると、ISP回路245は、ISI回路251を介して画像データを取得(受信)し、VSYNC(Vertical Synchronization)割込信号を、ホストコントローラ241に出力する(1IH)。また、ISP回路245は、RGBベイヤ画像を各種フォーマットに変換する変換処理を行う。そして、変換後の画像データ及び画像データに係る色相及び彩度や輝度のデータをSRAM243、メダルカウント回路246、カラー認識回路247に出力する。なお、変換処理の詳細な説明については上述したため省略する。   First, when the CMOS image sensor 232 (see FIG. 17) images an object moving on the medal rail 210 (in this example, the first medal) and outputs the image data to the control LSI 234, the ISP circuit 245 causes the ISI circuit Image data is acquired (received) via 251 and a VSYNC (Vertical Synchronization) interrupt signal is output to the host controller 241 (1IH). Further, the ISP circuit 245 performs conversion processing for converting the RGB Bayer image into various formats. Then, the converted image data and the hue, saturation, and luminance data relating to the image data are output to the SRAM 243, the medal count circuit 246, and the color recognition circuit 247. The detailed description of the conversion process has been described above, and will not be repeated.

カラー認識回路247は、ISP回路245からデータを受信すると色判定処理を行い、判定結果をSRAM243に記憶させ、また、ホストコントローラ241に色判定割込信号を出力する(1CH)。なお、色判定処理の詳細な説明については上述したため省略する。   When receiving data from the ISP circuit 245, the color recognition circuit 247 performs color determination processing, stores the determination result in the SRAM 243, and outputs a color determination interrupt signal to the host controller 241 (1CH). Note that the detailed description of the color determination process has been described above, and will be omitted.

メダルカウント回路246は、ISP回路245からデータを受信するとカウント処理を行い、判定結果をSRAM243に記憶させ、また、ホストコントローラ241にメダルカウント割込信号を出力する(1MH)。なお、カウント処理の詳細な説明については上述したため省略する。   When the medal count circuit 246 receives data from the ISP circuit 245, the medal count circuit 246 performs count processing, stores the determination result in the SRAM 243, and outputs a medal count interrupt signal to the host controller 241 (1MH). Note that the detailed description of the count process has been described above, and is therefore omitted.

ホストコントローラ241は、色判定割込信号を検知すると、SRAM243から色判定処理の判定結果を取得し、GPIO250の割り付けPORTに出力する(1HG1)。すなわちホストコントローラ241は、色判定処理の判定結果を、GPIO250を介して主制御基板71(主制御回路91)に出力する。   When the host controller 241 detects the color determination interrupt signal, the host controller 241 acquires the determination result of the color determination processing from the SRAM 243 and outputs it to the allocation PORT of the GPIO 250 (1HG1). That is, the host controller 241 outputs the determination result of the color determination process to the main control board 71 (main control circuit 91) via the GPIO 250.

ホストコントローラ241は、カウント割込信号を検知すると、SRAM243からカウント処理の判定結果を取得し、GPIO250の割り付けPORTに出力する(1HG2)。すなわちホストコントローラ241は、カウント処理の判定結果を、GPIO250を介して主制御基板71(主制御回路91)に出力する。なお、カウント処理の判定結果が「メダルが通過した」である場合、主制御回路91は、投入されたメダルの枚数をメインCPU93が計数するために設けられたカウンタである投入枚数カウンタの値に1加算する。なお、投入枚数カウンタの値が最大値(例えば、3)の場合は、クレジットされているメダルの枚数をメインCPU93が計数するために設けられたカウンタであるクレジットカウンタの値に1加算する。クレジットカウンタが最大値(例えば、50)の場合は、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定する。これによって、セレクトプレート207が「排出位置」に位置付けされ、クレジットカウンタが最大値となった後で投入されたメダルをメダルシュート202に案内してメダル払出口32からメダルトレイユニット34に排出する。本実施形態では、投入枚数カウンタの値が規定値(例えば、2または3)のときに、スタートレバーが操作されると、メインCPU93は上述の内部抽籤処理を行う。   When the host controller 241 detects the count interrupt signal, the host controller 241 acquires the determination result of the count process from the SRAM 243 and outputs it to the allocation PORT of the GPIO 250 (1HG2). That is, the host controller 241 outputs the determination result of the count process to the main control board 71 (main control circuit 91) via the GPIO 250. When the determination result of the counting process is “medal has passed”, the main control circuit 91 sets the value of the inserted number counter, which is a counter provided for the main CPU 93 to count the number of inserted medals. Add one. When the value of the inserted number counter is the maximum value (for example, 3), 1 is added to the value of a credit counter that is a counter provided for the main CPU 93 to count the number of credited medals. When the credit counter is the maximum value (for example, 50), the main control circuit 91 sets the medal solenoid 208 of the medal selector 201 to the OFF state. As a result, the select plate 207 is positioned at the “discharge position”, and medals inserted after the credit counter reaches the maximum value are guided to the medal chute 202 and discharged from the medal payout opening 32 to the medal tray unit 34. In the present embodiment, when the value of the insertion number counter is a specified value (for example, 2 or 3), when the start lever is operated, the main CPU 93 performs the above-described internal lottery process.

魚眼補正スケーラ回路248は、ISP回路245が変換した画像データがSRAM243に記憶されると魚眼補正処理を行い、作成した縮小画像データをSRAM243に記憶させ、また、ホストコントローラ241に縮小終了割込信号を送信する(1SH)。なお、魚眼補正処理の詳細な説明については上述したため省略する。   When the image data converted by the ISP circuit 245 is stored in the SRAM 243, the fish-eye correction scaler circuit 248 performs fish-eye correction processing, stores the generated reduced image data in the SRAM 243, and causes the host controller 241 to reduce the reduction completion rate. Send a signal (1SH). Since the detailed description of the fisheye correction process has been described above, it will be omitted.

ホストコントローラ241は、縮小終了割込信号を検知すると、SRAM243を参照し、カウント処理の判定結果が「メダルが通過した」であり、また、色判定処理の判定結果が「正規メダルの色と一致する」であることを条件に、画像認識DSP回路242に前処理の開始を指示する(1HD)。   When the host controller 241 detects the reduction end interrupt signal, the host controller 241 refers to the SRAM 243, and the determination result of the count process is “the medal has passed”, and the determination result of the color determination process is “matches the color of the regular medal” On the condition that it is “Yes”, the image recognition DSP circuit 242 is instructed to start preprocessing (1HD).

画像認識DSP回路242は、ホストコントローラ241からの指示に応じて前処理を行い、エッジ画像データをSRAM243に記憶させ、ホストコントローラ241に前処理終了割込信号を出力する(1DH1)。なお、前処理の詳細な説明については上述したため省略する。また、本実施形態の画像認識DSP回路242は、SRAM243から縮小画像データを、DMA転送によって取得し、さらに、前処理の結果生成したエッジ画像データをDMA転送によりSRAM243に記憶させるため、このようなDMA転送を用いない同回路と比べて、前処理の処理時間が短縮される。   The image recognition DSP circuit 242 performs preprocessing according to an instruction from the host controller 241, stores the edge image data in the SRAM 243, and outputs a preprocessing end interrupt signal to the host controller 241 (1DH1). Note that the detailed description of the pre-processing has been described above and is omitted. Further, the image recognition DSP circuit 242 of the present embodiment acquires reduced image data from the SRAM 243 by DMA transfer, and further stores the edge image data generated as a result of the preprocessing in the SRAM 243 by DMA transfer. Compared with the same circuit that does not use DMA transfer, the processing time of the preprocessing is shortened.

ホストコントローラ241は、前処理完了割込信号を検知すると、画像認識アクセラレータ回路249に、画像処理(例えば、ここでは回転積算処理)の開始を指示する(1HA)。   When the host controller 241 detects the preprocessing completion interrupt signal, the host controller 241 instructs the image recognition accelerator circuit 249 to start image processing (for example, rotation integration processing here) (1HA).

画像認識アクセラレータ回路249は、ホストコントローラ241の指示に応じて画像処理を行い、処理画像データをSRAM243に記憶させ、画像認識DSP回路242に画像処理終了割込信号を出力する(1AD)。なお、画像処理の一例である回転積算処理の詳細な説明については上述したため省略する。また、本実施形態の画像認識アクセラレータ回路249は、SRAM243からエッジ画像データを、DMA転送によって取得し、生成した処理画像データをDMA転送によりSRAM243に記憶させるため、このようなDMA転送を用いない同回路と比べて、画像処理の処理時間が短縮される。   The image recognition accelerator circuit 249 performs image processing in accordance with an instruction from the host controller 241, stores the processed image data in the SRAM 243, and outputs an image processing end interrupt signal to the image recognition DSP circuit 242 (1AD). Note that the detailed description of the rotation integration process, which is an example of the image processing, has been described above, and is omitted here. Further, the image recognition accelerator circuit 249 according to the present embodiment acquires edge image data from the SRAM 243 by DMA transfer, and stores the generated processed image data in the SRAM 243 by DMA transfer. Compared with the circuit, the processing time of the image processing is shortened.

画像認識DSP回路242は、画像処理終了割込信号を検知すると、SRAM243に記憶されている処理画像データを取得し、刻印判定処理を行い、判定結果をSRAM243に記憶させる。そして、画像認識DSP回路242は、刻印判定終了割込信号をホストコントローラ241に出力する(1DH2)。また、本実施形態の画像認識DSP回路242は、画像処理で作成した処理画像データを、例えば、DMA転送によってSRAM243から取得するため、このようなDMA転送を用いない同回路と比べて、刻印判定処理の処理時間が短縮される。   When the image recognition DSP circuit 242 detects the image processing end interrupt signal, the image recognition DSP circuit 242 acquires the processed image data stored in the SRAM 243, performs a marking determination process, and stores the determination result in the SRAM 243. Then, the image recognition DSP circuit 242 outputs a marking determination end interrupt signal to the host controller 241 (1DH2). Further, the image recognition DSP circuit 242 of the present embodiment acquires the processed image data created by the image processing from the SRAM 243 by, for example, DMA transfer. Processing time of processing is shortened.

ホストコントローラ241は、刻印判定終了割込信号を検知すると、SRAM243に記憶されている刻印判定処理の判定結果を取得し、GPIOの割り付けPORTに出力する(1HG3)。すなわちホストコントローラ241は、刻印判定処理の判定結果を、GPIO250を介して主制御基板71(主制御回路91)に出力する。   When the host controller 241 detects the marking determination end interrupt signal, the host controller 241 acquires the determination result of the marking determination process stored in the SRAM 243 and outputs it to the GPIO allocation PORT (1HG3). That is, the host controller 241 outputs the determination result of the marking determination process to the main control board 71 (main control circuit 91) via the GPIO 250.

図31に示すように、本実施形態においては、画像認識DSP回路242による前処理及び刻印判定処理、並びに画像認識アクセラレータ回路249による画像処理は、上記のように、DMA転送によって時間短縮が図られているものの、比較的時間がかかる。このため、メダルが連続して投入された場合、ホストコントローラ241は、縮小終了割込信号(1SH等)を検知すると、このときに、画像認識DSP回路242または画像認識アクセラレータ回路249が処理中(ビジー状態)か否かを確認し、いずれも処理中でない場合に、画像認識DSP回路242による前処理及び刻印判定処理並びに画像認識アクセラレータ回路249による画像処理の開始の指示を行うよう制御する。   As shown in FIG. 31, in this embodiment, the preprocessing and engraving determination processing by the image recognition DSP circuit 242 and the image processing by the image recognition accelerator circuit 249 are shortened by DMA transfer as described above. It takes a relatively long time. Therefore, when medals are continuously inserted, when the host controller 241 detects a reduction end interrupt signal (1SH or the like), at this time, the image recognition DSP circuit 242 or the image recognition accelerator circuit 249 is processing ( If none of the processing is in progress, control is performed to instruct the image recognition DSP circuit 242 to perform preprocessing and marking determination processing and the image recognition accelerator circuit 249 to start image processing.

次に、図32を参照して、6枚のメダルが連続して投入された場合の正規メダル判別処理の全体を説明する。図32には、図31に示した、最初のメダルに関する判別処理がすべて含まれている。   Next, with reference to FIG. 32, the entire regular medal discrimination process when six medals are inserted in succession will be described. FIG. 32 includes all the determination processes related to the first medal shown in FIG.

図32に示す例では、連続的に投入されるメダルについて正規メダル判別処理を連続して行うため、2枚目、及び4枚目のメダルに係る縮小終了割込信号(2SH及び4SH)をホストコントローラ241が検知する時、画像認識DSP回路242または画像認識アクセラレータ回路249が処理中(ビジー状態)であるため、ホストコントローラ241は、上述した画像処理の開始の指示(前処理、画像処理、及び刻印判定処理の開始の指示)を行わない。したがって、2枚目及び4枚目のメダルについては、カウント処理、色判定処理、及び魚眼補正処理は行われるが、前処理、画像処理、及び刻印判定処理は行われない。一方、3枚目のメダルに係る縮小終了割込信号(3SH)をホストコントローラ241が検知する時、画像認識DSP回路242及び画像認識アクセラレータ回路249は処理中(ビジー状態)ではない。したがって、3枚目のメダルについては、カウント処理、色判定処理、魚眼補正処理に加え、前処理、画像処理、及び刻印判定処理が行われる。   In the example shown in FIG. 32, since the regular medal determination process is continuously performed for medals continuously inserted, the reduction end interrupt signals (2SH and 4SH) relating to the second and fourth medals are hosted. When the controller 241 detects, since the image recognition DSP circuit 242 or the image recognition accelerator circuit 249 is being processed (busy state), the host controller 241 instructs the above-described image processing start (preprocessing, image processing, and (Instruction for starting the marking determination process) is not performed. Therefore, for the second and fourth medals, count processing, color determination processing, and fisheye correction processing are performed, but preprocessing, image processing, and marking determination processing are not performed. On the other hand, when the host controller 241 detects the reduction end interrupt signal (3SH) related to the third medal, the image recognition DSP circuit 242 and the image recognition accelerator circuit 249 are not being processed (busy state). Therefore, for the third medal, in addition to the count process, the color determination process, and the fisheye correction process, a pre-process, an image process, and a marking determination process are performed.

またここで、ホストコントローラ241によるカウント処理の判定結果のGPIO250への出力(1HG2)と、画像認識DSP回路242による前処理終了割込信号の送信(1DH1)との間には、ISP回路245による2枚目のメダルに係るVSYNC割込信号の出力(2IH)が発生している。しかし、各メダルに係る各種処理(カウント処理、色判定処理、刻印判定処理など)の判定結果などを記憶するためのSRAM243の記憶領域は個別に設定されているため、データの上書きなどは発生しない。このような状況は、3枚目以降のメダルの処理においても同様である。   Also, here, the ISP circuit 245 causes the interval between the output of the determination result of the count process by the host controller 241 to the GPIO 250 (1HG2) and the transmission of the preprocessing end interrupt signal by the image recognition DSP circuit 242 (1DH1). The output (2IH) of the VSYNC interrupt signal related to the second medal is generated. However, since the storage area of the SRAM 243 for storing the determination results of various processes (counting process, color determination process, engraving determination process, etc.) related to each medal is individually set, no data overwriting occurs. . Such a situation is the same in the processing of the third and subsequent medals.

なお、画像認識DSP回路242による前処理及び刻印判定処理、並びに画像認識アクセラレータ回路249による画像処理をより高速化することで、投入されるすべてのメダルについて、カウント処理、色判定処理及び刻印判定処理が行われるようにしてもよい。   It should be noted that the pre-processing and marking determination processing by the image recognition DSP circuit 242 and the image processing by the image recognition accelerator circuit 249 are further accelerated, so that the counting processing, color determination processing, and marking determination processing are performed for all medals inserted. May be performed.

図32に示す2枚目、3枚目、4枚目、5枚目、及び6枚目のメダルに係る各種信号(符号の先頭が「2」、「3」、「4」、「5」、「6」の各信号)については、先頭の数字のみが異なる上述した1枚目のメダルに係る各種信号(符号の先頭が「1」)と同様のため、詳細な説明を省略する。なお、図32に示した、制御LSI234の正規メダル判別処理における各デバイスの処理タイミングは例示に過ぎない。各デバイスの処理能力や処理内容・処理手順に応じて、様々な処理タイミングで正規メダル判別処理が行われうる。   Various signals relating to the second, third, fourth, fifth, and sixth medals shown in FIG. 32 (the code starts with “2”, “3”, “4”, “5”) , “6” signals) are the same as the various signals related to the first medal described above (only the first symbol is “1”), which is different only in the first digit, and detailed description thereof is omitted. Note that the processing timing of each device in the regular medal discrimination processing of the control LSI 234 shown in FIG. 32 is merely an example. The regular medal determination process can be performed at various processing timings according to the processing capability, processing content, and processing procedure of each device.

次に、図33を参照して、画像認識アクセラレータ回路249による画像処理の流れをより詳細に説明する。   Next, the flow of image processing by the image recognition accelerator circuit 249 will be described in more detail with reference to FIG.

図33は、ホストコントローラ241と画像認識アクセラレータ回路249の動作フローを示す図であり、基本的に、上述した図32の処理の一部に対応するものである。最初に、(図32では省略されているが)パチスロ1の電源が投入されると、ホストコントローラ241は、画像認識アクセラレータ回路249をはじめとする各回路の初期設定を行う(ステップS0)。   FIG. 33 is a diagram showing an operation flow of the host controller 241 and the image recognition accelerator circuit 249, and basically corresponds to a part of the processing of FIG. 32 described above. First, when the power of the pachislot 1 is turned on (although omitted in FIG. 32), the host controller 241 performs initial setting of each circuit including the image recognition accelerator circuit 249 (step S0).

画像認識アクセラレータ回路249には、図示しない各種設定レジスタが設けられている。初期設定において、ホストコントローラ241は、画像認識アクセラレータ回路249の各種設定レジスタにデータを設定する。例えば、ホストコントローラ241は、対象画像データ275が記憶されるSRAM243上の記憶領域のアドレスを第1設定レジスタに設定したり、画像認識アクセラレータ回路249で得られる処理画像データ277の書き込み先であるSRAM243の記憶領域のアドレスを第2設定レジスタに設定したり、画像認識アクセラレータ回路249が処理する対象画像データ275の画像サイズを第3設定レジスタに設定する。   The image recognition accelerator circuit 249 is provided with various setting registers (not shown). In the initial setting, the host controller 241 sets data in various setting registers of the image recognition accelerator circuit 249. For example, the host controller 241 sets the address of the storage area on the SRAM 243 where the target image data 275 is stored in the first setting register, or the SRAM 243 to which the processed image data 277 obtained by the image recognition accelerator circuit 249 is written. Is set in the second setting register, and the image size of the target image data 275 processed by the image recognition accelerator circuit 249 is set in the third setting register.

さらに、画像認識アクセラレータ回路249の初期設定では、ホストコントローラ241は、変換パラメータ280を、画像認識アクセラレータ回路249のメモリ274に設定する。ホストコントローラ241は、例えば、SRAM243から変換パラメータ280を読み出し、これらの変換パラメータ280をメモリ274に書き込む。なお、ホストコントローラ241は、初期設定時に、変換パラメータ280を作成し、こうして作成された変換パラメータ280を、画像認識アクセラレータ回路249のメモリ274に書き込んでもよい。   Further, in the initial setting of the image recognition accelerator circuit 249, the host controller 241 sets the conversion parameter 280 in the memory 274 of the image recognition accelerator circuit 249. For example, the host controller 241 reads the conversion parameters 280 from the SRAM 243 and writes these conversion parameters 280 into the memory 274. The host controller 241 may create the conversion parameter 280 at the time of initial setting, and write the created conversion parameter 280 into the memory 274 of the image recognition accelerator circuit 249.

初期設定が終了した後、ホストコントローラ241は、画像認識アクセラレータ回路249に対して最初の対象画像データ275に関する画像処理の開始を指示する(ステップS1)。この指示により、図32に示した信号(1HA)が画像認識アクセラレータ回路249に送信される。ここでホストコントローラ241は、最初の対象画像データ275に関する画像処理において使用される特定情報290を、画像認識アクセラレータ回路249の制御回路282が有するレジスタ283に設定する。   After the initialization is completed, the host controller 241 instructs the image recognition accelerator circuit 249 to start image processing relating to the first target image data 275 (step S1). In response to this instruction, the signal (1HA) shown in FIG. 32 is transmitted to the image recognition accelerator circuit 249. Here, the host controller 241 sets the specific information 290 used in the image processing regarding the first target image data 275 in the register 283 included in the control circuit 282 of the image recognition accelerator circuit 249.

画像認識アクセラレータ回路249は、レジスタ283に特定情報290が設定されると、DMAC252の制御に基づいて、上述の第1設定レジスタに設定されているアドレス(SRAM243のアドレス)から最初の対象画像データ275を、DMA転送により読み出し、入力フレームバッファ271に書き込む(ステップS1−1)。座標変換回路272は、レジスタ283内の特定情報290に基づいて、メモリ274から最初に使用する変換パラメータ280を読み出し、読み出した変換パラメータ280に基づいて入力フレームバッファ271に記憶された対象画像データ275に対して1回目の座標変換を行う(ステップS1−1)。これにより、最初の変換後画像データ276−1が得られる。この最初の変換後画像データ276−1は、画像処理回路273のフレームメモリ309に記憶される。   When the specific information 290 is set in the register 283, the image recognition accelerator circuit 249 starts with the first target image data 275 from the address (address of the SRAM 243) set in the first setting register based on the control of the DMAC 252. Are read by DMA transfer and written to the input frame buffer 271 (step S1-1). The coordinate conversion circuit 272 reads the conversion parameter 280 to be used first from the memory 274 based on the specific information 290 in the register 283, and the target image data 275 stored in the input frame buffer 271 based on the read conversion parameter 280. For the first time (step S1-1). Thereby, the first post-conversion image data 276-1 is obtained. This first converted image data 276-1 is stored in the frame memory 309 of the image processing circuit 273.

座標変換回路272は、最初の変換後画像データ276−1を生成すると、特定情報290に基づいて、メモリ274から2番目に使用する変換パラメータ280を読み出し、読み出した変換パラメータ280に基づいて、入力フレームバッファ271に記憶された対象画像データ275に対して2回目の座標変換を行う(ステップS1−2)。これにより、2番目の変換後画像データ276−2が得られる。一方で、画像処理回路273は、最初の変換後画像データ276−1に対して、2番目の変換後画像データ276−2を加算する画像処理を行い、1回処理画像データ277−1を生成する(ステップS1−2)。   When the coordinate conversion circuit 272 generates the first post-conversion image data 276-1, the coordinate conversion circuit 272 reads the conversion parameter 280 used second from the memory 274 based on the specific information 290, and inputs the conversion parameter 280 based on the read conversion parameter 280. A second coordinate transformation is performed on the target image data 275 stored in the frame buffer 271 (step S1-2). As a result, second converted image data 276-2 is obtained. On the other hand, the image processing circuit 273 performs image processing for adding the second converted image data 276-2 to the first converted image data 276-1 to generate the once processed image data 277-1. (Step S1-2).

ここで、座標変換回路272は、変換後画像データ276の画素データを生成するたびに、生成した画素データを画像処理回路273に出力する。また、画像処理回路273は、座標変換回路272から画素データが入力されると、入力された画素データを、リードバッファ307から読み出した加算対象の画素データに加算する。したがって、画像認識アクセラレータ回路249では、変換後画像データ276−2が生成された後に、1回処理画像データ277−1が生成されるのではなく、座標変換回路272での変換後画像データ276−2の生成処理と、画像処理回路273での1回処理画像データ277−1の生成処理とが並行して実行される。   Here, the coordinate conversion circuit 272 outputs the generated pixel data to the image processing circuit 273 each time the pixel data of the converted image data 276 is generated. Further, when the pixel data is input from the coordinate conversion circuit 272, the image processing circuit 273 adds the input pixel data to the pixel data to be added read from the read buffer 307. Therefore, the image recognition accelerator circuit 249 does not generate the once-processed image data 277-1 after the converted image data 276-2 is generated, but the converted image data 276-in the coordinate conversion circuit 272. 2 generation processing and the generation processing of the once-processed image data 277-1 in the image processing circuit 273 are executed in parallel.

座標変換回路272は、2番目の変換後画像データ276−2を生成すると、特定情報290に基づいて、メモリ274から3番目に使用する変換パラメータ280を読み出し、読み出した変換パラメータ280に基づいて、入力フレームバッファ271に記憶された対象画像データ275に対して3回目の座標変換を行う。これにより、3番目の変換後画像データ276−3が得られる。一方で、画像処理回路273は、1回処理画像データ277−1に対して、3番目の変換後画像データ276−3を加算する画像処理を行い、2回処理画像データ277−2を生成する。   When generating the second converted image data 276-2, the coordinate conversion circuit 272 reads the conversion parameter 280 used third from the memory 274 based on the specific information 290, and based on the read conversion parameter 280, A third coordinate transformation is performed on the target image data 275 stored in the input frame buffer 271. As a result, third converted image data 276-3 is obtained. On the other hand, the image processing circuit 273 performs image processing for adding the third converted image data 276-3 to the once-processed image data 277-1 to generate twice-processed image data 277-2. .

以後、画像認識アクセラレータ回路249は同様に動作して、座標変換回路272は、N番目の変換後画像データ276−Nを生成する(ステップS1−N)。一方で、画像処理回路273は、(N−2)回処理画像データ277−(N−2)に対して、N番目の変換後画像データ276−Nを加算する画像処理を行い、(N−1)回処理画像データ277−(N−1)、すなわち、処理画像データ277を生成する(ステップS1−N)。その後、画像処理回路273は、処理画像データ277を、DMAC252の制御によってSRAM243に出力する(ステップS1−N)。   Thereafter, the image recognition accelerator circuit 249 operates in the same manner, and the coordinate conversion circuit 272 generates N-th converted image data 276-N (step S1-N). On the other hand, the image processing circuit 273 performs image processing for adding the N-th converted image data 276-N to the (N-2) -time processed image data 277- (N-2), and (N− 1) Generate processed image data 277- (N-1), that is, processed image data 277 (step S1-N). Thereafter, the image processing circuit 273 outputs the processed image data 277 to the SRAM 243 under the control of the DMAC 252 (step S1-N).

処理画像データ277は、上述の第2設定レジスタに設定されているアドレスの記憶領域に対して書き込まれる(ステップS1−N)。上述のように、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303は互いに独立して動作するため、画像処理回路273において、加算処理部305での加算処理と、出力制御部308での出力処理とは並行して実行される。したがって、画像処理回路273では、処理画像データ277を構成するすべての画素データが生成された後に、処理画像データ277の画素データが出力されるのではなく、処理画像データ277の画素データの生成処理と、処理画像データ277の画素データの出力処理とは並行して実行される。   The processed image data 277 is written into the storage area of the address set in the second setting register (step S1-N). As described above, since the first read request output unit 301, the write request output unit 302, and the second read request output unit 303 operate independently of each other, the image processing circuit 273 performs addition in the addition processing unit 305. The process and the output process in the output control unit 308 are executed in parallel. Therefore, the image processing circuit 273 does not output the pixel data of the processed image data 277 after all the pixel data constituting the processed image data 277 is generated, but generates the pixel data of the processed image data 277. The pixel data output process of the processed image data 277 is executed in parallel.

画像認識アクセラレータ回路249は、処理画像データ277のSRAM243への書き込みが終了すると、ホストコントローラ241に対して、最初の対象画像データ275に対する画像処理が完了したことを通知する完了通知を行う(ステップS1−e)。画像認識アクセラレータ回路249からのホストコントローラ241に対する完了通知は、例えば、ホストコントローラ241の割り込み機能が利用される。   When the image recognition accelerator circuit 249 finishes writing the processed image data 277 to the SRAM 243, the image recognition accelerator circuit 249 notifies the host controller 241 that the image processing for the first target image data 275 has been completed (step S1). -E). For the completion notification from the image recognition accelerator circuit 249 to the host controller 241, for example, an interrupt function of the host controller 241 is used.

ホストコントローラ241は、完了通知を受け取ると、画像認識アクセラレータ回路249に対して2つ目の対象画像データ275に関する指示を行う(ステップS2)。具体的には、ホストコントローラ241は、2つ目の対象画像データ275に対する処理で使用される特定情報290を、画像認識アクセラレータ回路249の制御回路282が有するレジスタ283に設定する。画像認識アクセラレータ回路249は、最初の対象画像データ275に対する処理と同様に動作して、2つ目の対象画像データ275に基づいて処理画像データ277を生成し、処理画像データ277をSRAM243に書き込む。以後、画像認識アクセラレータ回路249は、3つ目以降の対象画像データ275に対しても同様に処理を行う。   Upon receiving the completion notification, the host controller 241 instructs the image recognition accelerator circuit 249 regarding the second target image data 275 (step S2). Specifically, the host controller 241 sets specific information 290 used in processing for the second target image data 275 in the register 283 included in the control circuit 282 of the image recognition accelerator circuit 249. The image recognition accelerator circuit 249 operates in the same manner as the processing for the first target image data 275, generates the processed image data 277 based on the second target image data 275, and writes the processed image data 277 to the SRAM 243. Thereafter, the image recognition accelerator circuit 249 performs the same processing on the third and subsequent target image data 275.

なお、p個目(pは変数で、p≧2)の対象画像データ275に対する処理で使用される特定情報290が、(p−1)個目の対象画像データ275に対する処理で使用される特定情報290と同じである場合、(p−1)個目の対象画像データ275についての完了通知を受け取ったホストコントローラ241は、p個目の対象画像データ275に対する処理で使用する特定情報290をレジスタ283に設定せずに、p個目の対象画像データ275に対する処理を開始するように画像認識アクセラレータ回路249に指示してもよい。   Note that the identification information 290 used in the process for the p-th target image data 275 (p is a variable, p ≧ 2) is specified in the process for the (p−1) -th target image data 275. When the information is the same as the information 290, the host controller 241 that has received the completion notification for the (p−1) th target image data 275 registers the specific information 290 used in the process for the pth target image data 275. Instead of setting 283, the image recognition accelerator circuit 249 may be instructed to start processing on the p-th target image data 275.

なお、本実施形態では、図31、及び図32に示すように、画像認識アクセラレータ回路249によって、1つの対象画像データ275に関する画像処理が終了すると、画像認識DSP回路242に画像処理終了割込信号(1AD等)を出力し、画像認識DSP回路242は、当該画像処理終了割込信号を検知すると、SRAM243に記憶されている処理画像データ277を取得し、その後、刻印判定処理を行うように構成されているが、図33に示した例では、このような処理とは異なるものとなっている。すなわち、画像認識アクセラレータ回路249が画像処理を終了すると、ホストコントローラ241に対して、完了通知を行う(ステップS1−e)ように構成される。このように、画像認識アクセラレータ回路249が1つの対象画像データ275に関する画像処理を終了した場合には、様々な動作パターンによって次の処理が開始されるように構成されうる。   In this embodiment, as shown in FIGS. 31 and 32, when the image recognition accelerator circuit 249 completes image processing related to one target image data 275, the image recognition DSP circuit 242 receives an image processing end interrupt signal. (1AD etc.) is output, and when the image recognition DSP circuit 242 detects the image processing end interrupt signal, the image recognition DSP circuit 242 acquires the processed image data 277 stored in the SRAM 243 and then performs the marking determination process. However, the example shown in FIG. 33 is different from such processing. That is, when the image recognition accelerator circuit 249 finishes the image processing, a completion notification is sent to the host controller 241 (step S1-e). As described above, when the image recognition accelerator circuit 249 finishes the image processing related to one target image data 275, the next processing can be started by various operation patterns.

上述のように、座標変換回路272は、複数の変換パラメータ280に基づいて、1つの対象画像データ275を用いた複数の座標変換を連続的に行っている。すなわち、座標変換回路272は、複数の変換パラメータ280に基づいて、ホストコントローラ241とデータのやり取りを行わずに1つの対象画像データ275から、複数の変換後画像データ276を生成する。したがって、座標変換回路272が、座標変換を行うたびに、その座標変換で使用する変換パラメータ280をホストコントローラ241から受け取る場合と比較して、複数の座標変換の処理時間を短縮することができる。   As described above, the coordinate conversion circuit 272 continuously performs a plurality of coordinate conversions using one target image data 275 based on a plurality of conversion parameters 280. That is, the coordinate conversion circuit 272 generates a plurality of converted image data 276 from one target image data 275 without exchanging data with the host controller 241 based on the plurality of conversion parameters 280. Therefore, each time the coordinate conversion circuit 272 performs the coordinate conversion, the processing time of the plurality of coordinate conversions can be shortened as compared with the case where the conversion parameter 280 used in the coordinate conversion is received from the host controller 241.

また、座標変換回路272が、複数の変換パラメータ280に基づいて、ホストコントローラ241とデータのやり取りを行わずに1つの対象画像データ275から複数の変換後画像データ276を生成することによって、ホストコントローラ241の処理負荷を低減することができる。また、本実施形態のように、ホストコントローラ241と画像認識アクセラレータ回路249とがバスで接続されている場合には、当該バスに関してより大きな帯域を確保することが可能となる。   Further, the coordinate conversion circuit 272 generates a plurality of post-conversion image data 276 from one target image data 275 without exchanging data with the host controller 241 based on the plurality of conversion parameters 280, whereby the host controller The processing load of 241 can be reduced. Further, when the host controller 241 and the image recognition accelerator circuit 249 are connected by a bus as in the present embodiment, it is possible to secure a larger band for the bus.

またさらに、本実施形態では、画像認識アクセラレータ回路249の初期設定の際に、ホストコントローラ241が変換パラメータ280を、画像認識アクセラレータ回路249のメモリ274に設定するため、座標変換回路272は、初期設定の後、メモリ274から変換パラメータ280を読み出すことができる。よって、座標変換回路272は、変換パラメータ280を使用するたびに、ホストコントローラ241から、当該使用する変換パラメータ280を受け取る必要がなく、そのため、座標変換回路272での処理時間を短縮させることができる。   Furthermore, in this embodiment, the host controller 241 sets the conversion parameter 280 in the memory 274 of the image recognition accelerator circuit 249 when the image recognition accelerator circuit 249 is initially set. After that, the conversion parameter 280 can be read from the memory 274. Therefore, the coordinate conversion circuit 272 does not need to receive the conversion parameter 280 to be used from the host controller 241 every time the conversion parameter 280 is used, and therefore the processing time in the coordinate conversion circuit 272 can be shortened. .

なお、SRAM243には、その制御LSI234の画像認識アクセラレータ回路249が使用する変換パラメータ280だけが含まれてもよい。例えば、座標変換回路272が、どの対象画像データ275に対しても、2°から360°まで2°ずつ回転させる座標変換を行う場合には、回転角度が偶数の変換パラメータ280だけが記憶されるように構成することができる。またこのとき、SRAM243には、すべての回転角度に関する変換パラメータ280が記憶され、画像認識アクセラレータ回路249の初期設定の際に、実際に使用する変換パラメータ280(すなわち、回転角度が偶数の変換パラメータ280)のみが、メモリ274に記憶されるように構成することもできる。   Note that the SRAM 243 may include only the conversion parameter 280 used by the image recognition accelerator circuit 249 of the control LSI 234. For example, when the coordinate conversion circuit 272 performs coordinate conversion for rotating every 2 ° from 2 ° to 360 ° for any target image data 275, only the conversion parameter 280 having an even rotation angle is stored. It can be constituted as follows. At this time, the SRAM 243 stores conversion parameters 280 relating to all rotation angles, and the conversion parameters 280 that are actually used when the image recognition accelerator circuit 249 is initially set (that is, the conversion parameters 280 having an even rotation angle). ) Only may be stored in the memory 274.

さらに、対象画像データ275に対して互いに異なる座標変換を行う複数の画像認識アクセラレータ回路249のそれぞれにおいて、共通の変換パラメータ280を記憶させてもよい。例えば、第1の画像認識アクセラレータ回路249が対象画像データ275を1°から90°まで1°ずつ回転させる処理を行い、第2の画像認識アクセラレータ回路249が、対象画像データ275を91°から180°まで1°ずつ回転させる処理を行い、第3の画像認識アクセラレータ回路249が、対象画像110を181°から270°まで1°ずつ回転させる処理を行い、第4の画像認識アクセラレータ回路249が、対象画像データ275を271°から360°まで1°ずつ回転させる処理を行う場合には、第1〜第4の画像認識アクセラレータ回路249のそれぞれに、同一の変換パラメータ280(すなわち、上記の例と同様に、対象画像データ275を1°から360°まで回転するための360種類の変換パラメータ280)を記憶させる。これにより、画像認識アクセラレータ回路249ごとに個別に変換パラメータ280を用意する必要がなくなるため、誤った変換パラメータ280が記憶されることを抑制することができる。   Furthermore, a common conversion parameter 280 may be stored in each of the plurality of image recognition accelerator circuits 249 that perform different coordinate conversions on the target image data 275. For example, the first image recognition accelerator circuit 249 performs processing of rotating the target image data 275 by 1 ° from 1 ° to 90 °, and the second image recognition accelerator circuit 249 converts the target image data 275 from 91 ° to 180 °. The third image recognition accelerator circuit 249 performs processing of rotating the target image 110 by 1 ° from 181 ° to 270 °, and the fourth image recognition accelerator circuit 249 When the target image data 275 is rotated by 1 ° from 271 ° to 360 °, each of the first to fourth image recognition accelerator circuits 249 has the same conversion parameter 280 (ie, the above example). Similarly, 360 kinds of conversion parameters 280 for rotating the target image data 275 from 1 ° to 360 °) Remember. As a result, it is not necessary to prepare the conversion parameter 280 for each image recognition accelerator circuit 249 individually, so that it is possible to suppress the erroneous conversion parameter 280 from being stored.

なお、ここでは、複数の画像認識アクセラレータ回路249において共通の変換パラメータ280を記憶させる例を示したが、パチスロ1にそれぞれ組み込まれる(異なった仕様の)複数の制御LSI234やメダルセレクタ201に関しても同様に、共通の変換パラメータ280を記憶させることができる。   Here, an example in which a common conversion parameter 280 is stored in a plurality of image recognition accelerator circuits 249 has been shown, but the same applies to a plurality of control LSIs 234 and medal selectors 201 that are respectively incorporated in pachislot 1 (different specifications). The common conversion parameter 280 can be stored.

また、上記の例では、画像処理回路273は、DMAC252の制御によって、処理画像データ277を出力しているが、座標変換回路272で得られる変換後画像データ276を出力してもよい。この場合、画像処理回路273では、加算処理部305、リードバッファ307、及び第1読出要求出力部301が不要となる。そして、座標変換回路272から出力される変換後画像データ276の画素データは、ライトバッファ306に一旦記憶され、ライトバッファ306に記憶された変換後画像データ276の画素データがフレームメモリ309に書き込まれる。フレームメモリ309に記憶された当該画素データが、出力制御部308からDMAC252の制御によって、SRAM243に出力(DMA転送)される。   In the above example, the image processing circuit 273 outputs the processed image data 277 under the control of the DMAC 252, but the converted image data 276 obtained by the coordinate conversion circuit 272 may be output. In this case, the image processing circuit 273 eliminates the addition processing unit 305, the read buffer 307, and the first read request output unit 301. Then, the pixel data of the post-conversion image data 276 output from the coordinate conversion circuit 272 is temporarily stored in the write buffer 306, and the pixel data of the post-conversion image data 276 stored in the write buffer 306 is written into the frame memory 309. . The pixel data stored in the frame memory 309 is output (DMA transfer) from the output control unit 308 to the SRAM 243 under the control of the DMAC 252.

また、変換パラメータ280には、回転角度を指定するパラメータの代わりに、あるいは回転角度を指定するパラメータに加えて、回転以外の座標変換を指示する変換パラメータを含むように構成することもできる。   Further, the conversion parameter 280 may include a conversion parameter for instructing coordinate conversion other than rotation instead of the parameter for specifying the rotation angle or in addition to the parameter for specifying the rotation angle.

例えば、変換パラメータ280には、画像の拡大を行うための座標変換に関して必要な拡大用の変換パラメータが含まれてもよい。この場合、変換パラメータ280には、拡大率が互いに異なる複数の座標変換に関してそれぞれ必要な複数の変換パラメータ280が含まれてもよい。座標変換回路272は、このような画像の拡大に関する変換パラメータ280に基づいて、対象画像データ275に対し座標変換を行うことにより、変換パラメータ280に応じた拡大率で対象画像データ275を拡大することができる。   For example, the conversion parameter 280 may include a conversion parameter for enlargement necessary for coordinate conversion for enlarging an image. In this case, the conversion parameter 280 may include a plurality of conversion parameters 280 necessary for a plurality of coordinate conversions having different enlargement ratios. The coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 based on the conversion parameter 280 relating to such image expansion, thereby expanding the target image data 275 at an expansion rate corresponding to the conversion parameter 280. Can do.

例えば、座標変換回路272が、拡大率1.1倍の画像の拡大を行うよう指示する変換パラメータ280に基づいて、対象画像データ275に対して座標変換を行うことにより、1.1倍に拡大された変換後画像データ276が得られる。ここで、画像の拡大とは、対象画像データ275によって表される画像(被写体)の拡大であって、画像の縦横の画素数を増大させるものではない。   For example, the coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 based on a conversion parameter 280 that instructs to enlarge an image with an enlargement ratio of 1.1 times, thereby enlarging the image to 1.1 times. The converted image data 276 is obtained. Here, the enlargement of the image means enlargement of the image (subject) represented by the target image data 275, and does not increase the number of pixels in the vertical and horizontal directions of the image.

変換パラメータ280に、画像の回転に関する変換パラメータと画像の拡大に関する変換パラメータが含まれる場合、座標変換回路272は、対象画像データ275を回転させることによって得られる回転画像と、対象画像データ275を拡大することによって得られる拡大画像を、変換後画像データ276として生成することができる。画像の拡大に関する変換パラメータ280には、画像の回転に関する変換パラメータ280と同様に、例えば、拡大画像における4隅の画素に対応する、対象画像データ275における4つの画素の座標(すなわち、写像元の4つの画素の座標)が含まれている。   When the conversion parameter 280 includes a conversion parameter related to image rotation and a conversion parameter related to image enlargement, the coordinate conversion circuit 272 enlarges the rotated image obtained by rotating the target image data 275 and the target image data 275. An enlarged image obtained by doing so can be generated as post-conversion image data 276. The conversion parameter 280 related to image enlargement is similar to the conversion parameter 280 related to image rotation, for example, the coordinates of four pixels in the target image data 275 corresponding to the four corner pixels in the enlarged image (that is, the mapping source). 4 pixel coordinates).

また、変換パラメータ280には、画像の縮小を行うための座標変換に関して必要な縮小用の変換パラメータが含まれてもよい。この場合、変換パラメータ280には、縮小率が互いに異なる複数の座標変換に関してそれぞれ必要な複数の変換パラメータ280が含まれてもよい。座標変換回路272は、このような画像の縮小に関する変換パラメータ280に基づいて、対象画像データ275に対し座標変換を行うことにより、変換パラメータ280に応じた縮小率で対象画像データ275を縮小することができる。   Further, the conversion parameter 280 may include a conversion parameter for reduction necessary for coordinate conversion for performing image reduction. In this case, the conversion parameter 280 may include a plurality of conversion parameters 280 necessary for a plurality of coordinate conversions having mutually different reduction ratios. The coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 based on the conversion parameter 280 relating to such image reduction, thereby reducing the target image data 275 at a reduction rate according to the conversion parameter 280. Can do.

例えば、座標変換回路272が、縮小率0.9倍の画像の縮小を行うよう指示する変換パラメータ280に基づいて、対象画像データ275に対して座標変換を行うことにより、0.9倍に縮小された変換後画像データ276が得られる。ここで、画像の縮小とは、対象画像データ275によって表される画像(被写体)の縮小であって、画像の縦横の画素数を減少させるものではない。   For example, the coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 based on a conversion parameter 280 that instructs to reduce an image with a reduction ratio of 0.9, thereby reducing the image by 0.9. The converted image data 276 is obtained. Here, the reduction of the image is a reduction of the image (subject) represented by the target image data 275 and does not reduce the number of vertical and horizontal pixels of the image.

変換パラメータ280に、画像の回転に関する変換パラメータと画像の縮小に関する変換パラメータ280が含まれる場合、座標変換回路272は、対象画像データ275を回転させることによって得られる回転画像と、対象画像データ275を縮小することによって得られる縮小画像を、変換後画像データ276として生成することができる。画像の縮小に関する変換パラメータ280には、画像の回転に関する変換パラメータ280と同様に、例えば、縮小画像における4隅の画素に対応する、対象画像データ275における4つの画素の座標(すなわち、写像元の4つの画素の座標)が含まれている。   When the conversion parameter 280 includes a conversion parameter related to image rotation and a conversion parameter 280 related to image reduction, the coordinate conversion circuit 272 outputs a rotated image obtained by rotating the target image data 275 and the target image data 275. A reduced image obtained by reduction can be generated as converted image data 276. The conversion parameter 280 related to image reduction is similar to the conversion parameter 280 related to image rotation, for example, the coordinates of four pixels in the target image data 275 corresponding to the four corner pixels in the reduced image (that is, the mapping source). 4 pixel coordinates).

またさらに、変換パラメータ280には、画像の平行移動を行うための座標変換に関して必要な変換パラメータが含まれてもよい。この場合、変換パラメータ280には、移動方向が互いに異なる複数の座標変換に関してそれぞれ必要な複数の変換パラメータ280が含まれてもよい。また、変換パラメータ280には、平行移動の移動量が互いに異なる複数の座標変換においてそれぞれ必要な複数の変換パラメータが含まれてもよい。   Furthermore, the conversion parameter 280 may include a conversion parameter necessary for coordinate conversion for performing parallel movement of the image. In this case, the conversion parameter 280 may include a plurality of conversion parameters 280 necessary for a plurality of coordinate conversions having different movement directions. In addition, the conversion parameter 280 may include a plurality of conversion parameters necessary for each of a plurality of coordinate conversions having different amounts of parallel movement.

座標変換回路272は、このような平行移動に関する変換パラメータ280に基づいて、対象画像データ275に対し座標変換を行うことにより、変換パラメータ280に応じた移動方向に、対象画像データ275を移動させることができ、さらに、変換パラメータ280に平行移動の移動量について指定がある場合は、その指定された移動量だけ、対象画像データ275を平行移動させることができる。   The coordinate conversion circuit 272 moves the target image data 275 in the movement direction according to the conversion parameter 280 by performing coordinate conversion on the target image data 275 based on the conversion parameter 280 regarding such parallel movement. In addition, when the conversion parameter 280 specifies the amount of translation, the target image data 275 can be translated by the designated amount of movement.

例えば、座標変換回路272が、移動方向を「右」、移動量を「1画素」とする平行移動を行うよう指示する変換パラメータ280に基づいて、対象画像データ275に対して座標変換を行うことにより、右に1画素分平行移動された変換後画像データ276が得られる。ここで、画像の平行移動とは、対象画像データ275によって表される画像(被写体)の平行移動である。   For example, the coordinate conversion circuit 272 performs coordinate conversion on the target image data 275 based on the conversion parameter 280 instructing to perform parallel movement with the movement direction “right” and the movement amount “1 pixel”. Thus, post-conversion image data 276 translated by one pixel to the right is obtained. Here, the parallel movement of the image is a parallel movement of the image (subject) represented by the target image data 275.

変換パラメータ280に、画像の回転に関する変換パラメータと画像の平行移動に関する変換パラメータ280が含まれる場合、座標変換回路272は、対象画像データ275を回転させることによって得られる回転画像と、対象画像データ275を平行移動することによって得られる平行移動画像を、変換後画像データ276として生成することができる。平行移動に関する変換パラメータ280には、画像の回転に関する変換パラメータ280と同様に、例えば、平行移動画像における4隅の画素に対応する、対象画像データ275における4つの画素の座標(すなわち、写像元の4つの画素の座標)が含まれている。   When the conversion parameter 280 includes a conversion parameter related to the rotation of the image and a conversion parameter 280 related to the parallel movement of the image, the coordinate conversion circuit 272 displays the rotated image obtained by rotating the target image data 275 and the target image data 275. Can be generated as converted image data 276. FIG. The conversion parameter 280 for translation is similar to the conversion parameter 280 for rotation of the image, for example, the coordinates of the four pixels in the target image data 275 corresponding to the pixels at the four corners in the translation image (ie, the mapping source). 4 pixel coordinates).

[不正メダルの検知]
本実施形態に係る遊技機(パチスロ1)では、メダルセレクタ201の制御LSI234が色判定処理、カウント処理、及び刻印判定処理を含む正規メダル判別処理を行う。メダルレール210上をメダルでない不正器具が移動した場合、色判定処理において「正規メダルの色と一致しない」と判定され、また、カウント処理において「メダルが通過していない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。
[Detection of illegal medals]
In the gaming machine (pachislot 1) according to the present embodiment, the control LSI 234 of the medal selector 201 performs regular medal discrimination processing including color determination processing, count processing, and stamp determination processing. When an unauthorized device that is not a medal moves on the medal rail 210, it is determined that the color does not match the color of the regular medal in the color determination process, and it is determined that the medal has not passed in the count process. Therefore, it is possible to detect an illegal act of playing a game by misrecognizing that a regular medal is used in the pachislot 1.

また、メダルレール210上を、図34Aに示す不正のメダル310(正規メダル400(図19A参照)と同径及び同色で、メダルの表面に施されている刻印(模様)のみ異なるメダル)が移動した場合、色判定処理においては、「正規メダルの色と一致する」と判定される。しかし、カウント処理においては、図34Bに示す不正メダルの画像データ312のカウント領域(点線で囲まれている領域313)における刻印(模様)と正規メダルの画像データのカウント領域(図19Bにおいて点線で囲まれている領域403)における刻印(模様)とが著しく異なることから、「メダルが通過していない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。   In addition, an illegal medal 310 shown in FIG. 34A (medal having the same diameter and the same color as that of the regular medal 400 (see FIG. 19A), but only a stamp (pattern) applied to the surface of the medal) moves on the medal rail 210. In this case, in the color determination process, it is determined that “matches the color of the regular medal”. However, in the counting process, the imprinted medal image data 312 shown in FIG. 34B is engraved (pattern) in the count area (area 313 surrounded by a dotted line) and the regular medal image data count area (indicated by the dotted line in FIG. 19B). Since the marking (pattern) in the enclosed area 403) is significantly different, it is determined that “the medal has not passed”. Therefore, it is possible to detect an illegal act of playing a game by misrecognizing that a regular medal is used in the pachislot 1.

また、メダルレール210上を、図35Aに示す不正メダル315(正規メダル400(図19A参照)と同径及び同色で、メダルの表面に施されている刻印(模様)のみ異なる他のメダル)が移動した場合、色判定処理においては、「正規メダルの色と一致する」と判定される。また、カウント処理においては、図35Bに示す不正メダルの画像データ317のカウント領域(点線で囲まれている領域318)における刻印(模様)と正規メダルの画像データのカウント領域(図19Bにおいて点線で囲まれている領域403)における刻印(模様)との差分が小さいことから「メダルが通過した」と判定される。しかし、刻印判定処理において、図35Cに示すこの不正メダルの処理画像データ319と正規メダル400の処理画像データ405(図20参照)とは大きく異なるので、「メダルの刻印(模様)が正規メダルの刻印と一致しない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。   Also, on the medal rail 210, there is an unauthorized medal 315 shown in FIG. 35A (other medals having the same diameter and the same color as the regular medal 400 (see FIG. 19A), but differing only in the marking (pattern) applied to the surface of the medal). If it has moved, it is determined in the color determination process that it “matches the color of the regular medal”. In the counting process, the imprinted medal image data 317 shown in FIG. 35B is engraved (pattern) in the count area (area 318 surrounded by a dotted line) and the regular medal image data count area (in FIG. 19B, the dotted line). Since the difference from the stamp (pattern) in the enclosed area 403) is small, it is determined that “the medal has passed”. However, in the engraving determination process, the processed image data 319 for the illegal medal shown in FIG. 35C and the processed image data 405 for the regular medal 400 (see FIG. 20) are significantly different. It is determined that it does not match the stamp. Therefore, it is possible to detect an illegal act of playing a game by misrecognizing that a regular medal is used in the pachislot 1.

また、メダルレール210上を、正規メダル400(図19A参照)と異径(正規メダルの径よりもわずかに小さくまたは大きく、且つ、セレクトプレート207によって案内可能な径)及び同色のメダルが移動した場合、色判定処理においては、「正規メダルの色と一致する」と判定される。しかし、このメダルの画像データにおいて、このメダルが正規メダルの径よりもわずかに小さく、カウント領域にメダルの外縁と背景の境界があるような場合はカウント処理において、「メダルが通過していない」と判定される。また、たとえカウント処理において「メダルが通過した」と判定されたとしても、このメダルと正規メダル400の径の差から、このメダルの処理画像データと正規メダル400の処理画像データ405(図20参照)とは大きく異なることになる。このため、刻印判定処理では、「メダルの刻印(模様)が正規メダルの刻印と一致しない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。   In addition, a medal of the same color as the regular medal 400 (see FIG. 19A) and a different diameter (a diameter slightly smaller or larger than the regular medal and guideable by the select plate 207) moved on the medal rail 210. In this case, in the color determination process, it is determined that “matches the color of the regular medal”. However, in the image data of this medal, if this medal is slightly smaller than the diameter of the regular medal and the count area has a boundary between the outer edge of the medal and the background, the “no medal has passed” in the counting process. It is determined. Even if it is determined that the medal has passed in the counting process, the processed image data of this medal and the processed image data 405 of the regular medal 400 (see FIG. 20) from the difference in diameter between this medal and the regular medal 400. ) Is very different. Therefore, in the marking determination process, it is determined that “the medal stamp (pattern) does not match the stamp of the regular medal”. Therefore, it is possible to detect an illegal act of playing a game by misrecognizing that a regular medal is used in the pachislot 1.

また、メダルレール210上を、正規メダル400(図19A参照)と同径及び異色のメダルが移動した場合、色判定処理において、「正規メダルの色と一致しない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。   Further, when a medal having the same diameter and different color as the regular medal 400 (see FIG. 19A) moves on the medal rail 210, it is determined that the color does not match the color of the regular medal in the color determination process. Therefore, it is possible to detect an illegal act of playing a game by misrecognizing that a regular medal is used in the pachislot 1.

また、制御LSI234は、色判定処理、カウント処理及び刻印判定処理の判定結果にGPIOを介して主制御基板71からなる主制御回路91に出力する。したがって、主制御回路91に不正行為があった場合の種々の処理を行わせることができる。ここで、不正行為があった場合の種々の処理とは、例えば、主制御回路91が遊技を強制的に中断させ、副制御回路101を介して、不正行為があった旨を報知する(例えば、液晶表示装置11に不正行為が発生した旨を表示する)処理である。   Further, the control LSI 234 outputs the determination results of the color determination process, the count process, and the marking determination process to the main control circuit 91 including the main control board 71 via GPIO. Therefore, it is possible to cause the main control circuit 91 to perform various processes when there is an illegal act. Here, the various processes when there is a fraudulent action are, for example, that the main control circuit 91 forcibly interrupts the game and notifies the fact that the fraudulent act has occurred via the sub-control circuit 101 (for example, , Displaying that the fraud has occurred on the liquid crystal display device 11).

また、色判定処理及びカウント処理の判定結果によって不正行為を検知した場合、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定してもよい。これによって、セレクトプレート207が「排出位置」に位置付けされるので、この不正メダルをメダルシュート202に案内してメダル払出口32から排出することができる。なお、主制御回路91は、色判定処理及びカウント処理による不正行為の検知によってOFF状態に設定したメダルソレノイド208を、この不正行為に係る不正メダルをメダルシュート202に案内後に、ON状態に設定してもよい。   Further, when an illegal act is detected based on the determination result of the color determination process and the count process, the main control circuit 91 may set the medal solenoid 208 of the medal selector 201 to the OFF state. As a result, the select plate 207 is positioned at the “discharge position”, so that the illegal medal can be guided to the medal chute 202 and discharged from the medal payout opening 32. The main control circuit 91 sets the medal solenoid 208, which has been set to the OFF state by detecting the cheating by the color determination process and the counting process, to the ON state after guiding the cheating medal related to the cheating to the medal chute 202. May be.

また、刻印判定処理によって不正行為を検知した場合も、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定してもよい。本実施形態では、図32に示すように、ISP回路245から主制御回路91へ3枚目のメダルに係るVSYNC割込信号(3IH)が出力されてから4枚目のメダルに係るVSYNC割込信号(4IH)が出力されるまでの間に1枚目のメダルに係る刻印判定処理の判定結果が主制御回路へ出力される(1HG3)。したがって、不正なメダルが連続して投入される場合は、4枚目以降に投入された不正メダルをメダルシュート202に案内してメダル払出口32から排出することができる。   Further, even when an illegal act is detected by the stamp determination process, the main control circuit 91 may set the medal solenoid 208 of the medal selector 201 to the OFF state. In the present embodiment, as shown in FIG. 32, the VSYNC interrupt signal related to the fourth medal after the VSYNC interrupt signal (3IH) related to the third medal is output from the ISP circuit 245 to the main control circuit 91. Until the signal (4IH) is output, the determination result of the marking determination process related to the first medal is output to the main control circuit (1HG3). Therefore, when illegal medals are continuously inserted, the illegal medals inserted after the fourth sheet can be guided to the medal chute 202 and discharged from the medal payout opening 32.

これによって、不正行為による被害の拡大を抑えることができる。なお、刻印判定処理をより高速化することで、カメラユニット209で撮像されたメダルがアフタメダルプレッシャ218またはメダルストッパ部227上を通過するまでに、刻印判定処理によって不正行為を検知可能な場合は、主制御回路91が即座にメダルソレノイド208をOFF状態に設定することで、不正行為による被害の発生を防止できる。また、主制御回路91は、刻印判定処理による不正行為の検知によってOFF状態に設定したメダルソレノイド208を、次の刻印判定処理の判定結果が「メダルの刻印(模様)が正規メダルの刻印と一致する」である場合、ON状態に設定してもよい。これによって、不正メダルが偶然に混入していたため、遊技者が不正行為を意図せずに不正メダルを投入し、メダルソレノイド208がOFF状態に設定され遊技不能になった場合、遊技者は、正規メダルを投入すれば、遊技を再開することができる。   As a result, the spread of damage caused by fraud can be suppressed. In the case where the imprint act can be detected by the imprint determination process before the medal imaged by the camera unit 209 passes over the after medal pressure 218 or the medal stopper unit 227 by speeding up the imprint determination process. Since the main control circuit 91 immediately sets the medal solenoid 208 to the OFF state, it is possible to prevent damage caused by fraud. In addition, the main control circuit 91 determines that the medal solenoid 208 that has been set to the OFF state by detecting an illegal act by the stamp determination process indicates that the determination result of the next stamp determination process indicates that the medal stamp (pattern) matches the stamp of the regular medal. If “Yes”, it may be set to ON. As a result, since illegal medals were accidentally mixed, if the player inserts illegal medals without intending fraud, and the medal solenoid 208 is set to the OFF state and the game becomes impossible, the player If a medal is inserted, the game can be resumed.

以上、本発明の一実施形態に係る遊技機について、その作用効果も含めて説明した。しかし、本発明の遊技機は、上述の実施の形態に限定されるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限り、種々の変形実施が可能である。   The gaming machine according to one embodiment of the present invention has been described above including the effects thereof. However, the gaming machine of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention described in the claims.

例えば、上記説明においては、遊技媒体として両面に同一の刻印(模様)が施されているメダルを用いる例を説明したが、これに代えて、メダルの一方の面と他方の面で異なる刻印が施されているメダルを用いてもよい。この場合、カウント処理、色判定処理、刻印判定処理におけるしきい値に係るデータとして、メダルのそれぞれの面に係るデータを予め用意すればよい。   For example, in the above description, an example was described in which medals having the same marking (pattern) on both sides were used as game media, but instead of this, different markings were made on one side and the other side of the medal. You may use the given medal. In this case, data relating to each face of the medal may be prepared in advance as data relating to the threshold value in the count process, the color determination process, and the marking determination process.

また、しきい値に係るデータの設定方法としては、一定の単位遊技期間(例えば、100ゲーム)の間をしきい値に係るデータの収集期間とし、この単位遊技期間中にカメラユニット209で撮像したメダルの画像データに基づいて設定する方法を採用してもよい。   Further, as a method for setting data relating to the threshold value, a certain unit game period (for example, 100 games) is set as the data collection period relating to the threshold value, and the camera unit 209 captures images during this unit game period. A method of setting based on the image data of medals may be adopted.

上述した本実施形態に係る遊技機は、CMOSイメージセンサ232等を含む撮像部261によって取得された撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、カメラユニット209の制御LSI234は、ASIC等として構成されるため、製造コストを効果的に抑制することができる。さらに、制御LSI234が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。   The gaming machine according to the present embodiment described above can determine a medal or the like through image conversion and image recognition processing performed based on a captured image acquired by the imaging unit 261 including the CMOS image sensor 232 and the like. Therefore, it is possible to determine the difference in patterns such as medals. Further, since the control LSI 234 of the camera unit 209 is configured as an ASIC or the like, the manufacturing cost can be effectively suppressed. Further, since the control LSI 234 is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidate the regular medal discrimination process or steal the processing logic of the regular medal discrimination process) And has a significant security advantage.

<本実施形態に係るカメラユニットの構成と正規メダル判別処理の概要>
図36は、本実施形態のカメラユニット209の撮像装置(CMOSイメージセンサ232)を介して得られる撮像画像362Aの一例を模式的に示す図である。図36に示される撮像画像362Aには、撮像されたメダル410の画像が含まれている。また、背景であるメダルレール351a、351bが撮像され、その画像が撮像画像362Aに含まれている。なお、メダルレール351a、351bは、上述のメダルレール210に対応するものであるが、ここでは、レールの形状を簡略化して示している。
<Outline of Configuration of Camera Unit and Regular Medal Discrimination Processing According to this Embodiment>
FIG. 36 is a diagram schematically illustrating an example of a captured image 362A obtained via the imaging device (CMOS image sensor 232) of the camera unit 209 of the present embodiment. The captured image 362A illustrated in FIG. 36 includes the captured image of the medal 410. In addition, the medal rails 351a and 351b as the background are captured, and the images are included in the captured image 362A. The medal rails 351a and 351b correspond to the medal rail 210 described above, but here, the shape of the rails is shown in a simplified manner.

メダル410の一方主面410aには、例えばアルファベット「A」の模様が示されている。これは、正規メダルの模様を示すものであるが、これ以外の模様であってもよい。また、正規メダルの両主面に模様が付されていてもよい。   On one main surface 410a of the medal 410, for example, a pattern of alphabet “A” is shown. This shows a pattern of a regular medal, but other patterns may be used. Moreover, a pattern may be attached | subjected to both the main surfaces of a regular medal.

本実施形態では、メダル410は、その両主面の中心を通る、厚み方向に沿った回転軸の周りに回転しながらメダルレール351a、351bに沿って移動する。そして、後述する撮像部361は、メダル410の一方主面410a側からメダル410を撮像する。したがって、撮像画像362Aには、メダル410の一方主面410aの画像が含まれることになる。また、本実施形態では、撮像部361で生成される撮像画像362Aはカラー画像であるが、グレースケール画像であってもよい。   In this embodiment, the medal 410 moves along the medal rails 351a and 351b while rotating around the rotation axis along the thickness direction passing through the centers of both main surfaces. The imaging unit 361 described later images the medal 410 from the one main surface 410a side of the medal 410. Therefore, the captured image 362A includes an image of the one main surface 410a of the medal 410. In the present embodiment, the captured image 362A generated by the imaging unit 361 is a color image, but may be a grayscale image.

図37は、このようなカメラユニット209の機能ブロック図であり、図18に示した機能ブロック図に対応するものである。   FIG. 37 is a functional block diagram of such a camera unit 209, which corresponds to the functional block diagram shown in FIG.

図37に示すように、本実施形態に係るカメラユニット209は、撮像部361、変換部363、特徴画像生成部364、判定部365、及び入出力部366を備えている。なお、カメラユニット209は、LED等からなる発光部を備えるが、図37では図示を省略する。   As shown in FIG. 37, the camera unit 209 according to the present embodiment includes an imaging unit 361, a conversion unit 363, a feature image generation unit 364, a determination unit 365, and an input / output unit 366. Note that the camera unit 209 includes a light emitting unit made of an LED or the like, but is not shown in FIG.

撮像部361は、CMOSイメージセンサ232を含み、このCMOSイメージセンサ232により撮像された画像データを(必要に応じて所定の変換を行って)、撮像画像362Aとして出力する。   The imaging unit 361 includes a CMOS image sensor 232, and outputs the image data captured by the CMOS image sensor 232 (performed as necessary) as a captured image 362A.

変換部363(例えば、ISP回路245に対応)は、撮像部361から入力される撮像画像362Aをカラー画像からグレースケール画像に変換し、変換後の撮像画像を撮像画像362Bとして出力する。   The conversion unit 363 (for example, corresponding to the ISP circuit 245) converts the captured image 362A input from the imaging unit 361 from a color image to a grayscale image, and outputs the converted captured image as a captured image 362B.

特徴画像生成部364(例えば、画像認識アクセラレータ回路249、及び画像認識DSP回路242に対応)は、メダル410が撮像されている撮像画像362Bに基づいて、メダル410の特徴を示す特徴画像362Cを生成する。判定部365は、特徴画像生成部364で生成された特徴画像362Cに基づいて、撮像画像362Bに映るメダル410(すなわち、撮像画像362Bに含まれるメダル410の画像に対応するメダル410)が正規のものか否かを判定し、その判定結果368を、入出力部366(例えば、GPIO250に対応)を介して出力する。   The feature image generation unit 364 (for example, corresponding to the image recognition accelerator circuit 249 and the image recognition DSP circuit 242) generates a feature image 362C indicating the features of the medal 410 based on the captured image 362B in which the medal 410 is captured. To do. Based on the feature image 362C generated by the feature image generation unit 364, the determination unit 365 determines that the medal 410 shown in the captured image 362B (that is, the medal 410 corresponding to the image of the medal 410 included in the captured image 362B) is valid. The determination result 368 is output via an input / output unit 366 (for example, corresponding to the GPIO 250).

判定部365(例えば、画像認識DSP回路242に対応)は、特徴画像生成部364が撮像画像362Bから生成した特徴画像362Cと、正規メダルの特徴を示すテンプレートデータ(テンプレート特徴画像)367とを比較し、その比較結果に基づいて、撮像画像362Bに係るメダル410が正規のものか否かを判定する。なお、テンプレートデータ367は、SRAM243またはフラッシュメモリ244に記憶されている。   The determination unit 365 (for example, corresponding to the image recognition DSP circuit 242) compares the feature image 362C generated from the captured image 362B by the feature image generation unit 364 with the template data (template feature image) 367 indicating the feature of the regular medal. Then, based on the comparison result, it is determined whether or not the medal 410 related to the captured image 362B is genuine. The template data 367 is stored in the SRAM 243 or the flash memory 244.

図38は、特徴画像生成部364の構成をより詳細に示す図である。図38に示すように、特徴画像生成部364は、第1画像生成部370、及び第2画像生成部380を備えている。第1画像生成部370は、撮像画像362Bに基づいて、メダル410を示す第1画像374を生成する。第2画像生成部380は、第1画像生成部370で生成された第1画像374を回転して得られる複数の回転画像(上述した変換後画像データ276に対応)を積算(合成)した回転合成画像(上述した処理画像データ277に対応)の少なくとも一部を特徴画像362C(第2画像)として生成する。   FIG. 38 is a diagram showing the configuration of the feature image generation unit 364 in more detail. As illustrated in FIG. 38, the feature image generation unit 364 includes a first image generation unit 370 and a second image generation unit 380. The first image generation unit 370 generates a first image 374 showing the medal 410 based on the captured image 362B. The second image generation unit 380 integrates (synthesizes) a plurality of rotation images (corresponding to the converted image data 276 described above) obtained by rotating the first image 374 generated by the first image generation unit 370. At least a part of the composite image (corresponding to the processed image data 277 described above) is generated as a feature image 362C (second image).

第1画像生成部370は、抽出部371、及びエッジ画像生成部372を備えている。抽出部371は、撮像画像362Bからメダル410が示されるメダル領域373を抽出する。エッジ画像生成部372は、抽出部371で抽出されたメダル領域373に対してエッジ検出を行って、エッジ画像(第1画像374)を生成する。   The first image generation unit 370 includes an extraction unit 371 and an edge image generation unit 372. The extraction unit 371 extracts a medal area 373 where the medal 410 is shown from the captured image 362B. The edge image generation unit 372 performs edge detection on the medal area 373 extracted by the extraction unit 371 and generates an edge image (first image 374).

本実施形態では、第1画像生成部370が、例えば、画像認識DSP回路242によって実現され、第2画像生成部380が、例えば、画像認識アクセラレータ回路249によって実現される。   In the present embodiment, the first image generation unit 370 is realized by, for example, the image recognition DSP circuit 242, and the second image generation unit 380 is realized by, for example, the image recognition accelerator circuit 249.

本実施形態に係る遊技機の電源が投入されると、ホストコントローラ241は画像認識DSP回路242や画像認識アクセラレータ回路249の初期設定を行う。当該初期設定において、上述のように、ホストコントローラ241は、画像認識アクセラレータ回路249のメモリ274に変換パラメータ280を設定する。なお、特定情報290は、例えば、対象画像データ275ごとに、ホストコントローラ241によって座標変換回路272のレジスタ283に設定される。   When the gaming machine according to the present embodiment is turned on, the host controller 241 performs initial setting of the image recognition DSP circuit 242 and the image recognition accelerator circuit 249. In the initial setting, as described above, the host controller 241 sets the conversion parameter 280 in the memory 274 of the image recognition accelerator circuit 249. For example, the specific information 290 is set in the register 283 of the coordinate conversion circuit 272 by the host controller 241 for each target image data 275.

初期設定が完了すると、撮像部361が撮像を開始し、所定のフレームレートで撮像を行う。撮像部361で順次生成される撮像画像362Aは、SRAM243に記憶され、SRAM243から読み出された撮像画像362Aに基づいて、変換部363、特徴画像生成部364、及び判定部365により、正規メダル判別処理が行われる。   When the initial setting is completed, the imaging unit 361 starts imaging and performs imaging at a predetermined frame rate. The captured image 362A sequentially generated by the imaging unit 361 is stored in the SRAM 243, and based on the captured image 362A read from the SRAM 243, the conversion unit 363, the feature image generation unit 364, and the determination unit 365 determine the regular medal. Processing is performed.

<カメラユニットにおける正規メダル判別処理のフロー>
次に、図39を参照して、本実施形態におけるカメラユニット209で実施される正規メダル判別処理の一連の動作について説明する。
<Flow of regular medal discrimination process in camera unit>
Next, with reference to FIG. 39, a series of operations of the regular medal discrimination process performed by the camera unit 209 in the present embodiment will be described.

最初に、変換部363は、撮像部361によりSRAM243に記憶された撮像画像362AをSRAM243から読み出し、読み出した撮像画像362Aをカラー画像からグレースケール画像に変換し、それよって得られた撮像画像362Bを判別処理の対象としてSRAM243に記憶する(ステップS11)。   First, the conversion unit 363 reads the captured image 362A stored in the SRAM 243 by the imaging unit 361 from the SRAM 243, converts the read captured image 362A from a color image to a grayscale image, and converts the captured image 362B obtained thereby. The data is stored in the SRAM 243 as a discrimination process target (step S11).

次に、ステップS12において、抽出部371が、判別処理の対象である撮像画像362Bから、メダル410が映るメダル領域373を抽出する(図40参照)。その後、ステップS13において、エッジ画像生成部372が、抽出部371で抽出されたメダル領域373に対してエッジ検出を行って、メダル410を示す第1画像374としてのエッジ画像を生成する。   Next, in step S12, the extraction unit 371 extracts a medal area 373 in which the medal 410 appears from the captured image 362B that is the target of the discrimination process (see FIG. 40). Thereafter, in step S <b> 13, the edge image generation unit 372 performs edge detection on the medal area 373 extracted by the extraction unit 371, and generates an edge image as the first image 374 indicating the medal 410.

次に、ステップS14において、第2画像生成部380が、エッジ画像生成部372で生成されたエッジ画像(第1画像374)を回転して得られる複数の回転画像を合成した回転合成画像(処理画像データ277)の少なくとも一部を特徴画像362Cとして生成する。   Next, in step S14, the second image generation unit 380 combines a plurality of rotation images obtained by rotating the edge image (first image 374) generated by the edge image generation unit 372 (processing) At least a part of the image data 277) is generated as a feature image 362C.

次に、ステップS15において、判定部365が、第2画像生成部380で生成された特徴画像362Cと、テンプレートデータ367に含まれる特徴画像とを比較し、その比較結果に基づいて、処理対象の撮像画像362Bに示されるメダル410が正規のものであるか否かを判定する。言い換えれば、判定部365は、特徴画像362Cとテンプレートデータ367に含まれる特徴画像との比較結果に基づいて、撮像部261で生成された撮像画像362Aに示されるメダル310が正規のものであるか否かを判定する。   Next, in step S15, the determination unit 365 compares the feature image 362C generated by the second image generation unit 380 with the feature image included in the template data 367, and based on the comparison result, It is determined whether or not the medal 410 shown in the captured image 362B is genuine. In other words, the determination unit 365 determines whether the medal 310 shown in the captured image 362A generated by the imaging unit 261 is genuine based on the comparison result between the feature image 362C and the feature image included in the template data 367. Determine whether or not.

そして、ステップS16において、判定部365が、判定結果368を、入出力部366(上記実施形態のGPIO250に対応)を介して、主制御回路(上記実施形態の遊技機における主制御回路91に対応)に出力する。このようにして、主制御回路は、撮像画像362Aに示されるメダル410が正規のものでない場合、例えば、遊技を強制的に中断させ、副制御回路(上記実施形態の遊技機における副制御回路101に対応)を介して、不正行為があった旨を報知することができる。例えば、スピーカから警告音を出力したり、液晶表示装置であるディプレイに警告情報を表示したりするなどして、外部に警告を発することができる。   In step S16, the determination unit 365 corresponds to the determination result 368 to the main control circuit (main control circuit 91 in the gaming machine of the above embodiment) via the input / output unit 366 (corresponding to the GPIO 250 of the above embodiment). ). In this way, when the medal 410 shown in the captured image 362A is not legitimate, the main control circuit forcibly interrupts the game, for example, and the sub control circuit (the sub control circuit 101 in the gaming machine of the above embodiment). To the effect that an illegal act has occurred. For example, it is possible to issue a warning to the outside by outputting a warning sound from a speaker or displaying warning information on a display which is a liquid crystal display device.

その後、新たな撮像画像362Aが入力されると、その撮像画像362Aから得られる撮像画像362Bを新たな判別処理の対象として、上述した正規メダル判別処理を実行する。以後、撮像画像362Aが入力されるたびに、同様の正規メダル判別処理が実行される。   Thereafter, when a new captured image 362A is input, the above-described regular medal determination process is executed using the captured image 362B obtained from the captured image 362A as a new determination process target. Thereafter, the same regular medal determination process is executed every time the captured image 362A is input.

<カメラユニットの各構成要素に関する詳細な説明>
次に、第1画像生成部370の抽出部371とエッジ画像生成部372、第2画像生成部380、及び判定部365の動作についてさらに詳細に説明する。
<Detailed description of each component of the camera unit>
Next, operations of the extraction unit 371, the edge image generation unit 372, the second image generation unit 380, and the determination unit 365 of the first image generation unit 370 will be described in more detail.

[抽出部]
図40は、抽出部371が撮像画像362Bから抽出するメダル領域373の一例を模式的に示す図である。撮像画像362Bからメダル領域373を抽出する方法としては様々な方法がある。
[Extractor]
FIG. 40 is a diagram schematically illustrating an example of the medal area 373 extracted by the extraction unit 371 from the captured image 362B. There are various methods for extracting the medal area 373 from the captured image 362B.

例えば、メダル410の外形が円形であることを利用した第1の抽出方法がある。この第1の抽出方法では、まず、撮像画像362Bに対してエッジ検出が行われてエッジ画像が生成される。エッジ画像の生成方法としては、例えば、Sobel法、Laplacian法、Canny法などが使用される。次に、生成されたエッジ画像から円形領域が抽出される。円形領域の抽出方法としては、例えばハフ変換が使用される。そして、エッジ画像における当該円形領域の位置と同じ位置に存在する撮像画像362Bでの円形領域が、メダル領域373とされる。   For example, there is a first extraction method using the fact that the outer shape of the medal 410 is circular. In this first extraction method, first, edge detection is performed on the captured image 362B to generate an edge image. As an edge image generation method, for example, Sobel method, Laplacian method, Canny method and the like are used. Next, a circular area is extracted from the generated edge image. For example, Hough transform is used as a method for extracting a circular region. A circular area in the captured image 362B existing at the same position as the position of the circular area in the edge image is set as a medal area 373.

別の方法としては、背景差分法とラベリングを用いて撮像画像362Bからメダル領域373を抽出する第2の抽出方法がある。この第2の抽出方法では、まず、撮像画像362Bと背景画像(撮像画像362Bの背景だけが映る画像)との差分を示す背景差分画像が生成され、生成された背景差分画像が2値化される。そして、2値の背景差分画像に対して4連結等のラベリングが行われる。そして、2値の背景差分画像における、ラベリングの結果得られた連結領域(独立領域)の位置と同じ位置に存在する撮像画像362Bでの部分領域が、メダル領域373とされる。   As another method, there is a second extraction method for extracting the medal region 373 from the captured image 362B using the background difference method and labeling. In the second extraction method, first, a background difference image indicating a difference between the captured image 362B and a background image (an image showing only the background of the captured image 362B) is generated, and the generated background difference image is binarized. The Then, labeling such as 4-connection is performed on the binary background difference image. A partial area in the captured image 362B existing at the same position as the position of the connected area (independent area) obtained as a result of labeling in the binary background difference image is set as a medal area 373.

本実施形態では、抽出部371は、上記の2つの方法とは異なる方法で、撮像画像362Bからメダル領域373を抽出する。以下に本実施形態に係る抽出部371の動作について説明する。なお、抽出部371は、上記の2つの方法のどちらか一方を用いて撮像画像362Bからメダル領域373を抽出してもよい。   In the present embodiment, the extraction unit 371 extracts the medal area 373 from the captured image 362B by a method different from the above two methods. The operation of the extraction unit 371 according to this embodiment will be described below. Note that the extraction unit 371 may extract the medal area 373 from the captured image 362B using one of the two methods described above.

まず、抽出部371は、撮像画像362Bと背景画像375(撮像画像362Bの背景だけが映る画像)との差分を示す背景差分画像を生成し、生成した背景差分画像を2値化する。図41は、背景画像375を模式的に示す図であって、図42は、2値の背景差分画像376を模式的に示す図である。なお、図42、及び本実施形態における後述の図において模式的に示される2値の画像では、画素値が「1」の領域(高輝度領域)は黒色で示され、画素値が「0」の領域(低輝度領域)は白色で示される。また、背景画像375は、例えば、SRAM243等に記憶しておくことができる。   First, the extraction unit 371 generates a background difference image indicating a difference between the captured image 362B and the background image 375 (an image showing only the background of the captured image 362B), and binarizes the generated background difference image. FIG. 41 is a diagram schematically showing the background image 375, and FIG. 42 is a diagram schematically showing a binary background difference image 376. Note that, in the binary image schematically shown in FIG. 42 and later-described drawings in the present embodiment, the region having the pixel value “1” (high luminance region) is shown in black and the pixel value is “0”. This region (low luminance region) is shown in white. The background image 375 can be stored in, for example, the SRAM 243 or the like.

次に、抽出部371は、2値の背景差分画像376に対して、メダル410の外形を示す2値の外形テンプレート377を用いたテンプレートマッチングを行う。つまり、抽出部371は、背景差分画像376において、外形テンプレート377と類似する領域がどこに存在するかを特定する。言い換えると、抽出部371は、背景差分画像376において、外形テンプレート377が示すメダル410の外形と一致する領域がどこに存在するかを特定する。図43は、外形テンプレート377を模式的に示す図である。外形テンプレート377は、例えば、SRAM243等に記憶しておくことができる。   Next, the extraction unit 371 performs template matching on the binary background difference image 376 using a binary outer shape template 377 indicating the outer shape of the medal 410. That is, the extraction unit 371 specifies where in the background difference image 376 a region similar to the outer shape template 377 exists. In other words, the extraction unit 371 specifies where in the background difference image 376 there is an area that matches the outline of the medal 410 indicated by the outline template 377. FIG. 43 is a diagram schematically showing the outer shape template 377. The outline template 377 can be stored in the SRAM 243 or the like, for example.

テンプレートマッチングでは、抽出部371は、図44に示すように、背景差分画像376上で外形テンプレート377をラスタスキャン方向に少しずつ(例えば、1画素(ピクセル)ずつ)移動させる。言い換えれば、抽出部371は、背景差分画像376上で外形テンプレート377をラスタスキャンさせる。このとき、抽出部371は、外形テンプレート377の各位置において、外形テンプレート377と、それに重なる、背景差分画像376の部分領域とのAND画像を生成する。これにより、複数の2値のAND画像が生成される。そして、抽出部371は、生成した複数のAND画像のうち、画素値が「1」の画素(高輝度画素)の数が最も多いAND画像の生成で使用された外形テンプレート377の背景差分画像376上の位置を特定する。この位置は、背景差分画像376において、外形テンプレート377と類似した領域が存在する位置である。   In template matching, the extraction unit 371 moves the outline template 377 little by little (for example, one pixel (pixel) at a time) in the raster scan direction on the background difference image 376 as shown in FIG. In other words, the extraction unit 371 raster scans the outline template 377 on the background difference image 376. At this time, the extraction unit 371 generates an AND image of the outline template 377 and a partial region of the background difference image 376 that overlaps the outline template 377 at each position of the outline template 377. Thereby, a plurality of binary AND images are generated. The extraction unit 371 then extracts the background difference image 376 of the outer shape template 377 used in generating the AND image having the largest number of pixels (high luminance pixels) having the pixel value “1” among the plurality of generated AND images. Identify the top position. This position is a position where an area similar to the outline template 377 exists in the background difference image 376.

そして、抽出部371は、図45に示すように、特定した位置と同じ位置に存在する撮像画像362Bでの部分領域378を、メダル領域373として抽出する。言い換えれば、抽出部371は、特定した位置と同じ位置に外形テンプレート377を撮像画像362Bに配置した際に、外形テンプレート377と重なる、撮像画像362Bでの部分領域378を、メダル領域373として抽出する。このとき、部分領域378において、その上の外形テンプレート377が示す円形よりも外側の各画素の画素値を零としたものをメダル領域373としてもよい。抽出部371で抽出されるメダル領域373はグレースケール画像である。本実施形態では、メダル領域373の外形は四角形であるが、円形等の他の形状であってもよい。   Then, as illustrated in FIG. 45, the extraction unit 371 extracts a partial area 378 in the captured image 362B existing at the same position as the identified position as a medal area 373. In other words, the extraction unit 371 extracts, as the medal area 373, the partial area 378 in the captured image 362B that overlaps the external shape template 377 when the external shape template 377 is arranged in the captured image 362B at the same position as the specified position. . At this time, in the partial area 378, a medal area 373 may be obtained by setting the pixel value of each pixel outside the circle indicated by the outer shape template 377 on the partial area 378 to zero. The medal area 373 extracted by the extraction unit 371 is a grayscale image. In the present embodiment, the outer shape of the medal area 373 is a quadrangle, but may be another shape such as a circle.

[エッジ画像生成部]
エッジ画像生成部372は、例えば、Sobel法、Laplacian法、Canny法などを使用して、抽出部371で抽出されたメダル領域373に対してエッジ検出を行ってエッジ画像(第1画像374)を生成する。本実施形態では、エッジ画像生成部372は、例えば、処理が軽いSobel法を使用する。エッジ画像は2値の画像である。図46は、エッジ画像を模式的に示す図である。
[Edge image generator]
The edge image generation unit 372 performs edge detection on the medal area 373 extracted by the extraction unit 371 using, for example, the Sobel method, the Laplacian method, the Canny method, and the like, and generates an edge image (first image 374). Generate. In the present embodiment, the edge image generation unit 372 uses, for example, a Sobel method that is light in processing. The edge image is a binary image. FIG. 46 is a diagram schematically showing an edge image.

[第2画像生成部]
第2画像生成部380は、エッジ画像生成部372で生成された第1画像(エッジ画像)374を回転して得られる複数の回転画像を合成した回転合成画像の少なくとも一部を特徴画像362Cとして生成する。本実施形態では、第2画像生成部380は、例えば、第1画像(エッジ画像)374を回転して得られる複数の回転画像を合成した回転合成画像(すなわち、上述した処理画像データ277)を特徴画像362Cとして生成する。ここで、第1画像(エッジ画像)374の回転には、回転角度が0°の場合も含むものとする。以下に、当該回転合成画像の生成方法について説明する。
[Second image generation unit]
The second image generation unit 380 combines, as a feature image 362C, at least a part of a rotation composite image obtained by combining a plurality of rotation images obtained by rotating the first image (edge image) 374 generated by the edge image generation unit 372. Generate. In the present embodiment, the second image generation unit 380 generates, for example, a rotation synthesized image obtained by synthesizing a plurality of rotation images obtained by rotating the first image (edge image) 374 (that is, the processed image data 277 described above). Generated as a feature image 362C. Here, the rotation of the first image (edge image) 374 includes a case where the rotation angle is 0 °. Below, the production | generation method of the said rotation synthetic | combination image is demonstrated.

図47は、第2画像生成部380が回転合成画像381を生成する方法を説明するための図であり、上述の図20、及び図28に対応する。第2画像生成部380は、第1画像(エッジ画像)374を所定の角度αずつ回転させて、図47に示すように、複数個の回転画像374aを生成する。ここで、第2画像生成部380は、第1画像(エッジ画像)374を所定の角度αずつ回転させる。本実施形態では、第2画像生成部380は例えば、第1画像(エッジ画像)374を、図26に示すように2°ずつ回転させて(α=2°)、180個の回転画像374aを生成する。なお、上述の角度αは、例えば、1°や4°など、様々な角度に調整することができる。   FIG. 47 is a diagram for explaining a method by which the second image generation unit 380 generates the rotation composite image 381 and corresponds to the above-described FIG. 20 and FIG. The second image generation unit 380 rotates the first image (edge image) 374 by a predetermined angle α to generate a plurality of rotated images 374a as shown in FIG. Here, the second image generation unit 380 rotates the first image (edge image) 374 by a predetermined angle α. In the present embodiment, for example, the second image generation unit 380 rotates the first image (edge image) 374 by 2 ° as shown in FIG. 26 (α = 2 °), and outputs 180 rotated images 374a. Generate. The angle α described above can be adjusted to various angles such as 1 ° and 4 °.

そして、第2画像生成部380は、生成した複数個の回転画像374aを合成して回転合成画像381を生成する。具体的には、第2画像生成部380は、複数個の回転画像374aを、それらの中心を一致させて加算平均し、それによって得られる加算平均画像を回転合成画像381とする。第2画像生成部380は、生成した回転合成画像381を、撮像画像362Bに示されるメダル310の特徴を示す特徴画像362Cとして使用する。   Then, the second image generation unit 380 combines the generated plurality of rotation images 374a to generate a rotation combination image 381. Specifically, the second image generation unit 380 adds and averages the plurality of rotated images 374a with their centers coincided with each other, and sets the averaged image obtained thereby as the rotation synthesized image 381. The second image generation unit 380 uses the generated rotation composite image 381 as a feature image 362C indicating the feature of the medal 310 shown in the captured image 362B.

なお、第2画像生成部380は、複数個の回転画像374aを合成する際に、各回転画像374aにおいて、トータルの回転角度が0°の回転画像374a(つまり、回転していない第1画像(エッジ画像)374)の外形からはみ出る領域を使用しないようにすることができる。したがって、この場合、回転合成画像381は、第1画像(エッジ画像)374と同じ大きさのグレースケール画像となる。   When the second image generation unit 380 combines the plurality of rotation images 374a, the rotation image 374a having a total rotation angle of 0 ° in each rotation image 374a (that is, the first image that has not been rotated ( It is possible not to use an area protruding from the outer shape of the edge image) 374). Therefore, in this case, the rotation composite image 381 is a gray scale image having the same size as the first image (edge image) 374.

上述のように、撮像部361は、回転するメダル410を撮像し、メダル410が映る撮像画像362Aを生成する。したがって、変換部363が生成する撮像画像362Bのメダル410の回転角度(メダル410に付された模様の回転角度)が常に同じであるとは限らない。一方で、回転合成画像381は、撮像画像362Bのメダル410を示す第1画像(エッジ画像)374を回転して得られる複数の回転画像374aを合成したものであることから、撮像画像362Bのメダル410の回転角度にばらつきがあるとしても、メダル410が正規のものであれば、撮像画像362Bから得られる回転合成画像381はほとんど変化しない。よって、回転合成画像381は、撮像画像362Bのメダル410の回転角度の影響を受けにくい、メダル410の特徴を示す特徴画像362Cであると言える。   As described above, the imaging unit 361 images the rotating medal 410 and generates a captured image 362A in which the medal 410 is reflected. Therefore, the rotation angle of the medal 410 (the rotation angle of the pattern attached to the medal 410) of the captured image 362B generated by the conversion unit 363 is not always the same. On the other hand, the rotation composite image 381 is a combination of a plurality of rotation images 374a obtained by rotating the first image (edge image) 374 showing the medal 410 of the captured image 362B, and thus the medal of the captured image 362B. Even if there is a variation in the rotation angle 410, if the medal 410 is genuine, the rotation composite image 381 obtained from the captured image 362B hardly changes. Therefore, it can be said that the rotation composite image 381 is a feature image 362C showing the feature of the medal 410 that is not easily influenced by the rotation angle of the medal 410 of the captured image 362B.

[判定部]
判定部365は、第2画像生成部380で生成された回転合成画像381(特徴画像362C)と、正規のメダル410の特徴を示すテンプレートデータ267の特徴画像とを比較し、その比較結果に基づいて、当該撮像画像362Bに含まれるメダル410が正規のものか否かを判定する。テンプレートデータ267の特徴画像としては、正規のメダル410の画像が含まれる撮像画像362Bから上記と同様にして特徴画像生成部364で生成された、正規のメダル410の特徴を示す特徴画像362C(回転合成画像381)が使用される。
[Determining part]
The determination unit 365 compares the rotation composite image 381 (feature image 362C) generated by the second image generation unit 380 with the feature image of the template data 267 indicating the feature of the regular medal 410, and based on the comparison result. Thus, it is determined whether or not the medal 410 included in the captured image 362B is genuine. As the feature image of the template data 267, the feature image 362C (rotation) indicating the feature of the regular medal 410 generated by the feature image generation unit 364 in the same manner as described above from the captured image 362B including the image of the regular medal 410. A composite image 381) is used.

テンプレートデータ367の特徴画像は、遊技機にメダル310を投入することによって得ることができる。例えば、本実施形態のカメラユニット209が搭載された遊技機に正規のメダル410が投入されると、撮像画像362B(この撮像画像362Bを「標準画像391」と呼ぶ)が撮像され、次に、特徴画像生成部364が、標準画像391に基づいて、標準画像391に含まれる正規のメダル410の特徴を示す特徴画像362C(回転合成画像381)を生成する。この特徴画像362Cを「標準特徴画像392」と呼ぶ。本実施形態では、標準特徴画像392がテンプレートデータ367の特徴画像となる。このようなテンプレートデータ367は、上述のように、カメラユニット209のSRAM243等に記憶される。以後、遊技機が実稼働中に生成する特徴画像362C(正規メダルを判別するために生成された特徴画像362C)を、標準特徴画像392と区別するために、「対象特徴画像362C」と呼ぶことがある。   The feature image of the template data 367 can be obtained by inserting the medal 310 into the gaming machine. For example, when a regular medal 410 is inserted into a gaming machine equipped with the camera unit 209 of the present embodiment, a captured image 362B (this captured image 362B is referred to as a “standard image 391”) is captured, and then Based on the standard image 391, the feature image generation unit 364 generates a feature image 362C (rotation synthesized image 381) indicating the features of the regular medal 410 included in the standard image 391. This feature image 362C is referred to as a “standard feature image 392”. In the present embodiment, the standard feature image 392 is a feature image of the template data 367. Such template data 367 is stored in the SRAM 243 of the camera unit 209 as described above. Hereinafter, the feature image 362C generated during actual operation of the gaming machine (the feature image 362C generated to determine the regular medal) is referred to as the “target feature image 362C” in order to distinguish it from the standard feature image 392. There is.

判定部365は、例えば、回転合成画像381(対象特徴画像362C)とテンプレートデータ367の特徴画像との間の類似度(相違度)を求めることによって、両者を比較する。本実施形態では、判定部365は、例えば、類似度を示す値として、SAD(Sum of Absolute Difference)を使用する。SADが大きいことは類似度が低いことを意味し、SADが小さいことは類似度が高いことを意味する。類似度を示す値として、SSD(Sum of Squared Difference)あるいはNCC(Normalized Correlation Coffiecient)などの他の値を使用してもよい。   For example, the determination unit 365 obtains a similarity (difference) between the rotation composite image 381 (target feature image 362C) and the feature image of the template data 367, and compares them. In the present embodiment, the determination unit 365 uses, for example, SAD (Sum of Absolute Difference) as a value indicating the similarity. A large SAD means that the similarity is low, and a small SAD means that the similarity is high. Other values such as SSD (Sum of Squared Difference) or NCC (Normalized Correlation Coffiecient) may be used as the value indicating the degree of similarity.

判定部365は、回転合成画像381とテンプレートデータ367の特徴画像との間の類似度が高い場合には、撮像画像362Bに含まれるメダル410が正規のものであると判定し、当該類似度が低い場合には、撮像画像362Bに含まれるメダル410が正規のものではないと判定する。具体的には、判定部365は、回転合成画像381とテンプレートデータ367の特徴画像との間のSADがしきい値以下の場合には、撮像画像362Bのメダル410が正規のものであると判定し、当該SADが当該しきい値よりも大きい場合には、撮像画像362Bのメダル410が正規のものではないと判定する。そして、判定部365は判定結果368を出力する。   When the similarity between the rotation composite image 381 and the feature image of the template data 367 is high, the determination unit 365 determines that the medal 410 included in the captured image 362B is authentic, and the similarity is If it is low, it is determined that the medal 410 included in the captured image 362B is not genuine. Specifically, the determination unit 365 determines that the medal 410 of the captured image 362B is genuine when the SAD between the rotation composite image 381 and the feature image of the template data 367 is equal to or less than a threshold value. If the SAD is larger than the threshold value, it is determined that the medal 410 of the captured image 362B is not genuine. Then, the determination unit 365 outputs a determination result 368.

判定部365で使用されるしきい値は、例えば、複数のメダル410が使用されて決定される。具体的には、遊技機が実稼働していないときに、遊技機に対して複数の正規メダルが順次投入される。そして、投入された複数の正規メダルがそれぞれ撮像された複数の撮像画像362Bが生成される。判定部365は、生成された複数の撮像画像362Bのそれぞれについて、撮像画像362Bから特徴画像生成部364で生成された回転合成画像381と、テンプレートデータ367の特徴画像との間のSADを求める。そして、判定部365が求めた複数のSADのうちの最大値がしきい値に決定される。決定されたしきい値は、例えば、SRAM243等に記憶される。   The threshold value used in the determination unit 365 is determined using a plurality of medals 410, for example. Specifically, when the gaming machine is not actually operating, a plurality of regular medals are sequentially inserted into the gaming machine. Then, a plurality of captured images 362B in which a plurality of inserted regular medals are respectively captured are generated. The determination unit 365 obtains the SAD between the rotation composite image 381 generated by the feature image generation unit 364 from the captured image 362B and the feature image of the template data 367 for each of the generated plurality of captured images 362B. Then, the maximum value among the plurality of SADs obtained by the determination unit 365 is determined as the threshold value. The determined threshold value is stored in, for example, the SRAM 243 or the like.

なお、このような遊技機によるしきい値の決定は、遊技機において所定のモードが選択された場合に行うようにすることができる。また、遊技機または他の装置によって事前にしきい値を決定し、各遊技機のSRAM等に記憶させるようにしてもよい。   Note that the threshold value can be determined by such a gaming machine when a predetermined mode is selected in the gaming machine. Further, the threshold value may be determined in advance by a gaming machine or other device and stored in the SRAM or the like of each gaming machine.

判定部365で使用されるしきい値がこのように決定されることにより、正規のメダル410の種類が変更された場合には、変更後のメダル410が、実稼働していない遊技機に投入されることによって、変更後のメダル410に応じたしきい値が決定される。よって、メダル410の種類が変更された場合であっても、遊技機に投入されたメダル410が正規のものであるか否かを適切に判定することができる。   By determining the threshold value used in the determination unit 365 in this manner, when the type of the regular medal 410 is changed, the changed medal 410 is inserted into a gaming machine that is not actually operating. As a result, a threshold value corresponding to the changed medal 410 is determined. Therefore, even when the type of the medal 410 is changed, it is possible to appropriately determine whether or not the medal 410 inserted into the gaming machine is a genuine one.

なお、上記の例では、2値の第1画像(エッジ画像)374が、撮像画像362Bのメダル310を示す第1画像374として第2画像生成部380に入力されたが、グレースケール画像のメダル領域373を示す画像が第1画像として第2画像生成部380に入力されるようにしてもよい。この場合には、メダル領域373を回転して得られる複数の回転画像を合成した回転合成画像が特徴画像362Cとされる。   In the above example, the binary first image (edge image) 374 is input to the second image generation unit 380 as the first image 374 indicating the medal 310 of the captured image 362B. An image indicating the region 373 may be input to the second image generation unit 380 as the first image. In this case, a rotation composite image obtained by combining a plurality of rotation images obtained by rotating the medal area 373 is used as the feature image 362C.

以上のように、本実施形態に係る遊技機であるパチスロ1では、メダル410を示す第1画像(エッジ画像)374を回転して得られる複数の回転画像を合成した回転合成画像381の少なくとも一部を第2画像(特徴画像362C)として生成している。この特徴画像362Cは、撮像画像362Bに含まれるメダル410の回転角度の影響を受けにくい。したがって、撮像画像362Bに含まれるメダル410の回転角度(回転姿勢)がばらつく場合であっても、特徴画像362C(対象特徴画像362C、標準特徴画像392)を用いて撮像画像362Bに含まれるメダル410が正規のものであるか否かをより正確に判定することができ、判定精度が向上する。   As described above, in the pachislot machine 1 that is a gaming machine according to the present embodiment, at least one of the rotation composite images 381 obtained by combining a plurality of rotation images obtained by rotating the first image (edge image) 374 showing the medal 410. Are generated as the second image (feature image 362C). This feature image 362C is not easily affected by the rotation angle of the medal 410 included in the captured image 362B. Therefore, even when the rotation angle (rotation posture) of the medal 410 included in the captured image 362B varies, the medal 410 included in the captured image 362B using the feature image 362C (target feature image 362C, standard feature image 392). Can be more accurately determined whether or not is genuine, and the determination accuracy is improved.

また、本実施形態では、2値のエッジ画像を第1画像374としているため、グレースケール画像のメダル領域373を第1画像374とする場合と比較して、撮像部361での撮像領域の明るさの変化の影響を第1画像374が受けることを抑制することができる。よって、特徴画像362Cが、メダル410が撮像される撮像領域の明るさの変化の影響を受けることを抑制することができ、その結果、正規メダルの判別精度が向上する。   In this embodiment, since the binary edge image is the first image 374, the brightness of the imaging region in the imaging unit 361 is compared to the case where the medal region 373 of the grayscale image is the first image 374. It is possible to suppress the first image 374 from being affected by the change in height. Therefore, it is possible to suppress the characteristic image 362C from being affected by the change in the brightness of the imaging area where the medal 410 is imaged, and as a result, the accuracy of determining a regular medal is improved.

また、本実施形態では、抽出部371は、テンプレートマッチングを用いて、撮像画像362Bからメダル領域373を抽出しているため、ハフ変換が使用される上述の第1の抽出方法や、ラベリングが使用される第2の抽出方法と比較して、抽出処理が簡素化される。   In the present embodiment, the extraction unit 371 uses the template matching to extract the medal area 373 from the captured image 362B. Therefore, the first extraction method using the Hough transform and the labeling are used. Compared with the second extraction method, the extraction process is simplified.

また、本実施形態では、判定部365は、撮像画像362Bから生成された特徴画像362Cと、テンプレートデータ367の特徴画像とをSAD等を用いて比較し、その比較結果に基づいて当該撮像画像362Bに係るメダル410が正規のものか否かを判定しているため、判定処理が簡素化される。   In the present embodiment, the determination unit 365 compares the feature image 362C generated from the captured image 362B with the feature image of the template data 367 using SAD or the like, and based on the comparison result, the captured image 362B. Since it is determined whether or not the medal 410 according to is genuine, the determination process is simplified.

なお、第2画像生成部380は、特徴画像362C(回転合成画像381)を生成する際に使用する回転画像の数(例えば、図29に示すNの値)を、本実施形態のカメラユニット209が組み込まれる遊技機の動作状況に応じて変化させてもよい。例えば、メダルレール210上を移動するメダル410の速度が遊技機等によって異なる場合を想定する。このような状況において、メダル410の移動速度が速い場合には、第2画像生成部380は、処理時間を判定精度よりも優先させて、特徴画像362Cを生成する際に使用する回転画像の数を少なくするよう構成することができる。例えば、第2画像生成部380は、エッジ画像(第1画像374)を0°から350°まで10°ずつ回転させて、36個の回転画像374aを生成し、これらの回転画像374aを合成して特徴画像362Cを生成する。   Note that the second image generation unit 380 determines the number of rotated images (for example, the value of N shown in FIG. 29) used when generating the feature image 362C (rotated synthesized image 381) as the camera unit 209 of the present embodiment. You may change according to the operation | movement condition of the game machine in which is incorporated. For example, it is assumed that the speed of the medal 410 moving on the medal rail 210 varies depending on the gaming machine or the like. In such a situation, when the moving speed of the medal 410 is fast, the second image generation unit 380 gives priority to the processing time over the determination accuracy, and the number of rotation images used when generating the feature image 362C. It can be configured to reduce For example, the second image generation unit 380 rotates the edge image (first image 374) by 10 ° from 0 ° to 350 °, generates 36 rotated images 374a, and combines these rotated images 374a. Thus, the feature image 362C is generated.

一方、メダル410の移動速度が速い場合には、第2画像生成部380は、処理時間よりも判定精度を優先させて、特徴画像362Cを生成する際に使用する回転画像の数を多くするよう構成することができる。例えば、第2画像生成部380は、エッジ画像(第1画像374)を0°から359°まで1°ずつ回転させて、360個の回転画像374aを生成し、これらの回転画像374aを合成して特徴画像362Cを生成する。   On the other hand, when the movement speed of the medal 410 is fast, the second image generation unit 380 gives priority to the determination accuracy over the processing time and increases the number of rotation images used when generating the feature image 362C. Can be configured. For example, the second image generation unit 380 rotates the edge image (first image 374) by 1 ° from 0 ° to 359 ° to generate 360 rotated images 374a, and synthesizes these rotated images 374a. Thus, the feature image 362C is generated.

また、図32に示すように、ホストコントローラ241が、魚眼補正スケーラ回路248による魚眼補正処理の終了を示す縮小終了割込信号(2SH、4SH等)を検知したときに、画像認識DSP回路242または画像認識アクセラレータ回路249が処理中(ビジー状態)であって、刻印判定処理(正規メダル判別処理)をスキップする状況が発生するような場合においても、より多くのメダル410についての正規メダル判別処理が行えるように、特徴画像362Cを生成する際に使用する回転画像の数を少なくして、処理時間を短縮するよう構成することができる。   Also, as shown in FIG. 32, when the host controller 241 detects a reduction end interrupt signal (2SH, 4SH, etc.) indicating the end of fisheye correction processing by the fisheye correction scaler circuit 248, the image recognition DSP circuit. 242 or the image recognition accelerator circuit 249 is being processed (busy state), and even when a situation in which the marking determination process (regular medal determination process) is skipped occurs, the regular medals are determined for more medals 410. The processing time can be shortened by reducing the number of rotated images used when generating the feature image 362C so that processing can be performed.

また、本実施形態のカメラユニット209が組み込まれる遊技機において、メダル410が、その姿勢を変化させずにメダルレール210上を移動する等して当該遊技機に投入される場合、撮像画像362Bに映るメダル410の姿勢は一定であるものの、それに映るメダル410の左右方向の位置がばらつくことがある。例えば、ある撮像画像362Bではメダル410が左側に映っており、別の撮像画像362Bではメダル410が中央に映っており、さらに別の撮像画像362Bではメダル410が右側に映っていることがある。   In the gaming machine in which the camera unit 209 of the present embodiment is incorporated, when the medal 410 is inserted into the gaming machine by moving on the medal rail 210 without changing its posture, the captured image 362B is displayed. Although the posture of the medal 410 shown is constant, the position of the medal 410 shown in the right and left direction may vary. For example, in one captured image 362B, the medal 410 may appear on the left side, in another captured image 362B, the medal 410 may appear in the center, and in another captured image 362B, the medal 410 may appear on the right side.

このような場合には、変換パラメータ280に複数の平行移動パラメータ(上述した、平行移動に関する変換パラメータ280)を含めて、エッジ画像(第1画像374)ではなく、撮像画像362B等を第2画像生成部380に入力する。そこで、第2画像生成部380は、複数の平行移動パラメータに基づいて、撮像画像362B等に対して座標変換を個別に行い、複数の平行移動画像を生成する。例えば、第2画像生成部380は、撮像画像362Bを、右方向に2画素ずつ移動させた複数枚の右平行移動画像を生成するとともに、撮像画像362Bを、左方向に2画素ずつ移動させた複数の左平行移動画像を生成する。そして、第2画像生成部380は、こうして生成された複数の右平行移動画像、及び複数の左平行移動画像から成る複数の平行移動画像を合成して合成画像を生成する。また、エッジ画像(第1画像374)について、このような複数の平行移動画像を生成し、これらの平行移動画像を合成して合成画像を生成することもできる。   In such a case, the conversion parameter 280 includes a plurality of parallel movement parameters (the conversion parameter 280 related to parallel movement described above), and the captured image 362B or the like is not the edge image (first image 374) but the second image. The data is input to the generation unit 380. Therefore, the second image generation unit 380 individually performs coordinate conversion on the captured image 362B and the like based on the plurality of parallel movement parameters, and generates a plurality of parallel movement images. For example, the second image generation unit 380 generates a plurality of right-translated images obtained by moving the captured image 362B by two pixels in the right direction, and moves the captured image 362B by two pixels in the left direction. A plurality of left translation images are generated. Then, the second image generation unit 380 generates a composite image by synthesizing the plurality of parallel movement images including the plurality of right translation images and the plurality of left translation images generated in this way. Moreover, it is also possible to generate a plurality of such parallel movement images for the edge image (first image 374) and combine these parallel movement images to generate a composite image.

判定部365は、この合成画像を特徴画像として、メダル410が正規メダルか否かを判定する。これにより、撮像画像362Bにおいて、それに映るメダル410の左右方向の位置がばらつく場合であっても、メダル410が正規メダルか否かを適切に判定することができる。   The determination unit 365 determines whether or not the medal 410 is a regular medal using the composite image as a feature image. Thereby, even if the position of the medal 410 shown in the left and right direction varies in the captured image 362B, it is possible to appropriately determine whether or not the medal 410 is a regular medal.

また、本実施形態のカメラユニット209が組み込まれる遊技機において、メダル410が撮像される場合、撮像画像362Bに映るメダル410の大きさがばらつくことがある。例えば、メダル410の通過経路のわずかな余裕等により、メダル410とCMOSイメージセンサ232との間の距離が一定に保たれていない場合には、撮像画像362Bに映るメダル410の大きさが多少ばらつくことがある。   In addition, in the gaming machine in which the camera unit 209 of this embodiment is incorporated, when the medal 410 is captured, the size of the medal 410 shown in the captured image 362B may vary. For example, when the distance between the medal 410 and the CMOS image sensor 232 is not kept constant due to a slight allowance of the passage route of the medal 410, the size of the medal 410 shown in the captured image 362B varies somewhat. Sometimes.

このような場合には、変換パラメータ280に複数の拡大パラメータ(上述した、画像の拡大に関する変換パラメータ280)、及び複数の縮小パラメータ(上述した、画像の縮小に関する変換パラメータ280)を含める。そして、第2画像生成部380は、複数の拡大パラメータに基づいて、エッジ画像(第1画像374)に対して複数の座標変換を個別に行い、複数の拡大画像を生成する。さらに、第2画像生成部380は、複数の縮小パラメータに基づいて、エッジ画像(第1画像374)に対して複数の座標変換を個別に行って、複数の縮小画像を生成する。そして、第2画像生成部380は、複数の拡大画像、及び複数の縮小画像から成る複数の画像を合成して合成画像を生成する。   In such a case, the conversion parameter 280 includes a plurality of enlargement parameters (the conversion parameter 280 related to image enlargement described above) and a plurality of reduction parameters (the conversion parameter 280 related to image reduction described above). Then, the second image generating unit 380 individually performs a plurality of coordinate transformations on the edge image (first image 374) based on the plurality of enlargement parameters, and generates a plurality of enlarged images. Further, the second image generation unit 380 individually performs a plurality of coordinate transformations on the edge image (first image 374) based on the plurality of reduction parameters, and generates a plurality of reduced images. Then, the second image generation unit 380 generates a composite image by combining a plurality of images including a plurality of enlarged images and a plurality of reduced images.

判定部365は、この合成画像を特徴画像として、メダル410が正規メダルか否かを判定する。これにより、撮像画像362Bにおいて、それに映るメダル410の大きさがばらつく場合であっても、メダル410が正規メダルか否かを適切に判定することができる。   The determination unit 365 determines whether or not the medal 410 is a regular medal using the composite image as a feature image. Thereby, even when the size of the medal 410 shown in the captured image 362B varies, it can be appropriately determined whether or not the medal 410 is a regular medal.

また、本実施形態のカメラユニット209が組み込まれる遊技機において、複数種類のメダル410が使用される場合には、メダル410の種類に応じて、第2画像生成部380で使用される複数の変換パラメータ280の組を変化させてもよい。例えば、ある種類のメダル410が使用され、CMOSイメージセンサ232により撮像された場合、第2画像生成部380は、変換パラメータ280に含まれる複数の回転パラメータを使用して、エッジ画像(第1画像374)等に対して複数の座標変換を個別に行う。一方で、別の種類のメダル410が使用される場合、第2画像生成部380は、変換パラメータ280に含まれる複数の平行移動パラメータを使用して、エッジ画像(第1画像374)等に対して複数の座標変換を個別に行う。   Further, in the gaming machine in which the camera unit 209 of the present embodiment is incorporated, when a plurality of types of medals 410 are used, a plurality of conversions used in the second image generation unit 380 depending on the type of the medals 410. The set of parameters 280 may be changed. For example, when a certain type of medal 410 is used and captured by the CMOS image sensor 232, the second image generation unit 380 uses a plurality of rotation parameters included in the conversion parameter 280 to generate an edge image (first image). 374) etc., a plurality of coordinate transformations are performed individually. On the other hand, when another type of medal 410 is used, the second image generation unit 380 uses a plurality of parallel movement parameters included in the conversion parameter 280 to perform an edge image (first image 374) or the like. Multiple coordinate transformations individually.

<本実施形態の変形例>
以下に、本発明の一実施形態に係るカメラユニット209(特に、画像認識アクセラレータ回路249)に関する各種変形例について説明する。
<Modification of this embodiment>
Hereinafter, various modifications related to the camera unit 209 (particularly, the image recognition accelerator circuit 249) according to an embodiment of the present invention will be described.

[変形例1]
図48は、本変形例に係る画像認識アクセラレータ回路449についての構成を示す図である。画像認識アクセラレータ回路449は、図23に示す画像認識アクセラレータ回路249に対応するものであり、少なくとも、座標変換回路272が座標変換回路472に変更されている。入力フレームバッファ471は、図23の入力フレームバッファ271に対応し、画像処理回路473は、図23の画像処理回路273に対応し、メモリ474は、図23のメモリ274に対応する。
[Modification 1]
FIG. 48 is a diagram showing the configuration of the image recognition accelerator circuit 449 according to this modification. The image recognition accelerator circuit 449 corresponds to the image recognition accelerator circuit 249 shown in FIG. 23, and at least the coordinate conversion circuit 272 is changed to the coordinate conversion circuit 472. The input frame buffer 471 corresponds to the input frame buffer 271 in FIG. 23, the image processing circuit 473 corresponds to the image processing circuit 273 in FIG. 23, and the memory 474 corresponds to the memory 274 in FIG.

座標変換回路472は、図47に示す第1画像(エッジ画像)374を回転させて回転画像(374a)を得る場合に、第1画像(エッジ画像)374に含まれる被写体のうちの特定の被写体(以後、「特定被写体」と呼ぶ)の位置を調整することが可能である。以下、本変形例に係る座標変換回路472について、図23に示した座標変換回路272との相違点を中心に説明する。   When the first image (edge image) 374 shown in FIG. 47 is rotated to obtain a rotated image (374a), the coordinate conversion circuit 472 selects a specific subject among the subjects included in the first image (edge image) 374. (Hereinafter referred to as “specific subject”) can be adjusted. Hereinafter, the coordinate conversion circuit 472 according to this modification will be described focusing on differences from the coordinate conversion circuit 272 shown in FIG.

本変形例に係る座標変換回路472は、座標変換を行う変換回路481、制御回路482、及び加算回路485を備えている。制御回路482は、図23に示す制御回路282と比較すると、レジスタ283に対応するレジスタ483を備え、そのなかに、特定情報290に対応する特定情報490を記憶する。加算回路485は、制御回路482によって、画像認識アクセラレータ回路449のメモリ474から読み出された変換パラメータ280に対して、パラメータオフセット495を加算する。そして、加算回路485は、パラメータオフセット495が加算された変換パラメータ280を変換回路481に出力する。   A coordinate conversion circuit 472 according to this modification includes a conversion circuit 481 that performs coordinate conversion, a control circuit 482, and an addition circuit 485. Compared with the control circuit 282 shown in FIG. 23, the control circuit 482 includes a register 483 corresponding to the register 283, and stores therein the specific information 490 corresponding to the specific information 290 therein. The adder circuit 485 adds the parameter offset 495 to the conversion parameter 280 read from the memory 474 of the image recognition accelerator circuit 449 by the control circuit 482. Then, the addition circuit 485 outputs the conversion parameter 280 added with the parameter offset 495 to the conversion circuit 481.

パラメータオフセット495は、制御回路482のレジスタ483に記憶される。パラメータオフセット495は、例えば、第1画像(エッジ画像)374により表される四角形の画像の重心(すなわち、当該四角形の対角線の交点)の位置に対する、第1画像(エッジ画像)374に表される特定被写体の重心の位置のずれ量を示している。本実施形態に係る遊技機の場合、特定被写体は、第1画像(エッジ画像)374に表されるメダル410となる。この場合、特定被写体の重心は、メダル410の重心、つまり円形のメダル410の中心となる。   The parameter offset 495 is stored in the register 483 of the control circuit 482. The parameter offset 495 is represented in the first image (edge image) 374 with respect to the position of the center of gravity of the quadrilateral image represented by the first image (edge image) 374 (that is, the intersection of the diagonal lines of the quadrilateral), for example. The deviation amount of the position of the center of gravity of the specific subject is shown. In the case of the gaming machine according to the present embodiment, the specific subject is the medal 410 represented by the first image (edge image) 374. In this case, the center of gravity of the specific subject is the center of gravity of the medal 410, that is, the center of the circular medal 410.

パラメータオフセット495は、第1画像(エッジ画像)374により表される四角形の重心の位置に対する、第1画像(エッジ画像)374により表される特定被写体の重心の位置のx方向(例えば画像の左右方向)のずれ量xoffと、第1画像(エッジ画像)374により表される四角形の重心の位置に対する、第1画像(エッジ画像)374により表される特定被写体の重心の位置のy方向(例えば画像の上下方向)のずれ量yoffとで構成されている。以後、ずれ量xoffを「xオフセットxoff」と呼ぶ。また、ずれ量yoffを「yオフセットyoff」と呼ぶ。   The parameter offset 495 is the x-direction of the position of the center of gravity of the specific subject represented by the first image (edge image) 374 with respect to the position of the center of gravity of the square represented by the first image (edge image) 374 (for example, left and right of the image). Direction) shift amount xoff and the position of the center of gravity of the specific subject represented by the first image (edge image) 374 with respect to the position of the center of gravity of the square represented by the first image (edge image) 374 (for example, And the amount of deviation yoff in the vertical direction of the image). Hereinafter, the shift amount xoff is referred to as “x offset xoff”. The shift amount yoff is referred to as “y offset yoff”.

ここで、第1画像(エッジ画像)374により表される四角形の重心の座標を(x1,y1)とし、第1画像(エッジ画像)374により表される特定被写体の重心の座標を(x2,y2)とする。このとき、xオフセットxoff=x2−x1となり、yオフセットyoff=y2−y1となる。なお、図46に示す第1画像(エッジ画像)374の例では、第1画像(エッジ画像)374により表される四角形の各辺は、正円であるメダル410の円周に接しているため、xoff=0、yoff=0となる。   Here, the coordinates of the center of gravity of the quadrangle represented by the first image (edge image) 374 are (x1, y1), and the coordinates of the center of gravity of the specific subject represented by the first image (edge image) 374 are (x2, y2). At this time, x offset xoff = x2-x1, and y offset yoff = y2-y1. In the example of the first image (edge image) 374 shown in FIG. 46, each side of the quadrangle represented by the first image (edge image) 374 is in contact with the circumference of the medal 410 that is a perfect circle. , Xoff = 0, and yoff = 0.

加算回路485は、変換パラメータ280に対してパラメータオフセット495を加算する際に、変換パラメータ280を構成する4つの座標のそれぞれのx座標に対して、パラメータオフセット495のxオフセットxoffを加算する。そして、加算回路485は、変換パラメータ280を構成する4つの座標のそれぞれのy座標に対して、パラメータオフセット495のyオフセットyoffを加算する。   When the addition circuit 485 adds the parameter offset 495 to the conversion parameter 280, the addition circuit 485 adds the x offset xoff of the parameter offset 495 to the respective x coordinates of the four coordinates constituting the conversion parameter 280. Then, the adding circuit 485 adds the y offset yoff of the parameter offset 495 to each y coordinate of the four coordinates constituting the conversion parameter 280.

変換回路481は、パラメータオフセット495が加算された変換パラメータ280に基づいて、対象画像データ275(第1画像374)に対して座標変換を行う。変換パラメータ280が、画像の回転に関する変換パラメータ280である場合には、変換回路481は、パラメータオフセット495が加算された変換パラメータ280に基づいて、対象画像データ275の座標変換を行う。これにより、対象画像データ275により表される特定被写体の重心の位置が、対象画像データ275により表される四角形の重心の位置からずれている場合であっても、両者の重心の位置が一致するようになる。本実施形態に係る遊技機においては、対象画像データ275である第1画像(エッジ画像)374により表されるメダル410の重心の位置が、第1画像374により表される四角形の重心の位置からずれている場合であっても、両者の重心の位置が一致するようになる。   The conversion circuit 481 performs coordinate conversion on the target image data 275 (first image 374) based on the conversion parameter 280 to which the parameter offset 495 is added. When the conversion parameter 280 is a conversion parameter 280 related to image rotation, the conversion circuit 481 performs coordinate conversion of the target image data 275 based on the conversion parameter 280 to which the parameter offset 495 is added. Thus, even when the position of the center of gravity of the specific subject represented by the target image data 275 is deviated from the position of the center of gravity of the quadrangle represented by the target image data 275, the positions of the centers of gravity of both coincide with each other. It becomes like this. In the gaming machine according to the present embodiment, the position of the center of gravity of the medal 410 represented by the first image (edge image) 374 that is the target image data 275 is determined from the position of the center of gravity of the quadrangle represented by the first image 374. Even if they are misaligned, the positions of the centers of gravity of both coincide.

パラメータオフセット495は、ホストコントローラ241が、画像認識アクセラレータ回路449に対して対象画像データ275に関する画像処理(回転積算処理)の開始を指示する際に(図33のステップS1等)、ホストコントローラ241によって、特定情報290とともに、制御回路482のレジスタ483に設定される。ホストコントローラ241は、画像認識アクセラレータ回路249に対して、処理対象の対象画像データ275ごとに、当該対象画像データ275に応じた特定情報290、及びパラメータオフセット495をSRAM243等から読み出し、読み出した特定情報290、及びパラメータオフセット495を、制御回路482のレジスタ483に設定する。   The parameter offset 495 is set by the host controller 241 when the host controller 241 instructs the image recognition accelerator circuit 449 to start image processing (rotation integration processing) related to the target image data 275 (step S1 in FIG. 33, etc.). And the specific information 290 are set in the register 483 of the control circuit 482. The host controller 241 reads the specific information 290 and the parameter offset 495 corresponding to the target image data 275 for each target image data 275 to be processed from the SRAM 243 and the like to the image recognition accelerator circuit 249. 290 and parameter offset 495 are set in the register 483 of the control circuit 482.

制御回路482は、加算回路485にレジスタ483に記憶されているパラメータオフセット495を出力するとともに、レジスタ483に記憶されている特定情報290に基づいて、メモリ274から変換パラメータ280を読み出す。加算回路485は、メモリ274から読み出された変換パラメータ280に対してパラメータオフセット495を加算し、パラメータオフセット495が加算された変換パラメータ280が、変換回路481に提供される。   The control circuit 482 outputs the parameter offset 495 stored in the register 483 to the addition circuit 485 and reads the conversion parameter 280 from the memory 274 based on the specific information 290 stored in the register 483. The addition circuit 485 adds the parameter offset 495 to the conversion parameter 280 read from the memory 274, and the conversion parameter 280 added with the parameter offset 495 is provided to the conversion circuit 481.

本実施形態に係る遊技機においては、パラメータオフセット495は、例えば、第1画像生成部370として機能する画像認識DSP回路242によって生成される。第1画像生成部370は、撮像画像362Bに基づいて第1画像(エッジ画像)374を生成する際に、パラメータオフセット495を生成することができる。   In the gaming machine according to the present embodiment, the parameter offset 495 is generated by, for example, the image recognition DSP circuit 242 that functions as the first image generation unit 370. The first image generation unit 370 can generate the parameter offset 495 when generating the first image (edge image) 374 based on the captured image 362B.

第1画像生成部370は、第1画像(エッジ画像)374を生成する際に求めたパラメータオフセット495を、当該第1画像374に対応付けてSRAM243に記憶する。   The first image generation unit 370 stores the parameter offset 495 obtained when generating the first image (edge image) 374 in the SRAM 243 in association with the first image 374.

このように、本変形例に係る座標変換回路472では、変換回路481が、パラメータオフセット495の加算された変換パラメータ280に基づいて、第1画像(エッジ画像)374に対する座標変換を行う。そのため、第1画像(エッジ画像)374ごとにパラメータオフセット495を調整することによって、変換回路481で得られる回転画像374a(変換後画像データ276)または、特徴画像362C(処理画像データ277)での特定被写体の位置が調整される。   As described above, in the coordinate conversion circuit 472 according to this modification, the conversion circuit 481 performs coordinate conversion on the first image (edge image) 374 based on the conversion parameter 280 to which the parameter offset 495 is added. Therefore, by adjusting the parameter offset 495 for each first image (edge image) 374, the rotation image 374a (post-conversion image data 276) obtained by the conversion circuit 481 or the feature image 362C (processed image data 277) is obtained. The position of the specific subject is adjusted.

本実施形態に係る遊技機においては、回転画像374aでのメダル410の位置がばらつく場合には、合成画像にばらつきが生じ、その結果、特徴画像362Cにばらつきが生じる。特徴画像362Cがばらつくと、遊技機に投入されたメダル410が正規メダルであっても、テンプレートデータ367と大きく異なる可能性があり、その結果、判定部365での判定精度が低下する可能性がある。したがって、本変形例のように、第1画像(エッジ画像)374により表されるメダル410の重心の位置を、第1画像374により表される四角形の重心の位置に一致させることによって、特徴画像362Cのばらつきが低減され、その結果、判定部365での判定精度を向上させることができる。   In the gaming machine according to the present embodiment, when the position of the medal 410 in the rotation image 374a varies, the composite image varies, and as a result, the feature image 362C varies. If the feature image 362C varies, even if the medal 410 inserted into the gaming machine is a regular medal, there is a possibility that it is greatly different from the template data 367, and as a result, the determination accuracy in the determination unit 365 may decrease. is there. Therefore, the feature image is obtained by matching the position of the center of gravity of the medal 410 represented by the first image (edge image) 374 with the position of the center of gravity of the quadrangle represented by the first image 374 as in this modification. As a result, the determination accuracy in the determination unit 365 can be improved.

[変形例2]
本変形例では、図49に示すように、画像認識アクセラレータ回路549が、入力フレームバッファに記憶された対象画像データ575に対して座標変換を複数回実行して、1つの処理画像データ577を生成する。
[Modification 2]
In the present modification, as shown in FIG. 49, the image recognition accelerator circuit 549 performs coordinate transformation on the target image data 575 stored in the input frame buffer a plurality of times to generate one processed image data 577. To do.

図50は、本変形例に係る画像認識アクセラレータ回路549の構成を示す図である。画像認識アクセラレータ回路549は、図23に示す画像認識アクセラレータ回路249に対応するものであり、少なくとも、座標変換回路272が座標変換回路572に変更され、画像処理回路273は、画像処理回路573に変更されている。入力フレームバッファ571は、図23の入力フレームバッファ271に対応し、メモリ574は、図23のメモリ274に対応する。   FIG. 50 is a diagram illustrating a configuration of an image recognition accelerator circuit 549 according to the present modification. The image recognition accelerator circuit 549 corresponds to the image recognition accelerator circuit 249 shown in FIG. 23. At least the coordinate conversion circuit 272 is changed to the coordinate conversion circuit 572, and the image processing circuit 273 is changed to the image processing circuit 573. Has been. The input frame buffer 571 corresponds to the input frame buffer 271 in FIG. 23, and the memory 574 corresponds to the memory 274 in FIG.

図51は、本変形例に係る画像処理回路573の構成を示す図である。図51に示すように、本変形例に係る画像処理回路573は、上述の図30に示す画像処理回路273と比較して、加算処理部を備えていない。また、画像処理回路573は、画像処理回路273と比較して、第1読出要求出力部301に対応する第1読出要求出力部601、書込要求出力部302に対応する書込要求出力部602、及び第2読出要求出力部303に対応する第2読出要求出力部603を記憶制御部600に備えている。また、図51の画像処理回路573は、画像処理回路273の調停部304に対応する調停部604を備え、さらに、ライトバッファ306に対応するライトバッファ606、リードバッファ307に対応するリードバッファ607、フレームメモリ309に対応するフレームメモリ609を備える。ライトバッファ606には、上述の座標変換回路572から、変換後画像データ576が出力される。   FIG. 51 is a diagram showing a configuration of an image processing circuit 573 according to the present modification. As shown in FIG. 51, the image processing circuit 573 according to the present modification does not include an addition processing unit as compared with the image processing circuit 273 shown in FIG. In addition, the image processing circuit 573 has a first read request output unit 601 corresponding to the first read request output unit 301 and a write request output unit 602 corresponding to the write request output unit 302 as compared with the image processing circuit 273. The storage control unit 600 includes a second read request output unit 603 corresponding to the second read request output unit 303. 51 includes an arbitration unit 604 corresponding to the arbitration unit 304 of the image processing circuit 273, and further includes a write buffer 606 corresponding to the write buffer 306, a read buffer 607 corresponding to the read buffer 307, A frame memory 609 corresponding to the frame memory 309 is provided. The converted image data 576 is output from the coordinate conversion circuit 572 described above to the write buffer 606.

こうした画像処理回路573において、画像認識アクセラレータ回路549の座標変換回路572の変換回路581から出力される(変換後画像データ576の)画素データがそのままライトバッファ606に書き込まれる。また、リードバッファ607に記憶された画素データは、座標変換回路572の選択回路585に出力される。   In such an image processing circuit 573, the pixel data (of the converted image data 576) output from the conversion circuit 581 of the coordinate conversion circuit 572 of the image recognition accelerator circuit 549 is written in the write buffer 606 as it is. Further, the pixel data stored in the read buffer 607 is output to the selection circuit 585 of the coordinate conversion circuit 572.

図50に示すように、本変形例に係る座標変換回路572は、上述の図23に示す座標変換回路272と比較して、選択回路585をさらに備える。選択回路585は、制御回路582から出力される制御信号CNT1に基づいて、入力フレームバッファ571の出力、及び画像処理回路573の出力のどちらか一方を選択し、選択した出力が変換回路581に入力されるように、変換回路581に接続される。   As shown in FIG. 50, the coordinate conversion circuit 572 according to the present modification further includes a selection circuit 585 as compared to the coordinate conversion circuit 272 shown in FIG. The selection circuit 585 selects either the output of the input frame buffer 571 or the output of the image processing circuit 573 based on the control signal CNT1 output from the control circuit 582, and the selected output is input to the conversion circuit 581. In this way, the converter circuit 581 is connected.

本変形例では、制御回路582から出力される制御信号CNT1が第1状態のとき(例えば、「1」を示すとき)、選択回路585は入力フレームバッファ571の出力を選択する。選択回路585が入力フレームバッファ571の出力を選択する場合には、変換回路581は、入力フレームバッファ571に記憶された対象画像データ575にアクセスすることができる。   In the present modification, the selection circuit 585 selects the output of the input frame buffer 571 when the control signal CNT1 output from the control circuit 582 is in the first state (for example, indicates “1”). When the selection circuit 585 selects the output of the input frame buffer 571, the conversion circuit 581 can access the target image data 575 stored in the input frame buffer 571.

一方で、制御回路582から出力される制御信号CNT1が第2状態のとき(例えば、「0」を示すとき)、選択回路585は、画像処理回路573の出力を選択する。選択回路585が画像処理回路573の出力を選択する場合には、変換回路581は、画像処理回路573のリードバッファ607と接続され、リードバッファ607から画素データを読み出すことができる。   On the other hand, when the control signal CNT1 output from the control circuit 582 is in the second state (for example, indicating “0”), the selection circuit 585 selects the output of the image processing circuit 573. When the selection circuit 585 selects the output of the image processing circuit 573, the conversion circuit 581 is connected to the read buffer 607 of the image processing circuit 573 and can read pixel data from the read buffer 607.

図52は、本変形例に係る変換パラメータ580の一例を示す図である。本変形例に係る変換パラメータ580では、複数の変換パラメータ580のそれぞれに対して固有のパラメータ番号(識別情報)が対応付けられている。図52に示す例では、パラメータ番号が「1」〜「360」に対応付けられた変換パラメータは、画像の回転に関する変換パラメータ(580−1〜580−360)であり、これらは、画像を1°から360°まで回転するための360の変換パラメータ580である。また、パラメータ番号が「361」〜「360」に対応付けられた変換パラメータは、画像の拡大に関する変換パラメータ(580−361〜580−390)であり、これらは、画像を1.1倍から4.0倍まで拡大するための30の変換パラメータ580である。   FIG. 52 is a diagram showing an example of the conversion parameter 580 according to the present modification. In the conversion parameter 580 according to this modification, a unique parameter number (identification information) is associated with each of the plurality of conversion parameters 580. In the example shown in FIG. 52, the conversion parameters associated with the parameter numbers “1” to “360” are the conversion parameters (580-1 to 580-360) related to image rotation. 360 conversion parameters 580 for rotating from ° to 360 °. Also, the conversion parameters associated with the parameter numbers “361” to “360” are conversion parameters (580-361 to 580-390) related to image enlargement, and these images are converted from 1.1 times to 4 times. 30 conversion parameters 580 for enlarging to 0 times.

さらに、パラメータ番号が「391」〜「399」に対応付けられた変換パラメータは、画像の縮小に関する変換パラメータ(580−391〜580−399)であり、これらは、画像を0.9倍から0.1倍まで縮小するための9の変換パラメータ580である。また、パラメータ番号が「400」、「401」に対応付けられた変換パラメータは、画像の平行移動に関する変換パラメータ(580−400〜580−401)であり、これらはそれぞれ、画像を1画素右に平行移動するための変換パラメータ580、画像を2画素右に平行移動するための変換パラメータ580に対応する。   Furthermore, the conversion parameters associated with the parameter numbers “391” to “399” are conversion parameters (580-391 to 580-399) related to image reduction, and these convert the image from 0.9 times to 0. 9 conversion parameters 580 for reduction to 1 times. Also, the conversion parameters associated with the parameter numbers “400” and “401” are the conversion parameters (580-400 to 580-401) related to the parallel movement of the image, and each of these is an image one pixel to the right. This corresponds to a conversion parameter 580 for moving in parallel and a conversion parameter 580 for moving the image to the right by two pixels.

図53は、本変形例に係る特定情報590の一例を示す図である。図53に示すように、本変形例に係る特定情報590には、参照態様情報591とルックアップテーブル(LUT)592が含まれている。   FIG. 53 is a diagram showing an example of the specific information 590 according to the present modification. As shown in FIG. 53, the specific information 590 according to this modification includes reference mode information 591 and a lookup table (LUT) 592.

参照態様情報591には、参照回数591a、参照開始位置591b、及び参照間隔591cが含まれる。参照回数591aは、LUT592に記憶されたパラメータ番号を参照する回数を示している。参照開始位置591bは、LUT592において、最初に参照するパラメータ番号の位置を示している。参照間隔591cは、あるタイミングで変換パラメータ580を参照する場合に、LUT592において、前回参照した変換パラメータ580から何個離れた変換パラメータ580を参照するかを示している。   The reference mode information 591 includes a reference count 591a, a reference start position 591b, and a reference interval 591c. The reference count 591a indicates the number of times the parameter number stored in the LUT 592 is referred to. The reference start position 591b indicates the position of the parameter number to be referred to first in the LUT 592. The reference interval 591c indicates how many conversion parameters 580 are referred to from the previously referred conversion parameter 580 in the LUT 592 when the conversion parameter 580 is referred to at a certain timing.

LUT592には、複数のパラメータ番号が記述されている。参照態様情報591は、上述のように、LUT592に記述された複数のパラメータ番号をどのように参照するかを示す情報である。制御回路582は、参照態様情報591にしたがって、LUT592のパラメータ番号を1つずつ参照し、パラメータ番号を参照するたびに、参照したパラメータ番号に対応する変換パラメータ580を読み出す。読み出された変換パラメータ580は変換回路581に入力される。   A plurality of parameter numbers are described in the LUT 592. The reference mode information 591 is information indicating how to refer to a plurality of parameter numbers described in the LUT 592 as described above. The control circuit 582 refers to the parameter numbers of the LUT 592 one by one in accordance with the reference mode information 591 and reads the conversion parameter 580 corresponding to the referenced parameter number each time the parameter number is referenced. The read conversion parameter 580 is input to the conversion circuit 581.

制御回路582は、LUT592の複数のパラメータ番号を、LUT592の先頭側から末尾側にかけて(例えば、LUT592を構成する記憶領域の先頭記憶位置(先頭アドレス)から最終記憶位置(最終アドレス)にかけて)順に参照する。座標変換回路572において、対象画像データ575に対してM(≧2)個の座標変換が重ねて行われる場合、制御回路582は、まず、参照態様情報591の参照開始位置591bに基づいて、LUT592の、対応する参照開始位置のパラメータ番号を参照する。次に、制御回路582は、参照したパラメータ番号に対応する変換パラメータ580をメモリ574から読み出して変換回路581に入力する。   The control circuit 582 sequentially references a plurality of parameter numbers of the LUT 592 from the head side to the tail side of the LUT 592 (for example, from the head storage position (head address) to the last storage position (final address) of the storage area constituting the LUT 592). To do. When M (≧ 2) coordinate transformations are performed on the target image data 575 in the coordinate transformation circuit 572, the control circuit 582 first determines the LUT 592 based on the reference start position 591b of the reference mode information 591. The parameter number of the corresponding reference start position is referred to. Next, the control circuit 582 reads the conversion parameter 580 corresponding to the referenced parameter number from the memory 574 and inputs it to the conversion circuit 581.

次に、制御回路582は、参照態様情報591の参照間隔591cに基づき、LUT592において、前回参照したパラメータ番号から、参照間隔591cが示す個数だけ末尾側に離れたパラメータ番号を参照する。そして、制御回路582は、参照したパラメータ番号に対応する変換パラメータ580をメモリ574から読み出して変換回路581に入力する。   Next, based on the reference interval 591c of the reference mode information 591, the control circuit 582 refers to the parameter number separated from the last referenced parameter number by the number indicated by the reference interval 591c in the LUT 592. Then, the control circuit 582 reads the conversion parameter 580 corresponding to the referenced parameter number from the memory 574 and inputs it to the conversion circuit 581.

以後、制御回路582は、同様の動作を繰り返し、参照態様情報591の参照回数591aが示す回数(M回)だけパラメータ番号を参照し、それぞれ、参照したパラメータ番号に対応する変換パラメータ580をメモリ574から読み出して変換回路581に入力する。これにより、メモリ574に記憶されている複数の変換パラメータ580のうち、変換回路581が入力フレームバッファ571に記憶された対象画像データ575に対する座標変換で使用するM個の変換パラメータ580が、順に変換回路581に入力される。   Thereafter, the control circuit 582 repeats the same operation, refers to the parameter number for the number of times (M times) indicated by the reference count 591a of the reference mode information 591, and stores the conversion parameter 580 corresponding to the referred parameter number in the memory 574, respectively. Is input to the conversion circuit 581. As a result, among the plurality of conversion parameters 580 stored in the memory 574, M conversion parameters 580 used by the conversion circuit 581 in the coordinate conversion for the target image data 575 stored in the input frame buffer 571 are converted in order. It is input to the circuit 581.

図52、及び図53の例において、例えば、参照態様情報591の参照回数591aが「3」、参照開始位置591bが先頭アドレスを示す「0000h」、参照間隔591cが「1」を示す場合、制御回路582は、LUT592に記憶される複数のパラメータ番号のうち、「1」、「361」、及び「400」を順に参照する。これにより、変換回路581には、パラメータ番号=「1」に対応する、画像を1°回転するための回転に関する変換パラメータ580−1と、パラメータ番号=「361」に対応する、画像を1.1倍に拡大するための拡大に関する変換パラメータ580−361と、パラメータ番号=「400」に対応する、画像を右方向に1画素分だけ平行移動させるための平行移動に関する変換パラメータ580−400とが順に入力される。   52 and 53, for example, when the reference count 591a of the reference mode information 591 is “3”, the reference start position 591b is “0000h” indicating the head address, and the reference interval 591c is “1”. The circuit 582 sequentially refers to “1”, “361”, and “400” among the plurality of parameter numbers stored in the LUT 592. As a result, the conversion circuit 581 stores the conversion parameter 580-1 corresponding to the rotation for rotating the image by 1 ° corresponding to the parameter number = “1” and the image corresponding to the parameter number = “361” in the order of 1.. Conversion parameters 580 to 361 relating to enlargement for enlarging the image by one time, and conversion parameters 580 to 400 relating to parallel movement for translating the image by one pixel in the right direction corresponding to parameter number = “400”. They are entered in order.

[変形例2における画像認識アクセラレータ回路の動作]
図54は、本変形例に係る画像認識アクセラレータ回路549の動作を説明するための図である。入力フレームバッファ571に対象画像データ575が書き込まれると、制御回路582は、制御信号CNT1を第1状態に設定し、これによって、入力フレームバッファ571の対象画像データ575が、選択回路585を介して変換回路581に入力される。また、制御回路582は、このような制御信号CNT1の設定とともに、メモリ574から、最初に使用される変換パラメータ580を読み出して変換回路581に出力する。変換回路581は、入力フレームバッファ571に記憶された対象画像データ575に対し、入力された変換パラメータ580に基づいて座標変換を行い、第1変換後画像データ576−1を生成する。制御回路582は、変換回路581で第1変換後画像データ576−1が生成されると、制御信号CNT1を第2状態に設定する。これにより、画像処理回路573のリードバッファ607は、選択回路585を介して変換回路581に接続される。
[Operation of Image Recognition Accelerator Circuit in Modification 2]
FIG. 54 is a diagram for explaining the operation of the image recognition accelerator circuit 549 according to the present modification. When the target image data 575 is written into the input frame buffer 571, the control circuit 582 sets the control signal CNT1 to the first state, whereby the target image data 575 in the input frame buffer 571 is passed through the selection circuit 585. This is input to the conversion circuit 581. Further, the control circuit 582 reads the conversion parameter 580 that is used first from the memory 574 together with the setting of the control signal CNT1, and outputs the conversion parameter 580 to the conversion circuit 581. The conversion circuit 581 performs coordinate conversion on the target image data 575 stored in the input frame buffer 571 based on the input conversion parameter 580 to generate first converted image data 576-1. When the conversion circuit 581 generates the first converted image data 576-1, the control circuit 582 sets the control signal CNT1 to the second state. As a result, the read buffer 607 of the image processing circuit 573 is connected to the conversion circuit 581 via the selection circuit 585.

変換回路581は、対象画像データ575に対して、変換パラメータ580に基づいた座標変換を行うと、第1変換後画像データ576−1の画素データを、画像処理回路573のライトバッファ606に書き込む。ライトバッファ606に書き込まれた画素データはフレームメモリ609に書き込まれる。これにより、フレームメモリ609に第1変換後画像データ576−1が記憶される。   When the conversion circuit 581 performs coordinate conversion on the target image data 575 based on the conversion parameter 580, the conversion circuit 581 writes the pixel data of the first converted image data 576-1 into the write buffer 606 of the image processing circuit 573. Pixel data written to the write buffer 606 is written to the frame memory 609. As a result, the first converted image data 576-1 is stored in the frame memory 609.

画像処理回路573は、フレームメモリ609に記憶された第1変換後画像データ576−1の画素データを、リードバッファ607に書き込む。ここで、変換回路581は、リードバッファ607の第1変換後画像データ576−1の画素データを読み出し、これにより、変換回路581には、画像処理回路573から第1変換後画像データ576−1が入力される。   The image processing circuit 573 writes the pixel data of the first converted image data 576-1 stored in the frame memory 609 to the read buffer 607. Here, the conversion circuit 581 reads out the pixel data of the first converted image data 576-1 from the read buffer 607, whereby the conversion circuit 581 receives the first converted image data 576-1 from the image processing circuit 573. Is entered.

次に、変換回路581は、第1変換後画像データ576−1に対して、制御回路582によってメモリ574から読み出された、2番目に使用される変換パラメータ580に基づく座標変換を行って、第2変換後画像データ576−2を生成する。変換回路581は、第2変換後画像データ576−2の画素データを、画像処理回路573のライトバッファ606に書き込み、こうしてライトバッファ606に書き込まれた画素データは、フレームメモリ609に書き込まれる。これにより、フレームメモリ609に、第2変換後画像データ576−2が記憶される。   Next, the conversion circuit 581 performs coordinate conversion on the first converted image data 576-1 based on the conversion parameter 580 used secondly read from the memory 574 by the control circuit 582, and Second converted image data 576-2 is generated. The conversion circuit 581 writes the pixel data of the second converted image data 576-2 into the write buffer 606 of the image processing circuit 573, and thus the pixel data written into the write buffer 606 is written into the frame memory 609. As a result, the second converted image data 576-2 is stored in the frame memory 609.

画像処理回路573は、フレームメモリ609に記憶された第2変換後画像データ576−2の画素データをリードバッファ607に書き込み、変換回路581は、このリードバッファ607から第2変換後画像データ576−2の画素データを読み出す。これにより、変換回路581には、画像処理回路573から第2変換後画像データ576−2が入力される。変換回路581は、第2変換後画像データ576−2に対して、制御回路582によってメモリ574から読み出された、3番目に使用される変換パラメータ580に基づく座標変換を行って、第3変換後画像データ576−3を生成する。変換回路581は、第3変換後画像データ576−3の画素データを、画像処理回路573のライトバッファ606に書き込み、こうして書き込まれたライトバッファ606の画素データは、フレームメモリ609に書き込まれる。これにより、フレームメモリ609に、第3変換後画像データ576−3が記憶される。   The image processing circuit 573 writes the pixel data of the second converted image data 576-2 stored in the frame memory 609 to the read buffer 607, and the conversion circuit 581 receives the second converted image data 576- from the read buffer 607. 2 pixel data is read out. As a result, the second converted image data 576-2 is input to the conversion circuit 581 from the image processing circuit 573. The conversion circuit 581 performs coordinate conversion on the second converted image data 576-2 based on the third used conversion parameter 580 read from the memory 574 by the control circuit 582, and performs the third conversion. After image data 576-3 is generated. The conversion circuit 581 writes the pixel data of the third converted image data 576-3 into the write buffer 606 of the image processing circuit 573, and the pixel data of the write buffer 606 thus written is written into the frame memory 609. As a result, the third converted image data 576-3 is stored in the frame memory 609.

以後、画像認識アクセラレータ回路549は、同様の動作を繰り返して、座標変換回路572の変換回路581が、第(M−1)変換後画像データ576−(M−1)に対し、制御回路582によってメモリ574から読み出された、M番目に使用される変換パラメータ580に基づいて座標変換を行い、第M変換後画像データ576−Mを生成する。そして、この第M変換後画像データ576−Mが、処理画像データ577としてフレームメモリ609に書き込まれる。   Thereafter, the image recognition accelerator circuit 549 repeats the same operation, and the conversion circuit 581 of the coordinate conversion circuit 572 causes the control circuit 582 to process the (M−1) -th converted image data 576- (M−1). Coordinate conversion is performed based on the M-th conversion parameter 580 read from the memory 574, and M-th converted image data 576-M is generated. The M-th converted image data 576-M is written in the frame memory 609 as processed image data 577.

図52、及び図53の例において、例えば、特定情報590の参照態様情報591における参照回数591aが「3」、参照開始位置591bが先頭アドレスを示す「0000h」、参照間隔591cが「1」を示す場合には、上述のようにLUT592を参照することによって、変換回路581には、画像を1°回転するための回転に関する変換パラメータ580−1と、画像を1.1倍に拡大するための拡大に関する変換パラメータ580−361と、画像を右方向に1画素分だけ平行移動するための平行移動に関する変換パラメータ580−400とが順に入力される。したがって、この場合には、変換回路581は、1つの対象画像データ575に対して、画像を1°回転するための座標変換、画像を1.1倍に拡大するための座標変換、及び画像を右方向に1画素分だけ平行移動するための座標変換をこの順で実行する。つまり、変換回路581は、1つの対象画像データ575に係る画像を1°回転し、それによって得られた回転画像を1.1倍に拡大し、それによって得られた拡大画像を右方向に1画素分だけ平行移動することによって、1つの処理画像データ577を生成する。   52 and 53, for example, the reference count 591a in the reference mode information 591 of the specific information 590 is "3", the reference start position 591b is "0000h" indicating the head address, and the reference interval 591c is "1". In the case shown, by referring to the LUT 592 as described above, the conversion circuit 581 causes the conversion parameter 580-1 for rotation for rotating the image by 1 ° and the image for enlarging the image by 1.1 times. Conversion parameters 580 to 361 relating to enlargement and conversion parameters 580 to 400 relating to translation for translating the image by one pixel in the right direction are sequentially input. Therefore, in this case, the conversion circuit 581 converts the coordinate conversion for rotating the image by 1 °, the coordinate conversion for enlarging the image by 1.1 times, and the image for one target image data 575. Coordinate conversion is performed in this order in order to translate one pixel in the right direction. In other words, the conversion circuit 581 rotates an image related to one target image data 575 by 1 °, enlarges the rotation image obtained thereby by 1.1 times, and obtains the enlarged image obtained thereby by 1 in the right direction. One processed image data 577 is generated by moving in parallel by the amount of pixels.

画像処理回路573の出力制御部608は、処理画像データ577を出力画像として、上記と同様に、DMA転送により、SRAM243に出力する。また、出力制御部608は、記憶制御部600によるフレームメモリ609に対する制御によって、フレームメモリ609から、最終的な処理画像データ577の4画素分の画素データが読み出されると、読み出された4画素分の画素データを、DMA転送によりSRAM243に出力する。DMAC252は、処理画像データ577が、フレームメモリ609からSRAM243にDMA転送されるように制御する。   The output control unit 608 of the image processing circuit 573 outputs the processed image data 577 as an output image to the SRAM 243 by DMA transfer as described above. Further, when the storage control unit 600 controls the frame memory 609, the output control unit 608 reads out the four pixel data of the final processed image data 577 from the frame memory 609. Minute pixel data is output to the SRAM 243 by DMA transfer. The DMAC 252 controls the processed image data 577 to be DMA-transferred from the frame memory 609 to the SRAM 243.

DMAC252がバッファを備える場合、出力制御部608は、フレームメモリ609から、最終的な処理画像データ577の4画素分の画素データを読み出し、読み出された4画素分の画素データを、DMAC252のバッファに出力し、その後、ホストコントローラ241が、4画素分の画素データ、または処理画像データ577の全体を、SRAM243に書き込む。   When the DMAC 252 includes a buffer, the output control unit 608 reads out the pixel data for four pixels of the final processed image data 577 from the frame memory 609, and uses the read pixel data for the four pixels as a buffer of the DMAC 252. After that, the host controller 241 writes the pixel data for four pixels or the entire processed image data 577 into the SRAM 243.

変換回路581は、画素データを生成するたびに、生成した画素データをライトバッファ606に書き込み、書込要求出力部602と第2読出要求出力部603は独立して動作する。したがって、処理画像データ577が生成された後に、この全体のデータがSRAM243やDMAC252に出力されるのではなく、変換回路581での、処理画像データ577を生成するための画素データ単位の座標変換の処理と、出力制御部608での処理画像データ577の画素データの出力処理とは並行して実行される。   Each time the conversion circuit 581 generates pixel data, the conversion circuit 581 writes the generated pixel data to the write buffer 606, and the write request output unit 602 and the second read request output unit 603 operate independently. Therefore, after the processed image data 577 is generated, the entire data is not output to the SRAM 243 and the DMAC 252, but the conversion circuit 581 performs coordinate conversion in units of pixel data for generating the processed image data 577. The process and the output process of the pixel data of the processed image data 577 in the output control unit 608 are executed in parallel.

このように、本変形例に係る座標変換回路572は、複数の変換パラメータ580に基づいて、ホストコントローラ241とデータのやり取りを行わずに1つの対象画像データ575に対して複数の座標変換を重ねて行う。したがって、上記と同様に、座標変換回路572が座標変換を行うたびに、その座標変換で使用する変換パラメータ580をホストコントローラ241から受け取る場合と比較して、複数の座標変換の処理時間を短縮することができる。   As described above, the coordinate conversion circuit 572 according to the present modification superimposes a plurality of coordinate conversions on one target image data 575 based on the plurality of conversion parameters 580 without exchanging data with the host controller 241. Do it. Therefore, in the same manner as described above, each time the coordinate conversion circuit 572 performs coordinate conversion, the processing time of a plurality of coordinate conversions is shortened as compared with the case where the conversion parameter 580 used in the coordinate conversion is received from the host controller 241. be able to.

また、上記と同様に、記憶制御部600では、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合する場合には、当該少なくとも2つの要求が、調停部604によって調停される。そのため、第1読出要求出力部601、書込要求出力部602、及び第2読出要求出力部603は、互いに独立して動作することができ、第1読出要求出力部601、書込要求出力部602、及び第2読出要求出力部603のうちのある出力部での処理がボトルネックになることを抑制することができる。その結果、画像認識アクセラレータ回路549の全体における処理速度を向上させることができる。   Similarly to the above, in the storage control unit 600, when at least two requests of the first read request, the write request, and the second read request conflict, the arbitration unit 604 sends the at least two requests. Mediated. Therefore, the first read request output unit 601, the write request output unit 602, and the second read request output unit 603 can operate independently of each other, and the first read request output unit 601 and the write request output unit It is possible to prevent the processing at a certain output unit from among 602 and the second read request output unit 603 from becoming a bottleneck. As a result, the processing speed of the entire image recognition accelerator circuit 549 can be improved.

また、本変形例では、特定情報590は、変換パラメータ580に対応するパラメータ番号が記述されたLUT592と、LUT592に記述された複数のパラメータ番号をどのように参照するかを示す参照態様情報591とで構成されている。このため、変換回路581で使用される変換パラメータ580が、パラメータ番号によって指定される。よって、メモリ574において、複数の変換パラメータ580がどのような位置や順序で記憶されていたとしても、変換回路581で使用される変換パラメータ580を指定することができる。   In this modification, the specific information 590 includes an LUT 592 in which a parameter number corresponding to the conversion parameter 580 is described, and reference mode information 591 indicating how to refer to a plurality of parameter numbers described in the LUT 592. It consists of For this reason, the conversion parameter 580 used in the conversion circuit 581 is specified by the parameter number. Therefore, the conversion parameter 580 used in the conversion circuit 581 can be specified regardless of the position and order in which the plurality of conversion parameters 580 are stored in the memory 574.

例えば、上述の図24のように、複数の回転に関する変換パラメータ280がメモリ574に記憶されている場合を考える。ここで、上述の図25に示すように、特定情報290が使用パラメータ数291、使用開始位置292、及び使用間隔293で構成されている場合には、特定情報290によって、画像を1°回転するための変換パラメータ280−1、画像を2°回転するための変換パラメータ280−2、画像を4°回転するための変換パラメータ280−4、及び画像を7°回転するための変換パラメータ280−7(不図示)だけを指定することができない。   For example, consider the case where conversion parameters 280 relating to a plurality of rotations are stored in the memory 574 as shown in FIG. Here, as shown in FIG. 25 described above, when the specific information 290 includes the number of used parameters 291, the use start position 292, and the use interval 293, the image is rotated by 1 ° based on the specific information 290. Conversion parameter 280-1, a rotation parameter 280-2 for rotating the image by 2 °, a conversion parameter 280-4 for rotating the image by 4 °, and a conversion parameter 280-7 for rotating the image by 7 ° Only (not shown) cannot be specified.

これに対して、本変形例では、LUT592に、画像を1°回転するための変換パラメータ580−1に対応するパラメータ番号、画像を2°回転するための変換パラメータ580−2に対応するパラメータ番号、画像を4°回転するための変換パラメータ580−4に対応するパラメータ番号、及び画像を7°回転するための変換パラメータ580−7に対応するパラメータ番号を個々に記述することによって、これらの変換パラメータ580を指定することが可能となる。   On the other hand, in this modification, the LUT 592 has a parameter number corresponding to the conversion parameter 580-1 for rotating the image by 1 °, and a parameter number corresponding to the conversion parameter 580-2 for rotating the image by 2 °. These conversions are described by individually describing the parameter number corresponding to the conversion parameter 580-4 for rotating the image by 4 ° and the parameter number corresponding to the conversion parameter 580-7 for rotating the image by 7 °. The parameter 580 can be specified.

なお、特定情報590は、参照態様情報591、及びLUT592で構成されているが、LUT592のみで構成してもよい。この場合、制御回路582は、LUT592に記憶された複数のパラメータ番号を、例えば、LUT592の先頭から順に参照する。このような場合であっても、変換回路581で使用される変換パラメータ580がパラメータ番号で指定されることから、メモリ574において、複数の変換パラメータ580がどのように記憶されていても、当該複数の変換パラメータ580から、変換回路581で使用される変換パラメータ580を自由に指定することができる。また、本変形例に係る画像認識アクセラレータ回路549において、上述の図25に示す特定情報290が使用されてもよい。   Note that the specific information 590 includes the reference mode information 591 and the LUT 592, but may include only the LUT 592. In this case, the control circuit 582 refers to the plurality of parameter numbers stored in the LUT 592 in order from the top of the LUT 592, for example. Even in such a case, since the conversion parameter 580 used in the conversion circuit 581 is specified by the parameter number, the plurality of conversion parameters 580 are stored in the memory 574 in any way. The conversion parameter 580 used in the conversion circuit 581 can be freely specified from the conversion parameter 580. Further, in the image recognition accelerator circuit 549 according to this modification, the specific information 290 shown in FIG. 25 described above may be used.

図51に示すように、画像処理回路573は、加算処理部を備えておらず、図50に示す座標変換回路572との間で変換後画像データ576をやりとりすることによって、最終的な処理画像データ577を生成する(図54参照)。本明細書では、このような画像処理回路573における処理(データのハンドリング)も、画像処理の一形態であるとして捉えることとする。   As shown in FIG. 51, the image processing circuit 573 does not include an addition processing unit, and exchanges post-conversion image data 576 with the coordinate conversion circuit 572 shown in FIG. Data 577 is generated (see FIG. 54). In this specification, such processing in the image processing circuit 573 (data handling) is also regarded as a form of image processing.

[変形例3]
本変形例に係る画像認識アクセラレータ回路749は、動作モードとして、それぞれの対象画像データ775に対して個別の変換処理を行い合成画像を生成する個別変換処理モードと、1つの対象画像データ775に対して複数回の変換処理を行う複数回変換処理モードを備えている。図55、及び図56は、本変形例に係る画像認識アクセラレータ回路749、及び画像処理回路773の構成をそれぞれ示す図である。
[Modification 3]
The image recognition accelerator circuit 749 according to the present modification example has an individual conversion processing mode in which individual conversion processing is performed on each target image data 775 and a composite image is generated as an operation mode, and one target image data 775. A plurality of conversion processing modes for performing conversion processing a plurality of times. FIGS. 55 and 56 are diagrams showing configurations of an image recognition accelerator circuit 749 and an image processing circuit 773 according to this modification, respectively.

図55は、本変形例に係る画像認識アクセラレータ回路749の構成を示す図である。画像認識アクセラレータ回路749は、図50に示す画像認識アクセラレータ回路549に対応するものであり、少なくとも、座標変換回路572が座標変換回路772に変更され、画像処理回路573は、画像処理回路773に変更されている。入力フレームバッファ771は、図50の入力フレームバッファ771に対応し、メモリ774は、図50のメモリ774に対応する。図55の座標変換回路772において、選択回路785は図50の座標変換回路572の選択回路585に対応し、変換回路781は座標変換回路572の変換回路581に対応し、制御回路782は座標変換回路572の制御回路582に対応する。   FIG. 55 is a diagram showing a configuration of an image recognition accelerator circuit 749 according to this modification. The image recognition accelerator circuit 749 corresponds to the image recognition accelerator circuit 549 shown in FIG. 50. At least the coordinate conversion circuit 572 is changed to the coordinate conversion circuit 772, and the image processing circuit 573 is changed to the image processing circuit 773. Has been. The input frame buffer 771 corresponds to the input frame buffer 771 in FIG. 50, and the memory 774 corresponds to the memory 774 in FIG. 55, the selection circuit 785 corresponds to the selection circuit 585 of the coordinate conversion circuit 572 of FIG. 50, the conversion circuit 781 corresponds to the conversion circuit 581 of the coordinate conversion circuit 572, and the control circuit 782 is the coordinate conversion circuit. This corresponds to the control circuit 582 of the circuit 572.

図55に示すように、本変形例に係る座標変換回路772は、上述の図50に示す座標変換回路572と類似の構成を有しているが、本変形例では、制御回路782のレジスタ783には、画像認識アクセラレータ回路749が動作すべき動作モードを示す動作モード情報795が記憶され、この動作モード情報795に基づいて、画像処理回路773に制御信号CNT2が提供される。   As shown in FIG. 55, the coordinate conversion circuit 772 according to this modification has a similar configuration to the coordinate conversion circuit 572 shown in FIG. 50 described above, but in this modification, the register 783 of the control circuit 782 is used. The operation mode information 795 indicating the operation mode in which the image recognition accelerator circuit 749 should operate is stored, and the control signal CNT2 is provided to the image processing circuit 773 based on the operation mode information 795.

動作モード情報795は、例えば、ホストコントローラ241によってレジスタ783に設定される。ホストコントローラ241は、特定情報790をレジスタ783に設定する際に、動作モード情報795もレジスタ783に設定する。   For example, the operation mode information 795 is set in the register 783 by the host controller 241. When the host controller 241 sets the specific information 790 in the register 783, the host controller 241 also sets the operation mode information 795 in the register 783.

制御回路782は、動作モード情報795に基づいて制御信号CNT1を制御する。また、制御回路782は、画像処理回路773が有する後述の選択回路806を制御するための制御信号CNT2を出力する。こうした制御信号CNT2は、動作モード情報795に基づいて決定される。   The control circuit 782 controls the control signal CNT1 based on the operation mode information 795. In addition, the control circuit 782 outputs a control signal CNT2 for controlling a selection circuit 806, which will be described later, included in the image processing circuit 773. Such a control signal CNT2 is determined based on the operation mode information 795.

図56に示すように、本変形例に係る画像処理回路773は、上述の図30に示した画像処理回路273と比較して、選択回路806をさらに備える。また、本変形例に係る画像処理回路773は、画像処理回路273と比較して、第1読出要求出力部301に対応する第1読出要求出力部801、書込要求出力部302に対応する書込要求出力部802、及び第2読出要求出力部303に対応する第2読出要求出力部803を記憶制御部800に備えている。また、図56の画像処理回路773は、画像処理回路273の調停部304に対応する調停部804を備え、さらに、加算処理部305に対応する加算処理部805、ライトバッファ306に対応するライトバッファ706、リードバッファ307に対応するリードバッファ707、フレームメモリ309に対応するフレームメモリ709、出力制御部308に対応する出力制御部708を備える。加算処理部805には、上述の座標変換回路772から、変換後画像データ776が出力される。   As shown in FIG. 56, the image processing circuit 773 according to the present modification further includes a selection circuit 806 as compared with the image processing circuit 273 shown in FIG. 30 described above. In addition, the image processing circuit 773 according to the present modification has a document corresponding to the first read request output unit 801 and the write request output unit 302 corresponding to the first read request output unit 301, as compared with the image processing circuit 273. The storage control unit 800 includes a read request output unit 802 and a second read request output unit 803 corresponding to the second read request output unit 303. 56 includes an arbitration unit 804 corresponding to the arbitration unit 304 of the image processing circuit 273, an addition processing unit 805 corresponding to the addition processing unit 305, and a write buffer corresponding to the write buffer 306. 706, a read buffer 707 corresponding to the read buffer 307, a frame memory 709 corresponding to the frame memory 309, and an output control unit 708 corresponding to the output control unit 308. The converted image data 776 is output from the coordinate conversion circuit 772 to the addition processing unit 805.

ここで、選択回路806は、画像認識アクセラレータ回路749の座標変換回路772の制御回路782から制御信号CNT2を受信し、この制御信号CNT2に基づいて、座標変換回路772の変換回路781の出力、及び座標変換回路772の変換回路781の出力が加算処理部805に入力された結果得られる出力の一方を選択し、選択した出力をライトバッファ706に出力する。本変形例では、制御信号CNT2が第1状態(例えば、「1」を示す状態)のとき、選択回路806は、加算処理部805の出力を選択し、選択した出力(画素データ)をライトバッファ706に出力する。一方、制御信号CNT2が第2状態(例えば、「0」を示す状態)のとき、選択回路806は、変換回路781の出力を選択し、選択した出力(画素データ)をライトバッファ706に出力する。   Here, the selection circuit 806 receives the control signal CNT2 from the control circuit 782 of the coordinate conversion circuit 772 of the image recognition accelerator circuit 749, and based on this control signal CNT2, outputs the conversion circuit 781 of the coordinate conversion circuit 772 and One of the outputs obtained as a result of the output of the conversion circuit 781 of the coordinate conversion circuit 772 being input to the addition processing unit 805 is selected, and the selected output is output to the write buffer 706. In the present modification, when the control signal CNT2 is in the first state (for example, a state indicating “1”), the selection circuit 806 selects the output of the addition processing unit 805 and writes the selected output (pixel data) to the write buffer. Output to 706. On the other hand, when the control signal CNT2 is in the second state (for example, a state indicating “0”), the selection circuit 806 selects the output of the conversion circuit 781 and outputs the selected output (pixel data) to the write buffer 706. .

[変形例3における画像認識アクセラレータ回路の動作]
制御回路782は、動作モード情報795が個別変換処理モードを示す場合には、制御信号CNT1、及び制御信号CNT2をともに第1状態に設定する。これにより、本変形例に係る画像認識アクセラレータ回路749の動作モードは個別変換処理モードとなり、その構成は、上述の図23に示す画像認識アクセラレータ回路249、及び図30に示す画像処理回路273と同様の構成となり、個別変換処理モードでの画像認識アクセラレータ回路749の動作も、これらの回路と同様の動作となる。
[Operation of Image Recognition Accelerator Circuit in Modification 3]
When the operation mode information 795 indicates the individual conversion processing mode, the control circuit 782 sets both the control signal CNT1 and the control signal CNT2 to the first state. As a result, the operation mode of the image recognition accelerator circuit 749 according to the present modification becomes the individual conversion processing mode, and the configuration thereof is the same as that of the image recognition accelerator circuit 249 shown in FIG. 23 and the image processing circuit 273 shown in FIG. The operation of the image recognition accelerator circuit 749 in the individual conversion processing mode is the same as that of these circuits.

個別変換処理モードでは、例えば、1つの対象画像データ775について、変換パラメータ780に基づき、1度単位で回転させて生成した360個(360度分)の変換後画像データ776をすべて積算して、1つの処理画像データ777を生成する(図29参照)。   In the individual conversion processing mode, for example, 360 pieces of converted image data 776 (for 360 degrees) generated by rotating by one degree based on the conversion parameter 780 are integrated for one target image data 775, and One piece of processed image data 777 is generated (see FIG. 29).

一方、制御回路782は、動作モード情報795が複数回変換処理モードを示す場合には、制御信号CNT2を第2状態に設定する。これにより、本変形例に係る画像認識アクセラレータ回路749の動作モードは複数回変換処理モードとなり、その構成は、上述の図50に示す画像認識アクセラレータ回路549、及び図51に示す画像処理回路573と同様の構成となり、複数回変換処理モードでの画像認識アクセラレータ回路749の動作も、これらの回路と同様の動作となる。   On the other hand, the control circuit 782 sets the control signal CNT2 to the second state when the operation mode information 795 indicates the multiple conversion processing mode. As a result, the operation mode of the image recognition accelerator circuit 749 according to the present modification becomes the multiple conversion processing mode, and the configuration thereof is the image recognition accelerator circuit 549 shown in FIG. 50 and the image processing circuit 573 shown in FIG. The configuration is the same, and the operation of the image recognition accelerator circuit 749 in the multiple conversion processing mode is the same operation as these circuits.

複数回変換処理モードでは、例えば、1つの対象画像データ775について、変換パラメータ780に基づいた座標変換を行い、その後、生成された変換後画像データ776について順次、変換パラメータ780に基づいた座標変換を行い、1つの処理画像データ777を生成する(図54参照)。   In the multiple conversion processing mode, for example, coordinate conversion based on the conversion parameter 780 is performed on one target image data 775, and then coordinate conversion based on the conversion parameter 780 is sequentially performed on the generated converted image data 776. Then, one processed image data 777 is generated (see FIG. 54).

本変形例に係る画像認識アクセラレータ回路749を備えるカメラユニット209が起動した後、ホストコントローラ241が、画像認識アクセラレータ回路749に対して、q個目(qは変数で、q≧1)の対象画像データ775に関する設定を行う場合(上述した図33のステップS1、ステップS2等における設定)、ホストコントローラ241は、q個目の対象画像データ775に対する処理で使用される特定情報790と、q個目の対象画像データ775に対する処理に関する画像認識アクセラレータ回路749の動作モードを示す動作モード情報795を、画像認識アクセラレータ回路749の制御回路782が有するレジスタ783に設定する。   After the camera unit 209 including the image recognition accelerator circuit 749 according to this modification is activated, the host controller 241 makes the qth (q is a variable and q ≧ 1) target image with respect to the image recognition accelerator circuit 749. When setting the data 775 (settings in step S1, step S2, etc. in FIG. 33 described above), the host controller 241 uses the specific information 790 used in the process for the q-th target image data 775 and the q-th data. The operation mode information 795 indicating the operation mode of the image recognition accelerator circuit 749 related to the processing for the target image data 775 is set in the register 783 included in the control circuit 782 of the image recognition accelerator circuit 749.

画像認識アクセラレータ回路749では、レジスタ783に特定情報790、及び動作モード情報795が設定されると、q個目の対象画像データ775が、SRAM243からDMA転送によって、入力フレームバッファ771に書き込まれる。また、座標変換回路772では、制御回路782が、制御信号CNT1、及び制御信号CNT2を制御して、画像認識アクセラレータ回路749の動作モードを、レジスタ783の動作モード情報795が示す動作モードに設定する。そして、画像認識アクセラレータ回路749は、入力フレームバッファ771に記憶されたq個目の対象画像データ775に対し、設定された動作モードに応じた処理を行う。   In the image recognition accelerator circuit 749, when the specific information 790 and the operation mode information 795 are set in the register 783, the q-th target image data 775 is written from the SRAM 243 to the input frame buffer 771 by DMA transfer. In the coordinate conversion circuit 772, the control circuit 782 controls the control signal CNT1 and the control signal CNT2 to set the operation mode of the image recognition accelerator circuit 749 to the operation mode indicated by the operation mode information 795 of the register 783. . Then, the image recognition accelerator circuit 749 performs processing according to the set operation mode on the q-th target image data 775 stored in the input frame buffer 771.

ホストコントローラ241が、画像認識アクセラレータ回路749に対して、(q+1)個目の対象画像データ775に関する設定を行う場合は、同様にして、(q+1)個目の対象画像データ775に対する処理で使用される特定情報790と、(q+1)個目の対象画像データ775に対する処理に関する画像認識アクセラレータ回路749の動作モードを示す動作モード情報795を、画像認識アクセラレータ回路749の制御回路782が有するレジスタ783に設定する。   When the host controller 241 sets the (q + 1) -th target image data 775 for the image recognition accelerator circuit 749, it is used in the process for the (q + 1) -th target image data 775 in the same manner. Specific information 790 and operation mode information 795 indicating the operation mode of the image recognition accelerator circuit 749 related to the processing for the (q + 1) th target image data 775 are set in the register 783 included in the control circuit 782 of the image recognition accelerator circuit 749. To do.

このように、本変形例に係る画像認識アクセラレータ回路749は、動作モードとして、個別変換処理モードと複数回変換処理モードとを備えていることから、一つのカメラユニット209において、2つの処理、すなわち、個別変換処理と複数回変換処理の両方を実行させることができる。   As described above, the image recognition accelerator circuit 749 according to the present modification includes the individual conversion processing mode and the multiple conversion processing mode as the operation modes, and therefore, in one camera unit 209, two processes, that is, Both the individual conversion process and the multiple conversion process can be executed.

また、同じ構成を有する2つのカメラユニット209や遊技機において、一方では個別変換処理だけを実行させ、他方では複数回変換処理だけを実行させるように構成することもできる。   In addition, two camera units 209 and gaming machines having the same configuration may be configured such that only individual conversion processing is executed on the one hand and only multiple conversion processing is executed on the other hand.

[変形例4]
本変形例に係る画像認識アクセラレータ回路949(不図示)の構成は、図23に示す画像認識アクセラレータ回路249に対応するものであり、少なくとも、画像処理回路273が画像処理回路973に変更されている。その他、画像認識アクセラレータ回路949は、図23に示す画像認識アクセラレータ回路249の入力フレームバッファ271に対応する入力フレームバッファ971、座標変換回路272に対応する座標変換回路972、及びメモリ274に対応するメモリ974を備えている。
[Modification 4]
The configuration of the image recognition accelerator circuit 949 (not shown) according to this modification corresponds to the image recognition accelerator circuit 249 shown in FIG. 23, and at least the image processing circuit 273 is changed to the image processing circuit 973. . In addition, the image recognition accelerator circuit 949 includes an input frame buffer 971 corresponding to the input frame buffer 271 of the image recognition accelerator circuit 249 shown in FIG. 23, a coordinate conversion circuit 972 corresponding to the coordinate conversion circuit 272, and a memory corresponding to the memory 274. 974.

図57は、本変形例に係る画像認識アクセラレータ回路949の画像処理回路973の構成を示す図である。本変形例に係る画像処理回路973は、上述の図30に示す画像処理回路273と比較して、第1読出要求出力部301に対応する第1読出要求出力部1001、及び書込要求出力部302に対応する書込要求出力部1002を記憶制御部1000に備えているが、第2読出要求出力部を備えていない。また、図57の画像処理回路973は、画像処理回路273の調停部304に対応する調停部1004を備え、この調停部1004は、第1読出要求出力部1001から出力される第1読出要求と、書込要求出力部1002から出力される書込要求を調停して、第1読出要求、及び書込要求のいずれか一方を選択し、選択した要求に応じた処理を行う。   FIG. 57 is a diagram showing a configuration of the image processing circuit 973 of the image recognition accelerator circuit 949 according to this modification. Compared with the image processing circuit 273 shown in FIG. 30 described above, the image processing circuit 973 according to the present modification includes a first read request output unit 1001 corresponding to the first read request output unit 301, and a write request output unit. The storage control unit 1000 includes the write request output unit 1002 corresponding to 302, but does not include the second read request output unit. The image processing circuit 973 in FIG. 57 includes an arbitration unit 1004 corresponding to the arbitration unit 304 of the image processing circuit 273, and the arbitration unit 1004 receives the first read request output from the first read request output unit 1001. The write request output from the write request output unit 1002 is arbitrated, and either the first read request or the write request is selected, and processing corresponding to the selected request is performed.

さらに、図57の画像処理回路973は、図30に示す画像処理回路273と比較して、加算処理部305に対応する加算処理部1005、ライトバッファ306に対応するライトバッファ1006、リードバッファ307に対応するリードバッファ1007、フレームメモリ309に対応するフレームメモリ909を備える。加算処理部1005には、上述の座標変換回路972から、変換後画像データ976が出力される。   Further, the image processing circuit 973 in FIG. 57 includes an addition processing unit 1005 corresponding to the addition processing unit 305, a write buffer 1006 corresponding to the write buffer 306, and a read buffer 307, as compared with the image processing circuit 273 shown in FIG. A corresponding read buffer 1007 and a frame memory 909 corresponding to the frame memory 309 are provided. The addition processing unit 1005 outputs post-conversion image data 976 from the coordinate conversion circuit 972 described above.

また、本変形例に係る画像処理回路973は出力制御部1008を備えるが、この出力制御部1008は、図30に示す画像処理回路273の出力制御部308とは異なり、フレームメモリ909から読み出された処理画像データ977の画素データを出力するのではなく、ライトバッファ1006に記憶された処理画像データ977の画素データを出力する。ライトバッファ1006に、出力対象の画像データである処理画像データ977の4画素分の画素データが記憶されると、出力制御部1008は、ライトバッファ1006から4画素分の画素データを読み出し、DMA転送によってSRAM243に出力する。DMAC252は、処理画像データ977が、ライトバッファ1006からSRAM243にDMA転送されるように制御する。   In addition, the image processing circuit 973 according to the present modification includes an output control unit 1008. The output control unit 1008 is read from the frame memory 909, unlike the output control unit 308 of the image processing circuit 273 shown in FIG. Instead of outputting the pixel data of the processed image data 977, the pixel data of the processed image data 977 stored in the write buffer 1006 is output. When the pixel data for four pixels of the processed image data 977, which is the image data to be output, is stored in the write buffer 1006, the output control unit 1008 reads the pixel data for four pixels from the write buffer 1006 and performs DMA transfer. Is output to the SRAM 243. The DMAC 252 controls the processed image data 977 to be DMA transferred from the write buffer 1006 to the SRAM 243.

また、DMAC252がバッファを備える場合、出力制御部1008は、ライトバッファ1006から、処理画像データ977の4画素分の画素データを読み出し、読み出された4画素分の画素データを、DMAC252のバッファに出力し、その後、ホストコントローラ241が、4画素分の画素データ、または処理画像データ577の全体を、SRAM243に書き込む。   When the DMAC 252 includes a buffer, the output control unit 1008 reads the pixel data for four pixels of the processed image data 977 from the write buffer 1006, and the read pixel data for four pixels is stored in the buffer of the DMAC 252. After that, the host controller 241 writes the pixel data for four pixels or the entire processed image data 577 into the SRAM 243.

本変形例では、書込要求出力部1002は、ライトバッファ1006に出力対象の処理画像データ977の画素データが記憶されているときには、ライトバッファ1006が一杯なったとしても例外的に書込要求を出力しない。   In this modification, the write request output unit 1002 exceptionally issues a write request even when the write buffer 1006 is full when the pixel data of the processed image data 977 to be output is stored in the write buffer 1006. Do not output.

このように、本変形例に係る画像処理回路973では、第1読出要求、及び書込要求が競合する場合には、その2つの要求が調停されるため、第1読出要求出力部1001、及び書込要求出力部1002は、互いに独立して動作することができる。よって、第1読出要求出力部1001、及び書込要求出力部1002のうちの一方の出力部での処理がボトルネックになることを抑制することができる。その結果、画像認識アクセラレータ回路949の全体の処理速度を向上させることができる。   In this way, in the image processing circuit 973 according to the present modification, when the first read request and the write request conflict, the two requests are arbitrated, and therefore the first read request output unit 1001 and The write request output units 1002 can operate independently of each other. Therefore, it is possible to suppress the processing at one of the first read request output unit 1001 and the write request output unit 1002 from becoming a bottleneck. As a result, the overall processing speed of the image recognition accelerator circuit 949 can be improved.

さらに、出力制御部1008は、フレームメモリ909に書き込まれていない、処理画像データ977の画素データを、DMA転送により、SRAM243に出力する。したがって、出力制御部1008が、フレームメモリ909から読み出された処理画像データ977の画素データを出力する場合と比較して、DMAC252は、加算処理部1005から出力された出力対象データ(処理画像データ977)をすぐに受け取ることができる。よって、この出力対象データが生成されてから、それがSRAM243に書き込まれるまでの時間を短縮することができる。   Further, the output control unit 1008 outputs pixel data of the processed image data 977 that has not been written in the frame memory 909 to the SRAM 243 by DMA transfer. Therefore, compared to the case where the output control unit 1008 outputs the pixel data of the processed image data 977 read from the frame memory 909, the DMAC 252 outputs the output target data (processed image data) output from the addition processing unit 1005. 977) can be received immediately. Therefore, it is possible to reduce the time from when this output target data is generated until it is written to the SRAM 243.

[その他の変形例]
上記の例において、座標変換回路272等は、1つ(1フレーム分)の対象画像データを用いて複数の座標変換を行っていたが、1枚の対象画像110に対して1の座標変換だけを行ってもよい。また、座標変換回路272等は、1つの対象画像データに対して1の座標変換を繰り返し重ねて行ってもよい。例えば、上記の変形例2において、座標変換回路472は、画像を2°回転するための変換パラメータ480に基づいて、1つの対象画像データ475に対して座標変換を行い、その後、当該座標変換(すなわち、回転角度が2°の座標変換)を89回、重ねて行うことにより、対象画像データ475を180°回転させた画像が変換後画像データ476として得られる。
[Other variations]
In the above example, the coordinate conversion circuit 272 and the like have performed a plurality of coordinate conversions using one (one frame) target image data, but only one coordinate conversion is performed on one target image 110. May be performed. Further, the coordinate conversion circuit 272 or the like may repeatedly perform one coordinate conversion on one target image data. For example, in Modification 2 described above, the coordinate conversion circuit 472 performs coordinate conversion on one target image data 475 based on the conversion parameter 480 for rotating the image by 2 °, and then performs the coordinate conversion ( That is, an image obtained by rotating the target image data 475 by 180 ° is obtained as the converted image data 476 by performing 89 times of coordinate conversion with a rotation angle of 2 °.

また、座標変換回路272等の全部、あるいは一部の機能がプロセッサ(CPUあるいはDSPなど)によって実現されてもよい。また、画像処理回路273等の全部、あるいは一部の機能が、プロセッサによって実現されてもよい。   Further, all or some of the functions of the coordinate conversion circuit 272 and the like may be realized by a processor (CPU or DSP). Further, all or part of the functions of the image processing circuit 273 and the like may be realized by a processor.

また、画像認識アクセラレータ回路249等には、画像処理回路273等が設けられていなくてもよい。この場合には、座標変換回路272等から出力されるデータが、DMA転送により、SRAM243に書き込まれる。また、画像処理回路273は、画像データ以外のデータを処理してもよい。また、画像処理回路273等においては、加算処理部の代わりに、加算処理以外の処理を行う処理部が設けられてもよい。   Further, the image recognition accelerator circuit 249 or the like may not include the image processing circuit 273 or the like. In this case, data output from the coordinate conversion circuit 272 or the like is written into the SRAM 243 by DMA transfer. Further, the image processing circuit 273 may process data other than image data. In the image processing circuit 273 and the like, a processing unit that performs processing other than the addition processing may be provided instead of the addition processing unit.

以上のように、カメラユニット209の画像認識アクセラレータ回路249、及びその変形例について詳細に説明したが、上記の説明は例示に過ぎず、本願発明がこのような例示の構成に限定されるものではない。また、上述した各種変形例は、相互に矛盾しない限り、互いに組み合わせて適用可能である。   As described above, the image recognition accelerator circuit 249 of the camera unit 209 and the modification thereof have been described in detail. However, the above description is merely an example, and the present invention is not limited to such an exemplary configuration. Absent. Further, the various modifications described above can be applied in combination with each other as long as they do not contradict each other.

また、上記実施形態及び変形例では、遊技機としてパチスロを例に挙げて説明したが、本発明はこれに限定されず、「パチンコ」と呼ばれる遊技機にも本発明は適用可能であり、同様の効果が得られる。   Further, in the above-described embodiment and modifications, a pachislot machine has been described as an example of a gaming machine. However, the present invention is not limited to this, and the present invention can also be applied to a gaming machine called “pachinko”. The effect is obtained.

以上、本発明の一実施形態に係る遊技機、及びその変形例について説明した。上述した遊技機は、基本的に、以下の特徴及び作用効果を有することを付記として開示する。   Heretofore, the gaming machine according to one embodiment of the present invention and the modifications thereof have been described. It is disclosed as an additional note that the gaming machine described above basically has the following characteristics and operational effects.

[付記1−1]
本発明の実施態様1−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)と、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記直接転送によって前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理(例えば、図形の回転処理)を行い、前記画像処理後の画像データ(例えば、処理画像データ277、特徴画像362C)を前記直接転送によって前記第1記憶手段に記憶する。
[Appendix 1-1]
In Embodiment 1-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
Direct transfer control means (eg, DMAC 252) for controlling direct transfer of data;
First storage means for storing data (for example, SRAM 243);
The image data obtained via the imaging means is subjected to a predetermined format conversion, and the image data after the format conversion (for example, target image data 275, captured image 362B) is transferred to the first storage means by the direct transfer. Conversion means for storing (for example, conversion unit 363, ISP circuit 245, etc.);
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 249, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
Image data relating to the image data after the format conversion is acquired from the first storage means, image processing including coordinate conversion is performed on the acquired image data (for example, rotation processing of a figure), and the image processing The subsequent image data (for example, processed image data 277, feature image 362C) is stored in the first storage means by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, since the writing and reading of image data with respect to the storage means (SRAM, etc.) of the game medium determination means are realized by the direct transfer control means for controlling the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

[付記1−2]
本発明の実施態様1−2は、実施態様1−1において、以下のような構成を有する。
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)を備え、
前記第2記憶手段から取得された前記変換パラメータに基づいて前記座標変換を行うよう構成される。
[Appendix 1-2]
Embodiment 1-2 of the present invention has the following configuration in embodiment 1-1.
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (for example, memory 274) for storing the conversion parameters (for example, conversion parameters 280);
The coordinate conversion is performed based on the conversion parameter acquired from the second storage unit.

本発明のこのような構成によって、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。また、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, it is possible to appropriately change the content of the coordinate conversion process by changing the conversion parameter. In addition, when performing image processing including coordinate conversion in the feature image generation means, it is possible to obtain conversion parameters by accessing the memory in the circuit, avoiding access via the bus, securing the bus bandwidth, Processing efficiency can be further improved.

[付記1−3]
本発明の実施態様1−3は、実施態様1−2において、以下のような構成を有する。
前記特徴画像生成手段は、
特定情報(例えば、特定情報290)を記憶する第3記憶手段(例えば、レジスタ283)を備え、
前記第3記憶手段から取得された前記特定情報に基づいて前記座標変換に使用する変換パラメータを特定するよう構成される。
[Appendix 1-3]
Embodiment 1-3 of the present invention has the following configuration in Embodiment 1-2.
The feature image generation means includes
Third storage means (for example, register 283) for storing specific information (for example, specific information 290) is provided,
The conversion parameter used for the coordinate conversion is specified based on the specifying information acquired from the third storage unit.

本発明のこのような構成によって、特定情報を変更することで、座標変換に使用する変換パラメータを適宜変更することができ、結果的に、座標変換の処理内容を変更することができる。   With such a configuration of the present invention, by changing the specific information, the conversion parameter used for coordinate conversion can be changed as appropriate, and as a result, the processing content of coordinate conversion can be changed.

[付記2−1]
本発明の実施態様2−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ775、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路749等)と、を備え、
前記特徴画像生成手段は、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した1つの画像データに対して座標変換を含む画像処理(例えば、図形の回転処理)を行い、前記画像処理後の画像データ(例えば、処理画像データ777、特徴画像362C)を前記第1記憶手段に記憶し、
前記画像処理に関して少なくとも2つの変換処理モードを含み、
第1の変換処理モードは、前記1つの画像データに対してそれぞれ異なる座標変換を個別に行うことにより変換後画像データを複数生成し、当該複数の変換後画像データを合成して1つの処理画像データを得る画像処理を行う変換処理モードであり、
第2の変換処理モードは、前記1つの画像データに対して複数の座標変換を順次連続的に重ねて行い、1つの処理画像データを得る画像処理を行う変換処理モードであり、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記特徴画像生成手段における前記画像処理後の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われる。
[Appendix 2-1]
Embodiment 2-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
Conversion means for performing a predetermined format conversion on the image data obtained via the image pickup means, and storing the image data after the format conversion (for example, target image data 775 and picked-up image 362B) in the first storage means. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 749, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
Image data related to the image data after the format conversion is acquired from the first storage means, image processing including coordinate conversion is performed on the acquired one image data (for example, rotation processing of a figure), and Image data after image processing (for example, processed image data 777, feature image 362C) is stored in the first storage means,
Including at least two conversion processing modes for the image processing;
In the first conversion processing mode, a plurality of converted image data are generated by individually performing different coordinate conversions on the one image data, and the processed image data is synthesized by combining the plurality of converted image data. It is a conversion processing mode that performs image processing to obtain data,
The second conversion processing mode is a conversion processing mode in which a plurality of coordinate conversions are sequentially and sequentially superimposed on the one image data to perform image processing to obtain one processed image data.
The game medium determination means further includes
Direct transfer control means for controlling direct transfer of data (for example, DMAC 252),
At least one of storage in the first storage unit of the image data after the format conversion in the conversion unit, and storage in the first storage unit of the image data after the image processing in the feature image generation unit, This is done by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、遊技媒体の判定に用いる遊技媒体の特徴画像を生成するための画像処理に関して、少なくとも2つの変換処理モードを有するため、遊技媒体の特性や状況等に応じて当該変換処理モードを切り替えることができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, since there are at least two conversion processing modes for image processing for generating a characteristic image of a game medium used for determination of the game medium, the conversion processing mode can be switched according to the characteristics and situation of the game medium. it can. Furthermore, since the writing and reading of the image data with respect to the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

[付記2−2]
本発明の実施態様2−2は、実施態様2−1において、以下のような構成を有する。
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ780)を記憶する第2記憶手段(例えば、メモリ774)を備え、
前記第2記憶手段から取得された前記変換パラメータに基づいて前記座標変換を行うよう構成される。
[Appendix 2-2]
Embodiment 2-2 of the present invention has the following configuration in Embodiment 2-1.
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (for example, memory 774) for storing the conversion parameters (for example, conversion parameters 780);
The coordinate conversion is performed based on the conversion parameter acquired from the second storage unit.

本発明のこのような構成によって、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。また、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, it is possible to appropriately change the content of the coordinate conversion process by changing the conversion parameter. In addition, when performing image processing including coordinate conversion in the feature image generation means, it is possible to obtain conversion parameters by accessing the memory in the circuit, avoiding access via the bus, securing the bus bandwidth, Processing efficiency can be further improved.

[付記2−3]
本発明の実施態様2−3は、実施態様2−2において、以下のような構成を有する。
前記変換パラメータは、所定角度の回転に関する座標変換を指定するパラメータであるよう構成される。
[Appendix 2-3]
Embodiment 2-3 of the present invention has the following configuration in Embodiment 2-2.
The conversion parameter is configured to be a parameter that specifies coordinate conversion related to rotation at a predetermined angle.

本発明のこのような構成によって、変換パラメータにより、画像データで表される図形を所定角度だけ回転させるように設定することができる。   With such a configuration of the present invention, it is possible to set so that the figure represented by the image data is rotated by a predetermined angle by the conversion parameter.

[付記2−4]
本発明の実施態様2−4は、実施態様2−1ないし実施態様2−3のいずれかにおいて、以下のような構成を有する。
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
動作モード情報(例えば、動作モード情報795)を記憶する第3記憶手段(例えば、メモリ774)を備え、
前記変換処理モードは、前記動作モード情報に基づいて決定されるよう構成される。
[Appendix 2-4]
Embodiment 2-4 of the present invention has the following configuration in any of Embodiment 2-1 to Embodiment 2-3.
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Third storage means (for example, memory 774) for storing operation mode information (for example, operation mode information 795) is provided,
The conversion processing mode is configured to be determined based on the operation mode information.

本発明のこのような構成によって、動作モード情報を変更することにより、変換処理モードを切り替えることができる。   With such a configuration of the present invention, the conversion processing mode can be switched by changing the operation mode information.

[付記2−5]
本発明の実施態様2−5は、実施態様2−4において、以下のような構成を有する。
前記動作モード情報は、前記撮像手段を介して得られた前記画像データごとに設定することができるよう構成される。
[Appendix 2-5]
Embodiment 2-5 of the present invention has the following configuration in Embodiment 2-4.
The operation mode information is configured to be set for each of the image data obtained via the imaging unit.

本発明のこのような構成によって、変換処理モードを遊技媒体の撮像映像ごとに切り替えることができ、状況に応じた特徴画像を得ることができる。   With such a configuration of the present invention, the conversion processing mode can be switched for each captured image of the game medium, and a characteristic image corresponding to the situation can be obtained.

[付記3−1]
本発明の実施態様3−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記第1記憶手段に記憶し、
前記座標変換の処理内容は、変換パラメータ(例えば、変換パラメータ280)によって指定され、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記特徴画像生成手段における前記画像処理後の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われる。
[Appendix 3-1]
Embodiment 3-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 249, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
Image data relating to the image data after the format conversion is acquired from the first storage means, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is converted into the first data. Memorize it in the memory means,
The processing content of the coordinate transformation is specified by a transformation parameter (for example, transformation parameter 280),
The game medium determination means further includes
Direct transfer control means for controlling direct transfer of data (for example, DMAC 252),
At least one of storage in the first storage unit of the image data after the format conversion in the conversion unit, and storage in the first storage unit of the image data after the image processing in the feature image generation unit, This is done by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, by changing the conversion parameter, the content of the coordinate conversion process can be changed as appropriate. Furthermore, since the writing and reading of the image data with respect to the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

[付記3−2]
本発明の実施態様3−2は、実施態様3−1において、以下のような構成を有する。
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
前記変換パラメータを記憶する第2記憶手段(例えば、メモリ274)を備え、
前記第2記憶手段から取得された前記変換パラメータに基づいて前記座標変換を行うよう構成される。
[Appendix 3-2]
Embodiment 3-2 of the present invention has the following configuration in Embodiment 3-1.
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (for example, a memory 274) for storing the conversion parameter;
The coordinate conversion is performed based on the conversion parameter acquired from the second storage unit.

本発明のこのような構成によって、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, when image processing including coordinate conversion is performed in the feature image generation means, conversion parameters can be acquired by accessing the memory in the circuit, and access via the bus is avoided. Thus, the bus bandwidth can be secured and the processing efficiency can be further improved.

[付記3−3]
本発明の実施態様3−3は、実施態様3−1または実施態様3−2において、以下のような構成を有する。
前記変換パラメータは、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換の少なくともいずれかを指示するパラメータであるよう構成される。
[Appendix 3-3]
Embodiment 3-3 of the present invention has the following configuration in Embodiment 3-1 or Embodiment 3-2.
The conversion parameter is configured to indicate at least one of coordinate conversion related to rotation, coordinate conversion related to enlargement, coordinate conversion related to reduction, and coordinate conversion related to parallel movement.

本発明のこのような構成によって、変換パラメータにより、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換を指示することができる。   According to such a configuration of the present invention, it is possible to instruct coordinate conversion related to rotation, coordinate conversion related to enlargement, coordinate conversion related to reduction, and coordinate conversion related to parallel movement by the conversion parameter.

[付記4−1]
本発明の実施態様4−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路449等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ480)を記憶する第2記憶手段(例えば、メモリ474)と、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行う変換回路(例えば、変換回路481)と、
パラメータオフセット(例えば、パラメータオフセット495)を記憶する制御回路(例えば、制御回路482)と、
前記制御回路の制御によって、前記変換パラメータと前記パラメータオフセットとを加算し、加算結果を前記変換回路に出力する加算回路(例えば、加算回路485)と、を備え、
前記変換回路は、前記加算回路による前記加算結果に基づいて、前記座標変換を行い、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記変換回路により得られた前記画像処理後の画像データに係る画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われる。
[Appendix 4-1]
In Embodiment 4-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 449, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 474) for storing conversion parameters (eg, conversion parameters 480);
A conversion circuit (for example, a conversion circuit 481) that acquires image data related to the image data after the format conversion from the first storage unit, and performs image processing including coordinate conversion on the acquired image data;
A control circuit (eg, control circuit 482) that stores a parameter offset (eg, parameter offset 495);
An addition circuit (for example, an addition circuit 485) that adds the conversion parameter and the parameter offset under the control of the control circuit and outputs the addition result to the conversion circuit;
The conversion circuit performs the coordinate conversion based on the addition result by the addition circuit,
The game medium determination means further includes
Direct transfer control means for controlling direct transfer of data (for example, DMAC 252),
Storage of the image data after the format conversion in the conversion means in the first storage means, and storage of the image data related to the image data after the image processing obtained by the conversion circuit in the first storage means. At least one of them is performed by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、変換パラメータとパラメータオフセットを加算することで、変換パラメータに基づいて行われる座標変換を、パラメータオフセットの内容を加味して変更することができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. Also, by adding the conversion parameter and the parameter offset, the coordinate conversion performed based on the conversion parameter can be changed in consideration of the content of the parameter offset. Furthermore, since the writing and reading of the image data with respect to the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

[付記4−2]
本発明の実施態様4−2は、実施態様4−1において、以下のような構成を有する。
前記変換パラメータは、変換後の所定の座標にそれぞれ対応する変換前の複数の座標を含み、
前記パラメータオフセットは、前記変換前の複数の座標に対するオフセットを含むよう構成される。
[Appendix 4-2]
Embodiment 4-2 of the present invention has the following configuration in embodiment 4-1.
The conversion parameter includes a plurality of coordinates before conversion corresponding to predetermined coordinates after conversion,
The parameter offset is configured to include offsets for a plurality of coordinates before the conversion.

本発明のこのような構成によって、変換パラメータとパラメータオフセットを加算することで、変換パラメータに基づいて行われる座標変換を、パラメータオフセットで指定した分だけずらすよう制御することができる。   With such a configuration of the present invention, by adding the conversion parameter and the parameter offset, the coordinate conversion performed based on the conversion parameter can be controlled to be shifted by the amount specified by the parameter offset.

[付記5−1]
本発明の実施態様5−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
プロセッサ(例えば、ホストコントローラ241)と、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記プロセッサは、前記変換パラメータを、所定タイミングで前記第2記憶手段に記憶するよう制御し、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記変換回路における前記画像処理後の画像データに係る画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われる。
[Appendix 5-1]
Embodiment 5-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
A processor (eg, host controller 241);
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, a feature image generation unit 364, an image recognition accelerator circuit 249, etc.) for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that acquires image data related to the image data after the format conversion from the first storage unit, and performs image processing including coordinate conversion on the acquired image data;
A control circuit (e.g., control circuit 282) that controls to obtain the conversion parameter from the second storage means and output it to the conversion circuit;
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The processor controls the conversion parameter to be stored in the second storage unit at a predetermined timing;
The game medium determination means further includes
Direct transfer control means for controlling direct transfer of data (for example, DMAC 252),
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of image data related to the image data after the image processing in the conversion circuit in the first storage unit. Is performed by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、変換パラメータを特徴画像生成手段の回路内に記憶し、この変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, by storing the conversion parameters in the circuit of the feature image generation unit and changing the conversion parameters, the processing content of the coordinate conversion can be changed as appropriate. Furthermore, since the writing and reading of the image data with respect to the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data, the host controller ( (Processor) is not involved and each circuit (hardware) included in the game medium determination means can be processed in parallel. As a result, the processing efficiency is improved and the processing time for determining the game medium is shortened.

[付記5−2]
本発明の実施態様5−2は、実施態様5−1において、以下のような構成を有する。
前記所定タイミングは、前記遊技媒体判定手段の初期設定のタイミングであるよう構成される。
[Appendix 5-2]
Embodiment 5-2 of the present invention has the following configuration in embodiment 5-1.
The predetermined timing is configured to be an initial setting timing of the game medium determination means.

本発明のこのような構成によって、変換パラメータが所定のタイミングで回路内にコピーされ、座標変換の際に変換パラメータを参照する場合、バスへのアクセスが抑止される。   With such a configuration of the present invention, when the conversion parameter is copied into the circuit at a predetermined timing and the conversion parameter is referred to at the time of coordinate conversion, access to the bus is suppressed.

[付記5−3]
本発明の実施態様5−3は、実施態様5−1または実施態様5−2において、以下のような構成を有する。
前記プロセッサは、前記第1記憶手段に記憶されている変換パラメータのうち、前記特徴画像生成手段における座標変換のために使用される変換パラメータのみをコピーして前記第2記憶手段に記憶するよう構成される。
[Appendix 5-3]
Embodiment 5-3 of the present invention has the following configuration in Embodiment 5-1 or Embodiment 5-2.
The processor is configured to copy only the conversion parameters used for coordinate conversion in the feature image generation means from among the conversion parameters stored in the first storage means and store them in the second storage means. Is done.

本発明のこのような構成によって、第1記憶手段に共通的な変換パラメータが用意されるとともに、回路内のメモリーには必要な変換パラメータのみがコピーされることで、制御LSIを共通的に製造することができ、回路内のメモリーが有効に利用される。   With this configuration of the present invention, common conversion parameters are prepared in the first storage means, and only necessary conversion parameters are copied to the memory in the circuit, so that the control LSI can be manufactured in common. The memory in the circuit can be used effectively.

[付記6−1]
本発明の実施態様6−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ277)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路273)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ309)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部301)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部302)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記第3記憶手段から前記画像処理後の画像データを読み出す要求を出力する第2読出要求出力部(例えば、第2読出要求出力部303)と、
前記第1読出要求出力部、前記書込要求出力部、及び前記第2読出要求出力部から出力される前記各要求が競合しないように調停を行う調停部(例えば、調停部304)と、を備える。
[Appendix 6-1]
In Embodiment 6-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores image data to be output (for example, processed image data 277) in the first storage unit. Circuit 273),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 309) that temporarily stores image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 301) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 302) that outputs a request to write the image data after the image processing into the third storage unit;
When the image data after the image processing is the output target image data, a second read request output unit (for example, a second read request output unit) that outputs a request to read the image data after the image processing from the third storage unit A read request output unit 303);
An arbitration unit (for example, an arbitration unit 304) that performs arbitration so that the requests output from the first read request output unit, the write request output unit, and the second read request output unit do not compete with each other; Prepare.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができる。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, by providing the arbitration unit, it is possible to avoid contention of access requests for the third storage unit for image processing.

[付記6−2]
本発明の実施態様6−2は、実施態様6−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記画像処理回路における前記出力対象の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 6-2]
Embodiment 6-2 of the present invention has the following configuration in embodiment 6-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data to be output in the image processing circuit in the first storage unit is the direct Configured to be done by transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記7−1]
本発明の実施態様7−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路949等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ977)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路973)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ909)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部1001)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部1002)と、
前記第1読出要求出力部、及び前記書込要求出力部から出力される前記各要求が競合しないように調停を行う調停部(例えば、調停部1004)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記画像処理後の画像データを前記第1記憶手段に記憶するよう制御する出力制御部(例えば、出力制御部1008)と、を備える。
[Appendix 7-1]
In Embodiment 7-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 949, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores output target image data (for example, processed image data 977) in the first storage means. Circuit 973), and
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 909) for temporarily storing image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 1001) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 1002) that outputs a request to write the image data after the image processing into the third storage unit;
An arbitration unit (for example, an arbitration unit 1004) that performs arbitration so that the requests output from the first read request output unit and the write request output unit do not compete with each other;
When the image data after the image processing is the image data to be output, an output control unit (for example, an output control unit 1008) that controls to store the image data after the image processing in the first storage unit And comprising.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができる。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, by providing the arbitration unit, it is possible to avoid contention of access requests for the third storage unit for image processing.

[付記7−2]
本発明の実施態様7−2は、実施態様7−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記出力制御部における前記画像処理後の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 7-2]
Embodiment 7-2 of the present invention has the following configuration in Embodiment 7-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data after the image processing in the output control unit in the first storage unit is Configured to be done by direct transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記8−1]
本発明の実施態様8−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ277)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路273)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ309)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部301)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部302)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記第3記憶手段から前記画像処理後の画像データを読み出す要求を出力する第2読出要求出力部(例えば、第2読出要求出力部303)と、
前記第1読出要求出力部、前記書込要求出力部、及び前記第2読出要求出力部から出力される前記各要求が競合しないように調停を行う調停部(例えば、調停部304)と、を備え、
前記調停部は、前記第1読出要求出力部、前記書込要求出力部、及び前記第2読出要求出力部の各出力部に関して、または、前記第1読出要求出力部、前記書込要求出力部、及び前記第2読出要求出力部から出力される前記各要求に関して割り当てられる優先度に基づいて行われる。
[Appendix 8-1]
In Embodiment 8-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores image data to be output (for example, processed image data 277) in the first storage unit. Circuit 273),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 309) that temporarily stores image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 301) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 302) that outputs a request to write the image data after the image processing into the third storage unit;
When the image data after the image processing is the output target image data, a second read request output unit (for example, a second read request output unit) that outputs a request to read the image data after the image processing from the third storage unit A read request output unit 303);
An arbitration unit (for example, an arbitration unit 304) that performs arbitration so that the requests output from the first read request output unit, the write request output unit, and the second read request output unit do not compete with each other; Prepared,
The arbitration unit is related to each output unit of the first read request output unit, the write request output unit, and the second read request output unit, or the first read request output unit and the write request output unit. , And the priority assigned to each request output from the second read request output unit.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができ、この調停部による調停は、優先度に基づいて行われる。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. Further, by providing an arbitration unit, it is possible to avoid contention for access requests to the third storage unit for image processing, and arbitration by the arbitration unit is performed based on priority.

[付記8−2]
本発明の実施態様8−2は、実施態様8−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記画像処理回路における前記出力対象の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 8-2]
Embodiment 8-2 of the present invention has the following configuration in Embodiment 8-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data to be output in the image processing circuit in the first storage unit is the direct Configured to be done by transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記8−3]
本発明の実施態様8−3は、実施態様8−1または実施態様8−2において、以下のような構成を有する。
前記優先度は、ユーザの操作によって、または前記遊技媒体判定手段の動作状況に応じて変更されるよう構成される。
[Appendix 8-3]
Embodiment 8-3 of the present invention has the following configuration in Embodiment 8-1 or Embodiment 8-2.
The priority is configured to be changed by a user's operation or according to an operation state of the game medium determination unit.

本発明のこのような構成によって、優先度を、例えば、ユーザの設定に応じたものとしたり、遊技媒体判定手段のバス使用率に応じて設定したりすることができ、このように設定された優先度により、遊技媒体の判定に関する処理時間が効果的に短縮される。   With such a configuration of the present invention, the priority can be set in accordance with, for example, the setting of the user, or set in accordance with the bus usage rate of the game medium determining means. The processing time relating to the determination of the game medium is effectively shortened by the priority.

[付記9−1]
本発明の実施態様9−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ277)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路273)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ309)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部301)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部302)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記第3記憶手段から前記画像処理後の画像データを読み出す要求を出力する第2読出要求出力部(例えば、第2読出要求出力部303)と、を備え、
前記第3記憶手段は1ポートメモリであり、
前記画像処理後の画像データが、前記書込要求出力部による要求に基づいて前記第3記憶手段の所定位置に書き込まれ、
前記所定位置が、前記第1読出要求出力部による要求に基づいて読み出された画像データであって、前記画像処理後の画像データに対応する画像データが記憶されている前記第3記憶手段の位置である。
[Appendix 9-1]
In Embodiment 9-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores image data to be output (for example, processed image data 277) in the first storage unit. Circuit 273),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 309) that temporarily stores image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 301) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 302) that outputs a request to write the image data after the image processing into the third storage unit;
When the image data after the image processing is the output target image data, a second read request output unit (for example, a second read request output unit) that outputs a request to read the image data after the image processing from the third storage unit A read request output unit 303),
The third storage means is a one-port memory;
The image data after the image processing is written in a predetermined position of the third storage unit based on a request by the write request output unit,
The third storage means in which the predetermined position is image data read based on a request from the first read request output unit, and image data corresponding to the image data after the image processing is stored. Position.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、画像処理後の画像データが、第3記憶手段に書き込まれる場合、当該処理画像データの画素データが画像処理前に記憶されていた第3記憶手段の記憶位置と同じ位置に記憶(リードモディファイライト)されるため、第3記憶手段の回路規模を小さくすることができる。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. Further, when image data after image processing is written to the third storage means, the pixel data of the processed image data is stored in the same position as the storage position of the third storage means stored before the image processing (Read Modify). Therefore, the circuit scale of the third storage means can be reduced.

[付記9−2]
本発明の実施態様9−2は、実施態様9−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記画像処理回路における前記出力対象の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 9-2]
Embodiment 9-2 of the present invention has the following configuration in Embodiment 9-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data to be output in the image processing circuit in the first storage unit is the direct Configured to be done by transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記9−3]
本発明の実施態様9−3は、実施態様9−1または実施態様9−2において、以下のような構成を有する。
前記書込要求出力部による要求に基づいて前記第3記憶手段に書き込まれた前記画像処理後の画像データが、前記第1読出要求出力部による要求に基づいて、前記画像処理の対象となる画像データとして前記第3記憶手段から読み出される。
[Appendix 9-3]
Embodiment 9-3 of the present invention has the following configuration in Embodiment 9-1 or Embodiment 9-2.
The image data after the image processing written in the third storage unit based on the request from the write request output unit is an image to be subjected to the image processing based on the request from the first read request output unit. Data is read from the third storage means.

本発明のこのような構成によって、第3記憶手段に書き込まれた画像処理後の画像データが、再び、画像処理の対象として第3記憶手段から読み出されるため、第3記憶手段の回路規模を小さくすることができる。   With such a configuration of the present invention, the image data after image processing written in the third storage means is read again from the third storage means as the object of image processing, so the circuit scale of the third storage means is reduced. can do.

[付記10−1]
本発明の実施態様10−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ277)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路273)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ309)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部301)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部302)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記第3記憶手段から前記画像処理後の画像データを読み出す要求を出力する第2読出要求出力部(例えば、第2読出要求出力部303)と、
前記第1読出要求出力部の要求に基づいて前記第3記憶手段から読み出された前記画像処理の対象となる画像データを一時的に記憶するバッファ(例えば、リードバッファ307)と、を備え、
前記第1読出要求出力部は、前記バッファが空の場合に、前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する。
[Appendix 10-1]
In the embodiment 10-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores image data to be output (for example, processed image data 277) in the first storage unit. Circuit 273),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 309) that temporarily stores image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 301) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 302) that outputs a request to write the image data after the image processing into the third storage unit;
When the image data after the image processing is the output target image data, a second read request output unit (for example, a second read request output unit) that outputs a request to read the image data after the image processing from the third storage unit A read request output unit 303);
A buffer (for example, a read buffer 307) that temporarily stores image data to be subjected to the image processing read from the third storage unit based on a request from the first read request output unit;
The first read request output unit outputs a request to read image data to be subjected to the image processing from the third storage unit when the buffer is empty.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、第1読出要求出力部が、リードバッファが空の場合に、画像処理の対象となる画像データを第3記憶手段から読み出す要求を出力するため、当該リードバッファの回路規模を小さくすることができ、独立した効果的な基準により、画像データの読み出しタイミングが決定される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. In addition, since the first read request output unit outputs a request to read image data to be subjected to image processing from the third storage unit when the read buffer is empty, the circuit scale of the read buffer can be reduced. The reading timing of the image data is determined by an independent and effective standard.

[付記10−2]
本発明の実施態様10−2は、実施態様10−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記画像処理回路における前記出力対象の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 10-2]
Embodiment 10-2 of the present invention has the following configuration in Embodiment 10-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data to be output in the image processing circuit in the first storage unit is the direct Configured to be done by transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記10−3]
本発明の実施態様10−3は、実施態様10−1または実施態様10−2において、以下のような構成を有する。
前記バッファに記憶された前記画像処理の対象となる画像データが、前記画像処理のために読み出された場合、前記画像処理の対象となる画像データが前記バッファから消去されるよう構成される。
[Appendix 10-3]
Embodiment 10-3 of the present invention has the following configuration in Embodiment 10-1 or Embodiment 10-2.
When the image data targeted for image processing stored in the buffer is read out for the image processing, the image data targeted for image processing is erased from the buffer.

本発明のこのような構成によって、画像処理の対象となる画像データが、画像処理のために読み出された場合、当該画像データがリードバッファから消去されるため、画像データが読み出されてすぐに、第1読出要求出力部からの要求が可能となり、結果的に、画像データの効率的なリードバッファへの読み出しが順次行われる。   With this configuration of the present invention, when image data to be subjected to image processing is read out for image processing, the image data is erased from the read buffer, so that the image data is read out immediately. In addition, a request from the first read request output unit can be made, and as a result, the image data is efficiently read into the read buffer.

[付記11−1]
本発明の実施態様11−1では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記第1記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像(例えば、特徴画像362C)を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
変換パラメータ(例えば、変換パラメータ280)を記憶する第2記憶手段(例えば、メモリ274)と、
前記第1記憶手段から取得した、前記フォーマット変換後の画像データに係る画像データに対して、座標変換を行う変換回路(例えば、変換回路281)と、
前記変換パラメータを前記第2記憶手段から取得し、前記変換回路に出力するよう制御する制御回路(例えば、制御回路282)と、
前記変換回路から前記座標変換後の画像データを取得して画像処理を行い、出力対象の画像データ(例えば、処理画像データ277)を前記第1記憶手段に記憶する画像処理回路(例えば、画像処理回路273)と、を備え、
前記変換回路は、前記変換パラメータに基づいて前記座標変換を行い、
前記画像処理回路は、
前記画像処理のために、前記座標変換後の画像データに係る画像データを一時的に記憶する第3記憶手段(例えば、フレームメモリ309)と、
前記画像処理の対象となる画像データを前記第3記憶手段から読み出す要求を出力する第1読出要求出力部(例えば、第1読出要求出力部301)と、
前記画像処理後の画像データを前記第3記憶手段に書き込む要求を出力する書込要求出力部(例えば、書込要求出力部302)と、
前記画像処理後の画像データが、前記出力対象の画像データである場合に、前記第3記憶手段から前記画像処理後の画像データを読み出す要求を出力する第2読出要求出力部(例えば、第2読出要求出力部303)と、
前記画像処理後の画像データを一時的に記憶するバッファ(例えば、ライトバッファ306)と、を備え、
前記書込要求出力部は、前記バッファに所定量の画像データが記憶された場合(例えば、ライトバッファ306が一杯になった場合)に、前記画像処理後の画像データを前記バッファから前記第3記憶手段に書き込む要求を出力する。
[Appendix 11-1]
In the embodiment 11-1 of the present invention, a gaming machine having the following configuration is provided.
An insertion slot (for example, medal insertion slot 21) into which a game medium (for example, a medal) is inserted;
Game medium detection means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the insertion slot,
The game medium detection means includes
A game medium passage portion (for example, medal rail 210) serving as a passage through which the game medium passes;
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object that is an object passing through the passage;
By performing image processing based on image data obtained through the imaging means (for example, a captured image 362A acquired by the imaging unit 361), it is determined whether or not the game medium is genuine. Game medium determination means (for example, control LSI 234),
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data (for example, SRAM 243);
A conversion unit that performs a predetermined format conversion on the image data obtained through the imaging unit and stores the image data after the format conversion (for example, target image data 275 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.)
Feature image generation means (for example, feature image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a feature image (for example, feature image 362C) indicating the feature of the game medium based on the image data after the format conversion. And comprising
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing conversion parameters (eg, conversion parameters 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data related to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, control circuit 282) that controls to obtain the conversion parameter from the second storage means and output the conversion parameter to the conversion circuit;
An image processing circuit (for example, image processing) that acquires image data after the coordinate conversion from the conversion circuit, performs image processing, and stores image data to be output (for example, processed image data 277) in the first storage unit. Circuit 273),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit includes:
A third storage unit (for example, a frame memory 309) that temporarily stores image data related to the image data after the coordinate conversion for the image processing;
A first read request output unit (for example, a first read request output unit 301) that outputs a request to read image data to be subjected to image processing from the third storage unit;
A write request output unit (for example, a write request output unit 302) that outputs a request to write the image data after the image processing into the third storage unit;
When the image data after the image processing is the output target image data, a second read request output unit (for example, a second read request output unit) that outputs a request to read the image data after the image processing from the third storage unit A read request output unit 303);
A buffer (for example, a write buffer 306) that temporarily stores the image data after the image processing,
The write request output unit reads the image data after the image processing from the buffer when the predetermined amount of image data is stored in the buffer (for example, when the write buffer 306 is full). A request to write to the storage means is output.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、書込要求出力部が、ライトバッファが一杯になった場合に、画像処理後の画像データを第3記憶手段に書き込む要求を出力するため、当該ライトバッファの回路規模を小さくすることができ、独立した効果的な基準により、画像データの書き込みタイミングが決定される。   With such a configuration of the present invention, the regular medal discrimination process can be executed using the image data acquired by the imaging means. Since each process of image conversion and image recognition performed based on the captured image makes it possible to determine a medal or the like, it is possible to determine a difference in the pattern of the medal or the like. Further, since the game medium determining means is configured as a dedicated integrated circuit for determining the game medium, the manufacturing cost can be effectively suppressed. Furthermore, since the game medium determination means is provided in a packaged state such as an ASIC, an illegal act from the outside (for example, invalidating the regular medal discrimination process or setting the processing logic of the regular medal discrimination process) (The act of trying to steal)) and has a significant security advantage. Further, since the write request output unit outputs a request to write the image data after image processing to the third storage means when the write buffer is full, the circuit scale of the write buffer can be reduced. The writing timing of the image data is determined by an independent and effective standard.

[付記11−2]
本発明の実施態様11−2は、実施態様11−1において、以下のような構成を有する。
前記遊技媒体判定手段はさらに、データの直接転送を制御する直接転送制御手段(例えば、DMAC252)を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記画像処理回路における前記出力対象の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われるよう構成される。
[Appendix 11-2]
Embodiment 11-2 of the present invention has the following configuration in Embodiment 11-1.
The game medium determining means further includes direct transfer control means (for example, DMAC 252) for controlling direct transfer of data,
At least one of storage of the image data after the format conversion in the conversion unit in the first storage unit and storage of the image data to be output in the image processing circuit in the first storage unit is the direct Configured to be done by transfer.

本発明のこのような構成によって、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determination means is realized by the direct transfer control means that controls the direct transfer of data. The host controller (processor) of the medium determination means is not involved, and the parallel processing of each circuit (hardware) included in the game medium determination means is possible. As a result, the processing efficiency is improved and the processing time relating to the determination of the game medium Is shortened.

[付記11−3]
本発明の実施態様11−3は、実施態様11−1または実施態様11−2において、以下のような構成を有する。
前記バッファに記憶された前記画像処理後の画像データが前記第3記憶手段に書き込まれた場合に、前記画像処理後の画像データが前記バッファから消去されるよう構成される。
[Appendix 11-3]
Embodiment 11-3 of the present invention has the following configuration in Embodiment 11-1 or Embodiment 11-2.
The image data after the image processing is erased from the buffer when the image data after the image processing stored in the buffer is written in the third storage means.

本発明のこのような構成によって、画像処理の対象となる画像データが、第3記憶手段に書き込まれた場合、当該画像データがライトバッファから消去されるため、画像データが書き込まれてすぐに、書込要求出力部からの要求が可能となり、結果的に、画像データの効率的なライトバッファへの書き込みが順次行われる。   With such a configuration of the present invention, when image data to be subjected to image processing is written in the third storage means, the image data is erased from the write buffer, so immediately after the image data is written, Requests from the write request output unit can be made, and as a result, efficient writing of image data to the write buffer is sequentially performed.

1 パチスロ
3L 左リール
3C 中リール
3R 右リール
4 リール表示窓
21 メダル投入口
23 スタートレバー
32 メダル払出口
51 ホッパー装置
71 主制御基板
72 副制御基板
79 スタートスイッチ
80 ストップスイッチ基板
91 主制御回路
101 副制御回路
201 メダルセレクタ
202 メダルシュート
203 スロープ
204 ベース板部
205 サブプレート
206 キャンセルシュータ
207 セレクトプレート
208 メダルソレノイド
209 カメラユニット
210 メダルレール
211 メダル入口部
212 中央孔
213 メダルプレッシャ
217 磁石
218 アフタメダルプレッシャ
227 メダルストッパ部
230 第1の基板
231 第2の基板
232 CMOSイメージセンサ
233 LED
234 制御LSI
235 脚部
241 ホストコントローラ
242 画像認識DSP回路
243 SRAM
244 フラッシュメモリ
245 ISP回路
246 メダルカウント回路
247 カラー認識回路
248 魚眼補正スケーラ回路
249,449,549,749,949 画像認識アクセラレータ回路
250 GPIO
251 ISI回路
252 DMAC
261,361 撮像部
262,362A 撮像画像
362B 撮像画像
362C 特徴画像
263,363 変換部
264,364 特徴画像生成部
265,365 判定部
266,366 入出力部
267,367 テンプレートデータ
268,368 判定結果
271,471,571,771,971 入力フレームバッファ
272,472,572,772,972 座標変換回路
273,473,573,773,973 画像処理回路
274,474,574,774,974 メモリ
275,475,575,775 対象画像データ
276,476,576,776,976 変換後画像データ
277,577,777,977 処理画像データ
280,480,580,780 変換パラメータ
281,481,581,781 変換回路
282,482,582,782 制御回路
283,483,583,783 レジスタ
290,490,590,790 特定情報
300,600,800,1000 記憶制御部
301,601,801,1001 第1読出要求出力部
302,602,802,1002 書込要求出力部
303,603,803 第2読出要求出力部
304,604,804,1004 調停部
305,805,1005 加算処理部
306,606,706,1006 ライトバッファ
307,607,707,1007 リードバッファ
308,608,708,1008 出力制御部
309,609,709,909 フレームメモリ
370 第1画像生成部
371 抽出部
372 エッジ画像生成部
374 第1画像
380 第2画像生成部
400 正規メダル
310,410 メダル
485 加算回路
495 パラメータオフセット
585,785 選択回路
795 動作モード情報
806 選択回路
DESCRIPTION OF SYMBOLS 1 Pachi slot 3L Left reel 3C Middle reel 3R Right reel 4 Reel display window 21 Medal slot 23 Start lever 32 Medal payout 51 Hopper device 71 Main control board 72 Sub control board 79 Start switch 80 Stop switch board 91 Main control circuit 101 Sub Control circuit 201 Medal selector 202 Medal chute 203 Slope 204 Base plate part 205 Sub plate 206 Cancel shooter 207 Select plate 208 Medal solenoid 209 Camera unit 210 Medal rail 211 Medal inlet part 212 Central hole 213 Medal pressure 217 Magnet 218 After medal pressure 227 Medal Stopper portion 230 First substrate 231 Second substrate 232 CMOS image sensor 233 LED
234 Control LSI
235 Leg 241 Host controller 242 Image recognition DSP circuit 243 SRAM
244 Flash memory 245 ISP circuit 246 Medal count circuit 247 Color recognition circuit 248 Fisheye correction scaler circuit 249, 449, 549, 749, 949 Image recognition accelerator circuit 250 GPIO
251 ISI circuit 252 DMAC
261,361 Imaging unit 262,362A Captured image 362B Captured image 362C Feature image 263,363 Conversion unit 264,364 Feature image generation unit 265,365 Determination unit 266,366 Input / output unit 267,367 Template data 268,368 Determination result 271 , 471, 571, 771, 971 Input frame buffer 272, 472, 572, 772, 972 Coordinate conversion circuit 273, 473, 573, 773, 973 Image processing circuit 274, 474, 574, 774, 974 Memory 275, 475, 575 , 775 Target image data 276,476,576,776,976 Converted image data 277,577,777,977 Processed image data 280,480,580,780 Conversion parameters 281,481,581,781 Circuit 282, 482, 582, 782 Control circuit 283, 483, 583, 783 Register 290, 490, 590, 790 Specific information 300, 600, 800, 1000 Storage controller 301, 601, 801, 1001 First read request output unit 302, 602, 802, 1002 Write request output unit 303, 603, 803 Second read request output unit 304, 604, 804, 1004 Arbitration unit 305, 805, 1005 Addition processing unit 306, 606, 706, 1006 Write buffer 307 , 607, 707, 1007 Read buffer 308, 608, 708, 1008 Output control unit 309, 609, 709, 909 Frame memory 370 First image generation unit 371 Extraction unit 372 Edge image generation unit 374 First image 380 Second image generation Part 400 Tadashi Medals 310, 410 Medals 485 adder circuit 495 parameter offset 585,785 selecting circuit 795 operation mode information 806 selection circuit

Claims (3)

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部と、
前記通路を通過する物体である通過物体を撮像する撮像手段と、
前記撮像手段を介して得られた画像データに基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段と、を含み、
前記遊技媒体判定手段は、
前記遊技媒体を判定する専用集積回路として構成され、
データを記憶する第1記憶手段と、
前記撮像手段を介して得られた前記画像データに所定のフォーマット変換を行い、前記フォーマット変換後の画像データを前記第1記憶手段に記憶する変換手段と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段と、を備え、
前記特徴画像生成手段は、
前記第1記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記第1記憶手段に記憶し、
前記座標変換の処理内容は、変換パラメータによって指定され、
前記遊技媒体判定手段はさらに、
データの直接転送を制御する直接転送制御手段を備え、
前記変換手段における前記フォーマット変換後の画像データの前記第1記憶手段への記憶、及び前記特徴画像生成手段における前記画像処理後の画像データの前記第1記憶手段への記憶の少なくともいずれかが、前記直接転送によって行われることを特徴とする遊技機。
A slot for gaming media;
A game medium detecting means for detecting a game medium thrown from the slot,
The game medium detection means includes
A game medium passage section serving as a passage through which the game medium passes;
Imaging means for imaging a passing object that is an object passing through the passage;
Game medium determination means for determining whether or not the game medium is legitimate by performing image processing based on image data obtained via the imaging means,
The game medium determining means is
It is configured as a dedicated integrated circuit for determining the game medium,
First storage means for storing data;
Conversion means for performing a predetermined format conversion on the image data obtained via the imaging means, and storing the image data after the format conversion in the first storage means;
Feature image generation means for generating a feature image indicating the characteristics of the game medium based on the image data after the format conversion,
The feature image generation means includes
Image data relating to the image data after the format conversion is acquired from the first storage means, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is converted into the first data. Memorize it in the memory means,
The processing content of the coordinate transformation is specified by a transformation parameter,
The game medium determination means further includes
Direct transfer control means for controlling the direct transfer of data,
At least one of storage in the first storage unit of the image data after the format conversion in the conversion unit, and storage in the first storage unit of the image data after the image processing in the feature image generation unit, A gaming machine, which is performed by the direct transfer.
前記特徴画像生成手段は、
前記遊技媒体判定手段内の回路として構成され、
前記変換パラメータを記憶する第2記憶手段を備え、
前記第2記憶手段から取得された前記変換パラメータに基づいて前記座標変換を行うことを特徴とする、請求項1に記載の遊技機。
The feature image generation means includes
It is configured as a circuit in the game medium determination means,
Second storage means for storing the conversion parameter;
The gaming machine according to claim 1, wherein the coordinate transformation is performed based on the transformation parameter acquired from the second storage unit.
前記変換パラメータは、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換の少なくともいずれかを指示するパラメータであることを特徴とする、請求項1または2に記載の遊技機。   3. The parameter according to claim 1, wherein the conversion parameter is a parameter that indicates at least one of coordinate conversion related to rotation, coordinate conversion related to enlargement, coordinate conversion related to reduction, and coordinate conversion related to parallel movement. Gaming machine.
JP2016073800A 2016-04-01 2016-04-01 Game machine and game medium discrimination device Active JP6604887B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016073800A JP6604887B2 (en) 2016-04-01 2016-04-01 Game machine and game medium discrimination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016073800A JP6604887B2 (en) 2016-04-01 2016-04-01 Game machine and game medium discrimination device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019188379A Division JP6824358B2 (en) 2019-10-15 2019-10-15 Game machine and game medium discrimination device

Publications (2)

Publication Number Publication Date
JP2017184800A true JP2017184800A (en) 2017-10-12
JP6604887B2 JP6604887B2 (en) 2019-11-13

Family

ID=60044371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016073800A Active JP6604887B2 (en) 2016-04-01 2016-04-01 Game machine and game medium discrimination device

Country Status (1)

Country Link
JP (1) JP6604887B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6999760B2 (en) 2020-09-01 2022-01-19 株式会社ユニバーサルエンターテインメント Game medium sorting device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242512A (en) * 2002-12-26 2003-08-29 Sanyo Product Co Ltd Image display device
JP2007149873A (en) * 2005-11-25 2007-06-14 I-Pulse Co Ltd Inspection machine and mounting substrate inspection method
JP2007296122A (en) * 2006-04-28 2007-11-15 Aruze Corp Game machine
JP2013218650A (en) * 2012-03-12 2013-10-24 Fuji Electric Co Ltd Medal identification device and medal identification system
JP2014102766A (en) * 2012-11-21 2014-06-05 Asahi Seiko Co Ltd Disk discrimination method, disk discrimination device and disk sorting device
JP2015022596A (en) * 2013-07-20 2015-02-02 株式会社フォリオ Disk pattern recognition device and disk selection device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242512A (en) * 2002-12-26 2003-08-29 Sanyo Product Co Ltd Image display device
JP2007149873A (en) * 2005-11-25 2007-06-14 I-Pulse Co Ltd Inspection machine and mounting substrate inspection method
JP2007296122A (en) * 2006-04-28 2007-11-15 Aruze Corp Game machine
JP2013218650A (en) * 2012-03-12 2013-10-24 Fuji Electric Co Ltd Medal identification device and medal identification system
JP2014102766A (en) * 2012-11-21 2014-06-05 Asahi Seiko Co Ltd Disk discrimination method, disk discrimination device and disk sorting device
JP2015022596A (en) * 2013-07-20 2015-02-02 株式会社フォリオ Disk pattern recognition device and disk selection device

Also Published As

Publication number Publication date
JP6604887B2 (en) 2019-11-13

Similar Documents

Publication Publication Date Title
JP6671787B2 (en) Gaming machine
JP2017093660A (en) Game machine
JP6604887B2 (en) Game machine and game medium discrimination device
JP6671790B2 (en) Gaming machine
JP2017093656A (en) Game machine
JP6824358B2 (en) Game machine and game medium discrimination device
JP2017213067A (en) Game medium selection device
JP6999760B2 (en) Game medium sorting device
JP6283436B2 (en) Gaming machine and game medium discrimination device
JP6671789B2 (en) Gaming machine
JP6671788B2 (en) Gaming machine
JP6773441B2 (en) Game machine
JP6773443B2 (en) Game machine
JP6773439B2 (en) Game machine
JP6773438B2 (en) Game machine
JP6773442B2 (en) Game machine
JP6773440B2 (en) Game machine
JP2017093658A (en) Game machine
JP2020049233A (en) Game machine and game medium discrimination device
JP6626556B2 (en) Gaming machines and game media discriminating devices
JP6104291B2 (en) Game machine
JP6401064B2 (en) Game machine
JP6626558B2 (en) Gaming machines and game media discriminating devices
JP6675694B2 (en) Gaming machines and game media discriminating devices
JP6675602B2 (en) Gaming machines and game media discriminating devices

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180919

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180925

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190326

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190515

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190917

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191015

R150 Certificate of patent or registration of utility model

Ref document number: 6604887

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250