Shortcuts

CTCPostProcessor

class mmocr.models.textrecog.CTCPostProcessor(dictionary, max_seq_len=40, ignore_chars=['padding'], **kwargs)[源代码]

PostProcessor for CTC.

参数
返回类型

None

get_single_prediction(probs, data_sample)[源代码]

Convert the output probabilities of a single image to index and score.

参数
返回

index and score.

返回类型

tuple(list[int], list[float])