original_docstring:  OCR.space API request with local file.
          Python3.5 - not tested on 2.7
      :param filename: Your file path & name.
      :param overlay: Is OCR.space overlay required in your response.
                      Defaults to False.
      :param api_key: OCR.space API key.
                      Defaults to 'helloworld'.
      :param language: Language code to be used in OCR.
                      List of available language codes can be found on https://ocr.space/OCRAPI
                      Defaults to 'en'.
      :return: Result in JSON format.
      
docstring: OCR.space API request with local file.
docstring_tokens: OCR . space API request with local file .
code: def ocr_space_func(filename, create_pdf, overlay=False, api_key='helloworld', language='eng'):
      """ OCR.space API request with local file.
          Python3.5 - not tested on 2.7
      :param filename: Your file path & name.
      :param overlay: Is OCR.space overlay required in your response.
                      Defaults to False.
      :param api_key: OCR.space API key.
                      Defaults to 'helloworld'.
      :param language: Language code to be used in OCR.
                      List of available language codes can be found on https://ocr.space/OCRAPI
                      Defaults to 'en'.
      :return: Result in JSON format.
      """
      if create_pdf=="True":
      	create_pdf = True
      else:
      	create_pdf = False
  
      payload = {'isOverlayRequired': overlay,
                 'apikey': api_key,
                 'language': language,
                 "isCreateSearchablePdf": create_pdf,
                 "isSearchablePdfHideTextLayer": create_pdf,
                 "isTable":True
                 }
      with open(filename, 'rb') as f:
          r = requests.post('https://apipro3.ocr.space/parse/image',
                            files={filename: f},
                            data=payload,
                            )
      return r.content.decode()
code_tokens: def ocr_space_func ( filename , create_pdf , overlay = False , api_key = 'helloworld' , language = 'eng' ) : if create_pdf == "True" : create_pdf = True else : create_pdf = False payload = { 'isOverlayRequired' : overlay , 'apikey' : api_key , 'language' : language , "isCreateSearchablePdf" : create_pdf , "isSearchablePdfHideTextLayer" : create_pdf , "isTable" : True } with open ( filename , 'rb' ) as f : r = requests . post ( 'https://apipro3.ocr.space/parse/image' , files = { filename : f } , data = payload , ) return r . content . decode ( )
short_docstring: OCR.space API request with local file.
short_docstring_tokens: OCR . space API request with local file .
comment: """ OCR.space API request with local file.
          Python3.5 - not tested on 2.7
      :param filename: Your file path & name.
      :param overlay: Is OCR.space overlay required in your response.
                      Defaults to False.
      :param api_key: OCR.space API key.
                      Defaults to 'helloworld'.
      :param language: Language code to be used in OCR.
                      List of available language codes can be found on https://ocr.space/OCRAPI
                      Defaults to 'en'.
      :return: Result in JSON format.
      """