by Melody Hu, Irene Pi, and Angela Lou
If you are a parent, you probably don't want your kids to check out and buy stuff on Amazon without your consent. But, you still want them to choose what they would like on Amazon. This is a Chrome browser extension that doesn't let anyone proceed to the checkout page until a known face (ideally, parent's face) is recognized via the web camera. Also, because HackCMU's theme this year is space, we added space helmets on everyone's faces identified on the web camera when scanning for known people :) Here are each of the components of the project in detail:
- technologies: Python, OpenCV, face_recognition library
- features: facial recognition, open webcam for set period of time, space helmet filter
- steps:
- open webcam
- load known faces
- for 15 secs, use face_recognition to identify faces in webcam and compare to known
- apply space helmet to everyone on webcam :)
- once it matches someone to known face, print out "accept"
- resources:
- facial recognition: https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_from_webcam.py
- filter on faces: https://github.com/TithiSreemany/Snapchat-Filter-using-OpenCV/blob/main/Snapchat%20Filter%20with%20OpenCV.ipynb
- space helmet: image link
- technologies: HTML, CSS, JavaScript
- features: buttons accept(green) -> successfully continue to purchase, reject(red) -> invader link, upload known image(user to upload image for facial recognition) Other features: highlight a word + right click + search word on Amazon
- steps:
- open Google Chrome (works better on non-dark mode) & manage Extensions
- toggle on Developer Mode & click on "Load Unpacked"
- upload the "chrome-extension" folder
- once uploaded, go to the Extension icon at the top of the browser
- click on "View popup"
- resources:
- chrome extension: SteamCode Chrome Extension
- technologies: HTML, CSS, JavaScript
- features: picture slideshow, button that launches chrome extension
- steps:
- slideshow shows pictures of space and mars to advertise the tour tickets
- user will click buy tickets, which launches the chrome extension
- after their face is verified, user can continue with the purchase
- resources:
- obrion-nebula.jpeg: image link
- space.jpeg: image link