Finds margins in a scanned book