A system and method for encoding a document image and finding a location
based on that image are described. A document page is encoded into codes
associated with various locations of the document page. The codes are
assembled into a code book. Captured images may then be similarly encoded
and searched against the codes in the codebook. One or more codes and
associated locations may be returned, thereby providing one or more
possible locations for the captured images.