TreeviewCopyright © aleen42 all right reserved, powered by aleen42

How to detect squares in an image with OpenCV Back

  • use the algorithm provided by karlphillip, which has been integrated in LightOpenCV


  • Image Class has provided the method detectSquare, and print the detected line on the image when giving a boolean value true.
/* new an instance for Image */
Image img = Image();

/* read the image which is to be detected by giving the path */

/* DEBUG is an marco parameter */

/* show the image */
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.