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 8947829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:52:01+00:00 2026-06-15T12:52:01+00:00

I am working on a system which can draw node and edge graphs. I

  • 0

I am working on a system which can draw node and edge graphs. I am using Java canvas so I can get the user to free hand draw everything they want on the program. Is there an algorithm out there which can check the array list of points which I get from this, to check if the line is closer to a circle or a line? currently I’m just checking if any points (other than itself) are equal to the same point to classify a circle. I’m sure there are better ways of detecting a circle. any ideas?

thanks in advance.

  • 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-15T12:52:02+00:00Added an answer on June 15, 2026 at 12:52 pm

    The general tip – use vectors and angles for classification, instead of individual points. This is technique, on which many interactive text recognition systems are based.

    In your case, closed figures with higher probability are circles.

    So, if you can track continuous drawing-moves of user, just push each vector of drawing-move to stack.

    Afterwards, all you need – just calculate sum of angles between vectors from stack (note, that sign of angle depends on sign of pseudoscalar product). If sum is nearly pi – it means, that figure is a circle, otherwise – line

    P.S. Tip to track continuous drawing-moves – just calculate delay between sequential drags and clicks

    enter image description here

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

Sidebar

Related Questions

I'm working on a positioning system which using matrixes can not satisfy my needs.
I am working with a system that outputs the following syntax (which I can't
*I am working on an application which can read emails. I am using textview
I'm working on a WPF system which hooks onto an old legacy database using
I'm working on a distributed system which is RMI based using jdk1.6. Occasionally I
I am working on a system on which currently linux kernel and microwindows windowing
I'm currently working on a ticketing system which allows our users to submit tickets
I am working on a product data importing system which downloads product data from
I am working on a uploader class which will use the system's proxy settings
So i am trying to get a simple system working where i have an

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.