From 5602d2c7bbbc126bcad1543276a17654453f3341 Mon Sep 17 00:00:00 2001 From: berak Date: Sun, 9 Jan 2022 12:26:24 +0100 Subject: [PATCH] Update stitching_detailed.py resolves: #21406 use constructors consistently --- samples/python/stitching_detailed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index 6dcfe14f05..333ea15648 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 -- GitLab