diff --git a/rpi/blinkingTest.py b/rpi/blinkingTest.py index 827630d..e049513 100644 --- a/rpi/blinkingTest.py +++ b/rpi/blinkingTest.py @@ -29,19 +29,17 @@ def image_interpolation(image1, image2, alpha): alpha = max(0, min(1, alpha)) # Perform interpolation - interpolated_image = np.uint8((1 - alpha) * image1 + alpha * image2) + interpolated_image = Image.blend(image1, image2, alpha) return interpolated_image -image = Image.open("ciscoTheProot/faces/prootface1.bmp") +image = Image.open("faces/prootface1.bmp") image.thumbnail((128, 32), Image.ANTIALIAS) -RGBImage = pure_pil_alpha_to_color_v2(image) -noBlinkImage = np.array(RGBImage, dtype=np.uint8) +noBlinkImage = pure_pil_alpha_to_color_v2(image) -image = Image.open("ciscoTheProot/faces/prootface2.bmp") +image = Image.open("faces/prootface2.bmp") image.thumbnail((128, 32), Image.ANTIALIAS) -RGBImage = pure_pil_alpha_to_color_v2(image) -fullBlinkImage = np.array(RGBImage, dtype=np.uint8) +fullBlinkImage = pure_pil_alpha_to_color_v2(image) DesiredBlinkState = 0 currentBlinkState = 0