質問編集履歴
4
C#タグを追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
JSONのサンプル追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,6 +78,482 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
+
```JSON
|
82
|
+
|
83
|
+
{
|
84
|
+
|
85
|
+
"landmark": [
|
86
|
+
|
87
|
+
{
|
88
|
+
|
89
|
+
"x": 0.2629511,
|
90
|
+
|
91
|
+
"y": 0.2393726,
|
92
|
+
|
93
|
+
"z": -1.63657415,
|
94
|
+
|
95
|
+
"visibility": 0.9658212,
|
96
|
+
|
97
|
+
"presence": 0.9954764
|
98
|
+
|
99
|
+
},
|
100
|
+
|
101
|
+
{
|
102
|
+
|
103
|
+
"x": 0.3084781,
|
104
|
+
|
105
|
+
"y": 0.103633992,
|
106
|
+
|
107
|
+
"z": -1.70021892,
|
108
|
+
|
109
|
+
"visibility": 0.962113857,
|
110
|
+
|
111
|
+
"presence": 0.994487941
|
112
|
+
|
113
|
+
},
|
114
|
+
|
115
|
+
{
|
116
|
+
|
117
|
+
"x": 0.335506,
|
118
|
+
|
119
|
+
"y": 0.09454892,
|
120
|
+
|
121
|
+
"z": -1.69986653,
|
122
|
+
|
123
|
+
"visibility": 0.9644682,
|
124
|
+
|
125
|
+
"presence": 0.9949823
|
126
|
+
|
127
|
+
},
|
128
|
+
|
129
|
+
{
|
130
|
+
|
131
|
+
"x": 0.369098246,
|
132
|
+
|
133
|
+
"y": 0.08761243,
|
134
|
+
|
135
|
+
"z": -1.70031965,
|
136
|
+
|
137
|
+
"visibility": 0.961571336,
|
138
|
+
|
139
|
+
"presence": 0.9940049
|
140
|
+
|
141
|
+
},
|
142
|
+
|
143
|
+
{
|
144
|
+
|
145
|
+
"x": 0.2230778,
|
146
|
+
|
147
|
+
"y": 0.1299035,
|
148
|
+
|
149
|
+
"z": -1.5992856,
|
150
|
+
|
151
|
+
"visibility": 0.9581684,
|
152
|
+
|
153
|
+
"presence": 0.9923149
|
154
|
+
|
155
|
+
},
|
156
|
+
|
157
|
+
{
|
158
|
+
|
159
|
+
"x": 0.193480074,
|
160
|
+
|
161
|
+
"y": 0.133466959,
|
162
|
+
|
163
|
+
"z": -1.600757,
|
164
|
+
|
165
|
+
"visibility": 0.9560138,
|
166
|
+
|
167
|
+
"presence": 0.991605163
|
168
|
+
|
169
|
+
},
|
170
|
+
|
171
|
+
{
|
172
|
+
|
173
|
+
"x": 0.171469077,
|
174
|
+
|
175
|
+
"y": 0.136153191,
|
176
|
+
|
177
|
+
"z": -1.60131109,
|
178
|
+
|
179
|
+
"visibility": 0.957673132,
|
180
|
+
|
181
|
+
"presence": 0.989012241
|
182
|
+
|
183
|
+
},
|
184
|
+
|
185
|
+
{
|
186
|
+
|
187
|
+
"x": 0.4373785,
|
188
|
+
|
189
|
+
"y": 0.08000301,
|
190
|
+
|
191
|
+
"z": -1.50350976,
|
192
|
+
|
193
|
+
"visibility": 0.9793107,
|
194
|
+
|
195
|
+
"presence": 0.9952773
|
196
|
+
|
197
|
+
},
|
198
|
+
|
199
|
+
{
|
200
|
+
|
201
|
+
"x": 0.212699383,
|
202
|
+
|
203
|
+
"y": 0.139021873,
|
204
|
+
|
205
|
+
"z": -1.05882573,
|
206
|
+
|
207
|
+
"visibility": 0.973896444,
|
208
|
+
|
209
|
+
"presence": 0.9913624
|
210
|
+
|
211
|
+
},
|
212
|
+
|
213
|
+
{
|
214
|
+
|
215
|
+
"x": 0.347007751,
|
216
|
+
|
217
|
+
"y": 0.28568995,
|
218
|
+
|
219
|
+
"z": -1.51577044,
|
220
|
+
|
221
|
+
"visibility": 0.973242939,
|
222
|
+
|
223
|
+
"presence": 0.9958645
|
224
|
+
|
225
|
+
},
|
226
|
+
|
227
|
+
{
|
228
|
+
|
229
|
+
"x": 0.263258874,
|
230
|
+
|
231
|
+
"y": 0.342737257,
|
232
|
+
|
233
|
+
"z": -1.38710141,
|
234
|
+
|
235
|
+
"visibility": 0.967380345,
|
236
|
+
|
237
|
+
"presence": 0.9933749
|
238
|
+
|
239
|
+
},
|
240
|
+
|
241
|
+
{
|
242
|
+
|
243
|
+
"x": 0.775076747,
|
244
|
+
|
245
|
+
"y": 0.4852151,
|
246
|
+
|
247
|
+
"z": -1.18634164,
|
248
|
+
|
249
|
+
"visibility": 0.9782643,
|
250
|
+
|
251
|
+
"presence": 0.9797115
|
252
|
+
|
253
|
+
},
|
254
|
+
|
255
|
+
{
|
256
|
+
|
257
|
+
"x": 0.163272172,
|
258
|
+
|
259
|
+
"y": 0.5029171,
|
260
|
+
|
261
|
+
"z": -0.47282052,
|
262
|
+
|
263
|
+
"visibility": 0.97782445,
|
264
|
+
|
265
|
+
"presence": 0.987057865
|
266
|
+
|
267
|
+
},
|
268
|
+
|
269
|
+
{
|
270
|
+
|
271
|
+
"x": 0.793088734,
|
272
|
+
|
273
|
+
"y": 1.024656,
|
274
|
+
|
275
|
+
"z": -1.80261481,
|
276
|
+
|
277
|
+
"visibility": 0.134435534,
|
278
|
+
|
279
|
+
"presence": 0.0235567279
|
280
|
+
|
281
|
+
},
|
282
|
+
|
283
|
+
{
|
284
|
+
|
285
|
+
"x": 0.0483283177,
|
286
|
+
|
287
|
+
"y": 0.980344236,
|
288
|
+
|
289
|
+
"z": -0.133183047,
|
290
|
+
|
291
|
+
"visibility": 0.1623759,
|
292
|
+
|
293
|
+
"presence": 0.07004051
|
294
|
+
|
295
|
+
},
|
296
|
+
|
297
|
+
{
|
298
|
+
|
299
|
+
"x": 0.48451978,
|
300
|
+
|
301
|
+
"y": 0.5688188,
|
302
|
+
|
303
|
+
"z": -2.36961722,
|
304
|
+
|
305
|
+
"visibility": 0.54387033,
|
306
|
+
|
307
|
+
"presence": 0.6797247
|
308
|
+
|
309
|
+
},
|
310
|
+
|
311
|
+
{
|
312
|
+
|
313
|
+
"x": 0.103113785,
|
314
|
+
|
315
|
+
"y": 1.2875098,
|
316
|
+
|
317
|
+
"z": -0.3646039,
|
318
|
+
|
319
|
+
"visibility": 0.552444041,
|
320
|
+
|
321
|
+
"presence": 0.1036061
|
322
|
+
|
323
|
+
},
|
324
|
+
|
325
|
+
{
|
326
|
+
|
327
|
+
"x": 0.470187962,
|
328
|
+
|
329
|
+
"y": 0.44396466,
|
330
|
+
|
331
|
+
"z": -2.488359,
|
332
|
+
|
333
|
+
"visibility": 0.620796144,
|
334
|
+
|
335
|
+
"presence": 0.8008424
|
336
|
+
|
337
|
+
},
|
338
|
+
|
339
|
+
{
|
340
|
+
|
341
|
+
"x": 0.09318472,
|
342
|
+
|
343
|
+
"y": 1.38178229,
|
344
|
+
|
345
|
+
"z": -0.392183483,
|
346
|
+
|
347
|
+
"visibility": 0.6260255,
|
348
|
+
|
349
|
+
"presence": 0.1431908
|
350
|
+
|
351
|
+
},
|
352
|
+
|
353
|
+
{
|
354
|
+
|
355
|
+
"x": 0.4824732,
|
356
|
+
|
357
|
+
"y": 0.324523479,
|
358
|
+
|
359
|
+
"z": -2.33891535,
|
360
|
+
|
361
|
+
"visibility": 0.6467453,
|
362
|
+
|
363
|
+
"presence": 0.894325435
|
364
|
+
|
365
|
+
},
|
366
|
+
|
367
|
+
{
|
368
|
+
|
369
|
+
"x": 0.09838327,
|
370
|
+
|
371
|
+
"y": 1.30869842,
|
372
|
+
|
373
|
+
"z": -0.425549358,
|
374
|
+
|
375
|
+
"visibility": 0.665143549,
|
376
|
+
|
377
|
+
"presence": 0.221739963
|
378
|
+
|
379
|
+
},
|
380
|
+
|
381
|
+
{
|
382
|
+
|
383
|
+
"x": 0.478813261,
|
384
|
+
|
385
|
+
"y": 0.395430446,
|
386
|
+
|
387
|
+
"z": -2.30541086,
|
388
|
+
|
389
|
+
"visibility": 0.6197953,
|
390
|
+
|
391
|
+
"presence": 0.8808902
|
392
|
+
|
393
|
+
},
|
394
|
+
|
395
|
+
{
|
396
|
+
|
397
|
+
"x": 0.122083664,
|
398
|
+
|
399
|
+
"y": 1.27752328,
|
400
|
+
|
401
|
+
"z": -0.3995623,
|
402
|
+
|
403
|
+
"visibility": 0.6609248,
|
404
|
+
|
405
|
+
"presence": 0.189134523
|
406
|
+
|
407
|
+
},
|
408
|
+
|
409
|
+
{
|
410
|
+
|
411
|
+
"x": 0.660822451,
|
412
|
+
|
413
|
+
"y": 1.64620316,
|
414
|
+
|
415
|
+
"z": -0.2525036,
|
416
|
+
|
417
|
+
"visibility": 0.001579855,
|
418
|
+
|
419
|
+
"presence": 0.000254729151
|
420
|
+
|
421
|
+
},
|
422
|
+
|
423
|
+
{
|
424
|
+
|
425
|
+
"x": 0.2482064,
|
426
|
+
|
427
|
+
"y": 1.63240278,
|
428
|
+
|
429
|
+
"z": 0.256049871,
|
430
|
+
|
431
|
+
"visibility": 0.00164249644,
|
432
|
+
|
433
|
+
"presence": 0.000183555851
|
434
|
+
|
435
|
+
},
|
436
|
+
|
437
|
+
{
|
438
|
+
|
439
|
+
"x": 0.627968967,
|
440
|
+
|
441
|
+
"y": 2.51957822,
|
442
|
+
|
443
|
+
"z": 0.227060512,
|
444
|
+
|
445
|
+
"visibility": 0.00255248672,
|
446
|
+
|
447
|
+
"presence": 0.0000972254857
|
448
|
+
|
449
|
+
},
|
450
|
+
|
451
|
+
{
|
452
|
+
|
453
|
+
"x": 0.238794729,
|
454
|
+
|
455
|
+
"y": 2.50018477,
|
456
|
+
|
457
|
+
"z": 0.713123441,
|
458
|
+
|
459
|
+
"visibility": 0.00345917279,
|
460
|
+
|
461
|
+
"presence": 0.0000796253153
|
462
|
+
|
463
|
+
},
|
464
|
+
|
465
|
+
{
|
466
|
+
|
467
|
+
"x": 0.6412408,
|
468
|
+
|
469
|
+
"y": 3.25620317,
|
470
|
+
|
471
|
+
"z": 1.463341,
|
472
|
+
|
473
|
+
"visibility": 0.000202769661,
|
474
|
+
|
475
|
+
"presence": 0.0000034801692
|
476
|
+
|
477
|
+
},
|
478
|
+
|
479
|
+
{
|
480
|
+
|
481
|
+
"x": 0.277073175,
|
482
|
+
|
483
|
+
"y": 3.26306319,
|
484
|
+
|
485
|
+
"z": 1.62666261,
|
486
|
+
|
487
|
+
"visibility": 0.000215640757,
|
488
|
+
|
489
|
+
"presence": 0.000006367081
|
490
|
+
|
491
|
+
},
|
492
|
+
|
493
|
+
{
|
494
|
+
|
495
|
+
"x": 0.666566551,
|
496
|
+
|
497
|
+
"y": 3.36892033,
|
498
|
+
|
499
|
+
"z": 1.58773875,
|
500
|
+
|
501
|
+
"visibility": 0.000216238885,
|
502
|
+
|
503
|
+
"presence": 0.00000421156847
|
504
|
+
|
505
|
+
},
|
506
|
+
|
507
|
+
{
|
508
|
+
|
509
|
+
"x": 0.296536863,
|
510
|
+
|
511
|
+
"y": 3.380107,
|
512
|
+
|
513
|
+
"z": 1.72133565,
|
514
|
+
|
515
|
+
"visibility": 0.0004053733,
|
516
|
+
|
517
|
+
"presence": 0.000008458709
|
518
|
+
|
519
|
+
},
|
520
|
+
|
521
|
+
{
|
522
|
+
|
523
|
+
"x": 0.536378562,
|
524
|
+
|
525
|
+
"y": 3.55772543,
|
526
|
+
|
527
|
+
"z": 1.13668084,
|
528
|
+
|
529
|
+
"visibility": 0.00027576054,
|
530
|
+
|
531
|
+
"presence": 0.00000514463363
|
532
|
+
|
533
|
+
},
|
534
|
+
|
535
|
+
{
|
536
|
+
|
537
|
+
"x": 0.292625755,
|
538
|
+
|
539
|
+
"y": 3.555444,
|
540
|
+
|
541
|
+
"z": 1.15551078,
|
542
|
+
|
543
|
+
"visibility": 0.000393349124,
|
544
|
+
|
545
|
+
"presence": 0.0000112516
|
546
|
+
|
547
|
+
}
|
548
|
+
|
549
|
+
]
|
550
|
+
|
551
|
+
}
|
552
|
+
|
553
|
+
```
|
554
|
+
|
555
|
+
|
556
|
+
|
81
557
|
### 試したこと
|
82
558
|
|
83
559
|
1. Serializable属性
|
2
2つ目のエラーを受けて型の指定を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,6 +92,14 @@
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
+
3. 型の指定を追加
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
string json = JsonUtility.FromJson<List>(wrapper);
|
100
|
+
|
101
|
+
|
102
|
+
|
95
103
|
|
96
104
|
|
97
105
|
### 補足情報(FW/ツールのバージョンなど)
|
1
FromJsonをToJsonに修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
Assets/Mediapipe/Samples/Scenes/Holistic/HolisticTrackingSolution.cs(143,30): error CS0029: Cannot implicitly convert type 'System.Collections.Generic.List<Mediapipe.Landmark>' to 'System.Collections.Generic.List<Landmark>'
|
18
18
|
|
19
19
|
|
20
|
+
|
21
|
+
Assets/Mediapipe/Samples/Scenes/Holistic/HolisticTrackingSolution.cs(144,37): error CS0411: The type arguments for method 'JsonUtility.FromJson<T>(string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
|
20
22
|
|
21
23
|
```
|
22
24
|
|
@@ -70,7 +72,7 @@
|
|
70
72
|
|
71
73
|
wrapper.landmark = new List<Landmark>();
|
72
74
|
|
73
|
-
string json = JsonUtility.
|
75
|
+
string json = JsonUtility.FromJson(wrapper);
|
74
76
|
|
75
77
|
```
|
76
78
|
|