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_log(self, volumeId, inpaintId, fields=None)

Fetches the logs for the inpaint job.

Parameters
  • volumeId (str) – Volume ID

  • inpaintId (str) – Inpaint ID

  • fields (list) – List of fields to return, leave empty to get all fields.

Returns

logs

Return type

str

get_inpaints(self, volumeId, inpaintId=None, limit=None, cursor=None, fields=None)

Fetches the inpaint jobs in the volume.

Parameters
  • volumeId (str) – The volumeId to query for inpaint jobs.

  • inpaintId (str) – The inpaintId of an inpaint job.

  • limit (int) – Maximum number of inpaint jobs to return.

  • cursor (str) – Cursor for pagination.

  • fields (list) – List of fields to return, leave empty to get all fields.

Returns

Inpaint jobs info

Return type

dict