mirror of
https://github.com/opencv/opencv.git
synced 2026-07-28 23:03:03 +04:00
python: 'cv2.' -> 'cv.' via 'import cv2 as cv'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
import cv2
|
||||
import cv2 as cv
|
||||
|
||||
from tests_common import NewOpenCVTests
|
||||
|
||||
@@ -10,11 +10,11 @@ class stitching_test(NewOpenCVTests):
|
||||
img1 = self.get_sample('stitching/a1.png')
|
||||
img2 = self.get_sample('stitching/a2.png')
|
||||
|
||||
stitcher = cv2.createStitcher(False)
|
||||
stitcher = cv.createStitcher(False)
|
||||
(_result, pano) = stitcher.stitch((img1, img2))
|
||||
|
||||
#cv2.imshow("pano", pano)
|
||||
#cv2.waitKey()
|
||||
#cv.imshow("pano", pano)
|
||||
#cv.waitKey()
|
||||
|
||||
self.assertAlmostEqual(pano.shape[0], 685, delta=100, msg="rows: %r" % list(pano.shape))
|
||||
self.assertAlmostEqual(pano.shape[1], 1025, delta=100, msg="cols: %r" % list(pano.shape))
|
||||
|
||||
Reference in New Issue
Block a user