def __init__()

in lambda/challenge.py [0:0]


    def __init__(self, user_id, image_width, image_height, token_secret):
        area_x, area_y, area_w, area_h = Challenge.get_area_box(image_width, image_height)
        nose_x, nose_y, nose_w, nose_h = Challenge.get_nose_box(image_width, image_height)
        self.id = str(uuid.uuid1())
        self.userId = user_id
        self.imageWidth = image_width
        self.imageHeight = image_height
        self.areaLeft = int(area_x)
        self.areaTop = int(area_y)
        self.areaWidth = int(area_w)
        self.areaHeight = int(area_h)
        self.minFaceAreaPercent = Challenge.MIN_FACE_AREA_PERCENT
        self.noseLeft = int(nose_x)
        self.noseTop = int(nose_y)
        self.noseWidth = int(nose_w)
        self.noseHeight = int(nose_h)
        self.token = Token(self.id, token_secret).get_jwt()