Fixes for the RPi

This commit is contained in:
karl 2022-11-24 19:23:04 +01:00
parent ea3855f0ed
commit da2319cd51

View File

@ -1,13 +1,14 @@
# sample code from https://stackoverflow.com/questions/43111029/how-to-find-the-average-colour-of-an-image-in-python-with-opencv
import matplotlib
matplotlib.use('TkAgg')
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import cv2
import numpy as np
from skimage import io
import colorsys
import time
img_path = 'input.jpg'