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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user