Twitter Capabilities
Now PiGlass v2 can
voice tweet (not that great)
voice tweet
Bluetooth keyboard typed tweet
typed tweet
picture tweet
video tweet
I could go live on Twitter if I had the right level of access.
Now PiGlass v2 can
voice tweet (not that great)
voice tweet
Bluetooth keyboard typed tweet
typed tweet
picture tweet
video tweet
I could go live on Twitter if I had the right level of access.
originally everything was hardcoded, I was trying to explain the 2 files you would have to edit and the 20 or so lines it would take to add a new program to the launcher. I realized that if I was able to store the important bits in a file it would be much easier to modify. This is the contents of the file for the existing items I had hardcoded. I also built a 2nd prototype.
[Kodi]
color = "red"
cmd = "sudo -u pi kodi"
process = "kodi.bin_v7"
[RetroPie]
color = "green"
cmd = "sh retropie.sh"
process = "retroarch emulationstatio"
["Pet Camera"]
color = "red"
cmd = "python3 petcamera.py"
process = "python3"
["Funny Camera"]
color = "purple"
cmd = "python3 funnycamera.py"
process = "python3"
["Camera"]
color = "blue"
cmd = "python3 camera.py"
process = "python3"
["Video w/Audio"]
color = "brown"
cmd = "sh videosound.sh"
process = "raspivid ffmpeg"
["Livestream (YT)"]
color = "orange"
cmd = "sh youtube.sh"
process = "raspivid ffmpeg"
I also made a new camera program called “funny camera” that uses opencv to overlay images on detected faces, it is also fed by a file to make it easy to add your own images and put them where you want on peoples faces
[brainslug]
display_name = "Slugs"
file = "mask2.png"
location = "top-right"
["brain blender"]
display_name = "Blenders"
file = "mask4.png"
location = "top"
["dum sticker"]
display_name = "Dum"
file = "maskdum.png"
location = "center-right"
demo of the thug life pictures and their output
This sound is played if the search for faces is sucessful
I changed the face+eye detection to draw thug life shades on any faces detected.
I also added thug life pictures to the camera program and gave it its own sound effect.
I went on Adafruit Show and Tell to demo PiGlass v2. I'm on starting at 15:56 or click the link below
this is the camera program where you can zoom in/out, pan up/down/left/right, take pictures and record silent videos, controlled by the gamepad, below are the images I took.
I added face+eye detection as an option in the menu. It is 640x480 (the lowest resolution I could get to go fullscreen) at a low fps. I will add other types of object detection and see if they do any better. I setup a 2nd copy of the hardware and software so I can avoid doing development on my assembled prototype.
I figured out how to power PiGlass v2 and the vufine for many hours with a single port 5v 2a USB battery pack. It involves connecting the micro USB port on the pi zero 2 to the micro USB port on the vufine with one of these, it follows the same path as the HDMI cable. Previously I was using a 2 port battery pack and 2 cables. The cable for the vufine tended to get caught on things, this new cable fixes that problem.
https://www.adafruit.com/product/3610