}
FaceRecognitionModel *pRecModel = static_cast<FaceRecognitionModel *>(*recognition_model);
-
- if (!pRecModel) {
- LOGE("Loading of the face recognition model from file failed. "
- "Incorrect Media Vision Face recognition model handle is used");
- return MEDIA_VISION_ERROR_INVALID_PARAMETER;
- }
-
const int ret = pRecModel->load(std::string(file_name));
if (MEDIA_VISION_ERROR_NONE != ret) {
}
FaceTrackingModel *pTrackModel = static_cast<FaceTrackingModel *>(*tracking_model);
-
- if (!pTrackModel) {
- LOGE("Loading of the face tracking model from file failed. "
- "Incorrect Media Vision Face tracking model handle is used");
- return MEDIA_VISION_ERROR_INVALID_PARAMETER;
- }
-
const int ret = pTrackModel->load(std::string(file_name));
if (MEDIA_VISION_ERROR_NONE != ret) {