samples/python/stitching.py
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Loading...
Searching...
No Matches
samples/python/stitching.py
A basic example on image stitching in Python.
#!/usr/bin/env python
'''
Stitching sample
================
Show how to use Stitcher API from python in a simple way to stitch panoramas
or scans.
'''
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2 as cv
import argparse
import
= (., .)
= .(=, =)
.(,
= , = , = .,
=
% )
.(, = ,
= )
.(, =, = )
+= + .()
():
= .()
#
= []
.:
= .(..())
:
( + )
.(-)
.()
#![]
= ..(.)
, = .()
!= .:
( % )
.(-)
#![]
.(., )
( % .)
()
== :
()
()
.()