Skip to content

Commit

Permalink
Merge pull request #159 from stereolabs/pull_request_3.4
Browse files Browse the repository at this point in the history
Pull request 3.4
  • Loading branch information
Bvallon-sl committed Jan 27, 2021
2 parents 9ffdc03 + 26946a9 commit f8183c6
Show file tree
Hide file tree
Showing 19 changed files with 303 additions and 247 deletions.
13 changes: 11 additions & 2 deletions ZEDCamera/Assets/ZED/Editor/Scripts/ZEDCameraEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public class ZEDCameraEditor : Editor
private SerializedProperty OD_BodyFitting;
private SerializedProperty OD_2DMask;
private SerializedProperty OD_DetectionModel;
private SerializedProperty OD_MaxRange;
//Object Detection Runtime Prop
private SerializedProperty OD_VehicleDetectionConfidence;
private SerializedProperty OD_PersonDetectionConfidence;
Expand Down Expand Up @@ -141,7 +142,7 @@ public class ZEDCameraEditor : Editor
SerializedProperty textureConfidenceThresholdProperty;
SerializedProperty enableSelfCalibrationProperty;
SerializedProperty enableIMUFusionProperty;

SerializedProperty opencvCalibFilePath;

// Rendering Prop
private int arlayer;
Expand Down Expand Up @@ -258,7 +259,8 @@ private void OnEnable()
OD_ObjectTracking = serializedObject.FindProperty("objectDetectionTracking");
OD_BodyFitting = serializedObject.FindProperty("bodyFitting");
OD_2DMask = serializedObject.FindProperty("objectDetection2DMask");
OD_DetectionModel = serializedObject.FindProperty("objectDetectionModel");
OD_DetectionModel = serializedObject.FindProperty("objectDetectionModel");
OD_MaxRange = serializedObject.FindProperty("maxRange");

OD_PersonDetectionConfidence = serializedObject.FindProperty("OD_personDetectionConfidenceThreshold");
SK_PersonDetectionConfidence = serializedObject.FindProperty("SK_personDetectionConfidenceThreshold");
Expand Down Expand Up @@ -310,6 +312,7 @@ private void OnEnable()
allowPassThroughProperty = serializedObject.FindProperty("allowARPassThrough");
setIMUPrior = serializedObject.FindProperty("setIMUPriorInAR");
enableImageEnhancementProperty = serializedObject.FindProperty("enableImageEnhancement");
opencvCalibFilePath = serializedObject.FindProperty("opencvCalibFile");

//Video Settings Serialized Properties
videoSettingsInitModeProperty = serializedObject.FindProperty("videoSettingsInitMode");
Expand Down Expand Up @@ -770,6 +773,10 @@ public override void OnInspectorGUI()
OD_BodyFitting.boolValue = EditorGUILayout.Toggle(BodyFittingLabel, OD_BodyFitting.boolValue);
}

GUIContent maxRangeLabel = new GUIContent("Max Range", "Defines a upper depth range for detections." +
"an object exists to report it.\r\n\nEx: If the threshold is 80, then only objects where the SDK is 80% sure or greater will appear in the list of detected objects.");
OD_MaxRange.floatValue = EditorGUILayout.Slider(maxRangeLabel, OD_MaxRange.floatValue, 0, 40.0f);

GUI.enabled = true;

EditorGUI.indentLevel--;
Expand Down Expand Up @@ -1137,6 +1144,8 @@ public override void OnInspectorGUI()
GUIContent enalbeIMUFusionLabel = new GUIContent("Visual-Inertial Tracking", "If true, and you are using a ZED2 or ZED Mini, IMU fusion uses data from the camera's IMU to improve tracking results. ");
enableIMUFusionProperty.boolValue = EditorGUILayout.Toggle(enalbeIMUFusionLabel, enableIMUFusionProperty.boolValue);

GUIContent openCalibPathlabel = new GUIContent("Opencv Calibration File ", "Optional, Set an optional file path where the SDK can find a file containing the calibration information of the camera computed by OpenCV. ");
opencvCalibFilePath.stringValue = EditorGUILayout.TextField(openCalibPathlabel, opencvCalibFilePath.stringValue);

EditorGUI.EndDisabledGroup();
EditorGUI.indentLevel--;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ PrefabInstance:
- target: {fileID: 114491592745282986, guid: 76db3eb81fd21ae45bab5204e324ae42,
type: 3}
propertyPath: depthMode
value: 3
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114491592745282986, guid: 76db3eb81fd21ae45bab5204e324ae42,
type: 3}
Expand Down Expand Up @@ -625,7 +625,7 @@ PrefabInstance:
- target: {fileID: 114491592745282986, guid: 76db3eb81fd21ae45bab5204e324ae42,
type: 3}
propertyPath: objectDetectionModel
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114491592745282986, guid: 76db3eb81fd21ae45bab5204e324ae42,
type: 3}
Expand Down Expand Up @@ -667,6 +667,11 @@ PrefabInstance:
propertyPath: recordingFoldoutOpen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114491592745282986, guid: 76db3eb81fd21ae45bab5204e324ae42,
type: 3}
propertyPath: streamInputPort
value: 30000
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 114589286496521468, guid: 76db3eb81fd21ae45bab5204e324ae42, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 76db3eb81fd21ae45bab5204e324ae42, type: 3}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ private static int SLMatType2CVMatType(ZEDMat.MAT_TYPE zedmattype)
return CvType.CV_8UC3;
case ZEDMat.MAT_TYPE.MAT_8U_C4:
return CvType.CV_8UC4;
case ZEDMat.MAT_TYPE.MAT_16U_C1:
return CvType.CV_16UC1;
default:
return -1;
}
Expand Down
129 changes: 62 additions & 67 deletions ZEDCamera/Assets/ZED/Examples/Planetarium/Scene/Planetarium.unity
Original file line number Diff line number Diff line change
Expand Up @@ -428,18 +428,22 @@ PrefabInstance:
propertyPath: m_Layer
value: 12
objectReference: {fileID: 0}
- target: {fileID: 4032380963270518, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4032380963270518, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4032380963270518, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4032380963270518, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalPosition.x
value: 0
Expand All @@ -452,6 +456,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -464,34 +472,26 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4935168411433076, guid: dda0baf117c99c04dbb8fb1c9e2d1c69, type: 3}
propertyPath: m_RootOrder
value: 1
- target: {fileID: 108625368960626940, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: m_Range
value: 3
objectReference: {fileID: 0}
- target: {fileID: 108625368960626940, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: m_CullingMask.m_Bits
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 108625368960626940, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
- target: {fileID: 114219090854195206, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: m_Range
value: 3
propertyPath: offset
value: 0.05
objectReference: {fileID: 0}
- target: {fileID: 114219090854195206, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: manager
value:
objectReference: {fileID: 139748563}
- target: {fileID: 114219090854195206, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: offset
value: 0.05
objectReference: {fileID: 0}
- target: {fileID: 114258083924026048, guid: dda0baf117c99c04dbb8fb1c9e2d1c69,
type: 3}
propertyPath: RotationSpeed
Expand All @@ -511,6 +511,14 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1603769914748404, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_LocalPosition.x
value: 0
Expand All @@ -523,6 +531,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -535,14 +547,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4309805032874704, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 20426257081025226, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: m_Depth
Expand All @@ -560,8 +564,8 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: enableTracking
value: 1
propertyPath: inputType
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
Expand All @@ -570,38 +574,33 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: advancedPanelOpen
propertyPath: enableTracking
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: isMappingFilteringEnable
propertyPath: enableIMUFusion
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: spatialMappingFoldoutOpen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: camControlFoldoutOpen
value: 0
propertyPath: m_maxDepthRange
value: 40
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: m_cameraBrightness
value: 90
propertyPath: setIMUPriorInAR
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: inputType
value: 0
propertyPath: svoInputFileName
value:
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: enableRightDepthMeasure
value: 0
propertyPath: advancedPanelOpen
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
Expand All @@ -610,8 +609,8 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: enableIMUFusion
value: 1
propertyPath: m_cameraBrightness
value: 90
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
Expand All @@ -620,23 +619,33 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: setIMUPriorInAR
value: 1
propertyPath: recordingFoldoutOpen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: m_textureConfidenceThreshold
value: 100
propertyPath: camControlFoldoutOpen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: recordingFoldoutOpen
propertyPath: enableRightDepthMeasure
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: m_maxDepthRange
value: 40
propertyPath: isMappingFilteringEnable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: spatialMappingFoldoutOpen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114711245158774928, guid: e13ee7e0790c7d243b7aa67fe604acac,
type: 3}
propertyPath: m_textureConfidenceThreshold
value: 100
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e13ee7e0790c7d243b7aa67fe604acac, type: 3}
Expand Down Expand Up @@ -675,18 +684,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 133b3bfe60baacd45a72714ffc6eb29a, type: 3}
m_Name:
m_EditorClassIdentifier:
index: -1
useLegacySteamVRInput: 0
deviceToTrack: 1
latencyCompensation: 78
correctControllerDrift: 1
SNHolder:
zedManager: {fileID: 139748563}
fireBinding_Legacy: 33
clickBinding_Legacy: 33
backBinding_Legacy: 2
grabBinding_Legacy: 33
navigateUIBinding_Legacy: 32
onFireDown:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -846,18 +848,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 133b3bfe60baacd45a72714ffc6eb29a, type: 3}
m_Name:
m_EditorClassIdentifier:
index: -1
useLegacySteamVRInput: 0
deviceToTrack: 0
latencyCompensation: 78
correctControllerDrift: 1
SNHolder:
zedManager: {fileID: 139748563}
fireBinding_Legacy: 33
clickBinding_Legacy: 33
backBinding_Legacy: 2
grabBinding_Legacy: 33
navigateUIBinding_Legacy: 32
onFireDown:
m_PersistentCalls:
m_Calls: []
Expand Down

This file was deleted.

Loading

0 comments on commit f8183c6

Please sign in to comment.