1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #15515 from dkurt:dnn_detection_model_fix

This commit is contained in:
Alexander Alekhin
2019-09-18 12:19:14 +00:00
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ void DetectionModel::detect(InputArray frame, CV_OUT std::vector<int>& classIds,
int width = right - left + 1;
int height = bottom - top + 1;
if (width * height <= 1)
if (width <= 2 || height <= 2)
{
left = data[j + 3] * frameWidth;
top = data[j + 4] * frameHeight;