platform/core/api/mediavision.git
3 years agoAdd return false to setTensorBuffer() if parameters are invalid 90/256690/1
Tae-Young Chung [Fri, 9 Apr 2021 07:58:19 +0000 (16:58 +0900)]
Add return false to setTensorBuffer() if parameters are invalid

Change-Id: I35c3778513437a84cb36a09d35de97a2ed127f35
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd TensorBuffer class 76/256576/9
Tae-Young Chung [Wed, 7 Apr 2021 09:48:14 +0000 (18:48 +0900)]
Add TensorBuffer class

It wraps inference_engine_tensor_buffer as a member variable.
It provides methods setTesnorBuffer(), getTensorbuffer(),
and getValue without type casting, which is annoying but important
when handling the value on postprocessing.

Change-Id: I5d7f516ae9aa3113f8e296e24f08840be0c63108
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd dequantization to postprocess and fix bug when there is no preprocess 87/256487/9
Tae-Young Chung [Mon, 5 Apr 2021 08:31:48 +0000 (17:31 +0900)]
Add dequantization to postprocess and fix bug when there is no preprocess

Change-Id: I8bb520a7977ab61e9a8c4ecfc3349197a134b04a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd include map 57/256457/1
Kwang Son [Mon, 5 Apr 2021 00:49:27 +0000 (09:49 +0900)]
Add include map

Change-Id: I33441b80767fae60c738bcc83ec8b41699ccf2ae
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge "Add Metadata, PreProcess, PostProcess class" into tizen_devel
Tae-Young Chung [Fri, 2 Apr 2021 00:45:09 +0000 (00:45 +0000)]
Merge "Add Metadata,  PreProcess, PostProcess class" into tizen_devel

3 years agoAdd Metadata, PreProcess, PostProcess class 44/255344/11
Tae-Young Chung [Wed, 17 Mar 2021 07:07:36 +0000 (16:07 +0900)]
Add Metadata,  PreProcess, PostProcess class

Introduce metadata based pre-/post-process.
User can set the input/output information of a model to a metadata file(json file)
Based on information, input tensor and output tensor are preprocessed and postprocessed,
respectively.
Metadata class with InputMetadata and OutputMetadata are added.
PreProcess and PostProcess class are added.

A meta file for classification is added as an example.
It can be used as an referece for classification case.

Change-Id: Ie86b50ae32bf2f7f5d336fe4709d6ea938930c3d
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoadd Face assessment 33/256133/2
sangho park [Tue, 30 Mar 2021 02:44:53 +0000 (11:44 +0900)]
add Face assessment

 Usage: mv_face_assessment [OPTION...] SOURCE MODEL-TYPE
 [VQA-face]

   -?, --help                 Give this help list
       --usage                Give a short usage message

 mediavision face assessment
  e.g) mv_face_assessment face.png 0

 ModelTypes are below:
  0:haarcascade_frontalface_alt.xml
  1:haarcascade_frontalface_alt2.xml
  2:haarcascade_frontalface_alt_tree.xml

Change-Id: Idf3998911aab5ba4f9871a639df595634ece37b7
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agochange VQA input/output format 70/256070/1
sangho park [Mon, 29 Mar 2021 05:16:24 +0000 (14:16 +0900)]
change VQA input/output format

 e.g) mv_barcode_assessment barcode.png
 2            # number of barcode
 123456789    # 1'st barcode
 987654321    # 2nd barcode

Change-Id: Id3017af1cf076a3338f66a0fe1c4497bc75c3166
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years ago[MVQA] Add benchmark database schema 89/255989/2
Kwang Son [Fri, 26 Mar 2021 06:20:00 +0000 (15:20 +0900)]
[MVQA] Add benchmark database schema

Change-Id: I6d4ba715283f8960c9434e90207d736d659d22eb
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd mvqa run script and db 87/255887/1
Kwang Son [Thu, 25 Mar 2021 00:49:11 +0000 (09:49 +0900)]
Add mvqa run script and db

Change-Id: I1474eb6889b98b5d1513923974190bf2274af93c
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge "create new test directories for VQA (Visual Quality Assessment)" into tizen_devel
sangho park [Tue, 23 Mar 2021 02:44:32 +0000 (02:44 +0000)]
Merge "create new test directories for VQA (Visual Quality Assessment)" into tizen_devel

3 years agocreate new test directories for VQA (Visual Quality Assessment) 48/255248/6
sangho park [Mon, 15 Mar 2021 22:59:35 +0000 (07:59 +0900)]
create new test directories for VQA (Visual Quality Assessment)

New directories
 - assessment

I plan to work with barcode and add the rest.

Change-Id: I948d53fa60215c8124e5e4a503dc8e4c7989bce0
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agoAdd mvqa script 25/255325/2
Kwang Son [Wed, 17 Mar 2021 02:02:36 +0000 (11:02 +0900)]
Add mvqa script

MVQA(Media Vision Quality Assessment) is for benchmark of vision library
not only test result but also memory footprint, speed, cpu-usage.

Change-Id: Id49ff6e3bae995371a5248a1d42f7157ff338f04
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoChange vector<inference_engine_tensor_buffer> to map<string, inference_engine_tensor_... 53/254953/4
Tae-Young Chung [Thu, 11 Mar 2021 02:32:22 +0000 (11:32 +0900)]
Change vector<inference_engine_tensor_buffer> to map<string, inference_engine_tensor_buffer>

To use inference_engine_tensor_buffer based on input/output layers' name,
change the type from vector to map.

According to the change of inference_engine_layer_property type from vector to map,
related codes are changed.

This commit is related to change of inference-engine-interface, which is
https://review.tizen.org/gerrit/#/c/platform/core/multimedia/inference-engine-interface/+/254892/)

Change-Id: If1b22462fe5c3321600e8b6df22e826cca6eb767
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoMV_INFERENCE_BACKEND_MLAPI with MV_INFERENCE_TARGET_DEVICE_CUSTOM condition only... 47/254947/1
Tae-Young Chung [Thu, 11 Mar 2021 02:19:37 +0000 (11:19 +0900)]
MV_INFERENCE_BACKEND_MLAPI with MV_INFERENCE_TARGET_DEVICE_CUSTOM condition only requires to check model config path

Change-Id: Ie73cfc3488360d8a5cde0c2c52f92900410b4f7c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoChange the initial value of mTargetTypes to MV_INFERENCE_TARGET_DEVICE_CPU 76/254676/1
Tae-Young Chung [Mon, 8 Mar 2021 06:24:48 +0000 (15:24 +0900)]
Change the initial value of mTargetTypes to MV_INFERENCE_TARGET_DEVICE_CPU

mTargetTypes should be MV_INFERENCE_TARGET_DEVICE_CPU.
Otherwise, it is failed to load backend engine with mlapi.

Change-Id: I4b5110308f77b72b8bc7d572e4e8831b4b9466e2
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoRemove patch diff 36/254536/1
Hyunsoo Park [Thu, 4 Mar 2021 08:07:24 +0000 (17:07 +0900)]
Remove patch diff

Change-Id: I884f89c418d9746c42a827085532273cd709e6f2
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years agoMerge branch 'tizen' into tizen_devel
Tae-Young Chung [Thu, 4 Mar 2021 01:10:08 +0000 (10:10 +0900)]
Merge branch 'tizen' into tizen_devel

Change-Id: I09a0df533c6b8ee7f6f9183b69801854641d7507

3 years agoCheck return value of malloc() 52/254252/3 accepted/tizen/unified/20210303.220347 submit/tizen/20210303.020229
Tae-Young Chung [Thu, 25 Feb 2021 05:15:46 +0000 (14:15 +0900)]
Check return value of malloc()

Fix svace issues DEREF_OF_NULL.RET.ALLOC
WGID: 449897, 450084

Change-Id: I20cdd26d4802b0219c897bb8025d30baaaa3c3ee
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd test resource download instruction 15/253415/1
Kwang Son [Wed, 10 Feb 2021 02:02:58 +0000 (11:02 +0900)]
Add test resource download instruction

Change-Id: Ib16d40e224508a4b1f5385fba34cdace556e8a17
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge "Barcode: Add internal unit test case (libcheck)" into tizen
kwang son [Mon, 8 Feb 2021 01:01:45 +0000 (01:01 +0000)]
Merge "Barcode: Add internal unit test case (libcheck)" into tizen

3 years agoBarcode: Add internal unit test case (libcheck) 49/251549/3
Kwang Son [Fri, 15 Jan 2021 01:37:12 +0000 (10:37 +0900)]
Barcode: Add internal unit test case (libcheck)

Mediavision has interactive-based test under test directory but this
patch introduce unit test.

Change-Id: Ida43b9e90bab01ddad2e83e969a2751eedea2113
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoCorrect log level 71/252671/2
Kwang Son [Mon, 1 Feb 2021 08:43:42 +0000 (17:43 +0900)]
Correct log level

Change-Id: I802bd016c3c0ca20f31bd53f2552c935e8beb1ff
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix roi parameter handling 68/251568/2
Kwang Son [Fri, 15 Jan 2021 05:41:01 +0000 (14:41 +0900)]
Fix roi parameter handling

roi for check_source_roi, check_source_roi_quadrangle is optional.

Change-Id: If23a99f5b0b51edfa456476cadacfa875b942194
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoReplace gcc -w option to -Wall 58/251358/2 submit/tizen/20210114.010347
Kwang Son [Wed, 13 Jan 2021 04:25:06 +0000 (13:25 +0900)]
Replace gcc -w option to -Wall

Gcc -Wall option enhance code quailty and delete -w option which is
suppress warning. To clean code successfully follow bugs or warnings are fixed.

 - Cmake : -Wall -> -w and clean duplicate commands
 - Delete line : unused variables
 - strncpy : check null terminator and buffer size
 - exciplit header include
 - printf formatting, sprintf truncation
 - convert unmatched type
 - fix typo

Change-Id: I049de491b2e832aa27900b046984306ea3aeb318
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd gcc Wall option 69/251269/1
Kwang Son [Tue, 12 Jan 2021 05:39:17 +0000 (14:39 +0900)]
Add gcc Wall option

Turn gcc -Wall option on instead of -w.

Change-Id: I30ed93bda037e541b38edd7e0349ab79523b9bb5
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix gcc warning and bug 48/251048/8
Kwang Son [Thu, 7 Jan 2021 07:10:12 +0000 (16:10 +0900)]
Fix gcc warning and bug

 - convert unmatched type
 - include explicit header
 - remove strncpy, snprintf (truncation warning)
 - check parameter validation
 - fix typo

Change-Id: I3d5185016f1b1c48a607cec0898aaa6da76968b2
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd clang-format file 12/251012/2
Kwang Son [Thu, 7 Jan 2021 00:18:46 +0000 (09:18 +0900)]
Add clang-format file

clang-format tool help C/C++ tizen code lint.
This file made by Samsung SE team and need clang-format version 7 or newer.
https://releases.llvm.org/7.0.1/tools/clang/docs/ClangFormatStyleOptions.html

Change-Id: I702b83afdcb0384ba0f202947395d5ef46f911de
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix gcc warning 50/250950/9
Kwang Son [Wed, 6 Jan 2021 05:11:09 +0000 (14:11 +0900)]
Fix gcc warning

 - strncpy to strdup : truncation warning
 - remove scanf : newline already handled

Change-Id: I63e10dbc8d5130835c2723018fee62a641715bc7

3 years agoFix gcc warning 24/250824/1
Kwang Son [Tue, 5 Jan 2021 04:23:31 +0000 (13:23 +0900)]
Fix gcc warning

 - printf formatting
 - sprintf truncation

Change-Id: I2371d525fdbd665a413892993b95769ad16be0fd

3 years agoCleanup cmake script 70/249970/2
Kwang Son [Fri, 18 Dec 2020 04:38:50 +0000 (13:38 +0900)]
Cleanup cmake script

-DTIZEN_DEBUG : tizen specific define (duplicate in spec file also)
CMAKE_CXX_FLAGS : top parent CMakeLists has Wall option. (duplicate)

Change-Id: Ie031820c50dc019c99c10e8f250cfe5b816e7de3
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix gcc warning 81/250181/2
Kwang Son [Tue, 22 Dec 2020 00:54:51 +0000 (09:54 +0900)]
Fix gcc warning

Change-Id: Ia0da73f38c5837a7b92e714167ebb552e370e091
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix gcc warning 84/249984/6
Kwang Son [Fri, 18 Dec 2020 05:47:17 +0000 (14:47 +0900)]
Fix gcc warning

delete line : unused variable.
strncpy : need null value space.

Change-Id: I71781d250828ad8c5ce44a29d0732bc8cb59c962
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge "Removing unnecessary HTML link for feature/privilege" into tizen accepted/tizen/unified/20201221.122650 submit/tizen/20201218.065743 submit/tizen/20210113.040508
Hyunsoo Park [Thu, 17 Dec 2020 08:17:18 +0000 (08:17 +0000)]
Merge "Removing unnecessary HTML link for feature/privilege" into tizen

3 years agoMerge "Revert "Add Pose correction API"" into tizen
kwang son [Thu, 17 Dec 2020 07:53:55 +0000 (07:53 +0000)]
Merge "Revert "Add Pose correction API"" into tizen

3 years agoRevert "Add Pose correction API" 93/249893/1
kwang son [Thu, 17 Dec 2020 07:53:40 +0000 (07:53 +0000)]
Revert "Add Pose correction API"

This reverts commit 9bf593ba1735c09d9bde22dc7a08e6cb79852639.

Reason for revert: <ACR review>

Change-Id: I8fa860433d69dc41b63fbe7193986109af1c7649

3 years agoRevert "Add mv_pose_subtract test" 91/249891/1
kwang son [Thu, 17 Dec 2020 07:52:04 +0000 (07:52 +0000)]
Revert "Add mv_pose_subtract test"

This reverts commit 1acdec169b90496b23cf18224e08516d8d1d3e3a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I98cb7a4d2e1f2cf3d23c02d3eec949476677bb01

3 years agoAdd mv_pose_subtract test 17/249817/3
Kwang Son [Thu, 17 Dec 2020 03:15:45 +0000 (12:15 +0900)]
Add mv_pose_subtract test

Change-Id: I5fe9047902737d1ca2582c886433e7a826c1ed8f
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoRemoving unnecessary HTML link for feature/privilege 58/249858/1
Hyunsoo Park [Thu, 17 Dec 2020 06:03:40 +0000 (15:03 +0900)]
Removing unnecessary HTML link for feature/privilege

Change-Id: I74e0ac0e0535f6bdcc794fdf77d1ecc3663b23fc
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years agoMerge "Add Pose correction API" into tizen
kwang son [Wed, 16 Dec 2020 08:28:24 +0000 (08:28 +0000)]
Merge "Add Pose correction API" into tizen

3 years agoAdd Pose correction API 70/249370/9
Kwang Son [Thu, 10 Dec 2020 23:56:12 +0000 (08:56 +0900)]
Add Pose correction API

mv_pose_subtract function is first part of correction API.
With pose detection, they only get pose similarity score but hard to
know differences between user and bvh skeleton line.
Using mv_pose_subtract help how skeleton should be changed.

Change-Id: I9296c00ae17ef45e3d5b86bafa913ad87974cfc6
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoFix test result typo 71/249371/2
Kwang Son [Fri, 11 Dec 2020 00:08:18 +0000 (09:08 +0900)]
Fix test result typo

Facial -> Pose

Change-Id: Idfa0cf10713005616b59cfd6f4e4287e8f62c7cb
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge branch 'tizen' into tizen_devel
Tae-Young Chung [Fri, 11 Dec 2020 00:17:17 +0000 (09:17 +0900)]
Merge branch 'tizen' into tizen_devel

mv_inference: Fix seg. fault issue at ConfigureInputInfo()

mBackendCapacity will be updated after Bind call
so access to mBackendCapacity shoud be done after the completion
of Binding. This patch makes the Bind callback to be called
before calling ConfigureTargetDevices callback.

3 years agomv_inference: Fix seg. fault issue at ConfigureInputInfo() 83/248583/1 accepted/tizen/unified/20201201.124803 submit/tizen/20201130.075203 submit/tizen/20201130.082755
Inki Dae [Mon, 30 Nov 2020 07:43:22 +0000 (16:43 +0900)]
mv_inference: Fix seg. fault issue at ConfigureInputInfo()

mBackendCapacity will be updated after Bind call
so access to mBackendCapacity shoud be done after the completion
of Binding. This patch makes the Bind callback to be called
before calling ConfigureTargetDevices callback.

Change-Id: If074e4005d03275272dfbce636d947c5d673802a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomv_inference: Fix target device configuration submit/tizen/20201112.235944 submit/tizen/20201125.055433 submit/tizen/20201127.010610
Inki Dae [Fri, 6 Nov 2020 06:21:13 +0000 (15:21 +0900)]
mv_inference: Fix target device configuration

Fixed an issue that target device type isn't updated correctly
when binding a backend engine.

This patch makes the target device configuration to be done
before a backend engine binding is completed because actual target device
configuration to the backend engine is done at binding time.

Change-Id: I24b5779f294abdf8944d4ec0339f1c1282e2156b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomv_inference: Load mlapi specific ini file correctly 29/247329/1 accepted/tizen/unified/20201112.124203 submit/tizen/20201110.032259
Inki Dae [Tue, 10 Nov 2020 02:54:02 +0000 (11:54 +0900)]
mv_inference: Load mlapi specific ini file correctly

inference_engine_mlapi_backend.ini file is specific to MLAPI backend.
So load this file only in case that a given backend type is MLAPI.

Change-Id: I385d73d8571b506f8ffa6937985436fe8e18f96a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomv_inference: Fix target device configuration 22/247022/1
Inki Dae [Fri, 6 Nov 2020 06:21:13 +0000 (15:21 +0900)]
mv_inference: Fix target device configuration

Fixed an issue that target device type isn't updated correctly
when binding a backend engine.

This patch makes the target device configuration to be done
before a backend engine binding is completed because actual target device
configuration to the backend engine is done at binding time.

Change-Id: I24b5779f294abdf8944d4ec0339f1c1282e2156b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomv_inference: Call LoadConfigFile function 34/246334/1 submit/tizen/20201104.021236 submit/tizen/20201109.032237 submit/tizen/20201109.053646
Inki Dae [Wed, 28 Oct 2020 07:33:59 +0000 (16:33 +0900)]
mv_inference: Call LoadConfigFile function

This call updates default tensor filter type for MLAPI
from /etc/inference/inference_engine_mlapi_backend.ini file.

Change-Id: I024160aa01470c52dd579b0a84c9e0052dcd5b7f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoFix landmarks to two dimensions 60/245160/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121630 accepted/tizen/6.0/unified/hotfix/20201103.003858 accepted/tizen/6.0/unified/hotfix/20201103.050748 accepted/tizen/unified/20201007.092257 submit/tizen/20201007.030722 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
Tae-Young Chung [Mon, 5 Oct 2020 03:52:12 +0000 (12:52 +0900)]
Fix landmarks to two dimensions

mv_inference_pose_s composes of number_of_pose and mv_inference_landmark_s.
The mv_inference_landmarks_s should include the pose index as well as landmark index.
So, fix the landmarks from one dimensions to two dimensions.

Change-Id: I68ce167846618487521df5ec92652e944413edf0
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoFix wrong parameter description 63/244563/1
Tae-Young Chung [Mon, 21 Sep 2020 23:22:07 +0000 (08:22 +0900)]
Fix wrong parameter description

output parameters are described as input and output parameters [in,out]
They are all output parameters and should be described as [out].

Change-Id: I5f20fde143c3eaf4188009c2946874c9cfd0ff3a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoRemove unnecessary variables 13/244213/1 accepted/tizen/unified/20200918.123714 submit/tizen/20200916.055038
Tae-Young Chung [Wed, 16 Sep 2020 02:38:17 +0000 (11:38 +0900)]
Remove unnecessary variables

Change-Id: I3063d82902e6024022a22dd821a999eaaf9e0e37
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoMoCap mapping value should be added -1 12/244212/1
Tae-Young Chung [Wed, 16 Sep 2020 01:50:39 +0000 (10:50 +0900)]
MoCap mapping value should be added -1

mv_inference_human_pose_landmark_e starts with value 1.
The MoCap mapping value should start with 1. So,
values should be added -1 to handle the values internally.

Change-Id: I32538230ff8ce85a3709cbdffd0587cdf511c0a9
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoRemove label parameter from mv_inference_pose_landmark_detected_cb 40/244040/3
Tae-Young Chung [Mon, 14 Sep 2020 08:07:16 +0000 (17:07 +0900)]
Remove label parameter from mv_inference_pose_landmark_detected_cb
and add mv_inference_pose_get_label()

In the callback, the label paramter is a type of integer which is
for only one pose. But, depending on models, it can detect multi poses
and provide multi labels for corresponding poses.
So, remove the parameter. Instead, provide new api
mv_inference_pose_get_label().

Change-Id: Ifa1aa2d1c3782c6cefc58560eb08226189a449ea
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoFix description for html link 23/243523/1 accepted/tizen/unified/20200914.131443 submit/tizen/20200911.033103
Tae-Young Chung [Tue, 8 Sep 2020 01:51:03 +0000 (10:51 +0900)]
Fix description for html link

'#' is used for html link of enum item

Change-Id: I3472999c294a504fe37c0223b26b4eafc91b0010
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoFix division or modulo by float zero
Tae-Young Chung [Tue, 25 Aug 2020 09:24:22 +0000 (18:24 +0900)]
Fix division or modulo by float zero

Change-Id: I857aa3fc409ebb1fbaa35262eb771ebb6c92a700
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agomv_inference: Add two tensor buffer types support 69/242369/1 accepted/tizen/unified/20200831.002550 submit/tizen/20200828.025650 submit/tizen/20200828.100528
Inki Dae [Wed, 26 Aug 2020 00:26:58 +0000 (09:26 +0900)]
mv_inference: Add two tensor buffer types support

This patch adds uint32 and int64 types for tensor data allocation.
And also it fixes an issue which allocates tensor buffer with wrong type

Change-Id: I209b23176cc666a8e3417275baad8d8e3a91eaae
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomv_inference: set tensor size of tensor info structure correctly 68/242368/1
Inki Dae [Tue, 25 Aug 2020 23:54:37 +0000 (08:54 +0900)]
mv_inference: set tensor size of tensor info structure correctly

size member of inference_engine_tensor_info structure should contain
tensor element count which can be calculated with height * width * channel count

Change-Id: Ia0eaf676bf996caa26dca58f02d26bc2818eff55
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years ago[Release] capi-media-vision-0.6.0-3 accepted/tizen/unified/20200820.133523 submit/tizen/20200820.044303
Tae-Young Chung [Thu, 20 Aug 2020 04:40:21 +0000 (13:40 +0900)]
[Release] capi-media-vision-0.6.0-3

Merge branch 'tizen_devel' into tizen

3 years ago[doc] Fix typos in header files 41/241341/3
Tae-Young Chung [Wed, 19 Aug 2020 09:17:23 +0000 (18:17 +0900)]
[doc] Fix typos in header files

Remove @ref tags in front of API. @ref tag should be used
for GROUP_NAME in documentation.
API should be ended with parenthesis and
handle should be started with '#'

Change-Id: I129aebf548b82091b073108ecafe59aabb8e8967
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years ago[Testsuite] replace constant number with ARRAY_SIZE() 36/241136/2
Tae-Young Chung [Mon, 17 Aug 2020 23:56:53 +0000 (08:56 +0900)]
[Testsuite] replace constant number with ARRAY_SIZE()

Change-Id: I86615bd708f1a26a7b5463b0db06b2ee6239ebbe
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years ago[Inference] Fix label type of mv_inference_landmark_s from char* to int 35/241135/2
Tae-Young Chung [Fri, 14 Aug 2020 07:42:06 +0000 (16:42 +0900)]
[Inference] Fix label type of mv_inference_landmark_s from char* to int

Change-Id: I1e88e884c164d402391c43214bf9d04d7a463715
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years ago[Inference] Fix bug to faultily parse pose and mocap mapping files 34/241134/1
Tae-Young Chung [Fri, 14 Aug 2020 07:23:17 +0000 (16:23 +0900)]
[Inference] Fix bug to faultily parse pose and mocap mapping files

Change-Id: If2d4de98ae9d626c9939d009e6df2b7a9d6eda4a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoSync to tizen branch
Tae-Young Chung [Wed, 12 Aug 2020 04:36:49 +0000 (13:36 +0900)]
Sync to tizen branch

Release capi-media-vision-0.6.0

Change-Id: I5202d678a2a949d25a34500179135cf82046522f

3 years ago[Inference] Add new api mv_inference_pose_landmark_detect() and mv_pose_compare(... 29/240829/1 accepted/tizen/unified/20200813.015352 submit/tizen/20200812.013733
Tae-Young Chung [Wed, 8 Jul 2020 07:26:25 +0000 (16:26 +0900)]
[Inference] Add new api mv_inference_pose_landmark_detect() and mv_pose_compare() APIs

Change-Id: Ib17ebcd8ea506ebaa84c610bf7c0bbeeb6d27656
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
(cherry picked from commit 6a7f392fed10c1e7d982540fa76d93d4b5a04d9e)

3 years ago[Inference] Add new api mv_inference_pose_landmark_detect() and mv_pose_compare(... 80/238080/8
Tae-Young Chung [Wed, 8 Jul 2020 07:26:25 +0000 (16:26 +0900)]
[Inference] Add new api mv_inference_pose_landmark_detect() and mv_pose_compare() APIs

Change-Id: Ib17ebcd8ea506ebaa84c610bf7c0bbeeb6d27656
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoUpdate backend type description 62/238962/3 submit/tizen/20200810.091902
Inki Dae [Mon, 20 Jul 2020 23:57:15 +0000 (08:57 +0900)]
Update backend type description

Change-Id: I2958ba0638e234a3d0582199f8650de81b03be14
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years ago[testsuite] Remove code block of no use 93/237993/2 submit/tizen/20200713.035755 submit/tizen/20200805.080420
Hyunsoo Park [Tue, 7 Jul 2020 07:57:52 +0000 (16:57 +0900)]
[testsuite] Remove code block of no use

Change-Id: Ic3ae378576cdc3af828eff014bff6c76848b0276
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoMerge "mv_inference: Check if backend and device types are valid or not" into tizen
Inki Dae [Fri, 3 Jul 2020 00:18:13 +0000 (00:18 +0000)]
Merge "mv_inference: Check if backend and device types are valid or not" into tizen

4 years agoFix to return invalid parameter when MV_BARCODE_UNDEFINED is given 17/237617/1 accepted/tizen/unified/20200708.125320 submit/tizen/20200702.015201 submit/tizen/20200706.003724 submit/tizen/20200708.035054
Tae-Young Chung [Thu, 2 Jul 2020 01:37:52 +0000 (10:37 +0900)]
Fix to return invalid parameter when MV_BARCODE_UNDEFINED is given

MV_BARCODE_UNDEFINED is between valid enumeration range, resulting in
generating unexpected barcode image. So, this patch is to prevent the case
and return error when MV_BARCODE_UNDEFINED is used.

Change-Id: I3df9e5069fdd46fa50d1841a1acad5d863b25fc6
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoMerge "[Barcode] Add new barcode types" into tizen submit/tizen/20200701.041707
Tae-Young Chung [Wed, 1 Jul 2020 04:12:57 +0000 (04:12 +0000)]
Merge "[Barcode] Add new barcode types" into tizen

4 years agomv_inference: Check if backend and device types are valid or not 34/237534/1
Inki Dae [Tue, 30 Jun 2020 07:06:23 +0000 (16:06 +0900)]
mv_inference: Check if backend and device types are valid or not

Change-Id: I1b94f4c4ea73d5f6a8d75448011e85bdef56e099
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Revert Pose Estimation API support 91/237191/2 accepted/tizen/unified/20200628.221638 submit/tizen/20200626.050805 submit/tizen/20200626.060446 submit/tizen/20200626.070253
Inki Dae [Fri, 26 Jun 2020 01:25:49 +0000 (10:25 +0900)]
mv_inference: Revert Pose Estimation API support

Pose Estimation API may be changed so this patch
reverts this API support. Pose Estimation API support
will be posted later.

Change-Id: I1aa2bf4bd3cb46a1cf70943e53be47326c79a8e0
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years ago[Barcode] Add new barcode types 40/235640/13
Tae-Young Chung [Mon, 8 Jun 2020 09:01:28 +0000 (18:01 +0900)]
[Barcode] Add new barcode types

Add EAN_2, EAN_5, CODE93, CODABAR, DATABAR, DATABAR_EXPAND types
Note that EAN_2 and EAN_5 are add-on type of EAN_8/13.

Change-Id: I479326775e418460c00e663ffe16ccb9c413712a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agomv_inference: Change in-house runtime backend name
Inki Dae [Tue, 16 Jun 2020 01:30:43 +0000 (10:30 +0900)]
mv_inference: Change in-house runtime backend name

Official name of NNFW is ONE(On-device Neural Engine)
so use it instead of NNFW.

Change-Id: If6b6351d312607c3864d1b1817cc8dcbbd019fb7
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Do not set array size explictly
Inki Dae [Tue, 16 Jun 2020 01:18:46 +0000 (10:18 +0900)]
test: Do not set array size explictly

Change-Id: Ia8b4c081d74bcb3f36e2469dad96df9d64f0ed62
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Fix tensor data type
Inki Dae [Mon, 15 Jun 2020 08:23:37 +0000 (17:23 +0900)]
mv_inference: Fix tensor data type

Output tensor type of Inception v3 model converted to Vivante NPU
is UINT16.

Change-Id: Ic9b568aa42b6e77e63d404688efc59cfa8038266
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Add NNFW backend test case
Inki Dae [Thu, 11 Jun 2020 09:08:39 +0000 (18:08 +0900)]
test: Add NNFW backend test case

Change-Id: I779467941a3cf5c4fc260e4ad7edb4a97f4558e7
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Do not check a config file in case of NNFW backend
Inki Dae [Thu, 11 Jun 2020 09:07:52 +0000 (18:07 +0900)]
mv_inference: Do not check a config file in case of NNFW backend

NNFW backend doesn't need a config file so skip checking this file.

Change-Id: Ia18b2dee23326a2f07398c69829f80eb48cf8553
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: fix coding style based on Tizen C++ Coding Rule
Inki Dae [Thu, 4 Jun 2020 05:24:39 +0000 (14:24 +0900)]
mv_inference: fix coding style based on Tizen C++ Coding Rule

Tizen C++ Coding Rule:
https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide#C.2B.2B_Coding_Style

Change-Id: Ifdb19e21f9ec67784213218a3f2465312aa43dbe
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Change MLAPI backend string to "mlapi"
Inki Dae [Tue, 2 Jun 2020 09:35:36 +0000 (18:35 +0900)]
mv_inference: Change MLAPI backend string to "mlapi"

Change-Id: If2d9490d42b575e4fb8eb3fc0c425ba60ce7680c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Change a backend type from VIVANTE to MLAPI
Inki Dae [Tue, 2 Jun 2020 09:11:36 +0000 (18:11 +0900)]
test: Change a backend type from VIVANTE to MLAPI

Change-Id: I7de30aa2ac3dfdd728ceea000b1977106dead403
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: introduce ARRAY_SIZE macro for code cleanup
Inki Dae [Tue, 2 Jun 2020 05:04:37 +0000 (14:04 +0900)]
test: introduce ARRAY_SIZE macro for code cleanup

Change-Id: I8fe39ea830d22fb80efe2c607c6fd6fcf2d846a4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: move tensor buffer declaration to just before used
Inki Dae [Tue, 2 Jun 2020 04:49:18 +0000 (13:49 +0900)]
mv_inference: move tensor buffer declaration to just before used

Change-Id: I6551c9e280c72a30e08e41872908273aa2541df4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: use static_cast instead of normal cast
Inki Dae [Tue, 2 Jun 2020 04:44:08 +0000 (13:44 +0900)]
mv_inference: use static_cast instead of normal cast

Change-Id: Ie39903c4e85338e2d6b3fa38a692496854747010
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoConsider tensor filter plugin type for NNFW
Inki Dae [Wed, 27 May 2020 07:19:23 +0000 (16:19 +0900)]
Consider tensor filter plugin type for NNFW

This patch adds a new backend type for NNFW support via NNStreamer.

MediaVision will support Vivante NPU and NNFW(in-house NN Runtime)
through ML Single API of NNStreamer.

For this, this patch also adds a new member, backend_type, in
inference_engine_config, which is used to let ML Single API of
NNStreamer know which tensor filter - Vivante NPU or NNFW - should be used.

Change-Id: I5d67fcc36d8999513c05590cccb290d07539ab33
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Consider float16 type of tensor.
Inki Dae [Mon, 1 Jun 2020 01:41:33 +0000 (10:41 +0900)]
mv_inference: Consider float16 type of tensor.

This patch adds float tensor buffer support.
float tensor buffer should be allocated with short type
and release it properly according to the tensor buffer ownership.

Change-Id: I1461ae25e9d6dc5915f72267ea56eac5c4a17f54
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Add Vivante NPU test case
Inki Dae [Mon, 1 Jun 2020 01:39:40 +0000 (10:39 +0900)]
test: Add Vivante NPU test case

Change-Id: Idad920f41a08ceed59cf2900db17aa96971e5f5c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Add Vivante NPU type
Inki Dae [Thu, 21 May 2020 07:38:54 +0000 (16:38 +0900)]
mv_inference: Add Vivante NPU type

This patch adds a new type for Vivante NPU support.

On MediaVision, Vivante NPU will be controlled by
inference-engine-mlapi backend which interfaces with
ML Single API of NNStreamer.

Ps. Vivante NPU needs two binaries for the inference.
    One is Vivante NPU specific model file(xxx.nb), and
other is so library which implements graph creation API
specific to Vivante NPU.

Change-Id: I1ec157d533b70b93953d25b2f74bbbd9adde7a05
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoRevert "Revert "mv_inference: Add Post Estimation feature support""
Inki Dae [Mon, 1 Jun 2020 02:13:46 +0000 (11:13 +0900)]
Revert "Revert "mv_inference: Add Post Estimation feature support""

This reverts commit ddfddc6f6a0a1730558f0874ae3d44a7cbaf5d00.

Change-Id: I8586fe69d258f04b1b6bd0a26085366509c5514d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoRevert "test: drop pose estimation test"
Inki Dae [Tue, 21 Apr 2020 02:50:00 +0000 (11:50 +0900)]
Revert "test: drop pose estimation test"

This reverts commit 72b730ed61c69b4a4957b2173776023e71218b13.

Change-Id: I8a14aaaf9f0cb1505a0cb7f33323524e71b9230b

4 years agowait for displaying barcode detection result 55/235855/1
sangho park [Wed, 10 Jun 2020 08:47:43 +0000 (17:47 +0900)]
wait for displaying barcode detection result

Change-Id: I1549ff8f5b18a9732ce85c553febccff715301d0
Signed-off-by: sangho park <sangho.g.park@samsung.com>
4 years agoChange that default value is one of MV_INFERENCE_DATA_TYPE 59/234059/2 accepted/tizen/unified/20200603.150123 submit/tizen/20200602.011936 submit/tizen/20200602.084841
Tae-Young Chung [Thu, 21 May 2020 09:48:57 +0000 (18:48 +0900)]
Change that default value is one of MV_INFERENCE_DATA_TYPE

MV_INFERENCE_DATA_TYPE supports MV_INFERENCE_DATA_FLOAT32 and
MV_INFERENCE_DATA_UINT8. But in media-vision-config.json,
its default value is '-1'.
It should be one of MV_INFERENCE_DATA_TYPE.
In addition, add the description of MV_INFERENCE_DATA_TYPE

Change-Id: I5debd73de3073715657aed25405d5098bf41a0ed
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoFix typo 61/233661/1 submit/tizen/20200518.054646
Tae-Young Chung [Mon, 18 May 2020 05:29:59 +0000 (14:29 +0900)]
Fix typo

@since_tizem -> @since_tizen

Change-Id: Idfeaf338ad0b8b1f82f81a10429a3cf03b48f422
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoDelete capi-media-vision.so 78/233378/3 submit/tizen/20200515.042825 submit/tizen/20200518.045832 submit/tizen/20200525.012135 submit/tizen/20200528.003104
Kwang Son [Thu, 14 May 2020 07:44:40 +0000 (16:44 +0900)]
Delete capi-media-vision.so

- remove duplicate sources
- change capi-media-vision.rpm to meta pacakge

Problem
capi-media-vision.so is contain duplicate libraries from
sub-packages like libmv_common, libmv_face. So each files
are already included own libraries.
e.g. src/mv_common.c, mv_common/src/mv_common.c are exactly same code.

Change-Id: Id0095e4e64cbafb964d471efd285f2f32ec73711
Signed-off-by: Kwang Son <k.son@samsung.com>
4 years agoAdd capi-media-vision-common.pc 52/233252/1 submit/tizen/20200514.015807
Kwang Son [Wed, 13 May 2020 07:57:17 +0000 (16:57 +0900)]
Add capi-media-vision-common.pc

capi-media-vision-common.pc was not exist

Change-Id: Ida62970d0dc22c0f20fec4b2d708c956a59bbab0
Signed-off-by: Kwang Son <k.son@samsung.com>
4 years agoMerge "Revert "Missing pc file in common-devel"" into tizen
kwang son [Wed, 13 May 2020 07:17:44 +0000 (07:17 +0000)]
Merge "Revert "Missing pc file in common-devel"" into tizen

4 years agoRevert "Missing pc file in common-devel" 39/233239/1
kwang son [Wed, 13 May 2020 07:17:27 +0000 (07:17 +0000)]
Revert "Missing pc file in common-devel"

This reverts commit 511f7c502f13f558b810db83de337bb73c9576e9.

Change-Id: I819969a3ffde681b19344e076522830a9897ce65

4 years agoMerge "Missing pc file in common-devel" into tizen
kwang son [Wed, 13 May 2020 07:08:20 +0000 (07:08 +0000)]
Merge "Missing pc file in common-devel" into tizen

4 years agoMissing pc file in common-devel 29/233229/1
Kwang Son [Wed, 13 May 2020 06:51:57 +0000 (15:51 +0900)]
Missing pc file in common-devel

add pc file

Change-Id: I3acc73a5bcf0eabaaf1bd9f991e0df2e2581c368
Signed-off-by: Kwang Son <k.son@samsung.com>
4 years agoDelete redundant pc.in files 08/233208/1
Kwang Son [Wed, 13 May 2020 04:46:14 +0000 (13:46 +0900)]
Delete redundant pc.in files

pc.in file is template and not modified.
cmake CONFIGURE_FILE copy to own pc files, so pc.in is enough with one file.

Change-Id: I78cbd414ca55e9875a7e95ea552bcb1536246d91
Signed-off-by: Kwang Son <k.son@samsung.com>