diff --git a/Prj-Linux/lpr/src/PlateDetection.cpp b/Prj-Linux/lpr/src/PlateDetection.cpp index a25f4db..9d0e6e2 100644 --- a/Prj-Linux/lpr/src/PlateDetection.cpp +++ b/Prj-Linux/lpr/src/PlateDetection.cpp @@ -11,6 +11,8 @@ namespace pr{ std::vector platesRegions; cv::Size minSize(min_w,min_w/4); cv::Size maxSize(max_w,max_w/4); + if (&processImage == NULL) + return; cascade.detectMultiScale( processImage, platesRegions, 1.1, 3, cv::CASCADE_SCALE_IMAGE,minSize,maxSize); for(auto plate:platesRegions)