Processing a Face

Yuan Hua
Data Mining the City
1 min readSep 18, 2017
dict = {}
# circle on the top of the hat
dict[‘circle’] = [50, 10, 12]
ellipse(dict[‘circle’][0], dict[‘circle’][1], dict[‘circle’][2], dict[‘circle’][2])
# face
dict[‘face’] = [40, 33, 28]
ellipse(dict[‘face’][0], dict[‘face’][1], dict[‘face’][2], dict[‘face’][2])
# hat
dict[‘hat’] = [50, 10, 20, 28, 60, 28]
triangle(dict[‘hat’][0], dict[‘hat’][1], dict[‘hat’][2], dict[‘hat’][3], dict[‘hat’][4], dict[‘hat’][5])
# eye
dict[‘left_eye’] = [23, 35, 30, 35]
dict[‘right_eye’] = [40, 35, 47, 35]
line(dict[‘left_eye’][0], dict[‘left_eye’][1], dict[‘left_eye’][2], dict[‘left_eye’][3])
line(dict[‘right_eye’][0], dict[‘right_eye’][1], dict[‘right_eye’][2], dict[‘right_eye’][3])
# body
line(40, 47, 40, 70)
# left arm
line(40, 47, 30, 55)
line(30, 55, 40, 60)
# right arm
line(40, 47, 50, 55)
line(50, 55, 60, 50)
# left leg
line(40, 70, 32, 77)
line(32, 77, 37, 85)
# right leg
line(40, 70, 60, 85)
# ballon
line(60, 50, 80, 30)
line(60, 50, 50, 60)
ellipse(80, 30, 25, 25)

--

--