JP2020072859A - Game machine and game medium discrimination device - Google Patents

Game machine and game medium discrimination device Download PDF

Info

Publication number
JP2020072859A
JP2020072859A JP2019188379A JP2019188379A JP2020072859A JP 2020072859 A JP2020072859 A JP 2020072859A JP 2019188379 A JP2019188379 A JP 2019188379A JP 2019188379 A JP2019188379 A JP 2019188379A JP 2020072859 A JP2020072859 A JP 2020072859A
Authority
JP
Japan
Prior art keywords
image
image data
medal
circuit
data
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
JP2019188379A
Other languages
Japanese (ja)
Other versions
JP6824358B2 (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 JP2019188379A priority Critical patent/JP6824358B2/en
Publication of JP2020072859A publication Critical patent/JP2020072859A/en
Application granted granted Critical
Publication of JP6824358B2 publication Critical patent/JP6824358B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)
  • Slot Machines And Peripheral Devices (AREA)

Abstract

To provide a game machine which can detect the fraudulent act of playing the game by making erroneously recognized that a normal game medium is used.SOLUTION: A token sensor includes: a token rail which forms a passage where a token passes; a CMOS image sensor which images the token passing through the passage; and a control LSI which detects whether or not the token is the normal token on the basis of the image data of the imaged token. The control LSI includes an image recognition DSP circuit and an image recognition accelerator circuit 249, and these circuits perform rotation integration processing and stamp determination processing of the image data of the imaged token. The image recognition accelerator circuit 249 performs the coordinate conversion of the image data by referring to a transformation parameter 280 designating the processing contents of the coordinate conversion.SELECTED DRAWING: Figure 23

Description

本発明は、遊技機、及び遊技媒体判別装置に関する。   The present invention relates to a game machine and a game medium discrimination device.

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

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

また、このような遊技機には、メダル投入口の先に投入されたメダルを検知するためのメダルセレクタが設けられている。また、このメダルセレクタに対しては、メダル投入口に適正なメダル(正規メダル)でないメダル(不正メダル)を投入したり、器具をメダル投入口に挿入したりして、遊技機に正規メダルが投入されたと誤認させて遊技が行われる不正行為に対する対策がとられている。   In addition, such a gaming machine is provided with a medal selector for detecting a medal inserted at the tip of the medal insertion 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, and the regular medal is displayed in the game machine. Measures have been taken against fraudulent activity in which a game is played by misidentifying that it has been thrown.

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

他方、特許文献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. Data transfer via the bus is performed using a (Direct Memory Access Controller) in response to a control signal from the DMAC instead of the CPU.

また、特許文献3には、画像データを記憶する記憶回路と歪み補正処理を行う処理回路との間で、上述のDMACを用いてデータ転送を行うデータ転送装置が開示されており、このデータ転送装置では、記憶回路と、処理回路内のキャッシュメモリとの間のバスを介したデータ転送が、CPUの代わりに、DMACからの制御信号に応じて行われる。   Further, Patent Document 3 discloses a data transfer device that transfers data between a storage circuit that stores image data and a processing circuit that performs distortion correction processing by using the above-described DMAC. In the device, data transfer via the 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, various types of fraudulent devices other than the plate-shaped body are inserted into the medal insertion slot to illegally operate the counting function of the medal selector to insert a medal. It is not possible to detect fraudulent acts that appear to be doing and obtain a large number of credits, or fraudulent acts performed using fraudulent medals.

例えば、このスロットマシンが設置されるホールで貸し出される貸出単価が1枚20円のメダルと1枚5円のメダルとが同径で色や刻印(模様)のみ異なる場合、このスロットマシンでは、これらを判別することができず、低賭け遊技機(いわゆる、5スロ)で取得したメダルを通常の遊技機(いわゆる、20スロ)で使用するといった不正遊技を行う者がいるために、遊技店で被害が発生している。   For example, if a medal with a unit price of 20 yen and a medal with a cost of 5 yen that are rented out in the hall where this slot machine is installed have the same diameter but differ only in color and marking (pattern), There is a person who can not discriminate and uses an illegal game such as using a medal acquired with a low bet gaming machine (so-called 5 slot) with an ordinary gaming machine (so-called 20 slot), so Damage is occurring.

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

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

さらに、こうしたメダル等の遊技媒体についての不正判定を画像処理によって行おうとする場合は、処理時間の問題が生ずる。すなわち、高度に模倣された偽造メダル等について精度の高い不正判定を行う場合、スロットマシン等に投入されたメダルを高解像度で撮像し、撮像されたそれぞれの画素データについて複数の画像処理を行う必要があり、高性能のCPUや画像処理回路を用いた場合であっても、当該不正判定にはかなり長い時間を要する。   Further, when attempting to make such fraudulent determination on a game medium such as a medal by image processing, there arises a problem of processing time. In other words, when making highly accurate fraudulent determinations on highly imitated counterfeit medals, it is necessary to image the medals inserted into the slot machine at a high resolution and perform multiple image processing on each imaged pixel data. Therefore, 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 extremely difficult to carry out the above-described fraud determination by image processing in real time for each inserted medal. Difficult to do.

こうした遊技媒体に関する画像処理による不正判定の時間短縮に関連し、様々なアプローチが検討されているが、特許文献2、及び特許文献3に記載されているような、DMA転送を利用して処理時間の短縮を実現した回路を含む遊技機については、これまでに提案されていない。   Although various approaches have been studied in relation to shortening the time for fraudulent determination by image processing on such a game medium, 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 the shortening of the above has not been proposed so far.

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

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

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

上記目的を達成するために、本発明の第1実施態様では、以下のような構成の遊技機を提供する。
遊技媒体(例えば、メダル)を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、カメラユニット209を含むメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部(例えば、メダルレール210)と、
前記通路を通過する物体である通過物体を撮像する撮像手段(例えば、CMOSイメージセンサ232を含む手段)と、
前記撮像手段を介して得られた画像データ(例えば、撮像部361によって取得された撮像画像362A)に基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段(例えば、制御LSI234)と、を含み、
前記遊技媒体判定手段は、
データの直接転送を制御する直接転送制御手段(例えば、DMAC252)と、
データを記憶することが可能な記憶手段(例えば、SRAM243)と、
前記撮像手段を介して得られた前記画像データを前記直接転送制御手段により前記記憶手段から取得し、所定のフォーマット変換を行い、前記フォーマット変換後の画像データ(例えば、対象画像データ275、撮像画像362B)を前記直接転送によって前記記憶手段に記憶する変換手段(例えば、変換部363、ISP回路245等)と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段(例えば、特徴画像生成部364、画像認識アクセラレータ回路249等)と、を備え、
前記特徴画像生成手段は、
前記記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記直接転送によって前記記憶手段に記憶するように構成される。
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, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Direct transfer control means (for example, DMAC252) for controlling the direct transfer of data,
Storage means capable of storing data (for example, SRAM 243),
The image data obtained via the image capturing unit is acquired from the storage unit by the direct transfer control unit, a predetermined format conversion is performed, and the image data after the format conversion (for example, target image data 275, captured image 362B) is stored in the storage unit by the direct transfer (for example, the conversion unit 363, the ISP circuit 245, etc.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 249, etc.) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the storage unit, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is transferred by the direct transfer. It is configured to be stored in the storage means.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段における画像データの記憶手段(SRAM等)への記憶が、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the difference in the pattern of the medal or the like. Further, since the storage of the image data in the storage means (SRAM or the like) in the game medium determination means is realized by the direct transfer control means for controlling the direct transfer of the data, the host controller (processor of the game medium determination means in the data transfer) ) Is not involved, parallel processing of each circuit (hardware) included in the game medium determination means is possible, and as a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is shortened.

本発明の第2実施態様では、以下のような構成の遊技媒体判別装置を提供する。
遊技媒体が通過する通路となる遊技媒体通過部と、
前記通路を通過する物体である通過物体を撮像する撮像手段と、
前記撮像手段を介して得られた画像データに基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段と、を含み、
前記遊技媒体判定手段は、
データの直接転送を制御する直接転送制御手段と、
データを記憶することが可能な記憶手段と、
前記撮像手段を介して得られた前記画像データを前記直接転送制御手段により前記記憶手段から取得し、所定のフォーマット変換を行い、前記フォーマット変換後の画像データを前記直接転送によって前記記憶手段に記憶する変換手段と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段と、を備え、
前記特徴画像生成手段は、
前記記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記直接転送によって前記記憶手段に記憶するように構成される。
The second embodiment of the present invention provides a game medium discriminating apparatus having the following configuration.
A game medium passing portion that is a passage through which the game medium passes,
Imaging means for imaging a passing object which is an object passing through the passage,
A game medium determining unit that determines whether or not the game medium is a regular one by performing image processing based on the image data obtained through the image capturing unit,
The game medium determination means,
Direct transfer control means for controlling direct transfer of data,
Storage means capable of storing data,
The image data obtained via the image pickup means is acquired from the storage means by the direct transfer control means, a predetermined format conversion is performed, and the image data after the format conversion is stored in the storage means by the direct transfer. Conversion means to
A characteristic image generating means for generating a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the storage unit, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is transferred by the direct transfer. It is configured to be stored in the storage means.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段における画像データの記憶手段(SRAM等)への記憶が、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the difference in the pattern of the medal or the like. Further, since the storage of the image data in the storage means (SRAM or the like) in the game medium determination means is realized by the direct transfer control means for controlling the direct transfer of the data, the host controller (processor of the game medium determination means in the data transfer) ) Is not involved, parallel processing of each circuit (hardware) included in the game medium determination means is possible, and as a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is shortened.

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

本発明の一実施形態の遊技機における機能フローを説明する説明図である。It is explanatory drawing explaining the function flow in the game machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における外観構成例を示す斜視図である。It is a perspective view showing an example of appearance composition in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを閉じた状態の斜視図である。1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention and showing a state in which a middle door is closed. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを開けた状態の斜視図である。It is a perspective view showing an internal structure in a game machine of one embodiment of the present invention, and showing a state in which a middle door is opened. 本発明の一実施形態の遊技機におけるキャビネットの内部を示す説明図である。It is an explanatory view showing the inside of the cabinet in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるフロントドアの裏面側を示す説明図である。It is an explanatory view showing the back side of the front door in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め後方から見た斜視図である。It is the perspective view which looked at the medal selector in the game machine of one embodiment of the present invention from the slanting back of the game machine. 本発明の一実施形態の遊技機におけるメダルセレクタの分解図である。It is an exploded view of a 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 game machine of one embodiment of the present invention from the slanting front of the game 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 the medal when the medal selector in the game machine of one embodiment of an invention guides a medal to a hopper apparatus. 発明の一実施形態の遊技機におけるメダルセレクタがメダルをメダルシュートに案内する場合のメダルの経路を示す図である。It is a figure showing a course of a medal when a medal selector in a game machine of one embodiment of the invention guides a medal to a medal shoot. 本発明の一実施形態の遊技機における制御系を示すブロック図である。It is a block diagram showing a control system in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における主制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a main control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における副制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a sub control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。It is a block diagram showing an example of circuit composition of a medal selector in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIの回路構成例を示すブロック図である。It is a block diagram showing an example of circuit composition of control LSI in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるカメラユニットの機能ブロック図である。It is a functional block diagram of the camera unit in the game 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 explaining generation (composition) of processing image data about a regular medal used for a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の回路構成例を示すブロック図である。It is a block diagram showing an example of circuit composition of an image recognition accelerator circuit contained in control LSI in a game machine of one embodiment of the present invention. 対象画像データに対して、座標変換を行い変換後画像データを生成する概念を示す図である。It is a figure which shows the concept which performs coordinate conversion with respect to target image data, and produces | generates the image data after conversion. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の座標変換回路の回路構成例を示す図である。It is a figure showing an example of circuit composition of a coordinate conversion circuit of an image recognition accelerator circuit contained in control LSI in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の変換パラメータの例を示す図である。It is a figure showing an example of a conversion parameter of an image recognition accelerator circuit contained in control LSI in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の特定情報の例を示す図である。It is a figure showing an example of specific information on an image recognition accelerator circuit contained in control LSI in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路によって、それぞれ回転角度が異なる変換パラメータによって変換後画像データが生成される例を模式的に示す図である。It is a figure which shows typically the example which after-conversion image data is produced | generated by the image recognition accelerator circuit contained in the control LSI in the game machine of one embodiment of this invention by the conversion parameter from which each rotation angle differs. 変換パラメータによる座標変換の一例を説明するための図である。It is a figure for explaining an example of coordinate conversion by a conversion parameter. 複数の変換後画像データを合成して処理画像データを生成する概念を示す図である。It is a figure which shows the concept which synthesize | combines several post-conversion image data and produces | generates process image data. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の動作の概要を説明するための図である。It is a figure for explaining the outline of operation of the image processing circuit of the image recognition accelerator circuit contained in the control LSI in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIに含まれる画像認識アクセラレータ回路の画像処理回路の構成を示す図である。It is a figure showing composition of an image processing circuit of an image recognition accelerator circuit contained in control LSI in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機において1番目のメダルに関する正規メダル判別処理のフローを説明するための図である。It is a figure for explaining a flow of regular medal discrimination processing about the 1st medal in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機において1番目〜6番目のメダルに関する正規メダル判別処理のフローを説明するための図である。It is a figure for explaining the flow of the regular medal discrimination processing about the 1st-6th medal in the game 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 game machine of one Embodiment of this invention. 不正メダルの一方の面と不正メダルの画像データの例を示す図である。It is a figure which shows the one side of an illegal medal, and the example of the image data of an illegal medal. 不正メダルの一方の面、不正メダルの画像データ、及び不正メダルの処理画像データの例を示す図である。It is a figure which shows the one side of an illegal medal, the image data of an illegal medal, and the process image data of an illegal medal. 本発明の一実施形態の遊技機におけるカメラユニットの撮像装置を介して得られる撮像画像の一例を模式的に示す図である。It is a figure which shows typically an example of the captured image obtained through the imaging device of the camera unit in the game machine of one embodiment of this invention. 本発明の一実施形態の遊技機におけるカメラユニットの機能ブロック図である。It is a functional block diagram of the camera unit in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における特徴画像生成部の構成をより詳細に示す図である。It is a figure which shows the structure of the characteristic image production | generation part in the game machine of one Embodiment of this invention in detail. 本発明の一実施形態の遊技機におけるカメラユニットで実施される正規メダル判別処理の一連の動作を示すフローチャートである。It is a flow chart which shows a series of operation of regular medal discrimination processing carried out with a camera unit in a game machine of one embodiment of the present 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 outline template typically. テンプレートマッチングを説明するための図である。It is a figure for demonstrating template matching. メダル領域の抽出処理を説明するための図である。It is a figure for explaining the extraction processing of the medal area. エッジ画像の一例を模式的に示す図である。It is a figure which shows an example of an edge image typically. 回転合成画像の生成方法を説明するための図である。It is a figure for explaining a generating method of a rotation synthetic picture. 本発明の一実施形態の変形例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 which overlaps several coordinate conversion with respect to target image data, and produces | generates process 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に含まれる画像認識アクセラレータ回路の動作を説明するための図である。FIG. 11 is a diagram for explaining the operation of the image recognition accelerator circuit included in the control LSI in the second modification of the embodiment of the present 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 pachi-slot which is a gaming machine according to an embodiment of the present invention will be described with reference to FIGS. 1 to 47.

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

遊技の開始時において、遊技者によりメダルが投入され、スタートレバーが操作されると、予め定められた数値の範囲(例えば、0〜65535)の乱数から1つの値(以下、乱数値)が抽出される。   At the start of the game, when the player inserts a medal and operates the start lever, one value (hereinafter, a random number value) is extracted from a random number in a predetermined numerical value range (for example, 0 to 65535). To be 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 the main control circuit described later. By the determination of the internal winning combination, the combination of symbols that is allowed to be displayed along the winning determination line described below is determined. The types of symbol combinations include those related to "winning", in which benefits such as payout of medals, operation of re-game, operation of bonus, etc. are given to the player, and those related to other so-called "miss". Is provided.

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

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

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

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

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

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

演出内容が決定されると、演出実行手段は、リールの回転開始時、各リールの回転停止時、入賞の有無の判定時等の各契機に連動させて対応する演出を実行する。このように、パチスロでは、内部当籤役に対応づけられた演出内容を実行することによって、決定された内部当籤役(言い換えると、狙うべき図柄の組合せ)を知る機会または予想する機会が遊技者に提供され、遊技者の興味の向上を図ることができる。   When the content of the effect is determined, the effect executing means executes the corresponding effect in association with each trigger such as the start of the rotation of the reel, the stop of the rotation of each reel, the determination of the presence or absence of the winning. In this way, in the pachi-slot, the player has the opportunity to know or predict the determined internal winning combination (in other words, the combination of the symbols to be aimed) by executing the effect contents associated with the internal winning combination. It is provided, and the interest of the player can be improved.

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

[外観構造]
図2は、パチスロ1の外部構造を示す斜視図である。
[Appearance structure]
FIG. 2 is a perspective view showing an 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 has a cabinet 2a that houses a hopper device 51, a medal auxiliary storage 52, and the like (see FIG. 5) described later, and a front door 2b that is openably and closably attached to the cabinet 2a. Handles 7 are provided on both sides of the cabinet 2a (only one handle 7 is shown in FIG. 2). The handle 7 is a recess for holding the pachi-slot 1 when carrying it.

外装体2の内部には、3つのリール3L、3C、3Rが横並びに設けられている。以下、各リール3L、3C、3Rを、それぞれ左リール3L、中リール3C、右リール3Rという。各リール3L、3C、3Rは、円筒状に形成されたリール本体と、リール本体の周面に装着された透光性のシート材を有している。シート材の表面には、複数(例えば20個)の図柄が周方向に沿って所定の間隔をあけて描かれている。   Inside the exterior body 2, three reels 3L, 3C, 3R are provided side by side. Hereinafter, the reels 3L, 3C, and 3R are referred to as the left reel 3L, the middle reel 3C, and the right reel 3R, respectively. Each of the reels 3L, 3C, and 3R has a reel main body formed in a cylindrical shape, and a translucent sheet material mounted on the peripheral surface of the reel main body. On the surface of the sheet material, a plurality of (for example, 20) patterns are drawn 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 a 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) 11 a, and the liquid crystal display device 11 is used to perform an effect by displaying an image.

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

フロントドア2bの中央には、台座部12が形成されている。この台座部12には、図柄表示領域4と、遊技者による操作の対象となる各種装置が設けられている。   A pedestal portion 12 is formed at the center of the front door 2b. The pedestal portion 12 is provided with the 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 overlapping with 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 allow the reels 3L, 3C, 3R provided behind it to pass through. 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つの領域のうち予め定められたいずれかを組み合わせて構成される擬似的なラインを、入賞か否かの判定を行う対象となるライン(入賞判定ライン)として定義する。   The reel display window 4, when the rotation of the reels 3L, 3C, 3R provided behind it is stopped, among the plurality of types of symbols of each reel 3L, 3C, 3R, the upper, middle and lower stages in the frame One symbol is displayed in each area (3 in total). In the present embodiment, a pseudo line formed by combining any one of predetermined three areas including the upper stage, the middle stage, and the lower stage of the reel display window 4 is an object for determining whether or not to win. 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 mounting portion 15.

情報表示窓14は、リール表示窓4の下部に連続して設けられており、上方に向かって開口している。すなわち、リール表示窓4と情報表示窓14は、連続する1つの開口部として形成されている。この情報表示窓14及びリール表示窓4は、透明の窓カバー16によって覆われている。   The information display window 14 is provided continuously to the lower portion of 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 arranged on the inner surface side of the frame member 13 and cannot be removed from the front surface side of the front door 2b. Further, the frame member 13 has a sheet placing portion 17 that faces the opening of the information display window 14 with the window cover 16 interposed therebetween. Then, a sheet member (information sheet) in which information regarding a game is written is arranged between the sheet placing portion 17 and the window cover 16. Therefore, the information sheet is covered with the window cover 16 having a smooth surface without irregularities or gaps.

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

ストップボタン取付部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 in 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 penetrate. The stop buttons 19L, 19C, 19R are associated with each of the three reels 3L, 3C, 3R, and are provided to stop the rotation adjustment of the corresponding reels. Hereinafter, the stop buttons 19L, 19C, and 19R are referred to as the left stop button 19L, the middle stop button 19C, and the right stop button 19R, respectively.

ストップボタン19L、19C、19Rは、遊技者による操作の対象となる各種装置の一例を示す。また、台座部12には、遊技者による操作の対象となる各種装置として、メダル投入口21、BETボタン22、スタートレバー23が設けられている。   The stop buttons 19L, 19C, 19R are examples of various devices that are targets of operations by the player. In addition, the pedestal portion 12 is provided with a medal insertion 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 insertion slot 21 is provided for receiving medals dropped from the outside by the player. The medals received in the medal insertion slot 21 will be inserted into one game with a predetermined number (for example, 3) set in advance as an upper limit, and the amount exceeding the specified number will be deposited inside the pachi-slot 1. It becomes possible (a so-called credit function).

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

また、フロントドア2bを正面から見てリール表示窓4の左側方には、7セグメントLED(Light Emitting Diode)からなる7セグ表示器24が設けられている。この7セグ表示器24は、特典として遊技者に対して払い出すメダルの枚数(以下、払出枚数)、パチスロ内部に預けられているメダルの枚数(以下、クレジット枚数)等の情報をデジタル表示する。   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, the number of payouts) and the number of medals stored in the pachi-slot (hereinafter, the number of credits). ..

フロントドア2bを正面から見て台座部12の左側には、精算ボタン27が設けられている。この精算ボタン27は、パチスロ1の内部に預けられている外部に引き出す(排出する)ために設けられる。台座部12の下方には、腰部パネルユニット31が設けられている。腰部パネルユニット31は、任意の画像が描かれた装飾パネルと、この装飾パネルを背面側から照明するための光を出射する光源を有している。   A settlement button 27 is provided on the left side of the pedestal portion 12 when the front door 2b is viewed from the front. The settlement button 27 is provided for pulling out (discharging) to the outside stored in the pachi-slot 1. A waist panel unit 31 is provided below the pedestal portion 12. The waist panel unit 31 has 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 opening 32, speaker holes 33L and 33R, and a medal tray unit 34 are provided. The medal payout port 32 guides the medals discharged from the medal selector 201 described later and the medals discharged by driving the 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 a sound effect such as a sound effect and a music according to the effect contents.

[内部構造]
図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. In FIG. 3, the front door 2b is opened, and the middle door 41 provided on the back side of the front door 2b is shown closed to the front door 2b. Further, FIG. 4 shows a state in which the front door 2b is opened and the middle door 41 is opened with respect to the front door 2b. Further, FIG. 5 is an explanatory diagram showing the inside of the cabinet 2a. FIG. 6 is an explanatory diagram showing the back surface side of the front door 2b.

キャビネット2aは、上面板20aと、底面板20bと、左右の側面板20c、20dと、背面板20eを有している(図5参照)。キャビネット2a内部の上側には、キャビネット側スピーカ42が配設されている。このキャビネット側スピーカ42は、取付ブラケット43L、43Rを介してキャビネット2aの背面板20eに取り付けられている。キャビネット側スピーカ42は、例えば、効果音を出力するためのスピーカである。   The cabinet 2a has 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 arranged 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 mounting brackets 43L and 43R. The cabinet side speaker 42 is, for example, a speaker for outputting a sound effect.

キャビネット2a内部を正面から見て、キャビネット側スピーカ42の左側方には、キャビネット側中継基板44が配設されている。このキャビネット側中継基板44は、キャビネット2aの左側面板20cに取り付けられている。キャビネット側中継基板44は、ミドルドア41(図3及び図4参照)に取り付けられた後述する主制御基板71(図13参照)と、ホッパー装置51、メダル補助収納庫スイッチ(不図示)、メダル払出カウントスイッチ(不図示)とを接続する配線の中継を行う。   A cabinet-side relay board 44 is arranged 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 for connecting with a 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 arranged in the center of the cabinet 2a. The amplifier board 45 is attached to a mounting shelf 46 fixed to the left and right side plates 20c and 20d.

また、キャビネット2a内部を正面から見て、アンプ基板45の右側には、外部集中端子板47が配設されている(図5参照)。この外部集中端子板47は、キャビネット2aの右側面板20dに取り付けられている。外部集中端子板47は、メダル投入信号、メダル払出信号及びセキュリティー信号などの信号をパチスロ1の外部へ出力するために設けられている。   Further, when the inside of the cabinet 2a is viewed from the front, an external concentrated terminal board 47 is arranged on the right side of the amplifier board 45 (see FIG. 5). The external centralized terminal board 47 is attached to the right side surface board 20d of the cabinet 2a. The external centralized 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 pachi-slot 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 device 48 is attached to the left side plate 20c of the cabinet 2a. The sub power supply device 48 supplies electric power with an AC voltage of 100 V to the power supply device 53 described later. Further, the AC voltage of 100 V is converted into 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 arranged below the inside 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 of the cabinet 2a. The hopper device 51 has a structure capable of accommodating a large amount of medals and discharging them one by one. For example, when the settlement button 27 (see FIG. 2) is pressed and the medals stored in the pachi-slot are settled, 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 opening 32 (see FIG. 2).

メダル補助収納庫52は、ホッパー装置51から溢れ出たメダルを収納する。このメダル補助収納庫52は、キャビネット2a内部を正面から見て、ホッパー装置51の右側に配置されている。メダル補助収納庫52は、キャビネット2aの底面板20bに係合されており、底面板20bに対して着脱可能に構成されている。   The medal auxiliary storage 52 stores the medals overflowing from the hopper device 51. The medal auxiliary storage 52 is arranged 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 arranged 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 face plate 20c. The power supply device 53 has a power switch 53a and a power 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 required by each unit, and supplies the converted power to each unit.

図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, 41c are provided on 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 with the reel display window 4 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 fixation of the middle door 41.

ミドルドア41には、主制御基板71(図13参照)を収納した主制御基板ケース55と、3つのリール3L、3C、3Rが取り付けられている。3つのリール3L、3C、3Rには、所定の減速比をもったギアを介してステッピングモータが接続されている。   A main control board case 55 accommodating a main control board 71 (see FIG. 13) and three reels 3L, 3C, 3R are attached to the middle door 41. A stepping motor is connected to the three reels 3L, 3C, and 3R via a gear 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 pachi-slot 1 or confirming the setting of the pachi-slot 1. In the present embodiment, the main control board case 55 and the main control board 71 housed in the main control board case 55 constitute a main control board unit.

主制御基板ケース55に収納された主制御基板71は、後述する主制御回路91(図14参照)を構成する。主制御回路91は、内部当籤役の決定、リール3L、3C、3Rの回転及び停止、入賞の有無の判定といった、パチスロ1における遊技の主な流れを制御する回路である。主制御回路91の具体的な構成は後述する。   The main control board 71 housed 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 pachi-slot 1, such as determination of an internal winning combination, rotation and stop of the reels 3L, 3C, and 3R, and determination of presence or absence of a prize. The 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 provided above the middle door 41, and a center speaker 58 is provided above the sub control board case 57. The sub-control board 72 housed in the sub-control board case 57 constitutes a sub-control circuit 101 (see FIG. 15). The sub-control circuit 101 is a circuit that controls execution of effects such as video display. The 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. The sub-control board 72 is a board that relays the wiring that connects the sub-control board 72 and the board arranged around the sub-control board 72. It should be noted that LED boards 62A, 62B, and 62C, which will be described later, can be given as the boards arranged around the sub-control board 72.

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 arranged on both sides of the sub control board case 57 when viewed from the back surface 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 a light source according to the effect executed by the control of the sub control circuit 101 (see FIG. 15). ) Is lit to display the blinking pattern. The gaming machine according to the present embodiment includes a plurality of LED boards in addition to the LED boards 62A, 62B, 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 arranged. The 24h door opening / closing monitoring unit 63 stores a history of opening / closing of the middle door 41. Also, 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参照)に対向している。   A board speaker 64 and lower speakers 65L and 65R are disposed below the middle door 41. 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の具体的な構成については後述する。   A medal selector 201, a medal chute 202, and a door opening / closing monitoring switch 67 are arranged above the lower speaker 65L. The medal selector 201 is a device that determines whether or not the material, shape, etc. of the medal are appropriate, and guides the medal inserted into the medal insertion slot 21 to the hopper device 51 via the slope 203, or Guide to the chute 202. The 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 tubular member, and guides the medals guided by the medal selector 201 and the medals discharged from the hopper device 51 to the medal payout outlet 32 (see FIG. 2).

ドア開閉監視スイッチ67は、フロントドア2bを裏面側から見て、メダルセレクタ201の左側方に配置されている。このドア開閉監視スイッチ67は、パチスロ1の外部へ、フロントドア2bの開閉を報知するためのセキュリティー信号を出力する。   The door open / close monitor switch 67 is arranged on the left side of the medal selector 201 when the front door 2b is viewed from the back side. The door open / close monitor 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 arranged in a region below the reel display window 4 and opened / 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. 81 is a substrate that relays the wiring with 81 (see FIG. 13). The various buttons and switches include, for example, the BET button 22, the settlement button 27, the door opening / closing monitoring switch 67, the BET switch 77 and the start switch 79, 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は上下方向を示す。
<Medal selector configuration>
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 seen from diagonally behind 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 seen obliquely from the front of the pachi-slot 1. FIG. 10 is a perspective view of a later-described select plate 207 of the medal selector 201. FIG. 11 is a diagram showing a route of medals when the medal selector 201 guides the medals to the hopper device 51. FIG. 12 is a diagram showing a route of medals when the medal selector 201 guides the medals to the medal shoot 202. In addition, arrow X shown in FIGS. 7-12 shows the left-right direction of the pachi-slot 1, arrow Y shows the front-back direction of the pachi-slot 1, and 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, Is equipped with.

ベース板部204は、メダルセレクタ201の外枠筐体を構成する略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の後方に折曲するように成型されている。ベース板部204は、パチスロ1の前後方向に直交する一方の平面である後面204bと他方の平面である前面204a(図9参照)を有している。後面204bには、メダルレール210が、パチスロ1の前方へ凹むように、且つ、略L字状に形成されている。メダルレール210の表面には、複数の突条部が形成されている。   The base plate portion 204 is a substantially plate-shaped member that forms the outer frame housing of the medal selector 201, and is formed such that both left and right ends of the pachi-slot 1 are bent rearward of the pachi-slot 1. The base plate portion 204 has a rear surface 204b, which is one plane orthogonal to the front-back direction of the pachi-slot 1, and a front surface 204a (see FIG. 9) which 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に収容される。   A medal entrance 211 for receiving medals inserted from the medal insertion slot 21 (see FIG. 2) is provided at the upper end of the base plate portion 204. The medals inserted into the medal selector 201 from the medal entrance portion 211 move from the upper side to the lower side along the medal rail 210. A medal exit portion 204c (see FIG. 8) is provided below the base plate portion 204. The medals that have moved inside the medal selector 201 are discharged from the medal exit portion 204c and are housed 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 center hole 212 penetrating in the front-rear direction is formed at a substantially middle position of the medal rail 210, and an end portion of the medal pressure 213 (see FIG. 8) is exposed from the center 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 biased by the coil spring 215 so that the medal pressure 213 projects 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) illegal medals that are not made of an appropriate material among the medals moving on the medal rail 210.

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

図9に示すように、アフタメダルプレッシャ218は、ベース板部204の前面204aに回動可能に軸支されている。アフタメダルプレッシャ218の前端部がメダルソレノイド208によってパチスロ1の後方へ押圧されると、アフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   As shown in FIG. 9, the after medal pressure 218 is rotatably supported by the front surface 204 a of the base plate portion 204. When the front end of the after medal pressure 218 is pressed to the rear of the pachi-slot 1 by the medal solenoid 208, the after medal pressure 218 rotates, and the rear end of the after medal pressure 218 comes out from 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-shaped member, and is formed such that the left and right ends of the pachi-slot 1 are bent forward of the pachi-slot 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 side. The cancel shooter 206 guides the medals discharged without passing through the medal exit portion 204c to the medal chute 202 (see FIG. 4). A notch portion 206a, which is cut out in a substantially rectangular shape downward, is formed at an upper portion of a 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-shaped member that covers the medal rail 210 from the rear side. The sub-plate 205 has a flat plate-shaped main body portion 221 and a shaft portion 222 provided on the upper portion of the main body portion 221. A through hole 221a penetrating in the front-rear direction is provided at 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 through 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 around the shaft portion 222. A coil spring 223 is attached to the shaft portion 222. Normally, 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 portion of the medal rail 210 covered by the sub plate 205. That is, the sub plate 205 functions as a guide plate that allows medals to pass through.

ここで、例えば、メダルセレクタ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 biasing 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 medals that move 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 plate body 224 having a substantially trapezoidal plate shape, and a pair of bearing portions formed by bending the left and right ends of the plate body 224 toward the front of the pachi-slot 1. 225 and. In addition, a flange portion 226 formed by bending the pachi-slot 1 forward and bending the rear end portion upward is formed on the upper portion of the plate body 224. Further, a medal stopper portion 227 extending downward is formed on one bearing portion 225.

図8に示すように、プレート本体224は、サブプレート205に覆われていないメダルレール210の略中央部とパチスロ1の前後方向に対向している。   As shown in FIG. 8, the plate body 224 faces the substantially central portion of the medal rail 210 not covered by the sub-plate 205 in the front-back direction of the pachi-slot 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 toward the front of the pachi-slot 1. The flange portion 226 is in contact with one end 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 rearward of the pachi-slot 1 against the biasing 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 can guide the medal to the hopper device 51 without discharging the medal to the cancel shooter 206 side. Further, at this time, the medal stopper portion 227 does not protrude from the lower exposed 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参照)から露出する。   Further, when the medal solenoid 208 is in the OFF state, the flange portion 226 is released from the pressure of the medal solenoid 208 and moves to the front of the pachi-slot 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 ejection position and the medal rail 210 is set to be longer than a predetermined distance. At this time, the flange portion 226 moving to the front of the pachi-slot 1 is pressed, and one end of the medal solenoid 208 moves to the front of the pachi-slot 1. Along with this, the other end of the medal solenoid 208 moves to the rear of the pachi-slot 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 portion 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 it is at the ejection 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 meets the standard size, the select plate 207 in the guide position contacts the upper part of the moving medal and moves the medal to the medal exit portion 204c (see FIG. 8). ) To. The medal pushes the medal pressure 213 toward the front of the pachi-slot 1 when being guided by the select plate 207. In FIG. 11, the sub-plate 205 of the medal selector 201 and the cancel shooter 206 are not shown.

一方、図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, even if the medals moving on the medal rails 210 satisfy the standard size, the select plate 207 in the ejection position has a large distance between the plate body 224 and the medal rails 210. Therefore, the medal cannot be guided to the medal exit portion 204c (see FIG. 8). Further, the medal is pushed out to 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 ejected toward the cancel shooter 206. 12, the sub-plate 205 and the cancel shooter 206 of the medal selector 201 are omitted as in FIG.

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

また、メダルレール210上を移動するメダルが規格寸法よりも小径の場合、セレクトプレート207がガイド位置にあっても、メダルはセレクトプレート207に案内されず、メダルプレッシャ213に押し出され、キャンセルシュータ206に向けて排出される。   Further, when the medal moving on the medal rail 210 has a diameter smaller than the standard size, even if the select plate 207 is at 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. 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 substrate 230 and a second substrate 231, and is a unit that determines whether an object moving on the medal rail 210 is a regular medal. Is. A CMOS image sensor 232 (see FIG. 16) and an LED 233 (see FIG. 16) are provided on the first substrate 230. The second substrate 231 is provided with a control LSI 234 (see FIG. 16) communicatively and controllably connected to the CMOS image sensor 232 and the LED 233. The first substrate 230 and the second substrate 231 are connected by a BtoB (Board-to-Board) type connector (not shown), and the leg portions 235 provided at the corners of the respective substrates 230 and 231 are used. It is fixed. The specific configuration of the circuit of the camera unit 209 will be described later. Further, in the present embodiment, the mode in which the camera unit 209 is configured with the two substrates 230 and 231 has been described, but instead of this, one substrate provided with the CMOS image sensor 232, the LED 233, and the control LSI 234 may be used. 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 the notch 206a in the upper portion of the cancel shooter 206. The CMOS image sensor 232 (see FIG. 16) is provided in a substantially central portion of the first substrate 230. The CMOS image sensor 232 images a medal moving 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 surface light around the CMOS image sensor 232, and illuminates the medal moving on the medal rail 210. 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 the medal moving on the medal rail 210 is a regular medal. In the present 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 206a has been described, but the mode in which the camera unit is fixed is not limited to this. Not done. For example, a mounting rail is provided between the first substrate 230 and the second substrate 231, a recess is provided in the upper portion of the cancel shooter 206, and the mounting rail is fitted into this recess, and then the mounting rail and the cancel shooter 206 are provided. May be fixed with screws or an adhesive.

<パチスロの回路構成>
次に、パチスロ1が備える回路の構成について、図13〜図20を参照して説明する。まず、図13を参照してパチスロ1が備える回路全体の概要について説明する。図13は、パチスロ1が備える回路全体のブロック構成図である。
<Pachislot circuit configuration>
Next, the configuration of the circuit included in the pachi-slot 1 will be described with reference to FIGS. First, an overview of the entire circuit of the pachi-slot 1 will be described with reference to FIG. FIG. 13 is a block configuration diagram of the entire circuit included 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 arranged on the middle door 41 and a sub-control board 72 arranged on the front door 2b. On the main control board 71, there are a reel relay terminal board 74, a setting key type switch 56, an external centralized terminal board 47, a hopper device 51, a medal auxiliary storage switch 75, and a power supply board 53b of the power supply device 53. It is connected. The setting key type switch 56, the external centralized terminal plate 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 centralized terminal board 47 and the hopper device 51 have been described above, the description thereof will be omitted.

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

メダル補助収納庫スイッチ75は、メダル補助収納庫52のスイッチ貫通孔(非表示)を貫通している。このメダル補助収納庫スイッチ75は、メダル補助収納庫52がメダルで満杯になっているか否かを検出する。   The medal auxiliary storage case switch 75 penetrates a switch through hole (not shown) of the medal auxiliary storage case 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 53a is connected to a power board 53b of the power supply device 53. The power switch 53a is turned on when the pachi-slot 1 is supplied with necessary power.

また、主制御基板71には、ドア中継端子板68を介して、メダルセレクタ201、ドア開閉監視スイッチ67、BETスイッチ77、精算スイッチ78、スタートスイッチ79、ストップスイッチ基板80、遊技動作表示基板81及び副中継基板61が接続されている。ドア開閉監視スイッチ67及び副中継基板61については、上述したため、説明を省略する。メダルセレクタ201の回路構成については後述する。   Further, on the main control board 71, via the door relay terminal board 68, the medal selector 201, the door opening / closing monitoring switch 67, the BET switch 77, the settlement switch 78, the start switch 79, the stop switch board 80, the game operation display board 81. And the sub relay board 61 is connected. Since the door open / close monitor 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 board 80 is a board that constitutes a circuit for stopping the spinning reel and a circuit for displaying the reel that can be stopped by means of LEDs or the like. The stop switch board 80 is provided with a stop switch. The stop switch detects that the stop buttons 19L, 19C, 19R are 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 receiving the insertion of medals, when the three reels 3L, 3C, and 3R are rotatable and when replaying. It is a substrate for making. The 7-segment display 24 and the LED 82 are connected to the game operation display board 81. The LED 82 lights, for example, a mark indicating 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 opening / closing monitoring unit 63 are connected to the sub control board 72 via a sub relay board 61. The LED boards 62A, 62B, 62C and the 24h door opening / closing monitoring unit 63 have been described above, and thus 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 speakers (not shown) provided on the front door 2b.

また、副制御基板72には、ロムカートリッジ基板86と、液晶中継基板87が接続されている。これらロムカートリッジ基板86及び液晶中継基板87は、副制御基板72と共に副制御基板ケース57に収納されている。ロムカートリッジ基板86は、演出用の画像(映像)、音声、LED基板62A、62B及びその他のLED基板(不図示)、通信のデータを管理するための基板である。液晶中継基板87は、副制御基板72と液晶表示装置11とを接続する配線を中継する基板である。   A ROM cartridge substrate 86 and a liquid crystal relay substrate 87 are connected to the sub control substrate 72. The ROM cartridge board 86 and the liquid crystal relay board 87 are housed in the sub control board case 57 together with the sub control board 72. The ROM cartridge board 86 is a board for managing images for production (video), sound, LED boards 62A and 62B, other LED boards (not shown), and communication data. The liquid crystal relay board 87 is a board that relays the 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 configured by the main control board 71 will be described with reference to FIG. FIG. 14 is a block diagram showing 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 has 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 above-mentioned hopper device 51 constitute the game medium payout device of the present invention.

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

メインCPU93には、クロックパルス発生回路96、分周器97、乱数発生器98及びサンプリング回路99が接続されている。クロックパルス発生回路96及び分周器97は、クロックパルスを発生する。メインCPU93は、発生されたクロックパルスに基づいて、制御プログラムを実行する。乱数発生器98は、予め定められた範囲の乱数(例えば、0〜65535)を発生する。サンプリング回路99は、発生された乱数の中から1つの値を抽出する。   A clock pulse generation circuit 96, a frequency divider 97, a random number generator 98, and a sampling circuit 99 are connected to the main CPU 93. The clock pulse generation circuit 96 and the frequency divider 97 generate clock pulses. The main CPU 93 executes the 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の回転により発光部と受光部との間に介在される検知片を備えたリール位置検出部(不図示)により検出する。   After detecting the reel index, the main CPU 93 counts the number of times pulses are output to the stepping motors of the reels 3L, 3C, 3R. 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 rotated once. The reel index is provided, for example, at a predetermined position of each reel 3L, 3C, 3R with an optical sensor having a light emitting unit and a light receiving unit, and the rotation of each reel 3L, 3C, 3R makes the light emitting unit and the light receiving unit. It is detected by a reel position detection unit (not shown) having a detection piece interposed therebetween.

ここで、各リール3L、3C、3Rの回転角度の管理について、具体的に説明する。ステッピングモータに対して出力されたパルスの数は、メインRAM95に設けられたパルスカウンタによって計数される。そして、図柄1つ分の回転に必要な所定回数(例えば16回)のパルスの出力がパルスカウンタで計数される毎に、メインRAM95に設けられた図柄カウンタが1ずつ加算される。図柄カウンタは、各リール3L、3C、3Rに応じて設けられている。図柄カウンタの値は、リール位置検出部(不図示)によってリールインデックスが検出されるとクリアされる。   Here, the management of the rotation angle of each reel 3L, 3C, 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. Then, each time the pulse counter counts a predetermined number of times (for example, 16 times) of pulse output required to rotate one symbol, 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 the reel index is detected by the reel position detector (not shown).

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

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

[副制御回路]
次に、副制御基板72により構成される副制御回路101について、図15を参照して説明する。図15は、パチスロ1の副制御回路101の構成例を示すブロック図である。
[Sub control circuit]
Next, the sub control circuit 101 configured by the sub control board 72 will be described with reference to FIG. FIG. 15 is a block diagram showing 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 response to the command transmitted from the main control circuit 91. The ROM cartridge board 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, in the control program, a main board communication task for controlling communication with the main control circuit 91, and a performance registration task for extracting a random number value for performance and determining and registering the performance content (performance data). Is included. In addition, a drawing control task that controls the display of an image by the liquid crystal display device 11 (see FIG. 2) based on the determined effect contents, a lamp control task that controls the output of light by a light source such as the LED 85, and speakers 58, 64, 65L. , 65R, and the like, including 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 image creation. In addition, a storage area for storing sound data regarding BGM and sound effects, a storage area for storing lamp data regarding a pattern of turning on / off light, and the like are included.

サブRAM103は、決定された演出内容や演出データを登録する格納領域や、主制御回路91から送信される内部当籤役等の各種データを格納する格納領域が設けられている。   The sub RAM 103 is provided with a storage area for registering the determined effect contents and effect 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 a frame buffer) 105, and the driver 106 create a video according to the animation data specified by the effect contents, 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 the speakers 58, 64, 65L, 65R and the like to output sounds such as BGM according to the sound data specified by the effect contents. In addition, the sub CPU 102 controls the turning on and off of the light source such as the LED 85 according to the lamp data specified by the effect contents.

<メダルセレクタの回路構成>
次に、メダルセレクタ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 showing 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. Further, the medal selector 201 is connected to the main control board 71 via the door relay terminal plate 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 ASIC (Application Specific Integrated Circuit) or an FPGA (Field-programmable Gate Array), and is electrically connected to the CMOS image sensor 232 and the LED 233. Has been done. The control LSI 234 controls the light emission of the LED 233. Further, the control LSI 234 determines whether or not 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. .. The CMOS image sensor 232 used in the present embodiment is a CMOS image sensor having a resolution of 648 × 488 pixels and a frame rate of 240 fps (Frames Per Second), but is not limited to such an image sensor. It need not be done (an imager other than CMOS could also be used). A light emitting device other than the LED can also be used.

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

制御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 counting circuit 246. The control LSI 234 also 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. The devices forming the control LSI 234 are connected to each other via a bus, and the control LSI 234 of the present 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に出力する。   Further, 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 Bayer image 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) that transfers data between a memory and an input / output device without passing through the host controller 241. In the present embodiment, when data transfer is performed between the memory of each circuit described above 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, the DMAC 252 is controlled by the control of the DMAC 252 for at least one transfer / storing of the predetermined data as necessary. However, such a DMA transfer is not performed, and the DMAC 252 may be deleted from the configuration. You can also That is, in the present embodiment, the DMAC 252 that controls the DMA for directly transferring the data transfer between each circuit and the SRAM 243 without passing through the host controller 241 constitutes the direct transfer control means.

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に出力する。   Upon 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 into Y (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 the data relating to the luminance in this 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 the data relating to the hue and the saturation in this 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. Further, a processing function of converting the ISI circuit 251 (and the host controller 241 that controls the ISI circuit 251) and part of the ISP circuit 245 (at least the RGB Bayer image into image data (YUV image data) corresponding to the YUV color space). 18) and the host controller 241 for controlling the same correspond to the conversion unit 263 in FIG. The captured image 262 is sent from the image capturing unit 261 to the converting unit 263.

メダルカウント回路246は、ISP回路245から出力された輝度に係るデータに基づいてカウント処理を行う。カウント処理において、メダルカウント回路246は、画像における所定の領域であるカウント領域の輝度に係るデータと、カウントしきい値とを比較し、背景差分法によってメダルが通過したか否かを判定する。カウントしきい値とは、正規メダルの画像におけるカウント領域の輝度に係るデータに基づいて予め定められているしきい値である。メダルカウント回路246は、差分が小さければメダルが通過したと判定し、差分が大きければメダルが通過していない(メダル以外のものが通過した)と判定する。そして、メダルカウント回路246は、判定結果をSRAM243に記憶させる。   The medal counting circuit 246 performs a counting process based on the brightness-related data output from the ISP circuit 245. In the counting process, the medal counting circuit 246 compares the data relating to the luminance of the count area, which is a predetermined area in the image, with the count threshold value, and determines whether or not the medal has passed by the background difference method. The count threshold value is a threshold value that is predetermined based on the data relating to the brightness of the count area in the image of the regular medal. The medal counting circuit 246 determines that the medal has passed if the difference is small, and determines that the medal has not passed (if something other than the medal has passed) if the difference is large. Then, the medal counting 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 medals used by the pachi-slot 1 as a regular medal, but it is preferable to set the count area so that the rotation angle of the medals does not significantly affect the brightness difference. For example, when using a regular medal 400 having the same markings (patterns) on both sides as shown in FIG. 19A, one of the regular medals in the area is shown in the image data 402 (see FIG. 19B) of this regular medal 400. The place (area 403 in FIG. 19B) is set as the count area so that the marking (pattern) on the surface does not change depending on the rotation angle of the medal, that is, the rotation angle of the medal does not significantly affect the difference in brightness. Is preferred. Also, the narrower the range of the count area, the faster the counting process can be.

カラー認識回路247は、ISP回路245から出力された色相と彩度に係るデータに基づいて色判定処理を行う。色判定処理において、カラー認識回路247は、まず、画像データの中心付近の色相と彩度に係るデータの積算値をベクトルで表現し(ベクトル変換し)、3次元空間上でベクトルの角度を計算する。次に、カラー認識回路247は、計算したベクトルの角度と、所定の色しきい値とを比較して、正規メダルの色と一致するか否かを判定する。所定のしきい値は、正規メダルに係る画像データについて上述した処理と同様の方法で計算したベクトルの角度に基づいて予め定められているしきい値(例えば、比較対象となる正規メダルに係る3次元空間上のベクトルの個々の座標(XYZ)上の角度の±10度以内)である。そして、カラー認識回路247は、判定結果をSRAM243に記憶させる。   The color recognition circuit 247 performs color determination processing based on the hue and saturation data output from the ISP circuit 245. In the color determination process, the color recognition circuit 247 first expresses the integrated value of the data relating to the hue and saturation near the center of the image data as a vector (vector conversion) and calculates the angle of the vector in the three-dimensional space. To do. Next, the color recognition circuit 247 compares the calculated angle of the vector with a predetermined color threshold value and determines whether or not the color matches the color of the regular medal. The predetermined threshold value is a predetermined threshold value based on the angle of the vector calculated by the same method as the above-described process for the image data of the regular medals (for example, 3 for the regular medals to be compared). It is within ± 10 degrees of the angle on each coordinate (XYZ) of the vector in the dimensional space). Then, 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 fisheye correction scaler circuit 248 acquires image data obtained by Y-converting the RGB Bayer image from the SRAM 243 (luminance of each pixel) by, for example, DMA transfer, and performs fisheye correction processing. In the fisheye correction process, the fisheye correction scaler circuit 248 performs fisheye correction (for example, bilinear interpolation) on the acquired image data to create 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 scaler circuit 248 are included in the conversion unit 263 in FIG. 18.

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

ここで、画像認識DSP回路242の一部(上述の、取得した縮小画像データを、非線形拡散フィルタを通してエッジ画像データに変換する処理機能部)、及びこれを制御するホストコントローラ241は、図18の変換部263に含まれる。   Here, a part of the image recognition DSP circuit 242 (the above-mentioned processing function unit for converting the acquired reduced image data into edge image data through a non-linear diffusion filter) and the host controller 241 for controlling the same 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 acquires edge image data from the SRAM 243 by, for example, DMA transfer, and acquires the acquired edge image data (for example, the image data 402 shown in FIG. 19B) once, for example, once. The processed image data is generated by accumulating (overlapping) the converted image data for 360 degrees generated by being rotated by. The processed image data generated by the image recognition accelerator circuit 249 is stored in the SRAM 243 by, for example, DMA transfer. As an example in which the processed image data is generated (combined), the processed image data 405 of the regular medal 400 shown in FIG. 19A is shown in FIG. The processed image data 405 is image data (gradient average image data) in which the edge image data in the shape of “A” is integrated while rotating, for example, 360 degrees (that is, integrated 360 times). Are simplified and shown.

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

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

ホストコントローラ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. Further, the host controller 241 outputs a signal related to a lighting instruction or a light extinguishing instruction to the LED 233 via the GPIO 250. Further, the host controller 241 outputs the determination result regarding the count process, the determination result regarding the color determination process, and the determination result regarding the marking determination process stored in the SRAM 243 via the GPIO 250.

なお、上述の、色判定処理または刻印判定処理に係る判定結果を出力するGPIO250とこれを制御するホストコントローラ241は、図18に示す入出力部266に対応し、判定結果は、図18の判定結果268に対応する。   The GPIO 250 that outputs the determination result of the color determination process or the marking determination process and the host controller 241 that controls the GPIO 250 described above correspond to the input / output unit 266 illustrated 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 the memory has parameters and data (for example, for example) used for various processes. Image data) is stored. Also, these parameters and data can be stored in the SRAM 243 or the flash memory 244.

[画像認識アクセラレータ回路の構成]
次に、画像認識アクセラレータ回路249の構成について、図21を参照して説明する。図21は、画像認識アクセラレータ回路249の回路構成例を示すブロック図である。
[Image recognition accelerator circuit configuration]
Next, the configuration of the image recognition accelerator circuit 249 will be described with reference to FIG. FIG. 21 is a block diagram showing 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 includes a storage circuit such as a DRAM). Is equipped with. The target image data 275 generated based on the image data of the medal imaged by the CMOS image sensor 232 and stored in the SRAM 243 or the like is input to the input frame buffer 271.

画像認識アクセラレータ回路249は、DMAC252の制御によって、ホストコントローラ241を介さずにSRAM243にアクセスし、対象画像データ275をSRAM243から入力フレームバッファ271に転送(DMA転送)することが可能である。すなわち、画像認識アクセラレータ回路249とSRAM243との間では、ホストコントローラ241のCPUを介さずにデータ転送が行われる。   Under the control of the DMAC 252, the image recognition accelerator circuit 249 can access the SRAM 243 without passing through the host controller 241 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 one frame of target image data 275. The DMAC 252 controls to read the target image data 275 stored in the SRAM 243 and write the data in 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に書き込まれる。   Further, 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, 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 the plurality of pixel data in the buffer into the input frame buffer 271. By repeating this processing a plurality of times, the target image data 275 for one frame is written in 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 after the coordinate conversion is input to the image processing circuit 273. When the 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, the image data subjected to the coordinate conversion by the coordinate conversion circuit 272 is referred to as “converted image data”, and the image data before the coordinate conversion is referred to as “target image data”.

また、座標変換回路272には、メモリ274に記憶されている変換パラメータ280が提供される。変換パラメータ280は、例えば、SRAM243から、画像認識アクセラレータ回路249の初期設定といったタイミングでコピーされたものである。   Further, the coordinate conversion circuit 272 is provided with the conversion parameter 280 stored in the memory 274. The conversion parameter 280 is, for example, 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 the plurality of converted image data 276 obtained by the coordinate conversion circuit 272, and outputs the processed image data 277 obtained thereby. In the present specification, image data generated as a result of image processing by the image processing circuit 273 (for example, image data obtained by integrating a plurality of pieces 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. When the DMAC 252 has a buffer, the DMAC 252 temporarily stores the 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 into the SRAM 243. By repeating this processing a plurality of times, the processed image data for one frame is written in the SRAM 243.

[座標変換回路の動作と構成]
ここでは、まず座標変換回路272の動作の概要を説明した上で、座標変換回路272の構成及び詳細な動作について説明する。
[Operation and configuration of coordinate conversion circuit]
Here, first, an outline of the operation of the coordinate conversion circuit 272 will be described, 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 conversion circuit]
The coordinate conversion circuit 272 uses the target image data 275 for one frame stored in the input frame buffer 271 to perform a plurality of coordinate conversions. Specifically, the coordinate conversion circuit 272 individually performs a plurality of coordinate conversions on the target image data 275, as shown in FIG. 22, 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 the coordinate conversion for performing the affine transformation of the image on the target image data 275. 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 is the rotation of the subject reflected 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 individually 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 individually 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 the same circuit as 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 the configuration in which predetermined processing is performed by executing a program by a CPU, for example.

図23に示すように、メモリ274には、座標変換で使用される変換パラメータ280が記憶されている。変換パラメータ280には、複数の座標変換において必要な複数の変換パラメータ280が含まれている。変換パラメータ280は、後述するように、ホストコントローラ241によって、SRAM243からメモリ274に書き込まれる。   As shown in FIG. 23, the memory 274 stores conversion parameters 280 used in 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 showing an example of how 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 parameters 280 shown in FIG. 24 are, 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 the conversion parameters 280 of 360 stored in the memory 274 are viewed in ascending order of the address of the storage area in which they are stored, the conversion parameters 280 of 360 are arranged in the descending order of the 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 the rotation angle according to the conversion parameter 280. In the present embodiment, the target image data 275 is assumed to be 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 the plurality of conversion parameters 280 from the memory 274 and supplies the conversion parameters 280 to the conversion circuit 281. As a result, the conversion circuit 281 is sequentially input with the plurality of conversion parameters 280 stored in the memory 274 by the function of the control circuit 282, and the conversion circuit 281 is input each time the conversion parameter 280 is input. The target image data 275 in the input frame buffer 271 is rotated based on the conversion parameter 280, and the converted image data 276 thus obtained 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 (in the example of FIG. 24, 360 conversion parameters (280-1 to 280-360)). Information 290 is stored. The control circuit 282 sequentially reads the conversion parameter 280 from the memory 274 based on the specific information 290 of 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 showing an example of the specific information 290. As shown in FIG. 25, the specific information 290 includes, for example, the number of use parameters 291, the use start position 292, and the use interval 293. In the present embodiment, as described above, the coordinate conversion circuit 272 sequentially and continuously performs coordinate conversion of the target image data 275 based on the 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, the rotation angle (which performs coordinate conversion) is smaller.

使用パラメータ数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 the coordinate conversion is performed once, the number of used parameters 291 is the number of coordinate conversion times 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 times of coordinate conversion on one target image data 275, and 180 converted image data having different rotation angles from each other. 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 used first, that is, the address (in the storage area of the memory 274) where the conversion parameter 280 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)が使用される。   When the coordinate conversion is performed, the use interval 293 is used to determine how many conversion parameters 280 are used from the conversion parameters 280 used in the previous coordinate conversion in the plurality of conversion parameters 280 arranged in the order of smaller rotation angles. Shows. For example, when the usage interval 293 indicates “2”, when performing the coordinate conversion, 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 °- The conversion parameter 280 separated from 2) by 2 (for example, the conversion parameter 280-4 for rotating the target image data 275 by 4 °) 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 ° by 2 °, the use parameter number 291 becomes “180” and the use start position 292 becomes “0001h. , And the use interval 293 becomes “2”. In this case, the control circuit 282 causes the conversion parameter 280-2 with a rotation angle of 2 °, the conversion parameter 280-4 with a rotation angle of 4 °, the conversion parameter 280-6 with a rotation angle of 6 °, ... The conversion parameters 280-358 having a rotation angle of 358 ° and the conversion parameters 280-360 having a rotation angle of 360 ° are sequentially read and sequentially input to the conversion circuit 281. As a result, in the conversion circuit 281, as shown in FIG. 26, 180 converted image data 276 (276-1, 276-2, 276-3, ..., 276-179, 276) having different rotation angles by 2 °. -180) are sequentially generated.

このほか、図25の例において、使用パラメータ数291に「360」を設定し、使用開始位置292に「0000h」を設定し、使用間隔293に「1」を設定すると、入力フレームバッファ271に記憶された1つの対象画像データ275が1°から360°まで1°ずつ回転させられて、360の変換後画像データ276が生成される。   In addition, in the example of FIG. 25, if the number of used parameters 291 is set to “360”, the use start position 292 is set to “0000h”, and the use interval 293 is set to “1”, it is stored in the input frame buffer 271. The obtained one 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が生成される。   Further, the number of used parameters 291 is set to "36", 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 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 number of use parameters 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 are 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. Further, the conversion circuit 281 outputs the plurality of pixels forming 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 the coordinate conversion circuit 272 should perform by the specification information 290. ..

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

また、1つの制御LSI234やメダルセレクタ201において、複数の特定情報290が使用されてもよい。この場合、座標変換回路272は、ある対象画像データ275に対して座標変換を行う場合には第1特定情報290−1を使用し、他の対象画像データ275’に対して座標変換を行う場合には第1特定情報290−1とは異なる第2特定情報290−2を使用する。これにより、座標変換回路272は、対象画像データごとに異なる座標変換を行うことができる。   Further, a plurality of pieces 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 at other target image data 275 ′. For this, 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 addition, in the present embodiment, the specific information 290 is configured to include the number of use parameters 291, the use start position 292, and the use interval 293, but some information may 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 a pixel does not exist at the coordinate CZ corresponding to a certain coordinate Z in the converted image data 276, the pixel data at the corresponding coordinate CZ is a plurality of pixels around the corresponding coordinate CZ. It is obtained by interpolation using the pixel data of a plurality of pixels existing at the coordinates PCZ. For this pixel interpolation, for example, bilinear interpolation or bicubic interpolation is used.

図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, respectively. 4 coordinates A0, B0, C0, 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 forming the converted image data 276 based on the four coordinates A0, B0, C0, D0 included in the input conversion parameter 280. A plurality of coordinates in the target image data 275, which respectively correspond to Then, the conversion circuit 281 determines the pixel data at each of the plurality of coordinates obtained for the target image data 275 based on the pixel data of the plurality of pixels forming the target image data 275. At this time, pixel interpolation is used as needed. After that, the conversion circuit 281 adopts the pixel data at the corresponding coordinates in the target image data 275 as the pixel data at each coordinate in the converted image data 276. Thereby, in the conversion circuit 281, the image represented by the target image data 275 is rotated based on the input conversion parameter 280, and a rotated image is generated.

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

[画像処理回路の動作と構成]
ここでは、まず画像処理回路273の動作の概要を説明した上で、画像処理回路273の構成及び詳細な動作について説明する。
[Operation and configuration of image processing circuit]
Here, first, an outline of the operation of the image processing circuit 273 will be described, 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を生成する。
[Outline of operation of image processing circuit]
As shown in FIG. 28, the image processing circuit 273 synthesizes a plurality of post-conversion image data 276 generated by the coordinate conversion circuit 272, and the processed image data 277 thus obtained is output to the SRAM 243 (DMA). Output (by transfer). The image processing circuit 273 has a frame memory capable of storing one frame of image data, and uses the frame memory to generate processed image data 277.

図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 accumulating 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 uses the converted image data 276-1 generated first by the conversion circuit 281 (for example, the converted image data 276-1 whose rotation angle is 2 ° in the example of FIG. 26). Corresponding to) is 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, in the example of FIG. 26, corresponds to the converted image data 276-2 having a rotation angle of 4 °). Is added to the first converted image data 276-1 in the frame memory to generate once processed image data 277-1. Here, the image processing circuit 273 stores the one-time 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, in the example of FIG. 26, corresponds to the converted image data 276-3 having a rotation angle of 6 °). Is 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に出力される。   After that, 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 whose rotation angle is 360 ° in the example of FIG. 26). Is added to (N-2) times processed image data 277- (N-2) in the frame memory to generate (N-1) times processed image data 277- (N-1). .. This (N-1) times processed image data 277- (N-1) becomes processed image data 277. The image processing circuit 273 stores the processed image data 277 in the frame memory. After that, 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は、画像データを処理する一種のデータ処理装置である。
[Structure of image processing circuit]
FIG. 30 is a diagram showing the configuration of the image processing circuit 273. As shown 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 a configuration in which predetermined processing is performed by executing a program by a CPU, for example. 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, SRAM. The frame memory 309 can store image data for one frame (one image), for example. Further, the frame memory 309 may be configured to be able 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 the data read from the frame memory 309, and further controls to output the data to the SRAM 243 (by DMA transfer). Also, the output control unit 308 can be configured to have, as operation modes, a DMA output mode in which input data is output by DMA transfer and a non-DMA output mode in which input data is output regardless of 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 the 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. By the storage controller 300 controlling the frame memory 309, data is written in the frame memory 309 or data is read from the frame memory 309. The output control unit 308 controls the output by the DMA transfer of the data read from the frame memory 309 under the control of 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 image to be added to the second post-conversion image data 276-2 becomes the first post-conversion image data 276-1, and the m-th (m is a variable, 3 ≦ m ≦. The image to be added to 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". Then, each of the plurality of pixel data forming the first image data is referred to as “first pixel data”, and each of the plurality of pixel data forming the second image data is referred to as “second pixel data”.

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

本実施形態において、座標変換回路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, for each pixel, a plurality of pixel data forming the image data of the converted image data 276, 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 the addition processing. The write buffer 306 can store pixel data for four pixels, for example. 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 to the frame memory 309 at once by the control of the frame memory 309 by the storage controller 300. By repeating such a writing process, pixel data is repeatedly written in 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, pixel data for four pixels in the write buffer 306 is stored in the frame memory 309 and written in the storage area of the same address of the original image data read out. When the data in the write buffer 306 is written in the frame memory 309, the written data is erased from the write buffer 306. As described above, when the image data after the image processing is written in the frame memory 309, the image data is erased from the write buffer 306, and therefore, immediately after the image data is written, the write request output unit 302 outputs the image data. Requests become possible, and as a result, efficient writing of image data to the write buffer 306 is sequentially performed.

記憶制御部300によるフレームメモリ309に対する制御によって、フレームメモリ309から、4画素単位で画素データが読み出される。つまり、フレームメモリ309に対する1回のリードアクセスで、フレームメモリ309から、4画素分の画素データが読み出される。フレームメモリ309から一度に読み出された4画素分の画素データはリードバッファ307に書き込まれる。   By the control of the frame memory 309 by the storage controller 300, pixel data is read from the frame memory 309 in units of 4 pixels. 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 at once from the frame memory 309 is written in 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 L-th (L is a variable, 2 ≦ L ≦ N) converted image data 276-L pixel data, the addition processing unit 305 outputs the read buffer 307. The pixel data to be added is read. 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 (L-1) times processed image data 277- (L-1) pixel data.

加算処理部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) times processed image data 277- (L-1) in the write buffer 306. The pixel data of the write buffer 306 is stored in the frame memory 309. The addition processing unit 305 performs similar processing each time pixel data is input from the coordinate conversion circuit 272. As a result, the image data of the processed image data 277 (that is, (N-1) times processed image data 277- (N-1)) is stored in the frame memory 309. When the data is read from the read buffer 307, the read data is erased from the read buffer 307. As described above, when the image data to be subjected to the image processing is read out for the image processing, the image data is erased from the read buffer 307. Therefore, immediately after the image data is read out, the first image data is read out. Requests can be made from the read request output unit 301, 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 addition target pixel data in the read buffer 307, and performs (L-1) times processing. The 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 addition target pixel data of the input pixel data is the first converted image data 276-1. In, the pixel data at the same position as the input pixel data. 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 with respect to 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 under the 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 while the data is being read from the frame memory 309.

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

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

画像処理回路273では、フレームメモリ309のあるアドレスの記憶領域に記憶されている4画素分の画素データは、フレームメモリ309から読み出されて、一旦、リードバッファ307に記憶された後、加算処理部305で加算処理が実行される。そして、加算処理された4画素分の画素データは、ライトバッファ306に一旦記憶された後、フレームメモリ309(当該あるアドレスと同じアドレスの記憶領域)に書き戻される。   In the image processing circuit 273, the pixel data of four pixels stored in the storage area of a certain address of the frame memory 309 is read from the frame memory 309, temporarily stored in the read buffer 307, and then added. The addition processing is executed in the unit 305. Then, the pixel data of four pixels that have been subjected to the addition processing are temporarily stored in the write buffer 306 and then written back to the frame memory 309 (a storage area at 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 the 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 at once from the frame memory 309, 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 the control of the read buffer 307 by the storage controller 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. When the buffer becomes full, the DMAC 252 controls to transfer the pixel data of a plurality of pixels in the buffer to the SRAM 243. As a result, the SRAM 243 stores the processed image data 277 generated by the image recognition accelerator circuit 249. 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 data in the buffer to the SRAM 243 when the amount of data in the buffer exceeds a predetermined amount.

[画像処理回路の記憶制御部における詳細な動作]
記憶制御部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 reading process of reading the pixel data of the addition target processed by the addition processing unit 305 from the frame memory 309. The storage control unit 300 also performs a writing process of 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 the pixel data subjected to the addition processing by the addition processing unit 305. Then, the storage control unit 300 executes the second reading process of reading 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 a request to execute the first read process. The write request output unit 302 outputs a write request that is a write request execution request. The second read request output unit 303 outputs a second read request that is a request to execute 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, to output a first read request signal indicating the first read request. The first read request signal includes the address of the storage area in the frame memory 309 where the 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, to output 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 the 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, respectively, based on mutually independent criteria. To do.

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

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

また、第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 availability of the buffer of the DMAC 252. For example, the second read request output unit 303 outputs the second read request when the buffer is empty. Alternatively, the second read request output unit 303 outputs the second read request when the free space of the buffer is equal to or larger than a predetermined amount (for example, the data amount of pixel data of 4 pixels or more). In other words, the second read request output unit 303 outputs the second read request when the amount of data that can be stored in the buffer is equal to or larger than the predetermined amount.

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

このように、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303は、互いに独立した基準に基づいて、第1読出要求、書込要求、及び第2読出要求をそれぞれ出力することから、第1読出要求、書込要求、及び第2読出要求の少なくとも2つの要求が競合することがある。つまり、第1読出要求出力部301、書込要求出力部302、及び第2読出要求出力部303の少なくとも2つから同時に要求が出力されることがある。   As described above, 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 criteria independent of each other, and the first read request, the write request, and the second read request. Since each request is output, at least two requests of the first read request, the write request, and the second read request may conflict with each other. 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 competing requests when at least two of the first read request, the write request, and the second read request conflict. There is.

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

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

調停部304は、第1読出要求に応じた処理を行う場合には、第1読出要求出力部301から入力される第1読出要求信号に含まれるアドレスと、リード信号とをフレームメモリ309に出力する。これにより、フレームメモリ309における、第1読出要求信号に含まれるアドレスの記憶領域から4画素分の画素データが読み出され、読み出された画素データがリードバッファ307に書き込まれる。調停部304が第1読出要求に応じた処理を行う際には、出力制御部308が非DMA出力モードで動作していることから、フレームメモリ309から読み出されたデータは出力制御部308からSRAM243等に出力されることはない。   When performing processing according 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 of 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 in the read buffer 307. When the arbitration unit 304 performs the 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における、書き込み要求信号に含まれるアドレスの記憶領域に対して書き込まれる。   When performing processing in response to a write request, the arbitration unit 304 reads out pixel data of four pixels from the write buffer 306 and outputs the pixel data to the frame memory 309, and at the same time, the writing input from the write request output unit 302. The address included in the add request signal and the write 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 performing 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. As a result, pixel data of 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 of four pixels is output from the output controller 308 to 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 immediately obtained in the coordinate conversion circuit 272. As a result, the pixel data of the processed image data 277 is obtained. 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. It is set higher than the priority of the read request. However, the method of assigning the 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 usage rate of the control LSI 234 is always high, and it is difficult to transfer the data to the SRAM 243. When the transfer rate of the processed image data 277 does not increase, 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 made higher than the priority of the second read request, the processed image data 277 stored in the frame memory 309 will not be output from the image processing circuit 273 forever. 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全体での処理速度を向上することができる。   Further, for example, when the DMAC 252 includes a buffer, the bus utilization 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, the buffer of the DMAC 252 is unlikely to have a vacancy. Indicates that 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 made higher than the priority of the second read request, the processed image data 277 stored in the frame memory 309 will not be output from the image processing circuit 273 forever. 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全体の処理速度を向上させることができる。   In this way, in the storage control unit 300, when at least two requests of the first read request, the write request, and the second read request conflict, 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 prevent a process at a specific output unit of 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 such 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 calculating circuit for obtaining a bus usage rate is provided in the control LSI 234, and the image processing circuit 273 changes the processing priority based on the bus usage rate obtained by the bus usage rate calculating circuit. You may comprise. Specifically, when the bus usage rate is higher 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 increased. When the value is equal to or smaller than the predetermined value, the priority of the first read request and the write request is set higher than that of the second read request. By dynamically changing the processing priority in this way, the processing speed of the entire image processing circuit 273 can be further improved.

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

図31、及び図32は、制御LSI234の正規メダル判別処理を説明するための図である。図31、及び図32は、制御LSI234を構成する各デバイスにおける処理の関係を時系列的に示しており、各デバイス名の下方に延在する垂直線における比較的太線の部分は、そのデバイスが上述した各種処理を行っている状態であることを示している。また、各デバイスに対応する線からホストコントローラにおける「IN」の下方に延在する垂直線に向かって延びる破線矢印は、各デバイスからホストコントローラ241へ出力される割込信号を示している。   31 and 32 are diagrams for explaining the regular medal determination process of the control LSI 234. FIG. 31 and FIG. 32 show the processing relationship in each device constituting the control LSI 234 in a time series manner. The relatively thick line portion of the vertical line extending below each device name indicates that device. This indicates that the various processes described above are being performed. Further, a dashed arrow extending from a line corresponding to each device to 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から出力される信号との対応関係を示している。   In addition, a dashed 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 line arrow between a vertical line extending below “IN” and a vertical line extending below “OUT” in the host controller indicates from the interrupt signal detected by the host controller 241 and the host controller 241. The correspondence 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 the regular medal discrimination processing when six medals are continuously inserted into the medal insertion slot 21 (see FIG. 2), and the discrimination processing regarding the first medal is extracted and shown. Shows the entire regular medal discrimination process (including the discrimination process for the first medal) when six medals are continuously inserted. In addition, in order to clarify what number of medals is related to the signal, a number indicating the order of inserting the medals is added to the head of the code attached to each signal. For example, a VSYNC interrupt signal output to the host controller 241 from the ISP circuit 245, which will be described later, for the first medal is denoted by "1IH", and the same VSYNC interrupt for the second medal is added. The signal is labeled with "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 (the first medal in this example) moving on the medal rail 210 and outputs the image data to the control LSI 234, the ISP circuit 245 causes the ISI circuit to operate. Image data is acquired (received) via 251 and a VSYNC (Vertical Synchronization) interrupt signal is output to the host controller 241 (1IH). The ISP circuit 245 also performs conversion processing for converting the RGB Bayer image into various formats. Then, the converted image data and the hue, saturation, and luminance data related 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 be omitted.

カラー認識回路247は、ISP回路245からデータを受信すると色判定処理を行い、判定結果をSRAM243に記憶させ、また、ホストコントローラ241に色判定割込信号を出力する(1CH)。なお、色判定処理の詳細な説明については上述したため省略する。   Upon 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). The detailed description of the color determination process has been described above, and will be omitted.

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

ホストコントローラ241は、色判定割込信号を検知すると、SRAM243から色判定処理の判定結果を取得し、GPIO250の割り付けPORTに出力する(1HG1)。すなわちホストコントローラ241は、色判定処理の判定結果を、GPIO250を介して主制御基板71(主制御回路91)に出力する。   When detecting 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 detecting the count interrupt signal, the host controller 241 acquires the determination result of the count processing 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 “a 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 the credit counter which is a counter provided for the main CPU 93 to count the number of credited medals. When the credit counter has 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 “discharging position” and the medals inserted after the credit counter reaches the maximum value are guided to the medal chute 202 and ejected from the medal payout opening 32 to the medal tray unit 34. In the present embodiment, when the start lever is operated when the value of the thrown-in number counter is a prescribed value (for example, 2 or 3), the main CPU 93 performs the above-mentioned internal lottery process.

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

ホストコントローラ241は、縮小終了割込信号を検知すると、SRAM243を参照し、カウント処理の判定結果が「メダルが通過した」であり、また、色判定処理の判定結果が「正規メダルの色と一致する」であることを条件に、画像認識DSP回路242に前処理の開始を指示する(1HD)。   When the host controller 241 detects the reduction end interrupt signal, it refers to the SRAM 243 and the determination result of the count process is “a medal has passed”, and the determination result of the color determination process is “match with the color of the regular medal”. On condition that "Yes", the image recognition DSP circuit 242 is instructed to start the 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). The detailed description of the preprocessing is omitted because it has been described above. Further, the image recognition DSP circuit 242 of the present embodiment acquires the 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. The processing time of the preprocessing is shortened as compared with the same circuit that does not use the DMA transfer.

ホストコントローラ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 according to 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). The detailed description of the rotation integration processing, which is an example of the image processing, has been described above, and will be omitted. Further, since the image recognition accelerator circuit 249 of 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, such a DMA transfer is not used. The processing time of the image processing is shortened as compared with the circuit.

画像認識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 the 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, since 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, the marking judgment is performed as compared with the circuit which does not use such DMA transfer. The 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 processing 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 the present embodiment, the preprocessing and marking determination processing by the image recognition DSP circuit 242 and the image processing by the image recognition accelerator circuit 249 are shortened in time by the DMA transfer as described above. However, it takes a relatively long time. Therefore, when medals are continuously inserted, when the host controller 241 detects the reduction end interrupt signal (1SH or the like), the image recognition DSP circuit 242 or the image recognition accelerator circuit 249 is processing ( It is checked whether or not it is in a busy state), and if neither is in process, control is performed so as 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 determination process when six medals are continuously inserted will be described. FIG. 32 includes all the determination processing regarding 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 that are continuously inserted, the reduction end interrupt signals (2SH and 4SH) related to the second and fourth medals are sent to the host. When the controller 241 detects, the image recognition DSP circuit 242 or the image recognition accelerator circuit 249 is in processing (busy state), so the host controller 241 instructs the start of the above-described image processing (preprocessing, image processing, and Do not give an instruction to start the marking determination process). Therefore, for the second and fourth medals, the count process, the color determination process, and the fisheye correction process are performed, but the preprocessing, the image processing, and the marking determination process 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 in process (busy state). Therefore, for the third medal, preprocessing, image processing, and marking determination processing are performed in addition to the count processing, color determination processing, and fisheye correction processing.

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

なお、画像認識DSP回路242による前処理及び刻印判定処理、並びに画像認識アクセラレータ回路249による画像処理をより高速化することで、投入されるすべてのメダルについて、カウント処理、色判定処理及び刻印判定処理が行われるようにしてもよい。   The pre-processing and the marking determination processing by the image recognition DSP circuit 242 and the image processing by the image recognition accelerator circuit 249 are accelerated to make the counting processing, the color determination processing, and the marking determination processing for all the inserted medals. 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 reference numerals start with "2", "3", "4", "5") , Each signal of "6") is the same as the above-mentioned various signals (the reference numeral is "1") related to the first medal which is different only in the number at the beginning, and detailed description thereof will be 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 may be performed at various processing timings depending on the processing capability of each device, the processing content, and the processing procedure.

次に、図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 pachi-slot 1 is turned on (not shown in FIG. 32), the host controller 241 initializes 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 in which the target image data 275 is stored in the first setting register, or the SRAM 243 that is the write destination of the processed image data 277 obtained by the image recognition accelerator circuit 249. The address of the storage area 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. The host controller 241 reads the conversion parameters 280 from the SRAM 243, for example, and writes these conversion parameters 280 in the memory 274. Note that the host controller 241 may create the conversion parameter 280 at the time of initial setting and write the conversion parameter 280 thus created in 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 the image processing on the first target image data 275 (step S1). By 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, based on the control of the DMAC 252, the first target image data 275 from the address (address of the SRAM 243) set in the above-mentioned first setting register. Is read by DMA transfer and written in 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. Then, the first coordinate conversion is performed (step S1-1). As a result, the first converted image data 276-1 is obtained. The 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 converted image data 276-1, the coordinate conversion circuit 272 reads the conversion parameter 280 to be used second from the memory 274 based on the specific information 290, and inputs it based on the read conversion parameter 280. The target image data 275 stored in the frame buffer 271 is subjected to the second coordinate conversion (step S1-2). As a result, the second converted image data 276-2 is obtained. On the other hand, the image processing circuit 273 performs image processing of 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. Yes (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 every 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 of the addition target read from the read buffer 307. Therefore, the image recognition accelerator circuit 249 does not generate the processed image data 277-1 once after the converted image data 276-2 is generated but the converted image data 276− in the coordinate conversion circuit 272. The second generation process and the one-time processed image data 277-1 generation process 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 to be used third from the memory 274 based on the specific information 290, and based on the read conversion parameter 280, The target image data 275 stored in the input frame buffer 271 is subjected to the third coordinate conversion. As a result, the 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 one-time processed image data 277-1 to generate the 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)。   After that, the image recognition accelerator circuit 249 operates in the same manner, and the coordinate conversion circuit 272 generates the Nth converted image data 276-N (step S1-N). On the other hand, the image processing circuit 273 performs the image processing of adding the N-th converted image data 276-N to the (N-2) times processed image data 277- (N-2), and (N- 1) Time processed image data 277- (N-1), that is, processed image data 277 is generated (step S1-N). After that, 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 in the storage area of the address set in the above-mentioned 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 addition processing unit 305 performs addition in the image processing circuit 273. The process and the output process of 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 forming the processed image data 277 are generated, but generates the pixel data of the processed image data 277. Then, the output processing of the pixel data 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 is completed (step S1). -E). For the completion notification from the image recognition accelerator circuit 249 to the host controller 241, for example, the 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 receipt of the completion notification, the host controller 241 gives an instruction regarding the second target image data 275 to the image recognition accelerator circuit 249 (step S2). Specifically, the host controller 241 sets the specific information 290 used in the process 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 similarly to 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 in the SRAM 243. After that, 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に指示してもよい。   The identification information 290 used in the process on the p-th (p is a variable, p ≧ 2) target image data 275 is the identification information used in the process on 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 regarding the (p−1) th target image data 275 registers the specific information 290 used in the processing for the pth target image data 275. The image recognition accelerator circuit 249 may be instructed to start processing on the p-th target image data 275 without setting it to 283.

なお、本実施形態では、図31、及び図32に示すように、画像認識アクセラレータ回路249によって、1つの対象画像データ275に関する画像処理が終了すると、画像認識DSP回路242に画像処理終了割込信号(1AD等)を出力し、画像認識DSP回路242は、当該画像処理終了割込信号を検知すると、SRAM243に記憶されている処理画像データ277を取得し、その後、刻印判定処理を行うように構成されているが、図33に示した例では、このような処理とは異なるものとなっている。すなわち、画像認識アクセラレータ回路249が画像処理を終了すると、ホストコントローラ241に対して、完了通知を行う(ステップS1−e)ように構成される。このように、画像認識アクセラレータ回路249が1つの対象画像データ275に関する画像処理を終了した場合には、様々な動作パターンによって次の処理が開始されるように構成されうる。   In the present embodiment, as shown in FIGS. 31 and 32, when the image recognition accelerator circuit 249 completes the image processing for one target image data 275, the image recognition DSP circuit 242 receives the image processing end interrupt signal. When the image recognition DSP circuit 242 outputs (1AD or the like) and detects the image processing end interrupt signal, it acquires the processed image data 277 stored in the SRAM 243 and then performs the marking determination process. However, in the example shown in FIG. 33, this processing is different. That is, when the image recognition accelerator circuit 249 finishes the image processing, the host controller 241 is configured to notify the completion (step S1-e). As described above, when the image recognition accelerator circuit 249 finishes the image processing for one target image data 275, the next processing may 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 the 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 based on the plurality of conversion parameters 280 without exchanging data with the host controller 241. Therefore, it is possible to reduce the processing time for a plurality of coordinate conversions, as compared with the case where the coordinate conversion circuit 272 receives the conversion parameter 280 used in the coordinate conversion each time the coordinate conversion is performed from the host controller 241.

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

またさらに、本実施形態では、画像認識アクセラレータ回路249の初期設定の際に、ホストコントローラ241が変換パラメータ280を、画像認識アクセラレータ回路249のメモリ274に設定するため、座標変換回路272は、初期設定の後、メモリ274から変換パラメータ280を読み出すことができる。よって、座標変換回路272は、変換パラメータ280を使用するたびに、ホストコントローラ241から、当該使用する変換パラメータ280を受け取る必要がなく、そのため、座標変換回路272での処理時間を短縮させることができる。   Furthermore, in the present embodiment, when the image recognition accelerator circuit 249 is initialized, the host controller 241 sets the conversion parameter 280 in the memory 274 of the image recognition accelerator circuit 249. Therefore, the coordinate conversion circuit 272 is initialized. 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に記憶されるように構成することもできる。   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 any 2 ° to 360 ° from 2 ° to any target image data 275, only the conversion parameter 280 having an even rotation angle is stored. Can be configured as. Further, at this time, the SRAM 243 stores the conversion parameters 280 regarding all the rotation angles, and the conversion parameters 280 that are actually used when the image recognition accelerator circuit 249 is initialized (that is, the conversion parameters 280 having an even rotation angle). ) 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 a process 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 the process of rotating the target image 110 by 1 ° from 181 ° to 270 °, and the fourth image recognition accelerator circuit 249 When the processing of rotating the target image data 275 by 1 ° from 271 ° to 360 ° is performed, the same conversion parameter 280 (that is, the above-mentioned example and the same) is applied to each of the first to fourth image recognition accelerator circuits 249. Similarly, 360 kinds of conversion parameters 280 for rotating the target image data 275 from 1 ° to 360 °) Memorize As a result, it is not necessary to individually prepare the conversion parameter 280 for each image recognition accelerator circuit 249, and thus it is possible to prevent the wrong conversion parameter 280 from being stored.

なお、ここでは、複数の画像認識アクセラレータ回路249において共通の変換パラメータ280を記憶させる例を示したが、パチスロ1にそれぞれ組み込まれる(異なった仕様の)複数の制御LSI234やメダルセレクタ201に関しても同様に、共通の変換パラメータ280を記憶させることができる。   Although the example in which the common conversion parameter 280 is stored in the plurality of image recognition accelerator circuits 249 is shown here, the same applies to the plurality of control LSIs 234 and the medal selectors 201 (having different specifications) incorporated in the pachi-slot 1. , A 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転送)される。   Further, 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 does not require the addition processing unit 305, the read buffer 307, and the first read request output unit 301. Then, the pixel data of the converted image data 276 output from the coordinate conversion circuit 272 is temporarily stored in the write buffer 306, and the pixel data of the converted image data 276 stored in the write buffer 306 is written in the frame memory 309. .. The pixel data stored in the frame memory 309 is output (DMA transferred) from the output control unit 308 to the SRAM 243 under the control of the DMAC 252.

また、変換パラメータ280には、回転角度を指定するパラメータの代わりに、あるいは回転角度を指定するパラメータに加えて、回転以外の座標変換を指示する変換パラメータを含むように構成することもできる。   Further, the conversion parameter 280 may be configured to 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 required 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 enlargement, thereby expanding the target image data 275 at an enlargement ratio according to the conversion parameter 280. You can

例えば、座標変換回路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 the conversion parameter 280 that instructs to enlarge the image at the enlargement ratio of 1.1 times, thereby expanding the image to 1.1 times. The converted image data 276 is obtained. Here, enlargement of the image is 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 expands the rotated image obtained by rotating the target image data 275 and the target image data 275. The enlarged image obtained by doing so can be generated as the converted image data 276. Similar to the conversion parameter 280 regarding the rotation of the image, the conversion parameter 280 regarding the enlargement of the image includes, for example, the coordinates of the four pixels in the target image data 275 (that is, the mapping source The coordinates of four pixels) are included.

また、変換パラメータ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 reducing the image. In this case, the conversion parameter 280 may include a plurality of conversion parameters 280 required for a plurality of coordinate conversions having different reduction rates. The coordinate conversion circuit 272 reduces the target image data 275 at a reduction rate according to the conversion parameter 280 by performing coordinate conversion on the target image data 275 based on the conversion parameter 280 relating to such image reduction. You can

例えば、座標変換回路272が、縮小率0.9倍の画像の縮小を行うよう指示する変換パラメータ280に基づいて、対象画像データ275に対して座標変換を行うことにより、0.9倍に縮小された変換後画像データ276が得られる。ここで、画像の縮小とは、対象画像データ275によって表される画像(被写体)の縮小であって、画像の縦横の画素数を減少させるものではない。   For example, the coordinate conversion circuit 272 performs the coordinate conversion on the target image data 275 based on the conversion parameter 280 instructing the reduction of the image with the reduction ratio of 0.9 times, thereby reducing the size to 0.9 times. The converted image data 276 is obtained. Here, the reduction of the image is 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 the conversion parameter regarding the rotation of the image and the conversion parameter 280 regarding the reduction of the image, the coordinate conversion circuit 272 outputs the 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 the converted image data 276. Similar to the conversion parameter 280 regarding the rotation of the image, the conversion parameter 280 regarding the reduction of the image includes, for example, the coordinates of four pixels in the target image data 275 (that is, the mapping source The coordinates of four pixels) are included.

またさらに、変換パラメータ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 required for a plurality of coordinate conversions having different moving directions. Further, the conversion parameter 280 may include a plurality of conversion parameters which are respectively required in a plurality of coordinate conversions in which the amounts of parallel movement are different from each other.

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

例えば、座標変換回路272が、移動方向を「右」、移動量を「1画素」とする平行移動を行うよう指示する変換パラメータ280に基づいて、対象画像データ275に対して座標変換を行うことにより、右に1画素分平行移動された変換後画像データ276が得られる。ここで、画像の平行移動とは、対象画像データ275によって表される画像(被写体)の平行移動である。   For example, the coordinate conversion circuit 272 may perform coordinate conversion on the target image data 275 based on a conversion parameter 280 that instructs parallel movement in which the movement direction is “right” and the movement amount is “1 pixel”. As a result, the converted image data 276 which is translated by one pixel to the right is obtained. Here, the parallel movement of the image is the 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 image rotation and a conversion parameter 280 related to image translation, the coordinate conversion circuit 272 causes the rotated image obtained by rotating the target image data 275 and the target image data 275. It is possible to generate a translated image obtained by translating the image as the converted image data 276. Similar to the conversion parameter 280 regarding the rotation of the image, the conversion parameter 280 regarding the parallel movement includes, for example, the coordinates of four pixels in the target image data 275 (that is, the mapping source The coordinates of four pixels) are included.

[不正メダルの検知]
本実施形態に係る遊技機(パチスロ1)では、メダルセレクタ201の制御LSI234が色判定処理、カウント処理、及び刻印判定処理を含む正規メダル判別処理を行う。メダルレール210上をメダルでない不正器具が移動した場合、色判定処理において「正規メダルの色と一致しない」と判定され、また、カウント処理において「メダルが通過していない」と判定される。したがって、パチスロ1に正規メダルが用いられていると誤認させて遊技を行う不正行為を検知することができる。
[Detection of illegal medals]
In the gaming machine (pachi-slot 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 marking 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 that the medal has not passed in the counting process. Therefore, it is possible to misidentify that a regular medal is used for the pachi-slot 1 and detect an illegal act of playing a game.

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

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

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

また、メダルレール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 in the color determination process that the color does not match the regular medal color. Therefore, it is possible to misidentify that a regular medal is used for the pachi-slot 1 and detect an illegal act of playing a game.

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

また、色判定処理及びカウント処理の判定結果によって不正行為を検知した場合、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定してもよい。これによって、セレクトプレート207が「排出位置」に位置付けされるので、この不正メダルをメダルシュート202に案内してメダル払出口32から排出することができる。なお、主制御回路91は、色判定処理及びカウント処理による不正行為の検知によってOFF状態に設定したメダルソレノイド208を、この不正行為に係る不正メダルをメダルシュート202に案内後に、ON状態に設定してもよい。   Further, when the misconduct is detected by 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 "discharging position", so that the illegal medal can be guided to the medal chute 202 and ejected from the medal payout opening 32. Note that the main control circuit 91 sets the medal solenoid 208, which has been set to the OFF state by detecting the fraudulent activity by the color determination processing and the count processing, to the ON state after guiding the fraudulent medal related to this fraudulent activity 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 improper act is detected by the marking determination process, the main control circuit 91 may set the medal solenoid 208 of the medal selector 201 to the OFF state. In this embodiment, as shown in FIG. 32, after the VSYNC interrupt signal (3IH) for the third medal is output from the ISP circuit 245 to the main control circuit 91, the VSYNC interrupt for the fourth medal is output. By the time the signal (4IH) is output, the determination result of the marking determination process for 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 coin can be guided to the medal chute 202 and ejected from the medal payout opening 32.

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

以上、本発明の一実施形態に係る遊技機について、その作用効果も含めて説明した。しかし、本発明の遊技機は、上述の実施の形態に限定されるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限り、種々の変形実施が可能である。   Heretofore, the gaming machine according to the embodiment of the present invention has been described, including its effects. However, the game 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 in which medals having the same marking (pattern) on both sides are used as the game medium has been described, but instead of this, different markings may be provided on one side and the other side of the medal. A given medal may be used. In this case, data relating to each side of the medal may be prepared in advance as data relating to the threshold value in the counting process, the color determining process, and the marking determining process.

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

上述した本実施形態に係る遊技機は、CMOSイメージセンサ232等を含む撮像部261によって取得された撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、カメラユニット209の制御LSI234は、ASIC等として構成されるため、製造コストを効果的に抑制することができる。さらに、制御LSI234が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。   In the gaming machine according to the present embodiment described above, it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image acquired by the imaging unit 261 including the CMOS image sensor 232. Therefore, it is possible to determine the difference in patterns of medals and the like. Moreover, 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. Furthermore, 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). It has a significant advantage in terms of security.

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

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

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

図37は、このようなカメラユニット209の機能ブロック図であり、図18に示した機能ブロック図に対応するものである。   FIG. 37 is a functional block diagram of such a camera unit 209 and 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 this embodiment includes an imaging unit 361, a conversion unit 363, a characteristic 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 such as an LED, but the illustration thereof is omitted in FIG. 37.

撮像部361は、CMOSイメージセンサ232を含み、このCMOSイメージセンサ232により撮像された画像データを(必要に応じて所定の変換を行って)、撮像画像362Aとして出力する。   The imaging unit 361 includes a CMOS image sensor 232, and outputs the image data imaged by the CMOS image sensor 232 (performing a predetermined conversion 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 image capturing 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 characteristic image generation unit 364 (corresponding to, for example, the image recognition accelerator circuit 249 and the image recognition DSP circuit 242) generates a characteristic image 362C indicating the characteristic of the medal 410 based on the captured image 362B in which the medal 410 is captured. To do. The determination unit 365 determines that the medal 410 (that is, the medal 410 corresponding to the image of the medal 410 included in the captured image 362B) in the captured image 362B is valid based on the characteristic image 362C generated by the characteristic image generation unit 364. It is determined whether or not it is the one, and the determination result 368 is output via the 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 characteristic image 362C generated from the captured image 362B by the characteristic image generation unit 364 with the template data (template characteristic image) 367 indicating the characteristic 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 an authentic one. 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 characteristic image generation unit 364 in more detail. As shown in FIG. 38, the characteristic 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 (combines) a plurality of rotated 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, and then rotates. At least a part of the combined image (corresponding to the above-described processed image data 277) is generated as a characteristic 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 the medal area 373 in which 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 to generate 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 power of the gaming machine according to this embodiment is turned on, the host controller 241 initializes 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. 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, for example.

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

<カメラユニットにおける正規メダル判別処理のフロー>
次に、図39を参照して、本実施形態におけるカメラユニット209で実施される正規メダル判別処理の一連の動作について説明する。
<Flow of regular medal discrimination processing in the camera unit>
Next, with reference to FIG. 39, a series of operations of the regular medal determination 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 image capturing unit 361 from the SRAM 243, converts the read captured image 362A from a color image into a grayscale image, and obtains the captured image 362B thus obtained. It is stored in the SRAM 243 as a target of the discrimination processing (step S11).

次に、ステップS12において、抽出部371が、判別処理の対象である撮像画像362Bから、メダル410が映るメダル領域373を抽出する(図40参照)。その後、ステップS13において、エッジ画像生成部372が、抽出部371で抽出されたメダル領域373に対してエッジ検出を行って、メダル410を示す第1画像374としてのエッジ画像を生成する。   Next, in step S12, the extraction unit 371 extracts the medal area 373 in which the medal 410 appears from the captured image 362B that is the target of the discrimination processing (see FIG. 40). After that, in step S13, 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 showing the medal 410.

次に、ステップS14において、第2画像生成部380が、エッジ画像生成部372で生成されたエッジ画像(第1画像374)を回転して得られる複数の回転画像を合成した回転合成画像(処理画像データ277)の少なくとも一部を特徴画像362Cとして生成する。   Next, in step S14, the second image generation unit 380 rotates the edge image (first image 374) generated by the edge image generation unit 372, and combines the plurality of rotated images to obtain a rotation combined image (process). At least a part of the image data 277) is generated as the characteristic 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 characteristic image 362C generated by the second image generation unit 380 with the characteristic image included in the template data 367, and based on the comparison result, the processing target It is determined whether the medal 410 shown in the captured image 362B is a legitimate one. In other words, based on the comparison result between the characteristic image 362C and the characteristic image included in the template data 367, the determination unit 365 determines whether the medal 310 shown in the captured image 362A generated by the image pickup unit 261 is a regular medal. Determine whether or not.

そして、ステップS16において、判定部365が、判定結果368を、入出力部366(上記実施形態のGPIO250に対応)を介して、主制御回路(上記実施形態の遊技機における主制御回路91に対応)に出力する。このようにして、主制御回路は、撮像画像362Aに示されるメダル410が正規のものでない場合、例えば、遊技を強制的に中断させ、副制御回路(上記実施形態の遊技機における副制御回路101に対応)を介して、不正行為があった旨を報知することができる。例えば、スピーカから警告音を出力したり、液晶表示装置であるディプレイに警告情報を表示したりするなどして、外部に警告を発することができる。   Then, in step S16, the determination unit 365 outputs the determination result 368 to the main control circuit (corresponding to the 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). ) Is output. In this way, when the medal 410 shown in the captured image 362A is not a proper one, 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-described embodiment). It is possible to notify that there has been a fraudulent activity. For example, it is possible to output 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が入力されるたびに、同様の正規メダル判別処理が実行される。   After that, when a new captured image 362A is input, the above-described regular medal determination process is executed with the captured image 362B obtained from the captured image 362A as the target of the new determination process. After that, 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 showing 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 that utilizes the outer shape of the medal 410. In the first extraction method, first, edge detection is performed on the captured image 362B to generate an edge image. As a method of generating an edge image, for example, the Sobel method, Laplacian method, Canny method or the like is used. Next, a circular area is extracted from the generated edge image. As a method of extracting the circular area, for example, Hough transform is used. Then, the 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 the 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 area 373 from the captured image 362B using the background subtraction 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. It Then, labeling such as 4-connection is performed on the binary background difference image. The 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 the 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. The extraction unit 371 may extract the medal area 373 from the captured image 362B using either one of the above two methods.

まず、抽出部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 in which only the background of the captured image 362B appears), and binarizes the generated background difference image. 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 the later-described drawings in the present embodiment, the region (high-luminance region) having the pixel value “1” is shown in black, and the pixel value “0”. The area (low brightness area) is shown in white. The background image 375 can be stored in the SRAM 243 or the like, for example.

次に、抽出部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 the binary outline template 377 indicating the outline 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 identifies where, in the background difference image 376, an area that matches the outer shape of the medal 410 indicated by the outer shape template 377 exists. FIG. 43 is a diagram schematically showing the outer shape template 377. The outer shape 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, as shown in FIG. 44, the extraction unit 371 moves the outline template 377 on the background difference image 376 little by little (for example, by one pixel) in the raster scan direction. In other words, the extraction unit 371 raster-scans the outer shape template 377 on the background difference image 376. At this time, the extraction unit 371 generates an AND image of the outer shape template 377 and the partial area of the background difference image 376 that overlaps with the outer shape template 377 at each position of the outer shape template 377. As a result, a plurality of binary AND images are generated. Then, the extraction unit 371 causes the background difference image 376 of the outer shape template 377 used in the generation of the AND image having the largest number of pixels (high-luminance pixels) having the pixel value “1” among the generated AND images. Identify the top position. This position is a position where a region similar to the outer shape 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 shown in FIG. 45, the extraction unit 371 extracts, as the medal area 373, the partial area 378 in the captured image 362B existing at the same position as the specified position. In other words, the extraction unit 371 extracts, as the medal area 373, the partial area 378 in the captured image 362B that overlaps with the outline template 377 when the outline 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 one in which the pixel value of each pixel outside the circle indicated by the outer shape template 377 above it is 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 it 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 by using, for example, the Sobel method, the Laplacian method, the Canny method, etc., and outputs the edge image (first image 374). To generate. In the present embodiment, the edge image generation unit 372 uses, for example, the Sobel method which 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 generator]
The second image generation unit 380 uses, as the characteristic image 362C, at least a part of the rotation combined image obtained by combining the plurality of rotation images obtained by rotating the first image (edge image) 374 generated by the edge image generation unit 372. To generate. In the present embodiment, the second image generation unit 380 generates, for example, a rotation combined image (that is, the above-described processed image data 277) obtained by combining a plurality of rotation images obtained by rotating the first image (edge image) 374. It is generated as a characteristic image 362C. Here, the rotation of the first image (edge image) 374 includes the case where the rotation angle is 0 °. The method of generating the rotation composite image will be described below.

図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 in which the second image generation unit 380 generates the rotation composite image 381, and corresponds to FIGS. 20 and 28 described above. 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, the second image generation unit 380, for example, rotates the first image (edge image) 374 by 2 ° (α = 2 °) as shown in FIG. 26 to generate 180 rotated images 374a. To generate. The above-mentioned angle α 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 generates a rotation combined image 381 by combining the generated plurality of rotated images 374a. Specifically, the second image generation unit 380 averages a plurality of rotated images 374a with their centers coincident with each other, and adds and averages the resulting rotated average image 381. The second image generation unit 380 uses the generated rotation composite image 381 as a characteristic image 362C showing the characteristic of the medal 310 shown in the captured image 362B.

なお、第2画像生成部380は、複数個の回転画像374aを合成する際に、各回転画像374aにおいて、トータルの回転角度が0°の回転画像374a(つまり、回転していない第1画像(エッジ画像)374)の外形からはみ出る領域を使用しないようにすることができる。したがって、この場合、回転合成画像381は、第1画像(エッジ画像)374と同じ大きさのグレースケール画像となる。   When the plurality of rotated images 374a are combined, the second image generation unit 380 rotates the rotated images 374a having a total rotation angle of 0 ° in each of the rotated images 374a (that is, the first image that is not rotated ( It is possible not to use a region protruding from the outer shape of the edge image) 374). Therefore, in this case, the rotation composite image 381 is a grayscale 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 image capturing unit 361 captures an image of the rotating medal 410 and generates a captured image 362A showing the medal 410. Therefore, the rotation angle (the rotation angle of the pattern attached to the medal 410) of the medal 410 in the captured image 362B generated by the conversion unit 363 is not always the same. On the other hand, since the rotation composite image 381 is a composite 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, the medal of the captured image 362B is combined. Even if there are variations in the rotation angle of 410, if the medal 410 is a legitimate one, 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 the characteristic image 362C showing the characteristics of the medal 410, which is hardly 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)が使用される。
[Judgment part]
The determination unit 365 compares the rotation combined 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. Then, it is determined whether or not the medal 410 included in the captured image 362B is authentic. As the characteristic image of the template data 267, the characteristic image 362C (rotated image) showing the characteristic of the regular medal 410 generated by the characteristic image generation unit 364 from the captured image 362B including the image of the regular medal 410 in the same manner as described above. The 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 characteristic image of the template data 367 can be obtained by inserting the medal 310 into the game 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 "standard image 391") is captured, and then Based on the standard image 391, the characteristic image generation unit 364 generates a characteristic image 362C (rotational combined image 381) indicating the characteristic of the regular medal 410 included in the standard image 391. This characteristic image 362C is called a "standard characteristic image 392". In this embodiment, the standard feature image 392 is the feature image of the template data 367. Such template data 367 is stored in the SRAM 243 or the like of the camera unit 209 as described above. Hereinafter, in order to distinguish the characteristic image 362C (the characteristic image 362C generated to discriminate the regular medal) from the standard characteristic image 392, the characteristic image 362C generated during the actual operation of the gaming machine is referred to as a "target characteristic image 362C". There is.

判定部365は、例えば、回転合成画像381(対象特徴画像362C)とテンプレートデータ367の特徴画像との間の類似度(相違度)を求めることによって、両者を比較する。本実施形態では、判定部365は、例えば、類似度を示す値として、SAD(Sum of Absolute Difference)を使用する。SADが大きいことは類似度が低いことを意味し、SADが小さいことは類似度が高いことを意味する。類似度を示す値として、SSD(Sum of Squared Difference)あるいはNCC(Normalized Correlation Coffiecient)などの他の値を使用してもよい。   The determination unit 365 compares the rotation combined image 381 (target feature image 362C) and the feature image of the template data 367 by calculating the degree of similarity (difference) between them, for example. In the present embodiment, the determination unit 365 uses, for example, SAD (Sum of Absolute Difference) as a value indicating the degree of similarity. A large SAD means a low degree of similarity, and a small SAD means a high degree of similarity. 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 rotated combined image 381 and the characteristic image of the template data 367 is high, the determination unit 365 determines that the medal 410 included in the captured image 362B is a regular one, and the similarity is If it is low, it is determined that the medal 410 included in the captured image 362B is not a legitimate one. Specifically, the determination unit 365 determines that the medal 410 of the captured image 362B is a valid one if the SAD between the rotation combined image 381 and the characteristic image of the template data 367 is less than or equal to the threshold value. However, when the SAD is larger than the threshold, it is determined that the medal 410 of the captured image 362B is not an authorized one. Then, the determination unit 365 outputs the 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, for example, by using a plurality of medals 410. Specifically, when the gaming machine is not in actual operation, a plurality of regular medals are sequentially inserted into the gaming machine. Then, a plurality of captured images 362B in which the plurality of inserted regular medals are captured are generated. The determination unit 365 obtains the SAD between the rotation combined image 381 generated by the characteristic image generation unit 364 from the captured image 362B and the characteristic image of the template data 367 for each of the generated plurality of captured images 362B. Then, the maximum value of the plurality of SADs determined 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 such determination of the threshold value by the gaming machine can be performed when a predetermined mode is selected in the gaming machine. Further, the threshold value may be determined in advance by the gaming machine or another device and stored in the SRAM or the like of each gaming machine.

判定部365で使用されるしきい値がこのように決定されることにより、正規のメダル410の種類が変更された場合には、変更後のメダル410が、実稼働していない遊技機に投入されることによって、変更後のメダル410に応じたしきい値が決定される。よって、メダル410の種類が変更された場合であっても、遊技機に投入されたメダル410が正規のものであるか否かを適切に判定することができる。   When the type of the regular medal 410 is changed by determining the threshold value used in the determination unit 365 in this way, the changed medal 410 is inserted into the gaming machine that is not in actual operation. By doing so, the threshold value according 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 in the gaming machine is a valid 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 showing the medal 310 of the captured image 362B. The image showing the region 373 may be input to the second image generation unit 380 as the first image. In this case, a rotation combined image obtained by combining a plurality of rotated images obtained by rotating the medal area 373 is the characteristic image 362C.

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

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

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

また、本実施形態では、判定部365は、撮像画像362Bから生成された特徴画像362Cと、テンプレートデータ367の特徴画像とをSAD等を用いて比較し、その比較結果に基づいて当該撮像画像362Bに係るメダル410が正規のものか否かを判定しているため、判定処理が簡素化される。   Further, in the present embodiment, the determination unit 365 compares the characteristic image 362C generated from the captured image 362B with the characteristic 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 “1” is authentic, 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を生成する。   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 characteristic image 362C (rotated combined image 381) as the camera unit 209 of the present embodiment. May be changed in accordance with the operating status of the gaming machine in which is incorporated. For example, it is assumed that the speed of the medal 410 moving on the medal rail 210 differs depending on the game machine or the like. In such a situation, when the moving speed of the medal 410 is high, 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 characteristic image 362C. 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 ° to generate 36 rotated images 374a, and synthesizes these rotated images 374a. To generate a characteristic image 362C.

一方、メダル410の移動速度が速い場合には、第2画像生成部380は、処理時間よりも判定精度を優先させて、特徴画像362Cを生成する際に使用する回転画像の数を多くするよう構成することができる。例えば、第2画像生成部380は、エッジ画像(第1画像374)を0°から359°まで1°ずつ回転させて、360個の回転画像374aを生成し、これらの回転画像374aを合成して特徴画像362Cを生成する。   On the other hand, when the moving speed of the medal 410 is high, the second image generation unit 380 prioritizes the determination accuracy over the processing time and increases the number of rotated images used when generating the characteristic 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 °, generates 360 rotated images 374a, and synthesizes these rotated images 374a. To generate a characteristic image 362C.

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

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

このような場合には、変換パラメータ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 above-mentioned conversion parameter 280 relating to parallel movement), and the captured image 362B or the like is used as the second image instead of the edge image (first image 374). 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 to generate a plurality of parallel movement images. For example, the second image generation unit 380 generates a plurality of right parallel movement images by moving the captured image 362B by 2 pixels in the right direction, and moves the captured image 362B by 2 pixels in the left direction. Generate a plurality of left translation images. Then, the second image generation unit 380 generates a combined image by combining the plurality of right translation images and the plurality of left translation images generated in this way. 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 combined image.

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

また、本実施形態のカメラユニット209が組み込まれる遊技機において、メダル410が撮像される場合、撮像画像362Bに映るメダル410の大きさがばらつくことがある。例えば、メダル410の通過経路のわずかな余裕等により、メダル410とCMOSイメージセンサ232との間の距離が一定に保たれていない場合には、撮像画像362Bに映るメダル410の大きさが多少ばらつくことがある。   Further, in the gaming machine in which the camera unit 209 of the present embodiment is incorporated, when the medal 410 is imaged, 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 margin in the passage path of the medal 410, the size of the medal 410 shown in the captured image 362B varies to some extent. 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 above-described conversion parameter 280 for image enlargement) and a plurality of reduction parameters (the above-mentioned conversion parameter 280 for image reduction). Then, the second image generation unit 380 individually performs a plurality of coordinate conversions on the edge image (first image 374) based on the plurality of enlargement parameters to generate a plurality of enlarged images. Further, the second image generation unit 380 individually performs a plurality of coordinate conversions on the edge image (first image 374) based on the plurality of reduction parameters to generate a plurality of reduced images. Then, the second image generation unit 380 generates a combined 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 by using the composite image as a characteristic image. As a result, it is possible to appropriately determine whether or not the medal 410 is a regular medal even when the size of the medal 410 reflected in the captured image 362B varies.

また、本実施形態のカメラユニット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 by the second image generation unit 380 are performed according to the types of the medals 410. The set of parameters 280 may vary. For example, when a certain type of medal 410 is used and imaged by the CMOS image sensor 232, the second image generation unit 380 uses the plurality of rotation parameters included in the conversion parameter 280 to generate an edge image (first image). 374) and the like are individually subjected to a plurality of coordinate transformations. 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 for the edge image (first image 374) and the like. Multiple coordinate transformations individually.

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

[変形例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 the present 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 of FIG. 23, the image processing circuit 473 corresponds to the image processing circuit 273 of FIG. 23, and the memory 474 corresponds to the memory 274 of FIG.

座標変換回路472は、図47に示す第1画像(エッジ画像)374を回転させて回転画像(374a)を得る場合に、第1画像(エッジ画像)374に含まれる被写体のうちの特定の被写体(以後、「特定被写体」と呼ぶ)の位置を調整することが可能である。以下、本変形例に係る座標変換回路472について、図23に示した座標変換回路272との相違点を中心に説明する。   When the coordinate conversion circuit 472 rotates the first image (edge image) 374 shown in FIG. 47 to obtain the rotated image (374a), the coordinate conversion circuit 472 selects a specific subject among the subjects included in the first image (edge image) 374. It is possible to adjust the position (hereinafter, referred to as “specific subject”). Hereinafter, the coordinate conversion circuit 472 according to the present modification will be described focusing on the 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に出力する。   The coordinate conversion circuit 472 according to this modification includes a conversion circuit 481 for performing coordinate conversion, a control circuit 482, and an addition circuit 485. The control circuit 482 includes a register 483 corresponding to the register 283 as compared with the control circuit 282 shown in FIG. 23, and stores therein the specific information 490 corresponding to the specific information 290. The addition 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 to which the parameter offset 495 has been added 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, for example, with respect to the position of the center of gravity of the rectangular image represented by the first image (edge image) 374 (that is, the intersection of the diagonal lines of the rectangle). The amount of displacement of the position of the center of gravity of the specific subject is shown. In the case of the gaming machine according to this embodiment, the specific subject is the medal 410 shown in 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 quadrangle represented by the first image (edge image) 374 (for example, left and right of the image). Direction deviation 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 rectangle represented by the first image (edge image) 374 in the y direction (for example, It is composed of a shift amount yoff in the vertical direction of the image). Hereinafter, the shift amount xoff will be referred to as “x offset xoff”. Further, 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). 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 adding the parameter offset 495 to the conversion parameter 280, the adding circuit 485 adds the x offset xoff of the parameter offset 495 to each x coordinate of the four coordinates forming 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 forming 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 the conversion parameter 280 related to the 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. As a result, even if 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 center of gravity of the two coincide with each other. Like 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, which is the target image data 275, is changed from the position of the center of gravity of the quadrangle represented by the first image 374. Even if they are deviated from each other, the positions of the centers of gravity of the both will match.

パラメータオフセット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) on the target image data 275 (step S1 in FIG. 33, etc.). It is set in the register 483 of the control circuit 482 together with the specific information 290. The host controller 241 reads, for the target image data 275 to be processed, the specific information 290 corresponding to the target image data 275 and the parameter offset 495 from the SRAM 243 or the like to the image recognition accelerator circuit 249, and the read specific information. 290 and the 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 to which the parameter offset 495 is added 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 the image recognition DSP circuit 242 that functions as the first image generation unit 370, for example. 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 the present 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 (converted image data 276) obtained by the conversion circuit 481 or the characteristic 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 characteristic image 362C varies. If the characteristic image 362C varies, even if the medal 410 inserted into the game machine is a regular medal, it may be significantly different from the template data 367, and as a result, the determination accuracy of the determination unit 365 may be reduced. is there. Therefore, as in this modification, the position of the center of gravity of the medal 410 represented by the first image (edge image) 374 is made to coincide with the position of the center of gravity of the quadrangle represented by the first image 374. The variation of 362C is reduced, and as a result, the determination accuracy of the determination unit 365 can be improved.

[変形例2]
本変形例では、図49に示すように、画像認識アクセラレータ回路549が、入力フレームバッファに記憶された対象画像データ575に対して座標変換を複数回実行して、1つの処理画像データ577を生成する。
[Modification 2]
In this modified example, as shown in FIG. 49, the image recognition accelerator circuit 549 performs coordinate conversion 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 showing the configuration of the 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 done. The input frame buffer 571 corresponds to the input frame buffer 271 of FIG. 23, and the memory 574 corresponds to the memory 274 of 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 the configuration of the image processing circuit 573 according to the present modification. As shown in FIG. 51, the image processing circuit 573 according to the present modified example does not include an addition processing unit as compared with the image processing circuit 273 shown in FIG. 30 described above. Further, 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. , And a second read request output unit 603 corresponding to the second read request output unit 303 is provided in the storage control unit 600. Further, the image processing circuit 573 of FIG. 51 includes an arbitration unit 604 corresponding to the arbitration unit 304 of the image processing circuit 273, further includes a write buffer 606 corresponding to the write buffer 306 and 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 to the write buffer 606 from the coordinate conversion circuit 572 described above.

こうした画像処理回路573において、画像認識アクセラレータ回路549の座標変換回路572の変換回路581から出力される(変換後画像データ576の)画素データがそのままライトバッファ606に書き込まれる。また、リードバッファ607に記憶された画素データは、座標変換回路572の選択回路585に出力される。   In the 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 directly written in the write buffer 606. 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 with the coordinate conversion circuit 272 shown in FIG. 23 described above. 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. As described above, the conversion circuit 581 is connected.

本変形例では、制御回路582から出力される制御信号CNT1が第1状態のとき(例えば、「1」を示すとき)、選択回路585は入力フレームバッファ571の出力を選択する。選択回路585が入力フレームバッファ571の出力を選択する場合には、変換回路581は、入力フレームバッファ571に記憶された対象画像データ575にアクセスすることができる。   In the present modification, when the control signal CNT1 output from the control circuit 582 is in the first state (for example, indicating “1”), the selection circuit 585 selects the output of the input frame buffer 571. 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, indicates “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 pixel data can be read 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 the rotation of the image. There are 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 are 1.1 to 4 times larger than an image. 30 conversion parameters 580 for up to 0.0 times magnification.

さらに、パラメータ番号が「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 are 0.9 to 0 times the image. 9 conversion parameters 580 for reducing to 1 time. Further, 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 these convert the image to the right by one pixel. It corresponds to the conversion parameter 580 for parallel translation and the conversion parameter 580 for parallel translation of the image 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 identification 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 referenced. The reference start position 591b indicates the position of the parameter number referred to first in the LUT 592. The reference interval 591c indicates how many conversion parameters 580 apart from the previously referred conversion parameter 580 in the LUT 592 when the conversion parameter 580 is referenced at a certain timing.

LUT592には、複数のパラメータ番号が記述されている。参照態様情報591は、上述のように、LUT592に記述された複数のパラメータ番号をどのように参照するかを示す情報である。制御回路582は、参照態様情報591にしたがって、LUT592のパラメータ番号を1つずつ参照し、パラメータ番号を参照するたびに、参照したパラメータ番号に対応する変換パラメータ580を読み出す。読み出された変換パラメータ580は変換回路581に入力される。   The LUT 592 describes a plurality of parameter numbers. The reference mode information 591 is information indicating how to refer to the 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 according to the reference mode information 591, and reads the conversion parameter 580 corresponding to the referred 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 refers to the 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 forming the LUT 592). To do. When the coordinate conversion circuit 572 performs M (≧ 2) number of coordinate conversions on the target image data 575, the control circuit 582 first, based on the reference start position 591b of the reference mode information 591, the LUT 592. The parameter number of the corresponding reference start position of is referred to. Next, the control circuit 582 reads the conversion parameter 580 corresponding to the referred 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 in the LUT 592, which is separated from the previously referenced parameter number by the number indicated by the reference interval 591c toward the end. Then, the control circuit 582 reads the conversion parameter 580 corresponding to the referred 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に入力される。   After that, 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 referenced parameter number in the memory 574. Read out from and input to the conversion circuit 581. As a result, among the plurality of conversion parameters 580 stored in the memory 574, the 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 sequentially converted. 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とが順に入力される。   In the examples of FIGS. 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 start address, and the reference interval 591c is “1”, the control is performed. 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 indicates to the conversion parameter 580-1 regarding the rotation for rotating the image 1 ° corresponding to the parameter number = “1” and the image corresponding to the parameter number = “361” to 1. Conversion parameters 580-361 related to enlargement for 1-time enlargement and conversion parameters 580-400 corresponding to parameter number = “400” and related to translation for parallel translation of an image by one pixel in the right direction. 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 in the input frame buffer 571, the control circuit 582 sets the control signal CNT1 to the first state, which causes the target image data 575 in the input frame buffer 571 to pass through the selection circuit 585. It is input to the conversion circuit 581. Further, the control circuit 582 reads the conversion parameter 580 used first from the memory 574 and outputs it to the conversion circuit 581 together with the setting of the control signal CNT1. 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 in the write buffer 606 of the image processing circuit 573. The pixel data written in the write buffer 606 is written in 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 into the read buffer 607. Here, the conversion circuit 581 reads out the pixel data of the first converted image data 576-1 in the read buffer 607, so that the conversion circuit 581 causes the conversion circuit 581 to read 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, The second converted image data 576-2 is generated. The conversion circuit 581 writes the pixel data of the second converted image data 576-2 in the write buffer 606 of the image processing circuit 573, and the pixel data thus written in the write buffer 606 is written in 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 outputs the second converted image data 576- from the read buffer 607. The pixel data of 2 is read. 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 conversion parameter 580 used thirdly read from the memory 574 by the control circuit 582 to perform 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 to the write buffer 606 of the image processing circuit 573, and the pixel data of the write buffer 606 thus written is written to 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 controls the control circuit 582 for the (M−1) th converted image data 576− (M−1). Coordinate conversion is performed based on the Mth used conversion parameter 580 read from the memory 574 to generate Mth converted image data 576-M. Then, the Mth converted image data 576-M is written in the frame memory 609 as the 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 identification information 590 is "3", the reference start position 591b is "0000h" indicating the start 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 provides the conversion circuit 581 with the conversion parameter 580-1 relating to the rotation for rotating the image by 1 ° and the conversion parameter 580-1 for enlarging the image 1.1 times. Conversion parameters 580-361 related to enlargement and conversion parameters 580-400 related to parallel movement for moving the image in the right direction by one pixel are sequentially input. Therefore, in this case, the conversion circuit 581 performs coordinate conversion for rotating the image by 1 °, coordinate conversion for enlarging the image 1.1 times, and image conversion for one target image data 575. Coordinate conversion for parallel translation by one pixel to the right is executed in this order. That is, the conversion circuit 581 rotates the image related to one target image data 575 by 1 °, enlarges the rotated image obtained by 1.1 times, and enlarges the obtained enlarged image by 1 to the right. By performing parallel translation by a pixel, one processed image data 577 is generated.

画像処理回路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 in the above. Further, the output control unit 608 controls the frame memory 609 by the storage control unit 600, and when the pixel data of four pixels of the final processed image data 577 is read from the frame memory 609, the read four pixels are read. Minute pixel data is output to the SRAM 243 by DMA transfer. The DMAC 252 controls so that the processed image data 577 is 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 the pixel data of 4 pixels of the final processed image data 577 from the frame memory 609, and the read pixel data of 4 pixels is stored in the buffer of the DMAC 252. Then, the host controller 241 writes the pixel data for four pixels or the entire processed image data 577 to the SRAM 243.

変換回路581は、画素データを生成するたびに、生成した画素データをライトバッファ606に書き込み、書込要求出力部602と第2読出要求出力部603は独立して動作する。したがって、処理画像データ577が生成された後に、この全体のデータがSRAM243やDMAC252に出力されるのではなく、変換回路581での、処理画像データ577を生成するための画素データ単位の座標変換の処理と、出力制御部608での処理画像データ577の画素データの出力処理とは並行して実行される。   The conversion circuit 581 writes the generated pixel data in the write buffer 606 every time the pixel data is generated, 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 or the DMAC 252, but the conversion circuit 581 performs the coordinate conversion in pixel data units for generating the processed image data 577. The processing and the output processing of the pixel data of the processed image data 577 by 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, similar to the above, each time the coordinate conversion circuit 572 performs the coordinate conversion, the processing time for 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の全体における処理速度を向上させることができる。   Further, in the same manner as described 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 determines that at least the two requests. Arbitrated. 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 601. It is possible to prevent a process at a certain output unit of the output unit 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を指定することができる。   Further, in the present modification, the specific information 590 is the LUT 592 in which the parameter number corresponding to the conversion parameter 580 is described, and the reference mode information 591 indicating how to refer to the plurality of parameter numbers described in the LUT 592. It is composed of. Therefore, the conversion parameter 580 used in the conversion circuit 581 is designated by the parameter number. Therefore, the conversion parameter 580 used in the conversion circuit 581 can be specified regardless of the position and order of the plurality of conversion parameters 580 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 the conversion parameters 280 regarding a plurality of rotations are stored in the memory 574 as shown in FIG. Here, as shown in FIG. 25, when the specific information 290 is composed of the use parameter number 291, the use start position 292, and the use interval 293, the image is rotated by 1 ° according to the specific information 290. Conversion parameter 280-1 for rotating the image by 2 °, a conversion 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 °. , The conversion parameter 580-4 for rotating the image by 4 ° and the conversion parameter 580-7 for rotating the image by 7 ° by individually describing these conversions. It is possible to specify the parameter 580.

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

図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 the converted image data 576 with the coordinate conversion circuit 572 shown in FIG. Data 577 is generated (see FIG. 54). In the present specification, such processing (data handling) in the image processing circuit 573 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 has, as operation modes, an individual conversion processing mode in which individual conversion processing is performed on each target image data 775 to generate a composite image, and one target image data 775 is processed. It has a multiple conversion processing mode for performing multiple conversion processing. 55 and 56 are diagrams showing the configurations of the image recognition accelerator circuit 749 and the image processing circuit 773 according to the present 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 the configuration of the image recognition accelerator circuit 749 according to the present 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 done. 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. In the coordinate conversion circuit 772 of 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 performs coordinate conversion. It 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 configuration similar to that of the coordinate conversion circuit 572 shown in FIG. 50 described above, but in this modification, the register 783 of the control circuit 782 is provided. Stores operation mode information 795 indicating the operation mode in which the image recognition accelerator circuit 749 should operate. Based on this operation mode information 795, the control signal CNT2 is provided to the image processing circuit 773.

動作モード情報795は、例えば、ホストコントローラ241によってレジスタ783に設定される。ホストコントローラ241は、特定情報790をレジスタ783に設定する際に、動作モード情報795もレジスタ783に設定する。   The operation mode information 795 is set in the register 783 by the host controller 241, for example. When setting 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. Further, the control circuit 782 outputs a control signal CNT2 for controlling a selection circuit 806 described later included in the image processing circuit 773. The 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 is different from the image processing circuit 273 in that the first read request output unit 801 corresponding to the first read request output unit 301 and the write request output unit 302 corresponding to the first read request output unit 301. The storage control unit 800 includes a second read request output unit 803 corresponding to the input request output unit 802 and the second read request output unit 303. Further, the image processing circuit 773 of FIG. 56 includes an arbitration unit 804 corresponding to the arbitration unit 304 of the image processing circuit 273, further includes 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 described above 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, the output of 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 outputs 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, the 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 its configuration 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 image recognition accelerator circuit 749 in the individual conversion processing mode operates in the same manner as these circuits.

個別変換処理モードでは、例えば、1つの対象画像データ775について、変換パラメータ780に基づき、1度単位で回転させて生成した360個(360度分)の変換後画像データ776をすべて積算して、1つの処理画像データ777を生成する(図29参照)。   In the individual conversion processing mode, for example, with respect to one target image data 775, all 360 (for 360 degrees) converted image data 776 generated by rotating in 1-degree units based on the conversion parameter 780 are integrated, One 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 its configuration is the same as the image recognition accelerator circuit 549 shown in FIG. 50 and the image processing circuit 573 shown in FIG. With the same configuration, the operation of the image recognition accelerator circuit 749 in the multiple conversion processing mode is the same as those circuits.

複数回変換処理モードでは、例えば、1つの対象画像データ775について、変換パラメータ780に基づいた座標変換を行い、その後、生成された変換後画像データ776について順次、変換パラメータ780に基づいた座標変換を行い、1つの処理画像データ777を生成する(図54参照)。   In the multiple conversion processing mode, for example, one target image data 775 is subjected to coordinate conversion based on the conversion parameter 780, and then the generated converted image data 776 is sequentially subjected to coordinate conversion based on the conversion parameter 780. 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 causes the image recognition accelerator circuit 749 to select the q-th target image (q is a variable, q ≧ 1). When the setting related to the data 775 is performed (the setting in step S1, step S2, etc. in FIG. 33 described above), the host controller 241 determines the specific information 790 used in the process for the q-th target image data 775 and the q-th target image data 775. The operation mode information 795 indicating the operation mode of the image recognition accelerator circuit 749 related to the processing of the target image data 775 of (1) 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 signals CNT1 and 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 on the q-th target image data 775 stored in the input frame buffer 771 according to the set operation mode.

ホストコントローラ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 to the image recognition accelerator circuit 749, the host controller 241 is similarly used in the processing for the (q + 1) th target image data 775. Setting specific information 790 and operation mode information 795 indicating the operation mode of the image recognition accelerator circuit 749 related to the processing on the (q + 1) th target image data 775 is 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, since 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, two processings in one camera unit 209, that is, It is possible to execute both the individual conversion process and the multiple conversion process.

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

[変形例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. It has 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 the configuration of the image processing circuit 973 of the image recognition accelerator circuit 949 according to the present modification. The image processing circuit 973 according to the present modification is different from the image processing circuit 273 shown in FIG. 30 described above in that the first read request output unit 1001 corresponding to the first read request output unit 301 and the write request output unit. The storage controller 1000 is provided with a write request output unit 1002 corresponding to 302, but is not provided with a second read request output unit. Further, 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. The arbitration unit 1004 outputs 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, one of the first read request and the write request is selected, and the process according 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 shown 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 converted image data 976 is output from the above-described coordinate conversion circuit 972 to the addition processing unit 1005.

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

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

このように、本変形例に係る画像処理回路973では、第1読出要求、及び書込要求が競合する場合には、その2つの要求が調停されるため、第1読出要求出力部1001、及び書込要求出力部1002は、互いに独立して動作することができる。よって、第1読出要求出力部1001、及び書込要求出力部1002のうちの一方の出力部での処理がボトルネックになることを抑制することができる。その結果、画像認識アクセラレータ回路949の全体の処理速度を向上させることができる。   As described above, in the image processing circuit 973 according to the present modification, when the first read request and the write request conflict with each other, the two requests are arbitrated, so that the first read request output unit 1001 and The write request output unit 1002 can operate independently of each other. Therefore, it is possible to prevent 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 the pixel data of the processed image data 977 not written in the frame memory 909 to the SRAM 243 by DMA transfer. Therefore, as compared with 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 has the output target data (processed image data) output from the addition processing unit 1005. 977) can be received immediately. Therefore, it is possible to shorten the time from the generation of the output target data to the writing of the data in the SRAM 243.

[その他の変形例]
上記の例において、座標変換回路272等は、1つ(1フレーム分)の対象画像データを用いて複数の座標変換を行っていたが、1枚の対象画像110に対して1の座標変換だけを行ってもよい。また、座標変換回路272等は、1つの対象画像データに対して1の座標変換を繰り返し重ねて行ってもよい。例えば、上記の変形例2において、座標変換回路472は、画像を2°回転するための変換パラメータ480に基づいて、1つの対象画像データ475に対して座標変換を行い、その後、当該座標変換(すなわち、回転角度が2°の座標変換)を89回、重ねて行うことにより、対象画像データ475を180°回転させた画像が変換後画像データ476として得られる。
[Other modifications]
In the above example, the coordinate conversion circuit 272 and the like perform a plurality of coordinate conversions using one (one frame) target image data, but only one coordinate conversion is performed for one target image 110. You may go. Further, the coordinate conversion circuit 272 and the like may repeatedly perform one coordinate conversion for one target image data. For example, in the modified example 2 described above, the coordinate conversion circuit 472 performs the 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 part of the functions of the coordinate conversion circuit 272 and the like may be realized by a processor (CPU or DSP, etc.). Further, all or part of the functions of the image processing circuit 273 and the like may be realized by the processor.

また、画像認識アクセラレータ回路249等には、画像処理回路273等が設けられていなくてもよい。この場合には、座標変換回路272等から出力されるデータが、DMA転送により、SRAM243に書き込まれる。また、画像処理回路273は、画像データ以外のデータを処理してもよい。また、画像処理回路273等においては、加算処理部の代わりに、加算処理以外の処理を行う処理部が設けられてもよい。   Further, the image recognition accelerator circuit 249 and the like may not be provided with the image processing circuit 273 and the like. In this case, the data output from the coordinate conversion circuit 272 or the like is written in the SRAM 243 by DMA transfer. Further, the image processing circuit 273 may process data other than image data. Further, in the image processing circuit 273 and the like, a processing unit that performs a process other than the addition process 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 its modified example have been described in detail, but the above description is merely an example, and the present invention is not limited to such an example configuration. Absent. Further, the various modifications described above can be applied in combination with each other as long as they do not conflict with each other.

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

以上、本発明の一実施形態に係る遊技機、及びその変形例について説明した。上述した遊技機は、基本的に、以下の特徴及び作用効果を有することを付記として開示する。   The game machine according to the embodiment of the present invention and the modified examples thereof have been described above. It is additionally disclosed that the gaming machine described above basically has the following features 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]
Embodiment 1-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
Direct transfer control means (for example, DMAC252) for controlling the direct transfer of data,
First storage means (for example, SRAM 243) for storing data,
A predetermined format conversion is performed on the image data obtained via the image capturing means, and the image data after the format conversion (for example, target image data 275 and captured image 362B) is directly transferred to the first storage means. Conversion means for storing (for example, the conversion unit 363, the ISP circuit 245, etc.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 249, etc.) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the first storage unit, image processing including coordinate conversion is performed on the acquired image data (for example, a graphic rotation process), and the image processing is performed. The subsequent image data (for example, the processed image data 277 and the characteristic image 362C) is stored in the first storage unit by the direct transfer.

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

本発明のこのような構成によって、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。また、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, the processing content of coordinate conversion can be appropriately changed by changing the conversion parameter. Further, when performing image processing including coordinate conversion in the characteristic image generating means, the conversion parameter can be obtained by accessing the memory in the circuit, access via the bus is avoided, and the bus band is secured, The 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 characteristic image generating means,
A third storage means (for example, a register 283) for storing the specific information (for example, the specific information 290),
It is configured to specify a conversion parameter used for the coordinate conversion based on the specification information acquired from the third storage means.

本発明のこのような構成によって、特定情報を変更することで、座標変換に使用する変換パラメータを適宜変更することができ、結果的に、座標変換の処理内容を変更することができる。   With such a configuration of the present invention, by changing the specific information, the conversion parameter used for the coordinate conversion can be appropriately changed, and as a result, the processing content of the 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, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained through the image capturing unit and stores the image data after the format conversion (for example, target image data 775 and captured image 362B) in the first storage unit. (For example, the conversion unit 363, the ISP circuit 245, etc.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 749, or the like) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the first storage unit, image processing including coordinate conversion (for example, graphic rotation processing) is performed on the acquired one image data, and Image data after image processing (for example, processed image data 777, characteristic image 362C) is stored in the first storage means,
Including at least two conversion processing modes for said 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 plurality of converted image data are combined to form one processed image. 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 successively and successively overlapped on the one image data to perform image processing to obtain one processed image data.
The game medium determination means is further
Direct transfer control means (for example, DMAC252) for controlling direct transfer of data is provided,
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 characteristic image generation unit in the first storage unit, This is done by the direct transfer.

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

本発明のこのような構成によって、変換パラメータを変更することで、座標変換の処理内容を適宜変更することができる。また、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, the processing content of coordinate conversion can be appropriately changed by changing the conversion parameter. Further, when performing image processing including coordinate conversion in the characteristic image generating means, the conversion parameter can be obtained by accessing the memory in the circuit, access via the bus is avoided, and the bus band is secured, The 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 regarding rotation of a predetermined angle.

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

[付記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 Embodiments 2-1 to 2-3.
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
A third storage means (eg, memory 774) for storing operation mode information (eg, operation mode information 795),
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 such that it can be set for each of the image data obtained via the image pickup means.

本発明のこのような構成によって、変換処理モードを遊技媒体の撮像映像ごとに切り替えることができ、状況に応じた特徴画像を得ることができる。   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 according 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, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 249, etc.) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
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 image data. Stored in the storage means,
The processing content of the coordinate conversion is specified by a conversion parameter (for example, conversion parameter 280),
The game medium determination means is further
Direct transfer control means (for example, DMAC252) for controlling direct transfer of data is provided,
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 characteristic image generation unit in the first storage unit, This is done by the direct transfer.

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

本発明のこのような構成によって、特徴画像生成手段において座標変換を含む画像処理を行う場合に、回路内のメモリにアクセスすることで変換パラメータを取得することができ、バスを介したアクセスが回避され、バス帯域の確保、処理効率の一層の向上が図られる。   With such a configuration of the present invention, when performing image processing including coordinate conversion in the characteristic image generating means, the conversion parameter can be obtained by accessing the memory in the circuit, and access via the bus is avoided. As a result, the bus band is secured and the processing efficiency is 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 be a parameter for instructing at least one of coordinate conversion regarding rotation, coordinate conversion regarding enlargement, coordinate conversion regarding reduction, and coordinate conversion regarding translation.

本発明のこのような構成によって、変換パラメータにより、回転に関する座標変換、拡大に関する座標変換、縮小に関する座標変換、及び平行移動に関する座標変換を指示することができる。   With such a configuration of the present invention, it is possible to instruct the coordinate conversion related to rotation, the coordinate conversion related to enlargement, the coordinate conversion related to reduction, and the coordinate conversion related to translation 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]
Embodiment 4-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 449 or the like) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 474) for storing the conversion parameter (eg, conversion parameter 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 the 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 is further
Direct transfer control means (for example, DMAC252) for controlling direct transfer of data is provided,
Storing the image data after the format conversion in the conversion unit in the first storage unit, and storing the image data related to the image data after the image processing obtained by the conversion circuit in the first storage unit. At least one is performed by the direct transfer.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、変換パラメータとパラメータオフセットを加算することで、変換パラメータに基づいて行われる座標変換を、パラメータオフセットの内容を加味して変更することができる。さらに、遊技媒体判定手段の記憶手段(SRAM等)に対する画像データの書き込みや読み出しが、データの直接転送を制御する直接転送制御手段で実現されるため、データ転送において遊技媒体判定手段のホストコントローラ(プロセッサ)が関与せず、遊技媒体判定手段に含まれる各回路(ハードウエア)の並列処理が可能となり、その結果、処理効率が向上し、遊技媒体の判定に関する処理時間が短縮される。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, 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 contents of the parameter offset. Furthermore, writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determining means is realized by the direct transfer control means that controls the direct transfer of data, so that the host controller ( (Processor) is not involved, the parallel processing of each circuit (hardware) included in the game medium determining means is possible, and 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 respectively corresponding to the predetermined coordinates after conversion,
The parameter offset is configured to include an offset 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 designated 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, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
A processor (eg, host controller 241),
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
A characteristic image generation unit (for example, a characteristic image generation unit 364, an image recognition accelerator circuit 249, etc.) that generates a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 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 (for example, a control circuit 282) that acquires the conversion parameter from the second storage means and outputs the conversion parameter 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 is further
Direct transfer control means (for example, DMAC252) for controlling direct transfer of data is provided,
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 relating 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, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, by storing the conversion parameter in the circuit of the characteristic image generating means and changing the conversion parameter, the processing content of the coordinate conversion can be appropriately changed. Furthermore, since writing and reading of image data to and from the storage means (SRAM or the like) of the game medium determining means is realized by the direct transfer control means for controlling the direct transfer of data, the host controller of the game medium determining means in data transfer ( (Processor) is not involved, the parallel processing of each circuit (hardware) included in the game medium determining means is possible, and 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 a timing of initial setting 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 during 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 parameter used for coordinate conversion in the characteristic image generating means out of the conversion parameters stored in the first storage means and store it in the second storage means. To be done.

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

[付記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]
Embodiment 6-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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,
Third storage means (for example, a frame memory 309) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
When the image data after the image processing is the image data to be output, 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, 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 conflict with each other. Prepare

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができる。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, by providing the arbitration unit, it is possible to avoid conflicting access requests to 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 determination means further includes direct transfer control means (for example, DMAC252) for controlling direct transfer of data,
At least one of storing the image data after the format conversion in the conversion unit in the first storage unit and storing the image data to be output in the image processing circuit in the first storage unit is directly 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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]
Embodiment 7-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 949, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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 977) in the first storage unit. Circuit 973),
The conversion circuit performs the coordinate conversion based on the conversion parameter,
The image processing circuit,
Third storage means (for example, a frame memory 909) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
An arbitration unit (for example, an arbitration unit 1004) that performs arbitration so that the respective requests output from the first read request output unit and the write request output unit do not conflict with each other,
When the image data after the image processing is the image data of the output target, 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

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができる。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, by providing the arbitration unit, it is possible to avoid conflicting access requests to 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 determination means further includes direct transfer control means (for example, DMAC252) 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, It 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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]
Embodiment 8-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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,
Third storage means (for example, a frame memory 309) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
When the image data after the image processing is the image data to be output, 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, 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 conflict with each other. Prepare,
The arbitration unit relates 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 of the requests output from the second read request output unit.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、調停部を備えることにより、画像処理のための第3記憶手段に対するアクセス要求が競合することを回避することができ、この調停部による調停は、優先度に基づいて行われる。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, by providing the arbitration unit, it is possible to avoid conflicting access requests to the third storage unit for image processing, and the 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 determination means further includes direct transfer control means (for example, DMAC252) for controlling direct transfer of data,
At least one of storing the image data after the format conversion in the conversion unit in the first storage unit and storing the image data to be output in the image processing circuit in the first storage unit is directly 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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 the operation status of the game medium determination means.

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

[付記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]
Embodiment 9-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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,
Third storage means (for example, a frame memory 309) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
When the image data after the image processing is the image data to be output, 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). And 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 from the write request output unit,
In the third storage means, the predetermined position is image data read out based on the request by the first read request output unit, and image data corresponding to the image data after the image processing is stored. The position.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、画像処理後の画像データが、第3記憶手段に書き込まれる場合、当該処理画像データの画素データが画像処理前に記憶されていた第3記憶手段の記憶位置と同じ位置に記憶(リードモディファイライト)されるため、第3記憶手段の回路規模を小さくすることができる。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, when the image data after the image processing is written in the third storage unit, the pixel data of the processed image data is stored at the same position as the storage position of the third storage unit that was stored before the image processing (read modification). Since it is written, 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 determination means further includes direct transfer control means (for example, DMAC252) for controlling direct transfer of data,
At least one of storing the image data after the format conversion in the conversion unit in the first storage unit and storing the image data to be output in the image processing circuit in the first storage unit is directly 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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. The data is read from the third storage means.

本発明のこのような構成によって、第3記憶手段に書き込まれた画像処理後の画像データが、再び、画像処理の対象として第3記憶手段から読み出されるため、第3記憶手段の回路規模を小さくすることができる。   With such a configuration of the present invention, the image data after the image processing written in the third storage unit is read again from the third storage unit as the target of the image processing, so that the circuit scale of the third storage unit can be 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]
Embodiment 10-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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,
Third storage means (for example, a frame memory 309) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
When the image data after the image processing is the image data to be output, 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 the image data to be subjected to the image processing read from the third storage unit based on the request from the first read request output unit,
The first read request output unit outputs a request to read the 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, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, when the read buffer is empty, the first read request output unit outputs a request to read the image data to be image-processed from the third storage unit, so that the circuit scale of the read buffer can be reduced. The read 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 determination means further includes direct transfer control means (for example, DMAC252) for controlling direct transfer of data,
At least one of storing the image data after the format conversion in the conversion unit in the first storage unit and storing the image data to be output in the image processing circuit in the first storage unit is directly 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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 the image processing stored in the buffer is read out for the image processing, the image data targeted for the image processing is erased from the buffer.

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

[付記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]
Embodiment 11-1 of the present invention provides a gaming machine having the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium (for example, a medal),
And a game medium detecting means (for example, a medal selector 201 including a camera unit 209) for detecting a game medium inserted from the slot,
The game medium detection means,
A game medium passing portion (for example, a medal rail 210) which is a passage through which the game medium passes,
Imaging means (for example, means including a CMOS image sensor 232) for imaging a passing object which is an object passing through the passage,
By performing image processing based on the image data obtained through the image pickup means (for example, the imaged image 362A obtained by the image pickup unit 361), it is determined whether or not the game medium is legitimate. And a game medium determining means (for example, control LSI 234),
The game medium determination means,
Configured as a dedicated integrated circuit for determining the game medium,
First storage means (for example, SRAM 243) for storing data,
A conversion unit that performs a predetermined format conversion on the image data obtained via the image capturing 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.),
Characteristic image generation means (for example, characteristic image generation unit 364, image recognition accelerator circuit 249, etc.) that generates a characteristic image (for example, characteristic image 362C) indicating the characteristics of the game medium based on the image data after the format conversion. And
The characteristic image generating means,
Configured as a circuit in the game medium determination means,
Second storage means (eg, memory 274) for storing the conversion parameter (eg, conversion parameter 280);
A conversion circuit (for example, a conversion circuit 281) that performs coordinate conversion on the image data relating to the image data after the format conversion acquired from the first storage unit;
A control circuit (for example, a control circuit 282) that controls the acquisition of the conversion parameter from the second storage unit and the output to the conversion circuit;
An image processing circuit (for example, image processing) that acquires the 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,
Third storage means (for example, a frame memory 309) for temporarily storing image data relating 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 the image data to be subjected to the 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 to the third storage unit,
When the image data after the image processing is the image data to be output, 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) for temporarily storing the image data after the image processing,
When a predetermined amount of image data is stored in the buffer (for example, when the write buffer 306 is full), the write request output unit outputs the image data after the image processing from the buffer to the third image data. A request to write to the storage means is output.

本発明のこのような構成によって、撮像手段において取得された画像データを利用して、正規メダル判別処理を実行することができる。撮像画像に基づいて行われる画像変換や画像認識の各処理により、メダル等の判定が可能となるため、メダル等の模様の相違を判定することができる。また、遊技媒体判定手段は、前記遊技媒体を判定する専用集積回路として構成されるため、製造コストを効果的に抑制することができる。さらに、遊技媒体判定手段が、ASIC等のようなパッケージ化された状態で提供されるため、外部からの不正行為(例えば、正規メダル判別処理を無効化させたり、正規メダル判別処理の処理ロジックを窃取しようとしたりする行為)を阻止することができ、セキュリティー面でも顕著な利点を有している。また、書込要求出力部が、ライトバッファが一杯になった場合に、画像処理後の画像データを第3記憶手段に書き込む要求を出力するため、当該ライトバッファの回路規模を小さくすることができ、独立した効果的な基準により、画像データの書き込みタイミングが決定される。   With such a configuration of the present invention, it is possible to execute the regular medal determination process using the image data acquired by the image pickup means. Since it is possible to determine a medal or the like by each processing of image conversion and image recognition performed based on the captured image, it is possible to determine the 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, a fraudulent act from the outside (for example, invalidating the regular medal discrimination process or a process logic of the regular medal discrimination process is executed). It has a remarkable advantage in terms of security as well. Further, when the write buffer is full, the write request output unit outputs a request to write the image data after the image processing to the third storage means, so that 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 determination means further includes direct transfer control means (for example, DMAC252) for controlling direct transfer of data,
At least one of storing the image data after the format conversion in the conversion unit in the first storage unit and storing the image data to be output in the image processing circuit in the first storage unit is directly 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 unit (SRAM or the like) of the game medium determination unit is realized by the direct transfer control unit that controls the direct transfer of the data, and thus the game in the data transfer. The host controller (processor) of the medium determination means does not participate, and the parallel processing of each circuit (hardware) included in the game medium determination means becomes possible. As a result, the processing efficiency is improved and the processing time regarding the determination of the game medium is increased. 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.
When the image data after the image processing stored in the buffer is written in the third storage unit, the image data after the image processing is erased from the buffer.

本発明のこのような構成によって、画像処理の対象となる画像データが、第3記憶手段に書き込まれた場合、当該画像データがライトバッファから消去されるため、画像データが書き込まれてすぐに、書込要求出力部からの要求が可能となり、結果的に、画像データの効率的なライトバッファへの書き込みが順次行われる。   With such a configuration of the present invention, when the image data to be image-processed 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 can be made from the write request output unit, 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 選択回路
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 outlet 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 shoot 203 Slope 204 Base plate 205 Sub-plate 206 Cancel shooter 207 Select plate 208 Medal solenoid 209 Camera unit 210 Medal rail 211 Medal inlet 212 Central hole 213 Medal pressure 217 Magnet 218 After medal pressure 227 Medal Stopper 230 First substrate 231 Second substrate 232 CMOS image sensor 233 LED
234 Control LSI
235 Legs 241 Host controller 242 Image recognition DSP circuit 243 SRAM
244 Flash memory 245 ISP circuit 246 Medal counting 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 Characteristic image 263, 363 Conversion unit 264, 364 Characteristic 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 parameter 281, 481, 581, 781 Conversion 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 section 303, 603, 803 Second read request output section 304, 604, 804, 1004 Arbitration section 305, 805, 1005 Addition processing section 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 (2)

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
前記遊技媒体が通過する通路となる遊技媒体通過部と、
前記通路を通過する物体である通過物体を撮像する撮像手段と、
前記撮像手段を介して得られた画像データに基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段と、を含み、
前記遊技媒体判定手段は、
データの直接転送を制御する直接転送制御手段と、
データを記憶することが可能な記憶手段と、
前記撮像手段を介して得られた前記画像データを前記直接転送制御手段により前記記憶手段から取得し、所定のフォーマット変換を行い、前記フォーマット変換後の画像データを前記直接転送によって前記記憶手段に記憶する変換手段と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段と、を備え、
前記特徴画像生成手段は、
前記記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記直接転送によって前記記憶手段に記憶することを特徴とする遊技機。
An input port for inputting game media,
And a game medium detecting means for detecting the game medium input from the input port,
The game medium detection means,
A game medium passing portion which is a passage through which the game medium passes,
Imaging means for imaging a passing object which is an object passing through the passage,
A game medium determining unit that determines whether or not the game medium is a regular one by performing image processing based on the image data obtained through the image capturing unit,
The game medium determination means,
Direct transfer control means for controlling direct transfer of data,
Storage means capable of storing data,
The image data obtained via the image pickup means is acquired from the storage means by the direct transfer control means, a predetermined format conversion is performed, and the image data after the format conversion is stored in the storage means by the direct transfer. Conversion means to
A characteristic image generating means for generating a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the storage unit, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is transferred by the direct transfer. A game machine characterized by being stored in a storage means.
遊技媒体が通過する通路となる遊技媒体通過部と、
前記通路を通過する物体である通過物体を撮像する撮像手段と、
前記撮像手段を介して得られた画像データに基づいた画像処理を行うことにより、前記遊技媒体が正規のものであるか否かを判定する遊技媒体判定手段と、を含み、
前記遊技媒体判定手段は、
データの直接転送を制御する直接転送制御手段と、
データを記憶することが可能な記憶手段と、
前記撮像手段を介して得られた前記画像データを前記直接転送制御手段により前記記憶手段から取得し、所定のフォーマット変換を行い、前記フォーマット変換後の画像データを前記直接転送によって前記記憶手段に記憶する変換手段と、
前記フォーマット変換後の画像データに基づいて、前記遊技媒体の特徴を示す特徴画像を生成する特徴画像生成手段と、を備え、
前記特徴画像生成手段は、
前記記憶手段から、前記フォーマット変換後の画像データに係る画像データを取得し、当該取得した画像データに対して座標変換を含む画像処理を行い、前記画像処理後の画像データを前記直接転送によって前記記憶手段に記憶することを特徴とする遊技媒体判別装置。
A game medium passing portion that is a passage through which the game medium passes,
Imaging means for imaging a passing object which is an object passing through the passage,
A game medium determining unit that determines whether or not the game medium is a regular one by performing image processing based on the image data obtained through the image capturing unit,
The game medium determination means,
Direct transfer control means for controlling direct transfer of data,
Storage means capable of storing data,
The image data obtained via the image pickup means is acquired from the storage means by the direct transfer control means, a predetermined format conversion is performed, and the image data after the format conversion is stored in the storage means by the direct transfer. Conversion means to
A characteristic image generating means for generating a characteristic image showing the characteristic of the game medium based on the image data after the format conversion,
The characteristic image generating means,
Image data relating to the image data after the format conversion is acquired from the storage unit, image processing including coordinate conversion is performed on the acquired image data, and the image data after the image processing is transferred by the direct transfer. A game medium discrimination device characterized by storing in a storage means.
JP2019188379A 2019-10-15 2019-10-15 Game machine and game medium discrimination device Active JP6824358B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
JP2020072859A true JP2020072859A (en) 2020-05-14
JP6824358B2 JP6824358B2 (en) 2021-02-03

Family

ID=70610387

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP6824358B2 (en)

Also Published As

Publication number Publication date
JP6824358B2 (en) 2021-02-03

Similar Documents

Publication Publication Date Title
JP6711556B2 (en) Amusement machine
JP6671787B2 (en) Gaming machine
JP2017093660A (en) Game machine
JP6679138B2 (en) Amusement machine
JP6671790B2 (en) Gaming machine
JP2017093654A (en) Game machine
JP6604887B2 (en) Game machine and game medium discrimination device
JP6824358B2 (en) Game machine and game medium discrimination device
JP6999760B2 (en) Game medium sorting device
JP6679139B2 (en) Amusement machine
JP2017213067A (en) Game medium selection device
JP6757842B2 (en) Game machine and game medium discrimination device
JP6671789B2 (en) Gaming machine
JP6773441B2 (en) Game machine
JP6671788B2 (en) Gaming machine
JP6773439B2 (en) Game machine
JP6773443B2 (en) Game machine
JP6773438B2 (en) Game machine
JP6773442B2 (en) Game machine
JP6773440B2 (en) Game machine
JP6626556B2 (en) Gaming machines and game media discriminating devices
JP6626558B2 (en) Gaming machines and game media discriminating devices
JP6675694B2 (en) Gaming machines and game media discriminating devices
JP6733005B2 (en) Gaming machine and gaming medium discrimination device
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: 20191015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200728

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200923

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: 20210105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210112

R150 Certificate of patent or registration of utility model

Ref document number: 6824358

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250