Skip to content

Commit

Permalink
Change 'wanted' picture.
Browse files Browse the repository at this point in the history
  • Loading branch information
victorssilva committed Aug 21, 2012
1 parent c744361 commit 5c3e86e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Binary file modified web-server/files/wanted.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions web-server/tornado_server.py
Expand Up @@ -34,17 +34,17 @@ def tv(image_path):
def wanted(image_path, rotation):

if (rotation/90) % 2 == 0:
width = 400
height = 300
pos = (171, 380)
width = 240
height = 180
pos = (90, 245)
else:
width = 300
height = 400
pos = (211, 330)
width = 180
height = 240
pos = (100, 240)

face = Image(image_path).edges().binarize().erode().smooth().scale(width,height)
(r, g, b) = face.splitChannels()
r = r*2.3
r = r*1.25
brown = face.mergeChannels(r, g, b)

background = Image('files/wanted.jpg')
Expand Down

0 comments on commit 5c3e86e

Please sign in to comment.