Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8712335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:05:21+00:00 2026-06-13T05:05:21+00:00

I am trying to detect ellipse in an image using opencv. I find the

  • 0

I am trying to detect ellipse in an image using opencv. I find the contours which include ellipse and also some other ones.

Any suggestions that how can I check which contours are ellipse?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:05:22+00:00Added an answer on June 13, 2026 at 5:05 am

    if I understand you correctly, you have detected contours some of them are ellipses and some are not and you want to be able to decide which ones are. Is it right?
    If yes, I would suggest to use cv::fitEllipse(). The doc says that it fits an ellipse to a vector of points so that R-squared is minimal. Unfortunately, the function does not return explicitly the R-squared value. You can maybe implement it yourself…

    As a workaround, you can also use a something such as:

    1. Get the contour C
    2. Fit an ellipse E to C
    3. Compare E to C.

    To compare them you can use moments (cf. cv::moments() and cv::matchShapes()).
    I do not think you need invariant moments here, though.

    Alternatively, you can draw C and E find what proportion of there surface overlap.

    Good luck,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to detect which version .NET is installed using WiX. I've tried: <Condition
Trying to detect left click vs right click (without using jQuery!) and I have
I am trying to detect groups which contain the difference between first age and
I am trying to detect which of the first 3 links is being clicked
I'm trying to detect pinch using multitouch in onTouchEvent of the activity. But the
I am trying to detect when an item is checked, and which item is
I am trying to detect the face in the image and trying to save
I am trying to detect the Turn on USB storage using BroadcastReceiver though i
I am trying detect when a textarea becomes full for creating pagination effect. Using
I am trying to detect if a text input field has any character that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.