Do you have the camera set up to use the entire field-of-view?Ā Depending on the video mode you set up, itās really easy to get a much more limited FOV than you want.
Messing with the camera and trying to figure out how to make the latest rpi_camera updates work with GoPiGo O/S, I discovered two things:
- The video mode has to be one that allows the full camera sensor to be used instead of a subset of it.
- You want to set a 4:3 aspect ratio as that appears to be the aspect ratio of the standard raspberry pi cameraās sensor.
You can get fancier cameras with higher resolution and a wider FOV, but I donāt know if you have time for that.
Another option is to get an add-on lens kit, like they sell for smartphones. For example, if you add a fish-eye lens adapter it will increase the FOV, but will add spherical distortion.Ā If you can compensate for spherical distortion in software, that might be a way to do it.
Is your Raspberry Pi throttling because of voltage or heat?Ā @cyclicalobsessive has some nifty scripts that show exactly that kind of problem.
Raspberry Pi-4 boards are not that expensive, comparatively.Ā Assuming that the software can handle it, you want to go with the largest amount of RAM you can get as RAM = speed.Ā Another thought that I just had, make sure you assign enough RAM to the GPU so it can help you.
Also, donāt skimp on the SD card.Ā Spend the extra dinero and get the best and fastest cards you can - A1 rated as a minimum.
Another speed boost is to forgo the SD card and go directly to a small USB SSD drive like the 500GB Seagate Expansion/One-Touch SSDās, as they blast past SD cards in performance.Ā Here in Russia they are the equivalent of about $80 US.Ā The 1T version is about $120 - $150, but you probably donāt need that much space.
Another tip is to turn on TRIM as that will help the SD card/SSD last longer and run faster.Ā Chances are, if you have a really good, name brand, SD card, TRIM will work right out of the box without any additional setup.Ā If you use a SSD, you will probably have to enable discard/trim in software.Ā You can enable automatic TRIM on the SD card/SSD by starting the fstrim.timer service.Ā You can find more information here:
https://www.jeffgeerling.com/blog/2020/enabling-trim-on-external-ssd-on-raspberry-pi
What say ye?