Skip to content

SHAY2407/Round-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

head

Introduction

This is a solution for the "Curvetopia" problem given in Adobe GenSolve x GeekForGeeks. It provides various functionalities for working with geometric shapes, including regularization, symmetry detection, and curve completion. Please read the solution explanation for proper clarity of the proposed solution.

Features

  • Polyline Regularization: Simplifies and straightens polylines using the Ramer-Douglas-Peucker (RDP) algorithm.
  • Shape Regularization: The algorithm leverages contour approximation to classify shapes. For identified shapes like circles, squares, and polygons, the code computes and draws idealized shapes
  • Symmetry Detection: Identifies lines of symmetry in shapes (vertical, horizontal, and diagonal).
  • Curve Completion: Completes missing parts shapes

Installation

Prerequisites

  • Python 3.x
  • Required libraries: numpy, matplotlib, scipy, opencv-python (cv2), svgpathtools

To install the required libraries, run:

pip install -r requirements.txt

Setup

  1. Clone this repository:

    git clone https://github.com/SHAY2407/Round-2.git
    cd Round-2
  2. Ensure your data files are in the correct directories as specified in the scripts.

Usage

Go to the notebooks folder -> open main.ipynb

Acknowledgments

This project was developed as part of Adobe GenSolve organised by Adobe and GeeksForGeeks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published