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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:41:22+00:00 2026-06-06T21:41:22+00:00

I am looking for a fast idea/algorithm letting me to find squares (as mark

  • 0

I am looking for a fast idea/algorithm letting me to find squares (as mark points) in the image file. It shouldn’t be so much challenge, however…

I started doing this by changing the color of the source image to a grey scale image and scanning each line of the image looking for two, three longest lines (pixel by pixel).

Then having an array of “lines” I am finding elements which may create the desire square.

The better idea would be to find the pattern with known traits, like: it is square, beyond of the square there are no distortion (there is just white space) etc.

The goal is to analyze the image 5000 X 5000 px in less than 1-2s.

Is it possible?

  • 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-06T21:41:23+00:00Added an answer on June 6, 2026 at 9:41 pm

    One of the OpenCV samples squares.cpp does just this, see here for code, . Alternatively you could look up the Hough transform to detect all lines in your image, and then test for two lines intersecting at right angles.

    There are also a number of resources on this site which may help you:

    • OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection
    • Are there any opencv function like "cvHoughCircles()" for square detection?
    • square detection, image processing

    I’m sure there are others, these are just the first few I came across.

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

Sidebar

Related Questions

I'm looking for a fast way in C# to find all dates in a
I'm looking for fast algorithm to compute maximum flow in dynamic graphs (adding/deleting node
I am looking for a fast algorithm: I have a int array of size
I am looking for fast class for to work with text files and comfortable
I've been looking at fast ways to select a random row from a table
I am looking for a fast queue implementation in Java. I see that LinkedList
I'm looking for a fast, embeddable key/value store with cursor semantics over key collections
I'm looking for a fast, clean, pythonic way to divide a list into exactly
I have been looking into different systems for creating a fast cache in a
I am looking for a lightweight, reliable and fast key/value database for storing binary

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.