Save Images

Function

Save the color images and depth maps to a specified path.

Usage Scenario

It is often used to save the original color images and depth maps from the camera and can also be used to save instance segmentation results. Please change the save path, subfolder name, etc. in the Parameters as needed.

Input and Output

../../../../../_images/input_output_26.png

Parameters

dir setting

saveDir

Instruction: Set the path to save images.

createSubDirByDate

Default Value: True
List of Values: True, False
Instruction: Whether to create a subfolder named with the date.

saveCameraParas

Default Value: True
List of Values: True, False
Instruction: Whether to save the camera parameters, it is recommended to use the default value.

saveExpireDays

Default Value: 7
Instruction: The maximum number of days a file can be kept, expired files will be deleted.

targetName

Instruction: Whether to name the target object.

subFoldersJoined

Instruction: Subfolders can save images in different formats. To create it, use “;” between subfolder names, such as: color; depth.

image index

maximumImgNum

Default Value: 1000
Instruction: The effective range is (1, +∞).

customSavingIndex

Default Value: -1
Instruction: Customize the serial number for saved image.

file name

saveColorImgAsPNG

Default Value: False
List of Values: True, False
Instruction: whether to save the color image in .png format.

fileNamePrefix

Instruction: Whether to add a prefix to the file name.