platform/core/api/mediavision.git
4 years agoRevert "mv_inference: Add Post Estimation feature support"
Inki Dae [Mon, 13 Apr 2020 08:23:10 +0000 (17:23 +0900)]
Revert "mv_inference: Add Post Estimation feature support"

This feature will be added to tizen 6.0 m2 so revert it
from tizen branch and move it to tizen_devel branch.

This reverts commit 68d2d47e71302f563f24555ce1cce4ca10d908a2.

Change-Id: Iec73032301d724ba549560564c529b26e46515dd

4 years agomv_inference: drop data types not supported
Inki Dae [Mon, 13 Apr 2020 07:40:40 +0000 (16:40 +0900)]
mv_inference: drop data types not supported

Mediavision doesn't support float16 and uint16/32bit model
so drop these data types. They can be added later with actual
use case.

Change-Id: Iebe7511326f45c39b09a4429f8de361ca8fe354c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoChange type of 'tensor_info.shape' to size_t
Hyunsoo Park [Mon, 13 Apr 2020 06:22:57 +0000 (15:22 +0900)]
Change type of 'tensor_info.shape' to size_t

Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoinference testsuite: add opencv with caffe model
Tae-Young Chung [Fri, 3 Apr 2020 03:05:54 +0000 (12:05 +0900)]
inference testsuite: add opencv with caffe model

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agomv_inference: add post-process step to GetObjectDetectionResults()
Tae-Young Chung [Thu, 2 Apr 2020 05:10:56 +0000 (14:10 +0900)]
mv_inference: add post-process step to GetObjectDetectionResults()

To handle model data (SSD) which doesn't have post-process layer,
add the post process step.
SSD generally provides an one output with 1x1xNx7 shape and the last dimension
includes 'image id, class id, confidence, coordinates(left-top (x,y),
and right-bottom(x,y))'

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoRevert "mv_inference: Get layer propery only in required case"
Inki Dae [Tue, 31 Mar 2020 08:14:50 +0000 (17:14 +0900)]
Revert "mv_inference: Get layer propery only in required case"

This reverts commit 756a6d9c297b7c756a1090ded0287795b5f12665.

4 years agotest: Add input tensor data type support
Inki Dae [Tue, 10 Mar 2020 06:52:30 +0000 (15:52 +0900)]
test: Add input tensor data type support

This patch passes user-given input data type to
Inference framework so that each inference engine backend
can know the input tensor data type before kicking up inference.

Change-Id: I762d7f76444d5b6656b019501321ca3c90c6919a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Add inference data type support
Inki Dae [Tue, 10 Mar 2020 06:50:33 +0000 (15:50 +0900)]
mv_inference: Add inference data type support

This patch adds inference input data type support for
Mediavision. With this, we can use user-given input tensor
data type for OpenCV backend.

Change-Id: I681f203f4cbe9b3cc7b59a746cfab650009f65c1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Fix wrong menu index
Inki Dae [Mon, 9 Mar 2020 06:12:42 +0000 (15:12 +0900)]
test: Fix wrong menu index

Change-Id: Ie05fa559637e3b63317e1fd0b1b78800936aeeef
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Use data type of buffer structure instead of property one
Inki Dae [Fri, 6 Mar 2020 00:25:07 +0000 (09:25 +0900)]
mv_inference: Use data type of buffer structure instead of property one

This patch fixes a problem that it cannot get tensor data type from
mInputLayerProperty in case that a backend provides tensor buffers.

As for this, this patch makes data type from tensor buffer structure
to be used instead of property one because if a backend provided
tensor buffers then tensor data type must also be there.

With this change, WORK-TO-DO, "TODO. Consider multiple tensors.",
is solved also.

Change-Id: Idcd55514da206edfb9d9f9b04cdc84d14ee53691
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: set owner_is_backend member properly
Inki Dae [Thu, 5 Mar 2020 04:30:01 +0000 (13:30 +0900)]
mv_inference: set owner_is_backend member properly

owner_is_backend of inference_engine_tensor_buffer structure
is used to check if owner is the tensor buffers is backend or
not, to clarify who should release the tensor buffers.

This patch sets owner_is_backend member according to
tensor buffer's owner properly.

Change-Id: I23457837960712c4979f5ebb3b71fae98e1dcbb4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Update actual tensor buffer size
Inki Dae [Thu, 5 Mar 2020 01:05:12 +0000 (10:05 +0900)]
mv_inference: Update actual tensor buffer size

This patch updates actual tensor buffer size(in bytes)
to size member of inference_engine_tensor_buffer structure
so that the actual size can be used by other.

Change-Id: Ifa3688c33f45e105dd2f8c0c173b7003998c6432
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoModify mv_inferen_prepare()'s internal implementation
Tae-Young Chung [Wed, 4 Mar 2020 05:23:01 +0000 (14:23 +0900)]
Modify mv_inferen_prepare()'s internal implementation

Internally, set input and output information (layer names,
tensor information), and give them to inference-engine-interface.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agomv_inference: do not allow invalid target device type
Inki Dae [Thu, 27 Feb 2020 04:44:53 +0000 (13:44 +0900)]
mv_inference: do not allow invalid target device type

Change-Id: I760c2547780db368b3a84097ffc56c2b65042201
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agomv_inference: Get layer propery only in required case
Inki Dae [Thu, 27 Feb 2020 04:27:53 +0000 (13:27 +0900)]
mv_inference: Get layer propery only in required case

We don't have to get input/output layer property from a backend
always so get the property only in case input/output tensor buffer
vectors are empty.

Change-Id: Iaa38105a283bd768a9e392ee537621f19662c11d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Measure inference performance
Inki Dae [Thu, 27 Feb 2020 04:19:26 +0000 (13:19 +0900)]
test: Measure inference performance

Change-Id: I217ac9b61890757a0f073007f95703f69e341209
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agopackaing: Add BuildRequires: pkgconfig(inference-engine-interface-common)
Tae-Young Chung [Wed, 26 Feb 2020 07:59:20 +0000 (16:59 +0900)]
packaing: Add BuildRequires: pkgconfig(inference-engine-interface-common)

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agopackaging: Drop inference-engine-interface-vision from build requirement
Inki Dae [Tue, 25 Feb 2020 03:07:04 +0000 (12:07 +0900)]
packaging: Drop inference-engine-interface-vision from build requirement

inference-engine-inference-vision relevant code have been removed
so drop the build requirement.

Change-Id: I893ba0c86f439a55695de312d1d6617b367b2487
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agotest: Add Post Estimation test
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>
4 years agomv_inference: Add Post Estimation feature support
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>
4 years agotest: Add face detection with ARMNN
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>
4 years agotest: Add object detection test with ARMNN
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>
4 years agomv_inference: Introduce FillOutputResult function
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>
4 years agomv_inference: Handle exception cases to tensor buffer allocations
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>
4 years agomv_inference: Add quantized model inference support
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>
4 years agomv_inference: Add the use of user desired input and output layers
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>
4 years agomv_inference: Call Run callback with output tensor buffers
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>
4 years agomv_inference: Pass input tensor buffers and consider multiple tensors
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>
4 years agomv_inference: fix undefined reference error
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>
4 years agomv_inference: Pass a generic channel value to backend engine
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>
4 years agomv_inference: Use model_format instead of key->second
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>
4 years agomv_inference: Use InferenceEngineCommon instead of InferenceEngineVision
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>
4 years agomv_inference: Place OpenCV dependent code from inference-engine-vision
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>
4 years agomv_inference: Detect model file fomat and notify a backend the format
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>
4 years agomv_inference: Check for inference target devices
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>
4 years agomv_inference: Consider one more inference target devices
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>
4 years agomv_inference: separate binding a backend engine and loading model files
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>
4 years agomv_inference: release a backend engine
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>
4 years agomv_inference: pass inference target device correctly
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>
4 years agomv_inference: use new Load callback and drop Init callback
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>
4 years agoinference: use a new InferenceEngineVision constructor
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>
4 years agotest: add ARMNN test case
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>
4 years agomv_inference: add ARMNN backend support
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>
4 years agoMigration OpenCV-4.2.0 71/229971/1 accepted/tizen/unified/20200417.152820 submit/tizen/20200407.083853 submit/tizen/20200410.044903 submit/tizen/20200414.011245
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>
4 years agoimprove testsuite 08/229008/4
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>
4 years agoimprove testsuite 85/228785/4
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>
4 years agoFix error handling 11/228411/2
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>
4 years agoError return handling 19/228219/1
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>
4 years agoSVACE bug fix 74/227174/1 accepted/tizen/unified/20200312.234421 submit/tizen/20200310.232901
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>
4 years agoKeep OpenCV3's pc ifle name and data path tizen_opencv_upgrade
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>
4 years agoMerge branch 'tizen_opencv_upgrade' of ssh://review.tizen.org:29418/platform/core...
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

4 years agoCoverity bug fix STRAY_SEMICOLON 58/225858/1 accepted/tizen/unified/20200225.224458 submit/tizen/20200225.050634
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>
4 years agoMerge "Delete duplicate mv_private.c" into tizen
kwang son [Tue, 25 Feb 2020 01:39:11 +0000 (01:39 +0000)]
Merge "Delete duplicate mv_private.c" into tizen

4 years agoDelete duplicate mv_private.c 29/225429/1
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>
4 years agoMerge "Fix printf specifier" into tizen
kwang son [Thu, 20 Feb 2020 01:37:41 +0000 (01:37 +0000)]
Merge "Fix printf specifier" into tizen

4 years agoFix printf specifier 26/225426/1
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>
4 years agoMerge "Fix wrong api call mv_engine_config_get_string_attribute" into tizen
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

4 years agoFix coverity MISSING_COMMA issue 04/225304/1 accepted/tizen/unified/20200219.130159 submit/tizen/20200219.040957
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>
4 years agoFix wrong api call mv_engine_config_get_string_attribute 93/225293/1
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>
4 years agoFix coverity Stray semicolon issues 15/225215/1 submit/tizen/20200219.021350
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>
4 years agoFix coverity RESOURCE_LEAK issues 19/224619/2 accepted/tizen/unified/20200214.050403 submit/tizen/20200213.102156
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>
4 years agoMerge "Fix DEREF_OF_NULL.RET.PROC.STAT checker issue" into tizen accepted/tizen/unified/20200212.125924 submit/tizen/20200211.040759
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

4 years agoFix DEREF_OF_NULL.RET.PROC.STAT checker issue 35/224135/2
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>
4 years agomv_inference: drop commented line 07/223807/3
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>
4 years agoFix debug mode build option typo 15/223015/1
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>
4 years agoRevert "Fix debug mode build option typo"
Kwanghoon Son [Wed, 22 Jan 2020 06:37:04 +0000 (15:37 +0900)]
Revert "Fix debug mode build option typo"

This reverts commit f35a2f4e8e201c767404b5a4980e63bcccab634d.

4 years agoFix debug mode build option typo
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>
4 years agoFix(#2) build error due to toolchain upgrade (gcc6->gcc9) 68/222068/2 accepted/tizen/unified/20200110.123511 submit/tizen/20200109.092122
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>
4 years agoMigration with OpenCV-4.2.0
Tae-Young Chung [Thu, 2 Jan 2020 08:28:05 +0000 (17:28 +0900)]
Migration with OpenCV-4.2.0

Change-Id: Ib547582b318c1d33bc0e4d9579d9f64c30685f76

4 years agomigration opencv-4.2.0
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>
4 years agoFix build error due to toolchain upgrade (gcc6->gcc9) 90/220990/1 accepted/tizen/unified/20191227.142834 submit/tizen/20191226.071539
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>
4 years agoUpdate feature element reference link 04/219104/1
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>
4 years agoChange reference link. 34/218934/1
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>
4 years agoFix API description issues 61/216861/1 accepted/tizen/unified/20191105.020145 submit/tizen/20191104.091733
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>
4 years agoFix API description for doxygen. 82/216282/3
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>
4 years agoAdd MV_ENGINE_CONFIG_ATTR_TYPE_ARRAY_STRING to mv_config_attribute_type_e 44/215644/4 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.030149 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064815 accepted/tizen/unified/20191021.072001 submit/tizen/20191017.070338 submit/tizen/20191021.012430 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
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>
4 years agoMerge "Change ini file location." into tizen accepted/tizen/unified/20191011.080025 submit/tizen/20191010.064454 submit/tizen/20191010.081113 submit/tizen/20191011.005004 submit/tizen/20191011.010019
Hyunsoo Park [Wed, 9 Oct 2019 23:40:18 +0000 (23:40 +0000)]
Merge "Change ini file location." into tizen

4 years agoUpdate mediavision_doc.h #2 29/215329/1
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>
4 years agoChange ini file location. 60/215260/2
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>
4 years agoFix NO_CATCH.LIBRARY issue by security check 82/215182/4 accepted/tizen/unified/20191008.101624 submit/tizen/20191007.015232
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>
4 years agoUpdate mediavision_doc.h 77/215177/2
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>
4 years agoFix resource leak issues and svace issues 32/215132/5
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>
4 years agoAdd an inference module with new APIs 46/210946/23 accepted/tizen/unified/20190926.065741 accepted/tizen/unified/20190927.013256 submit/tizen/20190925.221731 submit/tizen/20190926.001753 submit/tizen/20190926.063602
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>
4 years agoMove mutex unlock macro of '__globalGuard' to end of function. 11/211211/1 accepted/tizen/unified/20190801.025443 submit/tizen/20190731.074509
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>
5 years agoMake a gcov package for measuring coverage easier 48/208948/2 accepted/tizen/unified/20190702.114907 submit/tizen/20190702.024725
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>
5 years agoFix build break with aarch64 and x86_64 81/204081/1 accepted/tizen/unified/20190422.005535 submit/tizen/20190419.061259
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>
5 years agoFix mv_source_fill_by_packet() when multiple bos are given 90/203990/5 submit/tizen/20190419.022557
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>
5 years agoRevert "Fix typo" 35/198535/1
Tae-Young Chung [Fri, 25 Jan 2019 07:20:54 +0000 (07:20 +0000)]
Revert "Fix typo"

This reverts commit aaf491613f59fa3379075a7d882780e74cad346a.

Change-Id: Ic265af051ff2c7324d82445b9a4cff890945efb7

5 years agoFix typo 45/198345/1 submit/tizen/20190124.040717
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>
5 years agoSymbolic link capi-system-info explicitly to libmv_common.so 04/196204/1
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>
5 years agoFix failure to record video results in testsuites 68/196168/1
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>
5 years agoadd -lmv_common to pkg-config files 33/193833/3 accepted/tizen/unified/20181129.175007 submit/tizen/20181129.043507
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>
5 years agoRemove dlog from pc_dependents 16/192216/1
hj kim [Thu, 1 Nov 2018 01:18:16 +0000 (10:18 +0900)]
Remove dlog from pc_dependents

Change-Id: Iaa7417463be8a1a23c2d554aa82c556de4eb62d0

5 years agoAdd null check after g_array_new() in image_test_suite.c 61/190461/1
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>
5 years agoAdd gcov environment 52/189352/1
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

5 years agoAdd codes handling exception thrown by OpenCV 89/188989/1 accepted/tizen/5.0/unified/20181102.013603 accepted/tizen/unified/20180913.063950 accepted/tizen/unified/20180913.064039 submit/tizen/20180912.094346 submit/tizen/20180913.015906 submit/tizen_5.0/20181101.000002
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>
5 years agoRemove unnecessary log printing while face detection 23/187023/1 accepted/tizen/unified/20180820.060207 submit/tizen/20180820.024928
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>
5 years agofix Coverity issue 77/186177/3 accepted/tizen/unified/20180814.175024 submit/tizen/20180814.081925
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>
5 years agoFix Wformat build error 33/184933/2 accepted/tizen/unified/20180725.060529 submit/tizen/20180725.021144
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>
6 years ago[UTC][capi-media-vision][NON-ACR][SVACE] 10/183610/4 accepted/tizen/unified/20180716.185635 submit/tizen/20180711.014745
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>