Compare commits

..

No commits in common. "621d976d89dab9041802908dde7857fbb17d0025" and "013a7db7cf46f3851284772cecdd120ea91a8b8e" have entirely different histories.

4 changed files with 13 additions and 13 deletions

Binary file not shown.

View File

@ -4,12 +4,22 @@ from cv2.mat_wrapper import Mat as Mat
import os
import numpy as np
import csv
from ...helpers.treenum import Tree
from enum import Enum
CSV_PATH = "src\\experiments\\algorithms\\data\\"
IMG_PATH = "dataset\\accasia_1210048 (2023_09_28 12_19_26 UTC).JPG"
BARK_TYPES = 8
class Tree(Enum):
ACCASIA = 0
BERK = 1
EIK = 2
ELS = 3
ESDOORN = 4
ES = 5
LINDE = 6
PLATAAN = 7
class ColourSpace(Enum):
BGR = 0
HSV = 1

View File

@ -1,11 +0,0 @@
from enum import Enum
class Tree(Enum):
ACCASIA = 0
BERK = 1
EIK = 2
ELS = 3
ESDOORN = 4
ES = 5
LINDE = 6
PLATAAN = 7

View File

@ -388,7 +388,7 @@ class MainApp:
# Import and resize image
# img = cv2.imread(images[self.img_current])
img = cv2.imread(os.path.join(self.img_path.get(), self.img_name))
# img = cv2.resize(img, (size, size), interpolation=cv2.INTER_AREA)
img = cv2.resize(img, (size, size), interpolation=cv2.INTER_AREA)
self.addOutput(img, "Original")
# Set grayscale
@ -468,6 +468,7 @@ class MainApp:
plt.show(block=False) ## Graphs
self.drawOutput(size) ## Images
if __name__ == "__main__":
app = MainApp()
app.run()