Use open cv to detect critical elements in a golf swing.
Project description
Introduction
This package detects the various elements in a golf swing. It does this by tracking various points in the swing and outputing it into a json file.
Trackers
The following points are tracked on each frame as points with co ordindates (x,y). They are written into a json file for further analysis.
-
Ball Position This is the point at which the ball is placed. It is assumed that the target is directly towards it.
-
Club Shaft Position The start of the club is where the hands grasp the shaft and the end is where the club head is
Json Output
A sample json output is shown below for a frame with width=1024 and height=900. The coordinates assume that left top is the origin.
The ball is placed at (100, 200). The hand holding the shaft is at (10, 20) and the club head is at (30, 40)
{
"width" : 1024,
"height" : 900,
"ball": [1, 2],
"shaft": [10, 20, 30, 40]
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for golftracker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559c83345d46f42d3c422e725dc45f4742b5850b50f1c552a615584cadce9d70 |
|
MD5 | 1840a176eecf4b98131ec1eb4ff894d3 |
|
BLAKE2b-256 | 81a86cec0bd41a96dfb47c18f08ac827ca66cf0f9eed7139bd32fd4184c4f55c |