Project: Implementation of Label Editor

 This is second article in Python Projects Series. This article includes the explanation and instructions of demo of this project. We also touch up on the topics like design and implementation of this project.

This Python code works as a label editor through which you can draw bounding boxes and label them. CSV file shall be generated from this tool which contains information about your labelling.

In case if you are new to this series, Please visit our previous article in this series.

1. Project : Implementation of Block Jump Game

2. Project: Implementation of Car Lane Change Game

 

In case if you are new to Python, Please visit the following articles in series Python for Data Science.

  1. Python for Data Science Series - Part 1
  2. Python for Data Science Series - Part 2
  3. Using Numpy in Python
  4. Using Pandas in Python
  5. Data Visualization using Matplotlib Python
  6. Parsing XML file in python
  7. Parsing Json file in python
  8. Interactive Data Visualization using Plotly in Python
  9. Logging in Python
  10. Read and Write Images in Python

1. Setup Project Environment:

    Code can be obtained from our git repository by using following command

git clone https://github.com/RajuSaladi/LabelEditor.git

    Go to "LabelEditor" Folder using following command

cd LabelEditor

    This Project requires the following python libraries to be installed. Please install them using command below.

  • OpenCV  pip install opencv-contrib-python
  • Numpy    pip install numpy
  • Pandas  pip install pandas
Setup folders in this folder sturcture: 
MainFolder
Data 
GroundTruth 
GroundTruthInfoMutliLabel.csv 
Labels.txt

Data: This folder should contain images to be labelled 
GroundTruth: This Folder to save the outputs of label tool 
Labels.txt: This text file should contain the label names for the data 
GroundTruthInfoMutliLabel.csv : Generated .csv file contains the Image Path , Object ID,ObjectType,x,y,w,h

2. Run Project:

Project can be run using following command

python MultiLabelEditor.py

When run successfully, it will popup a window which opens images that are placed in the folder "data" one after the other. User can draw bounding box on image using mouse left button i.e., Click and hold left mouse button where user want to start bounding box.move mouse towards the end of object. user can see the bounding box being drawn. when the user satisfies with bounding box drawn, release mouse left button.
A Popup will appear from which user can chose label for that bounding box
User can draw multiple bounding boxes
Once, labeling for the frame is done, Press 'd' on Keyboard.
If user wants to reset the bounding boxes for this frame, press 'r'
If user wants to skip the frame, press 'c'

Information of the Bounding Box shall be stored in the GroundTruthInfoMutliLabel.csv

Detailed explanation about this Project can be seen in the following video




(TO BE CONTINUED)

Stay Tuned for more information

Comments

Popular posts from this blog

How to run Jupyter Notebooks in Cloud

GUI Programming using Tkinter Python

How to download , install and configure Anaconda - Python