Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

click to hide/show revision 2
No.2 Revision

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

import cv2 as cv

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

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

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

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

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

NumpyAllocator::allocate
click to hide/show revision 3
No.3 Revision

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

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 should normally be NULL! in function NumpyAllocator::allocate function NumpyAllocator::allocate