Skip to content

Bruuon/LabelMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabelMaster - Anomaly Detection Labeling Tool

A simple GUI tool for labeling video frames or image sequences for anomaly detection tasks.

Features

  • 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 .npy file. Automatically loads existing labels if a .npy file with the same name exists.

Installation

  1. Install the required dependencies:
    pip install -r requirements.txt

Usage

  1. Run the application:

    python label_master.py
  2. Load Data:

    • Go to File > Upload Video (MP4) to open a video file.
    • Go to File > Open Image Folder to open a directory containing image frames.
  3. Labeling:

    • Single Frame: Press Spacebar or click Mark as Abnormal to toggle the label for the current frame.
    • Batch Selection:
      1. Navigate to the start frame and click Set Start [.
      2. Navigate to the end frame and click Set End ].
      3. 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.
  4. Saving:

    • Click the 💾 Save Results (.npy) button at the top right of the window.
    • The output is a binary NumPy array where 0 is Normal and 1 is Abnormal.

Shortcuts

  • Left Arrow: Previous Frame
  • Right Arrow: Next Frame
  • Space: Toggle Label (Normal/Abnormal)

About

Label your datasets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages