def download_data(self):
    'Public function for downloading the network weight from the URL link, to be used for\n        text detection functionality. \n        Troubleshooting tip: If you get FileNotFound error during text detector initialization,\n        initialize the text detector and call this function directly to download the model file from public URL link.\n        '
    link = config.TextDetector.model_download_link
    r = requests.get(link, stream=True)
    print('Downloading model file...')
    with open(os.path.join(self.datadir, self.frozen_weights), 'wb') as f:
        for chunk in r.iter_content(chunk_size=(1024 * 1024)):
            if chunk:
                f.write(chunk)
    print('Model file downloaded.')
Public function for downloading the network weight from the URL link, to be used for
text detection functionality. 
Troubleshooting tip: If you get FileNotFound error during text detector initialization,
initialize the text detector and call this function directly to download the model file from public URL link.
def download_data(self):
    'Public function for downloading the network weight from the URL link, to be used for\n        text detection functionality. \n        Troubleshooting tip: If you get FileNotFound error during text detector initialization,\n        initialize the text detector and call this function directly to download the model file from public URL link.\n        '
    link = config.TextDetector.model_download_link
    r = requests.get(link, stream=True)
    print('Downloading model file...')
    with open(os.path.join(self.datadir, self.frozen_weights), 'wb') as f:
        for chunk in r.iter_content(chunk_size=(1024 * 1024)):
            if chunk:
                f.write(chunk)
    print('Model file downloaded.')