Ask Your Question
0

installing qt backend

asked 2014-08-19 12:01:37 -0600

teasel gravatar image

so... basicaly i wanted to make a program in python that uses the camera using openCV, the program should display the video stream and some info somewhere

the problem is that i can't seems to create a window big enough to contain both the stream AND the info it's supposed to contain, i know the issues is because on default opencv automaticaly resize the windows to fit what contain...

...buuuuuut you can change this using another option, but you can't use this option if you don't have the qt backend installed

problem is, i have no idea how to install the qt backend! so any explanation of how to do it would be appreciated

alternatively any other way to resize my window would work too, i tought of using TKinter but i'd rather not do it if i could avoid it

edit retag flag offensive close merge delete

Comments

cv2.namedWindow("win",0) ## now you can resize it manually.

berak gravatar imageberak ( 2014-08-19 12:04:06 -0600 )edit

doing that let me resize the window but the video stream get resized too in such a way that it takes the whole window space so it really doesn't solve my problem... i want to have a window that is bigger than the video stream so that part of the window can contain text info about the video stream

teasel gravatar imageteasel ( 2014-08-19 12:31:54 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-01 04:31:14 -0600

matejjeglic gravatar image

updated 2020-05-01 04:34:36 -0600

I know I am very late, but I will just add some info, in case there is someone else stuck in a similar situation.

I found out that, if you install opencv for python with conda (conda install -c conda-forge opencv), it will use the Qt backend. In contrast of installing opencv with pip (pip install python-opencv), where the VTK backend is used. Hope that helps to someone.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-08-19 12:01:37 -0600

Seen: 2,577 times

Last updated: May 01 '20