You may be right, but my experience with the Photoshop scripts and Book Scan Wizard makes me think that, for keystone correction anyway, there's enough similarity from one same-side page to the next that the same manual grid would probably work well enough to satisfy me. Since you solved my compile problem, I can play around with the code to see if that thought is justified.
In the project file, I find this:
Code: Select all
<distortion-model>
<top-curve>
<xspline>
<point x="2899.653965154599" y="572.726352586418"/>
<point x="2902.540373650997" y="912.3144924431959"/>
<point x="2905.426782147395" y="1251.902632299974"/>
<point x="2908.313190643795" y="1591.490772156753"/>
<point x="2911.199599140193" y="1931.07891201353"/>
</xspline>
<polyline>dzo1RX0uD0SlaDVFIRRkRNSWNUXifJxEA8U1RbTvxkQy8zVFhmLxRA==</polyline>
</top-curve>
<bottom-curve>
<xspline>
<point x="534.3417606708167" y="552.08458569402"/>
<point x="525.0791997189333" y="891.5667031006279"/>
<point x="515.8166387670499" y="1231.048820507238"/>
<point x="506.5540778151665" y="1570.530937913847"/>
<point x="497.2915168632831" y="1910.013055320456"/>
</xspline>
<polyline>35UFRGoFCkQSRQNEReReRET0AESQ4ZlE7Eb9Q/1QxERQpfhDa8DuRA==</polyline>
</bottom-curve>
</distortion-model>