Ask Your Question
0

how should I use the function orb.detectAndCompute() correctly

asked 2016-08-19 11:58:03 -0600

littletom gravatar image

updated 2016-08-19 13:20:40 -0600

Eduardo gravatar image
import cv2 as cv

imgpath='testImg.jpg'
img=cv.imread(imgpath,cv.IMREAD_GRAYSCALE)

orb=cv.ORB_create()
keypoints,descriptor=orb.detectAndCompute(img,None)

error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate

edit retag flag offensive close merge delete

Comments

I don't know python but have should check that img is not empty?

LBerger gravatar imageLBerger ( 2016-08-19 13:47:26 -0600 )edit

well,it is not.

littletom gravatar imagelittletom ( 2016-08-19 23:05:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-23 08:40:41 -0600

Take a look at the excellent tutorials for Python!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-19 11:58:03 -0600

Seen: 3,216 times

Last updated: Aug 19 '16