changed 4 years ago
Linked with GitHub

Shuttlecock Labeling Tool

tags: CoachAI

Package

Command

python label_tool.py *_**_**.mp4
  • Put the video which you want to label in same folder

If you have predict result of TrackNetV2, you can use label_toolV2.py

  • python label_toolV2.py x_xx_xx.mp4

Usage

1. Label

If the shottlecock is visible, click the center of shuttlecock by left mouse button.

2. Keyboard Shortcut

Please always remember to save .pkl file (by pause "s")

  • left mouse button = mark coordinate of shuttlecock's center
  • w = cancel mark
  • d = jump to next frame
  • e = jump to last frame
  • s = save as .pkl file
  • q = Exit

Label Rules

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • Please mark the center of shuttlecock

Output

  • When you press 'q', the tool will be closed. And it will generate file:
      • _ ** _ ** _ ball.csv
    • The output csv will look like:


      • Frame represent the frame of video.
      • Visibility means the shuttlecock is visible or not at this frame(0 : invisible, 1 : visible).
      • X, Y is the coordinate of shuttlecock.If shuttlecock is invisible now, then X, Y is 0.

Select a repo