Shortcuts

InferencerLoader

class mmocr.datasets.transforms.InferencerLoader(**kwargs)[source]

Load the image in Inferencer’s pipeline.

Modified Keys:

  • img

  • img_path

  • img_shape

  • ori_shape

Parameters

to_float32 (bool) – Whether to convert the loaded image to a float32 numpy array. If set to False, the loaded image is an uint8 array. Defaults to False.

Return type

None

transform(single_input)[source]

Transform function to add image meta information.

Parameters

single_input (str or dict or np.ndarray) – The raw input from inferencer.

Returns

The dict contains loaded image and meta information.

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.