Skip to content

Support for OpenCV viz module? #76

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

Open
damzam opened this issue Mar 8, 2018 · 9 comments
Open

Support for OpenCV viz module? #76

damzam opened this issue Mar 8, 2018 · 9 comments

Comments

@damzam
Copy link

damzam commented Mar 8, 2018

I have the following installed in a virtualenv with Python 3.6.4:

opencv-python==3.4.0.12
opencv-contrib-python==3.4.0.12

on a OSX 10.13.3. I had expected the compiled viz code and corresponding Python bindings.

https://docs.opencv.org/3.4.1/d9/d62/namespacecv_1_1viz.html

Neither of them are present. I'd never installed OpenCV on this machine. I've historically gone through the installation process manually, which isn't pleasant, and I've been able to access the viz module both via C++ and Python on Linux and Mac.

The prospect of being able to install everything without having to compile binaries is compelling, and I'd love for this to work. Is this behavior expected? If so, is there any plan to support the viz module in the future?

@skvark
Copy link
Member

skvark commented Mar 9, 2018

Afaik viz module requires that OpenCV is built with VTK. These packages are not built with it.

It might be possible to enable the viz module in the future given that:

  • VTK can be built or installed easily to the CI environments (Windows, macOS and CentOS 5)
  • VTK license allows redistribution

@damzam
Copy link
Author

damzam commented Mar 9, 2018

Yep...that was definitely a requisite step when building and installing manually. And getting Qt and VTK to play nice with each other and native graphics drivers has introduced some pain points...at least for me.

Many thanks for the quick response!

@skvark
Copy link
Member

skvark commented Mar 10, 2018

I'll look into this after I've solved some issues which are currently blocking Linux builds.

@damzam
Copy link
Author

damzam commented Mar 12, 2018

Thanks very much. You're doing great work!

@AlejandroSilvestri
Copy link

@damzam , did you managed to use Viz on Python?

I used it with C++ on Linux, but many people use opencv with Python on Windows and they complain about not having viz.

What are the steps to get Viz running on Python?

And, because there's no documentation about vis for Python, any suggestion about how to use de methods?

Thank you

@damzam
Copy link
Author

damzam commented Dec 6, 2019 via email

@asmorkalov
Copy link
Collaborator

Related discussion in OpenCV: opencv/opencv#19490

@plutonium-239
Copy link

Was this ever solved?
Do I just need to build VTK and then pip install --no-binaries opencv-contrib-python?

@AlejandroSilvestri
Copy link

@plutonium-239

No, it doesn't.
Python has a number of ways for 3d graphics.
I believe there's no need to adopt VTK on Python, other than easy portability from C++.

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

5 participants