How to make cv2.imshow display window have a toolbar

I used the cv2.imshow method to display the image of my camera. When I installed opencv with conda, the window had a toolbar to display the pixel coordinates and RGB of the mouse position. But if I install it through pip, there is no toolbar. I want to know how to display the toolbar. I really need to know the pixel coordinates of the mouse


unfortunately, i dont think, you can change this.

the tool / button bars are qt extended functionality, meaning, your cv2 has to be built from src with qt support (not gtk, as the pip one)

write your own prog for this (it’s easy !)

1 Like

I see. I will try it. Thank you!

the package you get on conda is a third party build that apparently includes Qt.

if you want this, use it.