UPDATE JUNE 2020: I HAVE ARCHIVED THIS PROJECT TO FOCUS ON TFLITE-SERVER SINCE I CONCLUDED THAT USB ACCELLERATION IS NOT REQUIRED IN LIGHT OF THE GREAT PERFORMANCE OF THE RPI4
Hi all
I just published code for doing image processing using the Google Coral USB accelerator stick. This brings the power of Tensorflow object detection to the raspberry pi without any compromise to the speed of detections - detections are almost instant! For speed comparison with regular Tensorflow on the pi see this article, but detections are approximately x10 faster with the accelerator stick. Also you donât even need to install Tensorflow on the pi to use the stick. I have structured the project in such a way that the USB stick doesnât even need to be on the pi hosting Home Assistant, it just needs to be on a computer on your network. FYI sticks cost $75 USD.
Any feedback let me know.
Cheers!
@mspinolo yes I am running on plain old Raspbian (below) with the raspi camera, but it would also work on Hasspbian (write-up to do) and in the future hopefully as a Hassio addon. The USB stick is supported on Linux only, and my plan is to have a dedicated pi in a cupboard as my âmodel serverâ. My actual HA instance is in Docker on a Synology btw.
Cheers
@mspinolo this component can be used with any HA camera by calling the scan service, it is processing individual frames on the service call - this is how all image processing components in HA work, and in practice enables processing at 1FPS which should be adequate. The image files are being posted over the network if HA and the USB stick are on different computers. If you want to do true streaming processing (e.g. at 30 FPS) there are examples for that online, but that is not what this component is designed for.
OK so I just installed the stick on Hasspbian and it works fine alongside HA, this means I can create a hasspbian script to get everything installed and up an running with minimum user config
I should receive my stick within days, how can I help you better?
Install it on a plain Raspbian or DietPI on RPI 3 with HA on a separate PC or directly on minipc with Hass.io?
For first evaluation I would be tempted RPI3 to avoid screwing up my main setup
Raspbian or Hasspbian is straightforward install. Really Im just looking for steering on which features people would like implemented. However if your Docker is strong then a Hassio addon would be good! I am going away on holidays for 10 days