/ransac

Python wrapper for Enric Meinhardt's imscript RANSAC C implementation

Primary LanguageC

RANSAC

Build Status PyPI version

Python wrapper around Enric Meinhardt's C implementation of RANSAC distributed in imscript.

Installation

The ransac Python package can be installed from PyPI with

pip install ransac

Alternatively, it can be installed from sources in editable mode with

git clone https://github.com/cmla/ransac
cd ransac
pip install -e .

Usage

import numpy as np
import ransac

matches = np.loadtxt("tests/data/matches.txt")
inliers, F = ransac.find_fundamental_matrix(matches)