{"id":15674757,"url":"https://github.com/ducha-aiki/extract-patches-old","last_synced_at":"2025-10-16T20:57:19.501Z","repository":{"id":71374055,"uuid":"193097224","full_name":"ducha-aiki/extract-patches-old","owner":"ducha-aiki","description":"Simple function for local patch extraction from OpenCV keypoints.","archived":false,"fork":false,"pushed_at":"2019-07-10T16:39:49.000Z","size":8967,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T23:31:24.597Z","etag":null,"topics":["local-features","opencv-python","python","sift"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ducha-aiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-21T12:50:16.000Z","updated_at":"2024-01-04T16:35:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b22c97d1-76b5-41c7-9924-baa5de22a18e","html_url":"https://github.com/ducha-aiki/extract-patches-old","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ducha-aiki/extract-patches-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducha-aiki%2Fextract-patches-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducha-aiki%2Fextract-patches-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducha-aiki%2Fextract-patches-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducha-aiki%2Fextract-patches-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducha-aiki","download_url":"https://codeload.github.com/ducha-aiki/extract-patches-old/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducha-aiki%2Fextract-patches-old/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261777416,"owners_count":23208115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["local-features","opencv-python","python","sift"],"created_at":"2024-10-03T15:50:07.777Z","updated_at":"2025-10-16T20:57:14.477Z","avatar_url":"https://github.com/ducha-aiki.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extract-patches\n\nSimple function for local patch extraction from local features keypoints.\nAccepts following formats:\n\n- OpenCV keypoints\n- Ellipse format [x y a b c]\n- Affine features format [x y a11 a12 a21 a22]\n- OpenCV keypoints + A (a11 a12 a21, a22), say from AffNet output\n\n\nUsage:\n    \n```python\nfrom extract_patches import extract_patches\nPATCH_SIZE = 32\nmrSize = 3.0\npatches = extract_patches(kps1, img1, PATCH_SIZE, mrSize, 'cv2')\n```\n\n![extracted patches example](img/example.png)\n\nSee another example in this [notebook](patch-extraction-demo.ipynb)\n\nThanks to [Vassileios](https://github.com/vbalnt) for the baseline implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducha-aiki%2Fextract-patches-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducha-aiki%2Fextract-patches-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducha-aiki%2Fextract-patches-old/lists"}