RkBlog

Hardware, programming and astronomy tutorials and reviews.

Capturing images from a webcam in Django with jpegcam

Django integration of jpegcam widget that allow users to save images from a computer webcam.

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.

jpegcamdjango1

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.

RkBlog

17 October 2010;

Comment article