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

How to import opencvNode? #185

Open
Roger8 opened this issue Apr 29, 2024 · 2 comments
Open

How to import opencvNode? #185

Roger8 opened this issue Apr 29, 2024 · 2 comments

Comments

@Roger8
Copy link

Roger8 commented Apr 29, 2024

I saw the example about opencv image processing picture .
image

After opening the ryven.exe gui, i tried to import opencv node in the ryven\example_nodes\OpenCV . But it failed .
The error message came with "No such file or directory: '\Python39\Lib\site-packages\ryven\example_nodes\OpenCV\gui.py'".
Was the way that I did it wrong? How to make the opencv example running?

@julliansana
Copy link

+1, this is a killer feature.
I've tried updating the syntax of the example nodes but with no success
@leon-thomm what are the updates needed for this to work ?

@leon-thomm
Copy link
Owner

roughly

  • rename widgets.py -> gui.py
  • make nodes.py similar to this one
  • remove import_guis(__file__) and all references to GUI things from nodes.py
  • import nodes.py in gui.py and use the new decorators, similar to here

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

3 participants