Tighten image comparison requirements.

This commit is contained in:
Garth Minette 2020-07-19 05:39:49 -07:00
parent 0be0708c2b
commit 598ae04ba5
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def image_compare(file1, file2):
sq = (value * (i % 256) ** 2 for i, value in enumerate(diff)) sq = (value * (i % 256) ** 2 for i, value in enumerate(diff))
sum_squares = sum(sq) sum_squares = sum(sq)
rms = math.sqrt(sum_squares / float(img1.size[0] * img1.size[1])) rms = math.sqrt(sum_squares / float(img1.size[0] * img1.size[1]))
return rms<10 return rms<2
def image_resize(infile, outfile, newsize=(320,240)): def image_resize(infile, outfile, newsize=(320,240)):

View File

@ -8,7 +8,7 @@
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,391]; BOSL_VERSION = [2,0,392];
// Section: BOSL Library Version Functions // Section: BOSL Library Version Functions