Card distribution method and device of card distribution machine and card distribution machine
By controlling the card washing motor in the card dispensing machine to disrupt the order of cards, and through the cooperation of the distribution roller and the distribution channel, the problem of misjudgment in the card issuance process of the card dispensing machine is solved, and the accurate distribution of the number of cards and the efficiency of use are achieved improvement.
Patent Information
- Application Number
- CN202411330821.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-21
AI Technical Summary
There are misjudgments in the card issuance process of existing card distributors, which leads to errors in the number of cards received by users and reduces the efficiency of card distributors.
Disrupt the order of cards in the card box by controlling the card washing motor, determine the target card for this round based on the preset distribution principle, and transfer the cards to the distribution channel through the distribution roller to confirm whether the number of cards in the distribution channel matches the distribution principle. If there is a match, the card is transferred to the card distribution platform.
It reduces the possibility of abnormal card quantity, ensures accurate distribution of the card dispenser, and improves user experience and usage efficiency of the card dispenser.
Smart Images

Figure CN119327096A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of card dispensing machines, and in particular to a card dispensing method and device for a card dispensing machine, a card dispensing machine, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of human life and entertainment, many types of chess and card games have emerged to enrich human entertainment life. Various types of chess and card games usually rely on different cards to realize their functions for easy play. In order to facilitate users to play, different card distribution machines have been developed to realize automatic card washing and card distribution. Users place a sufficient number of cards in the card distribution machine, and the card distribution machine shuffles the cards according to different set rules and distributes them to each user.
[0003] However, the card dispensing machines currently in use still have defects in the card issuance process. For example, the card dispensing machine may misjudge the initialization detection of the card or the card issuance process control when in use, resulting in problems such as the number of cards received by the user being incorrect. At this time, the user can only restart the card dispensing machine to distribute the cards, which reduces the efficiency of the card dispensing machine. Summary of the invention
[0004] Based on this, it is necessary to provide a card distribution method, device, card distribution machine, computer equipment, computer-readable storage medium and computer program product for a card distribution machine that can improve the usage efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a card dispensing method for a card dispensing machine, wherein the card dispensing machine comprises a card washing motor and a card box, wherein a plurality of cards are placed in the card box; the method comprises:
[0006] Controlling a card washing motor of a card dispensing machine to disrupt the order of cards in the card box;
[0007] Based on a preset allocation principle, determining a target card of this round from each of the cards, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0008] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0009] If yes, control the cards in the distribution channel to be transferred to the card distribution platform of the card dispensing machine.
[0010] In one embodiment, the number of the card washing motors is two, and the card washing motors controlling the card dispensing machine disrupt the order of the cards in the card box, including:
[0011] Controlling each of the card washing motors to run at different speeds;
[0012] The difference between the rotation speeds of the card washing motors is adjusted, and the cards are arranged in a random order to disrupt the order of the cards.
[0013] In one embodiment, a distribution roller is further provided between the card box and the distribution channel, and the target card of this round is determined from each of the cards based on a preset distribution principle, and the target card of this round is transferred from the card box to the distribution channel of the card dispensing machine, including:
[0014] Based on a preset allocation principle, a specified number of target cards for this round are randomly selected from each of the cards;
[0015] The distributing roller of the card distributing machine is controlled to press the target card of this round to the distributing channel of the card distributing machine.
[0016] In one embodiment, the confirming whether the number of cards in the allocation channel matches the allocation principle includes:
[0017] Get the working data of the card output sensor;
[0018] Based on the working data, it is determined whether the number of cards in the allocation channel matches the allocation principle.
[0019] In one embodiment, after confirming whether the number of cards in the allocation channel matches the allocation principle, the method further includes:
[0020] If not, determining the reissue quantity based on the determined allocation principle and the quantity of cards in the allocation channel;
[0021] According to the reissue quantity, determining the reissued cards for this round from the cards in the card box;
[0022] The distribution roller of the card distribution machine is controlled to push the cards for the current round of reissue to the distribution channel of the card distribution machine, and the confirmation is performed as to whether the number of cards in the distribution channel matches the distribution principle.
[0023] In one embodiment, before the card washing motor of the card dispensing machine is controlled to disrupt the order of the cards in the card box, the method further comprises:
[0024] Detecting the number of cards in the card box, and determining whether the number of cards in the card box meets a preset threshold;
[0025] If yes, executing the card washing motor of the card dispensing machine to control the card dispensing machine to disrupt the order of the cards in the card box;
[0026] If not, the prompt device of the card dispensing machine is controlled to issue a card missing prompt message.
[0027] In one embodiment, the detecting the number of cards in the card box includes:
[0028] Obtaining a weight parameter of the card box, and obtaining the number of cards in the card box according to the weight parameter;
[0029] or,
[0030] The cross sections of the cards in the card box are scanned and counted to obtain the number of cards in the card box.
[0031] In a second aspect, the present application further provides a card dispensing device for a card dispensing machine, the card dispensing machine comprising a card washing motor and a card box, wherein a plurality of cards are placed in the card box, and the device comprises:
[0032] A card washing module, used to control a card washing motor of a card dispensing machine to disrupt the order of cards in the card box;
[0033] A card taking module, used for determining a target card of this round from each of the cards based on a preset allocation principle, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0034] A verification module, used to confirm whether the number of cards in the distribution channel matches the distribution principle;
[0035] The card issuing module is used to control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine when the number of cards in the distribution channel matches the distribution principle.
[0036] In a third aspect, the present application further provides a card dispensing machine, the card dispensing machine comprising a card washing motor, a card box, a dispensing channel, a card dispensing platform and a controller, a plurality of cards are placed in the card box, the card washing motor is arranged in the card box, and the dispensing channel communicates the card box and the card dispensing platform;
[0037] The controller is connected to the card washing motor and the distribution channel, and is used to transfer the cards in the card box to the card distribution platform based on the card distribution method of the card dispenser.
[0038] In one embodiment, the card dispensing machine further comprises a dispensing roller connected to the controller, wherein the dispensing roller is disposed at the connection between the dispensing channel and the card box, and is used to send the cards in the card box to the dispensing channel.
[0039] In one embodiment, the card dispensing machine further includes a card output sensor disposed on the distribution channel, and the card output sensor is connected to the controller.
[0040] In one embodiment, the card dispensing machine further includes a card quantity sensor disposed on the card box, and the card quantity sensor is connected to the controller.
[0041] In one embodiment, the card quantity sensor is a gravity sensor or a cross-sectional scanner.
[0042] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0043] Controlling a card washing motor of a card dispensing machine to disrupt the order of cards in the card box;
[0044] Based on a preset allocation principle, determining a target card of this round from each of the cards, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0045] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0046] If yes, control the cards in the distribution channel to be transferred to the card distribution platform of the card dispensing machine.
[0047] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0048] Controlling a card washing motor of a card dispensing machine to disrupt the order of cards in the card box;
[0049] Based on a preset allocation principle, determining a target card of this round from each of the cards, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0050] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0051] If yes, control the cards in the distribution channel to be transferred to the card distribution platform of the card dispensing machine.
[0052] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0053] Controlling a card washing motor of a card dispensing machine to disrupt the order of cards in the card box;
[0054] Based on a preset allocation principle, determining a target card of this round from each of the cards, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0055] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0056] If yes, control the cards in the distribution channel to be transferred to the card distribution platform of the card dispensing machine.
[0057] The card distribution method, device, card distribution machine, computer equipment, computer-readable storage medium and computer program product of the above-mentioned card distribution machine include controlling the card washing motor of the card distribution machine to disrupt the order of cards in the card box, determining the target card of this round from each card based on a preset distribution principle, and transmitting the target card of this round from the card box to the distribution channel of the card distribution machine to confirm whether the number of cards in the distribution channel matches the distribution principle. If the number of cards in the distribution channel matches the distribution principle, control the cards in the distribution channel to be transmitted to the card distribution platform of the card distribution machine. Among them, the card distribution machine includes a card washing motor and a card box, and a plurality of cards are placed in the card box. The order of cards is disrupted by the card washing motor, and the number of cards in the distribution channel is checked during the card distribution process, which reduces the possibility of abnormal card quantity, is conducive to ensuring that the card distribution machine completes accurate card distribution, ensures user experience, and improves the use efficiency of the card distribution machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0059] FIG1 is a schematic diagram of the structure of a card dispensing machine in one embodiment;
[0060] FIG2 is a schematic flow diagram of a card distributing method of a card dispensing machine in one embodiment;
[0061] FIG3 is a flow chart showing the sequential steps of controlling a card washing motor of a card dispensing machine to shuffle cards in a card box in one embodiment;
[0062] FIG4 is a flow chart of the steps of determining the target card of this round from various cards based on a preset allocation principle and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine in one embodiment;
[0063] FIG5 is a flow chart of a step of confirming whether the number of cards in a distribution channel matches a distribution principle in one embodiment;
[0064] FIG6 is a schematic flow chart of a card distributing method of a card dispensing machine in another embodiment;
[0065] FIG7 is a schematic flow chart of a card distributing method of a card dispensing machine in yet another embodiment;
[0066] FIG8 is a block diagram of a card dispensing device of a card dispensing machine in one embodiment;
[0067] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0069] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0070] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0071] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0072] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0073] The card distribution method of the card distribution machine provided in the embodiment of the present application can be applied to the card distribution machine shown in Figure 1. The present application also provides a card distribution machine, as shown in Figure 1, the card distribution machine includes a card washing motor, a card box, a distribution channel, a card distribution platform and a controller, a plurality of cards are placed in the card box, the card washing motor is arranged in the card box, and the distribution channel connects the card box and the card distribution platform. Among them, a plurality of cards are placed in the card box, each card can be stacked, and the order of stacking is disrupted under the drive of the card washing motor. Furthermore, the card box includes a card washing channel with both ends open, and the card washing motor is arranged at one end of the card washing channel. By randomly selecting and placing the cards in the card washing channel under the drive of the card washing motor, the original arrangement order of the cards is changed, and the cards in the card washing channel are returned from the other end where the card washing motor is not set to the card stack in the card box, so as to ensure that the number of cards remains unchanged.
[0074] The distribution channel is connected to the card box, and the card can be transferred from the card box to the distribution channel. A distribution device capable of transferring the card is provided in the distribution channel. The distribution device can transfer the designated card in the card box and place it in the distribution channel for easy transmission to the card distribution platform. Further, the distribution channel includes a conveyor belt, and the card placed in the distribution channel by the distribution device can be placed on the conveyor belt, and the conveyor belt conveys the card to the card distribution platform. Further, in one embodiment, the distribution device is a distribution roller, and a groove matching the thickness of the card is provided on the distribution roller, which can clamp the card from the card box and place it in the distribution channel during the operation of the distribution roller.
[0075] The card distribution platform is a platform in the card distribution machine for users to take cards. It is usually set on the top surface of the card distribution machine. Cards are transported from the distribution channel to the card distribution platform. Users can conveniently take cards to complete the card distribution of the card distribution machine.
[0076] The controller (not shown in the figure) is connected to the card washing motor and the distribution channel, and can control the operation of the card washing motor and the distribution channel, specifically, controlling the rotation speed of the card washing motor to adjust the card washing process, and controlling the operation of the conveyor belt or the distribution device in the distribution channel to adjust the card distribution process. The controller can control various structures in the card distribution machine, and is used to transfer the cards in the card box to the card distribution platform based on the card distribution method of the card distribution machine described in each embodiment of the present application to complete the card distribution.
[0077] In an exemplary embodiment, as shown in FIG. 2 , a card distributing method for a card dispensing machine is provided. The method is described by taking the application of the method to the controller in FIG. 1 as an example, and includes the following steps 202 to 208 .
[0078] Step 202, controlling the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box.
[0079] The card washing motor is arranged in the card box, and can adjust the position of the card during the operation of the motor, thereby changing the arrangement order of the cards in the card box. The controller is connected to the card washing motor of the card dispensing machine, controls the speed or other working parameters of the card washing motor, thereby changing the order of the cards in the card box. Optionally, the card washing motor can randomly select cards to be pulled out of the original card sequence, and put the pulled cards back from other card sequence positions, or randomly select some cards to be pulled out of the original card sequence, and insert the some cards into different positions in the original card sequence.
[0080] Further, in an exemplary embodiment, as shown in Fig. 3, step 202 includes steps 302 to 304. There are two card washing motors, each of which is arranged opposite to the other in the card box and can extract cards and put them back into the original card sequence.
[0081] Step 302, controlling each card washing motor to run at different rotation speeds.
[0082] In order to ensure the card washing effect, including but not limited to the randomness of the card sorting and the consistency of the front and back of the card, the two card washing motors can rotate in the same direction and run at different speeds. The controller connects the two card washing motors and controls the speeds of the two card washing motors to be different. Then, the card washing motors can extract and place the cards in the card box at different frequencies, and then extract different cards and place them in different card sorting to achieve the disorder of the order between the cards.
[0083] Step 304, adjusting the difference between the rotation speeds of the card washing motors, arranging the cards in random order, and disrupting the order of the cards.
[0084] Specifically, the controller stores a random algorithm, and obtains the rotation speed of each card washing motor by applying the random algorithm, and controls the rotation speed of the two card washing motors accordingly, thereby adjusting the difference between the rotation speeds of each card washing motor, so that each card washing motor staggers the actions of extracting and placing cards to varying degrees, and arranges the cards in random order, thereby achieving random scrambling of the card sorting.
[0085] Furthermore, there can be multiple card washing motors, and the cards in the card box are randomly shuffled in different regions and segments and then combined into a complete card sequence. The way to shuffle the cards is not limited, and the controller can combine different random algorithms to achieve speed control of the card washing motor, as long as the randomness of the card arrangement is guaranteed.
[0086] In this embodiment, the controller controls two card washing motors to shuffle the cards at different rotation speeds, adjust the arrangement order of the cards in the card box, and randomly shuffle the cards through the control of a random algorithm to ensure that the card dispenser can distribute the cards randomly, thereby ensuring the fairness of card distribution, improving user experience, and improving the reliability of the card dispenser.
[0087] Step 204, based on the preset allocation principle, determine the target card of this round from each card, and transfer the target card of this round from the card box to the allocation channel of the card dispensing machine.
[0088] Before card distribution, that is, when the card distribution machine is started to distribute cards, the user needs to select a distribution principle from multiple distribution principles on the card distribution machine, and the selected distribution principle is the preset distribution principle. Multiple distribution principles are stored in the controller, and the distribution principle can be different types of card game rules.
[0089] For example, under the first type of distribution principle, there are three users, each user needs to obtain 17 cards, and keep 3 public cards. Then the card distribution machine needs to distribute 54 cards from the card box and place them on the corresponding card distribution platform, of which 17 cards are placed in the first area of the card distribution platform, 17 cards are placed in the second area of the card distribution platform, 17 cards are placed in the third area of the card distribution platform, and 3 cards are placed in the public area of the card distribution platform.
[0090] The controller determines the target card of this round from the cards in the card box based on the preset allocation principle. Since the allocation methods of cards are different in different allocation principles, for example, the first type of allocation principle in the above example is to allocate all 17 cards at one time, while some allocation principles need to allocate cards in multiple rounds, for example, 3 cards are allocated to each user in the first round, 1 card is allocated to each user in the second round, or 1 card is allocated to a designated user in the second round. Then, the controller can determine the target card of this round based on the preset allocation principle, and transmit the determined target card of this round from the card box to the allocation channel of the card dispenser.
[0091] The distribution channel is a card transmission channel connected to the card box. The number of distribution channels can be one channel or a channel with multiple branches. One end of the channel is connected to the card box, and the other end of the channel is connected to the card distribution platform. When the channel of the distribution channel has multiple branches, the end where the multiple branches are located is connected to different areas of the card distribution platform.
[0092] Furthermore, in an exemplary embodiment, a distribution roller is provided between the card box and the distribution channel, and the distribution roller can clamp or press the selected target card of this round, and transfer the target card of this round from the card box to the distribution channel for transmission. As shown in FIG4 , step 204 includes steps 402 to 404.
[0093] Step 402: Based on a preset allocation principle, a specified number of target cards for this round are randomly selected from each card.
[0094] Specifically, the controller randomly selects a specified number of cards from each card based on a preset allocation principle, and the specified number is determined by the preset allocation principle, which has been described above. The selected cards are marked as the target cards of this round. The basis for random selection may be the use of a random algorithm. Further, after the random sorting of the card washing motor, the random selection in step 402 may also be the sequential selection of the cards that have been randomly shuffled and shuffled.
[0095] Step 404, controlling the distributing roller of the card distributing machine to push the target card of this round out to the distributing channel of the card distributing machine.
[0096] Specifically, the controller controls the distribution roller of the card dispensing machine to rotate and can adjust the speed of the distribution roller. Each time the distribution roller rotates a certain angle, a corresponding number of cards can be pressed out. The controller can accurately press out the target cards of this round by controlling the distribution roller, transfer them to the distribution channel of the card dispensing machine, and then transfer them to the card distribution platform through the distribution channel.
[0097] Exemplarily, the distribution roller is provided with a groove matching the thickness or width of the card. When the distribution roller rotates, the card can be moved from the card box and transferred to the distribution channel by rotating the card to the side where the distribution channel is located.
[0098] In this embodiment, by setting the distribution roller, the target card of this round is transferred from the card box to the distribution channel to complete the card distribution. By randomly selecting the target card of this round, the fairness of card distribution can be guaranteed and the reliability of the card distribution machine can be improved.
[0099] Step 206, confirm whether the number of cards in the distribution channel matches the distribution principle.
[0100] Specifically, a detector may be provided in or around the distribution channel of the card dispensing machine to detect the number of cards in the distribution channel. The controller is connected to the detector to compare the number of cards detected with the number of cards specified in the distribution principle to confirm whether the number of cards in the distribution channel matches the distribution principle.
[0101] Further, in an exemplary embodiment, as shown in FIG. 5 , step 206 includes steps 502 to 504 .
[0102] Step 502, obtaining the working data of the card output sensor.
[0103] Among them, a card output sensor is provided in the card dispensing machine. The card output sensor is arranged on one side of the card issuing channel close to the card box. It acts as a detector to detect the number of cards in the distribution channel and transmits the detection result as working data to the connected controller, so that the controller obtains the working data of the card output sensor.
[0104] Exemplarily, the card output sensor may be a scanner for scanning the distribution channel, and may scan the number of cards in the distribution channel. The card output sensor may also be a sensor for detecting the weight on the distribution channel, and may detect the weight of the cards in the distribution channel. Then, the controller may calculate the number of cards according to the weight of the cards. Furthermore, when the card dispensing machine includes a distribution roller, the card output dispensing machine may be arranged on the distribution roller, and the detection result may be obtained by detecting the rotation angle or rotation speed of the distribution roller, or detecting the number of cards carried by the distribution roller, as working data for the controller to calculate the number of cards.
[0105] Step 504: determine whether the number of cards in the allocation channel matches the allocation principle based on the working data.
[0106] Specifically, the controller calculates the number of cards in the distribution channel according to the working data of the card output sensor, and analyzes whether the number of cards matches the number of cards determined in the distribution principle, and can also determine whether the number of cards is consistent with the target number of cards in this round determined in the distribution principle.
[0107] In this embodiment, by setting up a card output sensor to detect the number of cards in the distribution channel, it is possible to ensure accurate monitoring of the distribution process, thereby facilitating the controller to analyze the distribution process, facilitate the controller to achieve accurate card distribution, and improve the reliability of the card distribution machine.
[0108] If the number of cards in the distribution channel matches the distribution principle, step 208 is executed to control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine.
[0109] Specifically, when the number of cards in the distribution channel matches the distribution principle, it indicates that the card distribution process is accurate, and the controller does not need to make additional adjustments to the card distribution process, and can directly control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispenser.
[0110] Furthermore, in an exemplary embodiment, as shown in FIG. 6 , after step 206 , the card distributing method of the card dispensing machine further includes steps 602 to 606 .
[0111] If it is confirmed that the number of cards in the allocation channel does not match the allocation principle, generally the number of cards in the allocation channel is less than the number of cards required in the allocation principle, then step 602 is executed to determine the reissue quantity based on the determined allocation principle and the number of cards in the allocation channel.
[0112] Specifically, the controller compares the number of cards according to the determined allocation principle with the number of cards in the allocation channel, and when the number of cards in the allocation channel is less than the number of cards according to the allocation principle, calculates the difference between the two and determines the reissue quantity.
[0113] Optionally, when the number of cards in the distribution channel is greater than the number of cards in the distribution principle, it indicates that the number of distributed cards is too large, and a reflux channel connected to the card box can be set in the distribution channel to place excess cards in the card box through the reflux channel.
[0114] Step 604, determining the cards to be reissued in this round from the cards in the card box according to the reissue quantity.
[0115] Specifically, according to the reissued quantity, the controller reselects the reissued quantity of cards from the card box and marks the selected cards as the reissued cards of this round. Optionally, the controller determines the reissued quantity of cards of this round by randomly selecting the reissued quantity of cards or selecting the reissued quantity of cards from the beginning or the end of the card arrangement.
[0116] Step 606, controlling the distributing roller of the card distributing machine to push the reissued cards of this round into the distributing channel of the card distributing machine.
[0117] Specifically, after determining the cards to be reissued in this round, the controller can control the rotation speed of the distribution roller of the card dispensing machine, so that the distribution roller presses the cards to be reissued in this round into the distribution channel, and replenishes the number of cards in the distribution channel so that the number of cards in the distribution channel matches the number of cards required by the distribution principle. After completing step 606, the process returns to step 206 to confirm again whether the number of cards in the distribution channel matches the distribution principle. If not, reissue again until it is confirmed that the number of cards in the distribution channel matches the distribution principle.
[0118] In this embodiment, the controller selects the cards to be reissued in this round and controls the distribution roller to reissue the cards in the distribution channel, thereby ensuring that the number of cards in the distribution process meets the requirements of the distribution principle and improving the reliability of the card distribution machine.
[0119] The card distribution method of the above-mentioned card distribution machine includes controlling the card washing motor of the card distribution machine to disrupt the order of cards in the card box, determining the target card of this round from each card based on a preset distribution principle, and transmitting the target card of this round from the card box to the distribution channel of the card distribution machine to confirm whether the number of cards in the distribution channel matches the distribution principle. If the number of cards in the distribution channel matches the distribution principle, the cards in the distribution channel are controlled to be transmitted to the card distribution platform of the card distribution machine. Among them, the card distribution machine includes a card washing motor and a card box, and a plurality of cards are placed in the card box. The order of the cards is disrupted by the card washing motor, and then the number of cards in the distribution channel is checked during the card distribution process, which reduces the possibility of abnormal card quantity, is conducive to ensuring that the card distribution machine completes accurate card distribution, ensures user experience, and improves the use efficiency of the card distribution machine.
[0120] In an exemplary embodiment, as shown in FIG. 7 , before step 202 , the card distributing method of the card dispensing machine further includes steps 702 and 704 .
[0121] Step 702, detecting the number of cards in the card box, and determining whether the number of cards in the card box meets a preset threshold.
[0122] The card dispensing machine further includes a card quantity sensor disposed on the card box, which is connected to the controller and is used to detect the number of cards in the card box. Specifically, the controller obtains data from the card quantity sensor to obtain the number of cards in the card box, and on this basis, compares the number of cards in the card box with a preset threshold to determine whether the number of cards in the card box meets the preset threshold. The preset threshold is a card quantity value stored in the controller, and the preset threshold can match a preset allocation principle.
[0123] Exemplarily, the card quantity sensor may be a gravity sensor or a cross-sectional scanner. In an exemplary embodiment, detecting the card quantity in the card box in step 702 includes step 802 or step 804 .
[0124] Step 802, obtaining the weight parameter of the card box, and obtaining the number of cards in the card box according to the weight parameter.
[0125] When the card quantity sensor is a gravity sensor, the card quantity sensor can be arranged on the bottom surface of the card box, and can detect the weight of the cards in the card box, or detect the total weight of the card box and the cards in the card box. The controller is connected to the card quantity sensor, obtains the weight parameter, and obtains the number of cards in the card box according to the weight parameter.
[0126] Exemplarily, when the gravity sensor detects the weight of the cards in the card box, the controller stores the weight data of a single card, and the detected weight parameter is analyzed with the weight data of a single card to obtain the number of cards in the card box. When the gravity sensor detects the total weight of the card box, the controller stores the weight data of a single card and the weight data of the card box, so the controller analyzes the detected weight parameter with the weight data of a single card and the weight data of the card box to obtain the number of cards in the card box.
[0127] Optionally, in step 804, the cross-sections of the cards in the card box are scanned and counted to obtain the number of cards in the card box.
[0128] When the card quantity sensor is a cross-sectional scanner, the card quantity sensor may be disposed on the inner side of the card box, opposite to the side of the stacked cards, and capable of scanning the side of the cards to obtain a scanning result. The controller is connected to the card quantity sensor, obtains the scanning result, and analyzes the scanning result, the scanning result includes a scanning image, and can scan and count the cross-section of the card in the scanning image to obtain the number of cards in the card box.
[0129] If the controller determines that the number of cards in the card box meets the preset threshold, step 202 is executed to control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box. If the number of cards in the card box does not meet the preset threshold, step 704 is executed to control the prompt device of the card dispensing machine to issue a card shortage prompt message.
[0130] Specifically, the card dispensing machine may further include a prompt device connected to a controller. When the number of cards in the card box of the card dispensing machine is less than a preset threshold, the controller sends a prompt instruction to the prompt device, and the prompt device generates card shortage prompt information according to the prompt instruction.
[0131] After executing step 208, the controller and various components of the card dispensing machine enter a dormant standby state to save power. Further, when the card dispensing machine is in the on state, if the controller does not receive a start instruction for a long time, the controller can control various components of the card dispensing machine to enter a dormant standby state or a shutdown state, and the long time can be 30 minutes, so that the card dispensing machine can save power.
[0132] Based on the same technical concept, the present application also provides a card dispensing machine, which includes a card washing motor, a card box, a distribution channel, a card distribution platform and a controller. A plurality of cards are placed in the card box, the card washing motor is arranged in the card box, and the distribution channel connects the card box and the card distribution platform;
[0133] There are multiple cards placed in the card box, and each card can be stacked, and the stacking order is disrupted under the drive of the card washing motor. Furthermore, the card box includes a card washing channel with both ends open, and the card washing motor is set at one end of the card washing channel. By randomly selecting and placing cards in the card washing channel under the drive of the card washing motor, the original arrangement order of the cards is changed, and the cards in the card washing channel are returned to the card stacking in the card box from the other end where the card washing motor is not set, ensuring that the number of cards remains unchanged.
[0134] The distribution channel is connected to the card box, and the card can be transferred from the card box to the distribution channel. A distribution device capable of transferring the card is provided in the distribution channel. The distribution device can transfer the designated card in the card box and place it in the distribution channel for easy transmission to the card distribution platform. Further, the distribution channel includes a conveyor belt, and the card placed in the distribution channel by the distribution device can be placed on the conveyor belt, and the conveyor belt conveys the card to the card distribution platform. Further, in one embodiment, the distribution device is a distribution roller, and a groove matching the thickness of the card is provided on the distribution roller, which can clamp the card from the card box and place it in the distribution channel during the operation of the distribution roller.
[0135] The card distribution platform is a platform in the card distribution machine for users to take cards. It is usually set on the top surface of the card distribution machine. Cards are transported from the distribution channel to the card distribution platform. Users can conveniently take cards to complete the card distribution of the card distribution machine.
[0136] The controller is connected to the card washing motor and the distribution channel, and can control the operation of the card washing motor and the distribution channel, specifically, controlling the rotation speed of the card washing motor to adjust the card washing process, and controlling the operation of the conveyor belt or the distribution device in the distribution channel to adjust the card distribution process. The controller can control various structures in the card distribution machine, and is used to transfer the cards in the card box to the card distribution platform based on the card distribution method of the card distribution machine described in the above embodiments.
[0137] In one embodiment, the card dispensing machine further comprises a distribution roller connected to the controller, the distribution roller being arranged at the connection between the distribution channel and the card box, and being used to send the cards in the card box to the distribution channel. The distribution roller can clamp or press the selected target card of this round, and transfer the target card of this round from the card box to the distribution channel for transmission.
[0138] The controller controls the rotation of the distribution roller of the card dispenser and can adjust the speed of the distribution roller. Each time the distribution roller rotates a certain angle, a corresponding number of cards can be pressed out. The controller can accurately press out the target card of this round by controlling the distribution roller, transfer it to the distribution channel of the card dispenser, and then transfer it to the card distribution platform through the distribution channel.
[0139] For example, the distribution roller is provided with a groove that matches the thickness or width of the card. When the distribution roller rotates, the card can be driven to move from the card box, and the card is rotated to the side where the distribution channel is located, and then the card is transferred to the distribution channel. Through the setting of the distribution roller, the target card of this round is transferred from the card box to the distribution channel to complete the distribution of the card.
[0140] In one embodiment, the card dispensing machine further includes a card output sensor disposed in the dispensing channel, and the card output sensor is connected to the controller.
[0141] Among them, a card output sensor is provided in the card dispensing machine. The card output sensor is arranged on one side of the card issuing channel close to the card box. It acts as a detector to detect the number of cards in the distribution channel and transmits the detection result as working data to the connected controller, so that the controller obtains the working data of the card output sensor.
[0142] Exemplarily, the card output sensor may be a scanner for scanning the distribution channel, and may scan the number of cards in the distribution channel. The card output sensor may also be a sensor for detecting the weight on the distribution channel, and may detect the weight of the cards in the distribution channel. Then, the controller may calculate the number of cards according to the weight of the cards. Furthermore, when the card dispensing machine includes a distribution roller, the card output dispensing machine may be arranged on the distribution roller, and the detection result may be obtained by detecting the rotation angle or rotation speed of the distribution roller, or detecting the number of cards carried by the distribution roller, as working data for the controller to calculate the number of cards.
[0143] In this embodiment, by setting up a card output sensor to detect the number of cards in the distribution channel, it is possible to ensure accurate monitoring of the distribution process, thereby facilitating the controller to analyze the distribution process, facilitate the controller to achieve accurate card distribution, and improve the reliability of the card distribution machine.
[0144] In one embodiment, the card dispensing machine further includes a card quantity sensor disposed on the card box, and the card quantity sensor is connected to the controller. The controller obtains data from the card quantity sensor to obtain the number of cards in the card box, and on this basis, compares the number of cards in the card box with a preset threshold value to determine whether the number of cards in the card box meets the preset threshold value. The preset threshold value is a card quantity value stored in the controller, and the preset threshold value can match a preset allocation principle.
[0145] In one embodiment, the card quantity sensor is a gravity sensor or a cross-sectional scanner.
[0146] When the card quantity sensor is a gravity sensor, the card quantity sensor can be arranged on the bottom surface of the card box, and can detect the weight of the cards in the card box, or detect the total weight of the card box and the cards in the card box. The controller is connected to the card quantity sensor, obtains the weight parameter, and obtains the number of cards in the card box according to the weight parameter.
[0147] When the card quantity sensor is a cross-sectional scanner, the card quantity sensor may be disposed on the inner side of the card box, opposite to the side of the stacked cards, and capable of scanning the side of the cards to obtain a scanning result. The controller is connected to the card quantity sensor, obtains the scanning result, and analyzes the scanning result, the scanning result includes a scanning image, and can scan and count the cross-section of the card in the scanning image to obtain the number of cards in the card box.
[0148] In order to better understand the above solution, a detailed explanation is given below in conjunction with a specific embodiment.
[0149] In one embodiment, the card dispensing machine includes a card washing motor, a card box, a dispensing channel, a card dispensing platform, a dispensing roller, a card output sensor, a card quantity sensor, and a controller. The following steps are performed during the card dispensing process:
[0150] 1. System initialization: When the card dispenser is started, it automatically performs a hardware self-test procedure, including sensor (card output sensor and card quantity sensor) calibration, card washing motor test, distribution roller test, and distribution channel conveyor belt test. After all components pass the self-test, the card dispenser enters the ready state.
[0151] 2. Card box detection: Install a card quantity sensor (gravity sensor or cross-sectional scanner) inside the card dispenser to monitor the number of cards in the card box in real time. When the number of cards is lower than the preset threshold, the system will issue a card shortage prompt through the prompt device (LED indicator and buzzer).
[0152] 3. Card washing process: The multi-axis motor (card washing motor) and the card track design set in the card box are used, combined with the random algorithm of the controller to achieve fast and uniform mixing of cards.
[0153] 4. Distribution card preparation and grabbing: According to the user's needs (distribution principle), the controller randomly selects the card to be distributed through an internal algorithm, and controls the distribution roller and distribution channel to operate accurately.
[0154] 5. Distribution detection: Use the card output sensor to confirm whether the distribution roller and distribution channel have successfully transferred the specified number of cards to the distribution channel. If it fails, repeat the grabbing action in step 4.
[0155] 6. Confirmation of the number of cards issued: The controller compares the number of cards in the distribution channel with the distribution principle to ensure that each user gets the correct number of cards. If there is a mismatch, the fourth step of grabbing is repeated.
[0156] 7. Card distribution: The cards are transported to the user-facing card distribution platform via the conveyor belt of the distribution channel, such as a designated area on the desktop or a designated card slot.
[0157] 8. End distribution and standby: After the card distribution is completed, the controller automatically stops distributing and enters low-power standby mode, waiting for the next round of instructions. If no instructions are received after 30 minutes, the card distribution control will shut down.
[0158] In this embodiment, the initialization speed and stability of the card dispensing machine are improved through initial detection; the accuracy and timeliness of the card box status detection are ensured by setting the card quantity sensor, and the distribution interruption caused by the vacant card box is reduced; the random algorithm is used to wash the cards, which enhances the randomness and fairness of the card washing and improves the reliability of the card dispensing machine; the controller can automatically detect whether the number of distributed cards meets the requirements, optimize the distribution process, and improve the efficiency and success rate of card distribution. At the same time, the user's operation is simplified, and the versatility of the card dispensing machine is improved.
[0159] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0160] Based on the same inventive concept, the embodiment of the present application also provides a card dispensing device for a card dispensing machine for implementing the card dispensing method of the card dispensing machine involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the card dispensing device for one or more card dispensing machines provided below can refer to the limitations of the card dispensing method for the card dispensing machine above, and will not be repeated here.
[0161] In an exemplary embodiment, as shown in FIG8 , a card dispensing device of a card dispensing machine is provided, comprising: a card washing module 820, a card taking module 840, a checking module 860 and a card issuing module 880, wherein:
[0162] The card washing module 820 is used to control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box;
[0163] The card taking module 840 is used to determine the target card of this round from various cards based on a preset allocation principle, and transfer the target card of this round from the card box to the allocation channel of the card dispensing machine;
[0164] A verification module 860 is used to confirm whether the number of cards in the distribution channel matches the distribution principle;
[0165] The card issuing module 880 is used to control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine when the number of cards in the distribution channel matches the distribution principle.
[0166] In one embodiment, there are two card washing motors, and the card washing module 820 is further used to control each card washing motor to run at different speeds, adjust the difference between the speeds of each card washing motor, arrange the cards in random order, and disrupt the order of the cards.
[0167] In one embodiment, a distribution roller is also provided between the card box and the distribution channel, and the card retrieval module 840 is also used to randomly select a specified number of target cards of this round from each card based on a preset distribution principle, and control the distribution roller of the card dispenser to press the target cards of this round into the distribution channel of the card dispenser.
[0168] In one embodiment, the verification module 860 is further configured to obtain working data of the card output sensor, and determine whether the number of cards in the distribution channel matches the distribution principle based on the working data.
[0169] In one embodiment, the card dispensing device of the card dispensing machine further includes a reissue module, which is used to determine the reissue quantity based on the determined allocation principle and the number of cards in the distribution channel after the verification module 860 confirms whether the number of cards in the distribution channel matches the allocation principle, if the number of cards in the distribution channel does not match the allocation principle. According to the reissue quantity, the reissued cards of this round are determined from the cards in the card box, the dispensing roller of the card dispensing machine is controlled to press the reissued cards of this round into the distribution channel of the card dispensing machine, and the verification module 860 is executed to confirm whether the number of cards in the distribution channel matches the allocation principle.
[0170] In one embodiment, the card dispensing device of the card dispensing machine further includes an initial verification module, which is used to detect the number of cards in the card box before the card washing module 820 controls the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box, and to determine whether the number of cards in the card box meets a preset threshold. If so, the card washing motor of the card dispensing machine is controlled to disrupt the order of the cards in the card box; if not, the prompt device of the card dispensing machine is controlled to issue a card shortage prompt message.
[0171] In one embodiment, the initial verification module is further used to obtain the weight parameter of the card box, and obtain the number of cards in the card box according to the weight parameter, or scan and count the cross-sections of the cards in the card box to obtain the number of cards in the card box.
[0172] Each module in the card distribution device of the card dispensing machine can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0173] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a card distribution method of a card dispensing machine is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0174] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0175] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0176] Control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box;
[0177] Based on the preset allocation principle, the target card of this round is determined from each card, and the target card of this round is transferred from the card box to the allocation channel of the card dispensing machine;
[0178] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0179] If so, control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine.
[0180] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0181] Control each card washing motor to run at different speeds, adjust the difference between the speeds of each card washing motor, arrange the cards in random order, and disrupt the order of the cards.
[0182] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0183] Based on the preset allocation principle, a specified number of target cards of this round are randomly selected from each card, and the allocation roller of the card dispenser is controlled to press the target cards of this round into the allocation channel of the card dispenser.
[0184] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0185] Obtain the working data of the card output sensor, and determine whether the number of cards in the distribution channel matches the distribution principle based on the working data.
[0186] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0187] If it is confirmed that the number of cards in the distribution channel does not match the distribution principle, the reissue quantity is determined based on the determined distribution principle and the number of cards in the distribution channel. According to the reissue quantity, the reissued cards for this round are determined from the cards in the card box, and the distribution roller of the card dispenser is controlled to press the reissued cards for this round into the distribution channel of the card dispenser, and confirm whether the number of cards in the distribution channel matches the distribution principle.
[0188] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0189] Detect the number of cards in the card box and determine whether the number of cards in the card box meets the preset threshold. If yes, control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box; if no, control the prompt device of the card dispensing machine to issue a card shortage prompt message.
[0190] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0191] Obtain the weight parameter of the card box, and obtain the number of cards in the card box according to the weight parameter; or scan and count the cross-sections of the cards in the card box to obtain the number of cards in the card box.
[0192] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0193] Control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box;
[0194] Based on the preset allocation principle, the target card of this round is determined from each card, and the target card of this round is transferred from the card box to the allocation channel of the card dispensing machine;
[0195] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0196] If so, control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] Control each card washing motor to run at different speeds, adjust the difference between the speeds of each card washing motor, arrange the cards in random order, and disrupt the order of the cards.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] Based on the preset allocation principle, a specified number of target cards of this round are randomly selected from each card, and the allocation roller of the card dispenser is controlled to press the target cards of this round into the allocation channel of the card dispenser.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] Obtain the working data of the card output sensor, and determine whether the number of cards in the distribution channel matches the distribution principle based on the working data.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] If it is confirmed that the number of cards in the distribution channel does not match the distribution principle, the reissue quantity is determined based on the determined distribution principle and the number of cards in the distribution channel. According to the reissue quantity, the reissued cards for this round are determined from the cards in the card box, and the distribution roller of the card dispenser is controlled to press the reissued cards for this round into the distribution channel of the card dispenser, and confirm whether the number of cards in the distribution channel matches the distribution principle.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] Detect the number of cards in the card box and determine whether the number of cards in the card box meets the preset threshold. If yes, control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box; if no, control the prompt device of the card dispensing machine to issue a card shortage prompt message.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] Obtain the weight parameter of the card box, and obtain the number of cards in the card box according to the weight parameter; or scan and count the cross-sections of the cards in the card box to obtain the number of cards in the card box.
[0209] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0210] Control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box;
[0211] Based on the preset allocation principle, the target card of this round is determined from each card, and the target card of this round is transferred from the card box to the allocation channel of the card dispensing machine;
[0212] Confirm whether the number of cards in the allocation channel matches the allocation principle;
[0213] If so, control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine.
[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0215] Control each card washing motor to run at different speeds, adjust the difference between the speeds of each card washing motor, arrange the cards in random order, and disrupt the order of the cards.
[0216] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0217] Based on the preset allocation principle, a specified number of target cards of this round are randomly selected from each card, and the allocation roller of the card dispenser is controlled to press the target cards of this round into the allocation channel of the card dispenser.
[0218] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0219] Obtain the working data of the card output sensor, and determine whether the number of cards in the distribution channel matches the distribution principle based on the working data.
[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0221] If it is confirmed that the number of cards in the distribution channel does not match the distribution principle, the reissue quantity is determined based on the determined distribution principle and the number of cards in the distribution channel. According to the reissue quantity, the reissued cards for this round are determined from the cards in the card box, and the distribution roller of the card dispenser is controlled to press the reissued cards for this round into the distribution channel of the card dispenser, and confirm whether the number of cards in the distribution channel matches the distribution principle.
[0222] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0223] Detect the number of cards in the card box and determine whether the number of cards in the card box meets the preset threshold. If yes, control the card washing motor of the card dispensing machine to disrupt the order of the cards in the card box; if no, control the prompt device of the card dispensing machine to issue a card shortage prompt message.
[0224] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0225] Obtain the weight parameter of the card box, and obtain the number of cards in the card box according to the weight parameter; or scan and count the cross-sections of the cards in the card box to obtain the number of cards in the card box.
[0226] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0227] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0228] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A card dispensing method for a card dispensing machine, characterized in that: The card dispensing machine comprises a card washing motor and a card box, wherein a plurality of cards are placed in the card box; the method comprises: Controlling a card washing motor of a card dispensing machine to disrupt the order of cards in the card box; Based on a preset allocation principle, determining a target card of this round from each of the cards, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine; Confirm whether the number of cards in the allocation channel matches the allocation principle; If yes, control the cards in the distribution channel to be transferred to the card distribution platform of the card dispensing machine.
2. The method according to claim 1, characterized in that The number of the card washing motors is two, and the card washing motors controlling the card dispensing machine disrupt the order of the cards in the card box, including: Controlling each of the card washing motors to run at different speeds; The difference between the rotation speeds of the card washing motors is adjusted, and the cards are arranged in a random order to disrupt the order of the cards.
3. The method according to claim 1, characterized in that A distribution roller is also provided between the card box and the distribution channel, and based on a preset distribution principle, the target card of this round is determined from each of the cards, and the target card of this round is transferred from the card box to the distribution channel of the card dispenser, including: Based on a preset allocation principle, a specified number of target cards for this round are randomly selected from each of the cards; The distributing roller of the card distributing machine is controlled to press the target card of this round to the distributing channel of the card distributing machine.
4. The method according to claim 3, characterized in that The confirming whether the number of cards in the allocation channel matches the allocation principle includes: Get the working data of the card output sensor; Based on the working data, it is determined whether the number of cards in the allocation channel matches the allocation principle.
5. The method according to claim 1, characterized in that: After confirming whether the number of cards in the allocation channel matches the allocation principle, the method further includes: If not, determining the reissue quantity based on the determined allocation principle and the quantity of cards in the allocation channel; According to the reissue quantity, determining the reissued cards for this round from the cards in the card box; The distribution roller of the card distribution machine is controlled to push the cards to be reissued in this round to the distribution channel of the card distribution machine, and the confirmation is performed as to whether the number of cards in the distribution channel matches the distribution principle.
6. The method according to claim 1, characterized in that Before the card washing motor of the card dispensing machine is controlled to disrupt the order of the cards in the card box, the method further comprises: Detecting the number of cards in the card box, and determining whether the number of cards in the card box meets a preset threshold; If yes, executing the card washing motor of the card dispensing machine to control the card dispensing machine to disrupt the order of the cards in the card box; If not, the prompt device of the card dispensing machine is controlled to issue a card missing prompt message.
7. The method according to claim 6, characterized in that The detecting the number of cards in the card box comprises: Obtaining a weight parameter of the card box, and obtaining the number of cards in the card box according to the weight parameter; or, The cross sections of the cards in the card box are scanned and counted to obtain the number of cards in the card box.
8. A card dispensing device for a card dispensing machine, characterized in that: The card dispensing machine comprises a card washing motor and a card box, wherein a plurality of cards are placed in the card box, and the device comprises: A card washing module, used to control a card washing motor of a card dispensing machine to disrupt the order of cards in the card box; A card taking module, used for determining a target card of this round from each of the cards based on a preset allocation principle, and transferring the target card of this round from the card box to the allocation channel of the card dispensing machine; A verification module, used to confirm whether the number of cards in the distribution channel matches the distribution principle; The card issuing module is used to control the cards in the distribution channel to be transmitted to the card distribution platform of the card dispensing machine when the number of cards in the distribution channel matches the distribution principle.
9. A card dispensing machine, characterized in that: The card dispensing machine comprises a card washing motor, a card box, a distribution channel, a card distribution platform and a controller, wherein a plurality of cards are placed in the card box, the card washing motor is arranged in the card box, and the distribution channel communicates the card box and the card distribution platform; The controller is connected to the card washing motor and the distribution channel, and is used to transfer the cards in the card box to the card distribution platform based on the card distribution method of the card dispensing machine according to any one of claims 1 to 7.
10. The card dispensing machine according to claim 9, characterized in that: The card dispensing machine further comprises a dispensing roller connected to the controller, wherein the dispensing roller is arranged at the connection between the dispensing channel and the card box, and is used for sending the cards in the card box to the dispensing channel.
11. The card dispensing machine according to claim 9, characterized in that: The card dispensing machine further comprises a card output sensor arranged on the distribution channel, and the card output sensor is connected to the controller.
12. The card dispensing machine according to claim 9, characterized in that: The card dispensing machine further comprises a card quantity sensor arranged on the card box, and the card quantity sensor is connected to the controller.
13. The card dispensing machine according to claim 12, characterized in that: The card quantity sensor is a gravity sensor or a cross-sectional scanner.