Game coin status detection method, device, electronic device and storage medium
Through image frame sequences, the game currency information changes and outputs alarm information is solved, and the game currency status detection in the prior art is inaccurate, high-accuracy detection and timely alarms are achieved, and game rules and related interests are protected.
Patent Information
- Application Number
- CN202180001676.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-21
- Filing Date
- 2021-06-25
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-06-25
AI Technical Summary
The existing technology is difficult to accurately detect the status of the game currency, and it is easy to miss abnormal game currency situations, resulting in the destruction of game rules and causing losses to the casino or players.
By obtaining the image frame sequence of the game table scene, identifying the changes in game currency information and outputting alarm information, improving the accuracy of game currency status detection.
It realizes high accuracy detection of game currency status, timely outputs alarm information, avoids the destruction of game rules, and protects the interests of casinos and players.
Smart Images

Figure CN113557067B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Singapore patent application number 10202106733W, filed on June 21, 2021, entitled “Method, device, electronic device and storage medium for detecting the status of game coins”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to computer vision technology, and in particular to a game coin status detection method, apparatus, edge device and storage medium. Background Art
[0004] For each game at the gaming table, players need to place game coins in the game coin area before the game starts, so that they can settle the game coins after the game results come out. After the game starts, no one can take away or add game coins in the game coin area until the game results come out, and the game leader needs to adjust the game coins in the game coin area according to the game results. Before the game results come out, if the game leader and participants take away or add game coins in the game coin area, causing game coin anomalies, it will break the game rules and cause losses to the casino or players. At present, the status of game coins is usually determined by manually supervising the game process, which is easy to miss abnormal game coin situations. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for detecting the status of game coins, which improve the detection accuracy of the status of game coins.
[0006] The technical solution of the present disclosure is achieved as follows:
[0007] The present disclosure provides a method for detecting a game coin status, comprising:
[0008] Obtain original image frames and an image frame sequence of a game table scene in a game paused state; the game table is provided with a plurality of areas for placing game coins; the original image frame is an image frame after the game coins are placed; based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area of the plurality of areas has changed, output game coin alarm information; based on the image frame sequence, when it is identified that a game coin operating object associated with a preset object appears in the first area, output process alarm information.
[0009] The present disclosure provides a device for detecting a game coin status, comprising:
[0010] An acquisition module is used to acquire an original image frame and an image frame sequence of a game table scene in a game paused state; the game table is provided with a plurality of areas for placing game coins; the original image frame is an image frame after the game coins are placed;
[0011] A first output module is configured to output game coin alarm information based on the image frame sequence and the original image frame when it is determined that the game coin information of the first area of the multiple areas has changed; the game coin alarm information is used to instruct the game table to issue a game coin alarm;
[0012] The second output module is used to output process alarm information based on the image frame sequence when it is identified that a game coin operating object associated with a preset object appears in the first area.
[0013] An embodiment of the present disclosure provides an electronic device, including:
[0014] Memory for storing computer programs;
[0015] The processor is used to implement the above-mentioned game coin status detection method when executing the computer program stored in the first memory.
[0016] The embodiment of the present disclosure provides a computer-readable storage medium storing a computer program for implementing the above-mentioned method for detecting the status of game coins when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the structure of an optional game coin status detection system provided in an embodiment of the present disclosure;
[0018] Figure 2 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0019] Figure 3 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0020] Figure 4 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0021] Figure 5 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0022] Figure 6 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0023] Figure 7A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0024] Figure 8 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0025] Fig. 9 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0026] Fig.10 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0027] Fig.11 A flow chart of an optional method for detecting the status of game coins provided in an embodiment of the present disclosure;
[0028] Fig.12 A schematic diagram of the structure of an optional game coin status detection device provided in an embodiment of the present disclosure;
[0029] Fig.13 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0031] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0032] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0034] Figure 1The following is a schematic diagram of a system structure for detecting the status of game coins provided in an embodiment of the present disclosure. Figure 1 As shown, the system 100 may include: a camera assembly 101, an electronic device 102, and a management system 103. The camera assembly 101 is connected to the electronic device 102 for communication, and the management system 103 is connected to the electronic device 102 for communication.
[0035] In the disclosed embodiment, the camera assembly 101 is used to capture a scene image of a game table scene and send the scene image to the electronic device 102; the electronic device 102 is used to detect the state of game coins based on the scene image, and when it is determined that the game coin information of a first area among multiple areas of the game table has changed, send game coin alarm information to the management system 103; and, when the game information of the first area has changed, identify whether a game coin operating object associated with a preset object appears in the first area, and if so, send process alarm information to the management system 103; the management system 103 issues an alarm based on the game coin alarm information and the process alarm information.
[0036] In the embodiment of the present disclosure, the camera component 101 can shoot the scene video of the game table in real time; it can also shoot the scene video of the game table periodically at preset time intervals; it can also shoot the scene video of the game table randomly and non-periodically. The shooting method of the camera component 101 can be set as needed, and the embodiment of the present disclosure does not limit it.
[0037] In the disclosed embodiment, the camera assembly 101 may include multiple cameras, and the multiple cameras are used to shoot the scene video of the game table. The multiple cameras can be set to different shooting angles, so that the camera assembly 101 can shoot the game table scene at multiple angles.
[0038] In the disclosed embodiment, the electronic device 102 can be implemented as an edge device, and each smart game table corresponds to an edge device; multiple edge devices are connected to a cloud communication, and the configuration is updated through the cloud, and the game coin status is detected based on the updated configuration.
[0039] In the disclosed embodiment, the management system 103 may include a display device, and the display device is used to display multiple game area identifiers, alarm reasons, game status information, etc. of the game table.
[0040] In some embodiments of the present disclosure, the management system 103 may also include at least one of the following: a sound device, a light device, and a vibration device, etc., and an alarm is issued through at least one of these devices. For example, when the game table issues an alarm, the sound device is used to prompt the player.
[0041] In the embodiments of the present disclosure, the camera assembly 101, the electronic device 102 and the management system 103 may be independent of each other or integrated together; for example, the camera assembly 101 and the electronic device 102 are integrated together, or the electronic device 102 and the management system 103 are integrated together; this is not limited by the embodiments of the present disclosure.
[0042] The following describes a method for detecting the status of game coins provided in an embodiment of the present application. The method can detect the status of game coins on a game table when the game is paused, and issue an alarm when the game coins change, thereby improving the accuracy of detecting the status of game coins.
[0043] The present disclosure provides a method for detecting the status of a game coin. Figure 2 As shown, the method may include: S101-S103.
[0044] S101, obtaining an original image frame and an image frame sequence of a game table scene in a game paused state; a plurality of areas for placing game coins are provided on the game table; and the original image frame is an image frame after the game coins are placed.
[0045] In the disclosed embodiment, the electronic device may divide the game into different game stages and set corresponding game states for different game stages; thus, different state determination methods may be set for different game states, thereby improving the flexibility of state determination.
[0046] In the disclosed embodiment, the game on the game table may be fishing, Texas Hold'em, poker, or Landlord, etc. The game on the game table may be a card game or a non-card game. The following embodiment will be described by taking a card game as an example.
[0047] In the disclosed embodiment, the game state may at least include: a game coin placement state, a game progress state, and a game coin calculation state; wherein, in the game coin placement state, each game participant may place game coins in the corresponding game coin area or take away game coins to adjust the game coin value; the game participants include a game controller and multiple players; in the game progress state, the game controller starts dealing cards; after the game result comes out, the game coin calculation state is entered, and in the game coin calculation state, the game controller may operate the game coins in each game coin area, for example, take away game coins or place game coins. Here, the game controller may be a real manager or a management robot.
[0048] It should be noted that in any game state, if the electronic device detects irregular operations during the game, such as: wrong card dealing order, wrong game coin placement area, etc., it can switch the current game state to the game paused state; in the game paused state, the electronic device needs to continue to determine the state of the game process. For example, after the electronic device determines the state until the game coins placed in the wrong area are restored to the correct area, the electronic device can switch the game paused state back to the game progress state.
[0049] In an embodiment of the present disclosure, after receiving a real-time video frame sequence captured by a camera assembly, the electronic device can obtain original image frames and an image frame sequence in a game paused state from the real-time video frame sequence.
[0050] In some embodiments of the present disclosure, the camera assembly includes multiple cameras, and the multiple cameras can shoot multiple real-time video frame sequences. In this way, the electronic device can synthesize the multiple real-time video frame sequences according to time to obtain a real-time image frame sequence, and then obtain the original image frames and the image frame sequence in the game paused state from the real-time image frame sequence.
[0051] In some embodiments of the present disclosure, synthesizing multiple real-time video frame sequences includes: splicing video frames in multiple real-time video frame sequences. For example, among the multiple video frames, the upper left corner area of some video frames is blocked, and the right side of some video frames is blocked. After the electronic device splices the multiple real-time video frame sequences, a real-time image frame sequence without occlusion can be obtained.
[0052] In an embodiment of the present disclosure, a plurality of areas for placing game coins are provided on a game table, and the plurality of areas include: a first area and a second area; wherein the game coins in the second area do not affect the game calculation, while the game coins in the first area are the basis for the game calculation; the game coins in the first area cannot change after the game coin placement state ends until the game calculation state is entered.
[0053] S102. Based on the image frame sequence and the original image frame, when it is determined that the gaming coin information of the first area among the multiple areas has changed, output gaming coin alarm information.
[0054] In the disclosed embodiment, after acquiring the image frame sequence and the original image frame, the electronic device may sequentially compare the image frames in the image frame sequence with the original image frame, and output game coin alarm information when determining that the game coin information of the first area among the multiple areas on the game table has changed; and instruct the game table to issue an alarm through the game coin alarm information. The game coin alarm information is used to instruct the game table to issue a game coin alarm.
[0055] In some embodiments of the present disclosure, the electronic device may compare the game coin information in the image frame sequence with the game coin information in the original image frame. When the game coin information in the image frame sequence is different from the game coin information in the original image frame, it identifies whether the area where the game coin information changes is the first area. When the area where the game coin information changes is the first area, it outputs game coin warning information.
[0056] In some embodiments of the present disclosure, the electronic device can identify the first area in the image frame sequence and the original image frame, obtain game coin information of the first area in the image frame sequence and the game coin information of the first area in the original image frame, and output game coin warning information when the game coin information of the first area in the image frame sequence and the game coin information of the first area in the original image frame are different.
[0057] In an embodiment of the present disclosure, the electronic device may compare each frame in the image frame sequence with the original image frame in turn, and determine that the game coin information in the first area in a certain frame has changed if the game coin information in the first area in the original image frame is different from the game coin information in the first area in the original image frame; or, in the image frame sequence, determine that the game coin information in the first area has changed if the game coin information remains unchanged for a preset number of frames starting from a certain frame; the embodiment of the present disclosure is not limited to this.
[0058] In the disclosed embodiment, the game coin information includes the number of game coins and / or the value of game coins. Here, the different number of game coins includes an increase in the number of game coins or a decrease in the number of game coins, and the different value of game coins includes an increase in the value of game coins or a decrease in the value of game coins.
[0059] Exemplarily, the value of the game coins can be distinguished by color, with different colors corresponding to different values; thus, the electronic device can determine the game coin information of the first area by the number and color of the game coins in the first area.
[0060] In some embodiments of the present disclosure, the game coin alarm information may include the alarm reason and the alarm method; wherein the alarm reason may include an increase in game coins or a decrease in game coins; the alarm method may include: at least one of the following: displaying the alarm reason on a display device; emitting an alarm light through a light-emitting device; emitting an alarm sound through a sound-emitting device; or performing an alarm vibration through a vibration method, etc., which is not limited by the embodiments of the present disclosure.
[0061] In some embodiments of the present disclosure, the first area includes multiple areas, each of which corresponds to a game participant; the game coin alarm information may also include first area information; the first area information indicates the correspondence between the area where the game coin changes occur and the game participant.
[0062] Exemplarily, the game table can provide four player positions, namely player A, player B, player C and player D; the first area on the game table includes four areas, namely area A, area B, area C and area D; after the electronic device determines that the game coins in area A have changed, it outputs an alarm message, and instructs the indicator light corresponding to player A to light up through the alarm message, prompting that the game coins in area A corresponding to player A have changed.
[0063] S103. Based on the image frame sequence, when a game coin operating object associated with a preset object is identified to appear in the first area, a process alarm message is output.
[0064] In the embodiment of the present disclosure, after the electronic device outputs the game coin alarm information when it determines that the game coin information in the first area has changed, it can identify whether a game coin operating object associated with a preset object appears in the first area of the image frame sequence, and if so, output the process alarm information.
[0065] In the embodiments of the present disclosure, the preset object may be a character of a game controller, which is a neutral NPC (non-player character), and the game coin operator may be a body part or object used by the game controller to operate the game coins, such as a human hand, or a hand-held part, etc., which is not limited in the embodiments of the present disclosure.
[0066] For example, when the preset object is a person, its face and body part (such as a hand) can be associated, so as to associate the body part with the face ID of the preset object to obtain the hand associated with the preset object. Correspondingly, the hands of each player (other object) participating in the game are also associated with their own faces.
[0067] Then, when the electronic device recognizes a sequence of image frames, if it recognizes that there is an association between a human hand and a game coin, for example, a human hand is recognized operating a game coin in the game coin placement area, the electronic device can first determine which human face is associated with the human hand. When the human hand is recognized as a preset object, it can determine that the game coin operating object in the first area associated with the human hand is the preset object human hand.
[0068] In some embodiments of the present disclosure, the electronic device may also output a process warning message based on the image frame sequence when a game coin operation object associated with a preset object in a preset direction appearing in the first area is identified.
[0069] It should be noted that the game participants need to operate the game coins in the first area through game coin operating objects (e.g., human body parts), such as hands, to change the game coin information in the first area. In this way, the human body parts of the game participants will appear in the first area of the image frame sequence; because different game participants are in different positions on the game table, the operation directions of different game participants are different. Here, the preset direction is the direction of the human body part of the game controller; when the electronic device recognizes that the game coin operating object associated with the preset object appears in the first area, it can be determined that the game controller has operated the game coins in the first area, resulting in a change in the game coin information in the first area.
[0070] In the disclosed embodiment, when the electronic device determines that the game controller has operated the game coins in the first area, it indicates that the game controller has started to perform the game coin calculation operation; since normal calculation operations should be successfully completed in the game progress state and the operation in the game calculation state is entered after the game result is obtained; therefore, the calculation operation in the game pause state is the calculation operation performed after the game process becomes abnormal; the electronic device can output process alarm information.
[0071] In the disclosed embodiment, the process warning information is used to characterize the abnormal process of the current game. Here, the electronic device outputs the process warning information once in each game; that is, after outputting the process warning information once, if the electronic device detects that the game controller has operated the game coins in the first area again in the game pause state during the current game, resulting in a change in the game coin information in the first area, the process warning information will no longer be output.
[0072] It is understandable that the electronic device can determine whether the game coin information in the first area has changed when the game is paused, and output game coin alarm information when the game coin information in the first area has changed; and, when the change in the game coin information in the first area is caused by the operation of a game coin operating object associated with a preset object, determine that the game controller performs a game coin calculation operation after the game process is abnormal, and output process alarm information; thereby improving the detection accuracy of the game coin status in the game paused state and achieving efficient management of the game process.
[0073] In some embodiments of the present disclosure, in S102, based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area in the plurality of areas has changed, the game coin alarm information is output, such as Figure 3 As shown, it may include: S201-S203.
[0074] S201, identifying the game coin information in the i-th frame in the image frame sequence, and obtaining the i-th game coin information; i is a positive integer greater than 1.
[0075] In the disclosed embodiment, the electronic device may compare each frame in the image frame sequence with the original image frame in turn, and then determine whether the game coin information in the first area has changed.
[0076] In the disclosed embodiment, the electronic device can identify the game coin information of each frame obtained, and compare the game coin information of the frame with the game coin information of the original image frame. After the electronic device obtains the i-th frame, it can identify the game coin information of the i-th frame and obtain the i-th game coin information.
[0077] S202: When the original game coin information in the original image frame is different from the i-th game coin information, identify a region with different game coin information among multiple regions as a first target region.
[0078] In the disclosed embodiment, after obtaining the i-th game coin information, the electronic device compares the i-th game coin information with the original game coin information; wherein the original game coin information is the game coin information identified from the original image frame. When the electronic device determines that the i-th game coin information is different from the original game coin information, it identifies the area in the i-th frame and the original image frame where the game coin information is different as the first target area.
[0079] In the disclosed embodiment, the electronic device can identify multiple game coin areas (i.e., multiple areas) on the i-th frame, and multiple game coin areas in the original image frame, and obtain game coin information of each of the multiple game coin areas; compare the game coin information of the multiple game coin areas in the i-th frame with the game coin information of the multiple game coin areas in the original image frame, and determine the area with different game coin information as the first target area.
[0080] S203: Based on the first target area and the first area, when it is determined that the game coin information in the first area has changed, output game coin alarm information.
[0081] In the embodiment of the present disclosure, after determining the first target area, the electronic device can determine whether the game coin information of the first area has changed based on the first target area and the first area, and output game coin alarm information if it has changed.
[0082] In some embodiments of the present disclosure, the electronic device may determine that the gaming coin information of the first area has changed when the first target area belongs to the first area.
[0083] In some embodiments of the present disclosure, in S203, based on the first target area and the first area, when it is determined that the game coin information of the first area has changed, the game coin alarm information is output, such as Figure 4As shown, it may include: S301-S303.
[0084] S301. When the first target area belongs to the first area, obtain the i-1th game coin information and the i-1th change value of the i-1th frame; the i-1th change value is used to represent the number of consecutive frames in which the game coin information of the first area corresponding to the i-1th frame changes relative to the original image frame.
[0085] In the embodiment of the present disclosure, when the electronic device determines that the first target area belongs to the first area, it obtains the game coin information of the i-1th frame, that is, the i-1th game coin information, and the i-1th change value; based on the i-1th frame, the i-th frame and the i-1th change value, it determines the i-th change value.
[0086] It should be noted that, after the electronic device detects for the first time in a frame that the game coin information on the game table has changed and determines that the area where the game coin information has changed belongs to the first area, the initial change value is used as the change value of this frame; the initial change value indicates that this frame is the first frame where the game coin information has changed.
[0087] Here, the initial change value may be 1, or may be any value other than 1, and the embodiments of the present disclosure do not limit this.
[0088] In an embodiment of the present disclosure, when the electronic device determines that the first target area does not belong to the first area, the original value is determined as the i-th change value; the original value is used to indicate that the game coin information of the first area of the i-th frame is the same as the game coin information of the first area in the original image frame.
[0089] In some embodiments of the present disclosure, the original value may be 0.
[0090] S302. When the i-th game coin information is the same as the i-1-th game coin information, increase the i-1-th change value by a first preset value to obtain the i-th change value.
[0091] In the disclosed embodiment, after obtaining the i-1th game coin information and the i-1th change value, the electronic device determines whether the i-1th game coin information and the i-th game coin information are the same. If the i-1th game coin information and the i-th game coin information are the same, the i-1th change value is increased by the first preset value to obtain the i-th change value. The first preset value can be set as needed, and the embodiment of the present application does not limit this.
[0092] It should be noted that, when the i-th game coin information has not changed compared to the i-1-th game coin information, it means that the game coins on the game table have not been taken away or replenished; the game coin information in the first area will not change. Therefore, when the i-th game coin information is the same as the i-1-th game coin information, the electronic device can determine that the game coin information in the first area has not changed between the i-1 frame to the i-th frame.
[0093] S303: When the i-th change value is greater than or equal to the first change threshold, determine that the game coin information in the first area has changed, and output game coin alarm information.
[0094] In the embodiment of the present disclosure, after obtaining the i-th change value, the electronic device determines whether the i-th change value is greater than or equal to the first change threshold. When the i-th change value is greater than or equal to the change threshold, it determines that the game coin information in the first area has changed relative to the original image frame, thereby outputting game coin alarm information.
[0095] In the embodiment of the present disclosure, after the electronic device detects that the game coin information in the first area of a certain frame has changed relative to the original image frame, it is necessary to determine whether the number of frames maintained by this change reaches the number of frames corresponding to the first change threshold. If so, it is determined that the game coin information in the first area has changed.
[0096] Here, the first change threshold may be set as required, and the embodiments of the present disclosure do not limit this.
[0097] It can be understood that after the electronic device determines that the game coin information in the first area in a certain frame has changed, it can determine that the game coin information in the first area has changed only when it determines that the change has maintained the number of frames corresponding to the first change threshold, thereby improving the accuracy of the electronic device in determining the change of the game coin information in the first area.
[0098] In some embodiments of the present disclosure, the implementation after S301 and before S303 is as follows: Figure 5 As shown, it may include: S401-S402.
[0099] S401. When the (i-1)th game coin information and the (i)th game coin information are different, identify the area where the (i-1)th frame and the (i)th frame have different game coin information as the second target area.
[0100] In the embodiment of the present disclosure, when the electronic device determines that the (i-1)th game coin information and the (i)th game coin information are different, it can identify the area where the (i-1)th frame and the (i)th frame game coin information are different as the second target area.
[0101] S402: When the second target area does not belong to the first area, increase the (i-1)th change value by a first preset value to obtain an (i)th change value.
[0102] In the embodiment of the present disclosure, the electronic device determines the second target area and can determine whether the second target area belongs to the first area; when the second target area does not belong to the first area, it means that the game coin information of the first area in the i-th frame has not changed, and the electronic device can increase the i-1th change value by the first preset value to obtain the i-th change value.
[0103] It can be understood that when the electronic device determines that the i-1th game coin information and the i-th game coin information are different, it can identify the area where the game coin information changes. When the area where the game coin information changes does not belong to the first area, it determines that the game coin information in the first area in the i-th frame is the same as the game coin information in the first area in the i-1th frame.
[0104] In some embodiments of the present disclosure, in S304, when the i-1th game coin information and the i-th game coin information are different, the area where the game coin information of the i-1th frame and the i-th frame is different is identified as the second target area. Then, the electronic device can determine the initial change value as the i-th change value when the second target area belongs to the first area.
[0105] In an embodiment of the present disclosure, when it is determined that the second target area belongs to the first area, the electronic device can determine that the game coin information of the first area in the i-th frame is different from the game coin information of the first area in the i-1-th frame; that is, the game coin information of the first area in the i-th frame has changed compared to the game coin information of the first area in the original image frame, and the i-th frame is the first frame corresponding to this change; therefore, the electronic device can determine the i-th change value as the initial change value.
[0106] Exemplarily, the initial change value is 1, the original value is 0, and the first change threshold is 19; the electronic device sequentially acquires each frame in the image frame sequence, and when the 11th frame is acquired, the electronic device detects that the 11th game coin information is different from the original game coin information, and continues to identify the area with different game coin information as the target area, and when it is determined that the target area is the first area, it determines that the 11th change value is 1; thereafter, when the electronic device detects that the game coin information in the first area in each frame from the 12th frame to the 29th frame is the same as the game coin information in the first area in the 11th frame, it can obtain the 29th change value as 19, and at this point, the electronic device can determine that the game coin information in the first area has changed.
[0107] In some embodiments of the present disclosure, the original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: the number of original game coins in the original image frame is greater than the number of i-th game coins in the i-th frame, and / or the value of the original game coins in the original image frame is higher than the value of the i-th game coins in the i-th frame; outputting game coin warning information includes: outputting first game coin warning information; the first game coin warning information is used to characterize a decrease in the number of game coins and / or a decrease in game value in the first area.
[0108] In the embodiment of the present disclosure, the electronic device determines that the number of game coins has decreased and / or the value of game coins has decreased when the original number of game coins is greater than the i-th number of game coins and / or the value of the original game coins is higher than the i-th value of the game coins; in this way, the electronic device can output a first game coin alarm message when it determines that the area where the number of game coins has decreased and / or the value of game coins has decreased is the first area, and the first game coin alarm message indicates that the number of game coins has decreased and / or the value of game coins has decreased in the first area.
[0109] In some embodiments of the present disclosure, the original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: the number of original game coins in the original image frame is less than the number of i-th game coins in the i-th frame; the value of the original game coins in the original image frame is lower than the value of the i-th game coins in the i-th frame; outputting game coin alarm information includes: outputting second game coin alarm information; the second game coin alarm information is used to characterize an increase in the number of game coins and / or an increase in game value in the first area.
[0110] In the disclosed embodiment, the electronic device determines that the number of game coins has increased and / or the value of game coins has increased when the original number of game coins is less than the i-th number of game coins and / or the value of the original game coins is lower than the value of the i-th game coins; in this way, the electronic device can output second game coin alarm information when it determines that the area where the number of game coins has increased and / or the value of game coins has increased is the first area, and the increase in the number of game coins and / or the increase in the value of game coins is represented by the second game coin alarm information.
[0111] In some embodiments of the present disclosure, in S202, when the original game coin information in the original image frame is different from the i-th game coin information, the area with different game coin information is identified as the implementation of the first target area, such as Figure 6 As shown, it may include: S501-S503.
[0112] S501, identifying the original number of game coins from the original image frame; and identifying the i-th number of game coins from the i-th frame.
[0113] In the embodiment of the present disclosure, the electronic device can identify the number of game coins from the original image frame as the original number of game coins; and identify the number of game coins from the i-th frame as the i-th number of game coins.
[0114] S502: When the original number of game coins is different from the i-th number of game coins, determine that the original game coin information is different from the i-th game coin information.
[0115] In the embodiment of the present disclosure, after obtaining the original number of game coins and the i-th number of game coins, the electronic device determines whether the original number of game coins and the i-th number of game coins are the same. If the original number of game coins and the i-th number of game coins are different, it determines that the original game coin information and the i-th game coin information are different.
[0116] S503: Based on the original image frame and the i-th frame, determine an area with different game coin information as a first target area.
[0117] In the disclosed embodiment, after determining that the original game coin information and the ith game coin information are different, the electronic device may compare the original image frame with the ith frame, and identify the area with different game coin information as the first target area.
[0118] It is understandable that the electronic device can first determine whether the original number of game coins and the i-th number of game coins are the same. If the original number of game coins and the i-th number of game coins are different, it can directly determine that the original game coin information and the i-th game coin information are different, thereby quickly determining that the game coin information of the i-th frame has changed.
[0119] In some embodiments of the present disclosure, in S501, the original number of game coins is identified from the original image frame; and after the i-th number of game coins is identified from the i-th frame, in S503, the area with different game coin information is determined based on the original image frame and the i-th frame as the implementation before the first target area, such as Figure 7 As shown, it may include: S601-S602.
[0120] S601. When the original number of game coins and the i-th number of game coins are the same, identify the original game coin value from the original image frame; and identify the i-th game coin value from the i-th frame.
[0121] In the embodiment of the present disclosure, when the electronic device determines that the original number of game coins and the i-th number of game coins are the same, it can identify the value of the game coins from the original image frame as the original game coin value, and identify the value of the game coins from the i-th frame as the i-th game coin value, and based on the original game coin value and the i-th game coin value, determine whether the original game coin information is the same as the i-th game coin information.
[0122] S602: When the original game coin value and the i-th game coin value are different, determine that the original game coin information and the i-th game coin information are different.
[0123] In the disclosed embodiment, after obtaining the original game coin value and the i-th game coin value, the electronic device may determine that the original game coin information and the i-th game coin information are different if the original game coin value and the i-th game coin value are different.
[0124] It can be understood that the electronic device can determine that the original game coin information and the i-th game coin information are different when the original game coin quantity and the i-th game coin quantity are the same, or when the original game coin value and the i-th game coin value are different, thereby improving the accuracy of determining the game coin information.
[0125] In some embodiments of the present disclosure, the electronic device switches the game state from the game pause state to the game calculation state when identifying that a game coin operation object associated with a preset object appears in the first area based on the image frame sequence.
[0126] In the disclosed embodiment, the electronic device may switch the game state from the game pause state to the game calculation state through a dealing sequence (DS) module.
[0127] In the embodiment of the present disclosure, when the electronic device recognizes that a game coin operating object associated with a preset object appears in the first area, it can be determined that the game controller has operated on the game coins in the first area, such as taking away or replenishing them, and then it can be determined that the game has entered a game calculation state, and the game controller begins to calculate based on the game coins in the first area; in this way, the electronic device can switch the game state through the DS module, switching the game pause state to the game calculation state, which is facilitating the electronic device to detect the game state according to the state determination method corresponding to the game calculation state.
[0128] In some embodiments of the present disclosure, in S103, based on the image frame sequence, when a game coin operation object associated with a preset object appears in the first area, outputting process alarm information is implemented, such as Figure 8 As shown, it may include: S701-S702.
[0129] S701, in the case where a game coin operator is detected to appear in the first area in the m consecutive image frames before the i-th frame of the image frame sequence, identifying the direction of the game coin operator to obtain the operation direction; m is a positive integer;
[0130] In the embodiment of the present disclosure, when the i-th change value is greater than or equal to the first change threshold, after determining that the game coin information in the first area has changed, the electronic device can detect whether a game coin operator appears in the first area from the m consecutive image frames before the i-th frame, and when a game coin operator appears in the first area, identify the direction of the game coin operator as the operation direction. Wherein, m is a positive integer greater than the first threshold, and the value of m can be set as needed, and the embodiment of the present disclosure does not limit this.
[0131] S702: When the operation direction is a preset direction, determine that a game coin operation object associated with a preset object appears in the first area, and output process alarm information.
[0132] In the embodiment of the present disclosure, once the electronic device recognizes the operation direction, it continues to determine whether the operation direction is a preset direction. When the operation direction is the preset direction, it can be determined that a game coin operation object associated with the preset object appears in the first area, and then a process alarm information is output.
[0133] In the embodiment of the present disclosure, the preset direction is the direction in which the game controller's game coin operating object operates the first area; here, the preset direction can be represented by a preset angle range, and the operating direction can be represented by the part angle; in this way, when the part angle is within the preset angle orientation, the electronic device can determine that the game control value has operated the game coins in the first area and output a process alarm message.
[0134] It can be understood that, when the game coins in the first area are changed, the electronic device can determine whether the change in the game coin information in the first area is caused by the game controller operating the game coins in the first area by identifying whether game coin operating objects with a preset direction have appeared in the first area from m consecutive image frames before the i-th frame. If so, the electronic device outputs a process alarm message.
[0135] In some embodiments of the present disclosure, in S102, based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area of the multiple areas has changed, the implementation after outputting the game coin alarm information may also include:
[0136] S104. Based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area among the multiple areas has not changed, output game coin alarm cancellation information; the alarm cancellation information is used to instruct the gaming table to cancel the game coin alarm.
[0137] In the embodiment of the present disclosure, after the electronic device determines that the game coin information in the first area has changed and outputs the game coin alarm information, it continues to acquire the image frame sequence to determine whether the game coin information in the first area in the image frame sequence is restored to be consistent with the game coin information in the first area in the original image frame after outputting the game coin alarm information. If so, it outputs the game coin alarm cancellation information to instruct the gaming table to cancel the above-mentioned game coin alarm.
[0138] Here, the game table alarm mode and the game coin alarm cancellation mode correspond to each other. For example, if the game table alarm mode is to display the game coin alarm on the display screen, the alarm cancellation mode may be to delete the game coin alarm on the display screen; if the game table alarm mode is a vibration prompt, the alarm cancellation mode may be to cancel the vibration.
[0139] It can be understood that after the electronic device determines that the game coin information in the first area has changed, it returns to a state where no change has occurred, indicating that the game coins in the first area have been taken away or replenished and then restored to their original state. In this way, the electronic device can output a game coin alarm cancellation message to instruct the game table to cancel the game coin alarm.
[0140] In some embodiments of the present disclosure, in S104, based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area in the multiple areas has not changed, the game coin alarm release information is output, such as Fig. 9 As shown, it may include:
[0141] S801. Obtain the p-th frame and the p-1-th maintenance value from an image frame sequence; p is a positive integer greater than i+1.
[0142] In the disclosed embodiment, after acquiring the i-th frame, the electronic device determines that the i-th change value is greater than or equal to the first change threshold, and then outputs the game coin alarm information, and then continues to acquire the i+n-th frame (i.e., the p-th frame) in the image frame sequence; n is a positive integer. The electronic device acquires the p-th frame and the p-1-th maintenance value from the image frame sequence. Among them, the p-1-th change value is used to represent the number of consecutive frames in which the game coin information corresponding to the p-1-th frame is the same as the original image frame.
[0143] In the disclosed embodiment, the electronic device needs to determine whether the game coin information in the first area of the p-1 frame is the same as the game coin information in the first area of the original image frame. If they are the same, the initial maintenance value is used as the p-1 maintenance value; if they are different, the original maintenance value is used as the p-1 maintenance value. The initial maintenance value is used to characterize the first frame after the game coin information changes and then recovers; the original maintenance value is used to characterize that the game coin information does not recover after the change. Here, p is a positive integer greater than i+1.
[0144] In some embodiments, the original maintenance value may be 0; the initial maintenance value may be 1, which is not limited in the embodiments of the present disclosure.
[0145] S802. When the game coin information in the first area of the original image frame is the same as the game coin information in the first area of the p-th frame, increase the p-1-th maintenance value by a second preset value to obtain a p-th maintenance value; the p-th maintenance value is used to represent the number of consecutive frames in which the game coin information corresponding to the p-th frame is the same as the original image frame.
[0146] In an embodiment of the present disclosure, for the pth frame, the electronic device can determine whether the game coin information in the first area of the pth frame is the same as the game coin information in the first area of the original image frame. If they are the same, the p-1th maintenance value is increased by the second preset value to obtain the pth maintenance value.
[0147] Here, the second preset value represents that the number of frames for recovering the game coins increases by one frame; the second preset value can be set as needed, and the embodiment of the present disclosure does not limit this.
[0148] In the embodiment of the present disclosure, when the electronic device determines that the gaming coin information in the first area in the p-th frame is different from the gaming coin information in the first area in the original image frame, the electronic device uses the original maintenance value as the p-th maintenance value.
[0149] In some embodiments of the present disclosure, the electronic device may determine that the game coin information of the first area in the pth frame is the same as the game coin information of the first area in the original image frame when the game coin information of the pth frame is the same as the original game coin information.
[0150] In some embodiments of the present disclosure, the electronic device can also determine whether the area where the game coin information of the pth frame has changed is the first area when the game coin information of the pth frame is different from the original game coin information. If not, it determines that the game coin information of the first area in the pth frame is the same as the game coin information of the first area in the original image frame.
[0151] S803: When the p-th maintenance value is greater than or equal to the second change threshold, it is determined that the game coin information in the first area has not changed, and a game coin alarm release message is output.
[0152] In the embodiment of the present disclosure, after obtaining the pth maintenance value, the electronic device can determine whether the pth maintenance value is greater than or equal to the second change threshold. If so, it is determined that the game coin information in the first area has not changed, that is, the game coin information in the first area that has changed is restored; the electronic device outputs a contact game coin alarm message; the second change threshold is used to represent the number of consecutive frames in which the game coin information in the first area in the pth frame is the same as the game coin information in the first area in the original image frame.
[0153] It can be understood that, when the electronic device determines that the game coin information in the first area has changed, it continues to determine whether the game coin information in the first area has been restored. After the game information in the first area in a certain frame is the same as the game coin information in the first area in the original image frame, it continues to determine whether the game coin information in the first area in the video frame after the certain frame continues to be the same as the game coin information in the first area in the original image frame, until the number of consecutive frames that are the same as the game coin information in the first area in the original image frame after the certain frame reaches the number of frames corresponding to the second change threshold, it is determined that the game coin information in the first area has been restored; thereby improving the accuracy of determining the status of the game coin information in the first area.
[0154] In some embodiments of the present disclosure, the electronic device can obtain at least two video frame sequences through a camera component in a game paused state; here, the camera component includes at least two cameras, and the camera component is arranged on a game table; wherein one video frame sequence can be obtained through one camera; the electronic device can synthesize at least two video frame sequences in time according to the effort to obtain an image frame sequence in the game paused state.
[0155] In the disclosed embodiment, the electronic device can remove obstructed or unclear areas during the synthesis process to obtain a clear image frame sequence without obstructions, thereby improving the recognition accuracy of the electronic device for the image frame sequence.
[0156] The disclosed embodiment provides a game coin status detection scenario, which is applied to a gaming venue. Each gaming table can be managed by a casino management system; the casino management system receives the alarm information output by the electronic device and instructs the corresponding gaming table to generate an alarm.
[0157] In the disclosed embodiment, the gaming venue is provided with a cloud device and multiple scalable edge devices (AI nodes). A set of intelligent gaming services is run in each edge device, which is used to control the overall progress of the game table game, detect irregular behaviors of the game controller or the player to determine the status, such as the wrong order of dealing cards, taking away the game coins after the cards are dealt, etc. When irregular behaviors are found, an alarm is issued to improve the accuracy of the detection of the game coin status; at the same time, the overall game situation (number of tables opened) is automatically counted to assist managers in making decisions.
[0158] The disclosed embodiment is described by taking a card game as an example. Fig.10 The game state transition diagram is shown as Fig.10As shown, the game state includes five stages: game idle state 1001 (idle), game coin placement state 1002, game progress state 1003 (gaming), game calculation state 1004 and game pause state 1005 (halt). In the game coin placement state 1002, all players can place game coins in the game coin placement area as the final calculation basis; in the game progress state 1003, the game controller (preset object) deals cards, and players cannot change the game coins placed in other game coin placement areas except the insurance area; in the game calculation state 1004, the game results are obtained, and the game controller calculates each player and the host according to the game results and the game coins in the game coin placement area. Among them, the game pause state 1005 is the state entered after the abnormal operation of the game process, for example, the game controller deals cards in the wrong order. In the game idle state, the electronic device can not detect the game coin state of the game process, that is, it will not output an alarm message. It should be noted that the game coin placement state 1002, the game progress state 1003, and the game calculation state 1004 can all be converted into the game pause state 1005. In the game pause state 1005, the electronic device needs to detect the game coin status during the game process.
[0159] In the disclosed embodiment, after the electronic device obtains three video frame sequences based on three cameras, the three video frame sequences can be synthesized into an image frame sequence, and each frame in the image frame sequence is stored in a queue. Here, the electronic device includes a parsing layer and a business layer, and the parsing layer obtains each frame in the image frame sequence from the queue, and performs image recognition on each frame to obtain a recognition result; here, the recognition result can include game coin information on the game table, players, game controllers, and human body parts (game coin operators) of players and game controllers, such as hands or arms, etc.; then, the parsing layer pushes the recognition result to the business layer, and the business layer detects the game coin status according to the recognition result; for example, the game coin information on the game table and the game coin information on the game table before the game controller pulls the card are compared to determine whether the game coin information has changed, and outputs an alarm message according to the change of the game coin information. In some embodiments, the parsing layer can also store the recognition result in the cache layer, and when the business layer needs to use the recognition result of a certain frame, the recognition result of the certain frame is obtained from the cache.
[0160] Fig.11 A flow chart of a method for detecting the status of game coins is shown. Fig.11 As shown, the method may include:
[0161] S901, obtaining the i-th frame in the image frame sequence;
[0162] S902, identifying the game coin information in the i-th frame, and obtaining the i-th game coin information;
[0163] In the disclosed embodiment, the image frame sequence is stored in a queue, and the electronic device can obtain the i-th frame from the queue through the parsing layer; and identify the game coin information in the i-th frame to obtain the i-th game coin information.
[0164] In the disclosed embodiment, after the electronic device identifies the i-th game coin information through the parsing layer, the i-th game coin information can be saved in the cache layer.
[0165] S903, determine whether the i-th game coin information is the same as the original game coin information; wherein the original game coin information is the game coin information in the original image frame; if so, execute S904; if not, execute S905-S906.
[0166] In the disclosed embodiment, the original image frame is an image frame after the game coins are placed. The electronic device identifies the original image frame through the parsing layer to obtain the game coin information in the original image frame, that is, the original game coin information.
[0167] S904, obtaining an original change value, and using the original change value as the i-th change value; wherein the i-th change value is used to represent the number of consecutive frames corresponding to the i-th frame when the game coin information is different;
[0168] S905, based on the i-th frame and the original image frame, identifying the area where the game coin information changes, and obtaining a first target area;
[0169] S906, determine whether the first target area is the first area; if so, execute S907-S908, if not, execute S904.
[0170] S907, obtaining the i-1th frame and the i-1th change value;
[0171] S908. Determine whether the game coin information of the i-1th frame is the same as the i-th game coin information; if so, execute S909-S911; if not, execute S914.
[0172] S909, increase the i-1th change value by 1 to obtain the i-th change value;
[0173] In the embodiment of the present disclosure, the first preset value is 1. When the electronic device determines that the game coin information of the i-1th frame is the same as the i-th game coin information, the electronic device increases the i-1th change value by 1 to obtain the i-th change value.
[0174] S910, determine whether the i-th change value is greater than the first change threshold; if so, execute S911 and S917;
[0175] S911. Determine whether the number of game coins in the target area in the i-th frame is the same as the number of game coins in the target area in the original image frame; if so, execute S912; if not, execute S916.
[0176] In the embodiment of the present disclosure, the electronic device can determine that the game coin information in the first area has changed when the i-th change value is greater than the first change threshold; at this time, the electronic device can determine whether the change in the game coins in the first area is an increase in the number of game coins and / or the value of game coins, or a decrease in the number of game coins and / or the value of game coins.
[0177] In the embodiment of the present disclosure, the electronic device can first determine whether the number of game coins in the target area in the i-th frame is the same as the number of game coins in the target area in the original image frame. If different, the alarm information to be output can be determined based on the increase or decrease in the number of game coins; if the same, it means that the value of the game coins in the target area in the i-th frame is different from the value of the game coins in the target area in the original image frame; in this case, the alarm information to be output needs to be determined based on the increase or decrease in the value of the game coins.
[0178] S912, determine whether the game coin value of the target area in the i-th frame is higher than the game coin value of the target area in the original image frame; if so, execute S913, if not, execute S914.
[0179] S913, outputting the second game coin warning information.
[0180] In embodiment i of the present disclosure, the value of game coins in the target area in the i-th frame is higher than the value of game coins in the target area in the original image frame, or the number of game coins in the target area in the i-th frame is greater than the number of game coins in the target area in the original image frame, indicating that after the game coins in the first area are placed, someone continues to place game coins in the first area, resulting in an increase in the number of game coins in the first area or an increase in value. At this time, the electronic device can output a second game coin alarm message.
[0181] In some embodiments of the present disclosure, the second gaming coin warning information may be delayed placement warning information.
[0182] S914: Output first game coin warning information.
[0183] In embodiment i of the present disclosure, the value of game coins in the target area in the i-th frame is lower than the value of game coins in the target area in the original image frame, or the number of game coins in the target area in the i-th frame is less than the number of game coins in the target area in the original image frame, indicating that after the game coins in the first area were placed, someone took away the game coins in the first area, resulting in a decrease in the number of game coins in the first area or a decrease in value. At this time, the electronic device can output a first game coin alarm message.
[0184] In some embodiments of the present disclosure, the first game coin warning information may be chip remove warning information.
[0185] S915. Determine whether the number of game coins in the target area in the i-th frame is greater than the number of game coins in the target area in the original image frame; if so, execute S913; otherwise, execute S914.
[0186] S916. Use the initial change value as the i-th change value.
[0187] S917: When a game coin operating object associated with a preset object appears in the first area in the m image frames before the i-th frame, output a process alarm message.
[0188] In some embodiments of the present disclosure, the process warning information may be a sequence error ignore warning information.
[0189] In the disclosed embodiment, the electronic device may first determine whether the game coin information in the first area has changed. If it is determined to be so, first determine whether the number of game coins in the first area has changed. If so, determine whether the number of game coins in the first area has increased or decreased. If it has increased, output second game coin alarm information; if it has decreased, output first game coin alarm information; if the number of game coins in the first area has not changed, then output alarm information based on the value of the game coins in the first area; if the value of the game coins has increased, output second game coin alarm information; if the value of the game coins has decreased, output first game coin alarm information; and, if the number of game coins in the first area has changed, the electronic device also needs to detect whether the hand of the game controller appears in the first area in the image frame sequence. If so, output a process alarm information; in this way, the detection accuracy of the game coin status is improved.
[0190] Based on the above embodiments, the present disclosure further provides a device for detecting the state of a game coin, such as Fig.12 As shown, the device 19 includes an acquisition module 1901, a first output module 1902 and a second output module 1903, wherein:
[0191] The acquisition module 1901 is used to acquire an original image frame and an image frame sequence of a game table scene in a game pause state; the game table is provided with a plurality of areas for placing game coins; the original image frame is an image frame after the game coins are placed;
[0192] The first output module 1902 is configured to output game coin warning information based on the image frame sequence and the original image frame when it is determined that the game coin information of the first area of the multiple areas changes;
[0193] The second output module 1903 is used to output process alarm information based on the image frame sequence when a game coin operating object associated with a preset object is identified in the first area.
[0194] In some embodiments, the game coin information includes: the number of game coins and / or the value of the game coins.
[0195] In some embodiments, the first output module 1902 is also used to identify the game coin information in the i-th frame in the image frame sequence to obtain the i-th game coin information; i is a positive integer greater than 1; when the original game coin information in the original image frame is different from the i-th game coin information, identify the area with different game coin information among the multiple areas as the first target area; based on the first target area and the first area, when it is determined that the game coin information in the first area has changed, output the game coin alarm information.
[0196] In some embodiments, the first output module 1902 is also used to obtain the i-1th game coin information and the i-1th change value of the i-1th frame when the first target area belongs to the first area; the i-1th change value is used to represent the number of consecutive frames in which the game coin information of the first area corresponding to the i-1th frame changes relative to the original image frame; when the i-th game coin information is the same as the i-1th game coin information, the i-1th change value is increased by a first preset value to obtain the i-th change value; when the i-th change value is greater than or equal to the first change threshold, it is determined that the game coin information of the first area has changed, and the game coin alarm information is output.
[0197] In some embodiments, the first output module 1902 is also used to identify, when the i-th game coin information is different from the i-1th game coin information, an area among the multiple areas where the i-th game coin information is different from the i-1th game coin information, as a second target area; when the second target area does not belong to the first area, increase the i-1th change value by the first preset value to obtain the i-th change value.
[0198] In some embodiments, the first output module 1902 is further configured to determine the initial change value as the i-th change value when the second target area belongs to the first area.
[0199] In some embodiments, the original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: the number of original game coins in the original image frame is greater than the number of i-th game coins in the i-th frame; the value of the original game coins in the original image frame is higher than the value of the i-th game coins in the i-th frame; the output of game coin warning information includes: outputting first game coin warning information; the first game coin warning information is used to characterize a decrease in the number of game coins and / or a decrease in game value in the first area.
[0200] In some embodiments, the original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: the number of original game coins in the original image frame is less than the number of i-th game coins in the i-th frame; the value of the original game coins in the original image frame is lower than the value of the i-th game coins in the i-th frame; the output of game coin alarm information includes: outputting second game coin alarm information; the second game coin alarm information is used to characterize an increase in the number of game coins and / or an increase in game value in the first area.
[0201] In some embodiments, the first output module 1902 is also used to identify the original number of game coins from the original image frame; and, to identify the i-th number of game coins from the i-th frame; when the original number of game coins and the i-th number of game coins are different, determine that the original game coin information and the i-th game coin information are different; based on the original image frame and the i-th frame, determine the area with different game coin information among the multiple areas as the first target area.
[0202] In some embodiments, the first output module 1902 is further used to identify the original game coin value from the original image frame when the original number of game coins and the i-th number of game coins are the same; and to identify the i-th game coin value from the i-th frame; and to determine that the original game coin information and the i-th game coin information are different when the original game coin value and the i-th game coin value are different.
[0203] In some embodiments, the second output module 1903 is further used to switch the game state from the game pause state to the game calculation state based on the image frame sequence when a game coin operation object associated with a preset object appears in the first area.
[0204] In some embodiments, the second output module 1903 is also used to identify the operation direction of the game coin operation object when an operation object is detected to appear in the first area in m consecutive image frames before the i-th frame of the image frame sequence; m is a positive integer greater than a first threshold value; when the operation direction is a preset direction, it is determined that a game coin operation object associated with a preset object appears in the first area, and a process alarm information is output.
[0205] In some embodiments, the first output module 1902 is also used to output a game coin alarm cancellation message based on the image frame sequence and the original image frame, when it is determined that the game coin information of the first area among the multiple areas has not changed; the alarm cancellation message is used to instruct the game table to cancel the game coin alarm.
[0206] In some embodiments, the first output module 1902 is also used to obtain the p-th frame and the p-1-th maintenance value from the image frame sequence; p is a positive integer greater than i+1; when the game coin information in the first area in the original image frame is the same as the game coin information in the first area in the p-th frame, the p-1-th maintenance value is increased by a second preset value to obtain the p-th maintenance value; the p-th maintenance value is used to represent the number of consecutive frames in which the game coin information corresponding to the p-th frame is the same as the original image frame; when the p-th maintenance value is greater than or equal to the second change threshold, it is determined that the game coin information in the first area has not changed, and the game coin alarm release information is output.
[0207] In some embodiments, the acquisition module 1901 is also used to acquire at least two video frame sequences in a game paused state; the at least two video frame sequences are captured by at least two cameras set on the game table; the at least two video frame sequences are synthesized in time to obtain the image frame sequence.
[0208] An embodiment of the present application provides an electronic device for implementing the method for detecting the status of game coins described in the above method embodiment. Fig.13 A schematic diagram of a hardware entity of an electronic device provided in an embodiment of the present application, such as Fig.13 As shown, the electronic device 102 includes a memory 2001 and a processor 2002, and the memory 2001 stores a computer program that can be run on the processor 2002. When the processor 2002 executes the program, the steps in the game coin status detection method described in any embodiment of the present application are implemented.
[0209] The memory 2001 is configured to store computer programs and applications performed by the processor 2002, and can also cache data to be processed or already processed by the processor 2002 and various modules in the second edge device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0210] When the processor 2002 executes the program, the steps of any of the above-mentioned methods for detecting the status of gaming coins are implemented. The processor 2002 generally controls the overall operation of the electronic device 102.
[0211] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, which is not limited by the embodiments of the present disclosure.
[0212] The above-mentioned computer-readable storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0213] The embodiment of the present disclosure provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above-mentioned game coin status detection method of the embodiment of the present disclosure.
[0214] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0215] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0216] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0217] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0218] The above description is only an embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modification, equivalent replacement and improvement made within the spirit and scope of the present disclosure are included in the protection scope of the present disclosure.
Claims
1. A method for detecting the status of a game coin, comprising: Obtaining the original image frame and the image frame sequence of the game table scene in the game paused state; The game table is provided with a plurality of areas for placing game coins; The original image frame is the image frame after the game coin is placed; Based on the image frame sequence and the original image frame, when it is determined that the gaming coin information of the first area of the plurality of areas changes, outputting gaming coin warning information; Based on the image frame sequence, when it is identified that a game coin operating object associated with a preset object appears in the first area, a process alarm message is output.
2. The method according to claim 1, wherein: The game coin information includes: the number of game coins and / or the value of game coins.
3. The method according to claim 2, wherein: The step of outputting game coin warning information based on the image frame sequence and the original image frame when determining that the game coin information of the first area among the multiple areas changes comprises: Identify the game coin information in the i-th frame in the image frame sequence to obtain the i-th game coin information; i is a positive integer greater than 1; In the case where the original game coin information in the original image frame is different from the i-th game coin information, identifying a region in the plurality of regions where the game coin information is different as a first target region; Based on the first target area and the first area, when it is determined that the gaming coin information of the first area changes, the gaming coin warning information is output.
4. The method according to claim 3, wherein: The outputting the game coin warning information based on the first target area and the first area when it is determined that the game coin information of the first area changes includes: In the case where the first target area belongs to the first area, obtaining the i-1th game coin information and the i-1th change value of the i-1th frame; the i-1th change value is used to represent the number of consecutive frames in which the game coin information of the first area corresponding to the i-1th frame changes relative to the original image frame; In the case where the i-th game coin information is the same as the i-1-th game coin information, increasing the i-1-th change value by a first preset value to obtain an i-th change value; When the i-th change value is greater than or equal to the first change threshold, it is determined that the gaming coin information of the first area has changed, and the gaming coin warning information is output.
5. The method according to claim 4, wherein: The method further comprises: In the case where the i-th game coin information is different from the i-1-th game coin information, identifying a region in the plurality of regions where the i-th game coin information is different from the i-1-th game coin information as a second target region; In the case that the second target area does not belong to the first area, the (i-1)th change value is increased by the first preset value to obtain the (i)th change value.
6. The method according to claim 5, wherein: The method further comprises: In the case that the second target area belongs to the first area, the initial change value is determined as the i-th change value.
7. The method according to claim 3, wherein: The original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: The number of original game coins in the original image frame is greater than the number of i-th game coins in the i-th frame; The original game coin value in the original image frame is higher than the i-th game coin value in the i-th frame; The outputting of the game coin warning information comprises: outputting the first game coin warning information; The first game coin warning information is used to indicate that the number of game coins in the first area is reduced and / or the game value is reduced.
8. The method according to claim 3, wherein: The original game coin information in the original image frame is different from the i-th game coin information in the i-th frame, including at least one of the following situations: The number of original game coins in the original image frame is less than the number of i-th game coins in the i-th frame; The original game coin value in the original image frame is lower than the i-th game coin value in the i-th frame; The outputting of the game coin warning information comprises: outputting the second game coin warning information; The second game coin warning information is used to indicate that the number of game coins in the first area increases and / or the game value increases.
9. The method according to any one of claims 3 to 8, wherein: In the case where the original game coin information in the original image frame is different from the i-th game coin information, identifying the region in the plurality of regions where the game coin information is different as the first target region comprises: Identifying the original number of game coins from the original image frame; and identifying the i-th number of game coins from the i-th frame; In the case where the original number of game coins and the i-th number of game coins are different, determining that the original game coin information and the i-th game coin information are different; Based on the original image frame and the i-th frame, an area among the multiple areas with different gaming coin information is determined as the first target area.
10. The method according to claim 9, wherein: The method further comprises: In the case where the original number of game coins and the i-th number of game coins are the same, identifying the original game coin value from the original image frame; and identifying the i-th game coin value from the i-th frame; In the case where the original game coin value and the i-th game coin value are different, it is determined that the original game coin information and the i-th game coin information are different.
11. The method according to any one of claims 1 to 8, 10, wherein: The method further comprises: Based on the image frame sequence, when it is identified that a game coin operator associated with a preset object appears in the first area, the game state is switched from the game pause state to the game payout state.
12. The method according to any one of claims 3 to 8 and 10, wherein: The outputting of process alarm information based on the image frame sequence when a game coin operation object associated with a preset object appears in the first area is identified includes: In the case where a game coin operator is detected in the first area in the m consecutive image frames before the i-th frame of the image frame sequence, identifying the operation direction of the game coin operator; wherein m is a positive integer greater than a first change threshold; When the operation direction is a preset direction, it is determined that a game coin operation object associated with a preset object appears in the first area, and a process alarm message is output.
13. The method according to any one of claims 3 to 8, 10, wherein: The method further comprises: Based on the image frame sequence and the original image frame, when it is determined that the gaming coin information of the first area among the multiple areas has not changed, a gaming coin alarm cancellation information is output; the alarm cancellation information is used to instruct the gaming table to cancel the gaming coin alarm.
14. The method according to claim 13, wherein: The outputting of the game coin alarm release information based on the image frame sequence and the original image frame when it is determined that the game coin information of the first area among the multiple areas has not changed includes: Obtaining the p-th frame and the p-1-th maintenance value from the image frame sequence; p is a positive integer greater than i+1; When the game coin information of the first area in the original image frame is the same as the game coin information of the first area in the p-th frame, the p-1-th maintenance value is increased by a second preset value to obtain a p-th maintenance value; the p-th maintenance value is used to represent the number of consecutive frames in which the game coin information corresponding to the p-th frame is the same as that of the original image frame; When the p-th maintenance value is greater than or equal to the second change threshold, it is determined that the gaming coin information in the first area has not changed, and the gaming coin alarm release information is output.
15. The method according to any one of claims 1 to 8, 10, and 14, wherein: Acquiring an image frame sequence of a game table scene in the game pause state, including: Acquire at least two video frame sequences in a game pause state; the at least two video frame sequences are acquired by at least two cameras arranged on the game table; The at least two video frame sequences are synthesized in time to obtain the image frame sequence.
16. A device for detecting the state of a game coin, comprising: An acquisition module, used to acquire an original image frame and an image frame sequence of a game table scene in a game paused state; The game table is provided with a plurality of areas for placing game coins; The original image frame is the image frame after the game coin is placed; A first output module is used to output game coin alarm information based on the image frame sequence and the original image frame when it is determined that the game coin information of the first area of the multiple areas changes; The second output module is used to output process warning information based on the image frame sequence when the game coin operating object associated with the preset object in the first area is identified.
17. An electronic device comprising: Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 15 when executing the computer program stored in the memory.
18. A computer-readable storage medium storing a computer program for implementing the method according to any one of claims 1 to 15 when executed by a processor.
Citation Information
Patent Citations
Fraud detection system in casino
US20170039807A1