提交 ade57c8b 编写于 作者: N Nobuo Tsukamoto

Fixed that object_detection.py does not work in python3.

上级 258a7695
......@@ -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])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册