Game state control method, device, equipment and storage medium
The method automates game state switching by detecting game markers and generating results from video streams, enhancing efficiency and reducing manual labor in game state transitions.
Patent Information
- Application Number
- CN202180001759.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-14
- Filing Date
- 2021-06-28
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-06-28
AI Technical Summary
Current game state switching methods rely on manual operation, which is inefficient and wastes manpower.
A method that automatically detects game markers in a video stream, generates game results based on marker numbers and identification information, and switches the game to a result processing state when predetermined conditions are met.
Reduces labor costs and improves game state switching efficiency by enabling automatic game state transitions based on video stream analysis.
Smart Images

Figure CN113613741B_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 / 055741 filed on June 28, 2021, and the PCT application claims priority to the Singapore patent publication with application number 10202106346R filed on June 14, 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, device, equipment and storage medium. Background Art
[0004] A complete game can often be divided into multiple different states, and the corresponding state needs to be switched according to the progress of the game. Currently, the control of the game state requires relevant staff to make specific actions or to operate designated buttons. This game state switching method relies on manual operation, wastes manpower, and has a low efficiency. Summary of the invention
[0005] The present invention provides a game state control method, device, equipment and storage medium.
[0006] According to a first aspect of an embodiment of the present disclosure, a game state control method is provided, including: obtaining a video stream of a game area; detecting the video stream to determine the number of game markers in the game area and identification information of each of the game markers; generating a game result based on the number of game markers, the identification information of each of the game markers and preset game result generation conditions when the number of game markers in the game area reaches a first predetermined value; and switching the game to a result processing state in response to generating the game result.
[0007] In some optional embodiments, determining the number of game markers in the game area and identification information of each of the game markers includes: when the game is in an marker operation state, determining the number of game markers in the game area and identification information of each of the game markers.
[0008] In some optional embodiments, the method further includes: detecting a state of an identification surface of each of the game markers according to the video stream, the state of the identification surface including a visible state or a hidden state; the preset game result generation condition includes that the state of the identification surface of each of the game markers is a visible state, and generating a game result according to the number of the game markers, the identification information of each of the game markers and the preset game result generation condition, including: when the state of the identification surface of each of the game markers is a visible state, generating a game result according to the number of the game markers and the identification information of each of the game markers.
[0009] In some optional embodiments, the method also includes: detecting an identifier operation object according to the video stream; the preset game result generation condition includes that the distance between each of the game markers and the detected identifier operation object is greater than a preset distance threshold; generating a game result according to the number of the game markers, the identification information of each of the game markers and the preset game result generation condition, including: generating a game result according to the number of the game markers and the identification information of each of the game markers when the distance between each of the game markers and the detected identifier operation object is greater than the preset distance threshold.
[0010] In some optional embodiments, the method further includes: detecting the position information of each of the game markers according to the video stream; the preset game result generation condition includes that the position information of each of the game markers remains unchanged within a preset time length; generating the game result according to the number of the game markers, the identification information of each of the game markers and the preset game result generation condition, including: upon determining that the position information of each of the game markers remains unchanged within the preset time length, generating the game result according to the number of the game markers and the identification information of each of the game markers.
[0011] In some optional embodiments, the preset game result generation condition includes a sub-condition corresponding to the number of the game identifiers, and generating the game result based on the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generation condition includes: determining whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of the game identifiers, and obtaining a first determination result; if the first determination result is yes, generating the game result.
[0012] In some optional embodiments, generating a game result based on the number of the game identifiers, identification information of each of the game identifiers and preset game result generation conditions also includes: if the first determination result is no, maintaining the game in an identifier operation state, so that the game identifier is operated in the game area by the identifier operation object in the game in the identifier operation state.
[0013] In some optional embodiments, the preset game result generation condition also includes that the number of game identifiers in the game area does not exceed a second predetermined value, the second predetermined value is greater than the first predetermined value, and the generating of the game result according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generation condition also includes: when the game is in the identifier operation state and the number of the game identifiers does not exceed the second predetermined value, in response to detecting that the number of game identifiers in the game area increases by 1, determining whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of the game identifiers, and obtaining a second determination result; if the second determination result is yes, generating the game result; if the second determination result is no, keeping the game in the identifier operation state.
[0014] In some optional embodiments, the method further includes: after switching the game to the result processing state, displaying the game result in the client.
[0015] In some optional embodiments, the video stream is detected and also used to: determine operation information of the marker operation object operating the game marker in the game area; and switch the game to a paused state when it is determined that the operation information is abnormal based on pre-set operation constraint information.
[0016] In some optional embodiments, obtaining the video stream of the game area includes: obtaining video streams synchronously captured from multiple perspectives of the game area.
[0017] In some optional embodiments, the game identifiers include playing cards.
[0018] According to a second aspect of an embodiment of the present disclosure, a game state control device is provided, comprising: a video stream acquisition module, for acquiring a video stream of a game area; a marker detection module, for detecting the video stream, and determining the number of game markers in the game area and identification information of each of the game markers; a result generation module, for generating a game result according to the number of game markers, identification information of each of the game markers and preset game result generation conditions when the number of game markers in the game area reaches a first predetermined value; and a state switching module, for switching the game to a result processing state in response to generating the game result.
[0019] In some optional embodiments, the marker detection module, when used to determine the number of game markers in the game area and the identification information of each of the game markers, includes: when the game is in the marker operation state, determining the number of game markers in the game area and the identification information of each of the game markers.
[0020] In some optional embodiments, the device also includes an identification surface detection module, which is used to detect the state of the identification surface of each of the game markers based on the video stream, and the state of the identification surface includes a visible state or a hidden state; the preset game result generation condition includes that the state of the identification surface of each of the game markers is a visible state; the result generation module is used to generate a game result based on the number of game markers and the identification information of each of the game markers when the state of the identification surface of each of the game markers is a visible state.
[0021] In some optional embodiments, the device also includes an operation object detection module, which is used to detect the marker operation object based on the video stream; the preset game result generation condition includes that the distance between each of the game markers and the detected marker operation object is greater than a preset distance threshold; and the result generation module is used to generate a game result based on the number of game markers and the identification information of each game marker when the distance between each of the game markers and the detected marker operation object is greater than the preset distance threshold.
[0022] In some optional embodiments, the device also includes a position information detection module, which is used to detect the position information of each of the game markers based on the video stream; the preset game result generation condition includes that the position information of each of the game markers remains unchanged within a preset time length; and the result generation module is used to generate a game result based on the number of the game markers and the identification information of each of the game markers when it is determined that the position information of each of the game markers remains unchanged within the preset time length.
[0023] In some optional embodiments, the preset game result generation conditions include sub-conditions corresponding to the number of the game identifiers, and the result generation module is used to determine whether the identification information of each of the game identifiers satisfies the sub-conditions corresponding to the number of the game identifiers to obtain a first determination result; if the first determination result is yes, the game result is generated.
[0024] In some optional embodiments, the result generation module is used to maintain the game in an identifier operation state when the first determination result is no, so that the game identifier can be operated by the identifier operation object in the game area when the game is in the identifier operation state.
[0025] In some optional embodiments, the preset game result generation condition also includes that the number of game identifiers in the game area does not exceed a second predetermined value, the second predetermined value is greater than the first predetermined value, and the result generation module includes: a condition judgment submodule, which is used to determine whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of game identifiers in the game area when the game is in the identifier operation state and the number of the game identifiers does not exceed the second predetermined value, so as to obtain a second determination result in response to detecting that the number of game identifiers in the game area increases by 1; a result generation submodule, which is used to generate the game result when the second determination result is yes; and a state maintenance submodule, which is used to maintain the game in the identifier operation state when the second determination result is no.
[0026] In some optional embodiments, the device further includes a display module for displaying the game result in a client.
[0027] In some optional embodiments, the device also includes an operation information detection module, which is used to detect the video stream and determine the operation information of the marker operation object operating the game marker in the game area; and an abnormal pause module, which is used to switch the game to a pause state when it is determined that the operation information is abnormal based on pre-set operation constraint information.
[0028] In some optional embodiments, the video stream acquisition module, when used to acquire the video stream of the game area, includes: acquiring video streams synchronously captured from multiple perspectives of the game area.
[0029] In some optional embodiments, the game identifiers include playing cards.
[0030] According to a third aspect of an embodiment of the present disclosure, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the game state control method described in any one of the first aspects when executing the program.
[0031] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the game state control method described in any one of the first aspects is implemented.
[0032] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising a computer program, wherein when the program is executed by a processor, the game state control method described in any one of the first aspects is implemented.
[0033] According to the disclosed embodiment, by detecting the video stream of the game area and generating the game result according to the number of game identifiers, identification information and game result generation conditions, the game in the game area can be automatically switched to the result processing state in response to the generation of the game result. In other words, the game can be automatically switched to the result processing state based on the video stream of the game area, thereby reducing labor costs, improving the switching efficiency of the game state, and facilitating the normal progress of the game.
[0034] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0036] Figure 1 is a flow chart of a game state control method according to an exemplary embodiment;
[0037] Figure 2 is a flow chart of a method for detecting game results according to an exemplary embodiment;
[0038] Figure 3 is a flow chart of an operation information detection method according to an exemplary embodiment;
[0039] Figure 4 is a schematic diagram of a game state control device according to an exemplary embodiment;
[0040] Figure 5 is a schematic diagram of another game state control device according to an exemplary embodiment;
[0041] Figure 6The diagram is a schematic diagram showing the structure of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The specific methods described in the following exemplary embodiments do not represent all schemes consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0043] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0044] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0045] A complete game can often be divided into multiple different states, and the corresponding state needs to be switched during the game according to the progress of the game. For example, a tabletop card game can usually be divided into a card dealing state and a result processing state. Specifically, in the card dealing state, the game dealer can distribute cards to players participating in the game, and after the cards are distributed, the result processing state can be entered. In this state, the game result can be determined based on the rules of the tabletop card game according to the points, suits, etc. of the cards. For example, the player who wins the tabletop card game can be determined in the end.
[0046] At present, the switching of game status requires relevant staff to make specific actions or to operate designated buttons. Taking the game process of a tabletop card game as an example, if the game dealer needs to switch the game from the dealing state to the result processing state after dealing the cards, the game dealer can make specific actions to be recognized by the detection device, thereby triggering the game to switch from the dealing state to the result processing state; or, the game dealer can operate the physical or virtual button on the client to trigger the game to switch from the dealing state to the result processing state. Obviously, this game state control method relies on manual operation, wastes manpower and is inefficient.
[0047] Based on the above, the embodiments of the present disclosure provide a game state control method, which can automatically detect the number and identification information of game markers based on the video stream of the game area, and generate game results according to the number and identification information of the game markers, and automatically switch the game to the result processing state when the game results are generated. This method can realize automatic switching of the game state based on the detection of the video stream of the game area, reduce labor costs, improve the switching efficiency of the game state, and help ensure the normal progress of the game.
[0048] In order to make the game state control method provided by the present invention clearer, the execution process of the solution provided by the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0049] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a game state control method shown in an embodiment of the present disclosure. Figure 1 As shown, the process includes:
[0050] Step 101, obtaining a video stream of a game area.
[0051] In the disclosed embodiment, the game area is the area required for playing the game. For example, during a tabletop card game, cards need to be placed on the tabletop area to play the game, and the tabletop area is the game area. In this step, a video stream of the game area can be obtained, and the method of obtaining the video stream can include multiple implementation methods, which are not limited in this embodiment.
[0052] In a possible implementation, the video stream of the game area can be obtained by a pre-set video capture device. For example, a video capture device can be installed above the desktop area used for the desktop card game to obtain the video stream of the desktop area.
[0053] Step 102: Detect the video stream to determine the number of game markers in the game area and identification information of each game marker.
[0054] In the disclosed embodiment, the game identifier includes an item or prop used to determine the game result during the game. For example, the cards used in the tabletop card game can be used as the game identifier of this embodiment. During the tabletop card game, the game dealer needs to distribute the game identifier "cards" to the players participating in the game, and the result of the game can be determined based on the cards distributed to different players. For example, it can be determined that the player with the highest card points wins.
[0055] Different game identifiers have different identification information. For example, in a tabletop card game, cards are used as game identifiers, and the cards include information such as points and suits to distinguish the cards, which can be used as game identification information in the embodiment of the present disclosure.
[0056] In some optional embodiments, one or more game identifiers may be placed in advance in the game area. For example, in a tabletop card game, the game dealer may pre-deliver one or more cards in the tabletop area to determine the outcome of the tabletop card game based on the cards delivered.
[0057] After acquiring the video stream of the game area, this step can detect the video stream of the game area, determine the number of game markers in the game area, and determine the identification information of each game marker in the game area. Taking the desktop card game as an example, this step can detect the video stream of the desktop area, determine the number of cards issued in the desktop area, and determine the suit and points of each card issued in the desktop area. For example, this step can detect the video stream of the desktop area and determine that the desktop area includes 4 cards, and the identification information of the four cards is respectively: Ace of Hearts, 2 of Spades, 3 of Diamonds, and 4 of Clubs.
[0058] Among them, how to detect the video stream of the game area and determine the number of game markers in the game area and the identification information of each of the game markers can be implemented in a variety of ways, which are not limited by this embodiment. In one possible implementation, a recognition network that can be used to identify game markers in the video stream can be pre-trained based on a learnable machine learning model or a neural network model, so that when it is necessary to detect the game markers in the game area, the trained recognition network can be used to detect the video stream.
[0059] In some optional embodiments, determining the number of game markers in the game area and identification information of each of the game markers includes: when the game is in an marker operation state, determining the number of game markers in the game area and identification information of each of the game markers.
[0060] In the above embodiment, the video stream of the game area is detected only when the game is in the marker operation state, and the number of game markers in the game area and the identification information of each game marker are determined based on the video stream.
[0061] In the marker operation state, the marker operation object can operate the game marker in the game area. For example, in a tabletop card game in the marker operation state, the game dealer performs a card dealing operation in the tabletop area. In the process of the game dealer dealing cards in sequence, the video stream of the tabletop area can be detected in real time to determine the number of cards in the tabletop area and the suit and points of each card.
[0062] Step 103, when the number of game markers in the game area reaches a first predetermined value, generate a game result according to the number of game markers, identification information of each game marker and preset game result generation conditions.
[0063] In the disclosed embodiment, a first predetermined value may be pre-set as a comparison value with the number of game markers in the game area. The first predetermined value is the minimum number of game markers that can generate a game result. Taking a tabletop card game as an example, at least 4 cards need to be issued to obtain a game result, and the game result is determined based on the points and suits of the 4 cards. Taking the tabletop card game as an example, the first predetermined value may be pre-set to 4 in the disclosed embodiment.
[0064] After determining the number of game markers in the game area in step 102, this step can further determine whether the number of game markers in the game area reaches a first predetermined value, that is, determine whether the number of game markers in the game area is greater than or equal to the first predetermined value.
[0065] When the number of game markers in the game area is greater than or equal to a first predetermined value, it indicates that the game markers required for the game have reached the basic quantity requirement, and the detection logic for the game result can be triggered at this time.
[0066] This step can generate a game result based on the number of game markers in the game area, the identification information of each game marker and a preset game result generation condition, wherein the game result generation condition includes a condition for generating a game result based on the number of game markers and the identification information.
[0067] Take a tabletop card game as an example. For example, in the tabletop card game, the first predetermined value can be preset to 4; the preset game result generation condition is: in the case of 4 cards, the party with the sum of the card points closest to 9 wins; in the case of 5 cards, the party with the largest sum of the card points wins; in the case of 6 cards, the party with the sum of the card points closest to 9 wins. Among them, players participating in the game can choose to place game coins in different areas corresponding to Party A or Party B to participate in the game.
[0068] During the game, the dealer can issue the first card to Party A, the second card to Party B, the third card to Party A, and the fourth card to Party B. At this time, based on the detection of the video stream of the desktop area, it can be determined that the number of cards in the desktop area has reached the preset first predetermined value: 4 cards, thereby triggering the detection logic for the game result. That is, it can be further combined with the game result generation condition corresponding to the 4 cards: in the case of 4 cards, the party with the sum of the card points closest to 9 wins, and the winning party is determined according to the cards issued to Party A and Party B.
[0069] Exemplarily, the first and third cards dealt to Party A are respectively: 6 of hearts and 3 of diamonds, so the sum of the points of Party A's cards is 9; the second and fourth cards dealt to Party B are respectively: 5 of hearts and 2 of diamonds, so the sum of the points of Party B's cards is 7; combined with the conditions corresponding to 4 cards in the game result generation conditions: in the case of 4 cards, the party with the sum of the points of the cards closest to 9 wins, it can be determined that the sum of the points of Party A's cards is closest to 9, that is, Party A wins.
[0070] In the above example, the sum of the points of Party A's cards is closer to 9 than the sum of the points of Party B's cards, so the game result can be generated according to the corresponding game result generation condition, that is, the winning party is determined to be Party A. It can be understood that if the sum of the points of Party A and Party B's cards is the same, that is, the sum of the points of Party A and Party B's cards is close to 9 to the same extent, then the game result generation condition corresponding to the four cards cannot generate the game result. At this time, the game dealer can continue to issue cards, for example, the fifth card can be issued to Party A. Therefore, it can be determined whether the game result can be generated based on the points of the five cards and the game result generation conditions corresponding to the five cards. If the game result cannot be generated, the game dealer can continue to issue the sixth card to Party B, and further determine whether the game result can be generated based on the points of the six cards and the game result generation conditions corresponding to the six cards.
[0071] In some optional embodiments, before generating a game result, the state of the identification surface of each of the game markers may be detected based on the video stream, and the state of the marker may include a visible state or a hidden state.
[0072] In the above embodiment, before generating the game result according to the number of game markers, the identification information of each game marker and the preset game result generation condition, the state of the identification surface of each game marker can also be detected according to the video stream. The state of the identification surface of the game marker is used to indicate whether the identification information of the game marker is visible.
[0073] For example, the state of the identification surface of the game marker may include a visible state or a hidden state. In the visible state, the identification information in the identification surface of the game marker is visible; in the hidden state, the identification information in the identification surface of the game marker is not visible. Taking the cards in the tabletop card game as game markers as an example, the state of the identification surface of the game marker when the front side of the card is facing up is the visible state; the state of the identification surface of the game marker when the back side of the card is facing up is the hidden state.
[0074] In a possible implementation, when the identification surfaces of the game markers are all in a visible state, a game result is generated according to the number of the game markers and the identification information of each of the game markers.
[0075] In the above implementation, when the identification surfaces of the game identification objects in the desktop area are all in a visible state, the game result is generated according to the number of game identification objects, identification information and game result generation conditions. Still taking the desktop card game as an example, in the above implementation, the game result can be generated according to the number of cards, the suit and the points of each card when the cards in the desktop area are facing up.
[0076] Optionally, when it is detected that the state of the identification surface of at least one game identifier is a hidden state, it can be determined that the current state does not meet the game result generation condition.
[0077] In some optional embodiments, before generating the game result, the marker operation object can be detected according to the video stream. The marker operation object is an object that can operate the game marker in the game area. For example, in a tabletop card game, the game dealer who can perform the card distribution operation can be used as the marker operation object of this embodiment. In this embodiment, the marker operation object can be pre-set, for example, the game dealer can be pre-set as the marker operation object.
[0078] In the above embodiment, before generating the game result according to the number of game markers, the identification information of each game marker and the preset game result generation conditions, the marker operation object can also be detected according to the video stream of the game area.
[0079] In a possible implementation, when the distance between each game marker and the detected marker operation object is greater than a preset distance threshold, a game result is generated based on the number of the game markers and the identification information of each of the game markers.
[0080] The distance between the game marker and the marker operation object is used to characterize the stability of the game marker. For example, in a tabletop card game, if the distance between the card and the dealer's hand is large enough, it means that the card has been dealt by the dealer, that is, the dealer's hand is far enough away from the card to determine that the card has been dealt stably to the tabletop area.
[0081] In the above implementation, after detecting the marker operation object according to the video stream, the distance between each game marker and the marker operation object can be further determined. Only when the distance between each game marker and the marker operation object is greater than the preset distance threshold, the game result can be generated according to the number of game markers and identification information.
[0082] In the above embodiment, the game result is generated when the distance between the game marker and the marker operation object is large enough. That is, the game marker is in a stable state before the game result is generated, thereby improving the accuracy of the detection results of the number of game markers and the identification information, and further improving the reliability of the game state switching operation.
[0083] In some optional embodiments, before generating the game result, the position information of each of the game markers can also be detected based on the video stream; when it is determined that the position information of each of the game markers remains unchanged within a preset time period, the game result is generated based on the number of the game markers and the identification information of each of the game markers.
[0084] The position information of the game markers indicates the position of each game marker in the game area. In a tabletop card game, the position information of the cards in the tabletop area can be detected and determined based on the video stream of the tabletop area.
[0085] In the above embodiment, after determining the position information of the game marker according to the video stream detection, it can be further determined whether the position information of each game marker remains unchanged within a preset duration. The preset duration can be a preset duration threshold. If the position information of the game marker remains unchanged within the preset duration, it means that the game marker is in a sufficiently stable state and can be used to generate game results. If the position information of the game marker changes within the preset duration, it means that the game marker is in an unstable state and is not suitable for generating game results.
[0086] For example, in a tabletop card game, the position information of each card in the tabletop area can be determined based on the video stream. If the position information of each card in the tabletop area remains unchanged within a preset time, it means that the cards in the tabletop area are in a stable state. Furthermore, the game result of the tabletop card game can be generated based on the number of cards, the suit and the points of each card.
[0087] In the above embodiment, the game result is generated according to the game marker only when the position information of the game marker remains unchanged within a preset time. That is, the game marker is in a sufficiently stable state before the game result is generated, thereby improving the accuracy of detecting the number of game markers and identification information, and improving the reliability of the game state switching operation.
[0088] Step 104, in response to generating the game result, switching the game to a result processing state.
[0089] After the game result is generated according to the number of game identifiers, the identification information of each game identifier and the preset game result generation conditions in step 103, this step can switch the current game to the result processing state in response to the generation of the game result. For example, in a tabletop card game, this step can switch the game from the card dealing state to the result processing state.
[0090] In the result processing state, the game has generated the game result, and the participants are not allowed to operate any object or matter in the game area, and further processing can be performed according to the game result. For example, according to the game result, the game coins of the losing player can be assigned to the winning player, or the winning player can be given a corresponding reward and the losing player can be given a corresponding punishment according to the game rules.
[0091] In some optional embodiments, after switching the game to the result processing state, the method further includes: displaying the game result in the client.
[0092] According to the disclosed embodiment, by detecting the video stream of the game area and generating the game result according to the number of game identifiers, identification information and game result generation conditions, the game in the game area can be automatically switched to the result processing state in response to the generation of the game result. In other words, the game can be automatically switched to the result processing state based on the video stream of the game area, thereby reducing labor costs, improving the switching efficiency of the game state, and facilitating the normal progress of the game.
[0093] In some optional embodiments, different numbers of game identifiers in the pre-set game result generation conditions correspond to different sub-conditions, wherein the sub-condition corresponding to a certain number is used to represent the rule for generating the game result according to the identification information of each game identifier under the number.
[0094] For example, in a tabletop card game, the game result generation condition can be pre-set as: the player with the highest card number wins. The game result generation condition can be specifically set as: the player corresponding to the card with the highest number of points among 4 cards wins, and the number of points on the card is greater than or equal to 4; the player corresponding to the card with the highest number of points among 5 cards wins, and the number of points on the card is greater than or equal to 5; the player corresponding to the card with the highest number of points among 6 cards wins, and the number of points on the card is greater than or equal to 6.
[0095] In the above embodiment, it is possible to determine whether the identification information of each game identifier satisfies the corresponding sub-condition according to the number of game identifiers in the pre-set game result generation condition. If the identification information of each game identifier satisfies the corresponding sub-condition, the game result can be generated according to the corresponding sub-condition and the identification information of each game identifier.
[0096] For example, in a tabletop card game, if the number of cards in the tabletop area is 5, reaching the first predetermined value of 4. In the above embodiment, it can be determined whether the points of the 5 cards meet the sub-condition corresponding to 5 cards in the game result generation condition: the player corresponding to the card with the largest point in the 5 cards wins, and the point of the card is greater than or equal to 5. If the card with the largest point in the 5 cards in the tabletop area is: 8 of Hearts, it can be determined that the player corresponding to the card 8 of Hearts wins.
[0097] In the above embodiment, the game result generation condition is subdivided into sub-conditions corresponding to different numbers of game markers. When the game result is generated according to the identification information of the game markers in the game area, the game result can be generated more accurately according to the specific corresponding sub-conditions.
[0098] In some optional embodiments, it is determined whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of the game identifiers, and a first determination result is obtained. If the first determination result is yes, the game result is generated; if the first determination result is no, the game is maintained in the identifier operation state, so that the game identifier can be operated by the identifier operation object in the game area when the game is in the identifier operation state.
[0099] The fact that the number of game markers in the game area reaches the first predetermined value only indicates that the number of game markers in the game area has reached the basic condition for generating game results. However, whether the game results can be generated based on the game markers requires further judgment on whether the identification information of the game markers meets the sub-conditions in the game result generation conditions corresponding to the number of game markers.
[0100] If the identification information of each game identifier can satisfy the sub-condition corresponding to the number of game identifiers, the game result can be generated according to the identification information of each game identifier. If the identification information of each game identifier cannot satisfy the sub-condition corresponding to the number of game identifiers, the game result cannot be generated based on the identification information of the game identifiers on the desktop. In the above embodiment, when the identification information of each game identifier cannot satisfy the corresponding sub-condition, the game can be kept in the identifier operation state. Wherein, in the identifier operation state, the identifier operation object can operate the game identifier in the game area. Exemplarily, when the desktop card game is in the identifier operation state, the game dealer can perform the card distribution operation in the desktop area.
[0101] In the above embodiment, when the game result cannot be generated based on the identification information of the game marker in the game area, the game can be maintained in the marker operation state, so that the marker operation object can continue to operate the game marker in the game area, so that the game can continue normally.
[0102] The number of game markers in the game area reaches a first predetermined value, but the identification information of each game marker does not meet the corresponding sub-condition, so the game result cannot be generated, and the marker operation object can continue to operate the game marker in the marker operation state. In some optional embodiments, while the marker operation object continues to operate the game marker, the game markers in the game area can continue to be detected to determine whether the identification information of each game marker meets the corresponding sub-condition.
[0103] In a possible implementation, the preset game result generation condition also includes that the number of game markers in the game area does not exceed a second predetermined value. A second predetermined value greater than the first predetermined value may be preset. The second predetermined value is the maximum number of game markers in the game area that can generate a game result. For example, in a tabletop card game, a minimum of 4 cards and a maximum of 8 cards are required to generate a game result. In the above implementation, the first predetermined value corresponds to 4 cards, and the second predetermined value corresponds to 8 cards.
[0104] Reference Figure 2 As shown, when the number of game markers in the game area does not exceed the second predetermined value, the process of continuing to detect the game markers in the game area may include the following repeated operations:
[0105] Step 201, in response to detecting that the number of game markers in the game area increases by 1, determining whether the identification information of each of the game markers satisfies the sub-condition corresponding to the number of the game markers, and obtaining a second determination result.
[0106] In the marker operation state, the marker operation object can operate the game marker in the game area. For example, in a tabletop card game, if the four cards in the tabletop area cannot generate a game result, the game dealer can continue to deal the fifth card in the marker operation state.
[0107] In response to the number of cards increasing from 4 to 5, this step can determine whether identification information such as the points and suits of the cards in the table area meets the sub-conditions corresponding to 5 cards in the game result generation conditions.
[0108] It is understandable that each time the number of game markers in the game area increases by 1 based on the first predetermined value, the detection process of this step will be triggered until the number of game markers in the game area reaches the second predetermined value. For example, if the number of cards in the table area increases from 5 to 6, the detection process of this step can be triggered; if the number of cards in the table area increases from 6 to 7, the detection process of this step can be triggered.
[0109] Step 202: If the second determination result is yes, generate the game result.
[0110] When the number of game markers in the game area increases by 1, the identification information of the game marker increases accordingly, and the corresponding sub-conditions in the game result generation conditions also change. Therefore, after adding a game marker to the game area, the game result may be generated according to the identification information and the corresponding sub-conditions.
[0111] This step can generate a game result in response to the identification information of each game identifier satisfying the corresponding sub-condition. For example, in a tabletop card game, when the number of cards in the tabletop area increases from 4 to 5, the sub-conditions corresponding to the 5 cards can be determined based on the points and suits of the 5 cards, so that the corresponding game result can be generated.
[0112] Step 203: If the second determination result is no, keep the game in the marker operation state.
[0113] When the number of game markers in the game area increases by 1, the identification information of the game marker increases accordingly, and the corresponding sub-conditions in the game result generation conditions also change. Therefore, after adding a game marker to the game area, the game result may be generated according to the identification information and the corresponding sub-conditions; or the game result may still not be generated according to the identification information and the corresponding sub-conditions.
[0114] This step can keep the game in the identifier operation state in response to the identification information of each game identifier not satisfying the corresponding sub-condition.
[0115] Taking a tabletop card game as an example, the execution steps of the disclosed embodiment are described. For example, in the tabletop card game, the first predetermined value can be preset as: 4 cards; the second predetermined value can be preset as: 8 cards; the preset game result generation condition includes the following sub-conditions: in the case of 4 cards, the party with the sum of the card points closest to 9 wins; in the case of 5 cards, the party with the largest sum of the card points wins; in the case of 6 cards, the party with the sum of the card points closest to 9 wins; in the case of 7 cards, the party with the largest sum of the card points wins; in the case of 8 cards, the party with the sum of the card points closest to 9 wins. Among them, players participating in the game can choose to place game coins in different areas corresponding to Party A or Party B to participate in the game.
[0116] During the game, the game dealer can issue the first card to Party A, the second card to Party B, the third card to Party A, and the fourth card to Party B. Based on the detection of the video stream of the desktop area, it is determined that the corresponding sub-conditions in the game result generation conditions are not met according to the cards issued to Party A and Party B, and the game is kept in the marker operation state. The game dealer continues to deal cards: issuing the fifth card to Party A.
[0117] In the disclosed embodiment, in response to the number of cards in the desktop area increasing from 4 to 5, the execution of step 201 is triggered, i.e., further determining whether the identification information such as the points of the 5 cards in the desktop area satisfies the sub-condition corresponding to the 5 cards in the game result generation condition: in the case of 5 cards, the party with the largest sum of the points of the cards wins.
[0118] If the points of the five cards in the table area can satisfy the sub-conditions corresponding to the five cards in the game result generation conditions, step 202 can determine the winner according to the points of the five cards.
[0119] For example, the 1st, 3rd, and 5th cards dealt to Party A are respectively 4 of hearts, 3 of diamonds, and 2 of clubs, so the sum of the points of Party A's cards is 9; the 2nd and 4th cards dealt to Party B are respectively 3 of hearts and 2 of diamonds, so the sum of the points of Party B's cards is 5; combined with the conditions corresponding to 5 cards in the game result generation conditions: in the case of 5 cards, the party with the largest sum of the points on the cards wins, it can be determined that the sum of the points on Party A's cards is the largest, that is, Party A wins.
[0120] If the points of the 5 cards in the table area do not meet the sub-conditions corresponding to the 5 cards in the game result generation conditions, the game can be kept in the marker operation state in step 203, so that the game dealer can continue to deal the 6th card: the 6th card is dealt to Party B.
[0121] For example, the 1st, 3rd, and 5th cards issued to Party A are respectively: 4 of Hearts, 3 of Diamonds, and 2 of Clubs, so the sum of the points of Party A's cards is 9; the 2nd and 4th cards issued to Party B are respectively: 5 of Hearts and 4 of Diamonds, so the sum of the points of Party B's cards is 9. Combined with the conditions corresponding to 5 cards in the game result generation conditions: in the case of 5 cards, the party with the largest sum of card points wins. Since the sum of the points of the cards of Party A and Party B is equal, the corresponding sub-condition is not met. At this time, the tabletop card game maintains the marker operation state, so that the dealer continues to issue cards, for example, issuing the 6th card to Party B.
[0122] It is understandable that when the game dealer issues the sixth card, the execution process of the steps of the embodiment of the present disclosure is similar to the description of the above embodiment, and will not be repeated here. The steps of the embodiment of the present disclosure are a process of repeated execution until the game result of the current game is generated, or until the number of game markers in the game area reaches a second predetermined value. In this tabletop card game, the detection of the game result can be triggered by each additional card on the basis that the number of cards in the tabletop area is the first predetermined value. This method can detect the game result of the tabletop card game more accurately and timely.
[0123] In some optional embodiments, after obtaining the video stream of the game area, as follows Figure 3 As shown, the following steps may also be included:
[0124] Step 301: determine the operation information of the marker operation object operating the game marker in the game area.
[0125] Before the game switches to the result processing state, that is, before the game result is generated, it is usually necessary for the marker operation object to operate the game marker in the game area. The marker operation object includes an object that can operate the game marker during the game. For example, in a tabletop card game, when cards are used as game markers, the game dealer can be the marker operation object in this embodiment.
[0126] In the disclosed embodiment, after obtaining the video stream of the game area, the operation performed by the marker operating object on the game marker in the game area can be detected to obtain the operation information of the marker operating object on the game marker in the game area.
[0127] The operation information includes information about any processing process of the marker operation object operating the game marker in the game area. Exemplarily, the operation information may include: the marker operation object places the game marker 1 in the first sub-area of the desktop area; then, the marker operation object places the game marker 2 in the second sub-area of the desktop area. Taking the game dealer performing the card dealing operation as an example, the operation information detected in this step may include: the game dealer, distributes the first card to the Party A area of the desktop area; distributes the second card to the Party B area of the desktop area; distributes the third card to the Party A area of the desktop area; distributes the fourth card to the Party B area of the desktop area.
[0128] Step 302: When it is determined that the operation information is abnormal based on the preset operation constraint information, the game is switched to a pause state.
[0129] When the marker operation object operates the game marker in the marker operation state, it is usually necessary to comply with certain operation rules. In the above embodiment, the information used to regulate the operation process of the game marker by the marker operation object is called operation constraint information. For example, taking the tabletop card game as an example, the game dealer as the marker operation object needs to deal the cards to the specified position according to a certain order of dealing.
[0130] In this step, it can be determined whether there is an abnormality in the operation information of the game marker by the marker operation object based on the preset operation constraint information. Taking the tabletop card game as an example, the issuing rules of the game dealer issuing cards can be preset. When the game dealer issues cards in the marker operation state, the above embodiment can determine whether there is an abnormality in the game dealer issuing cards based on the preset operation constraint information.
[0131] The specific implementation method of determining whether the operation information is abnormal based on the pre-set operation constraint information is not limited by the embodiments of the present disclosure. In one possible implementation method, the operation information of the marker operation object in the game area operating the game marker can be identified at the algorithm layer, and the operation information is compared with the business logic set by the business logic layer to determine whether the operation information is abnormal. And in the case of abnormal operation information, the game is switched to a paused state. The game is in a paused state, which means that the game cannot proceed normally, and the abnormal behavior generated during the game needs to be processed.
[0132] For example, when the desktop area is pre-divided into a first sub-area and a second sub-area, the order of the dealer's dealing can be set by the operation constraint information as follows: the first card is dealt to the first sub-area; the second card is dealt to the second sub-area; the third card is dealt to the first sub-area; the fourth card is dealt to the second sub-area. In this step, based on the detected operation information of the dealer's dealing operation on the desktop area, and based on the dealer's dealing order in the pre-set operation constraint information, it can be determined whether the operation information is abnormal. For example, if the dealer deals the third card to the second sub-area, the operation information is abnormal, and the game can be switched to a paused state.
[0133] In the above embodiment, the operation of the game marker by the marker operation object in the game area can be automatically detected based on the video stream, and the game can be switched to a paused state in a timely manner when the operation of the marker operation object is abnormal. This method can timely detect abnormal operations of the marker operation object, pause the game and handle the abnormalities in time, thereby ensuring the standardization and fairness of the game process and ensuring the normal progress of the game.
[0134] In some optional embodiments, obtaining the video stream of the game area includes: obtaining video streams synchronously captured from multiple perspectives of the game area; the multiple perspectives include: at least one side view perspective and at least one top view perspective, and the side view perspective includes at least one left view perspective and / or at least one right view perspective.
[0135] In the above embodiment, the video stream of the game area can be synchronously collected from multiple perspectives. For example, a video acquisition device can be set directly above the game area to obtain the video stream of the game area from a bird's-eye view. Optionally, a video acquisition device can be set above the side of the game area to synchronously collect the video stream of the game area from the side in a bird's-eye view. For example, a camera can be set in the upper left or upper right of the desktop area to synchronously collect the video stream of the game area.
[0136] In the above embodiment, the video stream of the game area can be synchronously collected through multiple viewing angles, so that the game area can be detected based on the collected video stream. This method can obtain a more comprehensive video stream of the game area, more accurately detect the game area, switch the game state, and more accurately determine the game result, which is conducive to ensuring the normal progress of the game.
[0137] Figure 4 As shown, the present disclosure provides a game state control device, which can execute the game state control method of any embodiment of the present disclosure. The device may include a video stream acquisition module 401, a marker detection module 402, a result generation module 403 and a state switching module 404. Among them: the video stream acquisition module 401 is used to acquire the video stream of the game area; the marker detection module 402 is used to detect the video stream to determine the number of game markers in the game area and the identification information of each of the game markers; the result generation module 403 is used to generate a game result according to the number of game markers, the identification information of each of the game markers and the preset game result generation conditions when the number of game markers in the game area reaches a first predetermined value; the state switching module 404 is used to switch the game to a result processing state in response to generating the game result.
[0138] Optionally, the marker detection module 402, when used to determine the number of game markers in the game area and the identification information of each of the game markers, includes: when the game is in the marker operation state, determining the number of game markers in the game area and the identification information of each of the game markers.
[0139] Alternatively, if Figure 5 As shown, the device also includes: an identification surface detection module 501, which is used to detect the state of the identification surface of each of the game markers according to the video stream, and the state of the identification surface includes a visible state or a hidden state; the preset game result generation condition includes that the state of the identification surface of each of the game markers is a visible state, and the result generation module 403 is used to generate a game result according to the number of the game markers and the identification information of each of the game markers when the state of the identification surface of each of the game markers is a visible state.
[0140] Alternatively, if Figure 5As shown, the device also includes: an operation object detection module 502, which is used to detect the marker operation object according to the video stream; the preset game result generation condition includes that the distance between each of the game markers and the detected marker operation object is greater than the preset distance threshold, and the result generation module 403 is used to generate the game result according to the number of the game markers and the identification information of each of the game markers when the distance between each of the game markers and the detected marker operation object is greater than the preset distance threshold.
[0141] Alternatively, if Figure 5 As shown, the device also includes: a position information detection module 503, which is used to detect the position information of each of the game markers according to the video stream; the preset game result generation condition includes that the position information of each of the game markers remains unchanged within a preset time length, and the result generation module 403 is used to generate a game result according to the number of the game markers and the identification information of each of the game markers when it is determined that the position information of each of the game markers remains unchanged within the preset time length.
[0142] Optionally, the preset game result generation condition includes a sub-condition corresponding to the number of the game identifiers, and the result generation module 403 is used to determine whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of the game identifiers to obtain a first determination result; if the first determination result is yes, the game result is generated.
[0143] Optionally, the result generation module 403 is used to maintain the game-like marker operation state when the first determination result is no, so that the marker operation object can operate the game marker in the game area when the game is in the marker operation state.
[0144] Optionally, the preset game result generation condition also includes that the number of game markers in the game area does not exceed a second predetermined value, and the second predetermined value is greater than the first predetermined value. Figure 5 As shown, the result generation module 403 includes: a condition judgment submodule 504, which is used to determine whether the identification information of each game identifier satisfies the sub-condition corresponding to the number of game identifiers in response to detecting that the number of game identifiers in the game area increases by 1, when the game is in the identifier operation state and the number of game identifiers does not exceed a second predetermined value, so as to obtain a second determination result; a result generation submodule 505, which is used to generate the game result when the second determination result is yes; and a state maintenance submodule 506, which is used to maintain the game in the identifier operation state when the second determination result is no.
[0145] Alternatively, if Figure 5 As shown, the device further includes: a display module 507, which is used to display the game result in the client.
[0146] Alternatively, if Figure 5 As shown, the device also includes: an operation information detection module 508, which is used to detect the video stream and determine the operation information of the marker operation object operating the game marker in the game area; an abnormal pause module 509, which is used to switch the game to a pause state when it is determined that the operation information has an abnormality based on pre-set operation constraint information.
[0147] Optionally, the video stream acquisition module 401, when used to acquire the video stream of the game area, includes: acquiring video streams synchronously captured from multiple viewing angles of the game area.
[0148] Optionally, the gaming identifiers comprise playing cards.
[0149] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of at least one embodiment of the present disclosure. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0150] The present disclosure also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the game state control method of any embodiment of the present disclosure when executing the program.
[0151] Figure 6 A more specific hardware structure diagram of a computer device provided by an embodiment of the present disclosure is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.
[0152] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0153] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0154] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0155] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0156] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0157] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0158] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the game state control method of any embodiment of the present disclosure can be implemented.
[0159] The non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., and the present disclosure is not limited thereto.
[0160] In some optional embodiments, the embodiments of the present disclosure provide a computer program product, including computer readable code, when the computer readable code is run on a device, the processor in the device executes the game state control method provided in any of the above embodiments. The computer program product can be implemented in hardware, software or a combination thereof.
[0161] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the inventions claimed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not claimed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0162] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0163] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A game state control method, comprising: Get the video stream of the game area; Detect the video stream to determine the number of game markers in the game area and identification information of each game marker; When the number of game markers in the game area reaches a first predetermined value, generating a game result according to the number of game markers, identification information of each game marker and a preset game result generation condition; In response to generating the game outcome, switching the game to an outcome processing state; Wherein, determining the number of game identifiers in the game area and identification information of each game identifier includes: When the game is in a marker operation state, the number of game markers in the game area and identification information of each of the game markers are determined.
2. The method according to claim 1, wherein: The method further comprises: detecting the state of the identification surface of each of the game identification objects according to the video stream, wherein the state of the identification surface comprises a visible state or a hidden state; The preset game result generation condition includes that the identification surface of each of the game identifiers is in a visible state, and the game result is generated according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generation condition, including: When the identification surfaces of the game markers are in the visible state, a game result is generated according to the number of the game markers and the identification information of each of the game markers.
3. The method according to claim 1, wherein: The method further comprises: detecting a marker operation object according to the video stream; The preset game result generation condition includes that the distance between each of the game markers and the detected marker operation object is greater than a preset distance threshold, and the game result is generated according to the number of the game markers, the identification information of each of the game markers and the preset game result generation condition, including: When the distance between each of the game markers and the detected marker operation object is greater than the preset distance threshold, a game result is generated according to the number of the game markers and the identification information of each of the game markers.
4. The method according to claim 1, wherein: The method further comprises: detecting position information of each of the game markers according to the video stream; The preset game result generation condition includes that the position information of each of the game markers remains unchanged within a preset time period, The generating of the game result according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generating conditions includes: When it is determined that the position information of each of the game markers remains unchanged within the preset time period, a game result is generated according to the number of the game markers and the identification information of each of the game markers.
5. The method according to claim 1, wherein: The preset game result generation condition includes a sub-condition corresponding to the number of the game identifiers, The generating of the game result according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generating conditions includes: Determine whether the identification information of each of the game identifiers satisfies a sub-condition corresponding to the number of the game identifiers, and obtain a first determination result; If the first determination result is yes, the game result is generated.
6. The method according to claim 5, wherein: The generating of the game result according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generating conditions also includes: If the first determination result is no, the game is maintained in the marker operation state, so that the marker operation object can operate the game marker in the game area in the game in the marker operation state.
7. The method according to claim 6, wherein: The preset game result generation condition also includes that the number of game markers in the game area does not exceed a second predetermined value, and the second predetermined value is greater than the first predetermined value. The generating of the game result according to the number of the game identifiers, the identification information of each of the game identifiers and the preset game result generating conditions also includes: When the game is in the marker operation state and the number of the game markers does not exceed a second predetermined value, In response to detecting that the number of game markers in the game area increases by 1, determining whether the identification information of each of the game markers satisfies a sub-condition corresponding to the number of the game markers, and obtaining a second determination result; If the second determination result is yes, generating the game result; If the second determination result is no, the game is kept in the marker operation state.
8. The method according to claim 1, further comprising: After the game is switched to the result processing state, the game result is displayed in the client.
9. The method according to claim 1, further comprising: detecting the video stream; Determine operation information of the marker operation object operating the game marker in the game area; When it is determined that the operation information is abnormal based on the preset operation constraint information, the game is switched to a pause state.
10. The method according to claim 1, wherein obtaining the video stream of the game area comprises: Obtain video streams synchronously captured from multiple perspectives of the game area.
11. The method of any one of claims 1 to 10, wherein the gaming identifiers comprise playing cards.
12. A game state control device, comprising: A video stream acquisition module is used to acquire the video stream of the game area; A marker detection module, used to detect the video stream, determine the number of game markers in the game area and identification information of each game marker; A result generating module, configured to generate a game result according to the number of game markers, identification information of each game marker and a preset game result generating condition when the number of game markers in the game area reaches a first predetermined value; a state switching module, for switching the game to a result processing state in response to generating the game result; Wherein, determining the number of game identifiers in the game area and identification information of each game identifier includes: When the game is in a marker operation state, the number of game markers in the game area and identification information of each of the game markers are determined.
13. The device according to claim 12, further comprising: A logo surface detection module, used for detecting the state of the logo surface of each of the game logo objects according to the video stream, wherein the state of the logo surface includes a visible state or a hidden state; The preset game result generation condition includes that the identification surface of each of the game identification objects is in a visible state, and The result generating module is used to generate a game result according to the number of the game markers and the identification information of each of the game markers when the identification surfaces of the game markers are all in a visible state.
14. The apparatus according to claim 12, further comprising: An operation object detection module, used to detect a marker operation object according to the video stream; The preset game result generation condition includes that the distance between each of the game markers and the detected marker operation object is greater than a preset distance threshold, and The result generation module is used to generate a game result according to the number of the game markers and the identification information of each of the game markers when the distance between each of the game markers and the detected marker operation object is greater than the preset distance threshold.
15. The apparatus according to claim 12, further comprising: A position information detection module, used to detect the position information of each of the game markers according to the video stream; The preset game result generation condition includes that the position information of each of the game markers remains unchanged within a preset time period, and The result generation module is used to generate a game result according to the number of the game markers and the identification information of each of the game markers when it is determined that the position information of each of the game markers remains unchanged within a preset time period.
16. According to the device according to claim 12, the preset game result generation condition includes a sub-condition corresponding to the number of the game identifiers, and the result generation module is used to determine whether the identification information of each of the game identifiers satisfies the sub-condition corresponding to the number of the game identifiers to obtain a first determination result; when the first determination result is yes, the game result is generated; when the first determination result is no, the game is maintained in the identifier operation state, so that the game identifier can be operated by the identifier operation object in the game area when the game is in the identifier operation state.
17. The device according to any one of claims 12 to 16, further comprising: An operation information detection module is used to detect the video stream and determine the operation information of the marker operation object operating the game marker in the game area; The abnormal suspension module is used to switch the game to a suspended state when it is determined that the operation information is abnormal based on the preset operation constraint information.
18. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 11 when executing the program.
19. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
