Inki Dae [Tue, 25 Feb 2020 02:52:37 +0000 (11:52 +0900)]
test: Add Post Estimation test
This patch adds post estimation test code,
and ARMNN backend support of post estimation inference.
Change-Id: I1d433e36ba18b19678b87e0315ea4a21cff56f54
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 25 Feb 2020 02:51:53 +0000 (11:51 +0900)]
mv_inference: Add Post Estimation feature support
Change-Id: Ic7308d722e649d96bb29ed65e28808b101dc2c11
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 24 Feb 2020 07:03:21 +0000 (16:03 +0900)]
test: Add face detection with ARMNN
Change-Id: I66ad64dcc3861e37362422a5609ac798b04dd705
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 24 Feb 2020 06:35:23 +0000 (15:35 +0900)]
test: Add object detection test with ARMNN
Change-Id: I29af9639a5b5ccae7bc67acae6cb7a74cfe437b5
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 24 Feb 2020 05:36:44 +0000 (14:36 +0900)]
mv_inference: Introduce FillOutputResult function
This patch introduces FillOutResult function which gets result from
output tensor buffers. This function is used commonly for all other
scenarios - image classification, object detection, face detection,
and facial landmark detection.
Change-Id: I494f2924094d409939053753324a6a8485673664
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 20 Feb 2020 06:57:25 +0000 (15:57 +0900)]
mv_inference: Handle exception cases to tensor buffer allocations
Change-Id: Iaf95468c07ba6b80f175f57d7c674c6385bff6b8
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 20 Feb 2020 06:08:53 +0000 (15:08 +0900)]
mv_inference: Add quantized model inference support
This patch adds quantized model inference support.
In case of quantized model, output tensor buffer contains uint8 values
between 0 and 255 so we need to convert the values to floating point ones
between 0 and 1.
Change-Id: I814b236370608d29c9b0f82f298d221851721921
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 18 Feb 2020 01:55:38 +0000 (10:55 +0900)]
mv_inference: Add the use of user desired input and output layers
Change-Id: I3472071e96df8ffde2cf5a6c6b6af45e1dbd9e66
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 14 Feb 2020 04:26:58 +0000 (13:26 +0900)]
mv_inference: Call Run callback with output tensor buffers
This patch passes output tensor buffers - which will be
allocated by either a backend engine if the backend engine is able
to allocate output tensor buffers or Inference framework if
the backend engine isn't able to allocate the buffers - to
the backend engine at Run callback for the inference.
Change-Id: I9fd55db1c6c413b7e139733f1e39ccde1100011a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 13 Feb 2020 07:37:30 +0000 (16:37 +0900)]
mv_inference: Pass input tensor buffers and consider multiple tensors
This patch sends input tensor buffers allocated by Inference layer
to a backend engine for the inference, and considers using multiple
tensors. As for this, it calls new callbacks and drops old ones.
Change-Id: I4156c88bd5f18b0ba36b186ca08e3d4c04ceada3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 13 Feb 2020 06:47:51 +0000 (15:47 +0900)]
mv_inference: fix undefined reference error
Change-Id: I09bdc03989a7f361ae5753771c0a09e369fae3bc
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 12 Feb 2020 04:35:44 +0000 (13:35 +0900)]
mv_inference: Pass a generic channel value to backend engine
mMatType has OpenCV specific value so we shouldn't pass
the specific value to a backend engine but a generic one, mCh, instead.
Change-Id: I3d92a0f636b55c2529202d57f7ded63c6225e37b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 12 Feb 2020 04:18:29 +0000 (13:18 +0900)]
mv_inference: Use model_format instead of key->second
Change-Id: Ib306b0dddc945ad43effa3b7eef3eaebc3e2901c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 12 Feb 2020 02:51:34 +0000 (11:51 +0900)]
mv_inference: Use InferenceEngineCommon instead of InferenceEngineVision
With this patch, we can remove everything about InferenceEngineVision.
Change-Id: If2edac9e6113a55c89bbd4535b131b55a8dbb3f5
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 12 Feb 2020 02:35:21 +0000 (11:35 +0900)]
mv_inference: Place OpenCV dependent code from inference-engine-vision
This patch moves OpenCV dependent code from inference-engine-vision layer
to Inference layer. Now we can remove all inference-engine-vision relevent
files - inference_engine_vision_impl.cpp and inference_engine_vision_impl.h
Change-Id: I7750a4b8b85aba8a2d220fb4ee88f7007d6d5939
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 11 Feb 2020 05:54:32 +0000 (14:54 +0900)]
mv_inference: Detect model file fomat and notify a backend the format
This patch detects a given model file, and contains proper model file
information a given vector. And then it notifies the model file format
a backend engine with the vector so that the backend engine handles
the model file correctly.
Change-Id: Id1fa75ee5553e099ff3d2800912aa41fb5f3ef90
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 10 Feb 2020 06:26:35 +0000 (15:26 +0900)]
mv_inference: Check for inference target devices
This patch checks if a given backend engine supports a given
interface target device/devices for the inference by calling
GetBackendCapacity callback.
Change-Id: Ifd5eaa2fbbc5aeb9af0769fb5f7bfb16c2525dbe
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 7 Feb 2020 06:47:29 +0000 (15:47 +0900)]
mv_inference: Consider one more inference target devices
This patch makes inference to be performed on one more devices.
And also it separates getting backend type and target device types
so that unnecessary configuration isn't requested.
Change-Id: I3bacefa7e8495c90c278df8dcc0241123f6d325f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 7 Feb 2020 02:48:07 +0000 (11:48 +0900)]
mv_inference: separate binding a backend engine and loading model files
This patch makes model files to be changed in runtime without reloading
a backend engine library.
With this patch, behavior of the two C-API, mv_inference_configure() and
mv_inference_prepare(), will be changed like below,
mv_inference_configure()
. Create inference-engine-common class object, pass a backend type
to the inference-engine-common object, and then load its corresponding
backend library.
mv_inference_prepare()
. Pass configuration values required for inference engine backend to load
given model files, and request the inference engine backend to load
the model files.
Change-Id: Ibe2bde17c9aae71c8e0850b5901e963368fed00f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 6 Feb 2020 01:18:39 +0000 (10:18 +0900)]
mv_inference: release a backend engine
This patch releases a backend engine when Inference object
is deconstructed.
Change-Id: I819d09bff94a231618565b2df85f8cf257d6886d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 5 Feb 2020 08:28:51 +0000 (17:28 +0900)]
mv_inference: pass inference target device correctly
Change-Id: If8c901555bbb8555bac8bf9f67a182f442cdbfa6
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 5 Feb 2020 07:06:28 +0000 (16:06 +0900)]
mv_inference: use new Load callback and drop Init callback
This patch replaces Load callback with a new version and
drops callback because what Init callback does is just to
bind a backend engine library with a given backend name so
we can change the Init callback to BindBackend to clarify.
Change-Id: I31bc6a0d8f753ba52babe721f3e38181487b191b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 4 Feb 2020 11:06:52 +0000 (20:06 +0900)]
inference: use a new InferenceEngineVision constructor
Change-Id: I6bb875140a74e42d1f6ac646a0e4ec1b75c19f11
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 14 Jan 2020 08:55:22 +0000 (17:55 +0900)]
test: add ARMNN test case
Change-Id: If842e093de3990e4ff5eb782c33d2cb52e5cca3f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 14 Jan 2020 08:54:56 +0000 (17:54 +0900)]
mv_inference: add ARMNN backend support
Change-Id: I8007999dad1481c1662d5aad8ecb977f1c7135ef
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Tae-Young Chung [Tue, 7 Apr 2020 03:18:27 +0000 (12:18 +0900)]
Migration OpenCV-4.2.0
Change-Id: Ib027c2d6864adf8d13350a372409dce4ea5214bf
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
sangho park [Fri, 27 Mar 2020 05:07:22 +0000 (14:07 +0900)]
improve testsuite
- apply argp
- change 'time interval' to configurable value
Change-Id: Ib3df64e4eaf45a61d0c0efca9a53ff1b165df64b
Signed-off-by: sangho park <sangho.g.park@samsung.com>
sangho park [Wed, 25 Mar 2020 11:26:08 +0000 (20:26 +0900)]
improve testsuite
- apply ncurses
- add auto-test mode
Change-Id: I52988612e1a9bc4326df372f4a17cb25fc63911f
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Kwanghoon Son [Mon, 23 Mar 2020 02:02:39 +0000 (11:02 +0900)]
Fix error handling
problem
- line 464 : overwrite error code with destory engine function.
- skip error
Change-Id: Idec4a23bc958f52aab682b87227b3c8568af3b59
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Kwanghoon Son [Fri, 20 Mar 2020 00:32:30 +0000 (09:32 +0900)]
Error return handling
mv_engine_config_set error was ignored.
when error case, clean up resource and return error.
Change-Id: I8aadb5c696ae7d27240f94200a4ab63d9b905719
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Kwanghoon Son [Tue, 10 Mar 2020 06:38:39 +0000 (15:38 +0900)]
SVACE bug fix
inference_test_suite.c
- STRAY_SEMICOLON
face_test_suite.c
- CHECKED_RETURN
Change-Id: I2b7b4d9c35cbd1d724eed30b9794b4f19a4f4a84
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Tae-Young Chung [Fri, 6 Mar 2020 00:48:18 +0000 (09:48 +0900)]
Keep OpenCV3's pc ifle name and data path
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 6 Mar 2020 00:45:48 +0000 (09:45 +0900)]
Merge branch 'tizen_opencv_upgrade' of ssh://review.tizen.org:29418/platform/core/api/mediavision into tizen_opencv_upgrade
Kwanghoon Son [Tue, 25 Feb 2020 01:54:10 +0000 (10:54 +0900)]
Coverity bug fix STRAY_SEMICOLON
fix with delete semicolon in if statement.
Change-Id: I16528528a84b3f514c603bb77d76442fe58c1e2c
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
kwang son [Tue, 25 Feb 2020 01:39:11 +0000 (01:39 +0000)]
Merge "Delete duplicate mv_private.c" into tizen
Kwanghoon Son [Thu, 20 Feb 2020 01:38:31 +0000 (10:38 +0900)]
Delete duplicate mv_private.c
mv_common library already has mv_private.c
other module will link mv_common.
Change-Id: Ic2aaf80027de6836ba5efea6080e2a43829bcadc
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
kwang son [Thu, 20 Feb 2020 01:37:41 +0000 (01:37 +0000)]
Merge "Fix printf specifier" into tizen
Kwanghoon Son [Thu, 20 Feb 2020 01:16:17 +0000 (10:16 +0900)]
Fix printf specifier
unexpected format specifier in printf interceptor: %
Change-Id: I76f14c094edbf349dd76066ccf2ca23f3e02e377
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
kwang son [Wed, 19 Feb 2020 07:18:10 +0000 (07:18 +0000)]
Merge "Fix wrong api call mv_engine_config_get_string_attribute" into tizen
Tae-Young Chung [Wed, 19 Feb 2020 03:26:04 +0000 (12:26 +0900)]
Fix coverity MISSING_COMMA issue
Change-Id: I33e33ea914cd73f29aba78ae801f38f6792c6dec
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwanghoon Son [Wed, 19 Feb 2020 00:36:01 +0000 (09:36 +0900)]
Fix wrong api call mv_engine_config_get_string_attribute
Problem
print crack string value.
API mv_engine_config_get_string_attribute is designed to get pointer
parameter(malloc inside). Change to pointer and free after print value.
Change-Id: Ifc9833cf810848f9b7cd5332f5927d0f6f08a187
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Tae-Young Chung [Tue, 18 Feb 2020 06:35:40 +0000 (15:35 +0900)]
Fix coverity Stray semicolon issues
Change-Id: I8c3a504aaf17bd804d0108263698161275cc916b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 11 Feb 2020 08:32:47 +0000 (17:32 +0900)]
Fix coverity RESOURCE_LEAK issues
CID: 1087540, 1087562, 1087564, 1087571
(* WGID 51465 of SVACE is ignored)
Change-Id: I48eea2aa656cf1c78f09b0c732de01d9340549f5
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 11 Feb 2020 04:08:44 +0000 (04:08 +0000)]
Merge "Fix DEREF_OF_NULL.RET.PROC.STAT checker issue" into tizen
Tae-Young Chung [Thu, 6 Feb 2020 11:06:23 +0000 (20:06 +0900)]
Fix DEREF_OF_NULL.RET.PROC.STAT checker issue
WGID 410845
Change-Id: Ied8ccc820da1b28a13f1cadaa6ad4b204c3ff924
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Inki Dae [Tue, 4 Feb 2020 06:36:39 +0000 (15:36 +0900)]
mv_inference: drop commented line
Change-Id: If3c6d51a2ff9c87b6c703b5274cc419dabd5f2d0
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Kwanghoon Son [Mon, 20 Jan 2020 00:28:30 +0000 (09:28 +0900)]
Fix debug mode build option typo
Debug mode build option --w is unrecognized.
c++: error: unrecognized command line option '--w'
change to '-w' option for inhibit all warning messages.
Change-Id: I18fd365b1e09328112522f259b6afb672ef4566a
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Kwanghoon Son [Wed, 22 Jan 2020 06:37:04 +0000 (15:37 +0900)]
Revert "Fix debug mode build option typo"
This reverts commit
f35a2f4e8e201c767404b5a4980e63bcccab634d.
Kwanghoon Son [Mon, 20 Jan 2020 00:28:30 +0000 (09:28 +0900)]
Fix debug mode build option typo
Debug mode build option --w is unrecognized.
c++: error: unrecognized command line option '--w'
change to '-w' option for inhibit all warning messages.
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
Tae-Young Chung [Thu, 9 Jan 2020 08:23:05 +0000 (17:23 +0900)]
Fix(#2) build error due to toolchain upgrade (gcc6->gcc9)
Error caused by -Wno-deprecated-copy, -Wcatch-value, -Wstringop-truncation are fixed.
Change-Id: I26405d9942f8b8803e2e9f0b2d8f5a984e69da4c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 2 Jan 2020 08:28:05 +0000 (17:28 +0900)]
Migration with OpenCV-4.2.0
Change-Id: Ib547582b318c1d33bc0e4d9579d9f64c30685f76
Tae-Young Chung [Thu, 2 Jan 2020 08:23:01 +0000 (17:23 +0900)]
migration opencv-4.2.0
Change-Id: I12356a6de66a26986bf2539e406cc364fc4a121a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 26 Dec 2019 06:48:51 +0000 (15:48 +0900)]
Fix build error due to toolchain upgrade (gcc6->gcc9)
Error is caused by "call of overloaded 'abs(size_t)' is ambiguous"
Change-Id: I96e14a791203931767e3e32b64d7b45a50c56430
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Hyunsoo Park [Mon, 2 Dec 2019 04:58:07 +0000 (13:58 +0900)]
Update feature element reference link
Change-Id: Id90afaef09b9232df2404b653f78f1553c217bab
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Hyunsoo Park [Fri, 29 Nov 2019 06:08:32 +0000 (15:08 +0900)]
Change reference link.
Developer.tizen.org is change docs.tizen.org.
So i change it following policy.
Change-Id: I6ab5ef3ced64f021b036fc25db17168bab1542e3
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Tae-Young Chung [Mon, 4 Nov 2019 07:15:53 +0000 (16:15 +0900)]
Fix API description issues
Change-Id: I5d45d5ff5fa3505f00e07080b033b99500842dba
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Hyunsoo Park [Wed, 23 Oct 2019 02:48:35 +0000 (11:48 +0900)]
Fix API description for doxygen.
Change-Id: Ia26568fd926d76867730842f19886c632f84665c
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Tae-Young Chung [Mon, 14 Oct 2019 01:44:17 +0000 (10:44 +0900)]
Add MV_ENGINE_CONFIG_ATTR_TYPE_ARRAY_STRING to mv_config_attribute_type_e
Change-Id: Iae611fdc07aa982be3c3b988c27c50db7240633e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Hyunsoo Park [Wed, 9 Oct 2019 23:40:18 +0000 (23:40 +0000)]
Merge "Change ini file location." into tizen
Tae-Young Chung [Mon, 7 Oct 2019 05:52:10 +0000 (14:52 +0900)]
Update mediavision_doc.h #2
Change-Id: I5f0af38c82ea8e38e10ceb684d8cf2cd5048d853
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Hyunsoo Park [Fri, 4 Oct 2019 08:26:55 +0000 (17:26 +0900)]
Change ini file location.
Change-Id: I15f29b8b971b1f604510c1dbb07a898fb83bf926
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Tae-Young Chung [Wed, 2 Oct 2019 07:52:46 +0000 (16:52 +0900)]
Fix NO_CATCH.LIBRARY issue by security check
Change-Id: I260628690969a6e75b1515d38df1c66807204ce3
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 2 Oct 2019 07:24:48 +0000 (16:24 +0900)]
Update mediavision_doc.h
Change-Id: Ib338a10af9b937f24086789e7d82f35603b0515f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 2 Oct 2019 02:13:12 +0000 (11:13 +0900)]
Fix resource leak issues and svace issues
CID 1087571, 1087654, 1087562, 1087542, 1087540
Change-Id: Ia054980b6d7e76bef5895f48e1c89f6d3d1ef975
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 26 Jul 2019 05:16:22 +0000 (14:16 +0900)]
Add an inference module with new APIs
Representative apis are:
1. mv_inference_image_classify()
2. mv_inference_object_detect()
3. mv_inference_face_detect()
4. mv_inference_facial_landmark_detect()
These are high-lever APIs based on dnn based vision inference functions,
such as image classification, object detection, and face and its landmark detection.
Change-Id: I9afd4dd5a58613e272a844e6f329230bf265cde6
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Hyunsoo Park [Wed, 31 Jul 2019 06:41:37 +0000 (15:41 +0900)]
Move mutex unlock macro of '__globalGuard' to end of function.
It is safe to call AsyncTracker destroyer after all the work of pthread has been completed.
So i move to unlock macro to proper position.
Change-Id: I76aa7dcd6d7abe1de060e4bf252579cfe1e9be11
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
sangho park [Mon, 1 Jul 2019 10:47:59 +0000 (19:47 +0900)]
Make a gcov package for measuring coverage easier
Change-Id: I6f9935592dea0f480b8d3ecee974c051300d72f6
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Tae-Young Chung [Fri, 19 Apr 2019 05:42:15 +0000 (14:42 +0900)]
Fix build break with aarch64 and x86_64
Change-Id: I554d8eeb09f989c57bf8e9fc004bf0d9e1f28100
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 18 Apr 2019 08:29:41 +0000 (17:29 +0900)]
Fix mv_source_fill_by_packet() when multiple bos are given
To get pointer address of planes from media packet,
replace media_packet_get_buffer_data_ptr() with media_packet_get_video_plane_data_ptr().
Change-Id: I11e80220bc73d303dce71227d7e0947dc668c44a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 25 Jan 2019 07:20:54 +0000 (07:20 +0000)]
Revert "Fix typo"
This reverts commit
aaf491613f59fa3379075a7d882780e74cad346a.
Change-Id: Ic265af051ff2c7324d82445b9a4cff890945efb7
Tae-Young Chung [Thu, 24 Jan 2019 02:41:02 +0000 (11:41 +0900)]
Fix typo
Change-Id: I9d8d9b48fd91d018257976c0fcd073c49133bca3
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 26 Dec 2018 05:24:06 +0000 (14:24 +0900)]
Symbolic link capi-system-info explicitly to libmv_common.so
This patch makes mv_common to be clear symbolic link relation.
Change-Id: I25f507bbac81723b4d73d97729849a1f719e42a6
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Mon, 24 Dec 2018 07:59:53 +0000 (16:59 +0900)]
Fix failure to record video results in testsuites
Change avmux_avi to avimux in video_helper in testsuite.
Change-Id: I565c8f59f6bd1ac42eaa4fde57cf023faff25d37
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
sangho park [Tue, 27 Nov 2018 02:03:49 +0000 (11:03 +0900)]
add -lmv_common to pkg-config files
Change-Id: I05d575e0e38d10c2187730ab46723cd03f3aa6da
Signed-off-by: sangho park <sangho.g.park@samsung.com>
hj kim [Thu, 1 Nov 2018 01:18:16 +0000 (10:18 +0900)]
Remove dlog from pc_dependents
Change-Id: Iaa7417463be8a1a23c2d554aa82c556de4eb62d0
Tae-Young Chung [Tue, 2 Oct 2018 08:07:13 +0000 (17:07 +0900)]
Add null check after g_array_new() in image_test_suite.c
Change-Id: Idfc72e069489adfe0d625b518d7a00588ac48c1e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
SeokHoon Lee [Mon, 17 Sep 2018 07:03:18 +0000 (16:03 +0900)]
Add gcov environment
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: If373936e91d972b36763afbfb4d33a36427213b9
Tae-Young Chung [Wed, 12 Sep 2018 09:01:03 +0000 (18:01 +0900)]
Add codes handling exception thrown by OpenCV
In the worst case, the memory size over the limitation is required
and then OutOfMemory exception is thrown, resulting crash.
This patch handles the exception and prevents crash.
Change-Id: Ie9bb0346cf53bc59d8a9da7e4758c2011cda9f1e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 17 Aug 2018 08:48:33 +0000 (17:48 +0900)]
Remove unnecessary log printing while face detection
While face detection, check engine_config and print logs even though engine_config is null.
This patch modify those parts.
Change-Id: I07b664268b64d68d2638f61cc9d74be33827b3c5
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
sangho park [Wed, 8 Aug 2018 02:29:26 +0000 (11:29 +0900)]
fix Coverity issue
[CID:860216] Arguments in wrong order
Change-Id: Ib1d18a6f2638c440692f985a2cb862896ebb0eb2
Signed-off-by: sangho park <sangho.g.park@samsung.com>
yhji [Tue, 24 Jul 2018 09:58:47 +0000 (18:58 +0900)]
Fix Wformat build error
Change-Id: I89c3483d0fac57ebc1d328a5752c776341939dcf
Signed-off-by: yhji <yhji.lee@samsung.com>
sangho park [Mon, 9 Jul 2018 04:14:19 +0000 (13:14 +0900)]
[UTC][capi-media-vision][NON-ACR][SVACE]
WGID-279240 : add try-catch to convertSourceMV2GrayCV() internal API.
WGID-347564, 347565, 347566 : add NULL checking.
Change-Id: I0bcc82e109243a8028c0fd9bd47c69126320c197
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Tae-Young Chung [Wed, 20 Jun 2018 08:15:33 +0000 (17:15 +0900)]
Fix build error within i586 and x86_64
Fix abs() to std::abs because call of overloaded 'abs(size)t)' is ambiguous
Change-Id: I125fd34e657d38c1eddfeb3eecf94c3506faa8af
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 19 Jun 2018 10:07:10 +0000 (19:07 +0900)]
Fix OpenCV version which is required at least
OpenCV should be equal to or greater than 3.4.1
Change-Id: I9e1e32ec6d627e522f59db96ecf39485f61e8c72
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 15 Mar 2018 08:06:13 +0000 (17:06 +0900)]
Fix ParseOpenCVLabels
Since OpenCV 3.4.x, FaceRecognizer Class doesn't provide getLabels().
Instead, each algorithm provides getLabels().
OpenCV should be equal to or greater than 3.4.1
Change-Id: Iec123273bb347713fa648a505ec78922b2008b9c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 8 Feb 2018 06:18:52 +0000 (15:18 +0900)]
Migration to OpenCV 3.4.0
Change-Id: I38918bc7555837f234ce0f4c52da4cbd5f2e9232
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
sangho park [Thu, 10 May 2018 02:18:59 +0000 (11:18 +0900)]
fix coverity
CID-110342 Resource leak
Change-Id: If8c0ea85c19f4bc251e798e6fb11eedb417144b7
Signed-off-by: sangho park <sangho.g.park@samsung.com>
sangho park [Mon, 19 Mar 2018 07:41:41 +0000 (16:41 +0900)]
fix coverity
CID-111024 Unchecked return value
CID-110444 Resource leak
CID-110342 Resource leak
CID-108973 Resource leak
CID-107052 Resource leak
Change-Id: I4dc600bd5e48cefefd02e43599f869ce2162835f
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Tae-Young Chung [Thu, 15 Mar 2018 08:06:13 +0000 (17:06 +0900)]
Fix ParseOpenCVLabels
Since OpenCV 3.4.x, FaceRecognizer Class doesn't provide getLabels().
Instead, each algorithm provides getLabels().
Change-Id: Iec123273bb347713fa648a505ec78922b2008b9c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
sangho park [Mon, 5 Mar 2018 06:36:43 +0000 (06:36 +0000)]
Merge "fix typo - defalut => default" into tizen
sangho park [Mon, 5 Mar 2018 06:28:49 +0000 (15:28 +0900)]
fix typo - triger => trigger
Change-Id: Ie4ce9bdb33049e0bbeb88a76dccb1beabf9f51de
Signed-off-by: sangho park <sangho.g.park@samsung.com>
sangho park [Mon, 5 Mar 2018 06:25:41 +0000 (15:25 +0900)]
fix typo - defalut => default
Change-Id: I5048d28765b0420ec8d60eddb6831a2cef2e832e
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Tae-Young Chung [Thu, 8 Feb 2018 06:18:52 +0000 (15:18 +0900)]
Migration to OpenCV 3.4.0
Change-Id: Ie75974180cc868dce34b1b4dddbac6cbf3531a6f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 22 Feb 2018 05:47:08 +0000 (14:47 +0900)]
Fixed static analysis issues
Added try-catch to handle cv's throwing exception
Fixed fill_engine_cfg_person_recognized() to return true or false accoring to configuration result
Change-Id: I7ab7abfe9bbb4ba360e2f3b0afbcfb1b9cfe7d94
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
hj kim [Thu, 1 Feb 2018 07:40:00 +0000 (16:40 +0900)]
Add capi-media-tool in pc dependent
Change-Id: Id6d906209703f9e310d550b552f1e12bfff0f71a
Tae-Young Chung [Thu, 7 Dec 2017 08:47:45 +0000 (17:47 +0900)]
Fix coverity issues
- Print arg count mismatches
- Parse warning
Change-Id: Id00e1ccb6a43f9d67c03a4169de04cee645202a4
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
(cherry picked from commit
588fb9803daa538a4d1c911fcd5e94185c30eb4e)
Tae-Young Chung [Thu, 28 Sep 2017 05:09:05 +0000 (14:09 +0900)]
Fix coverity issues
- Unchecked return value
- Unused value
- Resource leak
- Division or modulo by float zero
- Print arg count mismatch
- Parse warning
Change-Id: I04ed74f3f1fcd97ed1173d2e80f3681d15f3b0d0
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 12 Sep 2017 05:17:28 +0000 (14:17 +0900)]
Fix violations of CPP coding rule
1. remove redundant blank line at the start or the end of a code block
Change-Id: Ibd5c6bfa0eec81aefae8dd0731f89db69bd6a5fb
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 12 Sep 2017 04:55:42 +0000 (13:55 +0900)]
Fix violations of C coding rule
1. code indent should be tabs, not space
2. unnecessary braces{} for single statement
Change-Id: I920172c7d6f9c975b4a89415463e21079426c873
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 8 Sep 2017 08:54:57 +0000 (17:54 +0900)]
Replace readdir() with readdir_r() and add cv::exception handling
1. Replace readdir() with readdir_r() because of unguaranteed thread safety of readdir()
2. Add try-catch when cvtcolor is called. If exception might be thrown, *_INVALID_OPERATION
would be returned. Then, testsuite can handle the error case.
Change-Id: Id6ef3455ff5e5e37be8e91cf1c7af817093e7d48
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>