diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index 6dcfe14f05049057c5b3d1ecbbd7a32efab94e38..333ea15648e7ccb3521c82c5e67b011353e595f2 100644 --- a/samples/python/stitching_detailed.py +++ b/samples/python/stitching_detailed.py @@ -246,9 +246,9 @@ def get_matcher(args): if matcher_type == "affine": matcher = cv.detail_AffineBestOf2NearestMatcher(False, try_cuda, match_conf) elif range_width == -1: - matcher = cv.detail.BestOf2NearestMatcher_create(try_cuda, match_conf) + matcher = cv.detail_BestOf2NearestMatcher(try_cuda, match_conf) else: - matcher = cv.detail.BestOf2NearestRangeMatcher_create(range_width, try_cuda, match_conf) + matcher = cv.detail_BestOf2NearestRangeMatcher(range_width, try_cuda, match_conf) return matcher