Unverified Commit fc1dee68 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #12351 from NobuoTsukamoto:3.4

parents 4c7d5214 ade57c8b
...@@ -142,8 +142,8 @@ def postprocess(frame, outs): ...@@ -142,8 +142,8 @@ def postprocess(frame, outs):
center_y = int(detection[1] * frameHeight) center_y = int(detection[1] * frameHeight)
width = int(detection[2] * frameWidth) width = int(detection[2] * frameWidth)
height = int(detection[3] * frameHeight) height = int(detection[3] * frameHeight)
left = center_x - width / 2 left = int(center_x - width / 2)
top = center_y - height / 2 top = int(center_y - height / 2)
classIds.append(classId) classIds.append(classId)
confidences.append(float(confidence)) confidences.append(float(confidence))
boxes.append([left, top, width, height]) boxes.append([left, top, width, height])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment