Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.58 KB

README.md

File metadata and controls

39 lines (32 loc) · 1.58 KB

Introduction

This is a simple image labeling tool that can be used to label images. The tool is written in Python and uses the pyqt5 library for the GUI. You can draw rectangles around the areas of interest and save the coordinates of the rectangles to a file.

Motivation

I created this tool to label images based on a practical need. In my case, I obtained a covariance matrix from a set of data points and I wanted to visualize the covariance matrix and obtain the locations of areas with the high covariance. As shown in the image below, the covariance matrix is a 2D matrix and I wanted to visualize the matrix and obtain the locations of the high covariance areas.

Features

  • Load covaraince matrix from a file (all values should be separated by a space)
  • Visualize the covariance matrix
  • Label the high covariance areas
  • Save the labeled areas (top-left and bottom-right coordinates) to a file

Other Features

  • Zoom in and out
  • Pan the image
  • Ando the rectangle
  • Automatically convert the coordinates to the original image coordinates

Installation

  • Clone the repository
  • Install the required packages using the following command
pip install -r requirements.txt

How to use

  • Run the main.py file
python3 main.py
  • Click on the Load Image button to load the covariance matrix
  • Draw a rectangle around the high covariance areas
  • Click on the undo button to remove the last rectangle
  • Click on the Save button to save the labeled areas to a json/txt file