SSARCandy / panoramas-image-stitching

🖼 Stitching images into 360 panoramas
https://ssarcandy.tw/2017/05/26/panorama-image-stitching/
214 stars 52 forks source link

TypeError: Expected Ptr<cv::UMat> for argument '%s' #11

Closed gkadusumilli closed 3 years ago

SSARCandy commented 4 years ago

can you elaborate?

91geek commented 4 years ago

I have the same problem. File "./main.py", line 29, in cylinder_img_list = pool.starmap(utils.cylindrical_projection, [(img_list[i], focal_length[i]) for i in range(len(img_list))]) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 768, in get raise self._value TypeError: Expected Ptr for argument 'array'

91geek commented 4 years ago

User the pip install opencv-python==3.4.9.33 Don't use the 4.2+'s opencv

SSARCandy commented 3 years ago

I edited the README and state the opencv 4+ may encounter the issue.