Hardware, programming and astronomy tutorials and reviews.

Capturing images from a webcam in Django with jpegcam

jpegcam is an interesting Flash/JavaScript component for capturing and saving images from user webcams. It can be used for example to allow users to make a picture of themselves as avatars.

Widget features a flash "player" that shows live view from the webcam and buttons with attached JavaScript functions that can capture and send an image to the server in raw POST mode.


On the wiki there is also an example how to use jpegcam with a model based form (save and validate!). The model must exist and must have ImageField field.


Django web framework tutorials, 17 October 2010, Piotr Maliński

Comment article