FrameGrabber
A simple hack to get an image from a webcam, add some text to it and post it to a PHP-script on a website.
To get the example runnig...
First of all you'll need a server to run the PHP-script on. Then you'll need to modify the URL in the file FGrabber.java to pint at your server. Then you'll have to modify the saveCam.php script to save the image at the right location. Don't forget to change the pasword in the script!
How does it work?
Start the application. If you have the Java Media Framework installed properly you should see an image in the dialog. (NOTE! The example works for Windows! You'll have to tweak it to run on another OS.) Aim the cam and press "Click". If you're happy with the result enter the correct password (set in the saveCam.php) and press publish.
Example image

Requirements
- Java Media Framework - Needed to get the image from the webcam.
Downloads
- FrameGrabber_src.zip - Java source code.
- saveCam_php.zip - How to save the image on server side using PHP.
Copyright notice
- In this example I use a java class called ClientHttpRequest that is created by Vlad Patryshev. You'll find some more of his work at My Java Tools
Comment this project:
No messages yet.