Skip to content

Program to extract value from YOLO format text file and draw a bounding box to the images

Notifications You must be signed in to change notification settings

ivder/YoloBBoxChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YoloBBoxChecker

Program to extract value from YOLO format data text file and draw a bounding box to clean images. This is the reversed version of common Bounding Box labelling tool whereas this program will draw a bounding box from YOLO dataset (clean image + text file).

Purpose

What if somebody annotates the dataset and you want to check whether they draw the bounding box correctly or not?

YOLO only accepts a clean image with its bounding box information stored in text file.

Use this program to check whether the bounding box is drawn correctly or not during data annotation. It will read the image and text file and convert the value to produce xmin,ymin,xmax,ymax of the bounding box and draw it to the images.

Usage

  • Store the dataset (images and text files) to dataset/ folder
  • run python3 main.py (OpenCV and Numpy is needed)
  • The result of images with the drawn bounding boxes will be stored in result/ folder

Example

Yolo format data text file + Clean Image dataset

0 0.3421875 0.561111111111 0.034375 0.114814814815
0 0.417708333333 0.609259259259 0.0395833333333 0.0740740740741

Result :

About

Program to extract value from YOLO format text file and draw a bounding box to the images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages