python-orb-slam3

所属分类:特征抽取
开发工具:C++
文件大小:1796KB
下载次数:0
上传日期:2023-01-09 03:49:18
上 传 者sh-1993
说明:  ORB-SLAM3特征提取算法的Python包装器。
(A Python wrapper of ORB-SLAM3 feature extraction algorithm.)

文件列表:
.flake8 (61, 2023-01-09)
.vscode (0, 2023-01-09)
.vscode\c_cpp_properties.json (561, 2023-01-09)
.vscode\launch.json (273, 2023-01-09)
.vscode\settings.json (1045, 2023-01-09)
CMakeLists.txt (1133, 2023-01-09)
LICENSE (35149, 2023-01-09)
build.py (4623, 2023-01-09)
poetry.lock (72233, 2023-01-09)
pyproject.toml (1007, 2023-01-09)
python_orb_slam3 (0, 2023-01-09)
python_orb_slam3\__init__.py (883, 2023-01-09)
src (0, 2023-01-09)
src\NDArrayConverter.cc (11074, 2023-01-09)
src\NDArrayConverter.h (996, 2023-01-09)
src\ORBextractor.cc (52674, 2023-01-09)
src\ORBextractor.h (3789, 2023-01-09)
src\main.cc (3334, 2023-01-09)
test (0, 2023-01-09)
test\manual.py (987, 2023-01-09)
test\test_orb.py (4332, 2023-01-09)
test\test_source.png (1275881, 2023-01-09)
test\test_target.png (373638, 2023-01-09)
test\test_unrelated.jpg (131388, 2023-01-09)

# python-orb-slam3 A Python wrapper for the [ORB-SLAM3](https://github.com/UZ-SLAMLab/ORB_SLAM3) feature extraction algorithm. ## Installation ### From PyPI > **Note** > This package's pre-built binaries are only available for AMD*** architectures. ```bash 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](.github/workflows/ci.yml) for more details. ## Usage ```python 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) 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 .

近期下载者

相关文件


收藏者