This code uses your webcam to see if you're smiling and turns on a toggle in MAX if you are. To use this code, follow these steps:
- Open a terminal and navigate to the project directory.
- Run the command
npm installto install the necessary dependencies. - Open a browser window and navigate to
http://localhost:8080, making sure your webcam is on. - Open the
face_api.maxpatfile and click on thescript startmessage button to start up the WebSocket server (you may need to refresh you browser page after doing this). - After a few moments, you should see the infomation populating in Max, try smiling to see if the toggle turns on.