Fail with Stitcher and Python

asked 2016-03-20 14:29:59 -0500

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.

edit retag flag offensive close merge delete


same here Ubuntu 16.04 Python 2.7.12 OpenCV 3.2.0

Cynric gravatar imageCynric ( 2017-07-01 07:24:57 -0500 )edit