示例#1
0
def compare_images(img1, img2):
    result_1 = "Simple comparison algorithm: {}"
    result_1 = result_1.format(simple_comparison(img1, img2))

    result_2 = "Statistical Random Comparison: {}"
    result_2 = result_2.format(statistical_random_comparison(img1, img2))

    result_3 = "Region Buckets: {}"
    result_3 = result_3.format(color_histogram_region_comparison(img1, img2))

    return (result_1, result_2, result_3)
示例#2
0
def compare_images(img1, img2):
	print "simple_comparison says that probability of being the same is {}".format(simple_comparison(img1, img2))
	print "statistical_random_comparison says that probability of being the same is {}".format(statistical_random_comparison(img1, img2))
	print "region-buckets says that probability of being the same is {}".format(color_histogram_region_comparison(img1, img2))