mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Added python branch to stitching tutorial.
This commit is contained in:
committed by
Alexander Smorkalov
parent
aa133cd899
commit
cb72a2131f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user