12 lines
415 B
Python
12 lines
415 B
Python
import sys
|
|
sys.path.insert(0,".")
|
|
from PIL import Image
|
|
from pathlib import Path
|
|
base=Path("output/AndhraJyothi_Siddipet District_20260602_20260603_144919/pages")
|
|
img=Image.open(base/"page_001.png").convert("RGB")
|
|
print("page size",img.size)
|
|
# bottom region holding H38 + neighbours
|
|
crop=img.crop((1550,5300,4135,6800))
|
|
crop.save("scratch_py/_peek_bottom.png")
|
|
print("saved scratch_py/_peek_bottom.png", crop.size)
|