summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-09-21Merge changes I33594b22,Id9842754 into tizen_develrefactkwang son6-119/+1
* changes: Change metadata class to struct Drop Yolo CellParm
2022-09-21Add pointcloud implementation for mv_3d APIssangho park17-649/+998
[Issue type] new feature Change-Id: I7571bb1d67607e7d0c423296ce7d4c5c6fb7de6e Signed-off-by: sangho park <sangho.g.park@samsung.com>
2022-09-21Add mv_3d apis supporting depth and pointcloud dataTae-Young Chung47-11/+8055
[Issue type] new feature Change-Id: I04539a0ab6c393302a895a5c1402983e7c20d0ed Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2022-09-21Change metadata class to structsplitDecKwanghoon Son1-3/+1
[Issue type] refactoring OutputMetadata class needs access all of Info member variables. So all of Info class variables need to get method because it is just struct of data. Since Info classes not have any special member function, struct is more suitable for data access Change-Id: I33594b225173314a42585738ac8a32d49efc8493 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-20Drop Yolo CellParmKwanghoon Son5-116/+0
Yolo object detection not use CellParm anymore Change-Id: Id9842754634b6f134b02f417c96ea24f5fc69096 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-15Change Info class to structsandbox/inki.dae/object_detection_3dKwanghoon Son4-13/+4
[Issue type] refactoring ObjectDecoder class needs access all of Info member variables. So all of Info class variables need to get method because it is just struct of data. Since Info classes not have any special member function, struct is more suitable for data access. Change-Id: Ifa470fbb17344451584e0b93ad6faf859c021eba Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-13Merge "Add Yolo anchor parser and test" into tizen_develkwang son3-24/+88
2022-09-13Refactoring InferenceKwanghoon Son2-92/+51
[Issue type] refactoring - remove C style typedef - class initialization - remove redundancy code Change-Id: Ib3297732e1bd89cb81168983d3aaad9a53928bcb Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-13Add Yolo anchor parser and testKwanghoon Son3-24/+88
[Issue type] New feature commit from https://review.tizen.org/gerrit/c/platform/core/api/mediavision/+/272777 Change-Id: I3652cd0adb4a0c1b34d8b3b6ba5ff9c61838ae1e Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-07Refactoring MetadataKwanghoon Son4-366/+370
[Issue type] refactoring - split long header implementation - class initialization - remove unused function Change-Id: I049c3ebdf64980e9737d66e8afc122bc1b6cc395 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-06Refactoring Box, ScoreInfoKwanghoon Son4-183/+178
[Issue type] refactoring - split long header implementation - add missing header - remove 'this' accessor - class initialization Change-Id: I8014892edaceccadd9abcd9c1b45fc0dcd971e33 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-05Add Object detection test(Mobilenet V2)Kwanghoon Son1-6/+23
Change-Id: Idaec609087f0ec8767f0daf135edaae1eca06f30 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-04Apply clang-formatKwanghoon Son237-14148/+10707
[Issue type] Clean code [Version] 0.23.23 This patch only change code convention. Change-Id: I5f1d3dd56ecd5d962c8a9a52087ed8315db156a6 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Add SNPE efficient net testKwanghoon Son1-3/+42
[Issue type] new test Change-Id: Ia141001c1957709075da62416e6d4c0c6dc89916 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Apply clang-format ruleKwanghoon Son1-28/+37
[Issue type] refactoring Change-Id: Ib947e0660c3b1057859dbc1c96650a8de4370a0a Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02mv_machine_learning: Use Preprocess class instead of legacy oneInki Dae2-78/+57
[Issue type] code refactoring Did code refactoring to Run function of Inference class by replacing existing internal Preprocess function with the one of Proprocess class. We can use Preprocess class instead of Inference class internal one. With this change, we can use Preprocess class commonly. Change-Id: Id22de1532ce352abb013ad6bb26075c74a835949 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02Disable SNPE gtestKwanghoon Son1-1/+1
[Issue type] : Change Snpe test needs special hardware which is not related with public tizen test. To enable snpe test, run mv_test with --gtest_also_run_disabled_tests Change-Id: I36fdc978b0298ab435ff1e5a91f63703c685c86e Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02mv_machine_learning: code cleanup to Options and LayerInfo classesInki Dae4-74/+56
[Issue type] : code cleanup Cleaned up Options and LayerInfo classes by doing, - Change Options and LayerInfo classes to structure type. No reason for they are class type. It's enough with structure type. Change-Id: Ie50877881b6acb211b9d7ae5a0800f1e7185d78a Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02Change box name to vector in meta jsonKwanghoon Son2-9/+26
outputmetadata box name was single string, but needs to change to handle yolo models.(multiple names) `before` "box" : { "name" : "some name", ... } `after` "box" : { "name" : ["some name"], ... } Change-Id: Ia76001c2670c0a1fae272c31ba56dfc0cbc591de Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Fix box array to object in meta jsonKwanghoon Son1-78/+73
outputmetadata box object has array, but usage only accept 1 array element. This change handle object instead array. `before` "box" : [ { "name" : "some name", ... } ], `after` "box" : { "name" : "some name", ... } Change-Id: If77d781a5f4bbf6beb7078e34edd5309f29a471e Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02mv_machine_learning: code refactoring to Inference classInki Dae2-63/+114
[Issue type] : code refactoring Did code refactoring to Run member function of Inference class by doing, - extracted a function which converts mv sources to cv ones. And this converting function is now considered for multiple sources. - introduced a new util file which can contain common things to be used by machine learning relevant code. - and did code sliding and renaming several variables. This is just a step for next code refactoring and there are many things to do. Change-Id: Ic78ef26156481def5ecda537657638c613a304d1 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02Split BoxInfo implementation and add missing headerKwanghoon Son5-241/+315
Change-Id: Idcf2a0d06986cb8b7b23ec94af582a6fa4f37991 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Change score name to array in meta jsonKwanghoon Son1-6/+16
outputmetadata score name was single string, but needs to change to handle yolo models.(multiple names) `before` "score" : { "name" : "some name", ... } `after` "score" : { "name" : ["some name"], ... } Change-Id: Ie76b38ad6eb7665300b556c2d9ce0be576a537f3 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Fix score array to object in meta jsonKwanghoon Son1-45/+40
outputmetadata score object has array, but usage only accept 1 array element. This change handle object instead array. `before` "score" : [ { "name" : "some name", ... } ], `after` "score" : { "name" : "some name", ... } Change-Id: I5a3ddb4c4d29ffd7f2024a40e5065222d7197fc9 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Apply code lint and update copyright yearKwanghoon Son1-89/+116
Change-Id: I53fd18c3c5b3961b8c7e8fb903199e4150bf03e3 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02mv_machine_learning: code refactoring to Inference classInki Dae5-102/+121
[Issue type] : code refactoring Did code refactoring to Inference class by doing, - extracted a function - ConvertOutputDataTypeToFloat - from FillOutputResult function, which converts tensor data to float type. In fact, float data of output tensor is needed commonly so converted output tensor data to float type just after inference is completed. And finally, it changed FillOuputResult function name to GetTensorInfo and moved it to TensorBuffer class. - renamed several variables and function with meaningful name properly. This patch is just a step for next code refactoring. Change-Id: I4fd808ef05dd69203eb815a8230595aa1f1b7e54 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02mv_machine_learning: code refactoring to GetClassficationResultsInki Dae2-76/+31
[Issue type] code cleanup Did code refactoring to GetClassficationResults functions by doing, - drop logs from computing relevant funtions due to performance eating issue. - use FillOutputResult function instead of mOutputTensorBuffers.getValue() which is performance eating function because it tries to find tensor buffer with a given layer name for every iteration. - and also drop the code smell, code duplication. This patch is just a step for next code refactoring. Which in turn, FillOuputResult function will be refactored soon in generic way including dropping the performance eating functions. Change-Id: I4d8779001143a569f2f76664511005e7fcd8b389 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02mv_machine_learning: rename test cases for face recognitionInki Dae1-4/+4
[Issue type] : code cleanup Renamed the test case names just for cleanup. Change-Id: I446963fcc5f2b2d7fa81896d380f963cd7fbb409 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02mv_machine_learning: code cleanup to face recognitionInki Dae8-42/+46
[Issue type]: code cleanup Cleaned up face recognition framework by doing, - use override keyword for virtual functions. - call functions of base class instead of derived one. - drop unused declaration. Change-Id: I0fc528e85d7248b01fd9a12d4b00ca16b1209697 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02Add clang-format namespace indent handleKwanghoon Son1-0/+1
Change-Id: I03f59fb89576f329e98572a88a10899011920662 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Change private member variable to protectedKwanghoon Son1-1/+1
[Issue type] : New feature This patch is first series of Add MediaSensor class. MediaSensor class try to access MediaSource member variable, instead of setter function, declare with protected. Change-Id: Ia208c5f9d0de960c13f219b3c411b41ffed6825a Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Add gcc -Wall -Wextra optionKwanghoon Son11-8/+16
[Issue type] : New feature To prevent unsued variable or miss-type casting Change-Id: Ia74af20014c136d84bfa1d80164e388c828b158b Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-09-02Fix build warningsSeungbae Shin16-144/+145
[Issue type] build - fix implicit function usage - use _ instead of __ for non-static function - use 'void' for void parameter function - fix warning of cmake version requiring - fix warning of macro argument comparison Change-Id: I4f2bf41e6694c98d67bfe7f80e122468c3346f6c
2022-09-02mv_machine_learning: add try-catch statementInki Dae1-8/+13
[Issue type] bug fix Added try-catch statement to mv_face_recognition_prepare_open function, which was missed, printed out the error messages correctly. Change-Id: I0753cda2b894c10033141f69a0a3e1d60eb303e7 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-09-02mv_machine_learning: fix coverity issuessubmit/tizen/20220902.080727accepted/tizen/unified/20220905.124707Inki Dae3-3/+7
[Verion] : 0.23.22-0 [Issue type] : bug fix Fixed two coverity issues. Change-Id: I883415d8411b077164a8d804efd5d9aabacd5b1f Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-31mv_roi_tracker: fix typoHyunsoo Park2-2/+2
[Version] : 0.23.21 [Issue type] : clean up Change-Id: If7c9e169444f875a1456f768ec51dc0333e7f51d Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2022-08-29mv_roi_tracker: update docssubmit/tizen/20220830.003207accepted/tizen/unified/20220830.133716Hyunsoo Park3-3/+8
[Version] : 0.23.20 [Issue type] : clean up Change-Id: I5538bb0a643bcdd8d92cf194c1ef00001e967756 Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2022-08-24Merge "mv_machine_learning: fix wrong tensor order" into tizenInki Dae1-5/+5
2022-08-23mv_roi_tracker: fix implicit function errorHyunsoo Park2-2/+2
[Version] : 0.23.19 [Issue type] : bug fix Change-Id: Ib4528ff7355df8839c0213dbeb618270a2e7ffb7 Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2022-08-19mv_machine_learning: fix wrong tensor orderInki Dae2-6/+6
[Verion] : 0.23.19-0 [Issue type] : bug fix Fixed wrong tensor order. Tensor order, NWHC, doesn't exist. So correct the tensor order and return width, height and channel value correctly. Change-Id: I53b3078d2121c9718bc5a9864ebefd0d5907b7af Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-19mv_roi_tracker: add description to docsubmit/tizen/20220825.024015submit/tizen/20220823.063557submit/tizen/20220819.073800accepted/tizen/unified/20220825.063638Hyunsoo Park2-2/+33
[Version] : 0.23.18 [Issue type] : bug fix Change-Id: Ibe3a79b8622fdcf1a69ed275d76739cbd2c8f194 Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2022-08-18mv_machine_learning: add runtime requirementsInki Dae1-1/+3
[Version]: 0.23.17 [Issue type]: bug fix Added runtime requirements to inference-engine-interface-common and training-engine-interface-common which are needed in runtime. Change-Id: I5d1d03d4a29fe17b9560be20c89b27136e425634 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-17Fix json non exist member parsesandbox/pcd-acrKwanghoon Son2-4/+7
[Version] : 0.23.16 [Issue type] : bug fix top_number, threshold optional member. If member not exist, use default value Change-Id: I96f67d5e541ce5dcaacae760e3332b745c5a3654 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-08-12mv_common: fix memory leak issuesubmit/tizen/20220817.123406submit/tizen/20220812.070529Inki Dae2-20/+15
[Version] : 0.23.15-0 [Issue type] : bug fix Fixed memory leak issue of mv_engine_config_get_array_string_attribute_c function. Change-Id: Id490ddc88c8242c8ecb405230cdb4d934791b4f7 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-12mv_machine_learning: fix coverity issuesInki Dae5-59/+118
[Version] : 0.23.14 [Issue type] : bug fix Fixed coverity issues. Change-Id: I2e376d517d99722366a05f8ab584858808ec2194 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-11mv_machine_learning: fix memory leak issueInki Dae4-42/+48
[Version] : 0.23.13 [Issue type] bug fix. Fixed a memory leak issue with non-meta file inference by introducing convertToFloat function of TensorBuffer class, which clears owner_is_backend so that the buffer allocated with float type can be released properly. And also this patch drops the code smell, code duplication, and renames existing function name - setTensorBuffer to addTensorBuffer. Change-Id: I062aa9cf05fc6ebb53e4cfd0c4ae6bb0d98d65fe Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-09Fix access wrong json memberKwanghoon Son2-4/+5
[Version] : 0.23.12 [Issue type] : Bug fix This solve non exist member access message json_object_get_int_member: assertion 'node != NULL' failed Change-Id: I4c3d2f54795f16aada581bd32a725b5204afee79 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2022-08-08mv_machine_learning: bug fix to recognition requestsubmit/tizen/20220808.075156accepted/tizen/unified/20220809.213751Inki Dae4-1/+59
[Versin] : 0.23.11 [Issue type] : bug fix Fixed a bug that it didn't handle an error case correctly at recognition request without label file. Without label file, recognition request incurred seg. fault issue so this patch handles the error case correctly. In addition, this patch adds a test case which tests a recognition request without label file. Change-Id: I9e577e4fe8e13f3865bfc2db4a60244626d31467 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-08-02mv_machine_learning: update face recognition frameworksubmit/tizen/20220803.092938accepted/tizen/unified/20220804.151651Inki Dae14-23/+115
[Version] : 0.23.10 [Issue type] : code updating Updated face recognition framework and its test case including cleanup and bug fix. What this patch does, - fix a bug that last label isn't removed by making all relevant files to be removed when last label removal is requested. - change default face recognition resource directory. - add two test cases and code cleanup to existing test cases. Change-Id: I8e172e03d8c0f355da1cd61b4a2567086c232813 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2022-07-28Merge "mv_machine_learning: package face recognition header files" into tizensubmit/tizen/20220728.081854accepted/tizen/unified/20220728.131646Inki Dae1-0/+1