The photocapture attribute takes a snapshot using the built-in camera.
<block> <expt> <likert> <openended> <slidertrial> <survey> <surveypage> <trial>
boolean | A boolean value of true or false. |
It is sometimes useful to have a photo of a respondent to verify identity or to confirm demographic information. When the photocapture attribute is set to true, a photo is taken at the beginning of the expt, block, or trial. Photos are saved as jpg files in a subfolder called "photocaptures" (located under the folder containing the script).
The following trial takes a picture at the beginning:
<trial q1>
/ stimulustimes = [1=target1, target2, target3]
/ photocapture = true
/ validresponse = (noresponse, lbuttondown)
/ timeout = 1000
/ inputdevice = mousekey
</trial>