diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index b0cf78a759..cd3f063e35 100644 --- a/samples/python/stitching_detailed.py +++ b/samples/python/stitching_detailed.py @@ -387,7 +387,7 @@ def main(): focals = [] for cam in cameras: focals.append(cam.focal) - sorted(focals) + focals.sort() if len(focals) % 2 == 1: warped_image_scale = focals[len(focals) // 2] else: