summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-28mv_inference: Call LoadConfigFile functionsubmit/tizen/20201109.053646submit/tizen/20201109.032237submit/tizen/20201104.021236Inki Dae1-1/+7
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>
2020-10-07Fix landmarks to two dimensionstizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114802submit/tizen_6.0_hotfix/20201102.192502submit/tizen_6.0/20201029.205102submit/tizen/20201007.030722accepted/tizen/unified/20201007.092257accepted/tizen/6.0/unified/hotfix/20201103.050748accepted/tizen/6.0/unified/hotfix/20201103.003858accepted/tizen/6.0/unified/20201030.121630tizen_6.0_hotfixaccepted/tizen_6.0_unified_hotfixTae-Young Chung4-24/+29
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>
2020-09-22Fix wrong parameter descriptionTae-Young Chung2-55/+55
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>
2020-09-16Remove unnecessary variablessubmit/tizen/20200916.055038accepted/tizen/unified/20200918.123714Tae-Young Chung1-15/+3
Change-Id: I3063d82902e6024022a22dd821a999eaaf9e0e37 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-09-16MoCap mapping value should be added -1Tae-Young Chung1-1/+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>
2020-09-16Remove label parameter from mv_inference_pose_landmark_detected_cbTae-Young Chung7-8/+90
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>
2020-09-08Fix description for html linksubmit/tizen/20200911.033103accepted/tizen/unified/20200914.131443Tae-Young Chung1-5/+5
'#' is used for html link of enum item Change-Id: I3472999c294a504fe37c0223b26b4eafc91b0010 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-09-03Fix division or modulo by float zeroTae-Young Chung1-3/+5
Change-Id: I857aa3fc409ebb1fbaa35262eb771ebb6c92a700 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-08-26mv_inference: Add two tensor buffer types supportsubmit/tizen/20200828.100528submit/tizen/20200828.025650accepted/tizen/unified/20200831.002550Inki Dae1-3/+23
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>
2020-08-26mv_inference: set tensor size of tensor info structure correctlyInki Dae1-2/+2
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>
2020-08-20[Release] capi-media-vision-0.6.0-3submit/tizen/20200820.044303accepted/tizen/unified/20200820.133523Tae-Young Chung15-303/+318
Merge branch 'tizen_devel' into tizen
2020-08-20[doc] Fix typos in header filesTae-Young Chung9-219/+219
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>
2020-08-19[Testsuite] replace constant number with ARRAY_SIZE()Tae-Young Chung1-30/+32
Change-Id: I86615bd708f1a26a7b5463b0db06b2ee6239ebbe Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-08-18[Inference] Fix label type of mv_inference_landmark_s from char* to intTae-Young Chung2-3/+3
Change-Id: I1e88e884c164d402391c43214bf9d04d7a463715 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-08-14[Inference] Fix bug to faultily parse pose and mocap mapping filesTae-Young Chung5-56/+64
Change-Id: If2d4de98ae9d626c9939d009e6df2b7a9d6eda4a Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-08-12Sync to tizen branchTae-Young Chung3-7/+45
Release capi-media-vision-0.6.0 Change-Id: I5202d678a2a949d25a34500179135cf82046522f
2020-08-12[Inference] Add new api mv_inference_pose_landmark_detect() and ↵submit/tizen/20200812.013733accepted/tizen/unified/20200813.015352Tae-Young Chung19-29/+2839
mv_pose_compare() APIs Change-Id: Ib17ebcd8ea506ebaa84c610bf7c0bbeeb6d27656 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com> (cherry picked from commit 6a7f392fed10c1e7d982540fa76d93d4b5a04d9e)
2020-08-11[Inference] Add new api mv_inference_pose_landmark_detect() and ↵Tae-Young Chung19-29/+2839
mv_pose_compare() APIs Change-Id: Ib17ebcd8ea506ebaa84c610bf7c0bbeeb6d27656 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-07-21Update backend type descriptionsubmit/tizen/20200810.091902Inki Dae1-0/+17
Change-Id: I2958ba0638e234a3d0582199f8650de81b03be14 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-07-08[testsuite] Remove code block of no usesubmit/tizen/20200805.080420submit/tizen/20200713.035755Hyunsoo Park1-7/+4
Change-Id: Ic3ae378576cdc3af828eff014bff6c76848b0276 Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2020-07-03Merge "mv_inference: Check if backend and device types are valid or not" ↵Inki Dae1-0/+24
into tizen
2020-07-02Fix to return invalid parameter when MV_BARCODE_UNDEFINED is givensubmit/tizen/20200708.035054submit/tizen/20200706.003724submit/tizen/20200702.015201accepted/tizen/unified/20200708.125320Tae-Young Chung1-2/+2
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>
2020-07-01Merge "[Barcode] Add new barcode types" into tizensubmit/tizen/20200701.041707Tae-Young Chung10-23/+140
2020-06-30mv_inference: Check if backend and device types are valid or notInki Dae1-0/+24
Change-Id: I1b94f4c4ea73d5f6a8d75448011e85bdef56e099 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: Revert Pose Estimation API supportsubmit/tizen/20200626.070253submit/tizen/20200626.060446submit/tizen/20200626.050805accepted/tizen/unified/20200628.221638Inki Dae7-479/+3
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>
2020-06-26[Barcode] Add new barcode typesTae-Young Chung10-23/+140
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>
2020-06-26mv_inference: Change in-house runtime backend nameInki Dae4-9/+9
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>
2020-06-26test: Do not set array size explictlyInki Dae1-35/+35
Change-Id: Ia8b4c081d74bcb3f36e2469dad96df9d64f0ed62 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: Fix tensor data typeInki Dae1-3/+3
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>
2020-06-26test: Add NNFW backend test caseInki Dae1-5/+84
Change-Id: I779467941a3cf5c4fc260e4ad7edb4a97f4558e7 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: Do not check a config file in case of NNFW backendInki Dae1-1/+2
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>
2020-06-26mv_inference: fix coding style based on Tizen C++ Coding RuleInki Dae8-4619/+4420
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>
2020-06-26mv_inference: Change MLAPI backend string to "mlapi"Inki Dae1-2/+2
Change-Id: If2d9490d42b575e4fb8eb3fc0c425ba60ce7680c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26test: Change a backend type from VIVANTE to MLAPIInki Dae3-3/+3
Change-Id: I7de30aa2ac3dfdd728ceea000b1977106dead403 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26test: introduce ARRAY_SIZE macro for code cleanupInki Dae1-12/+13
Change-Id: I8fe39ea830d22fb80efe2c607c6fd6fcf2d846a4 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: move tensor buffer declaration to just before usedInki Dae1-2/+4
Change-Id: I6551c9e280c72a30e08e41872908273aa2541df4 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: use static_cast instead of normal castInki Dae1-38/+38
Change-Id: Ie39903c4e85338e2d6b3fa38a692496854747010 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26Consider tensor filter plugin type for NNFWInki Dae2-0/+3
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>
2020-06-26mv_inference: Consider float16 type of tensor.Inki Dae1-1/+28
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>
2020-06-26test: Add Vivante NPU test caseInki Dae1-5/+104
Change-Id: Idad920f41a08ceed59cf2900db17aa96971e5f5c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26mv_inference: Add Vivante NPU typeInki Dae2-0/+4
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>
2020-06-26Revert "Revert "mv_inference: Add Post Estimation feature support""Inki Dae6-0/+238
This reverts commit ddfddc6f6a0a1730558f0874ae3d44a7cbaf5d00. Change-Id: I8586fe69d258f04b1b6bd0a26085366509c5514d Signed-off-by: Inki Dae <inki.dae@samsung.com>
2020-06-26Revert "test: drop pose estimation test"Inki Dae1-3/+260
This reverts commit 72b730ed61c69b4a4957b2173776023e71218b13. Change-Id: I8a14aaaf9f0cb1505a0cb7f33323524e71b9230b
2020-06-10wait for displaying barcode detection resultsangho park1-0/+1
Change-Id: I1549ff8f5b18a9732ce85c553febccff715301d0 Signed-off-by: sangho park <sangho.g.park@samsung.com>
2020-05-22Change that default value is one of MV_INFERENCE_DATA_TYPEsubmit/tizen/20200602.084841submit/tizen/20200602.011936accepted/tizen/unified/20200603.150123Tae-Young Chung2-1/+6
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>
2020-05-18Fix typosubmit/tizen/20200518.054646Tae-Young Chung1-1/+1
@since_tizem -> @since_tizen Change-Id: Idfeaf338ad0b8b1f82f81a10429a3cf03b48f422 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2020-05-15Delete capi-media-vision.sosubmit/tizen/20200528.003104submit/tizen/20200525.012135submit/tizen/20200518.045832submit/tizen/20200515.042825Kwang Son9-2867/+22
- 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>
2020-05-13Add capi-media-vision-common.pcsubmit/tizen/20200514.015807Kwang Son2-24/+37
capi-media-vision-common.pc was not exist Change-Id: Ida62970d0dc22c0f20fec4b2d708c956a59bbab0 Signed-off-by: Kwang Son <k.son@samsung.com>
2020-05-13Merge "Revert "Missing pc file in common-devel"" into tizenkwang son1-1/+0
2020-05-13Revert "Missing pc file in common-devel"kwang son1-1/+0
This reverts commit 511f7c502f13f558b810db83de337bb73c9576e9. Change-Id: I819969a3ffde681b19344e076522830a9897ce65