diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-19 17:26:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-19 17:26:12 +0200 |
commit | c81b56c1c0057a7a68cfcc492ad1c1ad4f2369a9 (patch) | |
tree | 00c25a082bdee40115140acd537bbc70aa5ddd1a /tracker-aruco | |
parent | 649f9524cf43dcea2fdbef815623102b3c606197 (diff) |
tracker/{pt,aruco}: don't allow opencv unwind on assert
It's gonna purposefully dereference a zero pointer to
cause a crash without unwinding.
Diffstat (limited to 'tracker-aruco')
-rw-r--r-- | tracker-aruco/ftnoir_tracker_aruco.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 0090aa12..f2a2e3b8 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -54,6 +54,7 @@ aruco_tracker::aruco_tracker() : adaptive_size_pos(0), use_otsu(false) { + cv::setBreakOnError(true); // param 2 ignored for Otsu thresholding. it's required to use our fork of Aruco. set_detector_params(); } |