repo_description: text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
repo_topics: ctpn id-card ocr robust-reading tensorflow text-detection
code: from .VGGnet_test import VGGnet_test
  from .VGGnet_train import VGGnet_train
  
  def get_network(name):
      """Get a network by name."""
      if name.split('_')[0] == 'VGGnet':
          if name.split('_')[1] == 'test':
             return VGGnet_test()
          elif name.split('_')[1] == 'train':
             return VGGnet_train()
          else:
             raise KeyError('Unknown dataset: {}'.format(name))
      else:
          raise KeyError('Unknown dataset: {}'.format(name))
  