s-trinh / EllDet

Ellipse detector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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: shenzeyu2018@ia.ac.cn

About

Ellipse detector

License:GNU General Public License v3.0


Languages

Language:C++ 59.8%Language:C# 38.6%Language:CMake 1.6%