Why are my imshow windows different after upgrading to opencv 3.1? [closed]

asked 2016-04-20 12:49:12 -0600

Previously I had been using opencv 2.4.11 that was included in my python(x,y) install. When I used imshow() to display an RGB image I was able to easily zoom and if zoomed in close enough the RGB values would be shown as an overlay on each pixel.

Now having upgraded to opencv 3.1 the imshow() window is featureless. It displays the image and I can change the size of the window with the cv2.IMREAD_NORMAL flag enabled. However, I can no longer zoom in on the image.

How can I get these features using opencv 3.1? Must I return to opencv 2.4.11? Were these features perhaps even specific to the python(x,y) install itself?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-18 04:22:17.092330

Comments

which os /gui kit are you using ?

berak gravatar imageberak ( 2016-04-20 12:51:32 -0600 )edit

My OS is Windows 7. As for the gui kit I am not sure how to find out which one opencv ends up using. I have wxPython and PyQt installed.

whistlerdillon gravatar imagewhistlerdillon ( 2016-04-20 12:58:05 -0600 )edit
1

" When I used imshow() to display an RGB image I was able to easily zoom and if zoomed in close enough the RGB values would be shown as an overlay on each pixel." -- this sounds like your cv2.pyd was linked against qt windowing kit previously, but your current is not.

berak gravatar imageberak ( 2016-04-20 13:03:02 -0600 )edit

Any tips on how I may be able to link my current opencv 3.1 cv2.pyd to qt windowing kit?

whistlerdillon gravatar imagewhistlerdillon ( 2016-04-20 13:06:50 -0600 )edit

Am I correct in assuming that if I build opencv 3.1 from binaries with Qt installed and the linked to it enabled in the opencv build I will get the Qt windowing toolkit functionality contained in this new cv2.pyd?

whistlerdillon gravatar imagewhistlerdillon ( 2016-04-20 14:10:50 -0600 )edit
1

i have not tried, but i think so.

berak gravatar imageberak ( 2016-04-20 14:13:00 -0600 )edit