|
|
|
|
|
- Saving a photo
- Use conditions:
CameraCapture (Function) In french: CameraCapture Captures the images received from the camera: - as an image: take a photo.
- as a video: record a video.
Depending on the platform, the following photo and video formats are used: BMP images or AVI videos.
Remarks: Syntax
<Result> = CameraCapture(<Camera control> , <Name of created file> [, <Type of capture> [, <Capture duration> [, <Images per second> [, <Preview stream>]]]])
<Result>: Boolean - True if the video has been saved correctly,
- False otherwise. To get more details on the error, use ErrorInfo.
<Camera control>: Control name Name of the Camera control to be used. There is no need to display the video in a Camera control to save it. <Name of created file>: Character string Name and full (or relative) path of the file to create.Warning It is not possible to use a UNC path. <Type of capture>: Optional integer constant Type of capture: | | viPictureCapture |
| viVideoCapture (Default value) |
|
<Capture duration>: Optional integer or optional duration Length of the video recording (in seconds). If this parameter is set to 0 or is not specified, the video recording will stop:- when VideoStop is called.
- when there is no more space on the disk.
Note: This parameter can correspond to: - an integer corresponding to the number of seconds,
- a Duration variable,
- the duration in a readable format ('1 s' for example).
<Images per second>: Optional integer Number of frames per second (15 by default). This parameter is taken into account only if <Type of capture> is equal to viVideoCapture. <Preview stream>: Optional boolean - True (by default) if the video stream must be displayed in the specified Camera control,
- False otherwise.
Remarks Only the image displayed when CameraCapture is executed is saved as a BMP image. To save this image, you can also use: Use conditions: To use this function, a "web camera" must be connected to the current computer.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|