tighend timing flags for image to frame conversions
This commit is contained in:
parent
bb23a24fa4
commit
9cc8fbaafc
1 changed files with 12 additions and 0 deletions
|
@ -113,8 +113,20 @@ for alpha in range(0,11):
|
|||
mouth = points_left_mouth + mirror_points(points_left_mouth)
|
||||
face = left_eye + right_eye + nose + mouth
|
||||
|
||||
print("start gen image")
|
||||
startTa = curr_time = round(time.time()*1000)
|
||||
interpolated_face_image = generate_image_from_point_array(face, 128, 32)
|
||||
endTa = curr_time = round(time.time()*1000)
|
||||
print("gen image took: " + str(endTa - startTa) + " ms")
|
||||
blinkFrameCanvases.append(offscreen_interpolated_canvas)
|
||||
|
||||
print("start populating matrices for each blink frame")
|
||||
startTa = curr_time = round(time.time()*1000)
|
||||
|
||||
offscreen_interpolated_canvas.SetImage(interpolated_face_image, unsafe=False)
|
||||
|
||||
endTa = curr_time = round(time.time()*1000)
|
||||
print("populating matrices for each blink frame took: " + str(endTa - startTa) + " ms")
|
||||
blinkFrameCanvases.append(offscreen_interpolated_canvas)
|
||||
|
||||
endT = curr_time = round(time.time()*1000)
|
||||
|
|
Loading…
Reference in a new issue