Compare commits
No commits in common. "621d976d89dab9041802908dde7857fbb17d0025" and "013a7db7cf46f3851284772cecdd120ea91a8b8e" have entirely different histories.
621d976d89
...
013a7db7cf
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
@ -4,12 +4,22 @@ from cv2.mat_wrapper import Mat as Mat
|
|||||||
import os
|
import os
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import csv
|
import csv
|
||||||
from ...helpers.treenum import Tree
|
from enum import Enum
|
||||||
|
|
||||||
CSV_PATH = "src\\experiments\\algorithms\\data\\"
|
CSV_PATH = "src\\experiments\\algorithms\\data\\"
|
||||||
IMG_PATH = "dataset\\accasia_1210048 (2023_09_28 12_19_26 UTC).JPG"
|
IMG_PATH = "dataset\\accasia_1210048 (2023_09_28 12_19_26 UTC).JPG"
|
||||||
BARK_TYPES = 8
|
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):
|
class ColourSpace(Enum):
|
||||||
BGR = 0
|
BGR = 0
|
||||||
HSV = 1
|
HSV = 1
|
||||||
|
@ -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
|
|
@ -388,7 +388,7 @@ class MainApp:
|
|||||||
# Import and resize image
|
# Import and resize image
|
||||||
# img = cv2.imread(images[self.img_current])
|
# img = cv2.imread(images[self.img_current])
|
||||||
img = cv2.imread(os.path.join(self.img_path.get(), self.img_name))
|
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")
|
self.addOutput(img, "Original")
|
||||||
|
|
||||||
# Set grayscale
|
# Set grayscale
|
||||||
@ -468,6 +468,7 @@ class MainApp:
|
|||||||
plt.show(block=False) ## Graphs
|
plt.show(block=False) ## Graphs
|
||||||
self.drawOutput(size) ## Images
|
self.drawOutput(size) ## Images
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app = MainApp()
|
app = MainApp()
|
||||||
app.run()
|
app.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user