Skip to content

About

A simple demo of using Coral TPU and Pimoroni Display HAT mini to create an object detection camera

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiZeroAiCam

A simple demo of using Coral TPU and Pimoroni Display HAT mini to create an object detection camera

Instructions

Link to Instructables

Install

git clone https://github.com/Alitzlan/PiZeroAiCam.git
cd PiZeroAiCam
bash install.sh

Then reboot the device

Optimization

With the following optimization, the framerate can hit 20 FPS

Unofficial ST7789 Display Driver Perf Optimization

The ST7789 library is using the obsolete xfer method to write the display via SPI

Double the framerate with the more optimized writebytes2 method and remove the send by chunk logic

Unofficial Display HAT Mini Perf Optimization

The Display HAT Mini library sets a 180-degree rotation and then in this project a transpose is applied. However, this buffer copy can be removed by setting the rotation directly at the Display HAT Mini (by setting it to rotation=0)

Moreover, the spi_speed_hz parameter can be adjusted to a higher value. Based on my experiments, setting it to 90 MHz brings framerate boost without image distortion

About

A simple demo of using Coral TPU and Pimoroni Display HAT mini to create an object detection camera

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages