The position between the images is corrected based on the template, thereby aligning the images of consecutive pages.
since the template is acquired using the circumscribing lines, an accurate template can be obtained, thereby improving the precision of the alignment.