Closed
Description
Expected behaviour
call cv2.AKAZE and use the detectAndCompute methods
Actual behaviour
kp2, des2 = akaze.detectAndCompute(print_image_gray, None)
cv2.error: Unknown C++ exception from OpenCV code
In short the IDE is not recognizing the AKAZE_create method, but it recognizes the AKAZE method (which does not work).
Steps to reproduce
- example code:
image = cv2.imread("./image/print.png")
akaze = cv2.AKAZE()
kp2, des2 = akaze.detectAndCompute(image, None)
Correct code:
image = cv2.imread("./image/print.png")
akaze = cv2.AKAZE_create()
kp2, des2 = akaze.detectAndCompute(image, None)
But IDE Warning: Cannot find reference 'AKAZE_create' in 'init.pyi'
- Windows 11
- architecture (e.g. x86)
- opencv-python 4.10.0.84
Issue submission checklist
- This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
- I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
- The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- I'm using the latest version of
opencv-python
Metadata
Metadata
Assignees
Labels
No labels