diff --git a/aruco/ArucoDetector.cpp b/aruco/ArucoDetector.cpp index 900b11c..5c37852 100644 --- a/aruco/ArucoDetector.cpp +++ b/aruco/ArucoDetector.cpp @@ -20,7 +20,6 @@ ArucoDetector::ArucoDetector(const Type::RobotPose& pose, const std::string& cal this->readCameraParameters(calibrationPath); // this->cap = cv::VideoCapture(cameraId); - this->cam = new lccv::PiCamera(); cam->options->video_width=1920; cam->options->video_height=1080; cam->options->framerate=10; diff --git a/aruco/ArucoDetector.h b/aruco/ArucoDetector.h index 397e272..8bbc621 100644 --- a/aruco/ArucoDetector.h +++ b/aruco/ArucoDetector.h @@ -13,7 +13,7 @@ class ArucoDetector { cv::Mat distCoeffs; // cv::VideoCapture cap; - lccv::PiCamera* cam; + lccv::PiCamera* cam = nullptr; // 4.6 cv::Ptr dictionary;