-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathStructures.py
40 lines (32 loc) · 1.05 KB
/
Structures.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from PyQt5.QtCore import QRect
class ImageProcessingSettings(object):
def __init__(self):
self.smoothType = int()
self.smoothParam1 = int()
self.smoothParam2 = int()
self.smoothParam3 = float()
self.smoothParam4 = float()
self.dilateNumberOfIterations = int()
self.erodeUrlOfIterations = int()
self.flipCode = int()
self.cannyThreshold1 = float()
self.cannyThreshold2 = float()
self.cannyApertureSize = int()
self.cannyL2gradient = bool()
class ImageProcessingFlags(object):
def __init__(self):
self.grayscaleOn = False
self.smoothOn = False
self.dilateOn = False
self.erodeOn = False
self.flipOn = False
self.cannyOn = False
class MouseData(object):
def __init__(self):
self.selectionBox = QRect()
self.leftButtonRelease = bool()
self.rightButtonRelease = bool()
class ThreadStatisticsData(object):
def __init__(self):
self.averageFPS = 0.0
self.nFramesProcessed = 0