Page 54 - Raspberry Pi as a Foundation for Boosting Computer and Technology Literacy
P. 54

4  Raspberry Pi accessories
                12-megapixel sensor. All cameras are supported by libcamera soft-
                ware, connect to the camera serial interface (CSI) socket on Raspber-
                ry Pi. Camera Module 3 wide has an expanded 120° field of view and
                features an image sensor from Sony (IMX708), which has a pixel den-
                sity that produces incredibly detailed images. The latest Raspber-
                ry Pi OS also comes with Picamera 2, a Python library that is perfect
                for snapping images to building advanced image recognition appli-
                cations. Camera Module 3 can be used for home security, time-lapse
                photography, wildlife photography, industrial inspection, astropho-
                tography, or art projects. Documentation, product brief, and manuals
                can be found at  Raspberry Pi Documentation; Accessories; Camera,
                  camera-module-3-product-brief.pdf, and    picamera2-manual.pdf.
                1  Figure 4.5 shows a set-up with a Raspberry Pi 4 (with Bookworm OS
                installed), Raspberry Pi HQ Camera v1 from 2018 with a C/CS mount,
                and a 10 megapixels 16 mm lens, to which an old Sony wide conversion
                lens (VCL-0637H) has been attached. The photo shown was made after
                we:
                  1. Made all connections
                  2. Prepared the software
                  3. Checked if everything was working by typing:

                  rpicam-hello
                  after which a preview window opened for about five seconds.

                  4. Finally, we captured a full resolution JPEG image by typing:

                  rpicam-jpeg -o test.jpg
                in the terminal.
                  The video capture application for Raspberry Pi is rpicam-vid. For
                writing a 20-second video to file, we used:
                  rpicam-vid -t 20000 -o test.h264
                  and played the file in VLC application using:

                  vlc test.h264
                  Common projects with Raspberry Pi 4 and an HQ camera include
                home surveillance systems or remote monitoring, a system for captur-
                ing wildlife activity with motion detection features, time-lapse pho-
                tography, a set-up for a video streaming server for live streaming or


                            54
   49   50   51   52   53   54   55   56   57   58   59