powered by
Want to quick OCR a local file and get the results? Use this function.
ocrFile(file_path = "", output_dir = "./", exportFormat = c("txt", "txtUnstructured", "rtf", "docx", "xlsx", "pptx", "pdfSearchable", "pdfTextAndImages", "pdfa", "xml", "xmlForCorrectedImage", "alto"), save_to_file = TRUE)
path to file containing OCR'd text; required
path to output directory. file_name will be same as input file name (except for the extension)
optional, default: txt; options: txt, txtUnstructured, rtf, docx, xlsx, pptx, pdfSearchable, pdfTextAndImages, pdfa, xml, xmlForCorrectedImage, alto
Required, Boolean, Default is TRUE, but if not, returns result to memory
path to output file
# NOT RUN { ocrFile(file_path = "path_to_ocr_file", output_dir = "path_to_output_dir") # }
Run the code above in your browser using DataLab