Browse Source

Update PlateDetection.cpp

v2
syan GitHub 5 years ago
parent
commit
d5a5f8264a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Prj-Linux/lpr/src/PlateDetection.cpp

+ 2
- 0
Prj-Linux/lpr/src/PlateDetection.cpp View File

@@ -11,6 +11,8 @@ namespace pr{
std::vector<cv::Rect> 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)


Loading…
Cancel
Save