[#73 state:port] Fixed a bug causing some matches to be ignored in the new pe match algo.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40212
This commit is contained in:
hsoft 2009-10-24 13:54:57 +00:00
parent 25dadc83eb
commit 37a40040b3
2 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Photo(fs.File):
INITIAL_INFO.update({
'dimensions': (0,0),
})
HANDLED_EXTS = set(['png', 'jpg', 'jpeg', 'gif', 'psd', 'bmp', 'tiff', 'nef', 'cr2'])
HANDLED_EXTS = set(['png', 'jpg', 'jpeg', 'gif', 'psd', 'bmp', 'tiff', 'tif', 'nef', 'cr2'])
@classmethod
def can_handle(cls, path):

View File

@ -111,6 +111,8 @@ def getmatches(pictures, cached_blocks, threshold=75, match_scaled=False, j=job.
if len(async_results) > RESULTS_QUEUE_LIMIT:
result = async_results.pop(0)
matches.extend(result.get())
for result in async_results: # process the rest of the results
matches.extend(result.get())
result = []
for ref_id, other_id, percentage in j.iter_with_progress(matches, 'Verified %d/%d matches', every=10):