Permalink
Browse files

Switched to using stdev for image size.

  • Loading branch information...
1 parent 6a444bb commit f3f731d8cbfc224f08874229760d38aed7f860b2 anon committed Feb 2, 2012
Showing with 9 additions and 10 deletions.
  1. +7 −8 ComicGrabber.py
  2. +2 −2 viewed_comics.txt
View
@@ -76,14 +76,13 @@ def get_best_comic_match(img_list):
if __DEBUG__:
print(img)
# Use the pixel std dev
-# if img[1] >= pixel_base_line:
-# print('made it')
-# if min_colors is None or min_colors > img[0]:
-# min_colors = img[0]
-# best_img = img[3]
- if min_colors is None or min_colors > img[0]:
- min_colors = img[0]
- best_img = img
+ if img[1] >= pixel_base_line:
+ if min_colors is None or min_colors > img[0]:
+ min_colors = img[0]
+ best_img = img
+# if min_colors is None or min_colors > img[0]:
+# min_colors = img[0]
+# best_img = img
if __DEBUG__:
print('')
return best_img
View
@@ -1,8 +1,8 @@
http://art.penny-arcade.com/photos/i-tKTdQ4B/0/L/i-tKTdQ4B-XL.jpg
http://imgs.xkcd.com/comics/baby_names.png
+http://crudbump.com/cb-realart-rss-1.jpg
http://www.amazingsuperpowers.com/comics/2012-02-01-Are-You-A-Cop.png
-http://www.toothpastefordinner.com/020212/something-against-sloths.gif
http://www.pvponline.com/comics/pvp20120201.png
http://www.qwantz.com/comics/comic2-2147.png
-http://www.smbc-comics.com/images/videogamezach.gif
http://www.explosm.net/db/files/Comics/Dave/comicheybaby1.png
+http://www.smbc-comics.com/comics/20120202.gif

0 comments on commit f3f731d

Please sign in to comment.