Skip to content

fitEllipse() still fails after #9923 #10270

@juneoh

Description

@juneoh
System information (version)
  • OpenCV => tested from 3.3.0 to 3.3.1-dev(66e09bc)
  • Operating System / Platform => Ubuntu 16.04(64bit)
  • Compiler => gcc
Detailed description

There seems to be yet another set of points that breaks fitEllipse(). I've tried both (a) local compile from official sources(3.3.1 and the latest master) and (b) the unofficial opencv-python PyPI binary, but it still happens the same.

#9923

Steps to reproduce
  1. Compile by following https://docs.opencv.org/3.1.0/dd/dd5/tutorial_py_setup_in_fedora.html, but on Ubuntu.

  2. On Python, try:

Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.3.1-dev'
>>> import numpy as np
>>> cv2.fitEllipse(np.array([(0, 1), (0, 2), (0, 3), (2, 3), (0, 4)]))
((0.0, 21.461536407470703), (36.34366226196289, 203.46951293945312), 107.87489318847656)

Translations by distance(moving the set vertically/horizontally) would still give the same results.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions