All Projects → rmislam → Pythonsift

rmislam / Pythonsift

Licence: mit
A clean and concise Python implementation of SIFT (Scale-Invariant Feature Transform)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pythonsift

Superpixels Revisited
Library containing 7 state-of-the-art superpixel algorithms with a total of 9 implementations used for evaluation purposes in [1] utilizing an extended version of the Berkeley Segmentation Benchmark.
Stars: ✭ 222 (-40.64%)
Mutual labels:  opencv, image-processing
Opencv
Open Source Computer Vision Library
Stars: ✭ 58,652 (+15582.35%)
Mutual labels:  opencv, image-processing
Thug Memes
Command line Thug Meme generator written in Python
Stars: ✭ 224 (-40.11%)
Mutual labels:  opencv, image-processing
Opencv Python Tutorial
📖 OpenCV-Python image processing tutorial for beginners
Stars: ✭ 2,425 (+548.4%)
Mutual labels:  opencv, image-processing
Opencv Androidsamples
OpenCv samples for Android from OpenCV SDK using Android Studio and Gradle System
Stars: ✭ 278 (-25.67%)
Mutual labels:  opencv, image-processing
Omrchecker
Grade exams fast and accurately using a scanner 🖨 or your phone 🤳.
Stars: ✭ 189 (-49.47%)
Mutual labels:  opencv, image-processing
Buildopencvtx2
Build and install OpenCV for the NVIDIA Jetson TX2
Stars: ✭ 249 (-33.42%)
Mutual labels:  opencv, image-processing
Color Tracker
Color tracking with OpenCV
Stars: ✭ 128 (-65.78%)
Mutual labels:  opencv, image-processing
Androiddocumentscanner
This library helps to scan a document like CamScanner.
Stars: ✭ 264 (-29.41%)
Mutual labels:  opencv, image-processing
Opencv Python Blueprints
M. Beyeler (2015). OpenCV with Python Blueprints: Design and develop advanced computer vision projects using OpenCV with Python, Packt Publishing Ltd., ISBN 978-178528269-0.
Stars: ✭ 262 (-29.95%)
Mutual labels:  opencv, image-processing
Invisibility cloak
This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.
Stars: ✭ 176 (-52.94%)
Mutual labels:  opencv, image-processing
Opencvsharp
OpenCV wrapper for .NET
Stars: ✭ 3,598 (+862.03%)
Mutual labels:  opencv, image-processing
Scene Text Recognition
Scene text detection and recognition based on Extremal Region(ER)
Stars: ✭ 146 (-60.96%)
Mutual labels:  opencv, image-processing
Marvel
Marvel - Face Recognition With Android & OpenCV
Stars: ✭ 199 (-46.79%)
Mutual labels:  opencv, image-processing
Haskell Opencv
Haskell binding to OpenCV-3.x
Stars: ✭ 145 (-61.23%)
Mutual labels:  opencv, image-processing
Computer Vision Guide
📖 This guide is to help you understand the basics of the computerized image and develop computer vision projects with OpenCV. Includes Python, Java, JavaScript, C# and C++ examples.
Stars: ✭ 244 (-34.76%)
Mutual labels:  opencv, image-processing
Ios Rubik Solver
An iOS app that detects a 3x3 Rubik's cube, recognizes the color of all cubies, solves it and provides a 3D visualisation of the solving process.
Stars: ✭ 111 (-70.32%)
Mutual labels:  opencv, image-processing
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (-69.79%)
Mutual labels:  opencv, image-processing
Ai Job Notes
AI算法岗求职攻略(涵盖准备攻略、刷题指南、内推和AI公司清单等资料)
Stars: ✭ 3,191 (+753.21%)
Mutual labels:  opencv, image-processing
Harvesters
🌈 Friendly Image Acquisition Library for Computer Vision People
Stars: ✭ 274 (-26.74%)
Mutual labels:  opencv, image-processing

PythonSIFT

This 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.

Update 2/11/2020

PythonSIFT 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.

Dependencies

Python 3

NumPy

OpenCV-Python

Last tested successfully using Python 3.8.5, Numpy 1.19.4 and OpenCV-Python 4.3.0.

Usage

import cv2
import pysift

image = cv2.imread('your_image.png', 0)
keypoints, descriptors = pysift.computeKeypointsAndDescriptors(image)

It's as simple as that. Just like OpenCV.

The 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.

Tutorial

You can find a step-by-step, detailed explanation of the code in this repo in my two-part tutorial:

Implementing SIFT in Python: A Complete Guide (Part 1)

Implementing SIFT in Python: A Complete Guide (Part 2)

I'll walk you through each function, printing and plotting things along the way to develop a solid understanding of SIFT and its implementation details.

Template Matching Demo

I'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.

python template_matching_demo.py

Questions, Concerns, Bugs

Anyone is welcome to report and/or fix any bugs. I will resolve any opened issues as soon as possible.

Any questions about the implementation, no matter how simple, are welcome. I will patiently explain my code to you.

Original Paper

"Distinctive Image Features from Scale-Invariant Keypoints", David G. Lowe

Definitely worth a read!

Legal Notice

SIFT was patented, but it has expired. This 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.

You can find the original (now expired) patent here (Inventor: David G. Lowe. Assignee: University of British Columbia.).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].