Raspberry Pi Picamera2 - Updated libraries using libcamera - demo with HQ camera microscope

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 14

  • @ayskendee5693
    @ayskendee5693 Год назад +2

    tnx for the vid, i have been searching for tutorials of libcamera and didnot notice there is picamera2

  • @welshjohn6497
    @welshjohn6497 Год назад +1

    At last, some really useful information on getting libcamera to work on the RPi with Bullseye, thank you

  • @dphair3805
    @dphair3805 6 месяцев назад

    Great explanation / demo of libcamera. I'm a beginner with a RP4b running Bookworm looking to make a trail cam that works offline with a battery and triggered by motion detection. I was able to follow your video and install all software as described with no errors except for the Thonny script. I'm surprised there aren't more similar videos using libcamera? It appears to have so much to offer. Lots to learn...Thanks😎

  • @OnnieKoski
    @OnnieKoski 8 месяцев назад

    The memory thing might just fix a completely different project I’ve got going, so thanks for that!!

  • @robertorgan6037
    @robertorgan6037 Год назад

    Thank you! A concise explanation of what I need to know and how to do it. You have saved me a great deal of time!

  • @danwood7576
    @danwood7576 Год назад +2

    The source code you have on the linked picamera2 page is for a game not the picamera so you might want to update that. Great idea and vid.

    • @PenguinTutor
      @PenguinTutor  Год назад +2

      Sorry about the confusion with the source code, but thanks for pointing it out - I've now replaced it with the correct code.
      It looks like I accidentally copied and pasted some of my RUclips animation code by mistake.

  • @gunterbreite7145
    @gunterbreite7145 6 месяцев назад

    Thanks a lot mate. One of the best tutorials I found when batteling my Pi 3B+ Camera v3 install !!👍👍👍
    Is there any tip / hint regarding a small & sensefull GUI for the Camera control / operation ??

    • @PenguinTutor
      @PenguinTutor  6 месяцев назад

      I did think of creating my own GUI, but it's a long way down my list of potential projects.
      There is a guide to creating your own here: projects.raspberrypi.org/en/projects/the-all-seeing-pi/0 although I've not worked through that.
      If you want a more comprehensive GUI there is PiCameraApp, which has a lot of features, but it hasn't been updated for several years so it probably won't work with the new libraries, so would need to be run with the compatibility mode.
      github.com/Billwilliams1952/PiCameraApp

  • @fabiomalmsteen3576
    @fabiomalmsteen3576 3 месяца назад

    HI
    thanks for the excellent video, I wanted to ask you how it is possible to add export in raw format to video capture?
    Thank you very much

    • @PenguinTutor
      @PenguinTutor  3 месяца назад +1

      Most proprietary "raw" formats are designed for a specific camera.
      A "raw" format from picamera would be to just capture the image as an array of pixels.
      This can be done using
      array = picam2.capture_array("main")
      That will give a 3 dimensional Numpy Array which you can then manipulate and convert / save as required.
      An alternative is to capture into the PIL format which can be manipulated and / or exported - eg. export as an uncompressed TIFF
      image = picam2.capture_image("main")
      (then process as required)
      Or if you want raw video capture then use:
      config = picam2.create_video_configuration(raw={}, encode="raw")
      picam2.configure(config)
      encoder = Encoder()
      picam2.start_recording(encoder, "test.raw")
      This is all covered on the Picamera2 documentation at: datasheets.raspberrypi.com/camera/picamera2-manual.pdf

  • @raflifahrezy7755
    @raflifahrezy7755 6 месяцев назад

    Can you help me, my raspi5 on the "python preview.py" have error. The error said "ModulNotFoundError:No module named 'picamera2'. Thanks

    • @PenguinTutor
      @PenguinTutor  6 месяцев назад

      I've just tried this on a Raspberry Pi 5 and it works for me.
      Have you got the latest version of Raspberry Pi OS (installed using the RPI Imager?) or are you using a different distro?
      The module is included in python3-picamera2.
      If it's not installed then you could try installing with:
      sudo apt install python3-picamera2