From aaa1748c4c9f358e65dbdd33a055fee5dd7c2d29 Mon Sep 17 00:00:00 2001 From: Tom Selier Date: Sat, 23 Sep 2023 21:56:30 +0200 Subject: [PATCH] angry git --- src/helpers/algorithms/colourspace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/algorithms/colourspace.py b/src/helpers/algorithms/colourspace.py index fce8646..a54d8a5 100644 --- a/src/helpers/algorithms/colourspace.py +++ b/src/helpers/algorithms/colourspace.py @@ -1,10 +1,11 @@ import cv2 import matplotlib.pyplot as plt +import numpy as np -DATASET_PATH = "C:\\Users\\tomse\\Documents\\Dataset\\" +DATASET_PATH = "C:\\Users\\Tom\\Desktop\\Files\\Repositories\\snake-vault\\TREES\\dataset\\" full_img = cv2.imread(DATASET_PATH + "alder\\1.jpg", 1) -bgr_img = cv2.resize(full_img, (0, 0), fx=0.2, fy=0.2) +bgr_img = cv2.resize(full_img, (0, 0), fx=0.25, fy=0.25) hsv_img = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2HSV) cv2.imshow('BGR',bgr_img)