{"id":39698898,"url":"https://github.com/charanpool/image-patch-mapping","last_synced_at":"2026-01-18T10:21:10.145Z","repository":{"id":332413542,"uuid":"484038961","full_name":"charanpool/image-patch-mapping","owner":"charanpool","description":"A Python toolkit for image processing — edge detection, template matching, and patch detection using OpenCV","archived":false,"fork":false,"pushed_at":"2026-01-07T06:34:24.000Z","size":5520,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T20:03:09.826Z","etag":null,"topics":["canny-edge-detector","computer-vision","edge-detection","image-processing","numpy","opencv","python","sobel-filter","template-matching"],"latest_commit_sha":null,"homepage":"","language":"Python","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/charanpool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-21T12:17:10.000Z","updated_at":"2026-01-07T06:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/charanpool/image-patch-mapping","commit_stats":null,"previous_names":["charanpool/image-patch-mapping"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/charanpool/image-patch-mapping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charanpool%2Fimage-patch-mapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charanpool%2Fimage-patch-mapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charanpool%2Fimage-patch-mapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charanpool%2Fimage-patch-mapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charanpool","download_url":"https://codeload.github.com/charanpool/image-patch-mapping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charanpool%2Fimage-patch-mapping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["canny-edge-detector","computer-vision","edge-detection","image-processing","numpy","opencv","python","sobel-filter","template-matching"],"created_at":"2026-01-18T10:21:08.950Z","updated_at":"2026-01-18T10:21:10.062Z","avatar_url":"https://github.com/charanpool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖼️ Image Patch Mapping\n\nA Python toolkit for image processing, edge detection, and template matching. Perfect for learning computer vision or building upon for your own projects!\n\n![Python](https://img.shields.io/badge/Python-3.7+-blue.svg)\n![OpenCV](https://img.shields.io/badge/OpenCV-4.x-green.svg)\n![License](https://img.shields.io/badge/License-MIT-yellow.svg)\n![Contributions Welcome](https://img.shields.io/badge/Contributions-Welcome-brightgreen.svg)\n\n---\n\n## ✨ Features\n\n| Feature | Description |\n|---------|-------------|\n| 🔍 **Edge Detection** | Canny (from scratch), Sobel, and Laplacian |\n| 🎯 **Template Matching** | Find objects using 6 different methods |\n| 🧩 **Patch Detection** | Detect uniform regions in images |\n| 🔄 **Transforms** | Rotation, flipping, and resizing |\n\n---\n\n## 📁 Project Structure\n\n```\nimage-patch-mapping/\n├── src/\n│   └── image_patch_mapping/       # Main package\n│       ├── __init__.py\n│       ├── edge_detection.py      # Canny, Sobel, Laplacian\n│       ├── template_matching.py   # Template matching algorithms\n│       ├── patch_detection.py     # Uniform patch detection\n│       └── transforms.py          # Image transformations\n├── examples/                      # Example scripts\n│   ├── edge_detection_demo.py\n│   ├── template_matching_demo.py\n│   └── patch_detection_demo.py\n├── images/\n│   └── samples/                   # Sample images for testing\n├── .github/                       # Issue \u0026 PR templates\n├── requirements.txt\n├── setup.py\n└── README.md\n```\n\n---\n\n## 🚀 Quick Start\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/YOUR_USERNAME/image-patch-mapping.git\ncd image-patch-mapping\n\n# Install dependencies\npip install -r requirements.txt\n\n# Or install as a package\npip install -e .\n```\n\n### Basic Usage\n\n#### Edge Detection\n\n```python\nfrom image_patch_mapping import CannyEdgeDetector, sobel_filter\n\n# Canny edge detection (implemented from scratch!)\ndetector = CannyEdgeDetector(sigma=1.0, low_threshold=0.05, high_threshold=0.15)\nedges = detector.detect(\"image.jpg\")\n\n# Sobel filter\nsobel_x, sobel_y, magnitude = sobel_filter(\"image.jpg\", ksize=5)\n```\n\n#### Template Matching\n\n```python\nfrom image_patch_mapping import TemplateMatching\n\nmatcher = TemplateMatching(\"source.jpg\", \"template.jpg\")\nlocation, confidence = matcher.find_best_match()\nprint(f\"Found at {location} with {confidence:.2%} confidence\")\n```\n\n#### Patch Detection\n\n```python\nfrom image_patch_mapping import PatchDetector\n\ndetector = PatchDetector(patch_size=50, tolerance=5)\npatches = detector.find_uniform_patches(\"image.jpg\")\nprint(f\"Found {len(patches)} uniform patches\")\n```\n\n#### Image Transforms\n\n```python\nfrom image_patch_mapping import rotate_image\n\nrotated = rotate_image(\"image.jpg\", angle=45)\n```\n\n---\n\n## 🎯 Examples\n\nRun the demo scripts to see the toolkit in action:\n\n```bash\n# Edge detection demo\npython examples/edge_detection_demo.py\n\n# Template matching demo\npython examples/template_matching_demo.py\n\n# Patch detection demo\npython examples/patch_detection_demo.py\n```\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! Whether it's:\n\n- 🐛 Bug fixes\n- ✨ New features  \n- 📝 Documentation improvements\n- 💡 Ideas and suggestions\n\nCheck out our [Contributing Guidelines](CONTRIBUTING.md) to get started.\n\n**New to open source?** Look for issues labeled `good first issue`!\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.\n\n---\n\n## 💬 Get in Touch\n\n- 🐛 Found a bug? [Open an issue](../../issues/new?template=bug_report.md)\n- 💡 Have an idea? [Request a feature](../../issues/new?template=feature_request.md)\n- ❓ Questions? [Start a discussion](../../discussions)\n\n---\n\n\u003cp align=\"center\"\u003e\nMade with ❤️ by contributors like you!\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharanpool%2Fimage-patch-mapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharanpool%2Fimage-patch-mapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharanpool%2Fimage-patch-mapping/lists"}