The Webcam Motion Detection project is built using the Processing programming language. It captures images from the webcam, applies optical flow detection algorithms, specifically the Horn & Schunck algorithm, and calculates the amount of motion between consecutive frames. When a minimum threshold of motion is detected, it draws pixels from a PNG image file at the location of detected motion.
- Webcam image capture
- Optical flow detection using the Horn & Schunck algorithm
- Motion calculation between frames
- Dynamic drawing of pixels from a PNG image based on detected motion
- Processing IDE
- Webcam connected to the computer
- Clone the repository or download the project files to your local machine.
- Open the project in the Processing IDE.
- Open the main project file in the Processing IDE.
- Make sure your webcam is connected and properly configured.
- Press the "Run" button or use the shortcut (Ctrl+R / Cmd+R) to compile and execute the application.
- The webcam feed will be displayed, and motion detection will start.
- Move in front of the webcam or introduce motion in the scene to trigger the drawing of pixels from the PNG image.
- Adjust the motion detection threshold or other parameters as desired.
- PS: YOU NEED THE APROPRIATE LIBRARIES TO RUN!
Contributions are welcome! If you have suggestions, bug reports, or would like to contribute to the project, please follow the guidelines outlined in the CONTRIBUTING.md file.
This project is maintained by [Leandro Ramalho Motta Ferreira]. If you have any questions or inquiries, please contact [cajjunb@gmail.com].
This project is licensed under the MIT License.