Webcam.js ^new^ Download -
The digital Elias stayed perfectly still, staring out from the browser window with an intensity that made the real Elias freeze. The code was supposed to be a stream, a continuous flow of data. But the image was fixed, a snapshot that refused to expire.
He integrated the script into his local project, a blank white canvas of an HTML page. He wrote the trigger: Webcam.attach('#my_camera') . He saved the file and hit refresh. webcam.js download
<script src="webcam.min.js"></script> <script> Webcam.set( width: 320, height: 240, image_format: 'jpeg', jpeg_quality: 90 ); Webcam.attach('#my_camera'); The digital Elias stayed perfectly still, staring out
// Get a snapshot Webcam.snap(function(data) // Do something with the snapshot ); The digital Elias stayed perfectly still
Webcam.attach('#my_camera', function() console.log("Camera is ready!"); );