Skip to content

Commit 0bb6f18

Browse files
authored
Create cameras-sfm-schema.json
test
1 parent 76cc0c1 commit 0bb6f18

File tree

1 file changed

+241
-0
lines changed

1 file changed

+241
-0
lines changed

cameras-sfm-schema.json

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"properties": {
4+
"featuresFolders": {
5+
"items": {
6+
"type": "string"
7+
},
8+
"type": "array"
9+
},
10+
"intrinsics": {
11+
"items": {
12+
"properties": {
13+
"distortionParams": {
14+
"items": {
15+
"type": "string"
16+
},
17+
"type": "array"
18+
},
19+
"height": {
20+
"type": "string"
21+
},
22+
"initializationMode": {
23+
"type": "string"
24+
},
25+
"intrinsicId": {
26+
"type": "string"
27+
},
28+
"locked": {
29+
"type": "string"
30+
},
31+
"principalPoint": {
32+
"items": {
33+
"type": "string"
34+
},
35+
"type": "array"
36+
},
37+
"pxFocalLength": {
38+
"type": "string"
39+
},
40+
"pxInitialFocalLength": {
41+
"type": "string"
42+
},
43+
"sensorHeight": {
44+
"type": "string"
45+
},
46+
"sensorWidth": {
47+
"type": "string"
48+
},
49+
"serialNumber": {
50+
"type": "string"
51+
},
52+
"type": {
53+
"type": "string"
54+
},
55+
"width": {
56+
"type": "string"
57+
}
58+
},
59+
"required": [
60+
"distortionParams",
61+
"height",
62+
"initializationMode",
63+
"intrinsicId",
64+
"locked",
65+
"principalPoint",
66+
"pxFocalLength",
67+
"pxInitialFocalLength",
68+
"sensorHeight",
69+
"sensorWidth",
70+
"serialNumber",
71+
"type",
72+
"width"
73+
],
74+
"type": "object"
75+
},
76+
"type": "array"
77+
},
78+
"matchesFolders": {
79+
"items": {
80+
"type": "string"
81+
},
82+
"type": "array"
83+
},
84+
"poses": {
85+
"items": {
86+
"properties": {
87+
"pose": {
88+
"properties": {
89+
"locked": {
90+
"type": "string"
91+
},
92+
"transform": {
93+
"properties": {
94+
"center": {
95+
"items": {
96+
"type": "string"
97+
},
98+
"type": "array"
99+
},
100+
"rotation": {
101+
"items": {
102+
"type": "string"
103+
},
104+
"type": "array"
105+
}
106+
},
107+
"required": [
108+
"center",
109+
"rotation"
110+
],
111+
"type": "object"
112+
}
113+
},
114+
"required": [
115+
"locked",
116+
"transform"
117+
],
118+
"type": "object"
119+
},
120+
"poseId": {
121+
"type": "string"
122+
}
123+
},
124+
"required": [
125+
"pose",
126+
"poseId"
127+
],
128+
"type": "object"
129+
},
130+
"type": "array"
131+
},
132+
"version": {
133+
"items": {
134+
"type": "string"
135+
},
136+
"type": "array"
137+
},
138+
"views": {
139+
"items": {
140+
"properties": {
141+
"height": {
142+
"type": "string"
143+
},
144+
"intrinsicId": {
145+
"type": "string"
146+
},
147+
"metadata": {
148+
"properties": {
149+
"AliceVision:SensorWidth": {
150+
"type": "string"
151+
},
152+
"AliceVision:useWhiteBalance": {
153+
"type": "string"
154+
},
155+
"Exif:BodySerialNumber": {
156+
"type": "string"
157+
},
158+
"Exif:ColorSpace": {
159+
"type": "string"
160+
},
161+
"Exif:ExifVersion": {
162+
"type": "string"
163+
},
164+
"Exif:FlashPixVersion": {
165+
"type": "string"
166+
},
167+
"Exif:FocalLength": {
168+
"type": "string"
169+
},
170+
"Exif:ImageUniqueID": {
171+
"type": "string"
172+
},
173+
"jpeg:subsampling": {
174+
"type": "string"
175+
},
176+
"Make": {
177+
"type": "string"
178+
},
179+
"Model": {
180+
"type": "string"
181+
},
182+
"oiio:ColorSpace": {
183+
"type": "string"
184+
}
185+
},
186+
"required": [
187+
"AliceVision:SensorWidth",
188+
"AliceVision:useWhiteBalance",
189+
"Exif:BodySerialNumber",
190+
"Exif:ColorSpace",
191+
"Exif:ExifVersion",
192+
"Exif:FlashPixVersion",
193+
"Exif:FocalLength",
194+
"Exif:ImageUniqueID",
195+
"jpeg:subsampling",
196+
"Make",
197+
"Model",
198+
"oiio:ColorSpace"
199+
],
200+
"type": "object"
201+
},
202+
"path": {
203+
"type": "string"
204+
},
205+
"poseId": {
206+
"type": "string"
207+
},
208+
"resectionId": {
209+
"type": "string"
210+
},
211+
"viewId": {
212+
"type": "string"
213+
},
214+
"width": {
215+
"type": "string"
216+
}
217+
},
218+
"required": [
219+
"height",
220+
"intrinsicId",
221+
"metadata",
222+
"path",
223+
"poseId",
224+
"viewId",
225+
"width"
226+
],
227+
"type": "object"
228+
},
229+
"type": "array"
230+
}
231+
},
232+
"required": [
233+
"featuresFolders",
234+
"intrinsics",
235+
"matchesFolders",
236+
"poses",
237+
"version",
238+
"views"
239+
],
240+
"type": "object"
241+
}

0 commit comments

Comments
 (0)