[shotwell/wip/phako/enhanced-faces: 8/17] facedetect: Catch exception by reference
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/phako/enhanced-faces: 8/17] facedetect: Catch exception by reference
- Date: Tue, 16 Oct 2018 09:22:46 +0000 (UTC)
commit e81332a36ef4289d93a820b8d7519eb50324a708
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]