WO2023047171A1 - Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de cartes - Google Patents

Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de cartes Download PDF

Info

Publication number
WO2023047171A1
WO2023047171A1 PCT/IB2021/058819 IB2021058819W WO2023047171A1 WO 2023047171 A1 WO2023047171 A1 WO 2023047171A1 IB 2021058819 W IB2021058819 W IB 2021058819W WO 2023047171 A1 WO2023047171 A1 WO 2023047171A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
game
information
target
cards
Prior art date
Application number
PCT/IB2021/058819
Other languages
English (en)
Inventor
Fei Xie
Xinxin Wang
Original Assignee
Sensetime International Pte. Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sensetime International Pte. Ltd. filed Critical Sensetime International Pte. Ltd.
Priority to CN202180002743.0A priority Critical patent/CN113785326A/zh
Priority to AU2021240276A priority patent/AU2021240276A1/en
Publication of WO2023047171A1 publication Critical patent/WO2023047171A1/fr

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/32Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
    • G07F17/3202Hardware aspects of a gaming system, e.g. components, construction, architecture thereof
    • G07F17/3216Construction aspects of a gaming system, e.g. housing, seats, ergonomic aspects
    • G07F17/322Casino tables, e.g. tables having integrated screens, chip detection means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/32Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
    • G07F17/3225Data transfer within a gaming system, e.g. data sent between gaming machines and users
    • G07F17/3232Data transfer within a gaming system, e.g. data sent between gaming machines and users wherein the operator is informed
    • G07F17/3234Data transfer within a gaming system, e.g. data sent between gaming machines and users wherein the operator is informed about the performance of a gaming system, e.g. revenue, diagnosis of the gaming system
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F1/00Card games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/24Electric games; Games using electronic circuits not otherwise provided for
    • A63F2009/2401Detail of input, input devices
    • A63F2009/243Detail of input, input devices with other kinds of input
    • A63F2009/2435Detail of input, input devices with other kinds of input using a video camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/32Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
    • G07F17/3286Type of games
    • G07F17/3293Card games, e.g. poker, canasta, black jack

Definitions

  • the present disclosure relates to the field of computer technology, in particular to a method, an apparatus, a device and a storage medium for switching states of a card game.
  • a card game indicates a game proceeding in a game site in which cards are dealt and a result of winning or losing is determined accordingly.
  • game props including cards need to be placed in a pre-determined area according to a game rule, otherwise it will be regarded as a violation of the rule and the game will be interrupted.
  • a card game is classified into different states according to phases of the card game, and a detection logic corresponding to the classified state is executed to determine whether there is a violation in the game.
  • the different states of a card game can include at least a starting state and a halt state.
  • the starting state indicates a beginning of a card game.
  • cards are usually dealt to a plurality of players participating in the game in a predetermined card dealing order, i.e., the cards are dealt to a corresponding card placement area of each game player in a certain order.
  • a predetermined card dealing order i.e., the cards are dealt to a corresponding card placement area of each game player in a certain order.
  • the cards are dealt in a wrong order, it is necessary to immediately interrupt the game and inform a supervisory system that the game is switched to the halt state, so to avoid generating a wrong game result due to the wrong card dealing order.
  • the present application discloses at least one method of switching states of a card game.
  • the method including: obtaining card information including position information of at least one card involved in a live image of a current card game from a card detection on the live image, wherein the live image is acquired from a game tabletop for proceeding the current card game, and the game tabletop includes two or more placement areas for placing a card; determining, in response to that the at least one card is excluded from one or more recorded cards of the current card game, that the at least one card is a target card, wherein the one or more recorded cards include each card detected in the current card game; determining, according to pre -acquired recorded card information and card sequential configuration information of the current card game, an expected placement area for the target card from the two or more placement areas, wherein the card sequential configuration information is used to define a placement area for a card dealt in the current card game; and updating, in response to position information of the target card indicating that the target card is not placed in the expected placement area, the current card
  • the method further including: obtaining a face state of the target card from a face state detection on the target card; and updating, in response to that a number of dealt cards in the current card game is less than or equal to a predetermined threshold and the face state of the target card does not match a first face state, the current card game to the halt state; wherein the dealt cards include the one or more recorded cards and the target card, the first face state indicates an expected face state for a card in a dealing phase, which is determined from game type configuration information of the current card game.
  • the two or more placement areas include a first placement area to place a card for an operator of a target game operation and a second placement area to place a card for a non-operator; based on the card detection performed on the live image, first card information of cards within the first placement area and second card information of cards within the second placement area are further obtained; when the game type configuration information of the current card game indicates the current card game is of a first type, the method further including: updating, in response to that the first card information and the second card information do not meet a card information condition for the target game operation, the current card game to the halt state.
  • the first card information includes a number of cards within the first placement area obtained from the card detection on a first live image as a first card number, and a number of cards within the first placement area obtained from the card detection on a second live image captured later than the first live image in time sequence as a new first card number;
  • the second card information includes a number of cards within the second placement area obtained from the card detection on the first live image as a second card number, and a number of cards within the second placement area obtained from the card detection on the second live image as a new second card number;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes: the first card number equals to a first number while the second card number equals to a second number; and the new first card number also equals to the first number while the new second card number is less than the second number.
  • the first card information includes a number of cards within the first placement area obtained from the card detection on a first live image as a first card number, and a number of cards within the first placement area obtained from the card detection on a second live image captured later than the first live image in time sequence as a new first card number;
  • the second card information includes a number of cards within the second placement area obtained from the card detection on the first live image as a second card number, and face states of cards within the second placement area obtained from the card detection on the second live image;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes: the first card number equals to a first number while the second card number equals to a second number; and the new first card number also equals to the first number while the face states of cards within the second placement area include a visible state.
  • the game tabletop further including a predetermined operating area for the target game operation;
  • the first card information includes an actual number of cards within the first placement area;
  • the second card information includes an actual number of cards within the second placement area; based on the card detection performed on the live image, an actual number of cards within the predetermined operating area is further obtained;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes at least one of: the actual number of cards within the first placement area does not match a target number of cards for the first placement area; the actual number of cards within the second placement area does not match a target number of cards for the second placement area; or the actual number of cards within the predetermined operating area does not match a target number of cards for the predetermined operating area.
  • the card sequential configuration information includes a correspondence between placement areas and serial positions of cards dealt in the current card game; determining, according to the pre-acquired recorded card information and the card sequential configuration information of the current card game, the expected placement area for the target card from the two or more placement areas includes: determining, in response to that a number of recorded cards determined based on the recorded card information does not exceed a predetermined threshold, a serial position of the target card based on the number of recorded cards; and determining, based on the correspondence included in the card sequential configuration information, the expected placement area corresponding to the serial position of the target card from the two or more placement areas.
  • the recorded card information including recorded card face values;
  • the card sequential configuration information includes an association relationship between recorded card face values and a placement area for the target card;
  • determining, according to the pre -acquired recorded card information and the card sequential configuration information of the current card game, the expected placement area for the target card from the two or more placement areas includes: obtaining, in response to that a number of recorded cards determined based on the recorded card information is greater than a predetermined threshold, the recorded card face values included in the recorded card information; and determining, based on the association relationship included in the card sequential configuration information, the expected placement area associated with the recorded card face values from the two or more placement areas.
  • the recorded card information further including recorded card face states; the method further including: obtaining, when determining that the at least one card is the target card and a number of recorded cards determined based on the recorded card information is greater than or equal to a predetermined threshold, the recorded card face states included in the recorded card information; updating, in response to that the recorded card face states include a face state other than a second face state while the second face state is expected for a recorded card when dealing the target card, the current card game to the halt state.
  • the recorded card information including recorded card position information. Accordingly, determining, in response to that the at least one card is excluded from the one or more recorded cards of the current card game, that the at least one card is the target card includes: determining, in response to that position information of the at least one card is excluded from the recorded card position information, that the at least one card is a candidate card; for each of a plurality of consecutive subsequent images of the live image, obtaining card information and card operator information from the subsequent image by performing a detection of card and card operator on the subsequent image, wherein the card information includes a boundary box indicating position information of a card; the card operator information includes a boundary box indicating position information of a card operator; and determining the candidate card as the target card in response to at least one of: determining, based on the respective card information and card operator information, that a boundary box of the candidate card does not overlap with a boundary box of the card operator in each of the plurality of consecutive subsequent images; or, a position of the candidate card indicating by the
  • the method further including: updating the recorded card information by storing card information of the target card which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, wherein the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • the present application further provide an apparatus for switching states of a card game, including: a card detecting module, configured to obtain card information including position information of at least one card involved in a live image of a current card game from a card detection on the live image, wherein the live image is acquired from a game tabletop for proceeding the current card game, and the game tabletop includes two or more placement areas for placing a card; a target card determining module, configured to determine, in response to that the at least one card is excluded from one or more recorded cards of the current card game, that the at least one card is a target card, wherein the one or more recorded cards include each card detected in the current card game; an expected placement area determining module, configured to determine, according to pre-acquired recorded card information and card sequential configuration information of the current card game, an expected placement area for the target card from the two or more placement areas, wherein the card sequential configuration information is used to define a placement area for a card dealt in the current card game; and a first updating module, configured to update, in response to
  • the apparatus further includes: a first detecting module for a face state, configured to obtain a face state of the target card from a face state detection on the target card; a second updating module, configured to update, in response to that a number of dealt cards in the current card game is less than or equal to a predetermined threshold and the face state of the target card does not match a first face state, the current card game to the halt state; wherein the dealt cards include the one or more recorded cards and the target card, the first face state indicates an expected face state for a card in a dealing phase, which is determined from game type configuration information of the current card game.
  • the two or more placement areas include a first placement area to place a card for an operator of a target game operation and a second placement area to place a card for a nonoperator;
  • the card detecting module is further configured to obtain, based on the card detection performed on the live image, first card information of cards within the first placement area and second card information of cards within the second placement area;
  • the apparatus further including: a third updating module, configured to update, in response to that the first card information and the second card information do not meet a card information condition for the target game operation, the current card game to the halt state when the game type configuration information of the current card game indicates the current card game is of a first type.
  • the target card determining module is specially configured to determine, in response to that position information of the at least one card is excluded from the recorded card position information, that the at least one card is a candidate card; for each of a plurality of consecutive subsequent images of the live image, obtain card information and card operator information from the subsequent image by performing a detection of card and card operator on the subsequent image, wherein the card information includes a boundary box indicating position information of a card; the card operator information includes a boundary box indicating position information of a card operator; and determine the candidate card as the target card in response to at least one of: determining, based on the respective card information and card operator information, that a boundary box of the candidate card does not overlap with a boundary box of the card operator in each of the plurality of consecutive subsequent images; or, a position of the candidate card indicating by the boundary box of the candidate card is not changed in the plurality of consecutive subsequent images.
  • the apparatus further including: a cache updating module, configure to update the recorded card information by storing card information of the target card which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, wherein the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • a cache updating module configure to update the recorded card information by storing card information of the target card which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, wherein the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • the present application further provides an electronic device, including: a processor, and a memory for storing computer instructions that can be read by the processor; wherein, by executing the computer instructions, the processor is caused to implement the method of switching states of a card game according to any one of the above-mentioned embodiments.
  • the present application further provides a non-transitory computer readable storage medium, storing computer readable instructions for causing a computer to perform the method of switching states of a card game according to any one of the above-mentioned embodiments.
  • a target card i.e., a newly dealt card
  • an expected placement area for the target card is determined.
  • the current card game can be updated to a halt state.
  • FIG. 1 is a schematic flowchart illustrating a method of switching states of a card game according to the present application
  • FIG. 2 is a schematic flowchart illustrating a method of determining an expected placement area according to the present application
  • FIG. 3 is a schematic flowchart illustrating a method of determining an expected placement area according to the present application
  • FIG. 4 is a schematic flowchart illustrating a method of determining a target card according to the present application
  • FIG. 5 is a schematic flowchart illustrating a method of switching states of a card game according to the present application
  • FIG. 6 is a schematic flowchart illustrating a method of switching states of a card game according to the present application
  • FIG. 7 is a schematic flowchart illustrating a method of switching states of a card game according to the present application.
  • FIG. 8 is a schematic diagram illustrating a game scene according to the present application.
  • FIG. 9 is a structural schematic illustrating an apparatus for switching states of a card game according to the present application.
  • FIG. 10 is a block diagram of hardware of an electronic device according to the present application.
  • An objective of the present application is to provide a method of switching states of a card game.
  • a target card i.e., a newly dealt card
  • recorded card information card information of recorded cards
  • an expected placement area for the target card is determined.
  • the current card game is updated to a halt state.
  • FIG. 1 is a schematic flowchart illustrating a method of switching states of a card game in the present application.
  • the method may include step 102 to step 108.
  • step 102 card information including position information of at least one card involved in a live image of a current card game is obtained from a card detection on the live image.
  • the at least one card is determined as a target card, where the recorded cards include each card detected in the current card game.
  • an expected placement area for the target card is determined from the two or more placement areas according to pre-acquired recorded card information and card sequential configuration information of the current card game, where the card sequential configuration information is used to define a placement area for a card dealt in the current card game.
  • step 108 in response to position information of the target card indicating that the target card is not placed in the expected placement area, the current card game is updated to a halt state.
  • the electronic device can perform the switching method by installing software logic corresponding to the switching method.
  • the type of the electronic device can be a notebook computer, a computer, a server, a mobile phone, a PAD terminal, and so on.
  • the type of the electronic device is not particularly limited in the present application.
  • the electronic device can also be a client device or a server device, which is not particularly limited herein.
  • the electronic device can be a node device deployed at a card game site.
  • the node device can be connected to several image capture devices deployed on the game site to obtain captured live images.
  • the node device can analyze the live images to determine a state of a card game.
  • the node device can update the state of the card game according to the procedure of the game, or send the game state determined through the image analysis to a cloud server or a background server for maintenance or realtime update.
  • the node device can be used as an edge computing device, corresponding to a game tabletop in a one-to-one correspondence.
  • Each node device can obtain the captured image from the image capture device deployed around the corresponding game tabletop, and monitor the game played on the game tabletop based on the captured image.
  • the node device can transmit a monitoring result to a cloud server or a background server.
  • a node device is taken as an example of the executive subject for description.
  • the node device can analyze a state of a card game based on an obtained image.
  • the game state may include at least a starting state and a halt state.
  • the starting state indicates an initial state when the game starts.
  • the halt state indicates a state in which the monitoring procedure for a game is interrupted due to an abnormal case occurred during the game, and/or the game is to be interrupted for back to be normal with some adjustment on operations.
  • the node can execute step 102 to perform a card detection on a live image of the current card game to obtain card information of at least one card involved in the live image, where the card information includes position information of the at least one card; the live image is acquired from a game tabletop for proceeding the current card game, and the game tabletop includes two or more placement areas for placing a card.
  • the card game can refer to a game of any type, the type of the card game is not specifically limited in the present application.
  • the live image can be an image captured in real time and transmitted to the node by an image capture device. Meanwhile, the live image is obtained by capturing an image of a tabletop for proceeding a tabletop card game, which may involve objects such as a card, a hand and the like. By analyzing objects involved in a live image, whether the current game procedure is reasonable or not can be determined. For example, by sequentially analyzing a plurality of live images, a position of each dealt card on a game tabletop can be determined, and further whether the current card dealing order is correct or not can be determined.
  • the game tabletop can be divided into a plurality of areas according to functions, which may include two or more placement areas for placing a card.
  • the at least one card refers to a card object involved in the live image.
  • the card detection refers to a process of performing a detection on an image to be processed and obtaining card information of a card object involved in the image.
  • the image to be processed in stepl02 can refer to the live image.
  • the card information includes position information of a card, which can indicate a position of the card in the live image.
  • the field of view area covered by the live image is the same as the area of the game tabletop for proceeding the current card game, and the position information can indicate the position of the card on the game tabletop.
  • an object detection model can be used to perform the card detection.
  • the object detection model can be a detection model built based on a RCNN (Region Convolutional Neural Network), a FAST-RCNN (Fast Region Convolutional Neural Network) or a FASTER-RCNN (Faster Region Convolutional Neural Network).
  • RCNN Regular Convolutional Neural Network
  • FAST-RCNN Fast Region Convolutional Neural Network
  • FASTER-RCNN Faster Region Convolutional Neural Network
  • supervised training can be performed on the object detection model with a plurality of training samples labeled with position information of boundary boxes of cards until the model converges.
  • the object detection model can be used to perform a card detection on a live image to obtain a boundary box of a card involved in the image and position information of the boundary box, and accordingly, position information of a card (that is, the card information) can be obtained from the position information of the boundary box for the card.
  • position information of a card that is, the card information
  • boundary boxes of the different cards may be numbered in a detection result of the image. It should be noted that the card information obtained from the card detection can be stored for using in other steps in this application.
  • the target card includes a card that is excluded from recorded cards of the current card game.
  • the recorded cards include each card that has been detected in the current card game. That is, the target card is a newly detected card from the live image, i.e. a current newly dealt card.
  • a manager of the current game will deal cards to game participants.
  • An image capture device deployed on site can capture the process of the manager dealing cards, and store card information in a cache when the manager has dealt a card. In this way, by comparing the card information detected from the current image with the card information in the cache, whether the card detected from the current image involves a newly dealt card can be determined.
  • the target card can be determined by comparing the card information obtained from the card detection on the live image with recorded card information.
  • the image capture device can capture images in real time when the current card game proceeding, and then card information detected from the captured images can be cached in a device memory or multi-level cache, thereby obtaining recorded card information of the current card game.
  • step 1042 can be executed first to obtain pre-stored recorded card information. Then step 1044 can be executed to compare the recorded card information with the card information of the at least one card obtained in step 102 to determine a card that is excluded from the recorded cards in the live image as the target card.
  • the card information may include position information of a card.
  • the at least one card can be determined as a target card in response to that position information of the at least one card is excluded from the recorded card position information.
  • the card information may include a unique ID (Identity Document) assigned to a detected card during the card detection and tracking.
  • the at least one card can be determined as the target card in response to that the ID of the at least one card is excluded from recorded card IDs.
  • the expected placement area can refer to an area where the target card is expected to be placed on the game tabletop in the current card game.
  • the expected placement area may be determined according to a game rule of the card game.
  • the expected placement area for a card may be associated with the number of dealt cards and card face information of the dealt cards.
  • the predetermined threshold is a value set according to business requirements. For example, in some games, the predetermined threshold is 4.
  • the card sequential configuration information includes: a correspondence between placement areas and serial positions of cards dealt in the current card game. In a case that the number of recorded cards is not greater than the predetermined threshold, the expected placement area can be determined according to the correspondence and a serial position of the target card.
  • FIG. 2 is a schematic flowchart illustrating a method of determining an expected placement area according to this application.
  • the method illustrated in FIG. 2 indicates a detailed description for step 106.
  • step 11 to step 12 can be executed for step 106.
  • step 11 in response to that the number of recorded cards determined based on the recorded card information does not exceed a predetermined threshold, a serial position of the target card is determined based on the number of recorded cards.
  • the recorded card information can be obtained first, and then the number of recorded cards can be obtained according to the recorded card information. In a case that the number of recorded cards does not exceed the predetermined threshold, the serial position of the target card in the dealt cards can be determined by adding 1 to the number of recorded cards.
  • the expected placement area corresponding to the serial position of the target card is determined from the two or more placement areas.
  • the correspondence may include an association relationship between various possible serial positions and corresponding expected placement areas.
  • a game tabletop in a card game includes two card placement areas A and B.
  • cards are sequentially dealt to the two card placement areas in a card dealing order of A-B-A-B, i.e., when a card being dealt in an order of 1st or 3rd, the corresponding expected placement area indicates A, and when a card being dealt in an order of 2nd or 4th, the corresponding expected placement area indicates B.
  • the corresponding expected placement area for the target card can be obtained by querying the correspondence based on the serial position of the target card obtained in step 11.
  • the newly dealt target card is the 4-th card and the expected placement area for the target card can be determined according to the correspondence as the placement area B.
  • the card sequential configuration information includes an association relationship between recorded card face values and a placement area for the target card.
  • the expected placement area can be determined according to the association relationship and a serial position of the target card.
  • FIG. 3 is a schematic flowchart illustrating a method of determining an expected placement area according to this application.
  • the method illustrated in FIG. 3 is a detailed description for step 106.
  • step 21 and step 22 can be executed to implement the above-mentioned step 106.
  • step 21 in response to that the number of recorded cards determined based on the recorded card information is greater than a predetermined threshold, recorded card face values included in the recorded card information are obtained.
  • the recorded card information includes face value information of recorded cards.
  • the face value information of a card can be obtained from a face value detection on card objects involved in an image which is captured during the game.
  • the face value information of a card can be obtained from a face value detection on the card with a face value detection model which is generated based on a neural network through pre-supervised training. Then, the face value information of the card can be cached in the recorded card information.
  • the recorded card information can be obtained first, and the number of recorded cards can be obtained from the recorded card information. In a case that the number of recorded cards is greater than the predetermined threshold, face value information of recorded cards can be further obtained from the recorded card information.
  • Face value information can indicate a face value of a card.
  • the expected placement area associated with the recorded card face values is determined from the two or more placement areas.
  • the association relationship includes a relationship between recorded card face values and an expected placement area. For example, there are two card placement areas A and B in a game tabletop of a card game, and face values of 4 recorded cards are 4, 5, 6, and 7 respectively. This situation corresponds to an expected placement area A, that is, the expected placement area for the target card is placement area A.
  • the expected placement area for the target card can be obtained by querying the association relationship based on the recorded card face values obtained in step 21.
  • step 1082 to step 1086 can be executed for step 108.
  • an actual placement area of the target card in the game tabletop is determined according to position information of the target card.
  • the actual placement area can be determined through a hot zone mapping method, which can simplify the neural network structure, reduce the amount of computation, and help improving the detection efficiency.
  • a predetermined hot zone map can be stored in the node device, and the hot zone map is generated based on a live image captured for a game tabletop.
  • the field of view area covered by the hot zone map is the same as the field of view area covered by the live image, which both include the game tabletop.
  • the hot zone map can represent area division information of the game tabletop, and the area division information includes position information of each of a plurality of areas divided from the game tabletop.
  • the plurality of areas includes two or more placement areas.
  • position information of the target card can be obtained from the card information obtained in step 102, and then the actual placement area of the target card can be determined according to the position information and the area division information.
  • step 1084 whether the actual placement area and the expected placement area are the same placement area is determined.
  • a placement area may be assigned with a unique identifier in advance. For example, a certain placement area may be marked with a unique pixel value or a unique ID in a hot zone map. By determining whether the identifier of the actual placement area is the same as that of the expected placement area, whether the actual placement area and the expected placement area are the same placement area can be determined.
  • step 1086 in response to that the actual placement area and the expected placement area are the same placement area, it is determined that the target card is placed in the expected placement area, and the game can be continued; and in response to that the actual placement and the expected placement area are different placement areas, it is determined that the target card is not placed in the expected placement area, and the current card game can be updated to a halt state.
  • step 102 to step 106 the newly dealt 4-th card involved in the live image is determined as the target card, and an identifier of the expected placement area for the target card indicates B. While an identifier of the actual placement area of the target card is detected as A according to step 108. In this case, the target card is not placed in the expected placement area can be determined, and the current card game can be updated to the halt state.
  • a target card i.e., a newly dealt card
  • an expected placement area for the target card is determined.
  • the current card game can be updated to a halt state.
  • a card that remains unchanged in position and/or not covering by a card operator in a plurality of consecutive images can be determined as a target card.
  • a card remains unchanged in position or not covering by a card operator in a plurality of consecutive images, it may indicate that the newly dealt card is already in a stable position.
  • a placement area of the target card is an area where the target card is located on the game tabletop in the end, such that the placement area of the target card can be determined accurately, the accuracy of card sorting detection and switching game states can be improved.
  • FIG. 4 is a schematic flowchart illustrating a method of determining a target card according to the present application.
  • the method illustrated in FIG. 4 is a detailed description for step 104.
  • step 402 to step 406 can be executed for step 104.
  • step 402 in response to that position information of the at least one card is excluded from recorded card position information, the at least one card is determined as a candidate card.
  • the recorded card information may include recorded card position information, thus the recorded card position information can be obtained from the recorded card information.
  • the recorded card position information can be compared with position information of the at least one card obtained in step 102.
  • position information of a certain card is excluded from the recorded card position information, it represents that the card may be a newly dealt card detected at a new position on the game tabletop, that is, a candidate card, or the card may be a card that is being dealt and is still moving. At this time, it is necessary to further determine whether the card is in a stable state to determine whether the card is a newly dealt card.
  • card information and card operator information are obtained from the subsequent image by performing a detection of card and card operator on the subsequent image.
  • the card information can include a boundary box indicating position information of a card; the card operator information can include a boundary box indicating position information of a card operator.
  • the card operator may be any object for dealing or moving a card.
  • the card operator can be a card distribution stick, a hand, etc.
  • the subsequent image refers to an image captured later than the live image in time sequence.
  • an object detection model can be used for performing a detection of card and card operator on the subsequent images captured later than the live image.
  • the object detection model can be a detection model built based on RCNN, FAST-RCNN or FASTER-RCNN.
  • the network structure of the object detection model is not specifically limited in the present application.
  • supervised training can be performed on the object detection model with a plurality of training samples labeled with position information of boundary boxes of cards and card operators (for example, a hand) until the model converges.
  • the object detection model can be used for performing a detection of card and card operator on a live image to obtain a boundary box for a card involved in the image and/or a boundary box for a card operator involved in the image, position information of the boundary box for the card and/or position information of the boundary box for the card operator.
  • Position information of the detected card can be determined from the position information of the boundary box for the card.
  • position information of the detected card operator can be determined from the position information of the boundary box for the card operator. It should be noted that in the present application, the information obtained from the card and card operator detection can be stored for using in subsequent steps.
  • the candidate card is determined as the target card in response to that a boundary box of the candidate card does not overlap with a boundary box of the card operator in each of the plurality of consecutive subsequent images based on the respective card information and card operator information, and/or, determining that a position of the candidate card indicating by the boundary box of the candidate card is not changed in the plurality of consecutive subsequent images.
  • Step 406 may be implemented in at least three manners. Firstly, it may be implemented as step 4061, that is, in response to that, in each of the plurality of consecutive subsequent images, the boundary box of the candidate card does not overlap with the boundary box of the card operator based on the card information and card operator information, the candidate card is determined as the target card.
  • step 4061 as the card information and the card operator information for the plurality of consecutive subsequent images has been acquired by performing step 404, for each of the plurality of subsequent images, whether a boundary box of the candidate card overlaps with a boundary box of the card operator in the subsequent image can be determined based on the card information and card operator information obtained from the subsequent image. In a case that the boundary box of the candidate card overlaps with the boundary box of the card operator, it can represent that the candidate card is still moving.
  • the candidate card In a case that, if at least N subsequent images in the plurality of consecutive subsequent images are determined as that the boundary box of the candidate card does not overlap with the boundary box of the card operator, it can represent that an operation on the candidate card is completed and thus the candidate card is in a stable state can be determined as the target card.
  • the N is a predetermined value.
  • the placement area of the target card is the area where the target card is finally located on the game tabletop, such that the placement area of the target card can be accurately determined, and thus further improving the accuracy of the card sorting detection and the switching between game states.
  • step 406 may be implemented as step 4062, that is, in response to that the position of the candidate card remains unchanged in the plurality of consecutive subsequent images based on the card information, the candidate card is determined as the target card.
  • step 4062 as the card information for the plurality of consecutive subsequent images of the live image has been acquired by performing step 404, for each of the plurality of subsequent images, whether a position of a boundary box for the candidate card involved in the subsequent image changes can be determined based on the card information obtained from the subsequent image and a next image thereof. In a case that the position of the boundary box for the candidate card changes, it can represent that the candidate card is still moving. In a case that the position of the boundary box for the candidate card does not change in any one of the plurality of consecutive subsequent images, it can represent that an operation on the candidate card is completed and thus the candidate card is in a stable state can be determined as the target card.
  • the placement area of the target card is the area where the target card is finally located on the game tabletop, such that the placement area of the target card can be accurately determined, and thus further improving the accuracy of the card sorting detection and the switching between game states.
  • step 406 may be implemented as step 4063, that is, in response to determining that the boundary box of the candidate card does not overlap with the boundary box of the card operator based on the card information and the card operator information in the plurality of consecutive subsequent images, and determining that the position of the candidate card is not changed in the plurality of consecutive subsequent images, the candidate card is determined as the target card.
  • step 4061 and step 4062 can be executed at the same time.
  • the boundary box of the candidate card does not overlap with the boundary box of the card operator in the plurality of consecutive subsequent images, and the position of the candidate card represented by the boundary box of the candidate card is not changed in the plurality of consecutive subsequent images, it can represent that an operation on the candidate card is completed, and thus the candidate card is in a stable state can be determined as the target card.
  • the placement area of the target card can be further accurately determined, which can improve the accuracy of card sorting detection and further improve the accuracy of switching between game states.
  • card information of the target card can be stored for updating the recorded card information, which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, where the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • the face refers to a side on which information such as a face value of a card etc. can be indicated.
  • a card usually includes two sides, one of which is the back side, and the other is the face side.
  • the recorded card information can include card information of each card in the stable state, thereby improving the reliability of the cached information.
  • an attribute detection can be performed on the target card to obtain attribute information.
  • the attribute detection can be set according to business requirements. For example, a face value detection can be performed on the target card to obtain a face value of the target card.
  • a face of a card is in a hidden state during a card dealing process and is changed to be visible in a specific game phase. In this situation, a face state of the target card may be determined by performing a face state detection on the target card.
  • a trained attribute information detection model which is generated based on a neural network can be used for performing the attribute information detection.
  • the process for training the attribute information detection model will not be described in detail herein.
  • the attribute information and/or the position information indicated by the boundary box of the target card can be cached in the recorded card information as the card information of the target card.
  • the recorded card information can include card information of each card in a stable state, thus improving the reliability of the cached information.
  • a face state of a card in the card dealing phase depends on a type of the game. According to the present application, for the card dealing phase of various card games, a card face state detection can be performed, and a state of the game can be switched when the detection result indicates an abnormal.
  • FIG. 5 is a schematic flowchart illustrating a method of switching game states according to the present application. As shown in FIG. 5, the method can include step 502 to step 504.
  • a face state of the target card is obtained from a face state detection on the target card.
  • a face state of the target card can be obtained by a face state detection model which is pre -trained based on a neural network.
  • the model training process is not described in detail here.
  • step 504 in response to that the number of dealt cards in the current card game is less than or equal to a predetermined threshold and the face state of the target card does not match a first face state, the current card game is updated to the halt state.
  • the dealt cards include the recorded cards and the target card, and the first face state indicates an expected face state for a card in a dealing phase, which is determined from game type configuration information of the current card game.
  • the game type configuration information can indicate a game type of the current card game. Before a game starts, a game manager can configure a game type of the game by, such as selecting a game type, etc. When the game configuration is completed, the game type configuration information can be obtained and stored in a node device.
  • the face state of the target card obtained in step 502 is consistent with the first face state, it represents that the face state of the target card is correct. While in a case that the face state of the target card obtained in step 502 does not match the first face state, it represents that the face state of the target card is abnormal and the current card game should be updated to the halt state. In this way, for the card dealing phase of various card games, a card face state detection can be performed, and a state of the game can be switched when the detection result indicates an abnormal.
  • types of card games include a first type and a second type, where for a game of the first type, an expected face state for a card in the card dealing phase indicates a hidden state, and for a game of the second type, an expected face state for a card in the card dealing phase indicates a visible state.
  • the current game is determined as a game of the first type according to the game type configuration information, and the number of dealt cards is less than or equal to the predetermined threshold, in a case that the face state of the target card indicates the visible state, it represents that the game is abnormal and should be updated to the halt state.
  • a card face state detection can be performed, and a state of the game can be switched when the detection result indicates an abnormal.
  • the target game operation can be set according to business requirements.
  • the target game operation may include a card viewing operation.
  • two or more placement areas in a game tabletop includes a first placement area to place a card for an operator of a target game operation and a second placement area to place a card for a non-operator.
  • FIG. 6 is a schematic flowchart illustrating a method of switching game states according to the present application. As shown in FIG. 6, the method may include step 602 to step 604.
  • first card information of cards within the first placement area and second card information of cards within the second placement area are determined based on the card information obtained from the card detection performed on the live image.
  • an actual placement area of each of the at least one card can be determined according to position information of each of the at least one card obtained in step 102. And then cards located within the first placement area and the second placement area in the game tabletop are filtered out based on the determined actual placement areas. Afterwards, according to card information of cards involved in the live image, the first card information of cards within the first placement area and the second card information of cards within the second placement area can be obtained.
  • step 604 in response to that the first card information and the second card information do not meet a card information condition for the target game operation, the current card game is updated to the halt state.
  • the card information condition includes expected card information for a card within the first placement area or the second placement area, which can be set according to the target game operation in the card game. In a case that the first card information and the second placement area detected in step 602 meets the card information condition, it can represent that the target game operation is in compliance. In a case that the first card information and the second placement area detected in step 602 does not meet the card information condition, it can represent that the target game operation is not compliant, and the current card game should be updated to the halt state. In this way, the relevant detection on the target game operation is realized.
  • the card information condition for the target game operation includes: the number of cards within the first placement area is equal to a first number and the number of cards within the second placement area is equal to a second number.
  • step 602 based on card position information included in card information obtained from a card detection performed on a first live image, the number of cards within the first placement area is determined as a first card number and the number of cards within the second placement area is determined as a second card number.
  • the first live image may be any live image collected for the current card game.
  • an actual placement area of each card can be determined. And then based on the determined actual placement areas, the respective number of cards located within the first placement area and the second placement area in the game tabletop is calculated, thereby obtaining the first card number and the second card number.
  • step 31 can be executed to, in a case of determining that the first card number equals to the first number and the second card number equals to the second number, based on card position information included in card information obtained from a card detection performed on a second live image, determine the number of cards within the first placement area as a new first card number and the number of cards within the second placement area as a new second card number.
  • the second live image is captured later than the first live image in time sequence.
  • the first number and the second number are set according to business requirements.
  • the game can be determined as currently in a phase for performing the target game operation.
  • an actual placement area of each card can be determined.
  • the respective number of cards located within the first placement area and the second placement area in the game tabletop is calculated, thereby obtaining the new first card number and the new second card number.
  • step 32 whether the new first card number equals to the first number and the new second card number equals to the second number are determined. In a case that the new first card number equals to the first number while the new second card number does not equal to the second number, it can represent that the first card information and the second card information do not meet the card information condition, that is, the current game is not compliant. [146] At step 33, in response to that the new first card number also equals to the first number while the new second card number is less than the second number, the current card game is updated to the halt state. Thus, the state of the game can be switched when the current game is not compliant.
  • the card information further includes a face state of a card; the face state includes a visible state or a hidden state.
  • the card information condition for the target game operation includes: the number of cards within the first placement area equals to the first number, and the face state of cards within the second placement area includes the hidden state.
  • step 602 based on card position information obtained from a card detection performed on a first live image, the number of cards within the first placement area is determined as a first card number and the number of cards within the second placement area is determined as a second card number.
  • the number of cards within the first placement area is determined as a first card number and the number of cards within the second placement area is determined as a second card number.
  • step 41 can be executed to, in a case of determining that the first card number equals to the first number and the second card number equals to the second number, based on position information and face states of cards obtained from a card detection performed on a second live image, determine the number of cards within the first placement area as a new first card number and face states of cards within the second placement area.
  • the second live image is captured later than the first live image in time sequence.
  • the game can be determined as currently in a phase for performing the target game operation. Then, the card position information acquired from the card detection on the second live image in step 102 can be obtained, meanwhile, the face state of each of detected cards can be acquired by performing a face state detection on the detected cards with a trained face state detection model. Referring to the method shown in step 1082, an actual placement area of each card can be determined, and then cards within the first placement area and the second placement area on the game tabletop are separated. Afterwards, the number of cards within the first placement area is counted to obtain a new first card number and the face states of cards within the second placement area are determined from the face states of cards.
  • step 42 whether the new first card number equals to the first number and the face states of cards within the second placement area includes the visible state are determined.
  • the new first card number equals to the first number and the face states of cards within the second placement area includes the visible state, it can represent that the first card information and the second card information do not meet the card information condition for the target game operation, that is, the current game is not compliant.
  • step 43 in response to that the new first card number also equals to the first number and the face states of cards within the second placement area includes the visible state, the current card game is updated to the halt state. In this way, the game state can be switched when the current game is not compliant.
  • the game tabletop further includes a predetermined operating area for the target game operation.
  • the card information condition for the target game operation includes: the numbers of cards within the first placement area, the second placement area and the predetermined operating area match respective target card numbers.
  • the respective target card number indicates an expected number of cards placed in the first placement area, the second placement area or the predetermined operating area while performing the target game operation.
  • step 602 based on card position information obtained from the card detection performed on the live image, actual numbers of cards within the first placement area, the second placement area and the predetermined operating area are determined respectively.
  • an actual placement area of each card can be determined based on the card position information obtained from the card detection on the first live image in step 102. And then, based on the determined actual placement areas, actual numbers of cards located within the first placement area, the second placement area and the predetermined operating area on the game tabletop are counted.
  • step 51 can be executed to respectively determine whether the actual number of cards within the first placement area match the target number of cards for the first placement area, whether the actual number of cards within the second placement area match the target number of cards for the second placement area, and the actual number of cards within the predetermined operating area match the target number of cards for the predetermined operating area.
  • any item of the above indicates not matching, it can represent that the first card information and the second card information do not meet the card information condition for the target game operation, that is, the current game is not compliant.
  • step 52 in response to that, for at least one of the first placement area, the second placement area and the predetermined operating area, the actual number of cards within the area does not match the corresponding target number of cards, the current card game is updated to the halt state. In this way, the state of the game can be switched when the current game is not compliant.
  • a second player is not allowed to view a card while a first player is viewing a card.
  • a target number of cards within the first placement area for the first player is 0, a target number of cards within the second placement area for the second player (a non-operator) is 2, and a target number of cards within a card viewing area (a predetermined operating area) is 2.
  • the recorded card face states when the number of recorded cards is greater than or equal to the predetermined threshold, should all be a second face state. In a case that any recorded card face state is not the second face state, it represents that the game is abnormal.
  • the second face state indicates an expected face state of a recorded card when dealing the target card, which can be determined according to the game type configuration information of the current card game. For example, in a game of a first type, when the number of recorded cards is greater than or equal to the predetermined threshold, the recorded card face states should all be the visible state. In a case that any recorded card face state is the hidden state, it represents that the game is abnormal.
  • FIG. 7 is a schematic flowchart illustrating a method of switching game states according to the present application. As shown in FIG. 7, the method can include step 702 to step 704.
  • step 702 when the at least one card is determined as the target card and the number of recorded cards is greater than or equal to the predetermined threshold, the recorded card face states included in the recorded card information are obtained.
  • the recorded card information further includes recorded card face states.
  • the recorded card face states can be obtained from the recorded card information.
  • step 704 in response to that recorded card face states include a face state other than a second face state, the current card game is updated to the halt state.
  • a card game is taken as an example to illustrate the embodiments in the following.
  • a first player Pl, a second player P2 and a game manager for dealing a card are involved in the card game.
  • the card game may include a card dealing phase, a card viewing phase for players Pl and P2, a 5-th card phase and a 6-th card phase.
  • players Pl and P2 are dealt with 2 cards respectively in an order of P1-P2- P1-P2, that is a total of 4 cards are dealt, where all the 4 cards are face down.
  • the game enters the card viewing phase for player P2 in which player P2 can view the 2 cards dealt to player P2.
  • the game enters the 5-th card phase in which whether a 5-th card is to be further dealt and a target party for receiving the 5-th card when dealing the 5-th card can be determined based on face values of the 4 dealt cards.
  • the game enters the 6-th card phase in which whether a 6-th card is to be further dealt and a target party for receiving the 6-th card when dealing the 6-th card can be determined based on face values of the 5 dealt cards.
  • a game result can be output, that is, the game ends normally.
  • FIG. 8 is a schematic diagram illustrating a game scene according to the present application.
  • the game scene as shown in FIG. 8 can include a game tabletop 80 used for a card game, cameras 811-813 disposed respectively right above the game tabletop 80, at the upper left, and the upper right of the game tabletop 80. These cameras can capture a tabletop image of the game tabletop and transmit the tabletop image to a node device connected to the cameras in real time (hereinafter referred to as the node).
  • the node device can be used as an edge computing device, corresponding to a game tabletop in a one-to-one correspondence and processing a live image corresponding to each game tabletop.
  • the node can maintain game states and game phases for the current tabletop game according to a received tabletop image.
  • the node can maintain a hot zone map including each area in the game tabletop. Different areas in the hot zone map can be represented by different colors.
  • the node can deploy a pre -trained hand-card object detection network (hereinafter referred to as a first network), a face value and face state recognition network (hereinafter referred to as a second network), and the like.
  • the game tabletop 80 can include at least a first placement area 83, a second placement area 84 and an operating area for viewing a card 86.
  • the game scene further involves a game manager 82 who manages the progress of the tabletop game, and one or more players 85.
  • the node After receiving a live image, for each hand and each card involved in the image, the node can obtain a boundary box and a card ID corresponding to the hand or the card with the first network. Afterwards, on the one hand, the node can perform a detection on an area image enclosed by the boundary box corresponding to each card to identify a face state and a face value of the card with a second network. On the other hand, the node can determine an actual placement area of each card in the game tabletop based on a stored heat map and the position information indicated by the boundary box corresponding to each card.
  • step 104 the manner shown in step 104 can be used to determine a target card newly detected from the live image. Since the target card is in a stable position and does not change any more, the card information of the determined target card is accurate.
  • a card ID, an actual placement area, a face state, a face value and other information corresponding to the target card can be stored as card information of the target card in a cache of the node device to update recorded card information.
  • information such as a card ID, an actual placement area, a face state, a face value and the like detected from the area can be used to update the recorded card information, such that the recorded card information stored in the cache can be kept reliable and consistent with the current game process.
  • the node can determine a serial position of the target card according to the recorded card information, and determine an expected placement area for the target card according to stored card sequential configuration information.
  • the node can determine that an error occurs in the card dealing order, and update the current card game to a halt state.
  • the target card when 3 cards are recorded, the target card should be dealt to the second placement area.
  • the node can switch the current game to the halt state and give out an alarm for suspending the game in time, which is beneficial to avoid incorrect game results due to the wrong card dealing order, and thus improving the fairness of the card game.
  • the game can be continued.
  • the game enters the card viewing phase for players Pl and P2, in which players Pl and P2 need to view a card separately.
  • the node can determine an actual number of cards within the first placement area, the second placement area and the operating area for viewing a card according to position information of each card involved in the live image. In a case that the actual numbers of cards within the first placement area and the second placement area are both 0, and the actual number of cards within the operating area for viewing a card is 4, it can represent that players Pl and P2 are viewing a card at the same time, and then the current game can be switched to the halt state and an alarm can be given out for suspending the game in time.
  • the game enters the 5-th card phase.
  • the node can determine whether the four dealt cards include a card with a face of a hidden state based on the recorded card information stored in the cache. In a case that the determination result is yes, it can be determined that the game is abnormal, and then the current game can be switched to the halt state and an alarm is given out to suspend the game in time.
  • the node can determine an expected placement area for dealing a 5-th card according to face values of the 4 recorded cards in this phase. In a case of determining that the 5-th card is located in an area other than the expected placement area, it can be determined that the 5-th card is dealt to a wrong position, and then the current game can be switched to the halt state and an alarm can be given out to suspend the game in time. [192] Afterwards, the game enters the 6-th card phase.
  • the processing logic for this phase can refer to that for the 5-th card phase, which will not be detailed here.
  • the game progress including the card dealing phase, the card viewing phase for players Pl and P2, the 5-th card phase and the 6-th card phase can be monitored.
  • the game can be switched to the halt state, so that the game state can be switched in time when the game is abnormal, which is beneficial to avoid incorrect game results due to the abnormality in game, and thus improving the fairness of the card game
  • the present application also provides an apparatus for switching states of a card game.
  • the apparatus 90 can include: a card detecting module 91, configured to obtain card information including position information of at least one card involved in a live image of a current card game from a card detection on the live image, wherein the live image is acquired from a game tabletop for proceeding the current card game, and the game tabletop includes two or more placement areas for placing a card; a target card determining module 92, configured to determine, in response to that the at least one card is excluded from one or more recorded cards of the current card game, that the at least one card is a target card, wherein the one or more recorded cards include each card detected in the current card game; an expected placement area determining module 93, configured to determine, according to pre-acquired recorded card information and card sequential configuration information of the current card game, an expected placement area for the target card from the two or more placement areas, wherein the card sequential configuration information is used to
  • the apparatus further includes: a first detecting module for a face state, configured to obtain a face state of the target card from a face state detection on the target card; a second updating module, configured to update, in response to that a number of dealt cards in the current card game is less than or equal to a predetermined threshold and the face state of the target card does not match a first face state, the current card game to the halt state; wherein the dealt cards include the one or more recorded cards and the target card, the first face state indicates an expected face state for a card in a dealing phase, which is determined from game type configuration information of the current card game.
  • the two or more placement areas include a first placement area to place a card for an operator of a target game operation and a second placement area to place a card for a nonoperator;
  • the card detecting module 91 is further configured to obtain, based on the card detection performed on the live image, first card information of cards within the first placement area and second card information of cards within the second placement area;
  • the apparatus further including: a third updating module, configured to update, in response to that the first card information and the second card information do not meet a card information condition for the target game operation, the current card game to the halt state when the game type configuration information of the current card game indicates the current card game is of a first type.
  • the first card information includes a number of cards within the first placement area obtained from the card detection on a first live image as a first card number, and a number of cards within the first placement area obtained from the card detection on a second live image captured later than the first live image in time sequence as a new first card number;
  • the second card information includes a number of cards within the second placement area obtained from the card detection on the first live image as a second card number, and a number of cards within the second placement area obtained from the card detection on the second live image as a new second card number;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes: the first card number equals to a first number while the second card number equals to a second number; and the new first card number also equals to the first number while the new second card number is less than the second number.
  • the first card information includes a number of cards within the first placement area obtained from the card detection on a first live image as a first card number, and a number of cards within the first placement area obtained from the card detection on a second live image captured later than the first live image in time sequence as a new first card number;
  • the second card information includes a number of cards within the second placement area obtained from the card detection on the first live image as a second card number, and face states of cards within the second placement area obtained from the card detection on the second live image;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes: the first card number equals to a first number while the second card number equals to a second number; and the new first card number also equals to the first number while the face states of cards within the second placement area include a visible state.
  • the game tabletop further including a predetermined operating area for the target game operation;
  • the first card information includes an actual number of cards within the first placement area;
  • the second card information includes an actual number of cards within the second placement area;
  • the card detecting module 91 further configured to obtain, based on the card detection performed on the live image, an actual number of cards within the predetermined operating area;
  • the first card information and the second card information do not meet the card information condition for the target game operation, includes at least one of: the actual number of cards within the first placement area does not match a target number of cards for the first placement area;
  • the actual number of cards within the second placement area does not match a target number of cards for the second placement area; or the actual number of cards within the predetermined operating area does not match a target number of cards for the predetermined operating area.
  • the card sequential configuration information includes a correspondence between placement areas and serial positions of cards dealt in the current card game;
  • the expected placement area determining module 93 is specifically configured to determine, in response to that a number of recorded cards determined based on the recorded card information does not exceed a predetermined threshold, a serial position of the target card based on the number of recorded cards; and determine, based on the correspondence included in the card sequential configuration information, the expected placement area corresponding to the serial position of the target card from the two or more placement areas.
  • the recorded card information including recorded card face values
  • the card sequential configuration information includes an association relationship between recorded card face values and a placement area for the target card
  • the expected placement area determining module 93 is specifically configured to obtain, in response to that a number of recorded cards determined based on the recorded card information is greater than a predetermined threshold, the recorded card face values included in the recorded card information; and determine, based on the association relationship included in the card sequential configuration information, the expected placement area associated with the recorded card face values from the two or more placement areas.
  • the recorded card information further including recorded card face states
  • the apparatus 90 further includes: a second detecting module for a face state, configured to obtain, when determining that the at least one card is the target card and a number of recorded cards determined based on the recorded card information is greater than or equal to a predetermined threshold, the recorded card face states included in the recorded card information; update, in response to that the recorded card face states include a face state other than a second face state while the second face state is expected for a recorded card when dealing the target card, the current card game to the halt state.
  • the target card determining module 92 is specially configured to determine, in response to that position information of the at least one card is excluded from the recorded card position information, that the at least one card is a candidate card; for each of a plurality of consecutive subsequent images of the live image, obtain card information and card operator information from the subsequent image by performing a detection of card and card operator on the subsequent image, wherein the card information includes a boundary box indicating position information of a card; the card operator information includes a boundary box indicating position information of a card operator; and determine the candidate card as the target card in response to at least one of: determining, based on the respective card information and card operator information, that a boundary box of the candidate card does not overlap with a boundary box of the card operator in each of the plurality of consecutive subsequent images; or, a position of the candidate card indicating by the boundary box of the candidate card is not changed in the plurality of consecutive subsequent images.
  • the apparatus 90 further includes: a cache updating module, configure to update the recorded card information by storing card information of the target card which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, wherein the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • a cache updating module configure to update the recorded card information by storing card information of the target card which includes at least one of: position information indicated by a boundary box of the target card; or attribute information of the target card, wherein the attribute information includes at least one of a face value or a face state, and the face state includes a visible state or a hidden state.
  • the examples of the apparatus for switching states of a card game according to the present application can be used in an electronic device.
  • the present application discloses an electronic device, which can include a processor; a memory configured to store executable instructions of the processor.
  • the processor is configured to invoke the executable instructions stored in the memory to implement the method of switching states of a card game as shown in any of the examples.
  • FIG. 10 is a block diagram of hardware of an electronic device according to the present application.
  • the electronic device can include a processor for executing instructions, a network interface for network connection, a memory for storing operating data for the processor, and a non- transitory memory for storing instructions corresponding to the apparatus for switching states of a card game.
  • the examples of the apparatus can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-transitory memory into the memory through the processor of the electronic device where it is located. From a hardware perspective, in addition to the processor, memory, network interface, and non-transitory memory shown in FIG. 10, the electronic device in which the device is located in the example usually includes other hardware based on the actual functions of the electronic device, which will not be elaborated here.
  • the present application provides a non-transitory computer-readable storage medium, the storage medium stores a computer program, and the computer program is configured to perform any method of switching states of a card game according to any of the above examples.
  • one or more examples of the present application can be provided as a method, a system, or a computer program product. Therefore, one or more examples of the present application can adopt the form of a complete hardware example, a complete software example, or an example combining software and hardware. Moreover, one or more examples of the present application can be in a form of a computer program product having one or more computer-usable storage media (which can include but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media which can include but not limited to disk storage, CD-ROM, optical storage, etc.
  • the examples of the subject and functional operations described in the present application can be implemented in the following: digital electronic circuits, tangible computer software or firmware, computer hardware that can include the structures disclosed in the present application and their structural equivalents, or one or more of them.
  • the examples of the subject matter described in the present application can be implemented as one or more computer programs, that is, one or more units in the computer program instructions that are encoded in the tangible non-transitory program carrier to be executed by the data processing device or to control the operation of the data processing device.
  • the program instructions can be encoded in artificially generated propagated signals, such as machine-generated electrical, optical, or electromagnetic signals, which are generated to encode information and transmit it to a suitable receiver device to be performed by the data processing device.
  • the computer storage medium can be a machine -readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
  • the processing and logic flows described in the present application can be executed by one or more programmable computers executing one or more computer programs, to perform corresponding functions by operating according to input data and generating output.
  • the processing and logic flow can also be executed by a dedicated logic circuit, such as FPGA (Field Programmable Gate Array) or ASIC (Application Specific Integrated Circuit), and the device can also be implemented as a dedicated logic circuit.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • a computer suitable for executing a computer program can include, for example, a general-purpose and/or special-purpose microprocessor, or any other type of central processing unit.
  • the central processing unit will receive instructions and data from a read-only memory and/or random access memory.
  • the basic components of a computer can include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data.
  • the computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto -optical disks, or optical disks, etc., or the computer will be operatively coupled with this mass storage device to receive data or send data to it, or both.
  • the computer does not have to have such equipment.
  • the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a universal serial bus (USB ) flash drives are portable storage devices, to name a few.
  • PDA personal digital assistant
  • GPS global positioning system
  • USB universal serial bus
  • Computer readable media suitable for storing computer program instructions and data can include all forms of non-transitory memory, media and memory devices, such as semiconductor memory devices (such as EPROMs, EEPROMs and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, CD ROMs and DVD-ROM disks.
  • semiconductor memory devices such as EPROMs, EEPROMs and flash memory devices
  • magnetic disks such as internal hard disks or removable disks
  • magneto-optical disks CD ROMs and DVD-ROM disks.
  • the processor and the memory can be supplemented by or incorporated into a dedicated logic circuit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

La présente demande concerne un procédé, un appareil, un dispositif et un support de stockage pour commuter des états d'un jeu de cartes. Le procédé consiste à : obtenir des informations de carte comprenant des informations de position d'au moins une carte impliquée dans une image en direct acquise à partir d'un plateau de jeu d'un jeu de cartes en cours ; déterminer, si l'au moins une carte est exclue d'une ou de plusieurs cartes enregistrées du jeu de cartes en cours, que l'au moins une carte est une carte cible ; déterminer, selon des informations de cartes enregistrées pré-acquises et des informations de configuration séquentielle de carte du jeu de cartes en cours, une zone de placement attendue pour la carte cible à partir de deux zones de placement ou plus du plateau de jeu ; et mettre à jour, si des informations de position de la carte cible indiquent que la carte cible n'est pas placée dans la zone de placement attendue, le jeu de cartes en cours à un état d'arrêt.
PCT/IB2021/058819 2021-09-27 2021-09-28 Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de cartes WO2023047171A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180002743.0A CN113785326A (zh) 2021-09-27 2021-09-28 纸牌游戏的状态切换方法、装置、设备和存储介质
AU2021240276A AU2021240276A1 (en) 2021-09-27 2021-09-28 Methods, apparatuses, devices and storage media for switching states of card games

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
SG10202110685Y 2021-09-27
SG10202110685Y 2021-09-27

Publications (1)

Publication Number Publication Date
WO2023047171A1 true WO2023047171A1 (fr) 2023-03-30

Family

ID=85719332

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2021/058819 WO2023047171A1 (fr) 2021-09-27 2021-09-28 Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de cartes

Country Status (1)

Country Link
WO (1) WO2023047171A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120040727A1 (en) * 2005-05-03 2012-02-16 Tangam Technologies Inc. Table game tracking
US20150206375A1 (en) * 2009-12-01 2015-07-23 Universal Entertainment Corporation Casino table capable of tracking gaming cards
US20180268648A1 (en) * 2015-09-14 2018-09-20 Angel Playing Cards Co., Ltd. Card-centered abnormality detection system using camera and shoe
CN113424195A (zh) * 2021-04-27 2021-09-21 商汤国际私人有限公司 游戏状态处理方法、装置、设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120040727A1 (en) * 2005-05-03 2012-02-16 Tangam Technologies Inc. Table game tracking
US20150206375A1 (en) * 2009-12-01 2015-07-23 Universal Entertainment Corporation Casino table capable of tracking gaming cards
US20180268648A1 (en) * 2015-09-14 2018-09-20 Angel Playing Cards Co., Ltd. Card-centered abnormality detection system using camera and shoe
CN113424195A (zh) * 2021-04-27 2021-09-21 商汤国际私人有限公司 游戏状态处理方法、装置、设备及存储介质

Similar Documents

Publication Publication Date Title
CN112567374A (zh) 一种仿真交通场景文件生成方法及装置
TWI675580B (zh) 基於特徵資訊進行用戶驗證的方法及裝置
US20140241574A1 (en) Tracking and recognition of faces using selected region classification
US20210170229A1 (en) Systems and methods for providing strategic game recommendations in a sports contest using artificial intelligence
US20220414383A1 (en) Methods, apparatuses, devices and storage media for switching states of tabletop games
CN112597850B (zh) 一种身份识别方法及装置
AU2021203742B2 (en) Methods and apparatuses for identifying operation event
KR102365431B1 (ko) 경기 영상 내의 타겟 영상을 제공하기 위한 전자 장치 및 그의 동작 방법
JP2021535667A (ja) 事象を管理するための注目期間及び少なくとも1つの注目領域を決定する方法、装置及びプログラム
AU2021240276A1 (en) Methods, apparatuses, devices and storage media for switching states of card games
CN113196292A (zh) 对象检测方法和装置及电子设备
CN102325078B (zh) 应用识别方法及设备
CN116958267B (zh) 位姿处理方法、装置、电子设备及存储介质
KR20220130567A (ko) 이미지에 포함된 상관된 객체들을 검출하기 위한 방법들, 장치들, 디바이스들, 및 저장 매체
WO2023047171A1 (fr) Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de cartes
CN115037790B (zh) 异常注册识别方法、装置、设备及存储介质
US20220122352A1 (en) Method and apparatus for detecting game prop in game region, device, and storage medium
KR102601283B1 (ko) 경기 영상으로부터 타겟 영상 생성 시 불필요한 영상을 제거하기 위한 컴퓨터 시스템 및 그의 방법
CN113110414B (zh) 机器人送餐方法、送餐机器人及计算机可读存储介质
US20220375301A1 (en) Methods and devices for comparing objects
CN113728326A (zh) 游戏监控
CN113508392B (zh) 异常事件的处理方法、装置、系统、设备及存储介质
CN113543862A (zh) 游戏道具操作事件的检测方法、装置、设备及系统
WO2022269329A1 (fr) Procédés, appareils, dispositifs et supports de stockage pour commuter des états de jeux de table
EP4362358A1 (fr) Procédés et systèmes pour tester un système

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2022520202

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 2021240276

Country of ref document: AU

Date of ref document: 20210928

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958302

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE