This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convert each PDF to separate images per page | |
for pdf in ./*.pdf;do | |
python3 -m table_ocr.pdf_to_images $pdf; | |
done; | |
# Extract tables from each page in .png output | |
for images in $(find . -name "*.png"); do | |
python3 -m table_ocr.extract_tables $images; |