sudo apt install python-tk
pip3 install tk
pip3 install opencv-python
pip3 install "opencv-python-headless<4.3"
brew install python-tk
pip3 install tk
pip3 install opencv-python
pip3 install "opencv-python-headless<4.3"
-
[Copy this script to the data root, then run "python LabelTool.py"]【Optional】
-
Select the class you want to label
-
Select the video path you want to label
-
Click start labeling button
-
If current frame belongs to the class you choose, press 1. Else press 0.
press '<--' key to view previous frame, '-->' key to the next frame.
-
Press q to finish labeling of current video.
The label files are saved in the video root folder,
for example [video_root...]/2022-06-23_20-00-00/labels/
You can press the following button to set speed:
d: x2
t: x10
h: x100