TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard

GPIO output when class is detected

Open lanman1 opened this issue 4 years ago • 1 comments
trafficstars

Hello, I'd like to be able to Bring a GPIO pin high when a specific class or classes are detected on webcam, then go low when they are not. Can anyone point me in e right direction as to where to add the code to do this? Would it be in TFLite_detection_webcam.py?

lanman1 avatar Nov 03 '21 01:11 lanman1

dude search for the specific python package to control the GPIO. If the class is detected you can set the GPIO pin. The script youre using should contain that, so when your purpose is a livestream with a cam, YES.

Petros626 avatar Jul 19 '23 18:07 Petros626