Skip to content

s-trinh/EllDet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EllDet

An ellipse detector for RGB images implemented in C++.

This is the code for paper "Combining Convex Hull and Directed Graph for Fast and Accurate Ellipse Detection".

(The source code is currently under cleaning and checking, and the final version will be released as soon as possible.)

Workflow of the ellipse detector.

Requirements

  • CMake 3.18
  • C++ compiler with C++17 support.
  • OpenCV 4.3.0
  • Vcpkg is recommonded to simplify the building proceedure.

Usage

Setup

  • Clone this repo:
git clone https://github.com/meiyy/EllDet.git
cd EllDet
  • Usage CMake to generate the project:
mkdir build
cd build
cmake ..
  • Build the project by make (Linux) or Visual Studio (Windows).

Test

Run the following command to detect the ellipses in an given image file:

elldet demo.bmp

Dataset

See folder "datasets".

Groundtruth for ellipse detection are stored in IMAGE_NAME.gt.txt (for example: a.jpg.gt.txt for image a.jpg). The first line of the gt file is the number of ellipses. Each of the rest lines represents an ellipse in the format: (center.x, center.y, a, b, rotation_angle).

Contact

If you have any question about the code, please feel free to contact me. Email: [email protected]

About

Ellipse detector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 59.8%
  • C# 38.6%
  • CMake 1.6%