-
Notifications
You must be signed in to change notification settings - Fork 96
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
request : opencv-contrib #176
Comments
We don't really have a way to generate stubs; the stubs in this repo are hand-maintained. |
So the only way now is using the documentation generator or sth like this to create stubs manually or maybe even do a simple script to automate the process. |
Given that opencv can now generates python stubs and opencv-python has been updated to ship them, you can try the in-development version using You can set the appropriate environment variables first if you'd like to install a specific package (like headless, contrib or healdless-contrib): ENABLE_CONTRIB=1
ENABLE_HEADLESS=1 It should work as-is with pyright and mypy, but for Pylance you'll have to remove the bundled stubs every time you update the extension. It can be found at: If the issue persists, you can raise it upstream. |
Is it possible to generate stubs for opencv-contrib ? I've tried to use stubgen but it is not helping at all, the only proper stubs ive found are here but they lack some of the contrib modules (like aruco and rgbd).
The text was updated successfully, but these errors were encountered: