Neodroid
0.2.0
Machine Learning Environment Prototyping Tool
SegmentationCameraSensor.cs
Go to the documentation of this file.
1
using
System
.Linq;
2
using
droid
.
Runtime
.
Utilities
.
GameObjects
.
NeodroidCamera
.
Segmentation
;
3
using
UnityEngine
;
4
5
namespace
droid
.Runtime.Prototyping.Sensors.Camera.Deprecated.Segmentation {
9
[AddComponentMenu(SensorComponentMenuPath._ComponentMenuPath
10
+
"SegmentationCamera"
11
+ SensorComponentMenuPath._Postfix)]
12
[ExecuteInEditMode]
13
[RequireComponent(typeof(
UnityEngine
.Camera), typeof(
Segmenter
))]
14
public
class
SegmentationCameraSensor
:
StringAugmentedCameraSensor
{
17
[SerializeField]
18
Segmenter
_segmenter = null;
19
23
public
override
void
UpdateObservation
() {
24
base.UpdateObservation();
25
26
Debug.LogWarning(JsonUtility.ToJson(
this
._segmenter.ColorsDict));
27
this.serialisedString = this._segmenter != null
28
? this._segmenter.
ColorsDict
.Select(c => $
"{c.Key}: {c.Value.ToString()}"
)
29
.Aggregate(
""
, (current, next) => $
"{current}, {next}"
)
30
:
"Nothing"
;
31
}
32
}
33
}
droid.Runtime.Utilities.GameObjects.NeodroidCamera.Segmentation.Segmenter.ColorsDict
abstract Dictionary< String, Color > ColorsDict
Definition:
Segmenter.cs:15
droid.Runtime.Prototyping.Sensors.Camera.Deprecated.Segmentation.SegmentationCameraSensor
Definition:
SegmentationCameraSensor.cs:14
System
droid.Runtime.Utilities.GameObjects.NeodroidCamera
Definition:
CameraFitter.cs:6
droid
droid.Runtime.Utilities.GameObjects
droid.Runtime.Utilities
droid.Runtime.Prototyping.Sensors.Camera.Deprecated.StringAugmentedCameraSensor
Definition:
StringAugmentedCameraSensor.cs:16
droid.Runtime
droid.Runtime.Prototyping.Sensors.Camera.Deprecated.Segmentation.SegmentationCameraSensor.UpdateObservation
override void UpdateObservation()
Definition:
SegmentationCameraSensor.cs:23
UnityEngine
droid.Runtime.Utilities.GameObjects.NeodroidCamera.Segmentation.Segmenter
Definition:
Segmenter.cs:10
droid.Runtime.Utilities.GameObjects.NeodroidCamera.Segmentation
Definition:
CategorySegmenter.cs:7
Runtime
Prototyping
Sensors
Camera
Deprecated
Segmentation
SegmentationCameraSensor.cs
Generated by
1.8.13