anatools.anaclient.inpaint module¶
Inpaint Functions
- create_inpaint(self, volumeId, location, files=[], destination=None, dilation=5, inputType='MASK', outputType='PNG')¶
Creates an inpaint job.
- Parameters
volumeId (str) – Volume ID
location (str) – Directory location of the input files
files (list) – List of files to inpaint, leave empty to inpaint all files in directory
destination (str) – Destination of the inpaint
dilation (int) – Dilation used for the inpaint service
inputType (str) – Type of input file, options are ‘MASK’, ‘GEOJSON’, ‘COCO’, ‘KITTI’, ‘PASCAL’, ‘YOLO’
outputType (str) – Type of output file, options are ‘SATRGB_BACKGROUND’, ‘PNG’, ‘JPG’
- Returns
Inpaint ID
- Return type
str
- delete_inpaint(self, volumeId, inpaintId)¶
Deletes or cancels an inpaint job.
- Parameters
volumeId (str) – Volume ID
inpaintId (str) – Inpaint ID
- Returns
Success / Failure
- Return type
bool
- get_inpaint_logs(self, volumeId, inpaintId)¶
Fetches the logs for the inpaint job.
- Parameters
volumeId (str) – Volume ID
inpaintId (str) – Inpaint ID
- Returns
logs
- Return type
str
- get_inpaints(self, volumeId, inpaintId=None)¶
Fetches the inpaint jobs in the volume.
- Parameters
volumeId (str) – Volume ID
inpaintId (str) – Inpaint ID
- Returns
Inpaint jobs info
- Return type
dict