Skip to content

Commit

Permalink
Fix call to pycolmap.verify_matches(...)
Browse files Browse the repository at this point in the history
Function `verify_matches` expects type `pycolmap.TwoViewGeometryOptions` as its last argument.
  • Loading branch information
JamesPerlman authored Jan 17, 2024
1 parent 1c6fc64 commit 87a87a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hloc/triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ def estimation_and_geometric_verification(
logger.info("Performing geometric verification of the matches...")
with OutputCapture(verbose):
with pycolmap.ostream():
two_view_geometry_options = pycolmap.TwoViewGeometryOptions()
ransac_options = pycolmap.RANSACOptions()
ransac_options.max_num_trials = 20000
ransac_options.min_inlier_ratio = 0.1
two_view_geometry_options.ransac = ransac_options

pycolmap.verify_matches(
database_path, pairs_path, max_num_trials=20000, min_inlier_ratio=0.1
database_path, pairs_path, two_view_geometry_options
)


Expand Down

0 comments on commit 87a87a7

Please sign in to comment.