camSnapshotToFile (Function) |
Top Previous Next |
This function takes a snapshot picture from the camera module and save it in the file system. The picture taken is in the industry standard JPEG format and multiple different resolutions are available.
The following resolutions are available on X32/NX32:
The following basic resolutions are available on NX32L:
The actual resolution used depends on the connected USB camera and may be smaller than the requested resolution, if the camera does not support it.
Note: On X32/NX32, this function is only available for CAM-200 series camera.
Input: res : INT The resolution of the snapshot picture. For X32/NX32:
For NX32L:
filename : STRING Name of the file to save image as. Both absolute and relative paths are allowed. If file exists it will be overwritten.
Returns: DINT The size of the picture snapshot or:
Declaration: FUNCTION camSnapshotToFile : DINT;
Example: INCLUDE rtcu.inc |