Fail with Stitcher and Python
I'm trying to learn how to use OpenCV with Stitcher
Windows 7
Python 3.4.1
OpenCV 3.1.0 precompiled
import cv2
im1 = cv2.imread('1.jpg')
im2 = cv2.imread('2.jpg')
stitcher = cv2.createStitcher()
result = stitcher.stitch((im1,im2))
on last line there is error
cv2.error: ..\..\..\opencv-3.1.0\modules\python\src2\cv2.cpp:163: error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate
Is it issue or I do not undertand stitcher usage in Python? I found no examples.
same here Ubuntu 16.04 Python 2.7.12 OpenCV 3.2.0