cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
337 stars 22 forks source link

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

Closed navrkr closed 1 year ago

navrkr commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

cocoa-xu commented 1 year ago

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 commented 1 year ago

In maybe not worth of that much time as of now but it is basic functionality one would expect from opencv library, so prioritise things according to their importance and don't rush to new modules all at once, have a checklist as you always do.

On Tue, 11 Oct, 2022, 7:45 am Cocoa, @.***> wrote:

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 https://github.com/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: 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 like the one in C++/Python, it would require perhaps a few weeks investigated in it. But I'm focusing on other aspects of this library right now, also I'm hesitating because I don't know if this would worth that amount time, as :wx exists in Erlang and elixir, and one can even build a relatively complex GUI app with :wx.

— Reply to this email directly, view it on GitHub https://github.com/cocoa-xu/evision/issues/103#issuecomment-1273996930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKLPGCHAGNLNCMH57QC573WCTETLANCNFSM6AAAAAARB2CJVE . You are receiving this because you were mentioned.Message ID: @.***>

Jagan3534 commented 1 year ago

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 commented 1 year ago

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).