Skip to content

a tiny and very primitive piece of code to show how to use camera in oTree

Notifications You must be signed in to change notification settings

chapkovski/using-camera-in-otree

Repository files navigation

Photo camera in otree

Based on WebcamJS 1.0 by Joseph Huckaby.

Docs for camera are available here.

An alternative concise and even nicer solution in jQuery can be found here. See more in Danny Markov's tutorial.

On oTree side, the solution is a bit primitive: we put the camera data into a TextField, and then process it decoding from Base64 back to image, and save it in a static folder with the name [photo]+[participant's code].

At the next page the player can delete or keep the photo on server.

About

a tiny and very primitive piece of code to show how to use camera in oTree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published