-
Notifications
You must be signed in to change notification settings - Fork 5
/
jsonObject.py
43 lines (40 loc) · 974 Bytes
/
jsonObject.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
41
42
43
class JsonObject:
def __init__(self):
#variables for json manipulation
self.numCamerasTotal = 1
self.numShotsTotal = 0
self.numPointsTotal = 0
self.cameraArray = []
self.shotArray = []
self.pointArray = []
class CameraObject:
def __init__(self):
#variables that each camera has
self.name = ""
self.focalPrior = ""
self.width = ""
self.k1 = ""
self.k2 = ""
self.k1Prior = ""
self.k2Prior = ""
self.projectionType = ""
self.focal = ""
self.height = ""
class ShotObject:
def __init__(self):
#variables that each shot has
self.name = ""
self.orientation = ""
self.camera = "" #should match a CameraObject
self.gpsPosition = ["", "", ""]
self.gpsDop = ""
self.rotation = ["", "", ""]
self.translation = ["", "", ""]
self.captureTime = ""
class PointObject:
def __init__(self):
#variables that each point has
self.name = ""
self.color = ["", "", ""]
self.reprojectionError = ""
self.coordinates = ["", "", ""]