No description
Find a file
2025-05-15 16:36:44 +02:00
.gitignore Make some clean 2025-05-15 16:36:44 +02:00
analyzer.py Push code produced this Week end 2025-05-13 15:20:48 +02:00
document.pdf Push code produced this Week end 2025-05-13 15:20:48 +02:00
find_optimal_scale.sh Add basic automation 2025-05-15 15:04:23 +02:00
fix_scaling.py Add scaling issues fix 2025-05-15 10:52:04 +02:00
index.html Make some clean 2025-05-15 16:36:44 +02:00
process_full_document.sh Add basic automation 2025-05-15 15:04:23 +02:00
process_single_page.sh Add basic automation 2025-05-15 15:04:23 +02:00
README.md Add scaling issues fix 2025-05-15 10:52:04 +02:00
visualizer.py Add scaling issues fix 2025-05-15 10:52:04 +02:00

pip install --upgrade pip pip install pdf2image

Generate DocTags for all pages and run the visualizer

python doctags_gen.py --pdf document.pdf --output results/ && python create_index.py --directory results/

python analyzer.py --image document.pdf --page 13

python visualizer.py --doctags output.doctags.txt --pdf document.pdf --page 13 --adjust --show

python analyzer.py --image document.pdf --page 13 && python visualizer.py --doctags output.doctags.txt --pdf document.pdf --page 13 --adjust --show

Run full with scaling fix

python analyzer.py --image document.pdf --page 7 && python fix_scaling.py --doctags output.doctags.txt --output fixed_output.doctags.txt --x-factor 0.7 --y-factor 0.7 && python visualizer.py --doctags fixed_output.doctags.txt --pdf document.pdf --page 7 --adjust --show