platform/core/api/mediavision.git
3 years agoError handling 99/259499/1
Kwang Son [Wed, 9 Jun 2021 05:24:16 +0000 (14:24 +0900)]
Error handling

Change-Id: Ifb5cbb49afd26b564203a10577f48a0004322bf7
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd EfficientDet object detection model 40/259440/4
Kwang Son [Tue, 8 Jun 2021 05:20:12 +0000 (14:20 +0900)]
Add EfficientDet object detection model

Change-Id: I1cae546a2decf1b20169c4b78adcf063a31190ea
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMove mv_inference into mv_machine_learning 01/259301/2
Inki Dae [Fri, 4 Jun 2021 03:46:30 +0000 (12:46 +0900)]
Move mv_inference into mv_machine_learning

Moved mv_inference directory in mv_machine_learning directory.

Mediavision will support not only inference API also learning API.
So it makes a mv_machine_learning directory on top of Mediavision,
and moves existing mv_inference into mv_machine_learning directory.

This is a first step for adding learning API support for Mediavision.

Change-Id: I2d8597064141b2392bfdad0854e08dadd8d98258
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoAdd face detection inference with new BoxInfo, Label, Number outputmetadata
Tae-Young Chung [Wed, 28 Apr 2021 04:45:24 +0000 (13:45 +0900)]
Add face detection inference with new BoxInfo, Label, Number outputmetadata

Support a model without Label and Number as well.
As an example, meta files of google hosted models for face detection
are also added.

Note that face detection is basically identical with object detection except
label is one (face). So, most codes are similar to the inference codes of
object detection.

Change-Id: I58b6e4b9fb4664e5741e9adb05a0d253ce12c5da
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoremove unused lines
sangho park [Mon, 31 May 2021 03:44:53 +0000 (12:44 +0900)]
remove unused lines

Change-Id: If41ae77001d5caedefbdabbdc5f512b2bc950ff1
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agoUpdate testsuite to run google object detection models with meta files
Tae-Young Chung [Tue, 27 Apr 2021 02:16:57 +0000 (11:16 +0900)]
Update testsuite to run google object detection models with meta files

Change-Id: I538039aa055379e7ba308e21d32f97329860441a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoremove warnings
sangho park [Wed, 26 May 2021 22:12:24 +0000 (07:12 +0900)]
remove warnings

Change-Id: I025afa35747a9caaaba855eae15eb48243043b1b
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agoApply object detection inference With new BoxInfo, Label, Number outputmetadata
Tae-Young Chung [Tue, 27 Apr 2021 02:03:32 +0000 (11:03 +0900)]
Apply object detection inference With new BoxInfo, Label, Number outputmetadata

Support a model without Label and Number as well.
A model may not support post-op and it should be decoded
with anchor boxes manually and post-processed such as non-maximum suppression.
In this patch, those are also added.

Change-Id: I9d0dc121910c05add2c0083532d7ff42b573268e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoremove warnings
sangho park [Mon, 24 May 2021 07:47:05 +0000 (16:47 +0900)]
remove warnings

Change-Id: Ib444593a0bf641bb4b0f2a3bd86fb7ea4041c304
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agoDelete unused code comment
Kwang Son [Mon, 24 May 2021 23:23:45 +0000 (08:23 +0900)]
Delete unused code comment

Change-Id: Ic01e34d9d0cd506e3bfcddd3440fe5d7c81af9a9
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoremove warnings
sangho park [Mon, 24 May 2021 05:08:00 +0000 (14:08 +0900)]
remove warnings

Change-Id: Ie93b8373b224b65a2c091ffc35931712b2f5b753
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years agoAdd BoxInfo, Label, Number classes to OutputMetadata for object detection
Tae-Young Chung [Tue, 27 Apr 2021 01:57:38 +0000 (10:57 +0900)]
Add BoxInfo, Label, Number classes to OutputMetadata for object detection

BoxInfo, Label, Number classes are required for object detection.
As an example, meta files of goolge hosted models for object detection
are also added.

Change-Id: I968267c1108a5e79ce9fbadbb5ec0d258fc38f8b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoadd Surveillance assessment
sangho park [Tue, 4 May 2021 02:39:54 +0000 (11:39 +0900)]
add Surveillance assessment

 Usage: mv_surveillance_assessment [OPTION...] SOURCE THRESHOLD
 [VQA-surveillance]

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

 mediavision surveillance assessment
  e.g) mv_surveillance_assessment surveillance.avi 3

  Threshold range is 0 to 10

Change-Id: Ib69e260d8a1a2610c3909093fd3bc085ce35be8d
Signed-off-by: sangho park <sangho.g.park@samsung.com>
3 years ago[MVQA] Add image classification verify
Kwang Son [Mon, 10 May 2021 06:06:57 +0000 (15:06 +0900)]
[MVQA] Add image classification verify

Change-Id: Ie46ccd79ae547de48a71b30278b6e51fca770b8e
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years ago[MVQA] Add image classification
Kwang Son [Fri, 23 Apr 2021 05:52:50 +0000 (14:52 +0900)]
[MVQA] Add image classification

Change-Id: Ie1c0f8bf96c0f0749c50978b8bfd9a9f298061ab
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoChange path of configuration file 65/259165/1 accepted/tizen/unified/20210608.131134 accepted/tizen/unified/20210608.131256 submit/tizen/20210604.014750 submit/tizen/20210604.030216
Hyunsoo Park [Wed, 2 Jun 2021 00:23:17 +0000 (09:23 +0900)]
Change path of configuration file

Change-Id: I957ea08224f9fb7654f0e79520f975cc2a293f08
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years ago[Face/Barcode] Handle Error return 36/258136/7
Hyunsoo Park [Tue, 11 May 2021 06:07:53 +0000 (15:07 +0900)]
[Face/Barcode] Handle Error return

Change-Id: Ia1fcefc4b567fb67924113b64c9ac22ccc6094d9
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years agoRemove MEDIA_VISION_COLORSPACE_INVALID case in convertSourceMV2GrayCV() 07/257907/1 accepted/tizen/unified/20210509.123756 submit/tizen/20210507.005054 submit/tizen/20210513.024256 submit/tizen/20210513.034723 submit/tizen/20210513.045159
Tae-Young Chung [Thu, 6 May 2021 07:37:53 +0000 (16:37 +0900)]
Remove MEDIA_VISION_COLORSPACE_INVALID case in convertSourceMV2GrayCV()

It is one of colorspace which is not supported.
We don't need to separate it from other not supported error cases.

Change-Id: I2a757ed7338897f5638527aac7c2daec01661386
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd new attributes to media-vision-config.json 06/257906/2
Tae-Young Chung [Thu, 6 May 2021 07:23:14 +0000 (16:23 +0900)]
Add new attributes to media-vision-config.json

New attributes as rotation and image enhancement features in barcode detection,

 - MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES
 - MV_BARCODE_DETECT_ATTR_ROTATION_COUNT
 - MV_BARCODE_DETECT_ATTR_ROTATION_DIRECTION
 - MV_BARCODE_DETECT_ATTR_USE_ENHANCEMENT,

should be added to media-vision-config.json

Change-Id: I2d6dcbd215d50e32dd9a43ac31f7e11309aa38a0
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd rotation functionality and CLAHE preprocessing in Barcode module 56/257856/1 submit/tizen/20210506.010918
Tae-Young Chung [Mon, 19 Apr 2021 08:21:56 +0000 (17:21 +0900)]
Add rotation functionality and CLAHE preprocessing in Barcode module

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

3 years agoFix failure of SetInputLayerProperty 45/257645/1
Tae-Young Chung [Thu, 29 Apr 2021 03:50:55 +0000 (12:50 +0900)]
Fix failure of SetInputLayerProperty

If inputMeta isn't used, property is empty resulting to failure of SetInputLayerProperty().
property, which is set to inference engine backends through inference engine interface,
should be set by mConfig, regardless of inputMeta usage.

Change-Id: I4424d3c935288ee66ac3fab966e0e06f13a22e7f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agomv_inference: fix coverity issue 14/257614/1
Inki Dae [Wed, 28 Apr 2021 07:52:16 +0000 (16:52 +0900)]
mv_inference: fix coverity issue

This patch returns an error if mPreProc.Run call failed correctly.

Change-Id: Ie8b75481e773115a1253ac448175da6cd0efa99d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoFix uninitialized Bvh* bvh_ member variable submit/tizen/20210422.072212 submit/tizen/20210428.062907
Tae-Young Chung [Wed, 24 Mar 2021 07:07:06 +0000 (16:07 +0900)]
Fix uninitialized Bvh* bvh_ member variable

Coverity issue(WGID 1192835): Uninitialized pointer field(CWE-457)

Change-Id: I28ee00646f3a70196dcfec08b819657148447a2d
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoRemove vulnerable strcpy() and strcat(), use memcpy() instead.
Tae-Young Chung [Wed, 10 Mar 2021 04:10:15 +0000 (13:10 +0900)]
Remove vulnerable strcpy() and strcat(), use memcpy() instead.

Fix svace issue PROC_USE.VULERABLE
WGID: 456309

Change-Id: Ic547e9faa06aef0fd70def6ad1e829c15b795f69
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoAdd manifest
Kwang Son [Wed, 10 Mar 2021 02:38:24 +0000 (11:38 +0900)]
Add manifest

manifest is used for apply smack rule in RPM packages.

Change-Id: I385cb7ffd3ddce4a552f6c65d9e29685dd862809
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd readme file for MVQA 98/257198/3
Kwang Son [Wed, 21 Apr 2021 04:29:11 +0000 (13:29 +0900)]
Add readme file for MVQA

Change-Id: I21a60641bac220bbb9ca3e34a4134fbaba85aa25
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd Face detection using TFlite 43/257143/1
Kwang Son [Tue, 20 Apr 2021 04:27:39 +0000 (13:27 +0900)]
Add Face detection using TFlite

Change-Id: I62f9de68a9d101525e2fc0df0f5791d2ed1d4f4a
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoMerge "Change load data method" into tizen_devel
kwang son [Mon, 19 Apr 2021 05:22:03 +0000 (05:22 +0000)]
Merge "Change load data method" into tizen_devel

3 years agoChange load data method 56/257056/1
Kwang Son [Tue, 13 Apr 2021 07:36:45 +0000 (16:36 +0900)]
Change load data method

 - Change method to download single data of dataset from NAS server

Change-Id: I69c46a9ab1761bdf80e3ff4913dad93de8afcaef
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoAdd meta files for google hosted models and update testsuite 94/256694/7
Tae-Young Chung [Fri, 9 Apr 2021 08:17:37 +0000 (17:17 +0900)]
Add meta files for google hosted models and update testsuite

Added meta files which support google hosted models for
image classification, and update testsuite to run the models with meta files.

Change-Id: If171f82501cfa3b7246358341d30b547d5f1c701
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoMerge "Output layer names should be updated by a metafile if it exist" into tizen_devel
Tae-Young Chung [Tue, 13 Apr 2021 01:45:28 +0000 (01:45 +0000)]
Merge "Output layer names should be updated by a metafile if it exist" into tizen_devel

3 years agoMerge "Add return false to setTensorBuffer() if parameters are invalid" into tizen_devel
Tae-Young Chung [Tue, 13 Apr 2021 01:44:52 +0000 (01:44 +0000)]
Merge "Add return false to setTensorBuffer() if parameters are invalid" into tizen_devel

3 years agoMerge "[MVQA] Add barcode and face detection" into tizen_devel
kwang son [Mon, 12 Apr 2021 02:23:38 +0000 (02:23 +0000)]
Merge "[MVQA] Add barcode and face detection" into tizen_devel

3 years ago[MVQA] Add barcode and face detection 17/256717/1
Kwang Son [Mon, 12 Apr 2021 01:46:38 +0000 (10:46 +0900)]
[MVQA] Add barcode and face detection

Change-Id: Icb8be5d0eed217b5b06861cd1c21d61030ad79a2
Signed-off-by: Kwang Son <k.son@samsung.com>
3 years agoOutput layer names should be updated by a metafile if it exist 91/256691/2
Tae-Young Chung [Fri, 9 Apr 2021 08:03:17 +0000 (17:03 +0900)]
Output layer names should be updated by a metafile if it exist

Change-Id: I06ae65a07528163cdff0a5fc211e129b6f9607ca
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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

4 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)

4 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>