only look at 3 pages if no good match
git-svn-id: http://comictagger.googlecode.com/svn/trunk@227 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
parent
c6c5728cb3
commit
a2d0068522
@ -420,7 +420,7 @@ class IssueIdentifier:
|
||||
|
||||
self.log_msg( "Comparing to some other archive pages now..." )
|
||||
found = False
|
||||
for i in range( min(5, ca.getNumberOfPages())):
|
||||
for i in range( min(3, ca.getNumberOfPages())):
|
||||
image_data = ca.getPage(i)
|
||||
page_hash = self.calculateHash( image_data )
|
||||
distance = ImageHasher.hamming_distance(page_hash, self.match_list[0]['url_image_hash'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user