Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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