platform/core/api/mediavision.git
2 months agoMerge "test: disable test cases for private task API" into tizen_devel tizen_devel
Inki Dae [Tue, 25 Mar 2025 04:49:29 +0000 (04:49 +0000)]
Merge "test: disable test cases for private task API" into tizen_devel

2 months agoMerge "mv_machine_learning: do not convert output tensor in default" into tizen_devel
Inki Dae [Tue, 25 Mar 2025 04:49:16 +0000 (04:49 +0000)]
Merge "mv_machine_learning: do not convert output tensor in default" into tizen_devel

3 months agoMerge "mv_machine_learning: Do not update object_detection.json file" into tizen_devel
Inki Dae [Mon, 10 Mar 2025 05:42:59 +0000 (05:42 +0000)]
Merge "mv_machine_learning: Do not update object_detection.json file" into tizen_devel

3 months agoMerge "mv_machine_learning: add get label API support for semantic segmentation task...
Inki Dae [Mon, 10 Mar 2025 05:42:49 +0000 (05:42 +0000)]
Merge "mv_machine_learning: add get label API support for semantic segmentation task" into tizen_devel

3 months agoMerge "mv_machine_learning: add Stdc1 model support for semantic segmentation" into...
Inki Dae [Mon, 10 Mar 2025 05:42:25 +0000 (05:42 +0000)]
Merge "mv_machine_learning: add Stdc1 model support for semantic segmentation" into tizen_devel

3 months agoMerge "mv_machine_learning: add semantic segmentation Task API" into tizen_devel
Inki Dae [Mon, 10 Mar 2025 05:42:12 +0000 (05:42 +0000)]
Merge "mv_machine_learning: add semantic segmentation Task API" into tizen_devel

3 months agotest: disable test cases for private task API 61/320761/2
Inki Dae [Fri, 7 Mar 2025 06:09:24 +0000 (15:09 +0900)]
test: disable test cases for private task API

Change-Id: I771722f43ebe79d1d092e8a95425e0abfc5bb7a0
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 months agomv_machine_learning: do not convert output tensor in default 58/320758/2
Inki Dae [Fri, 7 Mar 2025 01:37:13 +0000 (10:37 +0900)]
mv_machine_learning: do not convert output tensor in default

Do not convert output tensor in default. Until now, Mediavision
converted output tensor type of quantized model to float type
in default. However, the conversion isn't mandatory and it incurs
performance degration due to unnecessary memory copy.

So this patch drops the conversion work and make each model specific
function to convert its own output tensor as a postprocessing just by
moving the conversion function call to model specific code.

This is a first step for code refactoring.

Change-Id: Icfa5bea6b432161443e19bb7b47a8cbe6f203a0b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 months agomv_machine_learning: Do not update object_detection.json file 42/320742/2
Inki Dae [Fri, 7 Mar 2025 01:27:55 +0000 (10:27 +0900)]
mv_machine_learning: Do not update object_detection.json file

Do not update object_detection.json file by reverting model information.
In default, od_mobilenet_v1_ssd_postop_300x300.tflite should be set.
Otherwise, UTC will fail.

Change-Id: Ib7485afd574fd58db2fcbbaae5e01f5161e7fe9c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 months agomv_machine_learning: add get label API support for semantic segmentation task 53/320353/3
Inki Dae [Thu, 27 Feb 2025 06:11:12 +0000 (15:11 +0900)]
mv_machine_learning: add get label API support for semantic segmentation task

Add get label API support for semantic segmentation task.

Change-Id: Ic381b0157706d6b939e72517db134977570ca4a3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 months agomv_machine_learning: add Stdc1 model support for semantic segmentation 48/320248/2
Inki Dae [Tue, 25 Feb 2025 09:16:35 +0000 (18:16 +0900)]
mv_machine_learning: add Stdc1 model support for semantic segmentation

Add Stdc1 model support for semantic segmentation task group.

This model is one of best models for semantic segmentation task so
use this model in default. And in addition, this patch introduces
a new native API, mv_semantic_segmentation_get_result_count()
like other task API did.

Change-Id: I904ef124d334539e19b8a1db11a16ce4986c53ba
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 months agomv_machine_learning: add semantic segmentation Task API 47/320247/1
Inki Dae [Mon, 17 Feb 2025 08:09:43 +0000 (17:09 +0900)]
mv_machine_learning: add semantic segmentation Task API

Add semantic sgementation Task API. As a initial support,
this patch adds DeeplabV3_mobilenetv2 model support.

Change-Id: Ie17eda56bfde678737e872c0bee5903922c51e93
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agoMerge "mv_machine_learning: add internal tag" into tizen_devel
Inki Dae [Wed, 12 Feb 2025 04:42:22 +0000 (04:42 +0000)]
Merge "mv_machine_learning: add internal tag" into tizen_devel

4 months agomv_machine_learning: add internal tag 20/319420/2
Inki Dae [Tue, 11 Feb 2025 00:19:45 +0000 (09:19 +0900)]
mv_machine_learning: add internal tag

Add internal tag to HAILORT type.

Change-Id: Ie526fee3e3bd75ddc2ff39acdfc720a8b8ce45ab
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agoMerge "mv_machine_learning: code cleanup by dropping unnecessary code" into tizen_devel
Inki Dae [Mon, 10 Feb 2025 12:18:26 +0000 (12:18 +0000)]
Merge "mv_machine_learning: code cleanup by dropping unnecessary code" into tizen_devel

4 months agoMerge "mv_machine_learning: clear allocated tensor buffer" into tizen_devel
Inki Dae [Mon, 10 Feb 2025 12:18:22 +0000 (12:18 +0000)]
Merge "mv_machine_learning: clear allocated tensor buffer" into tizen_devel

4 months agoMerge "mv_machine_learning: use threshold value instead of fixed one" into tizen_devel
Inki Dae [Mon, 10 Feb 2025 12:18:19 +0000 (12:18 +0000)]
Merge "mv_machine_learning: use threshold value instead of fixed one" into tizen_devel

4 months agoMerge "mv_machine_learning: add mv_object_detection_get_label C API support" into...
Inki Dae [Mon, 10 Feb 2025 12:18:14 +0000 (12:18 +0000)]
Merge "mv_machine_learning: add mv_object_detection_get_label C API support" into tizen_devel

4 months agoMerge "test: add yoloxs model test case for Hailo-8L NPU" into tizen_devel
Inki Dae [Mon, 10 Feb 2025 12:18:08 +0000 (12:18 +0000)]
Merge "test: add yoloxs model test case for Hailo-8L NPU" into tizen_devel

4 months agoMerge "mv_machine_learning: add Hailo NPU Runtime backend support" into tizen_devel
Inki Dae [Mon, 10 Feb 2025 12:18:02 +0000 (12:18 +0000)]
Merge "mv_machine_learning: add Hailo NPU Runtime backend support" into tizen_devel

4 months agomv_machine_learning: code cleanup by dropping unnecessary code 68/319068/4
Inki Dae [Tue, 4 Feb 2025 01:30:13 +0000 (10:30 +0900)]
mv_machine_learning: code cleanup by dropping unnecessary code

Change-Id: I507f00ce524777798960a668a41ef60ee769bb33
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agomv_machine_learning: clear allocated tensor buffer 67/319067/3
Inki Dae [Mon, 3 Feb 2025 05:15:26 +0000 (14:15 +0900)]
mv_machine_learning: clear allocated tensor buffer

Clear allocated tensor buffer.

Change-Id: I6e00e4d9c9d17790cd09ae5aeb7f9f3e28382b4f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agomv_machine_learning: use threshold value instead of fixed one 66/319066/3
Inki Dae [Mon, 3 Feb 2025 05:14:20 +0000 (14:14 +0900)]
mv_machine_learning: use threshold value instead of fixed one

Use threshold value from model meta file instead of fixed one and
code cleanup.

Change-Id: I529147fdd2d49da6cda605d04eec47d9f9bde393
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agomv_machine_learning: add mv_object_detection_get_label C API support 65/319065/3
Inki Dae [Thu, 23 Jan 2025 07:34:19 +0000 (16:34 +0900)]
mv_machine_learning: add mv_object_detection_get_label C API support

Add mv_object_detection_get_label C API support to provide a label name to
each detected object.

Change-Id: I77581029b2a19fd65973b7352fc2904a61f91143
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agoFix typo Tenosr to Tensor 40/317340/2
Bhuvan Reddy Gangula [Tue, 31 Dec 2024 01:52:47 +0000 (10:52 +0900)]
Fix typo Tenosr to Tensor

Change-Id: Ieb20afda9e9459bbbe5e1dc1157b1f075bb3dcec
Signed-off-by: Bhuvan Reddy Gangula <bhu1.gangula@samsung.com>
4 months agotest: add yoloxs model test case for Hailo-8L NPU 64/319064/2
Inki Dae [Wed, 22 Jan 2025 01:05:53 +0000 (10:05 +0900)]
test: add yoloxs model test case for Hailo-8L NPU

Change-Id: Ia608d7b8691126db7729f7571cec65d6ff8e991f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agomv_machine_learning: add Hailo NPU Runtime backend support 63/319063/2
Inki Dae [Tue, 4 Feb 2025 01:57:57 +0000 (10:57 +0900)]
mv_machine_learning: add Hailo NPU Runtime backend support

Add Hailo-8 series NPU engine backend support.

As first support to Hailo NPU model, this patch adds Yolov10s model support
for Hailo-8L NPU device.

Change-Id: I7ce5bca8e60f0fb06d0b1dd9466dbd994a907fbb
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 months agomv_machine_learning: add an comment 10/318210/1
Inki Dae [Tue, 14 Jan 2025 07:21:40 +0000 (16:21 +0900)]
mv_machine_learning: add an comment

Just add an comment, (Since 10.0) on MV_INFERENCE_DATA_INT8 enum value
according to SE team's review.

Change-Id: I05c86a65f7ede7951f45434e84f7a1d053f51382
Signed-off-by: Inki Dae <inki.dae@samsung.com>
5 months agoAdd comments 89/316689/1
Kwanghoon Son [Fri, 29 Nov 2024 02:18:03 +0000 (11:18 +0900)]
Add comments

Describe to set inference engine

Change-Id: Ib4e1095572d199870854f97f2af53f6f7be16899
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
5 months agomv_machine_learning: load backend path ini file 60/316260/2 accepted/tizen_unified_x_asan accepted/tizen/unified/20241218.085930 accepted/tizen/unified/x/20241218.212031 accepted/tizen/unified/x/asan/20250113.002236
Inki Dae [Fri, 6 Dec 2024 05:10:01 +0000 (14:10 +0900)]
mv_machine_learning: load backend path ini file

Load backend path ini file in default.

MV_INFERENCE_BACKEND_MLAPI type has been deprecated so inference engine
mlapi backend should be used in default by inference_engine_backend_path.ini
file.

Change-Id: If0fbdbfa07fba60e9d8939f9ce3cfe49ff9e01e4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
6 months agoFix lint using script 19/316319/1 accepted/tizen/unified/20241217.062918 accepted/tizen/unified/x/20241218.032907 accepted/tizen/unified/x/asan/20241224.004641
Kwanghoon Son [Thu, 12 Dec 2024 23:59:15 +0000 (08:59 +0900)]
Fix lint using script

Change-Id: I0878ecad5a54e799e368ddba59fd2ea63498c312
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
6 months agov1.0.13 Merge branch 'tizen_devel' into tizen
Kwanghoon Son [Thu, 12 Dec 2024 01:57:24 +0000 (10:57 +0900)]
v1.0.13 Merge branch 'tizen_devel' into tizen

Kwanghoon Son (1):
  Fix unittest script

Tae-Young Chung (2):
  mv_machine_learning: rename gaze model name and task type for
    readability and consistency
  mv_machine_learning: add L2CSNet based on mobilenetv2

Change-Id: I833588ff0cb5d56b046f8954b6c252c752ba62ec

6 months agomv_machine_learning: add L2CSNet based on mobilenetv2
Tae-Young Chung [Tue, 26 Nov 2024 08:51:03 +0000 (17:51 +0900)]
mv_machine_learning: add L2CSNet based on mobilenetv2

This patch is test with a test image and the model
the image: https://github.sec.samsung.net/k-son/mv_test_res/pull/15
the model: https://github.sec.samsung.net/tizen-vault/open_model_zoo/pull/12

Change-Id: I3ec58923e387a4d283ee508823d49fe3dd785e9e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
6 months agomv_machine_learning: rename gaze model name and task type for readability and consistency
Tae-Young Chung [Thu, 21 Nov 2024 05:27:10 +0000 (14:27 +0900)]
mv_machine_learning: rename gaze model name and task type for readability and consistency

Change-Id: I17da9351a49214f7a47e1623197ffa25cd2f83dd
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
6 months agoFix unittest script
Kwanghoon Son [Wed, 20 Nov 2024 04:19:04 +0000 (13:19 +0900)]
Fix unittest script

- VD profile not have res home path
- verbose for tar time stamp

Change-Id: I1e970496563cc960b2d71d590803e0dd12a29888
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
6 months agoAdd log for designQR 61/316061/2
Kwanghoon Son [Wed, 4 Dec 2024 09:51:11 +0000 (18:51 +0900)]
Add log for designQR

Change-Id: I633346e07207cbd008f838c5389ba946e8f3e64b
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
6 months agoMerge "Fix designqr resize scale" into tizen
kwang son [Wed, 11 Dec 2024 04:02:43 +0000 (04:02 +0000)]
Merge "Fix designqr resize scale" into tizen

6 months agofix a build error on VD platform 62/315862/2 accepted/tizen/unified/20241211.152214
Inki Dae [Thu, 5 Dec 2024 08:13:36 +0000 (17:13 +0900)]
fix a build error on VD platform

[Version] : 1.0.12
[Issue type] : bug fix

Fix a build error on VD platform. In case of VD platform, gaze tracking
library and relevant test cases shouldn't be compiled. So exclude
the gaze tracking relevant code from build target in case of VD platform.

Change-Id: I749f65c295080b208ff20a48b2319a90750127fa
Signed-off-by: Inki Dae <inki.dae@samsung.com>
6 months agoFix designqr resize scale 60/316060/1
Kwanghoon Son [Wed, 4 Dec 2024 06:23:42 +0000 (15:23 +0900)]
Fix designqr resize scale

Version : 1.0.12

Generate designQR takes too long time.
So decrease quality to speed up.

Change-Id: I593713c53d481f5d454f8b862ef487bb921a0974
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
6 months agomv_machine_learning: change feature key for hand detection 39/321039/1
Inki Dae [Wed, 27 Nov 2024 02:24:48 +0000 (11:24 +0900)]
mv_machine_learning: change feature key for hand detection

[Issue type] : code cleanup

Change a feature key for hand detection
from http://tizen.org/feature/vision.inference.face
to http://tizen.org/feature/vision.inference.image

Using 'face' key name for hand detection isn't appropriate so change
it to 'image' one.

Change-Id: I73b22cf4c9e7b950b91d93d66d6501bcf38fa272
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 months agomv_machine_learning: add TinyTrackerS model support accepted/tizen/unified/20241129.062256
Inki Dae [Tue, 22 Oct 2024 23:54:59 +0000 (08:54 +0900)]
mv_machine_learning: add TinyTrackerS model support

Add TinyTrackerS model support which is one of Gaze Estimation models,
and a light-weight version for embedded devices.

This model needs int8 data type as input tensor so what this patch does,
 - add int8 tensor data type support
 - update normalize() and quantize() for supporting int8 tensor data type
 - change the default model for Gaze Tracking task group to TinyTracker

Change-Id: I73c0b519fa0eccdd82ece2ef38c4748d26f26331
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 months agomv_machine_learning: add G_GAZE_ESTIMATION model support
Inki Dae [Tue, 24 Sep 2024 06:35:33 +0000 (15:35 +0900)]
mv_machine_learning: add G_GAZE_ESTIMATION model support

Change-Id: I6202e243f0542911a952a7598b1eb76ee2a2f22d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 months agotest: add test case for gaze tracking task group
Inki Dae [Mon, 15 Jul 2024 07:31:47 +0000 (16:31 +0900)]
test: add test case for gaze tracking task group

Change-Id: I7df3dd4160b2e7a33cc98f4d0caf60ba00c658fd
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 months agomv_machine_learning: add gaze tracking task group
Inki Dae [Mon, 15 Jul 2024 05:07:39 +0000 (14:07 +0900)]
mv_machine_learning: add gaze tracking task group

Change-Id: Ieb2fdd6f599bba70c81849820151cc6a9eb8d087
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 months agoAdd designqr output check script
Kwanghoon Son [Tue, 22 Oct 2024 02:30:30 +0000 (11:30 +0900)]
Add designqr output check script

TCT not check output quality.
This script will help when refactoring designqr.

Change-Id: I44b1d13a7ecf894a8fc851e972facbeeb0bce2d2
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
8 months agomv_machine_learning: fix coverity issue 35/318535/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.232932 accepted/tizen/unified/20241017.114720 accepted/tizen/unified/toolchain/20241022.122707 accepted/tizen/unified/toolchain/20241022.123108 accepted/tizen/unified/x/20241017.170411 accepted/tizen/unified/x/asan/20241022.113557 tizen_9.0_m2_release
Inki Dae [Wed, 2 Oct 2024 01:06:12 +0000 (10:06 +0900)]
mv_machine_learning: fix coverity issue

Version : 1.0.11
Issue type : code cleanup

Fix a coverity issue, CID-1792670, by using const auto & instead of just auto.

Change-Id: Ifb9d174062db2700c036634fbded847cbe5519d2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 months agov1.0.10 Merge branch 'tizen_devel' into tizen accepted/tizen/unified/20240928.111247 accepted/tizen/unified/20240928.221346 accepted/tizen/unified/toolchain/20241004.102155 accepted/tizen/unified/x/20240929.082758 accepted/tizen/unified/x/asan/20241014.000602
Kwanghoon Son [Thu, 26 Sep 2024 05:12:14 +0000 (14:12 +0900)]
v1.0.10 Merge branch 'tizen_devel' into tizen

Inki Dae (4):
  mv_machine_learning: add hand landmark detection model support
  test: add test case for hand landmark task group
  mv_machine_learning: add hand detection model support
  test: add hand detection model test case

Kwanghoon Son (5):
  Change setup script to copy rpk resources
  doc: update barcode
  doc: update barcode
  doc: update common
  doc: update mv_face_detection

Change-Id: Ic12c435704d848371749cc73910f6c0a6e1dd212

8 months agotest: add hand detection model test case
Inki Dae [Mon, 22 Jul 2024 07:58:09 +0000 (16:58 +0900)]
test: add hand detection model test case

Change-Id: Ia752b12148b672e960e82cf14d8becfc3bba31b8
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 months agomv_machine_learning: add hand detection model support
Inki Dae [Mon, 22 Jul 2024 05:53:14 +0000 (14:53 +0900)]
mv_machine_learning: add hand detection model support

Change-Id: I411852d4cd429aa48ef1ddcee9ae5f1fbb2bb43d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 months agotest: add test case for hand landmark task group
Inki Dae [Thu, 18 Jul 2024 00:35:00 +0000 (09:35 +0900)]
test: add test case for hand landmark task group

Change-Id: I5ce95733d005e07dac3ae31a47d25680a957bda6
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 months agomv_machine_learning: add hand landmark detection model support
Inki Dae [Tue, 16 Jul 2024 07:52:18 +0000 (16:52 +0900)]
mv_machine_learning: add hand landmark detection model support

Change-Id: I997373757edb91bb6ef08dee4a7e3320df4837ba
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 months agodoc: update mv_face_detection
Kwanghoon Son [Fri, 13 Sep 2024 04:30:56 +0000 (13:30 +0900)]
doc: update mv_face_detection

Change-Id: Ia58b6a771b07c157d244d8eb88570c949c5f1fed
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
8 months agodoc: update common
Kwanghoon Son [Fri, 13 Sep 2024 02:08:45 +0000 (11:08 +0900)]
doc: update common

Change-Id: Ia7ad8c390545f25d7826768f839c93ff5954d465
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
8 months agodoc: update barcode
Kwanghoon Son [Fri, 13 Sep 2024 01:56:15 +0000 (10:56 +0900)]
doc: update barcode

Change-Id: I849fcfe2f0a61aab251b8c5fc09b89df642de447
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
8 months agodoc: update barcode
Kwanghoon Son [Mon, 9 Sep 2024 02:32:28 +0000 (11:32 +0900)]
doc: update barcode

Change-Id: I0795867c79a4f27e11aace789b2cb8c1ae2eb809
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
8 months agoChange setup script to copy rpk resources
Kwanghoon Son [Mon, 2 Sep 2024 23:54:25 +0000 (08:54 +0900)]
Change setup script to copy rpk resources

Change-Id: Ifbdb0d9e7fc69269cde631f1842e79b688a30033
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
9 months agomv_machine_learning: fix header description 85/317185/1
Inki Dae [Thu, 5 Sep 2024 08:34:46 +0000 (17:34 +0900)]
mv_machine_learning: fix header description

Issue type : bug fix
Version : 1.0.9

Just fix header description about incorrect error type.

Change-Id: I88a2d3d1571b6aae70840002e8fe269d6a2861fe
Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 months agoFix version to 1.0.8
Kwanghoon Son [Mon, 2 Sep 2024 01:44:51 +0000 (10:44 +0900)]
Fix version to 1.0.8

Change-Id: If7d46800cb891844f0af57036ff754e3da4c1d0f
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
9 months agov1.0.8 Merge branch 'tizen_devel' into tizen accepted/tizen_unified_dev accepted/tizen/unified/20240902.161237 accepted/tizen/unified/dev/20240903.220423 accepted/tizen/unified/x/20240903.023248
Kwanghoon Son [Thu, 29 Aug 2024 04:17:21 +0000 (13:17 +0900)]
v1.0.8 Merge branch 'tizen_devel' into tizen

Vibhav Aggarwal (3):
  mv_machine_learning: fix bug in test case
  ImageClassification: introduce _status member
  mv_machine_learning: introduce _status member to remaining tasks

Change-Id: I92e4284723a415e01e844e1c51d3b9c54212736c

9 months agomv_machine_learning: introduce _status member to remaining tasks
Vibhav Aggarwal [Wed, 28 Aug 2024 06:37:29 +0000 (15:37 +0900)]
mv_machine_learning: introduce _status member to remaining tasks

[Issue type] bug fix

Introduce _status member to tasks other than ImageClassification
in a way similar to this patch[1].

[1] https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/316729/

Change-Id: Ie80450d4048436cb69c82d7fa79f9c9861ad67f2
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
9 months agoImageClassification: introduce _status member
Vibhav Aggarwal [Tue, 27 Aug 2024 09:50:54 +0000 (18:50 +0900)]
ImageClassification: introduce _status member

[Issue type] bug fix

This patch introduces a _status member to keep track
of internal working status of the ImageClassification task.
This helps in catching errors when the user calls the APIs
in the wrong order (for example: calling mv_..._get_label() before
calling mv_..._inference()).

After merging this patch, a similar patch will be introduced
for other tasks as well.

Change-Id: Ifd874d053a834a84e2455a7d999029c774d97762
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
9 months agomv_machine_learning: fix bug in test case
Vibhav Aggarwal [Wed, 7 Aug 2024 11:33:30 +0000 (20:33 +0900)]
mv_machine_learning: fix bug in test case

[Issue type] bug fix

This patch fixes a bug in the object detection
and object detection 3d test cases where test_model_input
struct was being incorrectly initialized.

Change-Id: I6819f6fea141e92106530a2b4bc766b1529b01ff
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
9 months agoFix doc 91/316691/4 accepted/tizen/unified/20240829.153510 accepted/tizen/unified/dev/20240901.214612 accepted/tizen/unified/x/20240830.014050
Kwanghoon Son [Tue, 27 Aug 2024 04:02:43 +0000 (13:02 +0900)]
Fix doc

[Version] 1.0.7

- Switch @section FEATURE <> OVERVIEW
- Wrong function name

Change-Id: I76986d4ccfcdcd766fe8ba7fecd81f8e1079dcc1
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agov1.0.6 Merge branch 'tizen_devel' into tizen accepted/tizen/unified/20240731.010807 accepted/tizen/unified/dev/20240731.044727 accepted/tizen/unified/toolchain/20240812.133528 accepted/tizen/unified/x/20240731.090037 accepted/tizen/unified/x/asan/20240813.232014
Kwanghoon Son [Tue, 30 Jul 2024 03:28:21 +0000 (12:28 +0900)]
v1.0.6 Merge branch 'tizen_devel' into tizen

Change-Id: I0d7486060c5a3a3b44be55e13c16436931ac71e6

10 months agoRemove logoFrame 97/315297/1
Kwanghoon Son [Tue, 30 Jul 2024 01:50:50 +0000 (10:50 +0900)]
Remove logoFrame

Since data pattern is not shown near logo, logo frame is not necessary.

Change-Id: I5c7ad003101cc9018825e390a8586929e8da98f7
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoExclude draw data when logo exist 92/315292/2
Kwanghoon Son [Mon, 29 Jul 2024 12:04:45 +0000 (21:04 +0900)]
Exclude draw data when logo exist

When draw logo, data area should clean.
Also fix circle draw position.

Change-Id: I80d60e6ae8ab3ac427314b493441cc76265e3d38
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoSupport logo in mv_barcode_generate_source 88/315088/3
Kwanghoon Son [Thu, 25 Jul 2024 00:23:26 +0000 (09:23 +0900)]
Support logo in mv_barcode_generate_source

The reason why the logo was not used in mv_barcode_generate_source before is
that the logo does not look normal if the buffer size is too small.
However in the case of design QR, the buffer size is increased (x16),
so the logo quality will not be a problem.

Change-Id: Idfff0a049e5c5fbaeb7eaed018f06f2a15f87619
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agov1.0.5 Merge branch 'tizen_devel' into tizen accepted/tizen/unified/20240727.112753 accepted/tizen/unified/dev/20240730.010450 accepted/tizen/unified/x/20240729.014304
Kwanghoon Son [Fri, 26 Jul 2024 03:49:51 +0000 (12:49 +0900)]
v1.0.5 Merge branch 'tizen_devel' into tizen

Inki Dae (1):
  Revert "machine_learning: fix a bug to handling
    MEDIA_VISION_ERROR_NO_DATA"

Kwanghoon Son (7):
  barcode_gen: Change parameter to config
  Clean up write_buffer_to_img parameter
  Add draw_logo check, comment
  Clean symbol resource handle
  Fix log condition
  Change color using opencv instead zint
  Draw finder, data using opencv instead zint

Change-Id: I969b50538bd24703c99edad2671166d212cc901e

10 months agoDraw finder, data using opencv instead zint
Kwanghoon Son [Thu, 18 Jul 2024 06:06:19 +0000 (15:06 +0900)]
Draw finder, data using opencv instead zint

Change-Id: I516db8cf79a0ca8c554cb97ef78af5742b8bd2cd
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoChange color using opencv instead zint
Kwanghoon Son [Tue, 16 Jul 2024 00:01:44 +0000 (09:01 +0900)]
Change color using opencv instead zint

DesignQR finder and data shape handling will be moved to opencv,
so color also should be processed in opencv.

Change-Id: I1462c56aa2d6ffddd3542aa22ec0042fa79e7f7d
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoFix log condition
Kwanghoon Son [Mon, 15 Jul 2024 05:22:00 +0000 (14:22 +0900)]
Fix log condition

- fix wrong log print
- refactoring for convert

Change-Id: I8181be4fb91c9fb4a599ff665bc36c05cbf27185
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoRevert "machine_learning: fix a bug to handling MEDIA_VISION_ERROR_NO_DATA"
Inki Dae [Mon, 15 Jul 2024 01:19:05 +0000 (10:19 +0900)]
Revert "machine_learning: fix a bug to handling MEDIA_VISION_ERROR_NO_DATA"

This reverts commit cce581a7642b661cbd2a8d27fa6a2c9ede4ea46a.

_result.is_valid should be kept as false if inference request failed due to
no label because result() will return no data exception if _result.is_valid
is false. If _result.is_valid is true then an error exception will happen
in result() function,
FaceRecognitionResult &FaceRecognition::result()
{
if (!_result.is_valid) //<- if is_valid is true then it is skipped.
throw NoData("Inference result not ready yet.");

if (!_label_manager)
throw NoData("Label file doesn't exist.");

try {
//<- so it will try to access _labels with wrong index.
_label_manager->getLabelString(_result.label, _result.label_idx);
} catch (const BaseException &e) {
LOGE("%s", e.what());
throw e;
}

return _result;
}

Change-Id: Ife004862e72f33eff4bf4ac313abb1823366421e
Signed-off-by: Inki Dae <inki.dae@samsung.com>
10 months agoClean symbol resource handle
Kwanghoon Son [Thu, 11 Jul 2024 02:16:17 +0000 (11:16 +0900)]
Clean symbol resource handle

- ZBarcode_Delete now called once after draw logic
- remove un-necessary API expose

Change-Id: I4dea92cb2678adb5f1dcefa9530dd4ffb3ed3122
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoAdd draw_logo check, comment
Kwanghoon Son [Wed, 10 Jul 2024 00:08:07 +0000 (09:08 +0900)]
Add draw_logo check, comment

Change-Id: I1033ff296547ac6490ea4c4148d8de509ea79f70
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agoClean up write_buffer_to_img parameter
Kwanghoon Son [Tue, 9 Jul 2024 01:49:20 +0000 (10:49 +0900)]
Clean up write_buffer_to_img parameter

Change-Id: I8446491bd75033dea874c15e5769a3269eeaac40
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
10 months agobarcode_gen: Change parameter to config
Kwanghoon Son [Fri, 5 Jul 2024 03:20:53 +0000 (12:20 +0900)]
barcode_gen: Change parameter to config

- Clean up using BarcodeConfig
- Remove _open.{h,cpp}

Change-Id: I9bd1314c995543c2ec89af728973ea7e87c8bfa2
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agov1.0.4 Merge branch 'tizen_devel' into tizen accepted/tizen/unified/20240708.103255 accepted/tizen/unified/dev/20240709.043357 accepted/tizen/unified/x/20240708.080624
Kwanghoon Son [Fri, 5 Jul 2024 02:06:43 +0000 (11:06 +0900)]
v1.0.4 Merge branch 'tizen_devel' into tizen

Kwanghoon Son (5):
  Remove un-used header
  Support barcode generation on Ubuntu
  Change test resource path
  Add BarcodeConfig
  BarcodeConfig::update handle more config

Change-Id: I2425cd068ca0c21286d8ef777ed60e08979106e3

11 months agoBarcodeConfig::update handle more config
Kwanghoon Son [Mon, 1 Jul 2024 05:57:45 +0000 (14:57 +0900)]
BarcodeConfig::update handle more config

This will be replaced getColorFromEngine, prepareMessageToGenerate

Change-Id: I1bb4d8babc946100c72f9aa0fdd1e459dff82e02
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoAdd BarcodeConfig
Kwanghoon Son [Thu, 27 Jun 2024 03:46:07 +0000 (12:46 +0900)]
Add BarcodeConfig

Collect barcode options to a single structure for the following reasons:

 - The common parsing code was scattered in multiple places,
making it difficult to read and understand.
 - Since the mv_engine_config was separate,
there was a need to parse it in the middle of the calculation logic.
 - function paramter is too long and almost same to next sub-function.

Change-Id: I9bf18ec88ed5bc48aff9ab3aabcb25c5ec0d83cd
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoChange test resource path
Kwanghoon Son [Thu, 27 Jun 2024 01:47:14 +0000 (10:47 +0900)]
Change test resource path

Change-Id: I177394dbd18ad98c878c320a435d886ef6602b6b
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoSupport barcode generation on Ubuntu
Kwanghoon Son [Mon, 24 Jun 2024 05:44:56 +0000 (14:44 +0900)]
Support barcode generation on Ubuntu

Change-Id: Ice8523a648c48da7b9bfaaa69bd685d75c7a63fe
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoRemove un-used header
Kwanghoon Son [Mon, 24 Jun 2024 05:45:58 +0000 (14:45 +0900)]
Remove un-used header

Change-Id: Iaf80fbe1157bad6128065011ba15f60456dca886
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agofix svace nullptr issue 69/313869/1
Vibhav Aggarwal [Wed, 3 Jul 2024 03:17:11 +0000 (12:17 +0900)]
fix svace nullptr issue

https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=1&WGID=208693

Change-Id: I1497bc333002c8476707bca9f72ce8705ea48c6a
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
11 months agoMerge "Fix tizen header checker warn" into tizen
kwang son [Mon, 24 Jun 2024 04:50:36 +0000 (04:50 +0000)]
Merge "Fix tizen header checker warn" into tizen

11 months agov1.0.3 Merge branch 'tizen_devel' into tizen accepted/tizen/unified/20240624.104742 accepted/tizen/unified/dev/20240701.072758 accepted/tizen/unified/x/20240625.014051
Kwanghoon Son [Mon, 24 Jun 2024 03:53:52 +0000 (03:53 +0000)]
v1.0.3 Merge branch 'tizen_devel' into tizen

Inki Dae (1):
  machine_learning: fix a bug to handling MEDIA_VISION_ERROR_NO_DATA

Kwanghoon Son (6):
  Add ml task group options
  Add cmake header with dependencies
  Fix ML task un-catched error
  Fix ML task un-catched error
  Fix mv_{task}_set_model
  Remove cout in test

Tae-Young Chung (1):
  Add U2Net based face landmark detection

Change-Id: I0fc873bf7d26b727947f0b6e9cb526195c3ce7cc

11 months agomachine_learning: fix a bug to handling MEDIA_VISION_ERROR_NO_DATA
Inki Dae [Wed, 5 Jun 2024 00:36:48 +0000 (09:36 +0900)]
machine_learning: fix a bug to handling MEDIA_VISION_ERROR_NO_DATA

issue type : bug fix

Fix a bug to handling MEDIA_VISION_ERROR_NO_DATA.

User can request face recognition inference without no model file.
In this case, an exception is returned. However, this isn't an error case
but just no data. Without this change, it throwed an exception in result()
because _result.is_valid is false.

This isn't a correct behavior. Therefore, this patch makes _result.is_valid
to be true in case that label data doesn't exist so that _result can be
returned correctly.

Change-Id: I435f064260de4f21d6224e72cdcca650b0280384
Signed-off-by: Inki Dae <inki.dae@samsung.com>
11 months agoRemove cout in test
Kwanghoon Son [Tue, 7 May 2024 06:03:35 +0000 (15:03 +0900)]
Remove cout in test

When test passed, it just noisy.

Change-Id: I1f4e417a1f37856c712a0e182204032007319583
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoFix mv_{task}_set_model
Kwanghoon Son [Tue, 30 Apr 2024 02:43:27 +0000 (11:43 +0900)]
Fix mv_{task}_set_model

- Missing parameter
- Parameter model_name is optional so move to the end of parameter list
- Test created a std::bad_alloc exception problem because structure
model_info was used in several places under the same name.

Change-Id: I8f1a77bfeff724e5405b5ac54eb3bdbe6a3e1b6c
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoAdd U2Net based face landmark detection
Tae-Young Chung [Thu, 25 Apr 2024 05:13:52 +0000 (14:13 +0900)]
Add U2Net based face landmark detection

This patch supports U2Net based face landmark model,
which provides 68 points.
The model is provided from https://github.sec.samsung.net/tizen-vault/open_model_zoo/pull/9

Change-Id: I30cd9ef2d173c9cc05f43c579cc3d2f589bc120a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
11 months agoFix ML task un-catched error
Kwanghoon Son [Fri, 26 Apr 2024 06:03:30 +0000 (15:03 +0900)]
Fix ML task un-catched error

Update missed part of object detection.

Fixes: fae343dae12d583690f24659fa923090470f9483
Change-Id: I1b76e29f5237d121a1503ea375bdc5dd4f676a66
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoFix ML task un-catched error
Kwanghoon Son [Wed, 24 Apr 2024 10:05:34 +0000 (10:05 +0000)]
Fix ML task un-catched error

In the case of EngineConfig, if there is no json file, the int type is
throw. But BaseException cannot catch it.

So changing the int type to runtime_error and add catch that can catch
all errors.

Change-Id: I7c073ddbd22aa649982a51909370f1c8e3be54ae
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoAdd cmake header with dependencies
Kwanghoon Son [Wed, 24 Apr 2024 07:03:23 +0000 (07:03 +0000)]
Add cmake header with dependencies

Change-Id: I4d2ebe3aca8d6775c5d7c8eaf120e7c6fdab5f4b
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoAdd ml task group options
Kwanghoon Son [Wed, 24 Apr 2024 04:52:20 +0000 (04:52 +0000)]
Add ml task group options

ML options was supported only in spec files, but changed to be specified
in cmake.

Change-Id: I05bea2218e59180b21536b224d3575f9c81e154b
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agoFix tizen header checker warn 61/313161/3
Kwanghoon Son [Wed, 19 Jun 2024 12:02:05 +0000 (21:02 +0900)]
Fix tizen header checker warn

tizen-native-api-review-script check message,

Please consider changing tabs in comments to spaces.
Tabs may cause aligned comments to be shown incorrectly,
depending on the editor's tab width setting.

Change-Id: Id49bd94502ab5599dcec372fd28c71b2ed7a5646
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
11 months agodrop @ref from function descriptions 70/313070/2
Inki Dae [Wed, 19 Jun 2024 02:07:15 +0000 (11:07 +0900)]
drop @ref from function descriptions

[Issue type] : document cleanup
[Version] : 1.0.2

Drop @ref from function descriptions of mv_face_recognition.h and
mv_roi_tracker.h files according to SE team's request.

Change-Id: I9b2bce9e0381887d11128a3a2d010572da575b92
Signed-off-by: Inki Dae <inki.dae@samsung.com>
11 months agoFix lint 65/313065/2
Kwanghoon Son [Wed, 19 Jun 2024 01:29:10 +0000 (10:29 +0900)]
Fix lint

[Version] 1.0.2

Change-Id: Ie97328e3e55cfec95620b61f024607faa1e07ab2
Fixes: 5ee3a4ba41c4 ("[ACR-1848] Publish machine learning APIs")
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
12 months ago[ACR-1848] Publish machine learning APIs 14/312614/1 accepted/tizen/unified/20240618.060058 accepted/tizen/unified/dev/20240620.004157 accepted/tizen/unified/toolchain/20240624.121719 accepted/tizen/unified/x/20240619.013513 accepted/tizen/unified/x/asan/20240625.092955
Vibhav Aggarwal [Wed, 12 Jun 2024 09:09:43 +0000 (18:09 +0900)]
[ACR-1848] Publish machine learning APIs

Please refer to the following ACR:
https://jira.sec.samsung.net/browse/ACR-1848

Change-Id: I92c053b3cb1d872735ccd548a091ba9e6b29861f
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
13 months agoExclude lcov 04/309704/1 accepted/tizen/unified/20240423.164607 accepted/tizen/unified/x/20240425.051148
Kwanghoon Son [Tue, 16 Apr 2024 01:47:43 +0000 (01:47 +0000)]
Exclude lcov

[Version] 1.0.1

Change-Id: I7ec99578c5fbc9812c7d4cde0c3d9fda25c5a85e
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
14 months agoMerge branch 'tizen_devel' into tizen accepted/tizen/unified/20240405.115728 accepted/tizen/unified/x/20240408.053821
Kwanghoon Son [Fri, 5 Apr 2024 04:57:03 +0000 (13:57 +0900)]
Merge branch 'tizen_devel' into tizen

[Version] 1.0.0

Vibhav Aggarwal (2):
  mv_machine_learning: replace PostProcess by Postprocess
  mv_machine_learning: introduce machine_learning_native_remove function

 mv_machine_learning/common/include/native_capi.h           | 1 +
 mv_machine_learning/common/meta/include/Postprocess.h      | 5 +++--
 mv_machine_learning/common/meta/src/Postprocess.cpp        | 4 ++--
 mv_machine_learning/common/src/native_capi.cpp             | 7 +++++++
 .../src/ImageClassificationDefault.cpp                     | 2 +-
 5 files changed, 14 insertions(+), 5 deletions(-)

Change-Id: Ic0215c614ab7cb761cf4f898297e66c0a42cca52

14 months agomv_machine_learning: introduce machine_learning_native_remove function
Vibhav Aggarwal [Mon, 1 Apr 2024 07:11:23 +0000 (16:11 +0900)]
mv_machine_learning: introduce machine_learning_native_remove function

[Issue type] new feature

Introduce machine_learning_native_remove(handle, task_name) function
to remove task matching `task_name` from the handle which was added
using machine_learning_native_add().

Change-Id: I4c341205737b91995da7992462a85d3655e997e2
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>