summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwanghoon Son <k.son@samsung.com>2024-03-11 05:22:13 +0000
committerKwanghoon Son <k.son@samsung.com>2024-03-11 05:22:13 +0000
commitd94e9eabb3de2a650d7803d2d2d66ec6008be63d (patch)
tree6e01d2419c10832b81eb9f8ca799f50683168d09
parentc32f36b9db49246f6f2edbd7be4c4a07d8bfa0c3 (diff)
downloadmedia-config-d94e9eabb3de2a650d7803d2d2d66ec6008be63d.tar.gz
media-config-d94e9eabb3de2a650d7803d2d2d66ec6008be63d.tar.bz2
media-config-d94e9eabb3de2a650d7803d2d2d66ec6008be63d.zip
Add media vision json
Mediavision config changes are required for new requirements from DA. Change-Id: I805df5d8e6be40daca6fffeabe64ddfa3ebc6591 Link: https://review.tizen.org/gerrit/c/platform/core/api/mediavision/+/307113 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
-rw-r--r--media-config-generic/hal/etc/multimedia/media-vision-config.json317
-rw-r--r--media-config-simulator/hal/etc/multimedia/media-vision-config.json317
-rw-r--r--packaging/media-config.spec4
3 files changed, 637 insertions, 1 deletions
diff --git a/media-config-generic/hal/etc/multimedia/media-vision-config.json b/media-config-generic/hal/etc/multimedia/media-vision-config.json
new file mode 100644
index 0000000..83dc6bd
--- /dev/null
+++ b/media-config-generic/hal/etc/multimedia/media-vision-config.json
@@ -0,0 +1,317 @@
+{
+ "attributes":
+ [
+ {
+ "name" : "MV_FACE_DETECTION_MODEL_FILE_PATH",
+ "type" : "string",
+ "value" : "/usr/share/OpenCV/haarcascades/haarcascade_frontalface_alt2.xml"
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_X",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_Y",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_MIN_SIZE_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_MIN_SIZE_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_TEXT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_COLOR_FRONT",
+ "type" : "string",
+ "value" : "000000"
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_COLOR_BACK",
+ "type" : "string",
+ "value" : "ffffff"
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_TARGET",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_COUNT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_DIRECTION",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_USE_ENHANCEMENT",
+ "type" : "boolean",
+ "value" : false
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_OBJECT_SCALE_FACTOR",
+ "type" : "double",
+ "value" : 1.2
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_OBJECT_MAX_KEYPOINTS_NUM",
+ "type" : "integer",
+ "value" : 1000
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_SCENE_SCALE_FACTOR",
+ "type" : "double",
+ "value" : 1.2
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_SCENE_MAX_KEYPOINTS_NUM",
+ "type" : "integer",
+ "value" : 5000
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_MIN_MATCH_NUM",
+ "type" : "integer",
+ "value" : 30
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_REQ_MATCH_PART",
+ "type" : "double",
+ "value" : 0.05
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_TOLERANT_MATCH_PART_ERR",
+ "type" : "double",
+ "value" : 0.1
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_HISTORY_AMOUNT",
+ "type" : "integer",
+ "value" : 3
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_EXPECTED_OFFSET",
+ "type" : "double",
+ "value" : 0
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_USE_STABLIZATION",
+ "type" : "boolean",
+ "value" : true
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_TOLERANT_SHIFT",
+ "type" : "double",
+ "value" : 0.00006
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_SPEED",
+ "type" : "double",
+ "value" : 0.3
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_ACCELERATION",
+ "type" : "double",
+ "value" : 0.1
+ },
+ {
+ "name" : "MV_FACE_RECOGNITION_MODEL_TYPE",
+ "type" : "integer",
+ "value" : 3
+ },
+ {
+ "name" : "MV_SURVEILLANCE_FACE_RECOGNITION_MODEL_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_SURVEILLANCE_MOVEMENT_DETECTION_THRESHOLD",
+ "type" : "integer",
+ "value" : 10
+ },
+ {
+ "name" : "MV_SURVEILLANCE_SKIP_FRAMES_COUNT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_CHANNELS",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_DATA_TYPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_CONFIGURATION_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_WEIGHT_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_USER_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_MEAN_VALUE",
+ "type" : "double",
+ "value" : 127.5
+ },
+ {
+ "name" : "MV_INFERENCE_BACKEND_TYPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_TARGET_DEVICE_TYPE",
+ "type" : "integer",
+ "value" : 1
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_STD_VALUE",
+ "type" : "double",
+ "value" : 1.0
+ },
+ {
+ "name" : "MV_INFERENCE_OUTPUT_MAX_NUMBER",
+ "type" : "integer",
+ "value" : 5
+ },
+ {
+ "name" : "MV_INFERENCE_CONFIDENCE_THRESHOLD",
+ "type" : "double",
+ "value" : 0.6
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_NODE_NAME",
+ "type" : "string",
+ "value" : "input"
+ },
+ {
+ "name" : "MV_INFERENCE_OUTPUT_NODE_NAMES",
+ "type" : "array",
+ "subtype" : "string",
+ "value" : [ "output"
+ ]
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_META_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_ROI_TRACKER_TYPE",
+ "type" : "integer",
+ "value" : 2
+ },
+ {
+ "name" : "MV_3D_DEPTH_MODE",
+ "type" : "integer",
+ "value" : 1
+ },
+ {
+ "name" : "MV_3D_DEPTH_WIDTH",
+ "type" : "integer",
+ "value" : 640
+ },
+ {
+ "name" : "MV_3D_DEPTH_HEIGHT",
+ "type" : "integer",
+ "value" : 480
+ },
+ {
+ "name" : "MV_3D_DEPTH_MIN_DISPARITY",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_3D_DEPTH_MAX_DISPARITY",
+ "type" : "integer",
+ "value" : 64
+ },
+ {
+ "name" : "MV_3D_DEPTH_STEREO_CONFIG_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_SAMPLING_RATIO",
+ "type" : "double",
+ "value" : 1.0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTLIER_REMOVAL_POINTS",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTLIER_REMOVAL_RADIUS",
+ "type" : "double",
+ "value" : 0.0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTPUT_FILE_PATH",
+ "type" : "string",
+ "value" : "/opt/usr/home/owner/media/Images"
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_DATA_SHAPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_FINDER_SHAPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_EMBED_IMG_PATH",
+ "type" : "string",
+ "value" : ""
+ }
+ ]
+}
diff --git a/media-config-simulator/hal/etc/multimedia/media-vision-config.json b/media-config-simulator/hal/etc/multimedia/media-vision-config.json
new file mode 100644
index 0000000..83dc6bd
--- /dev/null
+++ b/media-config-simulator/hal/etc/multimedia/media-vision-config.json
@@ -0,0 +1,317 @@
+{
+ "attributes":
+ [
+ {
+ "name" : "MV_FACE_DETECTION_MODEL_FILE_PATH",
+ "type" : "string",
+ "value" : "/usr/share/OpenCV/haarcascades/haarcascade_frontalface_alt2.xml"
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_X",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_Y",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_ROI_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_MIN_SIZE_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_FACE_DETECTION_MIN_SIZE_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_TEXT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_COLOR_FRONT",
+ "type" : "string",
+ "value" : "000000"
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_COLOR_BACK",
+ "type" : "string",
+ "value" : "ffffff"
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_TARGET",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_COUNT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_ROTATION_DIRECTION",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_DETECT_ATTR_USE_ENHANCEMENT",
+ "type" : "boolean",
+ "value" : false
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_OBJECT_SCALE_FACTOR",
+ "type" : "double",
+ "value" : 1.2
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_OBJECT_MAX_KEYPOINTS_NUM",
+ "type" : "integer",
+ "value" : 1000
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_SCENE_SCALE_FACTOR",
+ "type" : "double",
+ "value" : 1.2
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_SCENE_MAX_KEYPOINTS_NUM",
+ "type" : "integer",
+ "value" : 5000
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_MIN_MATCH_NUM",
+ "type" : "integer",
+ "value" : 30
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_REQ_MATCH_PART",
+ "type" : "double",
+ "value" : 0.05
+ },
+ {
+ "name" : "MV_IMAGE_RECOGNITION_TOLERANT_MATCH_PART_ERR",
+ "type" : "double",
+ "value" : 0.1
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_HISTORY_AMOUNT",
+ "type" : "integer",
+ "value" : 3
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_EXPECTED_OFFSET",
+ "type" : "double",
+ "value" : 0
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_USE_STABLIZATION",
+ "type" : "boolean",
+ "value" : true
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_TOLERANT_SHIFT",
+ "type" : "double",
+ "value" : 0.00006
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_SPEED",
+ "type" : "double",
+ "value" : 0.3
+ },
+ {
+ "name" : "MV_IMAGE_TRACKING_STABLIZATION_ACCELERATION",
+ "type" : "double",
+ "value" : 0.1
+ },
+ {
+ "name" : "MV_FACE_RECOGNITION_MODEL_TYPE",
+ "type" : "integer",
+ "value" : 3
+ },
+ {
+ "name" : "MV_SURVEILLANCE_FACE_RECOGNITION_MODEL_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_SURVEILLANCE_MOVEMENT_DETECTION_THRESHOLD",
+ "type" : "integer",
+ "value" : 10
+ },
+ {
+ "name" : "MV_SURVEILLANCE_SKIP_FRAMES_COUNT",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_WIDTH",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_HEIGHT",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_TENSOR_CHANNELS",
+ "type" : "integer",
+ "value" : -1
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_DATA_TYPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_CONFIGURATION_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_WEIGHT_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_USER_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_MEAN_VALUE",
+ "type" : "double",
+ "value" : 127.5
+ },
+ {
+ "name" : "MV_INFERENCE_BACKEND_TYPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_INFERENCE_TARGET_DEVICE_TYPE",
+ "type" : "integer",
+ "value" : 1
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_STD_VALUE",
+ "type" : "double",
+ "value" : 1.0
+ },
+ {
+ "name" : "MV_INFERENCE_OUTPUT_MAX_NUMBER",
+ "type" : "integer",
+ "value" : 5
+ },
+ {
+ "name" : "MV_INFERENCE_CONFIDENCE_THRESHOLD",
+ "type" : "double",
+ "value" : 0.6
+ },
+ {
+ "name" : "MV_INFERENCE_INPUT_NODE_NAME",
+ "type" : "string",
+ "value" : "input"
+ },
+ {
+ "name" : "MV_INFERENCE_OUTPUT_NODE_NAMES",
+ "type" : "array",
+ "subtype" : "string",
+ "value" : [ "output"
+ ]
+ },
+ {
+ "name" : "MV_INFERENCE_MODEL_META_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_ROI_TRACKER_TYPE",
+ "type" : "integer",
+ "value" : 2
+ },
+ {
+ "name" : "MV_3D_DEPTH_MODE",
+ "type" : "integer",
+ "value" : 1
+ },
+ {
+ "name" : "MV_3D_DEPTH_WIDTH",
+ "type" : "integer",
+ "value" : 640
+ },
+ {
+ "name" : "MV_3D_DEPTH_HEIGHT",
+ "type" : "integer",
+ "value" : 480
+ },
+ {
+ "name" : "MV_3D_DEPTH_MIN_DISPARITY",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_3D_DEPTH_MAX_DISPARITY",
+ "type" : "integer",
+ "value" : 64
+ },
+ {
+ "name" : "MV_3D_DEPTH_STEREO_CONFIG_FILE_PATH",
+ "type" : "string",
+ "value" : ""
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_SAMPLING_RATIO",
+ "type" : "double",
+ "value" : 1.0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTLIER_REMOVAL_POINTS",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTLIER_REMOVAL_RADIUS",
+ "type" : "double",
+ "value" : 0.0
+ },
+ {
+ "name" : "MV_3D_POINTCLOUD_OUTPUT_FILE_PATH",
+ "type" : "string",
+ "value" : "/opt/usr/home/owner/media/Images"
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_DATA_SHAPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_FINDER_SHAPE",
+ "type" : "integer",
+ "value" : 0
+ },
+ {
+ "name" : "MV_BARCODE_GENERATE_ATTR_EMBED_IMG_PATH",
+ "type" : "string",
+ "value" : ""
+ }
+ ]
+}
diff --git a/packaging/media-config.spec b/packaging/media-config.spec
index 74a4d09..580f10c 100644
--- a/packaging/media-config.spec
+++ b/packaging/media-config.spec
@@ -2,7 +2,7 @@
Name: media-config
Summary: Multimedia Framework system configuration package
-Version: 0.3.79
+Version: 0.3.80
Release: 0
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0
@@ -276,6 +276,7 @@ rm -rf %{_hal_datadir}/%{name}-simulator
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.conf
+%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.json
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-generic%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-generic%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
@@ -293,6 +294,7 @@ rm -rf %{_hal_datadir}/%{name}-simulator
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.conf
+%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.json
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf