Noob here. I followed the previous videos but all I want to do is be able to see a webcam on the PC. Using nano I created this same file but when I try to run it, I get the following error message. qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/pi/project/env/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb.
Thanks for your videos. (1) Do you have tips for beginner playing the mp4 file in Visual Studio or pycharm? I got it to work in pycharm but I'm not sure how. (2) You don't mention audio. Using your code, the playback does not have sound. Is that expected at this point? Are there other openCV options for audio, or from what I see elsewhere, a separate audio file is needed?
Good one! Let me ask, In Linux, using V4L2 library it allows me to perform search of cameras in the USB independent of opencv, the return list is then pass to the opencv as a string. The string name for each camera description is available for user select in dropdown menu. When any string selected, I used opencv to filtered and retrieve the the camera ID. (0,1,23...). and pass it to opencv to open the camera. I have been search how to implement this in window but no success, this will require dos cmd. Do know how it can be done, maybe looking for camera from dos cmd?
Not sure if you are referring to that, but I had a similar problem and it appears to be that, for whatever reason, the VNC viewer does not show the image but it is in fact displayed over the HDMI signal...
Thank you for this. Nice explanation. Much needed this for my project.
wow did not expect to find the biking legend when I clicked on this tutorial
Noob here. I followed the previous videos but all I want to do is be able to see a webcam on the PC. Using nano I created this same file but when I try to run it, I get the following error message.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/pi/project/env/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Thanks for your videos. (1) Do you have tips for beginner playing the mp4 file in Visual Studio or pycharm? I got it to work in pycharm but I'm not sure how. (2) You don't mention audio. Using your code, the playback does not have sound. Is that expected at this point? Are there other openCV options for audio, or from what I see elsewhere, a separate audio file is needed?
Good one!
Let me ask,
In Linux, using V4L2 library it allows me to perform search of cameras in the USB independent of opencv, the return list is then pass to the opencv as a string.
The string name for each camera description is available for user select in dropdown menu.
When any string selected, I used opencv to filtered and retrieve the the camera ID. (0,1,23...). and pass it to opencv to open the camera.
I have been search how to implement this in window but no success, this will require dos cmd.
Do know how it can be done, maybe looking for camera from dos cmd?
hi sam is there anyway one can use another calera (other than the webcam) that is on a USB port? what is the call code for it?
I have an error message NameError: name 'stream' is not defined. What do I do to fix this.
Says cv2 has no attribute VideoCapture i have never been able to get a web cam going on a pi thanks for any help.
I'm getting the No more stream message. I have checked the code and everything looks ok my raspberry pi 4 see's my camera but I get no Video
Thank you .. very nice content.. keep going ..
I had an issue with no window being opened on my rapsberry pi and not returning any values. I use vnc viewer and a pi camera. Any way I can fix this?
Not sure if you are referring to that, but I had a similar problem and it appears to be that, for whatever reason, the VNC viewer does not show the image but it is in fact displayed over the HDMI signal...
I want control backcam using python
That doesn't work, help me, the terminal said "no module named 'cv2'
Is it possible to use pycharm instead of visual studio?
yes; however I could not get 4_stream.mp4 toplay in either.
I got the stream to work in pycharm, to open the mp4 file as Sam does @10:05. no sound.