Compare commits

..

No commits in common. "master" and "2c675f4176d7d8ad19419deb3f8060821f16634a" have entirely different histories.

2 changed files with 2 additions and 14 deletions

View File

@ -1,24 +1,16 @@
# 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('Agg')
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import cv2
import numpy as np
from skimage import io
import colorsys
import time
img_path = 'input.jpg'
img_path = 'IMG_20211204_220355.jpg'
from picamera import PiCamera
camera = PiCamera()
time.sleep(2) # wait for the camera to initialize
camera.capture(img_path)
# Read the result
img = io.imread(img_path)[:, :, :]
# Average color

View File

@ -1,4 +0,0 @@
picamera
opencv-python
matplotlib
numpy