This python project makes use of facial recognition algorithm to detect if a person is not watching media playing on the firestick and sends commands to the firestick over adb to pause the media.
If a persons face is detected again then the program sends a command to the firestick to start playing the media again. The project was tested successfully using laptop webcam and also tested using a camera module connected to a raspberry pi. There are a number of adb commands that can be used to control the firestick that could be used to improve the projects capabilities.
- Raspberry Pi Zero W or other wifi enabled Rpi models running Raspbian.
- Raspberry Pi compatible camera.
- Connect the camera to raspberry pi and power up the Pi.
- Install the following dependencies in Raspbian:
- tensorflow==1.13.1
- opencv-python==3.4.6.27
- android-tools-adb
- android-tools-fastboot
- Make sure both the fireTV stick and the raspberry pi are on the same wiFi network.
- Connect fireTV stick to the raspberry pi via ADB.
- Start playing any media and the raspberry Pi will automatically pause when you look away and resume playing when you look at the screen again.