From: deniz.aksayli Date: Tue, 27 Apr 2021 08:10:41 +0000 (+0300) Subject: fix seam finder X-Git-Tag: submit/tizen/20220120.021815~1^2~75^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbd65a3b01bbeca7405bf4c5c3971c85f5fa6d89;p=platform%2Fupstream%2Fopencv.git fix seam finder --- diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index 7253932167..a7e316105e 100644 --- a/samples/python/stitching_detailed.py +++ b/samples/python/stitching_detailed.py @@ -49,8 +49,6 @@ except AttributeError: print("AKAZE not available") SEAM_FIND_CHOICES = OrderedDict() -SEAM_FIND_CHOICES['gc_color'] = cv.detail_GraphCutSeamFinder('COST_COLOR') -SEAM_FIND_CHOICES['gc_colorgrad'] = cv.detail_GraphCutSeamFinder('COST_COLOR_GRAD') SEAM_FIND_CHOICES['dp_color'] = cv.detail_DpSeamFinder('COLOR') SEAM_FIND_CHOICES['dp_colorgrad'] = cv.detail_DpSeamFinder('COLOR_GRAD') SEAM_FIND_CHOICES['voronoi'] = cv.detail.SeamFinder_createDefault(cv.detail.SeamFinder_VORONOI_SEAM) @@ -432,7 +430,7 @@ def main(): compensator.feed(corners=corners, images=images_warped, masks=masks_warped) seam_finder = SEAM_FIND_CHOICES[args.seam] - seam_finder.find(images_warped_f, corners, masks_warped) + masks_warped = seam_finder.find(images_warped_f, corners, masks_warped) compose_scale = 1 corners = [] sizes = []