Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference of AKAZE_create in __init__.pyi #1062

Open
4 tasks done
ProTankerAlfa opened this issue Dec 13, 2024 · 0 comments
Open
4 tasks done

reference of AKAZE_create in __init__.pyi #1062

ProTankerAlfa opened this issue Dec 13, 2024 · 0 comments

Comments

@ProTankerAlfa
Copy link

ProTankerAlfa commented Dec 13, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant