Control your Webcam with Python - OpenCV Beginners Tutorial #4

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 17

  • @souravbarua3991
    @souravbarua3991 6 місяців тому

    Thank you for this. Nice explanation. Much needed this for my project.

  • @evlovesbreakfast
    @evlovesbreakfast 21 день тому

    wow did not expect to find the biking legend when I clicked on this tutorial

  • @rodneysmith1750
    @rodneysmith1750 9 днів тому

    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.

  • @georgeseese
    @georgeseese 10 місяців тому

    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?

  • @a.a.patrick
    @a.a.patrick 7 місяців тому

    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?

  • @smainlounici
    @smainlounici 10 місяців тому

    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?

  • @richardpochmara5448
    @richardpochmara5448 10 місяців тому

    I have an error message NameError: name 'stream' is not defined. What do I do to fix this.

  • @Ducerobot
    @Ducerobot Рік тому

    Says cv2 has no attribute VideoCapture i have never been able to get a web cam going on a pi thanks for any help.

  • @richardpochmara5448
    @richardpochmara5448 11 місяців тому

    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

  • @shmoo5z
    @shmoo5z Рік тому

    Thank you .. very nice content.. keep going ..

  • @jimmason9570
    @jimmason9570 2 роки тому

    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?

    • @pplg-yt
      @pplg-yt Рік тому

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

  • @anirudhhegde9378
    @anirudhhegde9378 2 місяці тому

    I want control backcam using python

  • @Hathom-q1m
    @Hathom-q1m Рік тому

    That doesn't work, help me, the terminal said "no module named 'cv2'

  • @adrianblade5145
    @adrianblade5145 Рік тому

    Is it possible to use pycharm instead of visual studio?

    • @georgeseese
      @georgeseese 10 місяців тому

      yes; however I could not get 4_stream.mp4 toplay in either.

    • @georgeseese
      @georgeseese 10 місяців тому

      I got the stream to work in pycharm, to open the mp4 file as Sam does @10:05. no sound.