Skip to content

Used to convert ellipse ground truth to rectangular ground truth

Notifications You must be signed in to change notification settings

muthu-kumaravel/fddb_ellipse_to_rectangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

FDDB ELLIPSE TO RECTANGLE

This code is used to

  • Convert elliptical annotation of FDDB data set to rectangular
  • Dump ground truth of each image seperately
  • Extract image specified in FDDB_Fold from face_in_the_wild and dump them seperately

Example

Input Format FDDB-folds/FDDB-fold-01.txt

2002/08/11/big/img_591
2002/08/26/big/img_265
2002/07/19/big/img_423
.
.
.

FDDB-folds/FDDB-fold-01-ellipseList.txt

2002/08/11/big/img_591
1
123.583300 85.549500 1.265839 269.693400 161.781200  1
2002/08/26/big/img_265
3
67.363819 44.511485 -1.476417 105.249970 87.209036  1
41.936870 27.064477 1.471906 184.070915 129.345601  1
70.993052 43.355200 1.370217 340.894300 117.498951  1
2002/07/19/big/img_423
1
87.080955 59.379319 1.550861 255.383099 133.767857  1
.
.
.

Output Format

[lable] [Top left x1] [Top left y1] [Bottom right x2] [Bottom right y2]

FDDB_DATASET_IMAGES_GROUND_TRUTH/ground_truth_rect/0.txt

face 180.05081678 41.1339610644 359.33598322 282.428438936

FDDB_DATASET_IMAGES_GROUND_TRUTH/ground_truth_rect/1.txt

face 60.48416082 20.013956302 150.01577918 154.404115698
face 156.822265373 87.528163558 211.319564627 171.163038442
face 296.115684906 47.3950108142 385.672915094 187.602891186

FDDB_DATASET_IMAGES_GROUND_TRUTH/ground_truth_rect/2.txt

face 195.990206258 46.6961593003 314.775991742 220.8395547

Output Folder

  • FDDB Images : FDDB_DATASET_IMAGES_GROUND_TRUTH/fddb_images/
  • Ground Truth : FDDB_DATASET_IMAGES_GROUND_TRUTH/ground_truth_rect

Prerequisite

  • Download : Original, unannotated, set of images
  • Extract the file into fddb_ellipse_to_rectangle/, so that 2002 and 2003 will be there within the folder fddb_ellipse_to_rectangle
  • follow thsi command to create the folder structure
$ mkdir FDDB_DATASET_IMAGES_GROUND_TRUTH
$ cd FDDB_DATASET_IMAGES_GROUND_TRUTH
$ mkdir fddb_images
$ mkdir ground_truth_rect
$ cd ..

Execute

To run the script,

python3 eliptorect.py

(Use python or python3 as you always use in your system)

Useful links

About

Used to convert ellipse ground truth to rectangular ground truth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages