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

imshow function is broken in pre-compiled library. #103

Closed
navrkr opened this issue Oct 11, 2022 · 7 comments
Closed

imshow function is broken in pre-compiled library. #103

navrkr opened this issue Oct 11, 2022 · 7 comments

Comments

@navrkr
Copy link

navrkr commented Oct 11, 2022

I recently updated from elixir 1.0.0-dev to 1.0.9 version of Evision and everything is great till now, just tried getting the image as output and this error popped (Note: All the issue is with cvwait and imshow doesn't work without cvwait).

IMG_20221011_070312_455

@cocoa-xu
Copy link
Owner

Actually I'm considering deprecating Evision.HighGui because it's hard to have full or even decent support for most functions, especially supporting these C++ callbacks for GUI events, in this module.

And on the other hand, Erlang has builtin support for :wx (:wx will be available if wxWidgets can be found when compiling Erlang), and it would be easier to have other things, like buttons/sliders, available to use and they are all well tested.

@cocoa-xu
Copy link
Owner

Here is an example using :wx with :evision in Erlang, evision_erlang_dnn_demo.erl, but it should be relatively easy to port it to elixir. Also, here is the corresponding demo video showing this example code.

@navrkr
Copy link
Author

navrkr commented Oct 11, 2022 via email

@cocoa-xu
Copy link
Owner

cocoa-xu commented Oct 11, 2022

Thanks and i guess you can close the issue as you would remove HighGui Module in later releases.

Actually, I'd like to say thank you @navrkr for giving me a chance to discuss this problem, which I've been thinking about a while ago.

And on the other hand, ...

Even compiling OpenCV with GTK support, sometimes the imshow function does not really work as expected (in evision): the window(s) it opened will not respond to any GUI events until calling waitKey again.

To make it as good as one would expect it to be, like how it is in C++/Python, perhaps it would require me to invest a few weeks of time for it. But I'm focusing on other aspects of this library right now, also I'm hesitating to do it because I don't know if this would worth that amount time, as :wx exists in Erlang and elixir, it's well tested, and one can even build a relatively complex GUI app with :wx if they want.

@navrkr
Copy link
Author

navrkr commented Oct 11, 2022 via email

@Jagan3534
Copy link

we slice the img as shown you using in python code but we have doubt to divide cube to 9 parts does it possible or tesseract can detect the places of it
with numbers could you help us

@navrkr
Copy link
Author

navrkr commented Oct 12, 2022

we slice the img as shown you using in python code but we have doubt to divide cube to 9 parts does it possible or tesseract can detect the places of it with numbers could you help us

This is the not right place to discuss as the issue is been closed by the developer and you need to ask developers of https://github.com/elixir-nx/nx for any issues and you can also contact me on private channels like telegram (id: @navrkr).

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