The photoCapture attribute takes a snapshot using the built-in camera.
<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>
Name | Type | Description |
---|---|---|
boolean | boolean |
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>