Classifying images
In this section, we will discuss an image classification example using the Pico. We will use a binary that has been already compiled and can be downloaded to determine whether a person is present in the frame that's been captured by a camera. Let's get started:
- First, download the compiled binary from https://github.com/ArduCAM/RPI-Pico-Cam/blob/master/tflmicro/bin/person_detection_screen_int8.uf2.
- The next step is to put the Pico in bootloader mode to load the binary. We recommend checking out Chapter 1, Getting Started with the Raspberry Pi Pico, if you are not familiar with the process.
- Copy over the downloaded binary to the Pico.
- Now, we need to interface the camera module to the Pico as follows, where the left-hand side of the arrow refers to a pin on the camera module and the right-hand side of the arrow refers to a pin on the Pico:
- CS → GP5
- MOSI → GP3
- MISO → GP4
- SCK → GP2
- GND pins tied together
- VCC &...