Parsed config: Config(OPT_MAX_ITER=600000, FOCAL_LENGTH=1.2, TEXT_MIN_WIDTH=15, TEXT_MIN_HEIGHT=2, TEXT_MIN_ASPECT=1.5, TEXT_MAX_THICKNESS=10, DEBUG_LEVEL=0, DEBUG_OUTPUT='file', EDGE_MAX_OVERLAP=1.0, EDGE_MAX_LENGTH=100.0, E
DGE_ANGLE_COST=10.0, EDGE_MAX_ANGLE=7.5, SCREEN_MAX_W=1280, SCREEN_MAX_H=700, PAGE_MARGIN_X=50, PAGE_MARGIN_Y=20, ADAPTIVE_WINSZ=55, OUTPUT_ZOOM=1.0, OUTPUT_DPI=300, REMAP_DECIMATE=16, NO_BINARY=0, CONVERT_TO_PDF=False, RVEC_
IDX=(0, 3), TVEC_IDX=(3, 6), CUBIC_IDX=(6, 8), SPAN_MIN_WIDTH=30, SPAN_PX_PER_STEP=20)
Loaded 007-P2340220-1.JPG at size='2112x2816' --> resized='422x563'
got 8 spans with 58 points.
initial objective is 0.0035182845640143946
optimizing 74 parameters (max. 600000x)...
optimization took 1.28 sec.
final objective is 0.002986078900195365
got page dims 1.164557200720299 x 1.8459033933658369
output will be 1648x2608
wrote 007-P2340220-1_thresh.png
Loaded 008-P2340221-2.JPG at size='2112x2816' --> resized='422x563'
got 45 spans with 214 points.
initial objective is 0.015737732976275863
optimizing 267 parameters (max. 600000x)...
optimization took 4.58 sec.
final objective is 0.014594594529674619
got page dims 1.1851942389562595 x 1.9148111690449672
output will be 1680x2704
wrote 008-P2340221-2_thresh.png
Loaded 009-P2340222-3.JPG at size='2112x2816' --> resized='422x563'
got 34 spans with 216 points.
initial objective is 0.022322405496693534
optimizing 258 parameters (max. 600000x)...
optimization took 3.86 sec.
final objective is 0.021243150117114647
got page dims 1.161078377426509 x 1.8610429411895408
output will be 1648x2624
wrote 009-P2340222-3_thresh.png
Loaded 010-P2340223-4.JPG at size='2112x2816' --> resized='422x563'
got 30 spans with 125 points.
initial objective is 0.017886526727287737
optimizing 163 parameters (max. 600000x)...
optimization took 15.33 sec.
final objective is 0.005702733986331095
got page dims 0.9907863445953133 x 1.5209907818594461
output will be 1408x2144
wrote 010-P2340223-4_thresh.png
Loaded 011-P2340224-5.JPG at size='2112x2816' --> resized='422x563'
got 7 spans with 50 points.
initial objective is 0.002980927120719364
optimizing 65 parameters (max. 600000x)...
optimization took 1.39 sec.
final objective is 0.0016822176676967336
got page dims 1.1145383310499068 x 1.859397673480877
output will be 1584x2624
wrote 011-P2340224-5_thresh.png
Last active
December 8, 2025 01:32
-
-
Save lmmx/ea859f162dbd0fea3ac29e94d1ea32bf to your computer and use it in GitHub Desktop.
Repro results on https://github.com/lmmx/page-dewarp/issues/77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




