🚨Misty Intruder Alert
In this project you can learn how to have Misty trigger an intruder alert if she doesn't recognize a person and send a message to your phone.
If Misty detects a face that's not stored in her memory, she will access your WhatsApp web and send a text message to your phone number saying: "Intruder!". If she does recognize the person, she will send the message "person_name is home!". Before executing the code, open https://web.whatsapp.com/ and log in with your phone number.
We will utilize the Python pywhatkit
library for this purpose, which enables message sending on WhatsApp in a semi-automatic way. To install pywhatkit, use the following command line in your terminal: "pip install pywhatkit
". Press enter and wait for the installation of all the required packages.
Another required action prior to using Whatsapp is to train Misty on the faces you want her to recognize as friends (misty studio Explore>Vision>Train faces) and upload all the files you'll run in the code, both images and audio files (misty studio Explore>Expressions>Upload audio files or Upload images or videos).
Note: Sometimes the WhatsApp message might not be sent before the website closes. In that case, try running the code again. To reset Misty after running the code, you can access its Misty Studio and in the wizard section, click on the "Body Reset" action.
It can only be used in a desktop environment and is not compatible with the Misty Studio Python Interface, so before initiating, ensure you have all the necessary resources for the task.
You can use this link to access the Police Siren Sound Effect.mp3 file https://youtu.be/HKieGUH9pzg
Last updated