Skip to content
Snippets Groups Projects
Commit 77ace59c authored by pal's avatar pal
Browse files

Code refactoring

parent afae3548
No related branches found
No related tags found
No related merge requests found
Showing
with 9 additions and 10 deletions
face_builder/Glasses.png

39 KiB

face_builder/background.png

631 KiB

face_builder/eye_brow_angry.png

27.7 KiB

File added
face_builder/eye_brow_confused.png

18.7 KiB

face_builder/eye_brow_happy.png

24 KiB

File added
face_builder/eye_brow_neutral.png

17.6 KiB

face_builder/eye_brow_sad.png

24.9 KiB

File added
face_builder/eyelid.png

94.3 KiB

File added
face_builder/eyes.png

55 KiB

File added
File added
face_builder/pupil.png

8.78 KiB

File added
face_builder/skin.png

81.9 KiB

File added
#!/usr/bin/env python
"""
@Author: Bilgehan NAL
This file has a class which defines the mouth of the baxter's face.
@Author: Antonio Andriella
This file has a class which defines the eyebrow of the Tiago's face.
Credits to Bilgehan NAL
"""
from PIL import Image
......@@ -12,16 +13,14 @@ class Eyebrow:
indexOfEyebrow = 0 # choosen element of the array
def __init__(self, initEyebrow):
def __init__(self, folder_path, initEyebrow):
# This array keeps the diffirent shape of eyebrow
self.eyebrows = [
Image.open("test/eye_brow_neutral.png"),
Image.open("test/eye_brow_happy.png"),
Image.open("test/eye_brow_sad.png"),
Image.open("test/eye_brow_confused.png"),
Image.open("test/eye_brow_angry.png")
#Image.open("data/"+self.robot_gender+"/eyebrow/baxter_eyebrow_3.png"),
#Image.open("data/"+self.robot_gender+"/eyebrow/baxter_eyebrow_4.png")
Image.open(folder_path+"eye_brow_neutral.png"),
Image.open(folder_path+"eye_brow_happy.png"),
Image.open(folder_path+"eye_brow_sad.png"),
Image.open(folder_path+"eye_brow_confused.png"),
Image.open(folder_path+"eye_brow_angry.png")
]
self.indexOfEyebrow = initEyebrow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment