Electronic auxiliary judgment method, device and equipment for competitive egg-whipping match and medium
Through machine vision technology, image differential processing and card recognition have been solved, which makes it difficult for referees to monitor illegal cards in offline competitive egg-slide competitions, achieves fairness and scientificity of the game, and saves labor costs.
Patent Information
- Application Number
- CN202411625498.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-04-18
AI Technical Summary
In offline competitive egg-puff competitions, it is difficult for referees to effectively monitor whether athletes play cards in violation of regulations, and the rules of offline and online referees are inconsistent, which affects the fairness and promotion of the game.
Using machine vision technology, we collect card area images through cameras, perform image differential processing and card face recognition, and repaint and display card images to reduce the risk of code transmission among teammates and improve the scientificity and fairness of referees.
It greatly reduces the risk of code transmission among teammates, improves the fairness and scientificity of the game, saves labor costs, and can accurately and automatically time and record the number of cards.
Smart Images

Figure CN119838206A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic assisted refereeing, and in particular to an electronic assisted refereeing method, device, equipment and medium for competitive egg-throwing competitions. Background Art
[0002] In offline competitive doudan competitions, four players sit on the east, south, west, and north sides of the table, divided into two teams, one for the east and west, and one for the south and north. A baffle is set diagonally above the table, with the north and east players on one side and the south and west players on the other. A window is set below the center of the baffle. The baffle is at least 40 cm longer than the tabletop diagonal (that is, at least 20 cm on each side) and 80 cm high. The window is 60 cm long and 15 cm high.
[0003] However, the current refereeing method for offline competitive egg-throwing competitions has the following main disadvantages:
[0004] Disadvantage 1: During the competition, athletes often forget to report violations, which affects the progress of the game and requires a lot of intervention from referees. In addition, the regulations on reporting in offline competitions are inconsistent with the reporting procedures of online throwing egg software, which is not conducive to the promotion and popularization of throwing egg sports.
[0005] Disadvantage 2: Because the rules of competitive throwing egg games are relatively detailed and complicated, it is necessary to always pay attention to whether athletes have violated the rules. Referees are often required to intervene, which on the one hand increases the workload of referees, and on the other hand lacks the technical means to analyze and handle disputes when they arise.
[0006] Disadvantage 3: Offline games are usually held on a card table. However, a window needs to be set up in the center of the diagonal baffle to facilitate mutual viewing of the opposite card area, which also brings the risk of teammates passing signals to each other through gestures, card placement, etc. In order to avoid such violations, some offline games arrange two referees at each table, and the referees place the cards on the card table instead of the players. This greatly increases the workload and cost of the game, which is not conducive to the promotion of competitive egg-throwing games.
[0007] At present, there are reports that image recognition technology is used to identify cards in some card games, but these card recognition technologies have the following two defects:
[0008] 1. After the timing starts, it is necessary to collect images and recognize the cards through the camera in real time and continuously, which greatly increases the computing power.
[0009] 2. They are all based on a single background, and it is impossible to identify the situation of the second card after two cards are played. Otherwise, the card surface of the previous card will be added to the card surface of the second card, causing confusion. The "Competitive Egg Throwing Competition Rules (Trial)" clearly requires the way of playing cards: each card played must be placed in the card-playing area of the family; after a round of cards is over, the cards in the card-playing area are placed face down in the family's discarding area in order, and no athlete is allowed to view them. The "Competitive Egg Throwing Competition Rules (Trial)" clearly states: A round of cards: a process in which four athletes play cards in order and suppress them step by step. Some people can not play cards in a round of cards. When three consecutive people pass cards without playing, the round ends. It can be seen that the egg throwing competition requires the situation of the second card to be identified after two cards are played. Summary of the invention
[0010] The technical problem to be solved by the present invention is to provide an electronic assisted refereeing method, device, equipment and medium for competitive throwing egg competitions, which assists in the refereeing of throwing egg competitions based on machine vision technology. Players on both sides of the baffle can view the opponent's redrawn cards through the display screen, which greatly reduces the risk of cheating by passing secret signals to each other. It can not only make the refereeing more scientific and fair, but also greatly save labor costs.
[0011] In a first aspect, the present invention provides an electronic assistant referee method for a competitive egg-throwing game, including an assistant referee process for playing cards, wherein the assistant referee process for playing cards includes:
[0012] S11, when a player's card-playing timer starts, control the camera to capture the initial image of the current player's card-playing area as the background image;
[0013] S12, using a camera to detect in real time whether there is an object intrusion into the card-discharging area, and if so, collecting a new image of the card-discharging area after the object intrusion ends;
[0014] S13, performing image difference processing on the new image and the background image to obtain a difference area;
[0015] S14, calling a card recognition model to recognize the card faces in the differential area, including numbers, suits, and the number of cards corresponding to each number and suit;
[0016] S15, redrawing the playing card image according to standardized display rules;
[0017] S16. The redrawn playing card image is displayed to the player on the other side of the isolation baffle through the display screen, and the card-playing timer ends. Then, the card-playing timer of the next player is started, and the number of remaining cards is calculated and recorded according to the current number of played cards.
[0018] In a second aspect, the present invention provides an electronic auxiliary referee device for a competitive egg-throwing game, comprising:
[0019] The background image acquisition module is used to control the camera to collect the initial image of the current player's card-playing area as the background image after the timing of a player's card-playing starts;
[0020] The intrusion detection module is used to detect in real time through the camera whether there is an object intrusion in the card-discharging area. If so, a new image of the card-discharging area is collected after the intrusion of the object ends;
[0021] A difference processing module, used for performing image difference processing on the new image and the background image to obtain a difference area;
[0022] A card recognition module, used to call a card recognition model to recognize the card faces in the differential area, including numbers, suits, and the number of cards corresponding to each number and suit;
[0023] A redrawing module, used for redrawing the playing card image according to standardized display rules;
[0024] A display module, used for displaying the redrawn playing card image to the players on the other side of the isolation baffle through a display screen;
[0025] The counting module is used to calculate and record the number of remaining cards based on the current number of cards played when the card playing timer ends;
[0026] The timing module is used to start or end the player's card-playing timing.
[0027] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.
[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.
[0029] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:
[0030] 1) Through display image acquisition, recognition, redrawing and display, the necessary information of each player when playing cards is accurately displayed to the other party through electronic assistance, while hiding unnecessary information. Therefore, the window in the lower center of the baffle on the table can be closed during the card-playing process, eliminating the risk of transmitting illegal information between teammates and enhancing the fairness of the game.
[0031] 2) Card recognition only requires collecting an image of the card-playing area as the background image in combination with the timing starting point, and combining the end moment of judging the intrusion of the object as the time point for collecting the card face image. The newly added area is obtained through differential processing, and the card face recognition model can be called to identify the card face in the differential area. Whether it is the first time or the second time, the card face of each card can be successfully identified without any misunderstanding, and the computing power of the system is greatly saved.
[0032] 3) After card recognition, card type judgment is added to further determine whether the card is in compliance with the rules, further liberating manpower and enhancing the fairness of the game.
[0033] 4) It can accurately and automatically time, enhance the compactness of competitive throwing egg games, and accurately record the number of cards in the hands of the players, supervise the players to report the number of remaining cards according to the rules, or directly let the system notify other players of the number of remaining cards, so that the players can return their energy to the game itself.
[0034] 5) The competition process can be stored digitally and can be traced back as evidence when violations or disputes occur.
[0035] 6) It is conducive to the live broadcast of the event. The video resources on both sides of the partition can be integrated to form a bird's-eye view video of the entire card table for live broadcast of the event.
[0036] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0038] Figure 1 A schematic diagram of a card table structure for a throwing egg game according to the present invention;
[0039] Figure 2 A flowchart of a preferred embodiment of the method of the present invention;
[0040] Figure 3 Flow chart of the card type judgment process in the embodiment of the present invention
[0041] Figure 4 A flowchart of a deck of cards game in an embodiment of the present invention;
[0042] Figure 5 This is a flow chart of a round of competition in an embodiment of the present invention;
[0043] Figure 6 It is a structural schematic diagram of the device in the second embodiment of the present invention;
[0044] Figure 7 This is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention;
[0045] Figure 8 Schematic diagram of the structure of the medium in the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0046] The embodiment of the present application provides a method for assisting the refereeing of a throwing game based on machine vision technology, which not only enables refereeing to be more scientific and fair, but also greatly saves labor costs.
[0047] The technical solution in the embodiment of the present application has the following general idea: by displaying image acquisition, recognition, redrawing and displaying, the necessary information of each player when playing cards is accurately displayed to the other party through electronic assistance, while hiding unnecessary information, so that the window in the lower center of the baffle on the table can be closed during the playing process, eliminating the risk of transmitting illegal information between teammates and enhancing the fairness and justice of the game. After combined with differential processing, card recognition only needs to identify the newly added area after the difference of the two images, which greatly saves the computing power of the system, and whether it is the first time to play cards or the second time to play cards, the cards played each time can be smoothly identified without misrecognition. In addition, the card type judgment model can also be combined to judge the card type of the identified card face, and further judge whether the current card is illegal, which greatly saves the manpower and time costs of the referee.
[0048] Before introducing the specific embodiments, the table structure of the competitive egg-throwing game adopted in the embodiments of the present application is first introduced. Figure 1 As shown, the card table for the competitive egg-throwing competition adopted in the embodiment of the present application includes: a desktop 1, an isolation baffle 2, two cameras 3 and two display screens 4. A card-discharging area 11, a discarding area 12 and a card-passing area 13 are respectively set at the four positions of the southeast, northwest and northeast of the desktop. The isolation baffle 2 is arranged on the desktop 1 diagonally, separating the two card-discharging areas 11, the discarding area 12 and the card-passing area 12 of the same player. Two cameras 3 are fixed on the isolation baffle 2, and are respectively aimed at each card-discharging area 11 to collect images, and two display screens 4 are respectively fixed on one side of the isolation baffle 2. The desktop 1 can be arranged with a solid color such as a blue or green background, and areas such as the card-discharging area 11 and the discarding area 12 have regular and detailed frame marks (generally white rectangular lines), which bring very favorable external conditions to machine vision.
[0049] Embodiment 1
[0050] like Figure 2 As shown, a preferred embodiment of an electronic assistant referee method for a competitive egg-throwing game is provided, which includes a card-throwing assistant referee process, and the card-throwing assistant referee process includes:
[0051] S11, when a player's card-playing timer starts, control the camera to capture the initial image of the current player's card-playing area as the background image;
[0052] S12, using a camera to detect in real time whether there is an object intrusion into the card-discharging area, and if so, collecting a new image of the card-discharging area after the object intrusion ends;
[0053] Objects such as hands or other assistive tools.
[0054] The moment when the object invasion ends is when the image becomes stable.
[0055] After determining that there is an object intrusion detection and after the intrusion is over, starting the subsequent card type recognition model recognition can save a lot of computing power and prevent misidentification.
[0056] S13, performing image difference processing on the new image and the background image to obtain a difference area;
[0057] S14, calling a card recognition model to recognize the card faces in the differential area, including numbers, suits, and the number of cards corresponding to each number and suit; further, the card recognition model is a deep learning model, which is trained by the following method:
[0058] S01, collect a large amount of playing card image data, including single playing card, multiple playing cards, multiple playing cards stacked but with numbers and suits exposed, pure color background and various complex backgrounds, and different lighting conditions, to obtain a playing card data set;
[0059] S02. Manually label the poker data set, and divide the poker cards into 54 categories, including four-suit AK and big and small jokers; merge the training sets of various PASS cards (pass cards) to obtain the PASS category as the 55th category;
[0060] S03, randomly group the merged data set into training set and test set according to 8:2, unify the width and height of all pictures, and randomly add rotation and scaling to a small part of the pictures;
[0061] S04. Use YoloV5 deep learning algorithm to train the training set, and verify the test set based on the model. After verification, the card recognition model is obtained.
[0062] S15, redrawing the playing card image according to the standardized display rules; wherein, this embodiment may also include card type judgment: that is, the S15 is replaced by: calling the card type judgment model to judge the card type of all card combinations in the differential area, and obtaining the card type result corresponding to the current card; judging whether the current card is in compliance with the rules of the competitive throwing egg competition and the card type result according to the competitive throwing egg competition rules, if so, redrawing the playing card image according to the standardized display rules; if not, returning to S13, re-performing image difference processing, card recognition and card type judgment, if the card type judgment result is still not in compliance with the throwing egg card type rule after repeating the preset number of times, a warning is issued;
[0063] like Figure 3 As shown, the process of the card type judgment model for card type judgment includes: the process of the card type judgment model for card type judgment includes: first judge whether the number of combinations of all cards is single, two, three or more than four; if it is a single card, it is judged as a single card type; if it is two, then judge whether the numbers or points of the two cards are the same, if so, it is judged as a pair card type, otherwise it is considered to be an illegal card type; if it is three, then judge whether the numbers or points of the three cards are the same, if they are the same, it is judged as a three-same card type, otherwise it is considered to be an illegal card type; if it is four (inclusive) or more, then judge whether the numbers or points of the cards are the same, if so, it is judged as a bomb card type, if not, combine the number to determine whether it contains four big and small kings, whether it is a continuous number of points, whether it is the same suit, whether the number and size of the same points meet the card types such as three-pair card type, three consecutive pairs or three same consecutive cards, if so, it is judged as the corresponding card type, if not, it is judged as an illegal card type.
[0064] S16. The redrawn playing card image is displayed to the player on the other side of the isolation baffle through the display screen, and the card-playing timer ends. Then, the card-playing timer of the next player is started, and the number of remaining cards is calculated and recorded according to the current number of played cards.
[0065] First, the initial number of playing cards in each player's hand is fixed at 27. During the game, machine vision can be used to determine the number of cards that have been played in each deck of cards, and the number of cards remaining in the player's hand can be calculated. Calculating the number of remaining cards can remind players to report the number of remaining cards according to the rules under the specified number of cards, or directly let the system notify other players of the number of remaining cards. For example, when a player's remaining number of cards is ≤10, notify other players of the number of remaining cards.
[0066] S17, integrating the video resources of the display screens on both sides of the isolation baffle to form a bird's-eye view video of the entire poker table for live broadcast of the event;
[0067] S18: Store the video resources and mark the key frames according to the nodes of the game process for tracing back.
[0068] Furthermore, it also includes a pass judgment, and the pass judgment is specifically:
[0069] In S11, during the card-playing timing, it is detected whether there is a hand invasion in the specially set card-passing area. If so, the card-passing image in the card-passing area is collected, and the card-passing image is redrawn according to the standardized display rules and displayed to the player on the other side of the isolation baffle through the display screen. The card-playing timing ends, and then the card-playing timing of the next player is started.
[0070] The above S11 to S18 are the card-playing auxiliary referee process, and a competitive throwing egg game includes multiple rounds of games, each round of games includes multiple decks of cards, and in each deck of cards, the cards played by both players must be assisted by the card-playing auxiliary referee process.
[0071] It also includes a round of game assisting refereeing procedures and a deck of cards assisting refereeing procedures;
[0072] like Figure 4 As shown in the figure, the process of assisting referees with a deck of cards includes:
[0073] S21, after starting a deck of cards, determine the current level of cards and record them;
[0074] S22, determine whether it is the first deck of cards competition, if so, call the tribute process rules for refereeing, and after the tribute process is completed, enter the deck of cards auxiliary referee process, the deck of cards auxiliary referee process is composed of multiple deck of cards auxiliary referee processes, if not, directly enter the deck of cards auxiliary referee process;
[0075] S23, judging whether the auxiliary refereeing process of a deck of cards is finished, if so, determining and recording the ranking, and ending the deck of cards competition after the level of each party is upgraded according to the rules;
[0076] like Figure 5 As shown, the round-assisted refereeing process includes:
[0077] S31. After a round of competition begins, obtain player information and group information from the referee;
[0078] S32, initializing storage data;
[0079] S33, initializing the level and level card;
[0080] S34, enter a deck of cards assistant referee process, and determine whether a round of the game assistant referee process is completed. If so, synchronize with the main referee to end the round of the game.
[0081] Embodiment 2
[0082] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.
[0083] like Figure 6 As shown, in this embodiment, an electronic auxiliary referee device for a competitive egg-throwing game is provided, comprising:
[0084] The intrusion detection module is used to detect whether there is a hand intrusion in the card-discharging area on the table through the camera in real time when the timer for a player to play a card is started. If so, the camera is triggered to collect the poker card image in the card-discharging area;
[0085] The card recognition module is used to recognize the card faces of the playing card images, including the numbers, suits, and the number of cards corresponding to each number and suit; further, the card recognition model is a deep learning model, which is trained by the following method:
[0086] S01, collect a large amount of playing card image data, including single playing card, multiple playing cards, multiple playing cards stacked but with numbers and suits exposed, pure color background and various complex backgrounds, and different lighting conditions, to obtain a playing card data set;
[0087] S02. Manually label the poker data set, and divide the poker cards into 54 categories, including four-suit AK and big and small jokers; merge the training sets of various PASS cards (pass cards) to obtain the PASS category as the 55th category;
[0088] S03, randomly group the merged data set into training set and test set according to 8:2, unify the width and height of all pictures, and randomly add rotation and scaling to a small part of the pictures;
[0089] S04. Use YoloV5 deep learning algorithm to train the training set, and verify the test set based on the model. After verification, the card recognition model is obtained.
[0090] The card type recognition module is used to call the card type judgment model to judge the recognized card face and obtain the card type result corresponding to the current card face; Figure 3 As shown, the process of the card type judgment model for card type judgment includes: the process of the card type judgment model for card type judgment includes: first judge whether the number of combinations of all cards is single, two, three or more than four; if it is a single card, it is judged as a single card type; if it is two, then judge whether the numbers or points of the two cards are the same, if so, it is judged as a pair card type, otherwise it is considered to be an illegal card type; if it is three, then judge whether the numbers or points of the three cards are the same, if they are the same, it is judged as a three-same card type, otherwise it is considered to be an illegal card type; if it is four (inclusive) or more, then judge whether the numbers or points of the cards are the same, if so, it is judged as a bomb card type, if not, combine the number to determine whether it contains four big and small kings, whether it is a continuous number of points, whether it is the same suit, whether the number and size of the same points meet the card types such as three-pair card type, three consecutive pairs or three same consecutive cards, if so, it is judged as the corresponding card type, if not, it is judged as an illegal card type.
[0091] The judgment module is used to judge whether the current card is in violation of the rules of the competitive egg-throwing game and the card type results. If so, a warning is issued; if not, a redraw module is triggered;
[0092] A redrawing module, used for redrawing the playing card image according to standardized display rules;
[0093] A display module, used for displaying the redrawn playing card image to the players on the other side of the isolation baffle through a display screen;
[0094] The counting module is used to calculate the number of remaining cards based on the current number of cards played when the card-playing timer ends, and to notify other players of the number of remaining cards according to the rules;
[0095] The timing module is used to start or end the player's card-playing timing.
[0096] Furthermore, the device of this embodiment may also include:
[0097] The video resource fusion module is used to fuse the video resources of the display screens on both sides of the isolation baffle to form a bird's-eye view video of the entire poker table for live broadcast of the event;
[0098] The backtracking module is used to store video resources and mark key frames according to the nodes of the game process for backtracking.
[0099] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.
[0100] Embodiment 3
[0101] Based on the same inventive concept, the present application provides an electronic device embodiment corresponding to the first embodiment, see the third embodiment for details. This embodiment provides an electronic device, such as Figure 7 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any implementation method in the first embodiment can be implemented.
[0102] Since the electronic device introduced in this embodiment is a device used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the device used by the method in the embodiment of the present application, it belongs to the scope of protection of the present application.
[0103] Embodiment 4
[0104] Based on the same inventive concept, this application provides a storage medium corresponding to Embodiment 1, see Embodiment 4 for details. This embodiment provides a computer-readable storage medium, such as Figure 8 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, any implementation method in Example 1 can be implemented.
[0105] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0106] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0107] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0110] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. An electronic auxiliary refereeing method for a competitive egg-throwing game, characterized in that: include: S11, when a player's card-playing timer starts, control the camera to capture the initial image of the current player's card-playing area as a background image; S12, using a camera to detect in real time whether there is an object intrusion into the card-discharging area, and if so, collecting a new image of the card-discharging area after the object intrusion ends; S13, performing image difference processing on the new image and the background image to obtain a difference area; S14, calling a card recognition model to recognize the card faces in the differential area, including numbers, suits, and the number of cards corresponding to each number and suit; S15, redrawing the playing card image according to standardized display rules; S16. The redrawn playing card image is displayed to the player on the other side of the isolation baffle through the display screen, and the card-playing timer ends. Then, the card-playing timer of the next player is started, and the number of remaining cards is calculated and recorded according to the current number of played cards.
2. The electronic assisted refereeing method for competitive egg-throwing competition according to claim 1, characterized in that: The S15 is replaced by: calling the card type judgment model to judge the card type of all card combinations in the differential area, and obtaining the card type result corresponding to the current card; judging whether the current card is in compliance with the rules of the competitive poker game and the card type result according to the competitive poker game rules and the card type result, if so, redrawing the playing card image according to the standardized display rules; if not, returning to S13, re-performing image difference processing, card face recognition and card type judgment, if the card type judgment result is still not in compliance with the poker card type rules after repeating the preset number of times, a warning is issued; The process of card type judgment by the card type judgment model includes: first judging whether the number of combinations of all cards is single, two, three or more than four; if it is a single card, it is judged as a single card type; if it is two cards, then judge whether the numbers or points of the two cards are the same, if so, it is judged as a pair card type, otherwise it is considered to be an illegal card type; if it is three cards, then judge whether the numbers or points of the three cards are the same, if they are the same, it is judged as a three-same card type, otherwise it is considered to be an illegal card type; if it is more than four cards, then judge whether the numbers or points of the cards are the same, if so, it is judged as a bomb card type, if not, combined with the number, whether it contains four big and small jokers, whether it is a continuous number of points, whether it is the same suit, whether the number and size of the same points meet the three-pair card type, three consecutive pairs or three consecutive cards, if so, it is judged as the corresponding card type, if not, it is judged as an illegal card type.
3. The electronic assisted refereeing method for competitive egg-throwing competition according to claim 1, characterized in that: It also includes a card passing judgment, and the card passing judgment is specifically: In S11, during the card-playing timing, it is detected whether there is an object invasion of the current player's card-playing area. If so, the card-playing image of the card-playing area is collected after the object invasion ends, and the card-playing image is redrawn according to the standardized display rules and displayed to the player on the other side of the isolation baffle through the display screen. The card-playing timing ends, and then the card-playing timing of the next player is started.
4. The electronic assistant refereeing method for competitive egg-throwing competition according to claim 1, characterized in that: The card recognition model is a deep learning model, which is trained by the following method: S01, collect a large amount of playing card image data, including single playing card, multiple playing cards, multiple playing cards stacked but with numbers and suits exposed, pure color background and various complex backgrounds, and different lighting conditions, to obtain a playing card data set; S02. Manually label the poker data set and divide the poker cards into 54 categories, including four-suit AK and big and small jokers; merge the training sets of various PASS cards to obtain the PASS category as the 55th category; S03, randomly group the merged data set into training set and test set according to 8:2, unify the width and height of all pictures, and randomly add rotation and scaling to a small part of the pictures; S04. Use the deep learning algorithm to train the training set, and verify the test set based on the model. After verification, a card recognition model is obtained.
5. The electronic assisted refereeing method for competitive egg-throwing competition according to claim 1 is characterized in that: Also includes: S17, integrating the video resources of the display screens on both sides of the isolation baffle to form a bird's-eye view video of the entire poker table for live broadcast of the event; S18: Store the video resources and mark the key frames according to the nodes of the game process for tracing back.
6. An electronic referee-assisting device for a competitive egg-throwing game, characterized in that: include: The background image acquisition module is used to control the camera to collect the initial image of the current player's card-playing area as the background image after the timing of a player's card-playing starts; The intrusion detection module is used to detect in real time through the camera whether there is an object intrusion in the card-discharging area. If so, a new image of the card-discharging area is collected after the intrusion of the object ends; A difference processing module, used for performing image difference processing on the new image and the background image to obtain a difference area; A card recognition module, used to call a card recognition model to recognize the card faces in the differential area, including numbers, suits, and the number of cards corresponding to each number and suit; A redrawing module, used for redrawing the playing card image according to standardized display rules; A display module, used for displaying the redrawn playing card image to the players on the other side of the isolation baffle through a display screen; The counting module is used to calculate and record the number of remaining cards based on the current number of cards played when the card playing timer ends; The timing module is used to start or end the player's card-playing timing.
7. The electronic assistant referee device for competitive egg-throwing competition according to claim 6, characterized in that: It also includes a card type judgment module: after the card face is recognized, it is used to call the card type judgment model to judge the card type of all card faces in the differential area, and obtain the card type result corresponding to the current card face; according to the competitive throwing egg competition rules and the card type result, it is judged whether the current card is in compliance with the throwing egg competition rules, if not, the difference processing module and the card face recognition module are called to re-perform image difference processing and card face recognition, and then perform card type judgment, if the card type judgment result is still not in compliance with the throwing egg card type rules after repeating the preset number of times, a warning is issued; The process of card type judgment by the card type judgment model includes: first judging whether the number of combinations of all cards is single, two, three or more than four; if it is a single card, it is judged as a single card type; if it is two cards, then judge whether the numbers or points of the two cards are the same, if so, it is judged as a pair card type, otherwise it is considered to be an illegal card type; if it is three cards, then judge whether the numbers or points of the three cards are the same, if they are the same, it is judged as a three-same card type, otherwise it is considered to be an illegal card type; if it is four cards (inclusive) or more, then judge whether the numbers or points of the cards are the same, if so, it is judged as a bomb card type, if not, combined with the number, whether it contains four big and small jokers, whether it is a continuous number of points, whether it is the same suit, whether the number and size of the same points meet the three-pair card type, three consecutive pairs or three consecutive cards and other card types, if so, it is judged as the corresponding card type, if not, it is judged as an illegal card type.
8. The electronic assistant referee device for competitive egg-throwing competition according to claim 6, characterized in that: Also includes: The card passing judgment module is used to detect whether there is an object intrusion in the card passing area of the current player during the card playing timing. If so, after the object invasion ends, the card passing image of the card passing area is collected and the card face recognition module is notified for recognition. After recognition, the redrawing module and the display module are notified to redraw the card passing image according to the standardized display rules and then display it to the player on the other side of the isolation baffle through the display screen; The video resource fusion module is used to fuse the video resources of the display screens on both sides of the isolation baffle to form a bird's-eye view video of the entire poker table for live broadcast of the event; The backtracking module is used to store video resources and mark key frames according to the nodes of the game process for backtracking.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.