A python tool for fitting primitives 3D shapes in point clouds using RANSAC algorithm
Project description
What is pyRANSAC-3D?
pyRANSAC-3D is an open source implementation of Random sample consensus (RANSAC) method. It fits primitive shapes such as planes, cuboids and cylinder in a point cloud to many aplications: 3D slam, 3D reconstruction, object tracking and many others.
Features:
- Cylinder
- Plane
- Cuboid
- Line
Installation
Requirements: Numpy
Install with Pypi:
pip3 install pyransac3d
Take a look:
Example 1 - Planar RANSAC
import pyransac3d as pyrsc
points = load_points(.) # Load your point cloud as a numpy array (N, 3)
plane1 = pyrsc.Plane()
best_eq, best_inliers = plane1.fit(points, 0.01)
Results in the plane equation Ax+By+Cz+D:
[1, 0.5, 2, 0]
Documentation & other links
- The documentation is this Ṕage.
- Source code in the Github repository.
- Pypi pakage installer
License
Contributing is awesome!
See CONTRIBUTING
Contact
Developed with :heart: by the internet
Mainteiner: Leonardo Mariga
Did you like it? Remember to click on :star2: button.
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
pyransac3d-0.0.2.tar.gz
(6.3 kB
view hashes)
Built Distribution
pyransac3d-0.0.2-py3-none-any.whl
(13.5 kB
view hashes)
Close
Hashes for pyransac3d-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 699ca2ca39113180199d4f5329cd1b0b1eaf3a2a857441dd6b8c906b233ee8d0 |
|
MD5 | 267e7b464885d7645146af57292d0608 |
|
BLAKE2b-256 | 5e3fc054a364bb8a34af29a34598dab20c51c0287e19b96474b8cddec52d72a1 |