Raspberry Pi 5 - Ep04 - Raspberry Pi Camera Module 3 - Python/OpenCV/Qt5

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ธ.ค. 2023
  • Running Raspberry Pi Camera Module 3 in python with OpenCV and Qt5
    Items in the video:
    www.raspberrypi.com/products/...
    www.raspberrypi.com/products/...
    www.raspberrypi.com/products/...
    Code:
    github.com/JungLearnBot/RPi5_...
    github.com/JungLearnBot/RPi5_...
    Putting things together - 0:0
    Trouble shooting the pi camera for python - 6:06
    Camera running - 12:34
    #raspberrypi5 #python #opencv #qt
    #raspberrypi_camera_module_3

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

  • @wecanplay5363
    @wecanplay5363 3 หลายเดือนก่อน +10

    man, u saved our project, thank u

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

      Glad I could help :D

  • @giostechnologygiovannyv.ri489
    @giostechnologygiovannyv.ri489 12 วันที่ผ่านมา +1

    1:16 Thanks man for highlighting the fact that those camera modules don't work with the RasPi 5, at least a video on that XD but I couldn't find it before on my search XD weird, but ok I already made them ordered the cables of 22 to 15 pins... Btw and FYI: 1:16 yeah that power supply is much better, but I have no warning at all with my power supply charger of my Samsung Galaxy S9+, well it's a new charger I have because the previous one was too old and died (I think from a fall) and this is a simple power supply of 10 W 5V and 15 W 9V, I didn't have any issues at all, it just heats a bit while connected to the RasPi5. Just to let know others in case they cannot get the official power supply. And yeah that is good without the UK connector XD I also made them order (kind of bosses of the project) one and it comes the same just with rounded connectors for the outlets. :)) I'll keep taking a look at your video. Like 274!
    2:04 hopefully no man, is a fact it will XD haha they are designed for it ;)
    3:54 haha no worries man it happens, but yeah indeed the black thing goes from the side of the supply power, the connectors facing the Ethernet connector.
    4:54 they don't blow up, maybe heating up or turning off but not blowing up XD

  • @kahnivore666
    @kahnivore666 2 หลายเดือนก่อน +1

    thank you this was extremely helpful, tested on a pi cam v2

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

      Great to hear!

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

      Were you using a Raspberry Pi 5 with the pi camera module 2?

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

      @@gregorymoore7617yup!

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

      @@gregorymoore7617yup!

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

      @@gregorymoore7617yup!

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

    I wouldn't have figured out how to connect the camera if it wasn't for this video. I thought you had to use some other kind of other connector or electrical tape to get the original cable to work with the adapter 😅

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

      Glad it helped :)

  • @abdelrahman7504
    @abdelrahman7504 4 หลายเดือนก่อน +2

    waiting for ur next video
    Can you make more object detection videos please?
    keep it up ❤

    • @JungLearnBot
      @JungLearnBot  4 หลายเดือนก่อน +1

      Thank you! More coming soon :)

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

    Nice video

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

      Glad you liked it :)

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

    I am currently trying to do this, yet I have a Raspberry Pi 4. I am assuming you are using Bookworm OS ? In theory it should also work for the RB4 ?

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

      Yes it would since it is just python code. Thou you probably have to change code a bit if you use different camera.

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

      @@JungLearnBot I'm using a PiCamera V2 which someone in the comments already confirmed it work. Will work on this later today so I'll post if it indeed works. Ty for taking the time to doing this, kind of sad that this is so buggy considering there is a slot on the boards for these specific cameras. I'll also try USB to see the difference on the approaches.

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

    Hello, do you have raspi 5 ready to use image somewhere so we can download it and use like in your videos? Because my opencv unable to access camera module. Thanks mate

    • @JungLearnBot
      @JungLearnBot  4 หลายเดือนก่อน +1

      @fpvlive3346, unfortunately I don't have os image ready for the camera. I was also unable to access pi camera module 3 from opencv.
      That why I had to do "pip install picamera2". If you use python 3.11, you should be able to use the camera.
      The following was how I setup conda env so if you follow it, you should be able to reproduce what I did:
      github.com/JungLearnBot/RPi5_yolov8/blob/main/Readme.RPi5.cpu.picam.qt.md

  • @robytryall
    @robytryall 23 วันที่ผ่านมา

    Hi! Thank you for your time and effort making these videos, I have the pi5 and cam module 3, I prepared the environment according to your description on github, and when I try running "python main_picam.py --camera_test" I get the following error "File "/home/berry/Downloads/RPi5_yolov8-main/main_picam.py", line 8, in
    from picamera2 import Picamera2
    ModuleNotFoundError: No module named 'picamera2'"
    You mentioned about manually copying the picamera2 files to the conda environment, which I did as well.
    Seems like I am missing the library? I am a beginner using raspberry pi and python.

    • @JungLearnBot
      @JungLearnBot  10 วันที่ผ่านมา

      Did you pip install pycamera2?
      pypi.org/project/picamera2/

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

    I'm experiencing the same problem with the cable. Will the camera cable meant for the Raspberry Pi 0 function properly with the Raspberry Pi 5? I've come across a cable identical to the one you're using, but it's labeled as 160FPC instead of 150. What does this number even mean? And more importantly, will it be compatible?

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

      I am using raspberry pi zero cable and it seems to work without too much issue. I heard they are pretty much the same but not sure about the number, sorry

    • @elrayyes_leb8872
      @elrayyes_leb8872 2 หลายเดือนก่อน +1

      just bought two of them,. The number represents the length of the cable.@@JungLearnBot

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

    Sir, how can i contact you? I have some doubts regarding my raspberrypi opencv project.

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

    Man, is there is any problem if I am using raspberry pi 4 power supply of 15 W

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

      @jaiswal_stock, I think so, as the official power supply is 15w.
      www.raspberrypi.com/products/type-c-power-supply/
      Only Raspberry pi 5 needs special one:
      www.raspberrypi.com/products/27w-power-supply/

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

    Dear Jung, I decided to buy pi 5 and camera module v3. Will i have any problem, if i use python v 3.12 ?

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

      I can only make camera module 3 on python 3.11 and it is causing me lots of pain. I havent tested on 3.12. I tried to make it work on 3.10 and 3.9 but failed.

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

    Can raspberry pi 4 cameras be used with raspberry pi5? Or is there some specific cameras for Raspberry pi 5?

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

      Pi cameras modules can be used for both RPi4 and RPi5. (At least pi camera module 3). Thou you need slightly different cable for RPi5.
      www.raspberrypi.com/products/camera-cable/
      If you use RPi4, you can use the cable which comes with the camera.

  • @corruptedmineral
    @corruptedmineral 7 วันที่ผ่านมา

    so u dont need to use every code the github provide or how do i know when to use all or just some of it

    • @JungLearnBot
      @JungLearnBot  7 วันที่ผ่านมา

      Hi. If you see the description. It says which files (readme) are for this video

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

    something has changed, I can't install picam2 into the conda environment. it stops at "Preparing metadata (setup.py) ... error " and "You need to install libcap development headers to build this module". any idea?

    • @JungLearnBot
      @JungLearnBot  3 หลายเดือนก่อน +2

      @robertkloetzer1655, sorry. I haven't met that problem yet. but according to:
      github.com/raspberrypi/picamera2/issues/294
      sudo apt install -y python3-libcamera python3-kms++ libcap-dev
      can solve the problem. hopefully this fixes your issue :)

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

      Yes, it works. thank you very much, great work @@JungLearnBot

  • @Nabeel.s
    @Nabeel.s 2 หลายเดือนก่อน +1

    Does camera module rev1.3 work in rpi 5?

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

      Sorry. I haven’t tried rev1.3 so I’m not sure

    • @Nabeel.s
      @Nabeel.s 2 หลายเดือนก่อน +1

      @@JungLearnBot sorry its working ,as its in the video wrongly connected camera

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

      Nice!

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

    Hi … can i use this code also on a pi zero 2w … sorry but i’m new to this raspberry

    • @JungLearnBot
      @JungLearnBot  2 หลายเดือนก่อน +1

      I think it should if you are using camera module 3 and bookworm os but not 100% sure as i havnt tested in that configuration.

  • @Sahilkhan-jd5fz
    @Sahilkhan-jd5fz 3 หลายเดือนก่อน

    I had the same problem 3 weeks ago with the cable

    • @JungLearnBot
      @JungLearnBot  3 หลายเดือนก่อน +2

      Ya. This is annoying. I wish there was some description about this in pi camera module. I guess RP5 came out later than the camera and they did not bother updating the description much.

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