MCPcopy
hub / github.com/JaidedAI/EasyOCR / extract_class_from_args

Method extract_class_from_args

easyocr/DBNet/model/constructor.py:44–49  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

42
43 @staticmethod
44 def extract_class_from_args(args):
45 cls = args.copy().pop('class')
46 package, cls = cls.rsplit('.', 1)
47 module = importlib.import_module(package)
48 cls = getattr(module, cls)
49 return cls
50
51 def load_all(self, **kwargs):
52 for name, state in self.states.items():

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected