Skip to main content

A Python wrapper of ORB-SLAM3 algorithm

Project description

python-orb-slam3

A Python wrapper for the ORB-SLAM3 feature extraction algorithm.

Installation

From PyPI

Note This package's pre-built binaries are only available for AMD64 architectures.

pip install python-orb-slam3

From source

There are a few steps to follow to install this package from the source code, please refer to the CI configuration file here for more details.

Usage

import cv2
from matplotlib import pyplot as plt

from python_orb_slam3 import ORBExtractor

source = cv2.imread("path/to/image.jpg")
target = cv2.imread("path/to/image.jpg")

orb_extractor = ORBExtractor()

# Extract features from source image
source_keypoints, source_descriptors = orb_extractor.detectAndCompute(source)
target_keypoints, target_descriptors = orb_extractor.detectAndCompute(target)

# Match features
bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True)
matches = bf.match(source_descriptors, target_descriptors)

# Draw matches
source_image = cv2.drawKeypoints(source, source_keypoints, None)
target_image = cv2.drawKeypoints(target, target_keypoints, None)
matches_image = cv2.drawMatches(source_image, source_keypoints, target_image, target_keypoints, matches, None)

# Show matches
plt.imshow(matches_image)
plt.show()

License

This repository is licensed under the GPLv3 license.

A Python wrapper for the ORB-SLAM3 feature extraction algorithm.
Copyright (C) 2022  Johnny Hsieh

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_orb_slam3-0.1.1.tar.gz (34.8 kB view hashes)

Uploaded Source

Built Distributions

python_orb_slam3-0.1.1-cp312-cp312-win_amd64.whl (10.7 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

python_orb_slam3-0.1.1-cp312-cp312-manylinux_2_35_x86_64.whl (14.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.35+ x86-64

python_orb_slam3-0.1.1-cp312-cp312-macosx_14_0_arm64.whl (1.8 MB view hashes)

Uploaded CPython 3.12 macOS 14.0+ ARM64

python_orb_slam3-0.1.1-cp312-cp312-macosx_12_0_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.12 macOS 12.0+ x86-64

python_orb_slam3-0.1.1-cp311-cp311-win_amd64.whl (10.7 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

python_orb_slam3-0.1.1-cp311-cp311-manylinux_2_35_x86_64.whl (14.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

python_orb_slam3-0.1.1-cp311-cp311-macosx_14_0_arm64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 macOS 14.0+ ARM64

python_orb_slam3-0.1.1-cp311-cp311-macosx_12_0_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.11 macOS 12.0+ x86-64

python_orb_slam3-0.1.1-cp310-cp310-win_amd64.whl (10.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

python_orb_slam3-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl (14.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

python_orb_slam3-0.1.1-cp310-cp310-macosx_14_0_arm64.whl (1.8 MB view hashes)

Uploaded CPython 3.10 macOS 14.0+ ARM64

python_orb_slam3-0.1.1-cp310-cp310-macosx_12_0_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.10 macOS 12.0+ x86-64

python_orb_slam3-0.1.1-cp39-cp39-win_amd64.whl (10.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

python_orb_slam3-0.1.1-cp39-cp39-manylinux_2_35_x86_64.whl (14.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

python_orb_slam3-0.1.1-cp39-cp39-macosx_12_0_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

python_orb_slam3-0.1.1-cp38-cp38-win_amd64.whl (10.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

python_orb_slam3-0.1.1-cp38-cp38-manylinux_2_35_x86_64.whl (14.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

python_orb_slam3-0.1.1-cp38-cp38-macosx_12_0_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.8 macOS 12.0+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page