[go: up one dir, main page]

CN202599806U - Tile face automatic detecting device of common mahjong tiles - Google Patents

Tile face automatic detecting device of common mahjong tiles Download PDF

Info

Publication number
CN202599806U
CN202599806U CN 201220127900 CN201220127900U CN202599806U CN 202599806 U CN202599806 U CN 202599806U CN 201220127900 CN201220127900 CN 201220127900 CN 201220127900 U CN201220127900 U CN 201220127900U CN 202599806 U CN202599806 U CN 202599806U
Authority
CN
China
Prior art keywords
chip microcomputer
color
mahjong tiles
mahjong
color sensor
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.)
Expired - Fee Related
Application number
CN 201220127900
Other languages
Chinese (zh)
Inventor
李耀
章磊
贺龙豹
徐美风
邵文莎
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.)
Nanjing University of Finance and Economics
Original Assignee
Nanjing University of Finance and Economics
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 Nanjing University of Finance and Economics filed Critical Nanjing University of Finance and Economics
Priority to CN 201220127900 priority Critical patent/CN202599806U/en
Application granted granted Critical
Publication of CN202599806U publication Critical patent/CN202599806U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Spectrometry And Color Measurement (AREA)

Abstract

本实用新型涉及一种普通麻将牌的牌面自动检测装置,其特征在于:包括颜色检测器、单片机、人机交互设备;颜色检测器包含光源、颜色传感器,人机交互设备包含按键、指示灯;单片机与颜色传感器、按键、指示灯连接;颜色检测器安装在输牌道外壁中;单片机根据颜色传感器输出的红绿蓝三基色的相对强度判断牌面。本实用新型与现有技术相比较,优点在于:牌面检测结果准确;不需要设置防尘机构,可消除温度等因素对检测的影响;使麻将机可以采用普通麻将牌,降低麻将机的生产成本。

Figure 201220127900

The utility model relates to an automatic detection device for the face of ordinary mahjong tiles, which is characterized in that it comprises a color detector, a single-chip microcomputer, and human-computer interaction equipment; the color detector includes a light source and a color sensor, and the human-computer interaction equipment includes buttons and indicator lights The single-chip microcomputer is connected with the color sensor, buttons and indicator lights; the color detector is installed in the outer wall of the card losing channel; the single-chip microcomputer judges the card surface according to the relative strength of the red, green and blue primary colors output by the color sensor. Compared with the prior art, the utility model has the advantages that: the detection result of the card surface is accurate; no dust-proof mechanism is required, and the influence of temperature and other factors on the detection can be eliminated; the mahjong machine can use ordinary mahjong tiles, reducing the production of the mahjong machine cost.

Figure 201220127900

Description

一种普通麻将牌的牌面自动检测装置An automatic detection device for ordinary mahjong tiles

技术领域 technical field

本实用新型涉及麻将机,具体涉及麻将机中麻将牌的牌面检测。  The utility model relates to a mahjong machine, in particular to the face detection of mahjong tiles in the mahjong machine. the

背景技术 Background technique

麻将机是人们常用的休闲娱乐工具。目前市场上的麻将机,使用的麻将牌都是专用的麻将牌,牌内放有永久磁铁或铁片,生产制造工艺复杂,成本高。由于牌内磁铁安放位置没有统一的标准,社会上出现“作弊麻将机”,生产商和用户都希望在麻将机中能使用普通麻将牌(内部没有磁铁或铁片),但至今尚无此类麻将机产品。  Mahjong machine is a leisure and entertainment tool commonly used by people. In the mahjong machines currently on the market, the mahjong tiles used are all special mahjong tiles, and permanent magnets or iron sheets are placed in the tiles. The manufacturing process is complicated and the cost is high. Because there is no uniform standard for the placement of magnets in the tiles, "cheating mahjong machines" appear in the society. Both manufacturers and users hope that ordinary mahjong tiles (without magnets or iron pieces inside) can be used in mahjong machines, but so far there is no such Mahjong machine products. the

麻将机上使用普通麻将牌时存在问题:理(洗)牌时,需要对输牌道内运动的麻将牌的牌面检测,检出“牌面不符”的一类牌,将其击翻,使之按正面(刻字面)朝下砌放。  There is a problem when using ordinary mahjong tiles on the mahjong machine: when sorting (shuffling) the tiles, it is necessary to detect the tile faces of the mahjong tiles moving in the losing tile path, detect a type of tiles that "do not match the tile faces", knock them over, and make them Put it face down according to the front side (lettering side). the

2005年8月17日,中国专利CN2718677公开“一种用于识别麻将牌正反面的光电识别装置”,其特征是:采用光电探头、设置防尘机构,通过反射式光电传感器输出的电压与设定电压大小比较识别。其不足之处是,①一台麻将机配有两副牌面颜色不同的牌,对一副牌设定的比较电压,对另一副牌可能不合适;另外,牌在传送带上随传送带运动,传感器至每张牌面的距离不可能绝对相同,相同的牌面,传感器输出的电压也可能不同。②防尘玻璃仍会沾染灰尘,灰尘对检测的影响不能消除。  On August 17, 2005, Chinese patent CN2718677 disclosed "a photoelectric identification device for identifying the front and back of mahjong tiles", which is characterized in that: a photoelectric probe is used, a dust-proof mechanism is installed, and the voltage output by the reflective photoelectric sensor is consistent with the device. Compare and identify the constant voltage. Its disadvantages are: ①One mahjong machine is equipped with two decks of cards with different colors, and the comparison voltage set for one deck may not be suitable for the other deck; in addition, the cards move on the conveyor belt with the conveyor belt , the distance from the sensor to each card surface cannot be absolutely the same, and the output voltage of the sensor may be different for the same card surface. ②The dust-proof glass will still be contaminated with dust, and the influence of dust on the detection cannot be eliminated. the

2011年12月7日,中国专利CN102266666公开“一种麻将机”,其特征在于:感知器为成像装置,依据内置的算法识别出牌的背面和正面。其不足之处是,生产成本高。  On December 7, 2011, Chinese patent CN102266666 disclosed "a mahjong machine", which is characterized in that: the sensor is an imaging device, and the back and front of the tiles are recognized according to the built-in algorithm. Its disadvantage is that the production cost is high. the

实用新型内容 Utility model content

本实用新型的目的是解决背景技术中存在的问题,提供一种用普通麻将牌的牌面自动检测装置及检测方法,用在麻将机中。  The purpose of the utility model is to solve the problems existing in the background technology, and to provide an automatic detection device and detection method for ordinary mahjong tiles, which are used in mahjong machines. the

本实用新型是这样实现的:一种普通麻将牌的牌面自动检测装置,其特征在于:包括由光源和颜色传感器组成的颜色检测器、单片机;颜色传感器与单片机连接;颜色检测器安装在输牌道侧壁或上壁中,当麻将牌随传送带运动到颜色检测器前时,光源发出的光照在牌上,一部分光被牌面吸收,另一部分光携带牌面颜色信息反射至颜色传感器上,单片机根据颜色传感器输出的红绿蓝三基色相对强度判断牌面朝向。  The utility model is realized in the following way: an automatic detection device for the surface of an ordinary mahjong tile, characterized in that: it includes a color detector and a single-chip microcomputer composed of a light source and a color sensor; the color sensor is connected with the single-chip microcomputer; the color detector is installed on the output On the side wall or upper wall of the card path, when the mahjong tiles move to the color detector with the conveyor belt, the light emitted by the light source shines on the tiles, part of the light is absorbed by the tile surface, and the other part of the light carries the color information of the tile surface and is reflected to the color sensor , the single-chip microcomputer judges the face orientation of the card according to the relative intensity of the three primary colors of red, green and blue output by the color sensor. the

其特征在于还包括由按键和指示灯组成的人机交互设备,按键和指示灯与单片机连接,用在需要存储牌面颜色时,人机交互。所述的单片机中固化有预先存储牌面颜色及检测程序。  It is characterized in that it also includes a human-computer interaction device composed of buttons and indicator lights, which are connected with a single-chip microcomputer and used for human-computer interaction when the color of the card surface needs to be stored. The pre-stored card face color and detection program are solidified in the single-chip microcomputer. the

所述的普通麻将牌的牌面自动检测装置的检测,包括以下步骤:  The detection of the card face automatic detection device of described common mahjong tiles may further comprise the steps:

(1)麻将机出厂前(或换牌时),通过单片机预先采集二副牌的牌面颜色信息(红绿蓝三基色相对强度),存储在单片机内。  (1) Before the mahjong machine leaves the factory (or when the cards are changed), the card face color information (relative intensity of the three primary colors of red, green and blue) of the second deck of cards is collected in advance through the single-chip microcomputer, and stored in the single-chip microcomputer. the

(2)麻将工作时,单片机将采集到的牌面颜色信息与预存在单片机内中的颜色信息分析比较,判断牌面朝向。  (2) When mahjong is working, the single-chip microcomputer analyzes and compares the collected card face color information with the color information pre-stored in the single-chip microcomputer to judge the card face orientation. the

本实用新型与现有技术相比较,优点在于:牌面朝向检测结果准确;不需要设置防尘机构;可消除温度等因素对检测的影响;使麻将机可以采用普通麻将牌,以降低麻将机的生产成本。  Compared with the prior art, the utility model has the advantages that: the detection result of the face of the tiles is accurate; no dustproof mechanism is required; production cost. the

附图说明 Description of drawings

图1是本实用新型的原理示意图;  Fig. 1 is a schematic diagram of the principle of the utility model;

图2是本实用新型的颜色检测器结构示意图;  Fig. 2 is the structural representation of color detector of the present utility model;

图3(a)是本实用新型的颜色检测器输牌道侧壁安装主视图(剖视);  Fig. 3 (a) is the installation front view (section) of the side wall of the color detector of the utility model for losing cards;

图3(b)是本实用新型的颜色检测器输牌道上壁安装主视图(剖视);  Fig. 3 (b) is the front view (sectional view) of the installation on the upper wall of the color detector of the utility model on the way of losing cards;

图4是本实用新型的一种电路原理图。  Fig. 4 is a schematic circuit diagram of the utility model. the

图1~图3中:1.颜色检测器;11.光源;12.颜色传感器;2.单片机;3.人机交互设备;4.麻将牌;5.麻将牌输牌道外壁;6.麻将牌传送带。  In Figures 1 to 3: 1. Color detector; 11. Light source; 12. Color sensor; 2. Single-chip microcomputer; 3. Human-computer interaction equipment; 4. Mahjong tiles; Carousel belt. the

具体实施方式 Detailed ways

下面参照附图对本实用新型作进一步详细描述。  Below with reference to accompanying drawing, the utility model is described in further detail. the

一种普通麻将牌的牌面自动检测装置,如图1所示,包括颜色检测器1、单片机2、人机交互设备3。  An automatic detection device for the surface of ordinary mahjong tiles, as shown in FIG. the

颜色检测器1结构示意如图2所示,由光源11和颜色传感器12组成,光源11和颜色传感器12中心间距3.8mm。  The structural diagram of the color detector 1 is shown in FIG. 2 , which is composed of a light source 11 and a color sensor 12 , and the distance between the centers of the light source 11 and the color sensor 12 is 3.8 mm. the

颜色检测器安装在输牌道外壁中。图3(a)为预存、检测麻将牌正面(刻字面)颜色时,颜色检测器安装示意图:光源11对着麻将牌的上边缘(或下边缘)空白无字处。若预存、检测麻将牌反面,颜色检测器安装位置对着麻将牌面即可。图3(b)为颜色检测器安装在输牌道上壁时的示意图,光源11和颜色传感器12位置应在麻将牌贴面层正上方。  The color detector is installed in the outer wall of the card feeding channel. Figure 3(a) is a schematic diagram of the installation of the color detector when pre-stored and detecting the color of the front (lettered face) of the mahjong tiles: the light source 11 is facing the upper edge (or lower edge) of the mahjong tiles where there is no word. If the reverse side of the mahjong tiles is pre-stored and detected, the installation position of the color detector can face the mahjong tiles. Fig. 3(b) is a schematic diagram of the color detector installed on the upper wall of the playing path, and the position of the light source 11 and the color sensor 12 should be directly above the veneer layer of the mahjong tiles. the

光源11,可选直径3mm、发光角度15度的白光LED。附图4中,D1为光源11,R1为限流电阻,阻值510Ω。  The light source 11 can be a white LED with a diameter of 3 mm and a light emitting angle of 15 degrees. In the accompanying drawing 4, D1 is the light source 11, R1 is the current limiting resistor with a resistance value of 510Ω. the

颜色传感器12,可选内部集成有光电二极管、红色、绿色、蓝色滤光片的器件,型号:OPB780、S7505、TCS31xx、TCS32xx、TCS34xx等。  Color sensor 12, optional device integrated with photodiode, red, green and blue light filters, model: OPB780, S7505, TCS31xx, TCS32xx, TCS34xx, etc. the

附图4中,U1为颜色传感器12,型号为TCS3404,其内部集成有4组16个光电二极管,其中3组分别带红色、绿色、蓝色滤光片,1组无滤光片,将光的红绿蓝三基色成分光强及总光强度转换成数字量,附图4给出了与单片机2连接的具体电路。  In accompanying drawing 4, U1 is color sensor 12, and model is TCS3404, and it is integrated with 4 groups of 16 photodiodes inside, wherein 3 groups have red, green, blue filter respectively, and 1 group has no filter, the light The light intensity and total light intensity of the three primary colors of red, green and blue are converted into digital quantities. Accompanying drawing 4 has provided the concrete circuit that is connected with single-chip microcomputer 2. the

单片机2可选内部集成有FlashROM、EEPROM的8位或32位单片机。  The single-chip microcomputer 2 can be an 8-bit or 32-bit single-chip microcomputer integrated with FlashROM and EEPROM. the

附图4中,U2为单片机2,型号为STC15F104E,该单片机8个管脚,内部集成有4KB的FlashROM、1KB的EEPROM以及时钟、复位电路。  In accompanying drawing 4, U2 is single-chip microcomputer 2, model is STC15F104E, and this single-chip microcomputer has 8 pins, and the FlashROM of 4KB, the EEPROM of 1KB and clock, reset circuit are integrated inside. the

附图4中,K1为人机交互设备中的按键,D2为人机交互设备中的指示灯,R2为限流电阻,阻值为470Ω。  In the attached drawing 4, K1 is a key in the human-computer interaction device, D2 is an indicator light in the human-computer interaction device, R2 is a current limiting resistor with a resistance value of 470Ω. the

附图4中,C1为滤波电容,容量为100nF。  In the accompanying drawing 4, C1 is a filter capacitor with a capacity of 100nF. the

所述的普通麻将牌的牌面自动检测装置的检测方法如下:  The detection method of the card face automatic detection device of described common mahjong tiles is as follows:

(1)预先存储二副牌的牌面颜色信息在单片机片内EEPROM中。  (1) Store the face color information of the two decks of cards in the EEPROM on-chip of the single-chip microcomputer in advance. the

(2)麻将机工作时,单片机将实时检测到牌面颜色信息与预存在单片机片内EEPROM中的颜色信息分析比较,判断牌面朝向。  (2) When the mahjong machine is working, the single-chip microcomputer will analyze and compare the color information of the card surface detected in real time with the color information pre-stored in the EEPROM on-chip of the single-chip computer, and judge the direction of the card surface. the

Claims (4)

1.一种普通麻将牌的牌面自动检测装置,其特征在于:包括由光源(11)和颜色传感器(12)组成的颜色检测器(1)、单片机(2);颜色传感器(12)与单片机(2)连接;颜色检测器(1)安装在输牌道侧壁或上壁中。 1. a kind of board face automatic detection device of common mahjong tiles is characterized in that: comprise the color detector (1) that is made up of light source (11) and color sensor (12), single-chip microcomputer (2); Color sensor (12) and The single-chip microcomputer (2) is connected; the color detector (1) is installed in the side wall or the upper wall of the card losing channel. 2.根据权利要求1所述的一种普通麻将牌的牌面自动检测装置,其特征在于:还包括由按键(K1)和指示灯(D2)组成的人机交互设备(3),按键(K1)和指示灯(D2)与单片机(2)连接。 2. the face automatic detection device of a kind of common mahjong tile according to claim 1, is characterized in that: also comprise the human-computer interaction equipment (3) that is made up of button (K1) and indicator lamp (D2), button ( K1) and indicator light (D2) are connected with single-chip microcomputer (2). 3.根据权利要求1所述的一种普通麻将牌的牌面自动检测装置,其特征在于:所述的颜色传感器(12),为内部集成有光电二极管、红色、绿色、蓝色滤光片的器件。 3. the face automatic detection device of a kind of common mahjong tiles according to claim 1, is characterized in that: described color sensor (12) is integrated with photodiode, red, green, blue color filter inside device. 4.根据权利要求1所述的一种普通麻将牌的牌面自动检测装置,其特征在于:所述的单片机(2)为内部集成有FlashROM、EEPROM的8位或32位单片机。  4. the face automatic detection device of a kind of common mahjong tile according to claim 1, is characterized in that: described single-chip microcomputer (2) is the 8 or 32 single-chip microcomputers that are internally integrated with FlashROM, EEPROM. the
CN 201220127900 2012-03-30 2012-03-30 Tile face automatic detecting device of common mahjong tiles Expired - Fee Related CN202599806U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220127900 CN202599806U (en) 2012-03-30 2012-03-30 Tile face automatic detecting device of common mahjong tiles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220127900 CN202599806U (en) 2012-03-30 2012-03-30 Tile face automatic detecting device of common mahjong tiles

Publications (1)

Publication Number Publication Date
CN202599806U true CN202599806U (en) 2012-12-12

Family

ID=47317335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220127900 Expired - Fee Related CN202599806U (en) 2012-03-30 2012-03-30 Tile face automatic detecting device of common mahjong tiles

Country Status (1)

Country Link
CN (1) CN202599806U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102614657A (en) * 2012-03-30 2012-08-01 南京财经大学 Device and method for automatically detecting surface of common mahjong tile

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102614657A (en) * 2012-03-30 2012-08-01 南京财经大学 Device and method for automatically detecting surface of common mahjong tile
CN102614657B (en) * 2012-03-30 2014-03-19 南京财经大学 Device and method for automatically detecting surface of common mahjong tile

Similar Documents

Publication Publication Date Title
CN102686407B (en) High contrast retroreflective sheeting and license plates
CN202050396U (en) Touch control device
CN201707304U (en) Device for automated optical inspection of surface of product
CN201130057Y (en) Color detector and color recognition device
CN101109659A (en) Device and method for color recognition
CN203949857U (en) Hand-held colloidal gold strip card reader
CN203629685U (en) Color identification device based on LED
CN203455848U (en) Image identification-based identity information acquisition system
CN100570330C (en) A reagent color detection device based on a color sensor
CN102614657B (en) Device and method for automatically detecting surface of common mahjong tile
CN202599806U (en) Tile face automatic detecting device of common mahjong tiles
CN207964840U (en) The food safety comprehensive analytical equipment of fluorescence immune chromatography quantitative check can be achieved
TW201326766A (en) LED luminance detecting system
US9214050B2 (en) Bill counter with a detector
CN203072041U (en) Contact image sensor
TWI647438B (en) Keyboard circuit board testing system
CN203117107U (en) Device for detecting penetration rate of photochromic material
CN209541898U (en) A kind of illumination photometer with safety guard
CN202149880U (en) Contact photoelectric sensor for identifying front face and back face of bamboo filament
CN204013720U (en) Skew ray plate and there is its contact-type image sensor
CN206584262U (en) Electronic equipment
GB2228315A (en) Colour recognition system for table ball games
CN104307166A (en) Optical conduction based electronic chessboard manufacturing method and device thereof
CN202057418U (en) Light-sensing detection device
CN109254239A (en) Keyboard circuit board detection system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212

Termination date: 20140330