{"id":18395719,"url":"https://github.com/gurveervirk/adobe-gensolve-2024","last_synced_at":"2026-02-28T18:01:47.658Z","repository":{"id":252675820,"uuid":"835795431","full_name":"gurveervirk/adobe-gensolve-2024","owner":"gurveervirk","description":"End-to-end process to regularize hand-drawn shapes, find symmetry in it, if possible, and complete these shapes, if necessary.","archived":false,"fork":false,"pushed_at":"2024-08-11T18:42:39.000Z","size":2765,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T03:52:06.380Z","etag":null,"topics":["adobe","curve-fitting","mathematical-modelling","mathematics","science","streamlit"],"latest_commit_sha":null,"homepage":"https://curvetopia-adobe.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gurveervirk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T14:43:50.000Z","updated_at":"2024-10-26T20:59:40.000Z","dependencies_parsed_at":"2024-08-11T18:57:41.053Z","dependency_job_id":null,"html_url":"https://github.com/gurveervirk/adobe-gensolve-2024","commit_stats":null,"previous_names":["gurveervirk/adobe-gensolve-2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gurveervirk/adobe-gensolve-2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurveervirk%2Fadobe-gensolve-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurveervirk%2Fadobe-gensolve-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurveervirk%2Fadobe-gensolve-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurveervirk%2Fadobe-gensolve-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gurveervirk","download_url":"https://codeload.github.com/gurveervirk/adobe-gensolve-2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurveervirk%2Fadobe-gensolve-2024/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29946463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T17:57:52.716Z","status":"ssl_error","status_checked_at":"2026-02-28T17:57:31.974Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adobe","curve-fitting","mathematical-modelling","mathematics","science","streamlit"],"created_at":"2024-11-06T02:11:47.142Z","updated_at":"2026-02-28T18:01:47.632Z","avatar_url":"https://github.com/gurveervirk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curvetopia\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"640\" alt=\"sample_output\" src=\"https://github.com/gurveervirk/adobe-gensolve-2024/blob/main/misc-outputs/curvetopia.png\"\u003e\n\u003c/div\u003e\n\n## Description\n\nThis project aims to take as input hand-drawn shapes and:\n\n1. regularize the shape, if possible\n2. check for symmetry in the image, and return a line of symmetry if it does\n3. complete incomplete shapes using the above\n\n## Installation\n\nTo install the project, follow these steps:\n\n1. Clone the repository.\n2. Run `pip install -r requirements.txt` to install the dependencies.\n\n## Usage\n\nThe `main` part of most scripts are commented for streamlit deployment. Kindly go through the comments before uncommenting and using them.\n\n### Curve Completion\n\nThe `curve_completion.py` script is designed to complete incomplete curves by fitting shapes to connected polylines. Kindly check the video under Miscellaneous to use this code.\n\nTo run:\n\n```\npython scripts/curve_completion.py\n```\n\n### Curve Extrapolation\n\nThe `curve_extrapolation.py` script extrapolates missing parts of a curve using interpolation.\n\nTo run:\n\n```\npython scripts/curve_extrapolation.py\n```\n\n### Shape Detection\n\nThe `detect_shapes.py` script detects and regularizes different shapes (e.g., lines, ellipses, polygons) within a set of points.\n\nTo run:\n\n```\npython scripts/detect_shapes.py\n```\n\n### Reflection Symmetry Detection\n\nThe `find_reflection_symmetry_line.py` script finds the line of reflection symmetry for a given set of points.\n\nTo run:\n\n```\npython scripts/find_reflection_symmetry_line.py\n```\n\n### Polyline Splitting and Merging\n\nThe `split_disjoint.py` script splits polylines into disjoint segments and attempts to merge and extend them based on angle and proximity criteria.\n\nTo run:\n\n```\npython scripts/split_disjoint.py\n```\n\n## Curve Completion Examples\n\u003ctable align=\"center\"\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ch4\u003eocclusion1\u003c/h4\u003e\n      \u003cimg width=\"200\" alt=\"sample_output\" src=\"https://github.com/gurveervirk/adobe-gensolve-2024/blob/main/misc-outputs/occlusion1_completed.png\"\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ch4\u003eocclusion2\u003c/h4\u003e\n      \u003cimg width=\"200\" alt=\"sample_output\" src=\"https://github.com/gurveervirk/adobe-gensolve-2024/blob/main/misc-outputs/occlusion2_completed.png\"\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ch4\u003efrag2\u003c/h4\u003e\n      \u003cimg width=\"200\" alt=\"sample_output\" src=\"https://github.com/gurveervirk/adobe-gensolve-2024/blob/main/misc-outputs/frag2_completed.png\"\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ch4\u003eisolated\u003c/h4\u003e\n      \u003cimg width=\"200\" alt=\"sample_output\" src=\"https://github.com/gurveervirk/adobe-gensolve-2024/blob/main/misc-outputs/isolated.png\"\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Miscellaneous\n\n- [Demo](https://youtu.be/YcmWPHTnhBQ)\n- [Demo for Curve Completion](https://drive.google.com/file/d/1_V41Bb5XKwe1rqgN81oTptldy6xEB3JK/view)\n- [Hosted Streamlit App](https://curvetopia-adobe.streamlit.app/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurveervirk%2Fadobe-gensolve-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgurveervirk%2Fadobe-gensolve-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurveervirk%2Fadobe-gensolve-2024/lists"}