Camera Take Photos

Description

Save photos from a connected camera.

Note: Use the camera ID from the devices list in order to address the camera you want to take a picture from:

actioncomponent-camera-take-photos-copy-id
Output PayloadDescription
cv.PayloadOutputs an array of file names of saved photos

Component Properties

property nameDescription
Physical device IDSpecifies the physical device ID of the camera connected to the device list.
Number of picturesSpecify the number of pictures to be saved when the component is executed (up to 5)
Interval (seconds)Specifies the interval to save photos
Save ToSpecify a subfolder of actmgr/data as the file destination. The photos will be saved in this subfolder. Note this is the folder name, not file name.

The execution of the component requires a time specified by the number of pictures interval, so please avoid settings that are too long. Example: If you set the number of photos to 5 and the interval to 6 seconds, the estimated execution time of the component will be 5*6=30 seconds.

Example of taking an image and sending it via e-mail

actioncomponent-camera-take-photos-example-photo actioncomponent-camera-take-photos-example-split actioncomponent-camera-take-photos-example-mail

Example of taking an image and saving it under the same name

actioncomponent-camera-take-photos-example-samename-1 actioncomponent-camera-take-photos-example-samename-2 actioncomponent-camera-take-photos-example-samename-3 actioncomponent-camera-take-photos-example-samename-4

Note: if you have errors in the JPG file, ensure that you are using a compatible USB-C dongle to connect the camera to the computer. Some may not provide enough power for the camera or have other issues causing corrupt files.