Fix ML task un-catched error
authorKwanghoon Son <k.son@samsung.com>
Fri, 26 Apr 2024 06:03:30 +0000 (15:03 +0900)
committerKwanghoon Son <k.son@samsung.com>
Mon, 24 Jun 2024 03:53:24 +0000 (03:53 +0000)
Update missed part of object detection.

Fixes: fae343dae12d583690f24659fa923090470f9483
Change-Id: I1b76e29f5237d121a1503ea375bdc5dd4f676a66
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_machine_learning/object_detection/src/mv_face_detection.cpp

index f3311a4fef5414a3d9f500bb089dda020a5dae44..d178e6f39657d620e445788e9258f809dfe24f65 100644 (file)
@@ -59,6 +59,9 @@ int mv_face_detection_create(mv_face_detection_h *handle)
                machine_learning_native_add(ctx, TASK_NAME, new FaceDetectionAdapter());
        } catch (const BaseException &e) {
                return e.getError();
+       } catch (const std::exception &e) {
+               LOGE("%s", e.what());
+               return MEDIA_VISION_ERROR_INTERNAL;
        }
 
        *handle = ctx;