Shortcuts

RemoveIgnored

class mmocr.datasets.transforms.RemoveIgnored[source]

Removed ignored elements from the pipeline.

Required Keys:

  • gt_ignored

  • gt_polygons (optional)

  • gt_bboxes (optional)

  • gt_bboxes_labels (optional)

  • gt_texts (optional)

Modified Keys:

  • gt_ignored

  • gt_polygons (optional)

  • gt_bboxes (optional)

  • gt_bboxes_labels (optional)

  • gt_texts (optional)

transform(results)[source]

The transform function. All subclass of BaseTransform should override this method.

This function takes the result dict as the input, and can add new items to the dict or modify existing items in the dict. And the result dict will be returned in the end, which allows to concate multiple transforms into a pipeline.

Parameters

results (dict) – The result dict.

Returns

The result dict.

Return type

dict

Read the Docs v: dev-1.x
Versions
latest
stable
v1.0.1
v1.0.0
0.x
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.0
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.