Game state control method and device
Through computer vision detection of game identifier operation information, automatically switch game state, solving the problem of game interruption state recovery, improving the reliability and stability of the system, and ensuring the continuity of game detection.
Patent Information
- Application Number
- CN202180001755.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-18
- Filing Date
- 2021-06-25
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-06-25
AI Technical Summary
The existing computer vision detection system cannot automatically restore to normal state when the game is interrupted, resulting in discontinuous game detection and low system reliability and stability.
By obtaining the image frame sequence of the game table, detecting the operation information of the game identifier, automatically switch the game state according to preset conditions, and switching from the interrupt state to the result processing state to ensure the smooth progress of the game process.
It realizes automatic switching and recovery of game status without manual user intervention, improves the reliability and stability of the system and ensures the sustainability of game detection.
Smart Images

Figure CN113329796B_ABST
Abstract
Description
[0001] Cross-references to related publications
[0002] This disclosure is a national phase application of a PCT application with application number PCT / IB2021 / 055670 filed on June 25, 2021, and the PCT application claims priority to the Singapore patent publication with application number 10202106647X filed on June 18, 2021, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer vision technology, and in particular to a game state control method and device. Background Art
[0004] At present, scene behavior detection based on computer vision is widely used in various scenes. For scenes such as desktop games, the detection system needs to switch different game states according to the development of the game process. Summary of the invention
[0005] In a first aspect, an embodiment of the present disclosure provides a game state control method, the method comprising: obtaining an image frame sequence of a game table in which the game is in an interrupted state, the game table comprising a currency substitute operation area and a game marker operation area; upon detecting, based on at least one frame of the image frame sequence, that a preset operation object operates a currency substitute in the currency substitute operation area, obtaining detection information of a game marker in the game marker operation area in the at least one frame of the image, the detection information comprising identification information of the game marker; upon satisfying a preset game result generation condition, switching the game from the interrupted state to the result processing state.
[0006] In some embodiments, obtaining detection information of game markers in the game marker operation area in the at least one frame of image includes: performing game marker detection based on the at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each of the game markers.
[0007] In some embodiments, the method further includes: determining a first preset condition corresponding to the number of the game identifiers; and determining that the identification information satisfies a preset game result generation condition when it is determined that the first preset condition is met based on the identification information of each game identifier detected.
[0008] In some implementations, the method further includes: detecting an operation of a currency substitute in the currency substitute operation area based on the image frame sequence.
[0009] In some embodiments, the detecting operation of the currency substitute in the currency substitute operation area based on the image frame sequence includes: detecting changes in the currency substitute in the currency substitute operation area based on the image frame sequence; in the case where a change in the currency substitute is detected, determining whether a preset operation object is the one causing the change in the currency substitute; in response to the preset operation object causing the change in the currency substitute, determining that the preset operation object is detected operating the currency substitute in the currency substitute operation area.
[0010] In some implementations, determining whether the currency substitute that changes is a preset operation object includes: detecting, based on the image frame sequence, whether an operation component associated with the changed currency substitute belongs to the preset operation object.
[0011] In some embodiments, the preset operation object includes a preset person, the operating component includes a human hand, and whether the operating component associated with the currency substitute that has changed based on the image frame sequence detection belongs to the preset operation object includes: detecting a target human hand associated with the currency substitute that has changed based on the image frame sequence; detecting a target face associated with the target hand based on the image frame sequence; and determining whether the target hand belongs to the preset person based on a recognition result of the target face.
[0012] In some embodiments, the step of obtaining the detection information of the game marker in the game marker operation area in the at least one frame of image includes: reading the detection information of the game marker in the game marker operation area from a cache. The detection information of the game marker is generated in the following manner: taking each frame of the image frame sequence as a focus image in turn; performing game marker detection on the focus image to obtain a game marker detection result of the focus image; and updating the game marker detection result in the cache based on a comparison result between the game marker detection result of the focus image and the game marker detection result in the cache.
[0013] In some embodiments, the method further includes: when the identification information does not meet a preset game result generation condition, in response to receiving a manual switching instruction to switch the game to a currency substitute operation state, switching the game to a currency substitute operation state, and clearing the game identifier detection results in the cache.
[0014] In a second aspect, an embodiment of the present disclosure provides a game state control device, comprising: a first acquisition module, configured to acquire an image frame sequence of a game table when the game is in an interrupted state, the game table comprising a currency substitute operation area and a game marker operation area; a second acquisition module, configured to acquire detection information of a game marker in the game marker operation area in at least one frame of image, upon detecting that a preset operation object operates a currency substitute in the currency substitute operation area based on at least one frame of image in the image frame sequence, the detection information comprising identification information of the game marker; a state switching module, configured to switch the game from the interrupted state to the result processing state when the identification information satisfies a preset game result generation condition.
[0015] In some embodiments, the second acquisition module is specifically configured to: perform game marker detection based on the at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each game marker.
[0016] In some embodiments, the device also includes: a determination module, configured to determine a first preset condition corresponding to the number of the game identifiers; when it is determined that the first preset condition is met based on the identification information of each game identifier detected, determining that the identification information meets the preset game result generation condition.
[0017] In some embodiments, the apparatus further comprises: a detection module configured to detect an operation on a currency substitute in the currency substitute operation area based on the image frame sequence.
[0018] In some embodiments, the detection module is specifically configured to: detect changes in the currency substitute in the currency substitute operation area based on the image frame sequence; in the case where changes in the currency substitute are detected, determine whether a preset operation object is the one causing the change in the currency substitute; in response to the preset operation object causing the change in the currency substitute, determine that the preset operation object is detected operating the currency substitute in the currency substitute operation area.
[0019] In some implementations, the detection module is specifically configured to: detect, based on the image frame sequence, whether the operating component associated with the changed currency substitute belongs to the preset operating object.
[0020] In some embodiments, the preset operation object includes a preset person, the operating component includes a human hand, and the detection module is specifically configured to: detect the target human hand associated with the changed currency substitute based on the image frame sequence; detect the target human face associated with the target human hand based on the image frame sequence; and determine whether the target human hand belongs to the preset person based on the recognition result of the target human face.
[0021] In some embodiments, the second acquisition module is specifically configured to: read the detection information of the game marker in the game marker operation area from the cache. The detection information of the game marker is generated in the following manner: taking each frame of the image frame sequence as a focus image in turn; performing game marker detection on the focus image to obtain a game marker detection result of the focus image; and updating the game marker detection result in the cache based on a comparison result between the game marker detection result of the focus image and the game marker detection result in the cache.
[0022] In some embodiments, the device also includes: a manual switching module, which is configured to switch the game to a currency substitute operation state and clear the game identifier detection results in the cache in response to receiving a manual switching instruction to switch the game to a currency substitute operation state when the identification information does not meet a preset game result generation condition.
[0023] In a third aspect, an embodiment of the present disclosure provides a detection system, comprising: a processor; and a memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any embodiment of the first aspect.
[0024] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.
[0025] The game state control method of the disclosed embodiment includes: obtaining an image frame sequence of a game table when the game is in an interrupted state, and obtaining identification information of a game marker in the game marker operation area when a preset operation object is detected to operate a currency substitute in the currency substitute operation area based on at least one frame of the image frame sequence, and switching the game state from the interrupted state to the result processing state when the identification information meets the preset game result generation condition. The disclosed method realizes the detection of the game scene based on computer vision to ensure that the game process proceeds smoothly and in a standardized manner. In addition, when the game is in an interrupted state, by detecting the identification information of the game marker, the game is automatically switched to the result processing state when the identification information meets the preset game result generation condition, so that the game is automatically restored without the need for manual switching by the user, thereby improving the reliability and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 It is a schematic diagram of the structure of a detection system according to some embodiments of the present disclosure.
[0028] Figure 2 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0029] Figure 3 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0030] Figure 4 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0031] Figure 5 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0032] Figure 6 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0033] Figure 7 It is a flowchart of a game state control method according to some embodiments of the present disclosure.
[0034] Figure 8 It is a structural block diagram of a game state control device in some embodiments of the present disclosure.
[0035] Fig. 9 It is a structural block diagram of a game state control device in some embodiments of the present disclosure.
[0036] Fig.10 It is a block diagram of a computer system structure suitable for implementing the method disclosed in the present invention. DETAILED DESCRIPTION
[0037] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0038] A complete game can often be divided into multiple different stages according to different player operations. For example, for a tabletop card game, the game process may include players placing game coins, staff distributing cards, and recovering and settling game coins according to the card results. For each game stage, there are often fixed game rules. For example, in the stage of distributing cards, there are often fixed order requirements for the order of dealing cards.
[0039] The computer vision-based detection system can divide the entire game process into multiple different game states according to the different game stages. For example, the above-mentioned card distribution stage can correspond to the "card dealing state", and the game currency clearing and settlement stage can correspond to the "result processing state". At the logical level, the detection system can set corresponding detection logic based on different game stages to determine whether the player is performing game operations according to the correct game rules in the current game state. For example, when cheating, violations, and other operations that may cause significant losses to other players are detected, the game needs to be switched to the interrupt state in a timely manner, and an alarm message is issued at the same time.
[0040] In this scenario, the detection system needs to automatically restore the interrupted state to the normal state after the game order is restored. For example, the detection system detects that a player places game coins during the card dealing stage. Placing game coins during the card dealing stage is an illegal operation, so the detection system switches the game from the card dealing state to the interrupted state. However, after the player corrects the illegal operation, if the detection system still believes that the game has been in an interrupted state, it will be impossible to effectively detect the subsequent game process. If it relies on manual state recovery, its reliability is also very low.
[0041] Based on the above, the embodiments of the present disclosure provide a game status control method, device, detection system and storage medium, which aim to automatically switch an interrupted game to a normal state based on visual information during the game, so that the detection system can resume detection of the game in a timely manner, thereby improving system reliability and stability.
[0042] In some embodiments, the examples of the present disclosure provide a game state control method, which can be applied to a detection system to achieve visual detection of game scenes. Figure 1 Some embodiments of the detection system disclosed in the present invention are shown below. Figure 1 Provide explanation.
[0043] like Figure 1 As shown, in some exemplary scenarios, the disclosed game takes a tabletop game as an example. In this scenario, at least one game table 100 may be included. The disclosed embodiment does not limit the number of game tables 100. For example, Figure 1 Two game tables 100 are shown in FIG. It can be understood that the game table 100 is a carrier for players to play games, and the desktop of the game table 100 is a game area for players to play games.
[0044] The detection system includes an image acquisition device 200 disposed above the game table 100, and the image acquisition device 200 is used to obtain image data of the game area above the game table 100. For example, during the game, the image acquisition device 200 can acquire an image frame sequence of the game table.
[0045] In some embodiments, the image acquisition device 200 includes at least one camera located directly above the game table 100, so that the image data of the game table can be accurately acquired. In some preferred embodiments, in addition to the camera located directly above, the image acquisition device 200 may also include multiple cameras located on the side of the game table 100, so that game image data from other angles can be acquired. Those skilled in the art can understand this, and this disclosure will not elaborate on it.
[0046] Continue to refer to Figure 1 In the disclosed example, the detection system further includes a visual unit 300 disposed on each game table 100. The visual unit 300 can perform corresponding image processing operations, such as image detection and recognition, based on the image frame sequence captured by the image acquisition device 200. The visual unit 300 can be a unit module pre-trained based on a learnable machine learning model or a neural network model and can be applied to recognize and detect target objects in an image frame sequence.
[0047] The detection system also includes a processing unit 400, which is respectively connected to the visual units 300 of multiple game tables 100, so that the processing unit 400 can obtain the processing results of each visual unit 300, and perform corresponding step operations according to the received processing results, such as issuing control instructions to the visual unit 300.
[0048] In an exemplary scenario, when the visual unit 300 of a game table 100 detects that a player does not play the game according to the game rules based on the image data collected by the image acquisition device 200, the visual unit 300 can send an alarm message to the processing unit 400, and the visual unit 300 can switch the current game to an interrupted state. The processing unit 400 in the background receives the alarm message and can send an alarm to the staff to provide risk warnings.
[0049] The detection system of the disclosed example is provided with a corresponding visual unit 300 for each gaming table, thereby facilitating distributed management of the detection system.
[0050] However, it is understood that the detection system of the embodiment of the present disclosure is not limited to Figure 1 For example, Figure 1 Based on the examples, there may be other implementations. For example, the visual unit 300 and the processing unit 400 may be integrated into the same processing module, that is, the visual unit 300 is not provided on the front-end game table 100, but is integrated with the processing unit 400 in the background, and the image data processing operation is performed in the background. Those skilled in the art can understand this, and the present disclosure will not elaborate on it.
[0051] exist Figure 1 Based on the architecture of the exemplary detection system, the game state control method of the embodiment of the present disclosure is described below. The exemplary method of the present disclosure can be executed by the above-mentioned visual unit 300, or by the processing unit 400, or by the visual unit 300 and the processing unit 400 together, and the present disclosure does not limit this.
[0052] like Figure 2 As shown, in some embodiments, the game state control method of the disclosed example includes:
[0053] S210, obtaining a sequence of image frames of the game table when the game is in an interrupted state.
[0054] Based on the foregoing, it can be seen that the detection system of the disclosed embodiment divides the game into multiple different game states at a logical level according to the different stages of the game process. The detection system switches the game state based on the collected image frame sequence as the game progresses.
[0055] The interrupt state is different from the normal state when the game is in progress. That is, the interrupt state is not a state that must exist during the game, but a state when illegal operations are detected based on the image frame sequence.
[0056] In one example, taking a tabletop card game as an example, when a card dealing sequence error is detected in the dealing state, the game can be switched to an interrupted state. For another example, in the result processing state, when a card is detected to be facing up with its back side facing up and no valid identification information can be detected, the game can be switched to an interrupted state. This disclosure will be described below and will not be described in detail here.
[0057] It can be understood that the interruption state is an alarm state when the game is in abnormal conditions. If the detection system believes that the game is always in the interruption state, it will not be able to effectively detect the real game scene, which means that the game needs to be switched from the interruption state to the normal state.
[0058] In some implementations, after the game enters an interrupted state, a sequence of image frames of the game table captured by image capture devices assumed to be located around the game table may be acquired, the sequence of image frames representing video stream data of the game table area.
[0059] In the disclosed embodiment, the game area of the game table includes a currency substitute operation area and a game marker operation area. Currency substitutes refer to objects used to replace currency in the game scene, such as game coins, etc. Therefore, the currency substitute operation area refers to the area in the game table used to operate currency substitutes. Game markers can be understood as game props, which are necessary tools for playing games, such as cards in tabletop card games. Therefore, the game marker operation area refers to the area in the game table used to operate game markers.
[0060] In one example, taking a tabletop card game as an example, the game area of the game table is divided into multiple sub-areas, including a currency substitute operation area and a game marker operation area. The currency substitute operation area is used for placing currency substitutes, such as game coins, in the currency substitute operation state, by the player in the area. The game marker operation area is used for placing game markers, such as placing cards in the card dealing state.
[0061] Therefore, each frame of the image in the image frame sequence of the gaming table acquired in the embodiment of the present disclosure includes data information of the currency substitute operation area and the game marker operation area.
[0062] S220. When it is detected based on at least one frame of the image frame sequence that a preset operation object operates a currency substitute in a currency substitute operation area, detection information of a game marker in a game marker operation area in at least one frame of the image is obtained.
[0063] Specifically, in real game scenarios, when entering another game stage from one game stage, players or staff often perform fixed processing operations. Therefore, at the logical level of the detection system, when the game is in an interrupted state, by detecting the processing operation of the preset operation object, it can be determined whether the game state is switched.
[0064] For example, in a real card game scenario, after determining the game result based on the card information, the staff will recycle and settle the game coins in the currency substitute operation area based on the game result. Therefore, in the embodiment of the present disclosure, the operation of the staff to recycle the game coins can be detected based on the collected visual information of the game table, and this operation can be used as the response condition for the state switching.
[0065] Specifically, the preset operation object may be a predetermined operation object, such as a player, a staff member, etc. Those skilled in the art may implement it according to specific scenarios, and the present disclosure does not limit this.
[0066] Based on the acquired image frame sequence, when it is detected by at least one frame of the image frame sequence that the preset operation object operates the currency substitute in the currency substitute operation area through, for example, image detection technology, it indicates that the real game scene has entered the result processing stage. At this time, detection information of the game marker in the game marker operation area can be obtained, and the detection information includes identification information of the game marker.
[0067] Take a card game as an example. During the card dealing stage, for example, due to a staff member's mistake in the card dealing order, the detection system switches the current game to an interrupted state. In a real game scenario, after the staff member re-deals the cards and obtains the game result, the game coins are recovered and settled. At this time, the detection system can detect the staff member's action of taking the game coins, and at this time, the detection information of the game marker in the game marker operation area can be obtained.
[0068] The identification information may represent the prop attributes of the game identifier. In order to distinguish the same game prop, it often has a variety of different attribute information. The identification information described in the present disclosure represents the attribute information of the game identifier.
[0069] In one example, taking a tabletop card game as an example, the game identifier may be a card, and the suit and point value of the card are the identification information of the card, such as Ace of Hearts, 2 of Spades, and so on.
[0070] In another example, taking the tabletop mahjong game as an example, the game identifier may be mahjong, and the card information of mahjong is the identification information, such as ten thousand, nine pieces, etc.
[0071] Of course, those skilled in the art will appreciate that the embodiments of the present disclosure are not limited to the above examples, but can also be applied to any other game scenarios suitable for implementation, and the present disclosure does not impose any limitation on this.
[0072] The image acquisition device disposed above the game table can acquire a sequence of image frames of the game table, and each frame of the image sequence includes all the game markers in the game marker operation area and the identification information of the game markers. Thus, through the image detection technology, the identification information of each game marker in the game marker operation area can be extracted and identified, thereby obtaining the identification information of each game marker.
[0073] It can be understood that the acquired image frame sequence includes multiple consecutive frames of images. In the embodiments of the present disclosure, each frame of the image can be detected in turn, and the detection results can be saved in the cache. Therefore, in some embodiments, the detection results of the game markers of the current frame of the image can be used to update the detection results obtained by the previous frame of the image, so as to obtain the latest detection results. This disclosure will be explained below and will not be described in detail here.
[0074] S230: When the identification information satisfies a preset game result generation condition, the game is switched from an interruption state to a result processing state.
[0075] The game result generation condition may be a logical judgment condition pre-set based on the game rules. The game result may be used to indicate the end of the current game, for example, the winning or losing result of the current game may be obtained according to the game result.
[0076] In the disclosed embodiment, the preset game result generation condition may refer to a condition under which the game result can be obtained according to the identification information of the game identifier.
[0077] In one example, the game scene takes a tabletop card game as an example, and the game rules corresponding to the preset game result generation conditions are: the game marker operation area includes at least 4 cards, and the party whose sum of card points is closest to 9 wins. Therefore, the number of cards is detected based on the image frame sequence. If the number of cards is less than 4, it is determined that the game result cannot be obtained, that is, the identification information of the game marker in the current game marker operation area does not meet the preset game result generation conditions. If the number of cards is greater than or equal to 4, and the sum of points of one party is closer to 9 than that of the other party, it is determined that the game result can be obtained, that is, the identification information of the game marker in the current game marker operation area meets the preset game result generation conditions.
[0078] Those skilled in the art will appreciate that the above examples are only used to illustrate the methods of the embodiments of the present disclosure and do not limit the present disclosure. The preset game result generation conditions can be set according to the specific game scenario, and the present disclosure does not limit this.
[0079] When the identification information meets the preset game result generation conditions, it means that the game result can be obtained in the current real game process, and it also indicates that the current game is in a normal state. Therefore, at the logical level of the detection system, the current interrupt state can be switched to the result processing state, so as to correspond to the real game stage and realize the detection of the result processing stage.
[0080] In one example, still taking the aforementioned card game scene as an example, when the detection system detects that the current state of the game is the interrupted state, based on the captured image frame sequence of the game table, it is detected that the number of cards in the current game marker operation area is greater than 4 and one side has a point closer to 9 than the other side. At this time, in the corresponding real game scene, the player has obtained the game result according to the card points and has entered the result processing stage. At this time, the detection system can determine at the logical level that the identification information meets the preset game result generation conditions, thereby switching the game from the interrupted state to the result processing state corresponding to the result processing stage.
[0081] It can be understood that when the identification information does not meet the preset game result generation conditions and the current game is in an interrupted state, the current game can be kept in the interrupted state.
[0082] From the above, it can be seen that the disclosed game state control method can achieve automatic state switching without the front-end players' perception. When in an interrupted state, there is no need for the staff to manually switch the state, which does not affect the smooth progress of the game process. At the same time, the interrupted state recovery switching is automatically realized, and the continuous detection of the game process is realized, which improves the reliability and stability of the system.
[0083] In some game scenarios, the corresponding game rules are different depending on the number of game markers. For example, in a tabletop card game, when there are 4 cards in the game area, the party with the card points closest to 9 wins; when there are 5 cards in the game area, the party with the largest card points wins. In other words, the winning rules are different for different numbers of cards.
[0084] Based on the above game scenarios, the detection system of the present disclosure pre-sets corresponding conditions based on the number of different game markers, so that the corresponding judgment conditions can be determined based on the number of detected game markers. Figure 3 Provide specific instructions.
[0085] like Figure 3 As shown, in some embodiments, the game state control method of the disclosed example includes:
[0086] S310: Detect game markers according to at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each game marker.
[0087] Specifically, combined Figure 1 The architecture of the detection system shown can obtain an image frame sequence of the game table through an image acquisition device, and the visual unit 300 extracts and detects at least one frame of the image frame sequence through, for example, a convolution algorithm, so that all game markers in the game marker operation area can be determined from the image, and then the number of game markers in the game marker operation area and the corresponding identification information can be determined.
[0088] In one example, the image frame sequence is a video stream sequence of a tabletop card game. Through the perception and detection of the image frame sequence, it is determined that the current game marker operation area includes a total of 4 cards, two cards each for Party A and Party B. Among them, the identification information of Party A's two cards are respectively: 6 of hearts and 3 of diamonds; the identification information of Party B's two cards are respectively: 2 of spades and 3 of diamonds.
[0089] S320: Determine a first preset condition corresponding to the number of game identifiers.
[0090] In the disclosed embodiment, the detection system is pre-set with different preset conditions based on the different numbers of game markers, that is, there is a preset condition corresponding to each number of game markers, and a preset condition can be shared by multiple numbers of game markers.
[0091] Still using the above example to illustrate, when the number of cards is 4, the preset condition is: the party whose sum of card points is closest to 9 wins. When the number of cards is 5, the party whose sum of card points is the largest wins. Thus, in the above example of step S310, the detection system detects that the current game marker operation area includes 4 cards according to the image frame data, and then determines the corresponding first preset condition according to the number of cards: 4: the party whose sum of card points is closest to 9 wins.
[0092] S330. When it is determined that the identification information of each game identifier obtained by detection satisfies the first preset condition, determine that the identification information satisfies a preset game result generation condition.
[0093] Specifically, after determining the first preset condition, it can be determined whether the first preset condition is met according to the identification information. If it is met, it means that the game result can be obtained according to the identification information. If it is not met, it means that the game result cannot be obtained according to the identification information.
[0094] Still using the above example for explanation, the identification information of the two cards of Party A are respectively: 6 of Hearts and 3 of Diamonds; the identification information of the two cards of Party B are respectively: 2 of Spades and 3 of Diamonds; the first preset condition is: the party whose sum of the points of the cards is closest to 9 wins. Therefore, the sum of the points of the two cards of Party A is 9 points, and the sum of the points of the two cards of Party B is 5 points. The sum of the points of Party A is closer to 9 points than that of Party B, so the game processing result can be obtained: Party A wins. That is, according to the identification information of the game marker in the current game marker operation area, it is determined that the first preset condition is met, so as to determine that the identification information meets the preset game result generation condition.
[0095] It can be seen from the above that in the embodiments of the present disclosure, by setting corresponding different preset conditions for different numbers of game markers, it is possible to detect scenes with different numbers of game markers, thereby improving the applicability of the detection system.
[0096] In the embodiment of the present disclosure, combined with the aforementioned step S220, the operation of the preset operation object on the currency substitute is used as the response condition of the state switching. In the real game scene, the object that is allowed to operate the currency substitute in the currency substitute operation area is often the staff. For example, taking the desktop card game scene as an example, in the result processing state, only the staff can recover the game coins for settlement.
[0097] Therefore, in some embodiments, the operation of the currency substitute in the currency substitute operation area is detected based on the image frame sequence to determine whether it is an operation of the preset operation object. Figure 4 Provide explanation.
[0098] like Figure 4 As shown, in some embodiments, the game state control method of the disclosed example includes:
[0099] S410 , detecting changes of the currency substitute in the currency substitute operation area based on the image frame sequence.
[0100] Specifically, the position information of the currency substitute in the currency substitute operation area in each frame can be obtained by detecting each frame of the image frame sequence. Based on the position information of two or more adjacent frames, it can be determined whether the position of the currency substitute has changed.
[0101] Of course, those skilled in the art can understand that the above-mentioned determination of the change of the currency substitute based on the position information is only an exemplary embodiment of the present disclosure. In other embodiments, other methods can be used to determine whether the currency substitute has changed. For example, in some embodiments, it can be determined whether the currency substitute has changed based on the change in the number of currency substitutes in the currency substitute operation area. Those skilled in the art can understand and fully implement this, and the present disclosure will not repeat it.
[0102] S420: When a change in the currency substitute is detected, determine whether the currency substitute that causes the change is a preset operation object.
[0103] Specifically, when the detection system detects that the currency substitute has changed, it means that someone has operated the currency substitute in the real game scene. For example, a staff member collects the currency substitute in the currency substitute operation area; or a player accidentally touches the currency substitute in the currency substitute operation area; etc.
[0104] It is understandable that in the real game process, the staff's collection of currency substitutes can indicate that the game result is known, and the game process has entered or is about to enter the stage of game currency collection and settlement, so the detection system believes that the game should also switch from the interruption state to the result processing state. However, if the currency substitute changes due to the player's accidental touch, it does not mean that the current game has entered the result processing state.
[0105] Therefore, in the embodiments of the present disclosure, it is necessary to further determine whether the object that causes the currency substitute to change is a preset operation object.
[0106] In one example, taking a tabletop card game scenario as an example, when the detection system detects the movement of game coins in the currency substitute operation area, it can further determine whether the person moving the game coins is a staff member. That is, the preset operation object is a staff member.
[0107] In some implementations, it is possible to determine whether the currency substitute is a preset operation object based on recognition algorithms such as face recognition, hand-face association, etc. This disclosure will be described below and will not be described in detail here.
[0108] S430: In response to the preset operation object causing the currency substitute to change, it is determined that the preset operation object is detected to operate the currency substitute in the currency substitute operation area.
[0109] Specifically, when it is determined that the person who causes the currency substitute to change is the preset operation object, it is indicated that the person who operates the currency substitute is the preset person.
[0110] For example, the above example is used to illustrate that the preset operation object is a staff member and the currency substitute is a game coin. When it is determined that the object operating the game coin is a staff member, it means that the staff member is performing the process of recovering and settling the game coin, so that it can be determined that the preset operation object is detected to operate the currency substitute in the currency substitute operation area, and the above state switching process is executed to switch the game from the interrupt state to the result processing state.
[0111] From the above, it can be seen that the method of the embodiment of the present disclosure reduces the interference risk of non-preset operation objects and improves the accuracy of state switching, thereby improving the stability and reliability of the detection system by detecting whether the operation object is a preset operation object when the currency substitute changes.
[0112] In some implementations, for a tabletop game scenario, when determining whether the object causing the currency substitute to change is a preset operation object, the operation object may be determined to be the preset operation object based on the current operation component causing the currency substitute to change. The operation component may be a human hand, a handheld prop, etc. By determining whether the operation component belongs to the preset operation object, it can be determined whether the current operation object is the preset operation object. Figure 5 Provide explanation.
[0113] like Figure 5 As shown, in some embodiments, the operating component includes a human hand, and the preset operating object includes a preset person. The game state control method of the disclosed example includes:
[0114] S510: Detecting a target human hand associated with a changed currency substitute based on the image frame sequence.
[0115] Specifically, the currency substitutes and human hands in the image frame sequence can be detected through an image detection algorithm, so as to determine the associated human hand currently operating the currency substitute, that is, the target human hand.
[0116] S520: Detect a target face associated with a target hand based on the image frame sequence.
[0117] Specifically, after determining the target hand, the face associated with the target hand, that is, the target face, can be determined by detecting the image frame sequence based on the hand-face association algorithm.
[0118] S530: Determine whether the target person belongs to a preset person according to the recognition result of the target face.
[0119] Specifically, after determining the target face, the feature information of the target face can be identified by detecting the image frame sequence based on the face recognition algorithm. At the same time, the facial feature information of the preset person can be stored in advance, so that the feature information of the identified target face can be compared with the stored facial feature information to obtain the recognition result.
[0120] If the similarity between the target face feature information and the stored face feature information is greater than a preset threshold, the recognition result is passed, indicating that the target person belongs to the preset person, and it can be determined that the preset operation object is the one that causes the currency substitute to change.
[0121] If the similarity between the target face feature information and the stored face feature information is not greater than the preset threshold, the recognition result fails, indicating that the target person does not belong to the preset person, and it can be determined that the person who changes the currency substitute is not the preset operation object.
[0122] From the above, it can be seen that the method of the embodiment of the present disclosure determines whether the operation object of the currency substitute is the preset operation object through the human hand-face association and face recognition algorithm, thereby improving the recognition accuracy and further improving the accuracy of state switching.
[0123] like Figure 6 As shown, in some embodiments, the game state control method of the example of the present disclosure, when obtaining the identification information of the game identifier, may include:
[0124] S610. Take each frame of the image in the image frame sequence as a focus image in turn, detect game markers on the focus image, and obtain a game marker detection result for the focus image.
[0125] S620: Based on the comparison result between the game marker detection result of the focused image and the game marker detection result in the cache, update the game marker detection result in the cache.
[0126] Specifically, the detection system detects each frame in the image frame sequence according to the time sequence, and stores the detection result of the game marker detected based on the frame image into the cache. At the same time, the detection result in the cache is compared and updated based on the detection result of the current frame image.
[0127] For example, the detection system performs detection based on the i-1th frame image and obtains the detection result φ of the game marker. i-1 , and the test result φ i-1 Stored in the cache. Then, based on the i-th frame image, the detection result φ of the game marker is obtained. i .
[0128] Detection system comparison i With φ i-1 If the similarity between the two is less than the preset threshold, it means that the detection result of the i-th frame image is different from that of the i-1-th frame, so the detection result of the i-th frame image is used i The detection result of cache φ i-1 to update.
[0129] Based on the time sequence of the image frame sequence, the above updating process is executed cyclically in sequence, so that the detection results in the cache can be updated to the latest status in real time, thereby improving the detection accuracy.
[0130] S630: Read detection information of the game marker in the game marker operation area from the cache.
[0131] Thus, the detection system can read the latest detection information from the current cache and execute the above-mentioned state switching process according to the detection information, which will not be elaborated in this disclosure.
[0132] From the above, it can be seen that the game state control method of the embodiment of the present disclosure is based on the image frame sequence, and uses the current frame detection result to iteratively update the previous frame detection result to improve the accuracy of the detection system.
[0133] In some embodiments, the step of determining that the game is in an interrupted state in the game state control method of the present invention may include: detecting whether the processing operation of a preset operation object meets a preset operation condition based on an image frame sequence; in response to the processing operation not meeting the preset operation condition, switching the game to an interrupted state.
[0134] Specifically, the preset operation object may refer to a player or staff member participating in the game, and the player or staff member may operate the game identifier to perform corresponding processing operations.
[0135] Taking a tabletop card game as an example, in some embodiments, staff A can operate the cards to deal cards to player B and player C respectively. In an exemplary rule, staff A should deal 2 cards to player B and player C respectively, and the order of dealing cards is "player B - player C - player B - player C". Therefore, the preset operating condition of the detection system is: staff A deals cards in the order of "player B - player C - player B - player C".
[0136] In an exemplary scenario, the detection system detects that the order in which staff member A deals cards is "Player C - Player B - Player C - Player B", that is, the order in which staff member A deals cards does not meet the preset operating conditions and is an illegal operation, thereby switching the game to an interrupted state.
[0137] In other embodiments, an exemplary rule is: players are not allowed to place game coins during the card dealing stage. Thus, the preset operating condition of the detection system is: players are not allowed to place game coins during the card dealing state.
[0138] In an exemplary scenario, the detection system detects that player C places game coins during the card dealing process, which is an illegal operation, and the current game can be switched to an interrupted state.
[0139] It can be understood that the processing operations of the preset operation objects and the preset operation conditions are not limited to the examples of the present disclosure. Those skilled in the art can set them according to specific implementation scenarios, and the present disclosure will not enumerate them.
[0140] In some embodiments, when the above-mentioned game is switched to the interrupt state, the visual unit may send an alarm message to the background processing unit to remind the background personnel that there is an illegal operation at a certain game table.
[0141] For some game scenarios, when players participate in the game, the game process is often repeated in a loop, that is, the game will include multiple rounds. Taking tabletop card games as an example, card games are often based on "rounds", and a round of the game will include multiple stages divided by the present disclosure. Therefore, in some embodiments of the present disclosure, one or more rounds of the game are defined as "a round".
[0142] In one example, a round of a card game is used as an example. In the current round of dealing cards, due to the staff's mistake in the order of dealing cards, the detection system switches the game from the dealing state to the interrupted state. In the subsequent real game scene, due to the player's mistake of turning the back of the card upward, the detection system cannot detect the identification information, and thus cannot determine the result of the game processing in this round, and cannot achieve the recovery switch of the interrupted state.
[0143] Based on such a scenario, in some embodiments, the game state control method of the disclosed embodiment includes: in response to the identification information in the current round of the game not satisfying the preset game result generation condition, continuing to determine the identification information in the next round of the game based on the image frame sequence of the next round of the game, and determining whether the identification information in the next round of the game satisfies the preset game result generation condition.
[0144] In combination with the above, it can be known that in the current round of the game, when it is determined that the preset game result generation conditions cannot be met based on the identification information of the image frame sequence obtained, that is, when the game result cannot be determined, the detection system will keep the game in an interrupted state. Accordingly, the next round of the game can be started, and the above method is executed again based on the image frame sequence of the next round, until the game result of a certain round of the game can be determined, that is, according to the identification information of a certain round, it is determined that the preset game result generation conditions are met, and the game can be switched from the interrupted state to the result processing state.
[0145] From the above, it can be seen that the game state control method of the embodiment of the present disclosure can realize state recovery based on the data of the subsequent rounds of games when the interrupted state cannot be recovered in the current round, thereby avoiding the game being in an interrupted state for a long time and improving system reliability and stability.
[0146] In some embodiments, based on the above automatic switching of the game state, in order to avoid the game being in an interrupted state for a long time, a user manual operation method can be set to realize the recovery of the interrupted state. Specifically, in some embodiments, the game state control method of the example of the present disclosure further includes: when the identification information does not meet the preset game result generation conditions, in response to receiving a manual switching instruction to switch the game state to the currency substitute operation state, the game state is switched to the currency substitute operation state, and the game identifier detection result in the cache is cleared.
[0147] In one example, a corresponding touch unit can be set on the front-end game table and / or the back-end processing unit. When the game is in an interrupted state, the detection system determines that the identification information does not meet the preset game result generation conditions, so that the detection system cannot automatically switch the state. At this time, the front-end or back-end staff can generate a manual switching instruction by triggering the touch unit, thereby switching the game from the interrupted state to the corresponding state. In addition, the detection results stored in the cache can be cleared after the state is switched.
[0148] For example, if a staff member manually triggers the interruption state to switch to the currency substitute operation state, then according to the corresponding manual switching instruction, the current game is controlled to switch from the interruption state to the currency substitute operation state. For another example, if a staff member manually triggers the interruption state to switch to the card dealing state, then according to the corresponding manual switching instruction, the current game state is controlled to switch from the interruption state to the card dealing state.
[0149] From the above, it can be seen that the game state control method of the embodiment of the present disclosure realizes manual switching of states on the basis of automatic switching of states, thereby avoiding the game being in an interrupted state for a long time and improving system reliability and stability.
[0150] Figure 7 A specific implementation of the game state control method disclosed in the present invention is shown. Figure 7 In this example, we take the tabletop card game scenario as an example. The framework of the detection system can be found in Figure 1 As shown below, combined Figure 1 and Figure 7 Provide specific instructions.
[0151] In this embodiment, a round of card game is a game round, and each round of card game includes three stages: the user places game coins, the staff deals cards, and the staff collects and settles game coins. Corresponding to these three stages, the game status at the logic level of the detection system includes currency substitute operation status, card dealing status, and result processing status.
[0152] like Figure 1 and Figure 7 As shown, the game state control method of this embodiment includes:
[0153] S701: Determine that the game is in an interrupted state.
[0154] Specifically, the specific process of this step can refer to the above situation to switch the game to the interrupt state.
[0155] For example, in one example, the detection system detects that the staff dealt cards in the wrong order through the image frame sequence captured by the image acquisition device 200, and the visual unit 300 can switch the current game from the dealing state to the interrupted state.
[0156] In addition, the visual unit 300 can also send an alarm message to the processing unit 400 to prompt the backstage staff.
[0157] S702: Detect changes of the currency substitute in the currency substitute operation area based on the image frame sequence.
[0158] S703: When a change in the currency substitute is detected, detect a target human hand associated with the changed currency substitute based on the image frame sequence.
[0159] S704: Detect a target face associated with a target hand based on the image frame sequence.
[0160] S705: In response to determining that the target person belongs to a preset person according to the recognition result of the target face, reading detection information of the game marker in the game marker operation area from the cache.
[0161] In one example, the change of the currency substitute is: the position of the game coin in the currency substitute operation area changes.
[0162] Based on the image frame sequence captured by the image capture device 200, when the visual unit 300 detects that the position of the gaming coin in the currency substitute operation area changes, the target human hand moving the gaming coin is detected based on the image frame sequence.
[0163] After the target hand is determined, the face associated with the target hand, that is, the target face, can be determined by detecting the image frame sequence based on the hand-face association algorithm.
[0164] After the target face is determined, the feature information of the target face can be identified by detecting the image frame sequence based on the face recognition algorithm. The recognition result is obtained by comparing the feature information of the identified target face with the stored face feature information.
[0165] In response to the recognition result being passed, it indicates that the target person belongs to the preset person, and it can be determined that the person moving the game coin is a staff member. At this time, the detection information of the game identifier can be read from the system cache, and the detection information can be obtained through, for example Figure 6The implementation method is obtained and will not be described in detail here.
[0166] S706: Based on the acquired image frame sequence, determine whether the identification information of the current round of the game meets the preset game result generation condition. If not, execute step S707. If yes, execute step S708.
[0167] S707, obtaining a sequence of image frames for the next round of the game.
[0168] S708, switching the game from the interruption state to the result processing state.
[0169] Specifically, reference may be made to the description of the aforementioned implementation manner, which will not be repeated here.
[0170] From the above, it can be seen that the game state control method of the disclosed embodiment realizes the detection of the game scene based on computer vision to ensure the smooth and standardized progress of the game process. In addition, when the game is interrupted, the game state is automatically switched from the interrupted state to the result processing state by detecting the identification information of the game identifier, thereby ensuring the automatic recovery of the game without manual switching by the user, thereby improving the reliability and stability of the system.
[0171] In some embodiments, the present disclosure provides a game state control device, which can be applied to, for example, Figure 1 The detection system shown.
[0172] like Figure 8 As shown, in some embodiments, the game state control device of the example of the present disclosure includes: a first acquisition module 801, configured to acquire an image frame sequence of a game table in which the game is in an interrupted state, the game table including a currency substitute operation area and a game marker operation area; a second acquisition module 802, configured to acquire detection information of a game marker in the game marker operation area in at least one frame of image when it is detected based on at least one frame of image in the image frame sequence that a preset operation object operates a currency substitute in the currency substitute operation area, the detection information including identification information of the game marker; a state switching module 803, configured to switch the game from the interrupted state to the result processing state when the identification information satisfies a preset game result generation condition.
[0173] From the above, it can be seen that the game state control device disclosed in the present invention can achieve automatic state switching without the front-end players' perception. When in the interrupted state, there is no need for the staff to manually switch the state, which does not affect the smooth progress of the game process. At the same time, the interrupted state recovery switching is automatically realized, and the continuous detection of the game process is realized, which improves the reliability and stability of the system.
[0174] In some implementations, the second acquisition module 802 is specifically configured to: perform game marker detection based on at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each game marker.
[0175] like Fig. 9 As shown, in some embodiments, the game state control device of the example disclosed herein also includes: a determination module 804, which is configured to determine a first preset condition corresponding to the number of game identifiers; when it is determined that the first preset condition is met based on the identification information of each game identifier detected, it is determined that the identification information meets the preset game result generation condition.
[0176] like Fig. 9 As shown, in some embodiments, the game state control device of the example of the present disclosure further includes: a detection module 805, which is configured to detect the operation of the currency substitute in the currency substitute operation area based on the image frame sequence.
[0177] In some embodiments, the detection module 805 is specifically configured to: detect changes in the currency substitute in the currency substitute operation area based on the image frame sequence; in the case of detecting changes in the currency substitute, determine whether the currency substitute is changed by a preset operation object; in response to the currency substitute being changed by a preset operation object, determine that the preset operation object is detected to operate the currency substitute in the currency substitute operation area.
[0178] In some implementations, the detection module 805 is specifically configured to detect, based on the image frame sequence, whether the operating component associated with the changed currency substitute belongs to a preset operating object.
[0179] In some embodiments, the preset operation object includes a preset person, the operation component includes a human hand, and the detection module 805 is specifically configured to: detect the target human hand associated with the changed currency substitute based on the image frame sequence; detect the target human face associated with the target human hand based on the image frame sequence; and determine whether the target human hand belongs to the preset person based on the recognition result of the target human face.
[0180] In some embodiments, the second acquisition module 802 is specifically configured to: read the detection information of the game marker in the game marker operation area from the cache; wherein the detection information of the game marker is generated in the following manner: take each frame image in the image frame sequence as a focus image in turn; perform game marker detection on the focus image to obtain a game marker detection result of the focus image; based on the comparison result between the game marker detection result of the focus image and the game marker detection result in the cache, update the game marker detection result in the cache.
[0181] like Fig. 9 As shown, in some embodiments, the game state control device of the example disclosed herein also includes: a manual switching module 806, which is configured to switch the game to a currency substitute operating state and clear the game identifier detection results in the cache in response to receiving a manual switching instruction to switch the game to a currency substitute operating state when the identification information does not meet the preset game result generation conditions.
[0182] From the above, it can be seen that the game state control device of the embodiment of the present disclosure realizes the detection of the game scene based on computer vision, ensuring the smooth and standardized progress of the game process. In addition, when the game is interrupted, the game state is automatically switched from the interrupted state to the result processing state by detecting the identification information of the game identifier, thereby ensuring the automatic recovery of the state without manual switching by the user, thereby improving the reliability and stability of the system.
[0183] In some embodiments, the present disclosure provides a detection system, including: a processor; and a memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute a game state control method according to any of the above embodiments.
[0184] For the detection system disclosed in the present invention, reference may be made to, for example, Figure 1 The illustrated implementation is implemented, and the present disclosure will not elaborate on this.
[0185] In some embodiments, the present disclosure provides a storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method of any of the above embodiments.
[0186] Specifically, Fig.10 A schematic diagram of the structure of a computer system 10 suitable for implementing the method disclosed in the present invention is shown. Fig.10 The system shown can realize the corresponding functions of the above-mentioned processor and storage medium.
[0187] like Fig.10 As shown, the computer system 600 includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the memory 602 or the program loaded from the storage part 608 into the memory 602. Various programs and data required for the operation of the system 600 are also stored in the memory 602. The processor 601 and the memory 602 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0188] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0189] In particular, according to an embodiment of the present disclosure, the above method process can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.
[0190] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0191] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A game state control method, characterized in that: The method comprises: Acquire a sequence of image frames of a gaming table in a game interruption state, wherein the gaming table includes a currency substitute operation area and a game marker operation area; In the case where it is detected based on at least one frame of the image frame sequence that a preset operation object operates the currency substitute in the currency substitute operation area, obtaining detection information of a game marker in the game marker operation area in the at least one frame of the image, wherein the detection information includes identification information of the game marker; When the identification information satisfies a preset game result generation condition, switching the game from the interruption state to the result processing state; The acquiring detection information of the game marker in the game marker operation area in the at least one frame of image includes: Performing game marker detection according to the at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each game marker; The method further comprises: Determining a first preset condition corresponding to the number of the game identifiers; When it is determined that the first preset condition is satisfied based on the identification information of each game identifier obtained by detection, it is determined that the identification information satisfies the preset game result generation condition.
2. The method according to claim 1, characterized in that The method further comprises: An operation of a currency substitute on the currency substitute operation area is detected based on the image frame sequence.
3. The method according to claim 2, characterized in that The detecting the operation of the currency substitute in the currency substitute operation area based on the image frame sequence includes: detecting a change of a currency substitute in the currency substitute operation area based on the image frame sequence; In the case where a change in the currency substitute is detected, determining whether the currency substitute causing the change is a preset operation object; In response to the preset operation object causing the currency substitute to change, it is determined that the preset operation object is detected to operate the currency substitute in the currency substitute operation area.
4. The method according to claim 3, characterized in that: Determining whether the object causing the currency substitute to change is a preset operation object includes: Based on the image frame sequence, it is detected whether the changed operating component associated with the currency substitute belongs to the preset operating object.
5. The method according to claim 4, characterized in that The preset operation object includes a preset person, the operation component includes a human hand, and whether the operation component associated with the currency substitute that has changed based on the image frame sequence detection belongs to the preset operation object includes: Detecting a target human hand associated with the currency substitute that has changed based on the sequence of image frames; Detecting a target face associated with the target hand based on the image frame sequence; Determine whether the target hand belongs to the preset person according to the recognition result of the target face.
6. The method according to any one of claims 1 to 5, characterized in that: The acquiring detection information of the game marker in the game marker operation area in the at least one frame of image includes: The detection information of the game marker in the game marker operation area is read from the cache; wherein the detection information of the game marker is generated in the following manner: Taking each frame of the image in the image frame sequence as a focus image in turn; Detecting game markers on the image of interest to obtain a game marker detection result of the image of interest; Based on a comparison result between the game marker detection result of the focus image and the game marker detection result in the cache, the game marker detection result in the cache is updated.
7. The method according to claim 6, characterized in that In the case where the identification information does not meet the preset game result generation condition, the method further includes: In response to receiving a manual switch instruction to switch the game to a currency substitute operating state, switching the game to a currency substitute operating state, and Clear the game marker detection results in the cache.
8. A game state control device, characterized in that: include: A first acquisition module is configured to acquire an image frame sequence of a gaming table in which the game is in an interrupted state, wherein the gaming table includes a currency substitute operation area and a game marker operation area; A second acquisition module is configured to acquire detection information of a game marker in the game marker operation area in the at least one frame of image, when it is detected based on at least one frame of image in the image frame sequence that a preset operation object operates the currency substitute in the currency substitute operation area, wherein the detection information includes identification information of the game marker; A state switching module, configured to switch the game from the interruption state to the result processing state when the identification information meets the preset game result generation condition; The second acquisition module is specifically configured as follows: Performing game marker detection according to the at least one frame of image to obtain the number of game markers in the game marker operation area and identification information of each game marker; The device also includes: A determination module, configured to determine a first preset condition corresponding to the number of the game identifiers; When it is determined that the first preset condition is satisfied based on the identification information of each game identifier obtained by detection, it is determined that the identification information satisfies the preset game result generation condition.
9. The device according to claim 8, characterized in that Also includes: A detection module is configured to detect an operation on a currency substitute in the currency substitute operation area based on the image frame sequence.
10. The device according to claim 9, characterized in that The detection module is specifically configured as follows: detecting a change of a currency substitute in the currency substitute operation area based on the image frame sequence; In the case where a change in the currency substitute is detected, determining whether the currency substitute causing the change is a preset operation object; In response to the preset operation object causing the currency substitute to change, it is determined that the preset operation object is detected to operate the currency substitute in the currency substitute operation area.
11. The device according to claim 10, characterized in that The detection module is specifically configured as follows: Based on the image frame sequence, it is detected whether the changed operating component associated with the currency substitute belongs to the preset operating object.
12. The device according to claim 11, characterized in that The preset operation object includes a preset person, the operation component includes a human hand, and the detection module is specifically configured as follows: Detecting a target human hand associated with the currency substitute that has changed based on the sequence of image frames; Detecting a target face associated with the target hand based on the image frame sequence; Determine whether the target hand belongs to the preset person according to the recognition result of the target face.
13. The device according to any one of claims 8 to 12, characterized in that The second acquisition module is specifically configured as follows: Reading detection information of the game marker in the game marker operation area from the cache; The detection information of the game identifier is generated in the following manner: Taking each frame of the image in the image frame sequence as a focus image in turn; Detecting game markers on the image of interest to obtain a game marker detection result of the image of interest; Based on a comparison result between the game marker detection result of the focus image and the game marker detection result in the cache, the game marker detection result in the cache is updated.
14. The device according to claim 13, characterized in that The device also includes: The manual switching module is configured to, in response to receiving a manual switching instruction to switch the game to a currency substitute operation state when the identification information does not meet a preset game result generation condition, Switching the game to a currency substitute operating state, and Clear the game marker detection results in the cache.
15. A detection system, characterized in that: include: processor; and A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 7.
16. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Game scene description method and device, equipment and storage medium
CN108769821A
Cheating user detection method and device thereof, storage medium and electronic equipment
CN111249742A
Game machine
JP2004243021A
Game device, game interruption control method, and computer program
JP2014128432A
Automated tracking of playing cards
US20070111773A1
