A simple GUI tool for labeling video frames or image sequences for anomaly detection tasks.
- Open Video: Support for common video formats (.mp4, .avi, etc.).
- Open Image Folder: Support for sequences of images in a folder.
- Labeling: Mark individual frames as "Normal" or "Abnormal".
- Navigation: Slider, Previous/Next buttons, and Play/Pause functionality.
- Playback Speed: Adjustable playback speed (0.5x, 1.0x, 1.5x, 2.0x, 4.0x).
- Batch Selection: Select a range of frames and mark them all at once.
- Timeline Visualization: Visual timeline showing abnormal regions and current position.
- Save/Load: Saves labels as a NumPy
.npyfile. Automatically loads existing labels if a.npyfile with the same name exists.
- Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python label_master.py
-
Load Data:
- Go to
File > Upload Video (MP4)to open a video file. - Go to
File > Open Image Folderto open a directory containing image frames.
- Go to
-
Labeling:
- Single Frame: Press Spacebar or click Mark as Abnormal to toggle the label for the current frame.
- Batch Selection:
- Navigate to the start frame and click Set Start [.
- Navigate to the end frame and click Set End ].
- Click Mark Range Abnormal (Red) or Mark Range Normal (Green) to label all frames in that range.
- Timeline: The bar below the slider shows red regions for abnormal frames. You can click on the timeline to jump to that frame.
-
Saving:
- Click the 💾 Save Results (.npy) button at the top right of the window.
- The output is a binary NumPy array where
0is Normal and1is Abnormal.
- Left Arrow: Previous Frame
- Right Arrow: Next Frame
- Space: Toggle Label (Normal/Abnormal)