CN110448876B - Shooting detection method, device, equipment, system and storage medium - Google Patents

Shooting detection method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN110448876B
CN110448876B CN201810404682.0A CN201810404682A CN110448876B CN 110448876 B CN110448876 B CN 110448876B CN 201810404682 A CN201810404682 A CN 201810404682A CN 110448876 B CN110448876 B CN 110448876B
Authority
CN
China
Prior art keywords
real
time signal
shooting
signal amplitude
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810404682.0A
Other languages
Chinese (zh)
Other versions
CN110448876A (en
Inventor
谷周亮
李升�
刘强
张晓南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shenlan Changsheng Technology Co ltd
Original Assignee
Beijing Shenlan Changsheng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shenlan Changsheng Technology Co ltd filed Critical Beijing Shenlan Changsheng Technology Co ltd
Priority to CN201810404682.0A priority Critical patent/CN110448876B/en
Publication of CN110448876A publication Critical patent/CN110448876A/en
Application granted granted Critical
Publication of CN110448876B publication Critical patent/CN110448876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2220/00Measuring of physical parameters relating to sporting activity
    • A63B2220/17Counting, e.g. counting periodical movements, revolutions or cycles, or including further data processing to determine distances or speed
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2225/00Miscellaneous features of sport apparatus, devices or equipment
    • A63B2225/20Miscellaneous features of sport apparatus, devices or equipment with means for remote communication, e.g. internet or the like
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2243/00Specific ball sports not provided for in A63B2102/00 - A63B2102/38
    • A63B2243/0037Basketball

Abstract

The application relates to a shooting detection method, device, system, equipment and storage medium. The method comprises the following steps: when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value; when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result; and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished. By adopting the method, the accuracy of shooting detection can be improved.

Description

Shooting detection method, device, equipment, system and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a shooting detection method, device, apparatus, system, and storage medium.
Background
With the development of data processing technology and the continuous expansion of the demand of automatic shooting detection, automatic shooting detection products appear. The current shooting detection product can be hung on a net, and shooting detection is realized by detecting the vibration of the net.
However, the accuracy of the current shooting detection method is to be further improved.
Disclosure of Invention
In view of the above, it is necessary to provide a shot detection method, device, apparatus, system, and storage medium capable of improving shot detection accuracy.
A shot detection method, the method comprising:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
In one embodiment, the reading the real-time signal value at a third predetermined interval when the hit detection is finished, and detecting whether the shooting is finished according to the real-time signal value read after the hit detection is finished includes:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and respectively comparing the real-time signal amplitudes with a first end threshold; and counting the real-time signal amplitude value which is less than or equal to the first end threshold value, and determining that the shooting is finished when the counting value reaches a preset counting value.
In one embodiment, the counting real-time signal amplitudes less than or equal to the first end threshold comprises: counting real-time signal amplitudes that are successively less than or equal to the first end threshold.
In one embodiment, the reading the real-time signal value at a third predetermined interval when the hit detection is finished, and detecting whether the shooting is finished according to the real-time signal value read after the hit detection is finished includes:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes; comparing the real-time signal amplitude value with a second end threshold value; and counting the real-time signal amplitude sum which is less than or equal to the second ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
In one embodiment, the counting the real-time signal amplitude sums that are less than or equal to the second end threshold comprises: counting the real-time signal amplitudes that are successively less than or equal to the second end threshold.
In one embodiment, the reading the real-time signal value at a third predetermined interval when the hit detection is finished, and detecting whether the shooting is finished according to the real-time signal value read after the hit detection is finished includes:
when the hit detection is finished, reading real-time signal values at a third preset interval, and continuously calculating the amplitude area of the real-time signal by using each real-time signal value read after the hit detection is finished; comparing the real-time signal amplitude area to a third end threshold; and when the real-time signal amplitude area is smaller than or equal to the third end threshold, determining that the shooting is finished.
In one embodiment, the reading, when the hit detection is finished, the real-time signal value from the buffer at a third predetermined interval, and detecting whether the current shooting is finished according to the real-time signal value read after the hit detection is finished, includes:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; comparing the real-time signal amplitude fluctuation rate with a fourth ending threshold; and counting the real-time signal amplitude fluctuation rate which is less than or equal to the fourth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
In one embodiment, the counting the real-time signal amplitude fluctuation rate less than or equal to the fourth end threshold includes: counting the real-time signal amplitude fluctuation rates that are continuously less than or equal to the fourth ending threshold.
In one embodiment, the reading the real-time signal value at a third predetermined interval when the hit detection is finished, and detecting whether the shooting is finished according to the real-time signal value read after the hit detection is finished includes:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitudes and the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; weighting the real-time signal amplitude, the real-time signal amplitude and the real-time signal amplitude fluctuation rate obtained by each calculation to sequentially obtain a judgment parameter, and comparing the judgment parameter with a fifth ending threshold; and counting the judgment parameter sum which is less than or equal to the fifth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
In one embodiment, the counting the decision parameters less than or equal to the fifth end threshold includes: counting the number of decision parameters that are successively less than or equal to the fifth end threshold.
In one embodiment, the detecting a shooting action according to the real-time signal value comprises:
and sequentially calculating real-time signal amplitudes by using the read real-time signal values, comparing the real-time signal amplitudes with a first shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitudes are larger than or equal to the first shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the first shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as the adjusted first shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: when the hit detection is finished, the method further comprises: and weighting the first shooting threshold value and the signal amplitude area by utilizing the signal amplitude area obtained by calculating a plurality of real-time signal values after the hit detection is finished, and taking the weighting result as the adjusted first shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the first shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted first shooting threshold value.
In one embodiment, the detecting a shooting action according to the real-time signal value comprises:
and sequentially calculating real-time signal amplitudes by using the read real-time signal values, continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes, comparing the real-time signal amplitude sums with a second shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude sums are larger than or equal to the second shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the second shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as the adjusted second shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and weighting the second shooting threshold value and the signal amplitude area by utilizing the signal amplitude area obtained by calculating a plurality of real-time signal values after the hit detection is finished, and taking the weighting result as the adjusted second shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the second shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted second shooting threshold value.
In one embodiment, the detecting a shooting action according to the real-time signal value comprises:
and sequentially calculating real-time signal amplitude values by using the read real-time signal values, continuously calculating real-time signal amplitude fluctuation rate by using the real-time signal amplitude values, comparing the real-time signal amplitude fluctuation rate with a third shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude fluctuation rate is greater than or equal to the third shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the third shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as the adjusted third shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and weighting the third shooting threshold value and the signal amplitude area by utilizing the signal amplitude area obtained by calculating a plurality of real-time signal values after the hit detection is finished, and taking the weighting result as the adjusted third shooting threshold value.
In one embodiment, when the hit detection is finished, the method further includes: and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the third shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted third shooting threshold value.
In one embodiment, the performing hit detection according to the real-time signal amplitude area and outputting information indicating a hit detection result includes:
sequentially comparing the amplitude areas of all real-time signals calculated after the shooting action is detected with a hit threshold value;
if the real-time signal amplitude area is larger than or equal to the hit threshold value, outputting information representing shooting hit;
and if the amplitude area of each real-time signal calculated after the shooting action is detected is smaller than the hit threshold value, outputting information indicating that the shooting is not hit.
In one embodiment, when the hit detection is finished, the method further includes:
and calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained by calculation after the hit detection is finished, performing weighting processing on the hit threshold value and the signal amplitude mean value, and taking a weighting processing result as the adjusted hit threshold value.
In one embodiment, when the hit detection is finished, the method further includes:
and weighting the hit threshold and the signal amplitude area by utilizing the signal amplitude area obtained by calculating a plurality of real-time signal values after the hit detection is finished, and taking a weighting processing result as the adjusted hit threshold.
In one embodiment, when the hit detection is finished, the method further includes:
and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the hit threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted hit threshold value.
In one embodiment, when a shooting action is detected, the method further comprises:
and outputting information indicating the occurrence of the shooting action.
In one embodiment, the method further comprises:
collecting a voltage value of a power supply module according to a set time interval; determining the residual electric quantity of the power supply module according to the voltage value acquired each time; outputting information representing the remaining capacity.
In one embodiment, the method further comprises: and modifying the time interval according to the residual capacity of the battery module.
A shot detection apparatus, the apparatus comprising:
the shooting action detection module is used for reading a real-time signal value of a shooting detection sensor at a first preset interval when a trigger instruction is received or the last shooting detection is finished, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
the shooting hit detection module is used for reading the real-time signal values within a preset number at a second preset interval when shooting actions are detected, continuously calculating the real-time signal amplitude area by using the real-time signal values read after the shooting actions are detected, performing hit detection according to the real-time signal amplitude area and outputting information representing hit detection results, wherein the second preset interval is an integer not less than 0;
and the shooting end judging module is used for reading the real-time signal value at a third preset interval when the hit detection is finished, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
A shot detection apparatus comprising a shot detection sensor, a memory and a processor, the memory storing a computer program which when executed by the processor effects the steps of:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
A shot detection system comprising:
a shot detection device to: when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0; when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0; when the hit detection is finished, reading a real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0;
a control device for receiving information indicative of a hit detection result.
In one embodiment, when the shooting detection device detects a shooting action, the shooting detection device is further used for outputting information indicating that the shooting action occurs; the control device is also configured to receive the information indicative of the occurrence of a shooting action.
In one embodiment, the control device is further configured to perform shot count statistics based on the received information.
In one embodiment, the control device is further configured to determine, based on the received information, when a shooting action has taken place and/or a hit detection result has been generated; determining a video clip time period including the time at which the shooting action occurred and/or the hit detection result was generated; and according to the video clipping time period, clipping the video obtained by the camera.
In one embodiment, the control device is further configured to generate texture data based on the received information; and carrying out fusion processing on the texture data and the obtained video.
The shooting detection method, the shooting detection device, the computer equipment, the shooting detection system and the storage medium have high shooting detection accuracy. The applicant finds out through research that whether the shooting is hit or not is related to the signal amplitude area of the shooting detection sensor after the shooting action occurs, so that the hit detection is carried out according to the real-time signal amplitude area obtained through calculation, and the shooting hit result can be accurately identified. In addition, in practical application, shooting detection needs to be continuously carried out, and how to distinguish two shots directly influences the accuracy of shooting detection. If the next shooting detection is carried out after the hit detection is finished and a fixed time is waited, the waiting time is set to be too long, and the detection of the next shooting action can be missed; if the setting time is too short, the vibration of the net caused by the shooting at this time can be mistakenly detected as the shooting action. The applicant finds that after the hit detection is finished according to the technical scheme provided by the application, the change of the signal value of the shooting sensor is related to whether the shooting is finished or not, so that after the hit detection is finished, whether the shooting is finished or not can be accurately detected according to the signal value. In conclusion, according to the technical scheme provided by the application, one-shot shooting detection is divided into three stages, the shooting action is detected in the shooting action detection stage, so that the hit result can be accurately identified in the hit detection stage, the hit detection is finished, and whether the shooting is finished or not is dynamically detected according to the signal value obtained in real time, so that two-time shooting is effectively distinguished.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a shot detection method;
FIG. 2 is a schematic flow chart of a shot detection method in one embodiment;
FIG. 3 is a schematic flow chart of shot detection in another embodiment;
FIG. 4 is a block diagram showing the construction of a shot detector according to an embodiment;
FIG. 5 is an internal block diagram of a shot detection apparatus in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The shooting detection method provided by the application can be applied to the application environment shown in fig. 1. Wherein the shot detection device 102 communicates with the control device 104 over a network. When a trigger instruction is received or the last shooting detection is finished, the shooting detection equipment 102 detects shooting actions according to real-time signal values of shooting detection sensors; when a shooting action is detected, the shooting detection equipment 102 calculates the real-time signal amplitude area according to the real-time signal values within a preset number, performs hit detection according to the real-time signal amplitude area, and outputs information representing a hit detection result; when the hit detection is finished, the shooting detection equipment 102 detects whether the shooting is finished according to the real-time signal value; the control device 104 receives information indicating the result of the hit detection. Wherein, shooting detection equipment 102 is fixed in on the basket net, can realize the shooting and detect. The control device 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and may be implemented as an independent server or a server cluster composed of a plurality of servers. Communication between the shot detection device 102 and the control device 104 may be accomplished, but is not limited to, via bluetooth, infrared, wireless local area network, and the like.
In one embodiment, as shown in fig. 2, a shot detection method is provided, which is described by taking the method as an example applied to the shot detection apparatus in fig. 1, and comprises the following steps:
step 202, when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value.
And if the first preset interval is 0, the real-time signal values are read sequentially.
In the embodiment of the application, a processor of the shooting detection equipment collects the real-time signal value of the shooting detection sensor according to a preset sampling frequency, optionally, the collected real-time signal value is stored in a buffer, and when the real-time signal value needs to be used, the real-time signal value is read from the buffer in a first-in first-out reading mode.
Wherein the trigger instruction may be sent by the control device. For example, after the shooting detection device establishes a communication connection (e.g., bluetooth connection) with the control device, the control device sends a triggering instruction for shooting detection to the shooting detection device, and the shooting detection device starts shooting detection according to the triggering instruction. The triggering instruction may also be sent by the shot detection device itself. For example, the shooting detection device is in a sleep state, and when the processor of the shooting detection device detects that the signal amplitude of the shooting detection sensor reaches the wake-up threshold, the detection result is the trigger instruction.
The shooting detection sensor is a component of the shooting detection device, and may be, but is not limited to, an acceleration sensor.
The real-time signal value refers to a signal value acquired from a shooting detection sensor in real time according to a preset sampling frequency, and the acquired signal values are cached in a cache of shooting detection equipment according to a first-in first-out sequence.
And 204, when the shooting action is detected, reading the real-time signal values in the preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result.
And the second preset interval is an integer not less than 0, and takes 0 to represent that real-time signal values are read sequentially.
The predetermined number is determined according to actual needs, and can also be obtained through simulation.
The real-time signal amplitude area may be obtained by, but not limited to, performing integration processing on the real-time signal value.
The information indicating the hit detection result is information indicating a shot hit or information indicating a shot miss.
In the embodiment of the present application, outputting the information indicating the hit detection result may refer to sending the information to the control terminal, or may refer to outputting the information in an audible and visual manner.
And step 206, when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished.
And the third preset interval is an integer not less than 0, and the third preset interval is 0 and represents that real-time signal values are read sequentially.
In the embodiment of the present application, values of the first predetermined interval, the second predetermined interval, and the third predetermined interval may be the same or different, and this application does not limit this.
By adopting the shooting detection method, the shooting detection accuracy is higher. The applicant finds out through research that whether the shooting is hit or not is related to the signal amplitude area of the shooting detection sensor after the shooting action occurs, so that the hit detection is carried out according to the real-time signal amplitude area obtained through calculation, and the shooting hit result can be accurately identified. In addition, in practical application, shooting detection needs to be continuously carried out, and how to distinguish two shots directly influences the accuracy of shooting detection. If the next shooting detection is carried out after the hit detection is finished and a fixed time is waited, the waiting time is set to be too long, and the detection of the next shooting action can be missed; if the setting time is too short, the vibration of the net caused by the shooting at this time can be mistakenly detected as the shooting action. The applicant finds that after the hit detection is finished according to the technical scheme provided by the application, the change of the signal value of the shooting sensor is related to whether the shooting is finished or not, so that after the hit detection is finished, whether the shooting is finished or not can be accurately detected according to the signal value. In conclusion, according to the technical scheme provided by the application, one-shot shooting detection is divided into three stages, the shooting action is detected in the shooting action detection stage, so that the hit result can be accurately identified in the hit detection stage, the hit detection is finished, and whether the shooting is finished or not is dynamically detected according to the signal value obtained in real time, so that two-time shooting is effectively distinguished.
In the embodiment of the present application, there are various implementations of the step 206, and only a few implementations are illustrated below.
Implementation manner one of step 206: when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and respectively comparing the real-time signal amplitudes with a first end threshold; and counting the real-time signal amplitude value which is less than or equal to the first end threshold value, and determining that the shooting is finished when the counting value reaches a preset counting value.
The real-time signal amplitude is calculated according to a real-time signal value of the shooting detection sensor, and specifically is the square root of each vector signal value detected by the shooting detection sensor.
Preferably, in the above implementation, the real-time signal amplitudes that are successively less than or equal to the first end threshold are counted.
Implementation manner two of step 206:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes; comparing the real-time signal amplitude value with a second end threshold value; and counting the real-time signal amplitude sum which is less than or equal to the second ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
Preferably, in the above implementation, the real-time signal amplitude sums that are successively less than or equal to the second end threshold are counted.
Implementation manner three of step 206:
when the hit detection is finished, reading real-time signal values at a third preset interval, and continuously calculating the amplitude area of the real-time signal by using each real-time signal value read after the hit detection is finished; comparing the real-time signal amplitude area with a third end threshold; and when the real-time signal amplitude area is smaller than or equal to the third end threshold value, determining that the shooting is finished.
Implementation of step 206 is four:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; comparing the real-time signal amplitude fluctuation rate with a fourth ending threshold; and counting the real-time signal amplitude fluctuation rate which is less than or equal to a fourth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
The real-time signal amplitude fluctuation rate reflects the real-time change condition of the signal amplitude, and can be calculated according to the real-time signal amplitude and the mean value of the real-time signal amplitude, but not limited to.
Preferably, the real-time signal amplitude fluctuation rates that are successively less than or equal to the fourth end threshold are counted.
Implementation of step 206 is five:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitudes and the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; weighting the real-time signal amplitude, the real-time signal amplitude and the real-time signal amplitude fluctuation rate obtained by each calculation to sequentially obtain a judgment parameter, and comparing the judgment parameter with a fifth ending threshold; and counting the judgment parameter sum which is less than or equal to the fifth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
There are various ways to implement the weighting process, which is not limited in this application.
At the later stage of the shooting process, the vibration amplitude of the net is reduced, so that the parameter values of the signal amplitude, the amplitude fluctuation rate, the amplitude sum, the amplitude area and the like of the shooting detection sensor, which reflect the vibration amplitude, are reduced, and when the parameter values are reduced to a certain degree (if the count value reaches a preset count value or the real-time amplitude area is smaller than a third end threshold value), the shooting can be judged to be finished. Through the implementation mode, the shooting end is dynamically detected, the shooting processes can be accurately distinguished twice, and the shooting detection accuracy is improved.
In addition, the applicant finds that if the shooting is judged to be finished or not by adopting a counting and counting mode, the counting parameter value continuously accords with the threshold judgment condition, the detection efficiency is higher, and the detection accuracy can be ensured.
In the embodiment of the present application, the implementation manner of step 202 is various, and the following description is only an example.
Implementation manner one of step 202:
and sequentially calculating real-time signal amplitudes by using the read real-time signal values, comparing the real-time signal amplitudes with a first shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitudes are larger than or equal to the first shooting threshold value.
The applicant finds through research that a plurality of interference factors influence the accuracy of shooting detection. For example, the firmness of the net and the basket affects the signal value of the shooting detection sensor, and if the net and the basket are loosened, the signal value becomes larger. If the shooting threshold value is fixed and unchanged, the accuracy of shooting detection is influenced. Therefore, the method provided by the embodiment of the application can also calculate the signal amplitude mean value by using a plurality of real-time signal amplitudes calculated after the hit detection is finished, perform weighting processing on the first shooting threshold value and the signal amplitude mean value, and use the weighting processing result as the adjusted first shooting threshold value. Or the signal amplitude area can be calculated by utilizing a plurality of real-time signal values after the hit detection is finished, the first shooting threshold value and the signal amplitude area are subjected to weighting processing, and the weighting processing result is used as the adjusted first shooting threshold value. Wherein, the sampling point span for calculating the signal amplitude area can be determined according to actual needs. Or calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the first shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted first shooting threshold value.
The embodiment of the present application does not limit the specific implementation manner of the weighting processing.
Implementation manner two of step 202:
and sequentially calculating real-time signal amplitudes by using the read real-time signal values, continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes, comparing the real-time signal amplitude sums with a second shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude sums are larger than or equal to the second shooting threshold value.
The applicant finds through research that a plurality of interference factors influence the accuracy of shooting detection. For example, the firmness of the net and the basket affects the signal value of the shooting detection sensor, and if the net and the basket are loosened, the signal value becomes larger. If the shooting threshold value is fixed and unchanged, the accuracy of shooting detection is influenced. Therefore, the method provided by the embodiment of the application can also calculate a signal amplitude mean value by using a plurality of real-time signal amplitudes calculated after the hit detection is finished, perform weighting processing on the second shooting threshold value and the signal amplitude mean value, and use the weighting processing result as the adjusted second shooting threshold value. Or the signal amplitude area can be calculated by utilizing a plurality of real-time signal values after the hit detection is finished, the second shooting threshold value and the signal amplitude area are weighted, and the weighting processing result is used as the adjusted second shooting threshold value. Wherein, the sampling point span for calculating the signal amplitude area can be determined according to actual needs. Or calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the second shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted second shooting threshold value.
Implementation manner three of step 202:
and sequentially calculating real-time signal amplitude values by using the read real-time signal values, continuously calculating real-time signal amplitude fluctuation rate by using the real-time signal amplitude values, comparing the real-time signal amplitude fluctuation rate with a third shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude fluctuation rate is greater than or equal to the third shooting threshold value.
In the embodiment of the present application, there are various calculation methods for the real-time signal amplitude fluctuation rate, for example, the following formula is adopted to calculate the signal amplitude fluctuation rate:
Figure BDA0001646570150000141
wherein, svm (t) is the real-time signal amplitude, and E is the average value of the signal amplitudes at n sampling moments.
The applicant finds through research that a plurality of interference factors influence the accuracy of shooting detection. For example, the firmness of the net and the basket affects the signal value of the shooting detection sensor, and if the net and the basket are loosened, the signal value becomes larger. If the shooting threshold value is fixed and unchanged, the accuracy of shooting detection is influenced. Therefore, the method provided by the embodiment of the application may further calculate a signal amplitude mean value by using a plurality of real-time signal amplitudes calculated after the hit detection is finished, perform weighting processing on the third shooting threshold value and the signal amplitude mean value, and use a weighting processing result as the adjusted third shooting threshold value. Or the signal amplitude area can be calculated by utilizing a plurality of real-time signal values after the hit detection is finished, the third shooting threshold value and the signal amplitude area are weighted, and the weighting processing result is used as the adjusted third shooting threshold value. Wherein, the sampling point span for calculating the signal amplitude area can be determined according to actual needs. Or calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the third shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted third shooting threshold value.
In this embodiment of the present application, there are various implementation manners for performing hit detection according to the real-time signal amplitude area and outputting information indicating a hit detection result in step 204, for example: sequentially comparing the amplitude areas of all real-time signals calculated after the shooting action is detected with a hit threshold value; if the real-time signal amplitude area is larger than or equal to the hit threshold value, outputting information indicating shooting hit; and if the amplitude areas of all real-time signals calculated after the shooting action is detected are smaller than the hit threshold value, outputting information indicating that the shooting is not hit.
The applicant finds through research that a plurality of interference factors influence the accuracy of shooting detection. For example, the firmness of the net and the basket affects the signal value of the shooting detection sensor, and if the net and the basket are loosened, the signal value becomes larger. If the hit threshold is fixed and unchanged, the accuracy of shooting detection is affected. Therefore, the method provided by the embodiment of the application can also calculate the signal amplitude mean value by utilizing a plurality of real-time signal amplitudes calculated after the hit detection is finished, perform weighting processing on the hit threshold value and the signal amplitude mean value, and take the weighting processing result as the adjusted hit threshold value. Or weighting the hit threshold and the signal amplitude area by using the signal amplitude area calculated by a plurality of real-time signal values after the hit detection is finished, and taking the weighting result as the adjusted hit threshold. And calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the hit threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted hit threshold value.
In the embodiment of the application, when the threshold is adjusted, there are various ways to calculate the average value of the real-time signal amplitudes, and the average value of the signal amplitudes may be calculated by using continuous predetermined number of real-time signal amplitudes, or by using discontinuous predetermined number of real-time signal amplitudes. When the basket/net is unstable and shakes greatly, the average value of the real-time signal amplitude is also large, the threshold value is adjusted upwards according to the average value, otherwise, the threshold value is adjusted downwards, and the self-adaptive threshold value enables the technical scheme provided by the embodiment of the application to be suitable for more complex environments.
Based on any of the above method embodiments, when a shooting action is detected, the embodiments of the present application may further output information indicating that the shooting action occurred. The information can be sent to the control equipment, and information indicating that shooting action occurs can be output in an acousto-optic prompt mode.
According to the technical scheme provided by the embodiment of the application, shooting detection can be carried out by combining infrared signals. For example, when a hit is detected, an infrared detection signal is also combined, and if the infrared detection signal is not detected, a miss is confirmed.
Taking a triaxial acceleration sensor as an example of a shooting detection sensor, a processor of shooting detection equipment acquires acceleration values (namely real-time signal values) of the triaxial acceleration sensor according to a preset sampling frequency and buffers the acceleration values into a buffer, wherein the acceleration values at a sampling time t (t is 1, 2 and 3 … …) are ax(t),bx(t),cx(t) of (d). The shooting detection method provided by the embodiment of the application is shown in fig. 3 and comprises the following steps:
step 302, the shooting detection device utilizes the real-time acceleration value a read from the bufferx(t),bx(t),cx(t) calculating a real-time signal amplitude (SVM).
In the embodiment of the present application,
Figure BDA0001646570150000151
in this embodiment, the real-time signal values are sequentially read from the buffer in a first-in first-out manner.
The spatial three-dimensional acceleration values are combined into a vector, the direction of the acceleration can be ignored when the threshold value is judged, the accuracy of shooting detection cannot be influenced when the shooting detection equipment is hung on a basketball net in any posture, and the convenience and the feasibility in the practical application of products are improved.
Step 304, the shooting detection device compares the real-time SVM (t) with a first shooting threshold value; if the real-time svm (t) is greater than the first shooting threshold, go to step 306, otherwise, go back to step 302.
In the embodiment of the present application, it is assumed that at the sampling time t1, the SVM (t1) is greater than the first shooting threshold, indicating that a shooting action is detected.
Step 306, the shooting detection device calculates the real-time signal amplitude area (SMA) from the sampling time t2 to the sampling time t2+ n.
The sampling time t2 is the next sampling time to the sampling time t 1. It should be noted that the real-time SMA may also be calculated starting at sampling time t 1.
The sampling time t2+ N is the nth sampling time after the sampling time t2, where N is 1, 2, and … … N.
In the present embodiment, the first and second electrodes are,
Figure BDA0001646570150000161
step 308, the shooting detection device compares the real-time sma (t) with the hit threshold, if N is obtained before N, the real-time sma (t) is greater than the hit threshold, step 310 is executed, if N is obtained before N, the real-time sma (t) is less than the hit threshold, step 306 is returned, if N is obtained before N, the real-time sma (t) is still less than the hit threshold, and step 310 is executed.
In the embodiment of the application, the real-time sma (t) is greater than the hit threshold (indicating that the shooting is hit), or the real-time sma (t) is still less than the hit threshold (indicating that the shooting is not hit) after the predetermined time period is over, both of which indicate that the hit detection is over.
Wherein, the sampling time corresponding to the real-time sma (t) being greater than the hit threshold is denoted as t 3.
The sampling time t2+ N is denoted as t 4.
In step 310, the shooting detection apparatus compares the real-time svm (t) with the first end threshold from the sampling time t3 or t4, if the real-time svm (t) is less than the first end threshold, step 312 is executed, otherwise, step 316 is executed.
Step 312, control the counter to increment by 1, execute step 314.
And step 314, judging whether the count value of the counter reaches a preset count value, if not, returning to step 310, if so, determining that the shooting is finished, and returning to step 302.
Step 316, control the counter to clear and return to step 310.
According to the technical scheme, in order to guarantee normal work of shooting detection equipment, the electric quantity of the battery module of the shooting detection equipment needs to be monitored. Therefore, the shooting detection device can also collect the voltage value of the power supply module according to the set time interval; determining the residual electric quantity of the power supply module according to the voltage value acquired each time; and outputting information representing the remaining power.
It should be noted that the act of monitoring the power itself also consumes power. Accordingly, the time interval may be modified according to the remaining capacity of the battery module. When the electric quantity is sufficient, the electric quantity does not need to be monitored frequently, and when the electric quantity is less, the electric quantity needs to be monitored in time to prompt or alarm. Therefore, the corresponding relationship between the remaining capacity and the time interval can be established in advance, and the time interval can be modified according to the corresponding relationship.
For example, when the remaining capacity is monitored to be greater than 80%, the time interval is set to 30 minutes; setting the time interval to be 10 minutes when the residual capacity is more than 50% but less than 80%; when the remaining capacity is less than 10%, the set time interval is 30 seconds.
According to the technical scheme provided by the embodiment of the application, after the control equipment receives the information indicating the occurrence of the shooting action and/or the information indicating the hit result, the information can be utilized to carry out various applications.
Shot count statistics may be performed based on the received information.
Specifically, the counting of the shooting motion can be performed based on the received information indicating the occurrence of the shooting motion. Based on the received information indicating the hit results, hit/miss count statistics may be performed. The hit rate can be counted based on the received information indicating the occurrence of the shooting action and the information indicating the hit result.
The control device may display the statistical result via a display screen.
The time at which the shooting action occurs and/or the hit detection result is generated can be determined according to the received information; determining a video clip time period covering the time; and according to the video clipping time period, clipping the video obtained by the camera.
Taking the received information indicating the occurrence of the shooting action as an example, if the information carries time information, the time information may be the time at which the shooting action occurs, the time at which the information is received may be the time at which the shooting action occurs, and the time at which the shooting action occurs may be estimated based on the time at which the information is received. And taking 10 seconds as a video clipping time period by taking the time of the shooting action as a center, and clipping the video acquired by the camera to obtain a video clip containing the shooting action.
Texture data may be generated from the received information; and carrying out fusion processing on the texture data and the obtained video.
Taking the received information of the occurrence of the shooting action as an example, the generated texture data is texture data indicating the occurrence of the shooting action or texture data indicating the count of the shooting action. The texture data may be text information, graphic information, or information combining text and graphics.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a shot detection apparatus comprising: :
the shooting action detection module 401 is configured to, when a trigger instruction is received or shooting detection for the last time is finished, read a real-time signal value of a shooting detection sensor at a first predetermined interval, and perform shooting action detection according to the real-time signal value, where the first predetermined interval is an integer not less than 0;
a shooting hit detection module 402, configured to, when a shooting action is detected, read the real-time signal values within a predetermined number at a second predetermined interval, continuously calculate a real-time signal amplitude area using the real-time signal values read after the shooting action is detected, perform hit detection according to the real-time signal amplitude area, and output information indicating a hit detection result, where the second predetermined interval is an integer not less than 0;
a shooting end determining module 403, configured to read a real-time signal value at a third predetermined interval when the hit detection is ended, and detect whether the shooting is ended according to the real-time signal value read after the hit detection is ended, where the third predetermined interval is an integer not less than 0.
Above-mentioned shooting detection device, the rate of accuracy that the shooting detected is higher. The applicant finds out through research that whether the shooting is hit or not is related to the signal amplitude area of the shooting detection sensor after the shooting action occurs, so that the hit detection is carried out according to the real-time signal amplitude area obtained through calculation, and the shooting hit result can be accurately identified. In addition, in practical application, shooting detection needs to be continuously carried out, and how to distinguish two shots directly influences the accuracy of shooting detection. If the next shooting detection is carried out after the hit detection is finished and a fixed time is waited, the waiting time is set to be too long, and the detection of the next shooting action can be missed; if the setting time is too short, the vibration of the net caused by the shooting at this time can be mistakenly detected as the shooting action. The applicant finds that after the hit detection is finished according to the technical scheme provided by the application, the change of the signal value of the shooting sensor is related to whether the shooting is finished or not, so that after the hit detection is finished, whether the shooting is finished or not can be accurately detected according to the signal value. In conclusion, according to the technical scheme provided by the application, one-shot shooting detection is divided into three stages, the shooting action is detected in the shooting action detection stage, so that the hit result can be accurately identified in the hit detection stage, the hit detection is finished, and whether the shooting is finished or not is dynamically detected according to the signal value obtained in real time, so that two-time shooting is effectively distinguished.
In one embodiment, the shooting end determining module is specifically configured to:
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and respectively comparing the real-time signal amplitudes with a first end threshold; counting the real-time signal amplitude value which is less than or equal to the first end threshold value, and determining that the shooting is finished when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes; comparing the real-time signal amplitude value with a second end threshold value; counting the real-time signal amplitude sum which is less than or equal to the second ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading real-time signal values at a third preset interval, and continuously calculating the amplitude area of the real-time signal by using each real-time signal value read after the hit detection is finished; comparing the real-time signal amplitude area to a third end threshold; when the real-time signal amplitude area is smaller than or equal to the third end threshold, determining that the shooting is finished;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; comparing the real-time signal amplitude fluctuation rate with a fourth ending threshold; counting the real-time signal amplitude fluctuation rate which is less than or equal to the fourth ending threshold value, and determining that the current shooting is ended when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading real-time signal values at a third preset interval, sequentially calculating real-time signal amplitudes by using the real-time signal values read after the hit detection is finished, and continuously calculating the real-time signal amplitudes and the real-time signal amplitude fluctuation rate by using the real-time signal amplitudes; weighting the real-time signal amplitude, the real-time signal amplitude and the real-time signal amplitude fluctuation rate obtained by each calculation to sequentially obtain a judgment parameter, and comparing the judgment parameter with a fifth ending threshold; and counting the judgment parameter sum which is less than or equal to the fifth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
In one embodiment, when the shooting end determining module counts the real-time signal amplitude less than or equal to the first end threshold, the shooting end determining module is specifically configured to: counting real-time signal amplitudes that are successively less than or equal to the first end threshold.
In one embodiment, the shooting end determining module is specifically configured to count the real-time signal amplitude sums that are continuously less than or equal to the second end threshold when counting the real-time signal amplitude sums that are less than or equal to the second end threshold.
In one embodiment, when the shooting end determining module counts the real-time signal amplitude fluctuation rate less than or equal to the fourth end threshold, the shooting end determining module is specifically configured to: counting the real-time signal amplitude fluctuation rates that are continuously less than or equal to the fourth ending threshold.
In one embodiment, when the shooting end determining module counts the number of the determination parameters less than or equal to the fifth end threshold, the shooting end determining module is specifically configured to: counting the number of decision parameters that are successively less than or equal to the fifth end threshold.
In one embodiment, the shooting action detection module is specifically configured to: sequentially calculating real-time signal amplitudes by using the read real-time signal values, comparing the real-time signal amplitudes with a first shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitudes are larger than or equal to the first shooting threshold value; or sequentially calculating real-time signal amplitudes by using the read real-time signal values, continuously calculating real-time signal amplitude sums by using the real-time signal amplitudes, comparing the real-time signal amplitude sums with a second shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude sums are greater than or equal to the second shooting threshold value; or sequentially calculating real-time signal amplitude values by using the read real-time signal values, continuously calculating real-time signal amplitude fluctuation rate by using the real-time signal amplitude values, comparing the real-time signal amplitude fluctuation rate with a third shooting threshold value, and indicating that shooting actions are detected when the real-time signal amplitude fluctuation rate is greater than or equal to the third shooting threshold value.
In one embodiment, the system further comprises a shooting threshold adjusting module, configured to calculate a signal amplitude mean value using a plurality of real-time signal amplitudes calculated after hit detection is completed, perform weighting processing on the first shooting threshold and the signal amplitude mean value, and use a weighting processing result as an adjusted first shooting threshold; or calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the second shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as an adjusted second shooting threshold value; or calculating a signal amplitude mean value by using a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the third shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as the adjusted third shooting threshold value.
In one embodiment, the shot hit detection module is specifically configured to: sequentially comparing the amplitude areas of all real-time signals calculated after the shooting action is detected with a hit threshold value; if the real-time signal amplitude area is larger than or equal to the hit threshold value, outputting information representing shooting hit; and if the amplitude area of each real-time signal calculated after the shooting action is detected is smaller than the hit threshold value, outputting information indicating that the shooting is not hit.
In one embodiment, the system further includes a hit threshold adjusting module, configured to calculate a signal amplitude mean value using a plurality of real-time signal amplitudes calculated after hit detection is completed, perform weighting processing on the hit threshold and the signal amplitude mean value, and use a weighting processing result as the adjusted hit threshold.
In one embodiment, the shooting action detection module is further used for outputting information indicating that the shooting action occurs when the shooting action is detected.
In one embodiment, the system further comprises a power monitoring module, configured to: collecting a voltage value of a power supply module according to a set time interval; determining the residual electric quantity of the power supply module according to the voltage value acquired each time; outputting information representing the remaining capacity.
In one embodiment, the power monitoring module is further configured to modify the time interval according to a remaining power of the battery module.
For specific limitations of the shot detection device, reference may be made to the above limitations of the shot detection method, which are not described herein again. The various modules in the shot detection device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a shot detection apparatus is provided, the internal structure of which may be as shown in fig. 5. The shooting detection equipment comprises a processor, a shooting detection sensor connected with the processor, a memory and a network interface. The shooting detection sensor of the shooting detection device is used for detecting a net vibration signal, and can be but is not limited to an acceleration sensor. The processor of the shot detection apparatus is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory (i.e., a buffer). The nonvolatile storage medium stores a computer program. The internal memory provides an environment for running the computer program in the nonvolatile storage medium. The network interface of the shooting detection device is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a shot detection method.
In one embodiment, a control device is provided, the internal structure of which may be as shown in fig. 6. The control device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the control device is configured to provide computational and control capabilities. The memory of the control device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The network interface of the control device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a shot detection method. The display screen of the control device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the control device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer device, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configurations shown in fig. 5 and 6 are only block diagrams of some configurations relevant to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a particular device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a shot detection apparatus comprising a shot detection sensor, a memory having a computer program stored therein, and a processor which when executed implements the computer program:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
and when the hit detection is finished, reading the real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0.
In one embodiment, a shot detection system comprises:
a shot detection device to: when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, and carrying out shooting action detection according to the real-time signal value, wherein the first preset interval is an integer not less than 0; when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0; when the hit detection is finished, reading a real-time signal value at a third preset interval, and detecting whether the shooting is finished or not according to the real-time signal value read after the hit detection is finished, wherein the third preset interval is an integer not less than 0;
a control device for receiving information indicative of a hit detection result.
In one embodiment, when the shooting detection device detects a shooting action, the shooting detection device is further used for outputting information indicating that the shooting action occurs; the control device is also configured to receive the information indicative of the occurrence of a shooting action.
In one embodiment, the control device is further configured to perform shot count statistics based on the received information.
In one embodiment, the control device is further configured to determine, based on the received information, when a shooting action has taken place and/or a hit detection result has been generated; determining a video clip time period including the time at which the shooting action occurred and/or the hit detection result was generated; and according to the video clipping time period, clipping the video obtained by the camera.
In one embodiment, the control device is further configured to generate texture data based on the received information; and carrying out fusion processing on the texture data and the obtained video.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A shot detection method, the method comprising:
when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, wherein the real-time signal value is a net vibration signal, and shooting action detection is carried out according to the real-time signal value, and the first preset interval is an integer not less than 0;
when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0;
when the hit detection is finished, reading the real-time signal value at a third preset interval, and when the parameter of the real-time signal value read after the hit detection is finished is reduced to an end threshold value, determining that the shooting is finished, wherein the third preset interval is an integer not less than 0; wherein the parameter of the real-time signal value comprises at least one of a real-time signal amplitude, a real-time signal amplitude sum, a real-time signal amplitude area, and a real-time signal amplitude fluctuation rate.
2. The method of claim 1, wherein the reading the real-time signal value at a third predetermined interval when the hit detection is finished, and determining that the current shooting is finished when the parameter of the real-time signal value read after the hit detection is finished is reduced to a finishing threshold value comprises:
when the hit detection is finished, reading the real-time signal values at a third preset interval, sequentially calculating the real-time signal amplitude by using each real-time signal value read after the hit detection is finished, and respectively comparing the real-time signal amplitude with a first end threshold; counting the real-time signal amplitude value which is less than or equal to the first end threshold value, and determining that the shooting is finished when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading the real-time signal values at a third preset interval, sequentially calculating the real-time signal amplitude by using each real-time signal value read after the hit detection is finished, and continuously calculating the real-time signal amplitude sum by using each real-time signal amplitude; comparing the real-time signal amplitude value with a second end threshold value; counting the real-time signal amplitude sum which is less than or equal to the second ending threshold value, and determining that the current shooting is ended when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading the real-time signal values at a third preset interval, and continuously calculating the amplitude area of the real-time signal by using each real-time signal value read after the hit detection is finished; comparing the real-time signal amplitude area to a third end threshold; when the real-time signal amplitude area is smaller than or equal to the third end threshold, determining that the shooting is finished;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading the real-time signal values at a third preset interval, sequentially calculating the real-time signal amplitude by using each real-time signal value read after the hit detection is finished, and continuously calculating the real-time signal amplitude fluctuation rate by using each real-time signal amplitude; comparing the real-time signal amplitude fluctuation rate with a fourth ending threshold; counting the real-time signal amplitude fluctuation rate which is less than or equal to the fourth ending threshold value, and determining that the current shooting is ended when the counting value reaches a preset counting value;
alternatively, the first and second electrodes may be,
when the hit detection is finished, reading the real-time signal values at a third preset interval, sequentially calculating the real-time signal amplitude by using each real-time signal value read after the hit detection is finished, and continuously calculating the real-time signal amplitude and the real-time signal amplitude fluctuation rate by using each real-time signal amplitude; weighting the real-time signal amplitude, the real-time signal amplitude and the real-time signal amplitude fluctuation rate obtained by each calculation to obtain a judgment parameter, and comparing the judgment parameter with a fifth ending threshold; and counting the judgment parameters which are less than or equal to the fifth ending threshold value, and determining that the shooting is ended when the counting value reaches a preset counting value.
3. The method of claim 2, wherein counting the real-time signal amplitudes that are less than or equal to the first end threshold comprises: counting the real-time signal amplitudes that are successively less than or equal to the first end threshold;
said counting the real-time signal amplitude sums that are less than or equal to the second end threshold comprises: counting the real-time signal amplitudes that are successively less than or equal to the second end threshold;
said counting of said real-time signal amplitude fluctuation rate less than or equal to said fourth end threshold comprises: counting the real-time signal amplitude fluctuation rates that are continuously less than or equal to the fourth ending threshold;
the counting the decision parameter that is less than or equal to the fifth end threshold comprises: counting the number of the decision parameters that are successively less than or equal to the fifth end threshold.
4. The method according to any one of claims 1 to 3, wherein the detecting the shooting action according to the real-time signal value comprises:
sequentially calculating the real-time signal amplitude by using each read real-time signal value, comparing the real-time signal amplitude with a first shooting threshold value, and indicating that shooting action is detected when the real-time signal amplitude is greater than or equal to the first shooting threshold value;
alternatively, the first and second electrodes may be,
sequentially calculating the real-time signal amplitude values by using the read real-time signal values, continuously calculating the real-time signal amplitude value sum by using the real-time signal amplitude values, comparing the real-time signal amplitude value sum with a second shooting threshold value, and indicating that shooting action is detected when the real-time signal amplitude value sum is greater than or equal to the second shooting threshold value;
alternatively, the first and second electrodes may be,
and sequentially calculating the real-time signal amplitude by using each read real-time signal value, continuously calculating the real-time signal amplitude fluctuation rate by using each real-time signal amplitude, comparing the real-time signal amplitude fluctuation rate with a third shooting threshold value, and indicating that shooting action is detected when the real-time signal amplitude fluctuation rate is greater than or equal to the third shooting threshold value.
5. The method of claim 4, wherein when hit detection is complete, the method further comprises:
calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the shooting threshold value and the signal amplitude mean value, and taking a weighting processing result as an adjusted shooting threshold value;
alternatively, the first and second electrodes may be,
weighting the shooting threshold value and the signal amplitude area by utilizing the signal amplitude area obtained by calculating a plurality of real-time signal values after the hit detection is finished, and taking the weighting result as the adjusted shooting threshold value;
alternatively, the first and second electrodes may be,
and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the shooting threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as an adjusted shooting threshold value.
6. The method according to any one of claims 1 to 3, wherein the performing hit detection according to the real-time signal amplitude area and outputting information representing a hit detection result comprises:
sequentially comparing the real-time signal amplitude areas calculated after the shooting action is detected with a hit threshold value;
if the real-time signal amplitude area is larger than or equal to the hit threshold value, outputting information representing shooting hit;
and if the real-time signal amplitude areas calculated after the shooting action is detected are smaller than the hit threshold value, outputting information indicating that the shooting is not hit.
7. The method of claim 6, wherein when hit detection is complete, the method further comprises:
calculating a signal amplitude mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, performing weighting processing on the hit threshold value and the signal amplitude mean value, and taking a weighting processing result as an adjusted hit threshold value;
alternatively, the first and second electrodes may be,
weighting the hit threshold and the signal amplitude area by using the signal amplitude area calculated by the plurality of real-time signal values after the hit detection is finished, and taking a weighting processing result as the adjusted hit threshold;
alternatively, the first and second electrodes may be,
and calculating a signal amplitude fluctuation rate mean value by utilizing a plurality of real-time signal amplitudes obtained after the hit detection is finished, weighting the hit threshold value and the signal amplitude fluctuation rate mean value, and taking a weighting processing result as the adjusted hit threshold value.
8. A method according to any of claims 1 to 3, wherein when a shooting action is detected, the method further comprises:
and outputting information indicating the occurrence of the shooting action.
9. A method according to any one of claims 1 to 3, further comprising:
collecting a voltage value of a power supply module according to a set time interval;
determining the residual electric quantity of the power supply module according to the voltage value acquired each time;
outputting information representing the remaining capacity.
10. The method of claim 9, further comprising:
and modifying the time interval according to the residual electric quantity of the power supply module.
11. A shot detection device, the device comprising:
the shooting action detection module is used for reading a real-time signal value of a shooting detection sensor at a first preset interval when a trigger instruction is received or the last shooting detection is finished, wherein the real-time signal value is a net vibration signal, shooting action detection is carried out according to the real-time signal value, and the first preset interval is an integer not less than 0;
the shooting hit detection module is used for reading the real-time signal values within a preset number at a second preset interval when shooting actions are detected, continuously calculating the real-time signal amplitude area by using the real-time signal values read after the shooting actions are detected, performing hit detection according to the real-time signal amplitude area, and outputting information representing hit detection results, wherein the second preset interval is an integer not less than 0;
the shooting end judging module is used for reading the real-time signal value at a third preset interval when the hit detection is finished, and determining that the shooting is finished when the parameter of the real-time signal value read after the hit detection is finished is reduced to an end threshold value, wherein the third preset interval is an integer not less than 0; wherein the parameter of the real-time signal value comprises at least one of a real-time signal amplitude, a real-time signal amplitude sum, a real-time signal amplitude area, and a real-time signal amplitude fluctuation rate.
12. A shot detection apparatus comprising a shot detection sensor, a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 10.
14. A shot detection system, comprising:
a shot detection device to: when a trigger instruction is received or the last shooting detection is finished, reading a real-time signal value of a shooting detection sensor at a first preset interval, wherein the real-time signal value is a net vibration signal, and shooting action detection is carried out according to the real-time signal value, and the first preset interval is an integer not less than 0; when shooting action is detected, reading the real-time signal values in a preset number at a second preset interval, continuously calculating the amplitude area of the real-time signal by using the real-time signal values read after the shooting action is detected, performing hit detection according to the amplitude area of the real-time signal, and outputting information representing a hit detection result, wherein the second preset interval is an integer not less than 0; when the hit detection is finished, reading the real-time signal value at a third preset interval, and when the parameter of the real-time signal value read after the hit detection is finished is reduced to an end threshold value, determining that the shooting is finished, wherein the third preset interval is an integer not less than 0; wherein the parameter of the real-time signal value comprises at least one of a real-time signal amplitude, a real-time signal amplitude sum, a real-time signal amplitude area and a real-time signal amplitude fluctuation rate;
a control device for receiving information indicative of a hit detection result.
15. The shot detection system of claim 14, wherein when the shot detection device detects a shot, the shot detection device is further configured to: outputting information indicating that a shooting action occurs;
the control device is further configured to: and receiving the information indicating the occurrence of the shooting action.
16. The shot detection system of claim 14 or 15, wherein the control device is further configured to: and shooting counting statistics is carried out according to the received information.
17. The shot detection system of claim 14 or 15, wherein the control device is further configured to: determining the time for shooting action and/or generating hit detection result according to the received information; determining a video clip time period that covers the time at which the shooting action occurred and/or at which a hit detection result was generated; and according to the video clipping time period, clipping the video obtained by the camera.
18. The shot detection system of claim 14 or 15, wherein the control device is further configured to: generating texture data according to the received information; and carrying out fusion processing on the texture data and the obtained video.
CN201810404682.0A 2018-04-28 2018-04-28 Shooting detection method, device, equipment, system and storage medium Active CN110448876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810404682.0A CN110448876B (en) 2018-04-28 2018-04-28 Shooting detection method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810404682.0A CN110448876B (en) 2018-04-28 2018-04-28 Shooting detection method, device, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN110448876A CN110448876A (en) 2019-11-15
CN110448876B true CN110448876B (en) 2021-08-17

Family

ID=68471557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810404682.0A Active CN110448876B (en) 2018-04-28 2018-04-28 Shooting detection method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN110448876B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111167105B (en) * 2019-11-29 2021-08-06 北京深蓝长盛科技有限公司 Shooting detection method, device, equipment, system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NZ733111A (en) * 2010-11-19 2019-03-29 Isolynx Llc Associative object tracking systems and methods
CA2931625C (en) * 2013-06-12 2017-07-18 ShotTracker, Inc. Basketball shot-tracking system
CN107305138A (en) * 2016-04-20 2017-10-31 李斌 Basketball action identification method and system based on wrist attitude detection
US10252145B2 (en) * 2016-05-02 2019-04-09 Bao Tran Smart device
CN107042012B (en) * 2017-06-07 2019-01-15 简极科技有限公司 A kind of intelligence basketball shooting track monitoring method

Also Published As

Publication number Publication date
CN110448876A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN113031840B (en) False triggering prevention method and device for wrist-worn device, electronic device and storage medium
JP2012522324A (en) Tap direction detection algorithm using accelerometer
CN106510720B (en) User state prompting method and device
CN107885544B (en) Application program control method, device, medium and electronic equipment
CN104586399A (en) Training supporting apparatus and system for supporting training of walking and/or running
CN107302633B (en) Application control method, device, storage medium and electronic equipment
TW201405102A (en) Sensor and method for relating time information to measurement data to be detected by a sensor
CN110448876B (en) Shooting detection method, device, equipment, system and storage medium
CN107533371A (en) Controlled using the user interface for influenceing gesture
CN107729144B (en) Application control method and device, storage medium and electronic equipment
CN111167105B (en) Shooting detection method, device, equipment, system and storage medium
CN111473887B (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN110955580B (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN112237426A (en) Method and device for detecting steps, detection equipment and computer storage medium
WO2023134663A1 (en) Motion identification method, apparatus, electronic device, and readable storage medium
CN108307054B (en) Falling information detection method and related product
CN115355992A (en) Temperature determination method and device and electronic equipment
CN107534700B (en) Information input method for terminal and terminal
EP3234632B1 (en) Detection of acoustic events
US20130342469A1 (en) Touch intensity based on accelerometer readings
CN108259669A (en) The detection method and Related product of drop information
CN108874657A (en) The method, apparatus and computer storage medium that recognition of face host is tested
CN113850160A (en) Method and device for counting repeated actions
CN112631427A (en) Method and device for processing communication information, intelligent wearable device and storage medium
CN108600540B (en) Fall detection method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant