[shotwell/wip/phako/enhanced-faces: 128/136] facedetect: Catch exception by reference
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/phako/enhanced-faces: 128/136] facedetect: Catch exception by reference
- Date: Thu, 11 Oct 2018 09:57:21 +0000 (UTC)
commit 46f668e51b17ecba1e22adea9a1c6d03978a3c13
Author: Jens Georg <mail jensge org>
Date: Thu Oct 11 09:30:51 2018 +0200
facedetect: Catch exception by reference
facedetect/facedetect-opencv.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/facedetect/facedetect-opencv.cpp b/facedetect/facedetect-opencv.cpp
index fc2f7016..07722a19 100644
--- a/facedetect/facedetect-opencv.cpp
+++ b/facedetect/facedetect-opencv.cpp
@@ -80,7 +80,7 @@ bool loadNet(cv::String baseDir) {
faceDetectNet = cv::dnn::readNetFromCaffe(baseDir + "/deploy.prototxt",
baseDir + "/" + RESNET_DETECT_CAFFE_NET);
faceRecogNet = cv::dnn::readNetFromTorch(baseDir + "/" + OPENFACE_RECOG_TORCH_NET);
- } catch(cv::Exception e) {
+ } catch(cv::Exception &e) {
std::cout << "File load failed: " << e.msg << std::endl;
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]