Automatic sensing scoring method and device for cornhole game, equipment and medium
View Patent ↗Embodiments of the present disclosure belong to the field of automatic scoring and relate to an automatic sensing scoring method for a cornhole game, including: continuously transmitting infrared light beams at relative positions of each of target holes and receiving the infrared light beams in real time; when it is detected that the infrared light beams are shielded, amplifying an electrical signal output by a receiving end through an operational amplifier, and suppressing high-frequency interference through a low-pass filter with a preset cutoff frequency while retaining envelope changes of a shielding event to obtain a scoring trigger signal; converting, by a microprocessor, the scoring trigger signal into a corresponding score according to a preset “hole-score” mapping table, outputting the updated cumulative score in real time through a digital display screen. The present disclosure further provides an automatic sensing scoring device for a cornhole game, equipment and a medium.
1 . An automatic sensing scoring method for a cornhole game, applied to a game board provided with a plurality of target holes, comprising the following steps:
continuously transmitting infrared light beams at relative positions of each of target holes and receiving the infrared light beams in real time;
recording a baseline level in an unshielded state; and updating a shielding judgment threshold regularly to compensate for ambient light changes and control a misjudgment rate within a preset reliability index;
when it is detected that the infrared light beams are shielded, amplifying an electrical signal output by a receiving end through an operational amplifier, and suppressing high-frequency interference through a low-pass filter with a preset cutoff frequency while retaining envelope changes of a shielding event to obtain a scoring trigger signal;
converting, by a microprocessor, the scoring trigger signal into a corresponding score according to a preset “hole-score” mapping table and adding the corresponding score to a cumulative score of a current contestant; and
during a preset scoring period, outputting an updated cumulative score in real time through a digital display screen.
2 . The automatic sensing scoring method for the cornhole game according to claim 1 , wherein a transmitting end and the receiving end of the infrared light beams are fixed by an elastic shock-proof bracket including a rubber shock-absorbing pad and an adjustable optical axis kit to offset an optical axis deviation caused by a throwing impact.
3 . The automatic sensing scoring method for the cornhole game according to claim 1 , wherein in the step of converting, by the microprocessor, the scoring trigger signal into the corresponding score according to the preset “hole-score” mapping table and adding the score to the cumulative score of the current contestant, when generating the score, the microprocessor further drives a ring LED and/or buzzer according to a preset visual and/or auditory prompt mode to prompt a scoring event.
4 . The automatic sensing scoring method for the cornhole game according to claim 1 , wherein after the step of during the preset scoring period, outputting the updated cumulative score in real time through the digital display screen, the method further comprises:
sending the cumulative score periodically to a mobile terminal in a form of a Bluetooth Low Energy broadcast packet to support remote statistics and sharing.
5 . The automatic sensing scoring method for the cornhole game according to claim 1 , wherein, in the step of when it is detected that the infrared light beams are shielded, amplifying the electrical signal output by the receiving end through the operational amplifier, and suppressing the high-frequency interference through the low-pass filter with a preset cutoff frequency while retaining envelope changes of the shielding event to obtain the scoring trigger signal, the method further comprises:
after shielding is detected, writing a corresponding trigger event into a circular queue; and
performing circular queue parallel processing on scoring trigger signals of the plurality of target holes, so that an overall scoring delay is kept within a delay range that meets real-time requirements.
6 . The automatic sensing scoring method for the cornhole game according to claim 1 , wherein the method further comprises:
when it is detected that a battery voltage is lower than a preset threshold, controlling the digital display screen to prompt at a preset flash frequency and suspending a scoring process until a battery is replaced or restored to a normal voltage.
7 . Computer equipment, comprising a memory and a processor, wherein the memory stores computer-readable instructions therein, and when executing the computer-readable instructions, the processor implements the steps of the automatic sensing scoring method for the cornhole game as described in claim 1 .
8 . A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-readable instructions therein, and when executed by a processor, the computer-readable instructions implement the steps of the automatic sensing scoring method for the cornhole game as described in claim 1 .