From 30ffeb788f03f8f8d2ed459503ce5467644d9e6a Mon Sep 17 00:00:00 2001 From: Patrice Matz Date: Thu, 2 Jan 2020 23:23:03 +0100 Subject: [PATCH] Update motion_detector.py --- motion_detector.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/motion_detector.py b/motion_detector.py index 2ae0490..728c0ea 100644 --- a/motion_detector.py +++ b/motion_detector.py @@ -12,20 +12,6 @@ import cv2 import com import config - -def increase_brightness(img, value=30): - hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) - h, s, v = cv2.split(hsv) - - lim = 255 - value - v[v > lim] = 255 - v[v <= lim] += value - - final_hsv = cv2.merge((h, s, v)) - img = cv2.cvtColor(final_hsv, cv2.COLOR_HSV2BGR) - - return img - def compare(): try: url = config.stream @@ -120,4 +106,4 @@ def compare(): def retry(error): print(error) time.sleep(10) - compare() \ No newline at end of file + compare()