Skip to content

dhruvpal05/GenSolve-Hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenSolve-Hack

Problem Statement

Our mission is to identify, regularize, and beautify curves in 2D Euclidean space. We’ll start by focusing on closed curves and progressively work with more com- plex shapes. This project will also cover symmetry and curve completion techniques.

Solution Summary

Task-1-and-2

The script takes CSV data representing paths and converts them into an image with geometric shapes drawn. It then preprocesses the image to enhance shape detection using edge detection and contour finding. Various shapes, including lines, rectangles, circles, ellipses, and polygons, are detected and analyzed for symmetry properties (both reflectional and rotational). The detected shapes and their symmetries are highlighted and overlaid on the original image, providing a visual representation of the shapes and their symmetrical characteristics. This output is saved as an image file for review and further analysis.

Task-3

Color Segmentation and Mask Completion

This script extracts unique non-white colors from an image, segments the image based on these colors, and refines the masks using morphological operations. It then combines the processed masks into a single image and saves it.

Occlusion Detection and Completion

This script processes a grayscale image to create a binary mask, applies morphological operations to complete the mask, and then resizes and combines the images to show the mask completion process. It saves and displays the final result.

Installation

  1. Clone the repository:

    git clone https://github.com/dhruvpal05/GenSolve-Hack
    cd GenSolve-Hack
  2. Set up a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required Python packages:

    pip install -r requirements.txt
  4. Go to the respective Task's detailed docs to continue

    Detailed Docs for Task 1 & 2

    Detailed Docs for Task 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages