Ball throwing test method and device
Technical Field
The invention belongs to the field of ball throwing tests, and particularly relates to a method and a device for realizing automatic, standardized and intelligent ball throwing tests by using a camera and a machine vision technology.
Background
The results of the current ball throwing test are mostly measured by manual measurement and infrared equipment, the measurement modes have the problems of inconsistent test standards, incapability of automatically corresponding testers and test results, low test efficiency, large workload of the testers and the like, and particularly, the infrared measurement equipment needs to work with electricity, so that certain danger is brought to the safety of the testers participating in the test.
The test result of manual measurement is directly related to the basic quality and skill of the measuring staff, and the measured results are inconsistent due to inconsistent subjective standards of different measuring staff. Meanwhile, the precision of measuring tools such as a tape measure and the like can also influence the measuring result. Under the condition that a large number of testers participate in the test together, the workload of the testers is large, the results need to be recorded manually, and the test efficiency is low.
Infrared sensing measurements rely on the cooperative operation of an infrared transmitter and an infrared receiver. When the ball is located between the infrared transmitter and the infrared receiver, the infrared rays transmitted by the infrared transmitter are shielded by the ball, the infrared receiver cannot receive infrared signals, and the shielded position is the position of the ball, so that the score is calculated. The system also calculates the score when the infrared ray is shielded by the non-measuring object. And the result and the precision of the infrared measurement are related to the density of the infrared emission matrix. The infrared sensing measuring equipment has the common problem that the infrared sensing measuring equipment is easily interfered by foreign matters to misreport scores, and the infrared sensing equipment for the ball throwing test has low measuring score precision due to the cost.
The common problem of the ball throwing test method and the ball throwing test device is that the ball throwing score cannot be accurately measured based on a consistent standard, the automation and intelligence degree is low, the test efficiency is low, and the workload of a measurer is large. Particularly, the ball throwing device based on sensing measurement needs to work in an electrified way, and certain danger is brought to the personal safety of testing personnel.
Disclosure of Invention
The invention aims to provide a ball throwing test method and a ball throwing test device, which change the performance measurement mode of the current ball throwing test, use a camera and machine vision to judge the rule and measure the performance of the ball throwing test, and realize the automation, standardization and intellectualization of the ball throwing test. The invention breaks through the limitation that the traditional ball throwing test technology cannot carry out intelligent test and result measurement, realizes the intellectualization of the ball throwing test by introducing the camera and the machine vision technology into the ball throwing test method and the device, improves the ball throwing test efficiency and improves the ball throwing result measurement precision. Particularly, the method and the corresponding device of the invention work in a non-contact way, thereby eliminating the safety problem caused by the need of electrified work of the traditional ball throwing test device or apparatus and realizing the safe ball throwing test method and the device.
The invention is realized by adopting the following technical scheme.
The ball throwing test method comprises the following steps:
1, installing a camera: and installing a throwing test video acquisition camera. When the camera is installed, attention needs to be paid to the fact that the visual field of the camera needs to effectively cover a ball throwing test area.
2, setting a ball throwing test area: the ball-throwing test area is a ground area where ball-throwing tests are performed. A plurality of ball throwing test areas which are not overlapped can be arranged in the visual field range of one camera lens, and the ball throwing tests can be simultaneously carried out in the plurality of ball throwing test areas. The test is effective when the tester tests in the ball throwing test area, and the tester leaves the field after the tester leaves the ball throwing test area.
3, setting a throwing start line: the starting line of the ball throwing is the reference line for the ball throwing and the measurement of the achievement. The tester must throw the ball after the start line of the ball, press the line and throw the ball or throw the ball before the start line of the ball.
4, the tester enters a ball throwing test area: and the person participating in the ball throwing test enters a ball throwing test area for testing.
If the current test mode is the test mode, the test can be carried out only after the identity of the tester is identified. The identity of a tester in a ball throwing test area is identified by one of the modes of face identification, iris identification, palm print identification, fingerprint identification, voiceprint identification, gait identification, card number identification and the like, and then the tester enters a test ready state.
If the training mode is currently in use, the identity of the tester is not required to be recognized. After the tester enters the ball throwing test area, the fact that the tester enters the ball throwing test area is recognized through analyzing the video of the camera, and the tester enters a test ready state.
And 5, informing a tester to start a ball throwing test: after entering a test ready state, the tester is prompted to start a ball throwing test in modes of voice, video, light and the like.
6, collecting a ball throwing test video: a tester conducts a ball throwing test, and a ball throwing test video is collected through a camera.
7, analyzing the throwing test video calculation result: and carrying out image analysis on the throwing test video.
Before the ball is thrown, if one or two feet of the tester press or cross the starting line of the ball throwing, the tester judges to step on the line, enters a line stepping state and prompts the tester to step on the line, and the tester recovers the two feet to the starting line of the ball throwing and then resets to a test ready state.
The tester then faces the throwing direction and throws the ball forward. And then judging the normative of the actions in the test process, and if the test process has a foul, the test result is invalid.
And then calculating the vertical distance between the ball landing point and the ball throwing initial line as the ball throwing test result.
And 8, informing the tester of the test result: the tester finishes the ball throwing test, analyzes the ball throwing video, calculates the ball throwing score or the foul condition, and informs the tester of the ball throwing test result in the modes of voice, video, light and the like.
The invention also discloses a ball throwing test device, which comprises:
the dynamically set ball throwing test area is a ground area for ball throwing test and is an area divided on the ground before the test.
The dynamically set ball throwing starting line is a straight line set on the ground before testing and is a reference line for ball throwing and score measurement. The tester needs to throw the ball after the ball throwing starting line, and the fouls are both when the tester presses the line and before the ball throwing starting line. During the throwing process, the feet and other parts of the body touch the starting line or the ground before the starting line all make an infraction.
The camera is used for collecting a ball throwing test video.
The tester identity identification module identifies the identity information of the tester through the face, the iris, the palm print, the fingerprint, the voiceprint, the gait, the card number and the like.
The intelligent ball throwing analysis module analyzes the ball throwing test video collected by the camera, identifies testers entering a ball throwing test area, calculates the score or foul condition of the ball throwing, and is a core module for performing intelligent analysis and test logic processing on the ball throwing test video.
And the interaction module prompts the current state of the tester and informs the tester of the test result.
And the communication module is used for connecting the modules and the equipment into a communication network.
The camera, the tester identity recognition module, the ball throwing intelligent analysis module and the interaction module are connected into a communication network through the communication module. The intelligent ball throwing analysis module analyzes the video collected by the camera to identify whether a tester enters a ball throwing test area. Furthermore, in the test mode, the test can be started after the identity of the tester is identified by the tester identity identification module, and in the training mode, the test can be directly started. Furthermore, the camera collects the video of the test process, and the intelligent ball throwing analysis module analyzes the video of the test process and calculates the score or foul condition of the ball throwing. Furthermore, the intelligent ball throwing analysis module sends the current test state and the test result to the interaction module, and the interaction module prompts the current state of a tester and informs the tester of the test result.
The device realizes the automatic, standardized and intelligent ball throwing test.
Drawings
Fig. 1 shows a schematic flow chart of a ball-throwing testing method provided by an embodiment of the invention.
Fig. 2 is a schematic structural diagram of a ball-throwing testing device provided by an embodiment of the invention, wherein: the intelligent ball throwing test system comprises a 201 ball throwing test area, a 202 ball throwing starting line, a 203 camera, a 204 tester identity recognition module, a 205 ball throwing intelligent analysis module, a 206 interaction module and a 207 communication module.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
The present embodiment discloses a method for ball-throwing test, please refer to fig. 1, which includes:
step S101, installing a camera: and installing a throwing test video acquisition camera. When the camera is installed, attention needs to be paid to the fact that the visual field of the camera needs to effectively cover a ball throwing test area, and objects do not need to be shielded between the ball throwing test area and the camera.
Step S102, setting a ball throwing test area: the ball-throwing test area is a ground area where ball-throwing tests are performed. A plurality of ball throwing test areas which are not overlapped can be arranged in the visual field range of one camera lens, and the ball throwing tests can be simultaneously carried out in the plurality of ball throwing test areas. The test is effective when the tester tests in the ball throwing test area, and the departure and the test are finished when the tester exits the ball throwing test area.
Step S103, setting a ball throwing start line: the starting line of the ball throwing is the reference line for the ball throwing and the measurement of the achievement. The starting line of the ball throwing is a straight line, and the tester needs to go out the ball after the starting line of the ball throwing, press the line by two feet or go out the ball before the starting line of the ball throwing all make a foul.
Step S104, the tester enters a ball throwing test area: and the person participating in the ball throwing test enters a test area to perform the test.
If the training mode is currently in use, the identity of the tester is not required to be recognized. After the tester enters the ball throwing test area, the fact that the tester enters the set ball throwing test area is recognized through analyzing the video of the camera, and the tester enters a test ready state.
If the current test mode is the test mode, the test can be carried out only after the identity of the tester is identified. And S104.1, identifying the identity of the tester, identifying the entry of the tester in the set ball throwing test area by analyzing the video of the camera after the tester enters the ball throwing test area, acquiring a face picture of the tester, analyzing the face picture by using a convolution model, extracting face characteristics, comparing the face characteristics with a user record of a tester database, identifying the identity of the tester in the ball throwing test area, and entering a test ready state.
Step S105, notifying the tester to start the ball throwing test: after entering a test ready state, the tester is prompted to start a ball throwing test in modes of voice, video, light and the like.
Step S106, collecting a ball throwing test video: the tester performs a ball throwing test. And collecting a ball throwing test video through a camera.
Step S107, analyzing the throwing test video calculation scores: and carrying out image analysis on the throwing test video.
Before a ball is thrown, if one or two feet of the tester press or cross the starting line of the ball throwing, the tester judges to step on the line, enters a line stepping state and prompts the tester to step on the line, and after the tester withdraws the two feet to the starting line of the ball throwing, the tester is reset to a test ready state.
And (5) analyzing the landing point of the ball after the tester takes out the ball. And respectively calculating a motion curve before the ball falls to the ground and a motion curve after the ball falls to the ground, wherein the intersection point of the two curves is the landing point of the ball.
And then judging the normativity of the test process action: when the tester faces the throwing direction, the two feet stand in front and back (or left and right) behind the throwing line, the ball is held by the two hands until the head is slightly tilted backwards, and the ball is thrown forwards. During the throwing process, the feet and other parts of the body touch the starting line or the ground before the starting line all make an infraction. If the result is judged to be a violation, the test result is invalid.
And then calculating the vertical distance between the ball landing point and the ball throwing initial line as the ball throwing test result.
Step S108, informing a tester of the test result: the tester finishes the ball throwing test, analyzes the ball throwing video, calculates the ball throwing score or the foul condition, and informs the tester of the ball throwing test result in the modes of voice, video, light and the like.
The present embodiment does not limit the type and model of the camera used in the ball throwing test, preferably, the camera is a general monocular camera, and in the case that no particular description is made, the specific type and model of the camera do not limit the technical solution of the present embodiment, and it should be understood as an example for facilitating the understanding of the technical solution by those skilled in the art.
The embodiment does not limit the test mode in the method, preferably, a training mode and a test mode are set, the training mode does not need to identify the identity of a tester, and the test can be started only by entering the test area; the test mode requires that a tester enters the test area and recognizes the identity information of the tester before starting the test, and in the case of no particular claims, the specific test mode does not limit the technical solution of the embodiment, and it should be understood as an example for facilitating the understanding of the technical solution by those skilled in the art.
The embodiment does not limit the identification manner, preferably, a face identification manner is used, and also iris identification, palm print identification, fingerprint identification, voiceprint identification, gait identification, card number identification and the like can be used, and in a case that no particular description is made, the specific identification manner does not limit the technical scheme of the embodiment, and should be understood as an example for facilitating the understanding of the technical scheme by those skilled in the art.
The present embodiment does not limit the rules for determining various types of fouls when throwing a ball, and specific rules for determining various types of fouls when throwing a ball do not limit the technical solution of the present embodiment unless otherwise specified, and those skilled in the art should understand that the present embodiment is an example for facilitating understanding of the technical solution.
The present embodiment does not limit the calculation method of the landing place of the ball, and the specific calculation method of the landing place of the ball does not limit the technical solution of the present embodiment unless otherwise specified, and it should be understood that the present embodiment is an example for facilitating understanding of the technical solution by those skilled in the art.
The present embodiment does not limit the method of calculating a ball-throwing result, and a specific method of calculating a ball-throwing result does not limit the technical means of the present embodiment unless otherwise specified, and it should be understood as an example to facilitate understanding of the technical means by those skilled in the art.
The present embodiment discloses a ball-throwing test device, please refer to fig. 2, which includes:
the dynamically set ball throwing test area is a ball throwing test ground area divided on the ground before the ball throwing test.
The dynamically set ball throwing starting line is a straight line arranged on the ground before a ball throwing test and is a reference line for ball throwing and score measurement. The tester must throw the ball after the start line of the ball, press the line and throw the ball or throw the ball before the start line of the ball.
The camera is used for collecting a ball throwing test video.
The intelligent ball throwing analysis module is a core module which analyzes ball throwing videos collected by the camera, identifies testers entering a ball throwing test area, calculates the scores or foul conditions of the balls and performs intelligent analysis and test logic processing on the videos. Preferably, the intelligent ball throwing analysis module is a server containing intelligent analysis software. Preferably, the intelligent analysis module for ball throwing is a built-in module of the camera.
And the tester identity recognition module is used for recognizing the identity information of the tester by analyzing and extracting the characteristics of the tester. Preferably, the identity information of the tester is identified by analyzing and extracting the face features of the tester.
And the interaction module prompts the current state of the tester and informs the tester of the test result. Preferably, the device is a voice device, a video device or a lighting device.
And the communication module is used for connecting the camera, the tester identity recognition module, the ball throwing intelligent analysis module and the interaction module to a communication network.
The intelligent ball throwing analysis module identifies that a tester enters a ball throwing test area by analyzing the video of the camera, and the tester identity identification module identifies the identity of the tester in a test mode and can directly start testing in a training mode. The camera collects the video of the test process, and the intelligent ball throwing analysis module analyzes the video of the test process and calculates the score or foul condition of the ball throwing. The intelligent ball throwing analysis module sends the current test state and the test result to the interaction module, and the interaction module prompts the current state of a tester and informs the tester of the test result.
The device provided by the embodiment of the invention realizes automatic, standardized and intelligent ball throwing test.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as methods and apparatus. The present invention has been described with reference to the flowchart and schematic structural diagrams of methods and apparatuses according to embodiments of the present invention.
It should be understood that the above examples are only for clearly illustrating the present invention and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.