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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
Tae-Young Chung [Thu, 4 Mar 2021 01:10:08 +0000 (10:10 +0900)]
Merge branch 'tizen' into tizen_devel
Change-Id: I09a0df533c6b8ee7f6f9183b69801854641d7507
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>
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>
kwang son [Mon, 8 Feb 2021 01:01:45 +0000 (01:01 +0000)]
Merge "Barcode: Add internal unit test case (libcheck)" into tizen
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>
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>
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>
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>
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>
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>
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>
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
Kwang Son [Tue, 5 Jan 2021 04:23:31 +0000 (13:23 +0900)]
Fix gcc warning
- printf formatting
- sprintf truncation
Change-Id: I2371d525fdbd665a413892993b95769ad16be0fd
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>
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>
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>
Hyunsoo Park [Thu, 17 Dec 2020 08:17:18 +0000 (08:17 +0000)]
Merge "Removing unnecessary HTML link for feature/privilege" into tizen
kwang son [Thu, 17 Dec 2020 07:53:55 +0000 (07:53 +0000)]
Merge "Revert "Add Pose correction API"" into tizen
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
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
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>
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>
kwang son [Wed, 16 Dec 2020 08:28:24 +0000 (08:28 +0000)]
Merge "Add Pose correction API" into tizen
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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
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)
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>
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>
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>
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
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>
Tae-Young Chung [Wed, 1 Jul 2020 04:12:57 +0000 (04:12 +0000)]
Merge "[Barcode] Add new barcode types" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
kwang son [Wed, 13 May 2020 07:17:44 +0000 (07:17 +0000)]
Merge "Revert "Missing pc file in common-devel"" into tizen
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
kwang son [Wed, 13 May 2020 07:08:20 +0000 (07:08 +0000)]
Merge "Missing pc file in common-devel" into tizen
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>
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>
Inki Dae [Fri, 8 May 2020 08:08:11 +0000 (17:08 +0900)]
mv_inference: handle an exception case to class creation correctly
Change-Id: Iafaecb467c149479eabdc218eab2e3223c6a374c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 8 May 2020 07:56:05 +0000 (16:56 +0900)]
mv_inference: clean up class member initialization
Change-Id: Ic8626debc2149fdc4b09e38b2d004e3728cf7e7a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 8 May 2020 06:32:24 +0000 (15:32 +0900)]
mv_inference: use basic constructor function
InferenceEngineCommon class doesn't provide parameter
required constructor functions anymore so use basic
constructor function.
Change-Id: I58be39c2a7e70e362b375d54548e142847787092
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 8 May 2020 06:05:06 +0000 (15:05 +0900)]
mv_inference: use initializer list
This patch just cleans up a member initialization of Inference
class by using initializer list.
Change-Id: Ib9dc6470fdfef271101316a34f8f18caa29d6f2c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 8 May 2020 05:02:11 +0000 (14:02 +0900)]
mv_inference: drop deprecated internal API
This patch drops deprecated internal API below,
- mv_inference_configure_input_node_name_open
- mv_inference_configure_output_node_names_open
- and relevant callback functions.
No users to use these API anymore.
Change-Id: Id77b44c8ce781ee3b8fed2e44c8c6311180de2db
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Hyunsoo Park [Thu, 7 May 2020 11:06:07 +0000 (20:06 +0900)]
Fix UNINIT.CTOR svace issue
Change-Id: I6363096e866de0b2b214235e57d2af069d0fa61f
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>