From da2319cd516e118516d2ff3efcdf30f0406430f8 Mon Sep 17 00:00:00 2001 From: karl Date: Thu, 24 Nov 2022 19:23:04 +0100 Subject: [PATCH] Fixes for the RPi --- detect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detect.py b/detect.py index a6d96d9..54e93e4 100755 --- a/detect.py +++ b/detect.py @@ -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'