How to Install OpenCV on a Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • Here's how you can install OpenCV on your Raspberry Pi 3, 4, and Zero 2 W. This is straightforward and all it takes is some time and patience. Leave comment with a question if you have one or a request for a future tutorial.
    Subscribe for more Raspberry Pi tutorials :) th-cam.com/users/samwestbytech...
    Learn OpenCV: • OpenCV for Python
    I may earn commission if you purchase from the links below:
    MY CAMERA: amzn.to/3reaDlK
    MY MICROPHONE: amzn.to/3fhunSN
    MY LIGHTING: amzn.to/3dHll1i
    FREE Amazon Prime: amzn.to/3ren80W
    FREE Audible Plus: amzn.to/3xYzJsR
    RASPBERRY PI 4: amzn.to/3BC4i9I
    RASPBERRY PI PICO START KIT: amzn.to/3REvjis
    RASPBERRY PI CAMERA V2: amzn.to/3QFp90c
    ELECTRONICS COMPONENT STARTER KIT: amzn.to/3qB23xg
    ASSORTED SENSOR KIT: amzn.to/3U7M7zV
    USB SPEAKER: amzn.to/3La4foK
    USB 1080P WEBCAM: amzn.to/3Lq0OL7
    TIMESTAMPS and INSTRUCTIONS
    0:00 Intro
    0:13 Access the terminal of your Pi
    0:34 Check if you're using all of your system memory with:
    df -h
    If you're not using most of it, run
    sudo raspi-config
    advanced -- expand filesystem
    reboot your pi
    1:19 Update and upgrade
    sudo apt-get update && sudo apt-get upgrade
    1:35 Check your python version
    python3 -V
    sudo apt-get install python3-pip python3-virtualenv
    mkdir project
    cd project
    python3 -m pip install virtualenv
    python3 -m virtualenv env
    source env/bin/activate
    3:03 We need a bunch of system packages (credit to singleboardbytes.com/647/inst...)
    sudo apt install -y build-essential cmake pkg-config libjpeg-dev libtiff5-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libfontconfig1-dev libcairo2-dev libgdk-pixbuf2.0-dev libpango1.0-dev libgtk2.0-dev libgtk-3-dev libatlas-base-dev gfortran libhdf5-dev libhdf5-serial-dev libhdf5-103 libqt5gui5 libqt5webkit5 libqt5test5 python3-pyqt5 python3-dev
    If you're using a PiCamera run:
    pip install "picamera[array]"
    Users of PiCamera may also have to enable Camera Support:
    sudo raspi-config
    Inferface Options
    Legacy Camera Support -- Enable
    4:15 Install OpenCV
    pip install opencv-contrib-python
    --Takes a long time
    5:25 Testing
    python
    import cv2
    cv2.__version__
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 247

  • @okineedadonutnow7181
    @okineedadonutnow7181 2 ปีที่แล้ว

    I've been struggling to get open cv installed for a while, and this worked ! thank you so so much.

  • @ovidiumoise
    @ovidiumoise 5 หลายเดือนก่อน +2

    Flowless on Raspberry Pi 4 model B 4GB with Bookworm 64b. I tried about four different video tutorials but this is by far the best. Thank you, Sam!

  • @JM-bd4mg
    @JM-bd4mg 2 ปีที่แล้ว +2

    Short and simple tutorial and it works for me. Highly recommended, very useful video!!!!!! Love from Malaysia

  • @lml3708
    @lml3708 ปีที่แล้ว

    Great and the best tutorial, after watching a lot of others tutorials i was tired. It really works without problems

  • @pademo57
    @pademo57 ปีที่แล้ว

    Like Preston said this was the best installation video. Thanks so much. Yes! Please keep these videos coming!

  • @prestonmcomber9895
    @prestonmcomber9895 2 ปีที่แล้ว +21

    This is the best opencv installation video I have found to date! I have returned to it many times for my senior design project. Thanks for being clear and concise!

  • @GiantSquidGamer
    @GiantSquidGamer ปีที่แล้ว

    incredible, i am sending this message on a raspberry pi. this is the best tutorial on youtube to get open cv.

  • @joeldizon2065
    @joeldizon2065 4 หลายเดือนก่อน

    Best tutorial ever for OpenCV installation on Raspberry Pi! *****

  • @kanishkalanka2360
    @kanishkalanka2360 ปีที่แล้ว

    I m really appreciate your video because it is really helpful to install open cv in raspberry pi 3 old module. Thank for been clear precenting every thing.

  • @Kirch21_
    @Kirch21_ 2 ปีที่แล้ว

    Thank you very much for this and for explaining each command!

  • @nicknottage4939
    @nicknottage4939 ปีที่แล้ว +3

    So glad I came across this tutorial. Super clear and straightforward. Thanks

  • @oooopppp2
    @oooopppp2 2 ปีที่แล้ว +2

    Great video!
    Thank you very much for the sharing. Good work and useful!

  • @junetechon
    @junetechon ปีที่แล้ว

    i spent an entire day staring at command prompt trying to get this working tysm

  • @interestingengineering291
    @interestingengineering291 2 ปีที่แล้ว +1

    very straight forward and simple. please do a video on how to use it

  • @riccamanlangit2895
    @riccamanlangit2895 2 ปีที่แล้ว +2

    Very helpful. Thank you very much.

  • @manuelcarriedo4404
    @manuelcarriedo4404 ปีที่แล้ว

    thank you very much for sharing this tutorial. very simple and clear explained. I am at the last part installing the openCV while I a m writing this comments, even if the installing process still continues I can see there are some errors popping up here and there. Since I am not the expert on this field, not sure if I should worry or not. I would like to ask you if this instructions apply either for Raspian 32 OS and Raspian 64 OS?

  • @drdtec
    @drdtec 2 ปีที่แล้ว

    Nice tutorial! Thanks.

  • @mahmutsare1817
    @mahmutsare1817 ปีที่แล้ว

    Thank you very much. This video is so useful to setup.

  • @meander5310
    @meander5310 2 ปีที่แล้ว

    Hi Sam, which operating system should be installed on the raspberry pi? With Desktop or without?
    Thank you for Video

  • @saraharbi8807
    @saraharbi8807 หลายเดือนก่อน

    Thank you, your channel is very helpful

  • @patxiplg
    @patxiplg ปีที่แล้ว +1

    This is what I consider the PERFECT tutorial. Thank you a ton. Subscribed!

  • @eddieshu2763
    @eddieshu2763 2 ปีที่แล้ว

    Thank you, this helped me a lot

  • @vikramadithyaanand759
    @vikramadithyaanand759 2 ปีที่แล้ว

    Thank you so much Sam, you rock.

  • @sucharithaanumula1849
    @sucharithaanumula1849 2 ปีที่แล้ว

    Thankyou so much it works perfectly

  • @user-bj4lp3fr1o
    @user-bj4lp3fr1o 9 หลายเดือนก่อน

    This is the best I have seen.

  • @jane4039
    @jane4039 ปีที่แล้ว

    Thank u so much great tutorial 👍🏻

  • @kpyeo6604
    @kpyeo6604 ปีที่แล้ว +2

    I have a raspberry pi 3 Model B V1.2. Installed bullseye 64bit OS. Then followed the instructions exactly in this video. The only extra thing I did was to increase the swap size to 1024 before running "pip install opencv-contrib-python".
    The installation only took less than 15 mins. It didn't take 2hr or more as mentioned in the video. Not sure if I didn't anything wrong. But the installation seems successful.

  • @jean-pierrewolf6464
    @jean-pierrewolf6464 10 หลายเดือนก่อน

    Hello, that's a great tutorial. Is it mandatory to use a virtual environment ?

  • @pranavasthanaDelhi
    @pranavasthanaDelhi ปีที่แล้ว

    Thanks a lot Sam!

  • @broke5637
    @broke5637 ปีที่แล้ว

    Very good tutorial

  • @libiabenacirromeroescobedo5953
    @libiabenacirromeroescobedo5953 2 ปีที่แล้ว +1

    Muchas gracias tu video me ayudo muchisimo! no me cargó en la raspberry pi 3b+ talvez debo de aumentar el GPU pero si funcionó en la raspberry pi 4. Muy bien explicado y nuevamente muchas gracias!

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      I'm sorry it didn't work on the 3b+ but I'm happy it worked on your 4! I'll try to find a 3b+ to do some testing

  • @machirofunz
    @machirofunz ปีที่แล้ว

    you save my life again and so many time

  • @nathalylozano8270
    @nathalylozano8270 2 ปีที่แล้ว +8

    After 3 days of trying to install opencv, reseating my raspberry multiple times, and following every single tutorial, your videos are the only ones that work for me. Thank you so muchhhh!

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      Happy to hear it! Let me know if there are other things you need help with

    • @davidbagiag9807
      @davidbagiag9807 2 ปีที่แล้ว

      @@SamWestbyTech hello can u help me?
      i cant run the j4 command

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว +1

      @@davidbagiag9807 I don't do a j4 command in this tutorial. I'm guessing you're following another tutorial? I heard that others with a Pi 3 got stuck at that command, and when they ran "pip install opencv-python" it worked

  • @kagansenkeser4357
    @kagansenkeser4357 2 ปีที่แล้ว

    this video is very nice thank you

  • @GroockG
    @GroockG ปีที่แล้ว +1

    Great video thanks, on python 3.7.3 I had to run: pip3 install --upgrade virtualenv for some reason before I could start a virtual environment

  • @narsipurnagabhushana3179
    @narsipurnagabhushana3179 2 ปีที่แล้ว +6

    Truely a straightforward, concise and clear video on cv2. It works. Thank you! It would be nice if you could follow this up with CV camera python application that really works. This might help us in better understanding of things that plague us like the assertion error -255 associated with imread().

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      Thanks for the suggestion! I'll look into it

  • @alrawshan2855
    @alrawshan2855 ปีที่แล้ว

    for the last step, do you need to do pip3 install or is pip just fine?

  • @peacemaker3676
    @peacemaker3676 2 ปีที่แล้ว

    Thanks, it did not take 2 hours though - it took like a minute, is this a symptom of something bad? If not, thanks so much, you saved so much of my time that I was wasting on other tutorials for like hours

  • @RizaldiAmrihJ.W.
    @RizaldiAmrihJ.W. 3 หลายเดือนก่อน

    So, after I follow your video tutorial, can I do coding in thony?

  • @nabaamunaf712
    @nabaamunaf712 2 ปีที่แล้ว

    Thank you so much

  • @ronifarhi8705
    @ronifarhi8705 2 ปีที่แล้ว

    Thanks for short and simple tutorial. it was not work for me on 32bit OS (install 3 hours and then got stuck). install very quick on 64bit OS (20sec for last step of pip opencv...) thanks !!!!

  • @lugemwajohnkenedy1617
    @lugemwajohnkenedy1617 2 ปีที่แล้ว

    It is amazing stuff on your channel
    Please also make a video about cross-complying Qt framework on raspberry pi

  • @ahmetenesoran5119
    @ahmetenesoran5119 หลายเดือนก่อน

    Thanks bro

  • @nitinmanoharmishra49
    @nitinmanoharmishra49 9 หลายเดือนก่อน

    4:00 what command do you use in the prompt if you use USB cam ?

  • @shubhammakwana3736
    @shubhammakwana3736 2 ปีที่แล้ว

    can you make a video to install spyder in Raspberry pi . I have got so many error regarding console , PyQt etc.

  • @tusharnage1455
    @tusharnage1455 2 ปีที่แล้ว

    Thank so much sir 💖😊 we love u ❤️😘

  • @dansandu7750
    @dansandu7750 2 ปีที่แล้ว

    Is opencv working only in this folder (project) and only with env activated?
    how do I make it work overall?

  • @midhunmathew3185
    @midhunmathew3185 2 ปีที่แล้ว

    thankyou so much

  • @loudymusu4516
    @loudymusu4516 ปีที่แล้ว

    screen in the top left, look at where it says program and click on where it says “aggressive te” and change it to “analog app 1 te”

  • @MohamedSalah-lv5tx
    @MohamedSalah-lv5tx ปีที่แล้ว

    Thanks a lot
    But why it's work in terminal and not work in other python IDE as thonny ?

  • @abdul-kareemshukri62
    @abdul-kareemshukri62 2 ปีที่แล้ว

    Many Thanks.

  • @carlosdavila2552
    @carlosdavila2552 7 หลายเดือนก่อน

    I get a lot of "Package is not available, but is referred to by another package." or unavailable package errors when trying to install the long list

  • @niallburt1940
    @niallburt1940 ปีที่แล้ว +1

    hey, tried import cv2 in thonny and it didnt work. Can you help?

  • @danielharrich3072
    @danielharrich3072 ปีที่แล้ว

    Hello, I had a problem with 2 packages: while executing the commands, I ot the messages: "unable to locate package libjasper-dev" and "unable to lacate libpng-dev". I have just cancelled them from the commands, do I have to expect problems without them?

  • @trancuong6241
    @trancuong6241 2 ปีที่แล้ว

    thank you very much !! greattttttt

  • @jamesleitch9813
    @jamesleitch9813 2 ปีที่แล้ว +1

    Hi Sam, I love your video. Unfortunately I've run into an issue though. I followed these instructions last night and it worked a treat installing onto a Pi 4B with 32-bit Raspbian+Desktop edition (Bullseye). However, this morning I attempted to install on 64-bit Raspbian (Bullseye) and I'm encountering an error saying 'Unable to locate package libjasper-dev' when trying to install the system packages at 3:22 in your video. Any idea what may be the cause? Everything up to this point is identical to your video?? Thoughts?

    • @sk61003
      @sk61003 8 หลายเดือนก่อน

      Same 😢 what was the solution?

  • @user-ir6rg1hr9n
    @user-ir6rg1hr9n ปีที่แล้ว

    Hi, I installed opencv according to your guide.
    I don't understand how I can use this and integrate it into the script.

  • @MalikSeylan
    @MalikSeylan 6 หลายเดือนก่อน

    thank you.

  • @Sternhammer89
    @Sternhammer89 ปีที่แล้ว

    HI at 2.47, after changing to the project directory, in the video you enter "virtualenv env", however in the description you have written "python3 -m pip install virtualenv" followed by python3 -m virtualenv env. Which is correct, the video or the description.

    • @SamWestbyTech
      @SamWestbyTech  ปีที่แล้ว +1

      Both should get you the same result. I would use the commands in the description because it tells your Pi exactly which python version to use

  • @WaiTheng
    @WaiTheng 6 หลายเดือนก่อน

    What does the "Unable to locate package pthon3-virtualenv" mean? What should I do if I meet this error?

  • @chrisislas5250
    @chrisislas5250 2 ปีที่แล้ว

    Hola Sam, a mi me sale un error al momento de poner "virtualenv env", cual seria el motivo?

  • @MrBlitzcrank
    @MrBlitzcrank 9 หลายเดือนก่อน

    I want to code in C++. Does it work with this installation?

  • @garciatovarjoseeduardo9678
    @garciatovarjoseeduardo9678 2 ปีที่แล้ว

    podrias hacer un tutorial para mediapipe??

  • @kristianmicko6375
    @kristianmicko6375 2 หลายเดือนก่อน

    Excuse me, almost all tutorials use "libjasper-dev" library, but if I install with "sudo apt-get install libjasper-dev", the output is "not package found". Can You make video how to fix it? Can You describe which version of Raspbian was used in this video?

  • @denizhancavus
    @denizhancavus 2 ปีที่แล้ว

    Hi Sam, I am getting a "failed building wheel for opencv-contrib-python" error in "pip install opencv-contrib-python". can you help me, please?

  • @SFJavCPE
    @SFJavCPE 8 หลายเดือนก่อน

    I've run the pip install opencv-contrib-python and after 2 hours or so, the line at the end of the ... in building wheel for opencv-contrib-python (pep 517) stopped turning

  • @realhelmi
    @realhelmi 2 ปีที่แล้ว +5

    That's a very good tutorial. I enjoyed your good audio and video quality which doesn't always happen on these kind of tutorials. I'd appreicate an OpenCV tutorial with the same style. Good work!

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว +1

      Thank you for the kind words! I am working on an OpenCV tutorial, right now.

    • @realhelmi
      @realhelmi 2 ปีที่แล้ว

      @@SamWestbyTech cool, looking forward to it.

  • @vesph7067
    @vesph7067 6 หลายเดือนก่อน

    just received a raspberry pi 5 and apparently it installed open cv in 16 seconds, yet everything seems to be smooth sailing
    is something terribly wrong or rightfully right

  • @ramannagpal5533
    @ramannagpal5533 ปีที่แล้ว

    I followed this tutorial. But i am getting below error when i am running the program
    INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.9/dist-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.
    any help?

  • @khanhtrinhmai2618
    @khanhtrinhmai2618 2 ปีที่แล้ว

    Thanks for your video. I have a question. I have both python 2 and python 3. If I use python 3 do I need to change the command " pip install opencv-contrib-python"? Change to " pip3 install opencv-contrib-python3" ? Thanks

    • @SamWestbyTech
      @SamWestbyTech  ปีที่แล้ว

      Yup I'm pretty sure you do. You want to use the pip associated with python3

  • @jimmyjujames
    @jimmyjujames 6 วันที่ผ่านมา

    I followed your procedure and can now import cv2 from command line, but Thonny reports ModuleNotFoundError: No Module named 'cv2'. This is my third week learning Python. Hope it's something simple like an environment variable, but where?

  • @achyuthakomarlu4539
    @achyuthakomarlu4539 2 ปีที่แล้ว

    Can this be done on a zero w

  • @abdullaal-bader46
    @abdullaal-bader46 2 ปีที่แล้ว

    thanks

  • @izurzuhri
    @izurzuhri 5 หลายเดือนก่อน

    i use debian bullseye lite on my rp3 and it's difficult to open cam window on my pc, does anyone can fix this? i've tried qt, xorg, xcb and nothing happen

  • @ungetoastetetoastbrote6956
    @ungetoastetetoastbrote6956 ปีที่แล้ว +1

    If you are stuck on "building wheel". Try to use the 64-bit OS instead of the 32-bit Version (the recommended one)
    I tried to get it working for around one week before i tried this. After i changed the OS Version to 64-bit it worked on the first try.

    • @justinek6974
      @justinek6974 ปีที่แล้ว

      Are you same problem for "building wheel (PEP517) "
      infinity loading....
      i installed 32bits same too

    • @ungetoastetetoastbrote6956
      @ungetoastetetoastbrote6956 ปีที่แล้ว

      @@justinek6974 The 64 bit Version fixed it for me

    • @wejdan9824
      @wejdan9824 ปีที่แล้ว

      how much time did it last when you used the 64-bit OS ? also I have another question if you may know , I tried to use the 64-bit and I want to capture an image using command ( raspistill -o image.jpg ) but it is not working it says raspistill is un known or something ... if you know what other command or a solution, that would be great!

    • @ungetoastetetoastbrote6956
      @ungetoastetetoastbrote6956 ปีที่แล้ว

      @@wejdan9824 it did not took long, I don't know the exact time but it was less than 10 minutes.
      I don't know the solution for the other question. I'm in no way an expert on raspberry pi and I only used opencv to control the camera. Sorry

  • @eslamhamdy3928
    @eslamhamdy3928 ปีที่แล้ว

    downloading opencv litreally took 1min not 2hours, does that makes any problem?

  • @MohamedMostafa-tn3qo
    @MohamedMostafa-tn3qo 6 หลายเดือนก่อน

    when i write the command of pi camera it give me this message HESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes any help ???

  • @michaelradil15
    @michaelradil15 2 ปีที่แล้ว

    Hi Sam, Thank you so much for your tutorial. It came very close to working for me, but after two try's it still hung up right near the end. I followed the link to your source for the system packages and I tried using their method number 2. I was able to get all the way to 100%. If it wasn't for you I wouldn't have gotten as far as I have.
    The problem now is when I follow their last step to test everything and try to import cv2, I end up with an error "No module named 'cv2'. " Do you have any idea of what has gone wrong here?
    Your help is truly appreciated
    Thank you,
    Michael

    • @michaelradil15
      @michaelradil15 2 ปีที่แล้ว

      I feel like a noob. Oh, I am one. I was in such a hurry I didn't realize that it was actually installed properly and I was supposed to enter the info in the final steps.
      Thank you again for such a great tutorial.

  • @vanni44
    @vanni44 ปีที่แล้ว

    Worked for me on rpi 3b+, after changing swap memory to 1024.

  • @user-qt9sv4fb6v
    @user-qt9sv4fb6v 2 ปีที่แล้ว +1

    Can you do a video about the tutorial for usage of OpenCV. Thank you, new subscriber here.

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว +2

      Sure thing I’ll add it to the list

  • @Ascii_616
    @Ascii_616 ปีที่แล้ว

    hey: why do I have this error
    { ValueError: Buffer dtype mismatch, expected 'const ITYPE_t' but got 'long long' }

  • @user-pv6df9sx5b
    @user-pv6df9sx5b 8 หลายเดือนก่อน +4

    Hi Sam, Great video, very easy to follow and the installation was “successful” at the conclusion of the second hour. Upon ‘import cv2’, however, I’m getting a message saying the package requires ‘numpy’ and goes on to say it could be a set up issue. I tried to install ‘numpy’ per the error message and I get the message “numpy requirements already satisfied”. What am I doing wrong? Thanks, Ed

    • @yautomationjean
      @yautomationjean 6 หลายเดือนก่อน

      hi, Do you solve it ?

    • @khushinikhare_
      @khushinikhare_ 3 หลายเดือนก่อน

      same here

    • @yautomationjean
      @yautomationjean 3 หลายเดือนก่อน +1

      @@khushinikhare_i solved, you should install a before version of Raspberry Pi OS on your Rpi

    • @user-dt7fp1cr6i
      @user-dt7fp1cr6i 16 วันที่ผ่านมา

      same with me today

  • @muggullasairam8442
    @muggullasairam8442 2 ปีที่แล้ว +1

    When tried to run pip install opencv-contrib-python it is getting killed....

  • @prajjwalgarag8815
    @prajjwalgarag8815 2 ปีที่แล้ว +3

    Its stuck on building wheel forever

  • @anthonypeters1797
    @anthonypeters1797 5 หลายเดือนก่อน

    the test works for me but when I try it in Thonny it says that the module is not found

  • @heshamahmed2357
    @heshamahmed2357 2 ปีที่แล้ว

    I got error after waiting 109 min called: Could not build wheels for opencv-contrib-python which use PEP 517 and can not be installed directly.
    What can i do now?
    Please i need answer

  • @RolonoaDZoro
    @RolonoaDZoro 9 หลายเดือนก่อน

    Dose it not work on 32bit os?

  • @minshenlin127
    @minshenlin127 2 ปีที่แล้ว +8

    For those who get stuck on building wheels, the best way to solve it is to REINSTALL the Raspbian OS and follow what Sam did. It got stuck because you have an older version of Raspbian OS that has python3.7 as the default python3 version, which cannot build OpenCV and its dependencies. I tried to simply install python 3.9, but after building OpenCV, some weird errors related to 'glibc' popped up, which is hard to find available solutions online. So, I think reinstalling OS is the easiest way.

    • @ohdangarang
      @ohdangarang ปีที่แล้ว

      what version of os did you use? is it bullseyes or buster?

    • @ohdangarang
      @ohdangarang ปีที่แล้ว

      additionally, which version of python are you using? is it 3.9 or something else?

    • @hvzvrds7565
      @hvzvrds7565 ปีที่แล้ว +1

      i have python 3.9.2 and it still gets stuck

  • @marianoq.daga-angjr5874
    @marianoq.daga-angjr5874 5 หลายเดือนก่อน

    Please check the install target is valid and see CMake's output for more information.
    [end of output]
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for opencv-contrib-python
    Failed to build opencv-contrib-python
    ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects

  • @PatrickBateman32
    @PatrickBateman32 9 หลายเดือนก่อน

    I'm trying the pip install opencv-contrib-python and it keeps saying "collecting opencv-contrib-python killed" then jt just stops

  • @ghadahh9616
    @ghadahh9616 3 หลายเดือนก่อน

    I had an error trying to install it, the error is (externally managed environment )

  • @manuelcarriedo4404
    @manuelcarriedo4404 ปีที่แล้ว

    one additional question. I did install but I did not create the virtual environment and I just proceed to download openCV in the home directory created by default when you get up and running the Raspberry Pi. Would be this the reason why I am getting some errors while installing openCV ?

  • @Ashtar94
    @Ashtar94 2 ปีที่แล้ว

    I have both python 2 and python 3, but the default (when I type "python") is python 2. To install, should I use "pip" or "pip3"? Thanks.

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      Please use python 3. I recommend you type pip3 and python3 instead of pip and python because you have both versions

  • @user-mb7sm3sr6p
    @user-mb7sm3sr6p ปีที่แล้ว

    Hi brother can help me in my project

  • @adityakora2004
    @adityakora2004 ปีที่แล้ว

    if i run this command virtualenv env i am getting virtualenv: command not found can someone help me with this problem

  • @prateeksharma6584
    @prateeksharma6584 ปีที่แล้ว

    Hello sir, I am trying to install open cv on my raspberry pi 3 , but it has been 3 hrs since it stuck on "building wheel for opencv-contrib-python pep 517", what should i do, should i wait little longer, or close everything and restart whole process again, and also if i install simple main module only opencv-python, will it be enough for lane detection and object detection???

    • @SamWestbyTech
      @SamWestbyTech  ปีที่แล้ว

      With a Raspberry Pi 3 running 32 bit OS, this could take up to 24 hours to install. Yes, the simple module will be enough for lane detection and object detection

  • @anikaa4219
    @anikaa4219 ปีที่แล้ว

    Done this many times (still says nomodule named ''cv2') plz help

  • @shubhammakwana3736
    @shubhammakwana3736 2 ปีที่แล้ว

    during "virtualenv env" this command I have got an error : ModuleNotFoundError: No module named 'virtualenv.activation.xonsh' I have recently install python 3.7.12 and tensorflow 2.5.0 from your videos. How can I solve this?

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว +2

      Check your python version to verify you're using python 3.7.12
      python -V
      Then run the following
      python -m pip install virtualenv
      python -m virtualenv env
      source env/bin/activate
      Now you should see that you're in a virtual environment

  • @bigcatdairy
    @bigcatdairy ปีที่แล้ว

    do you have another tutorial on how to access raspberry pi with PC? I was stucked at the very begining lol

    • @SamWestbyTech
      @SamWestbyTech  ปีที่แล้ว

      I'll add that to the list! In the meantime, you can find what you're looking for by searching "how to access raspberry remotely with SSH"

  • @sherbetblueleg
    @sherbetblueleg 7 หลายเดือนก่อน

    I don't even have a file system. am i doing something wrong???? I'm on a time limit to do this so please respond quickly.