1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Added python branch to stitching tutorial.

This commit is contained in:
ericmariasis
2024-08-01 16:32:27 -04:00
committed by Alexander Smorkalov
parent aa133cd899
commit cb72a2131f
2 changed files with 22 additions and 2 deletions
+2
View File
@@ -43,12 +43,14 @@ def main():
sys.exit(-1)
imgs.append(img)
#![stitching]
stitcher = cv.Stitcher.create(args.mode)
status, pano = stitcher.stitch(imgs)
if status != cv.Stitcher_OK:
print("Can't stitch images, error code = %d" % status)
sys.exit(-1)
#![stitching]
cv.imwrite(args.output, pano)
print("stitching completed successfully. %s saved!" % args.output)