{"id":15043493,"url":"https://github.com/rmislam/pythonsift","last_synced_at":"2025-04-12T19:43:41.089Z","repository":{"id":34465712,"uuid":"38402179","full_name":"rmislam/PythonSIFT","owner":"rmislam","description":"A clean and concise Python implementation of SIFT (Scale-Invariant Feature Transform)","archived":false,"fork":false,"pushed_at":"2021-01-01T02:31:29.000Z","size":373,"stargazers_count":962,"open_issues_count":8,"forks_count":260,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T22:10:05.833Z","etag":null,"topics":["computer-vision","feature-matching","image-processing","opencv","python","sift","template-matching"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"alecthomas/chroma","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmislam.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}},"created_at":"2015-07-02T00:27:34.000Z","updated_at":"2025-04-01T03:16:46.000Z","dependencies_parsed_at":"2022-08-08T01:01:00.081Z","dependency_job_id":null,"html_url":"https://github.com/rmislam/PythonSIFT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmislam%2FPythonSIFT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmislam%2FPythonSIFT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmislam%2FPythonSIFT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmislam%2FPythonSIFT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmislam","download_url":"https://codeload.github.com/rmislam/PythonSIFT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625479,"owners_count":21135512,"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":["computer-vision","feature-matching","image-processing","opencv","python","sift","template-matching"],"created_at":"2024-09-24T20:49:09.263Z","updated_at":"2025-04-12T19:43:41.061Z","avatar_url":"https://github.com/rmislam.png","language":"Python","readme":"# PythonSIFT\n\nThis is an implementation of SIFT (David G. Lowe's scale-invariant feature transform) done entirely in Python with the help of NumPy. This implementation is based on OpenCV's implementation and returns OpenCV `KeyPoint` objects and descriptors, and so can be used as a drop-in replacement for OpenCV SIFT. This repository is intended to help computer vision enthusiasts learn about the details behind SIFT.\n\n### *Update 2/11/2020*\n\nPythonSIFT has been reimplemented (and greatly improved!) in Python 3. You can find the original Python 2 version in the `legacy` branch. However, I strongly recommend you use `master` (the new Python 3 implementation). It's much better.\n\n## Dependencies\n\n`Python 3`\n\n`NumPy`\n\n`OpenCV-Python`\n\nLast tested successfully using `Python 3.8.5`, `Numpy 1.19.4` and `OpenCV-Python 4.3.0`.\n\n## Usage\n\n```python\nimport cv2\nimport pysift\n\nimage = cv2.imread('your_image.png', 0)\nkeypoints, descriptors = pysift.computeKeypointsAndDescriptors(image)\n```\n\nIt's as simple as that. Just like OpenCV.\n\nThe returned `keypoints` are a list of OpenCV `KeyPoint` objects, and the corresponding `descriptors` are a list of `128` element NumPy vectors. They can be used just like the objects returned by OpenCV-Python's SIFT `detectAndCompute` member function. Note that this code is not optimized for speed, but rather designed for clarity and ease of understanding, so it will take a few minutes to run on most images.\n\n## Tutorial\n\nYou can find a step-by-step, detailed explanation of the code in this repo in my two-part tutorial:\n\n[Implementing SIFT in Python: A Complete Guide (Part 1)](https://medium.com/@russmislam/implementing-sift-in-python-a-complete-guide-part-1-306a99b50aa5)\n\n[Implementing SIFT in Python: A Complete Guide (Part 2)](https://medium.com/@russmislam/implementing-sift-in-python-a-complete-guide-part-2-c4350274be2b)\n\nI'll walk you through each function, printing and plotting things along the way to develop a solid understanding of SIFT and its implementation details.\n\n## Template Matching Demo\n\nI've adapted OpenCV's SIFT template matching demo to use PythonSIFT instead. The OpenCV images used in the demo are included in this repo for your convenience.\n```python\npython template_matching_demo.py\n```\n\n## Questions, Concerns, Bugs\n\nAnyone is welcome to report and/or fix any bugs. I will resolve any opened issues as soon as possible.\n\nAny questions about the implementation, no matter how simple, are welcome. I will patiently explain my code to you.\n\n### *Original Paper*\n\n[\"Distinctive Image Features from Scale-Invariant Keypoints\", David G. Lowe](https://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf)\n\nDefinitely worth a read!\n\n### *Legal Notice*\n\nSIFT *was* patented, but it has expired.\nThis repo is primarily meant for educational purposes, but feel free to use my code any way you want, commercial or otherwise. All I ask is that you cite or share this repo.\n\nYou can find the original (now expired) patent [here](https://patents.google.com/patent/US6711293B1/en) (Inventor: David G. Lowe. Assignee: University of British Columbia.).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmislam%2Fpythonsift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmislam%2Fpythonsift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmislam%2Fpythonsift/lists"}