Merge pull request #12351 from NobuoTsukamoto:3.4

This commit is contained in:
Alexander Alekhin 2018-08-30 21:10:01 +03:00 committed by GitHub
commit fc1dee685e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,8 @@ def postprocess(frame, outs):
center_y = int(detection[1] * frameHeight)
width = int(detection[2] * frameWidth)
height = int(detection[3] * frameHeight)
left = center_x - width / 2
top = center_y - height / 2
left = int(center_x - width / 2)
top = int(center_y - height / 2)
classIds.append(classId)
confidences.append(float(confidence))
boxes.append([left, top, width, height])