MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / get_character_num

Method get_character_num

openrec/postprocess/__init__.py:75–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 self.with_ratio = with_ratio
74
75 def get_character_num(self):
76 return [len(self.gtc_character), len(self.ctc_character)]
77
78 def __call__(self, preds, batch=None, *args, **kwargs):
79 if self.with_ratio:

Callers 2

_init_commonMethod · 0.45
_init_rec_modelMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected