提交 ec5d0de9 编写于 作者: F feilong

rename ball continue

上级 727a64b8
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
![](./ball.jpg) ![](./ball.jpg)
通过剪切粘贴可以获得足球连续运行的轨迹 通过剪切粘贴可以获得足球连续运行的轨迹
![](./continue_ball.jpg) ![](./ball_continue.jpg)
实现代码如下,需要补全TODO部分: 实现代码如下,需要补全TODO部分:
...@@ -22,7 +22,7 @@ if __name__ == '__main__': ...@@ -22,7 +22,7 @@ if __name__ == '__main__':
for i in range(-1, 4): for i in range(-1, 4):
# TODO(You): 请在此实现代码 # TODO(You): 请在此实现代码
cv2.imshow("continue_ball", img) cv2.imshow("ball_continue", img)
cv2.waitKey(0) cv2.waitKey(0)
cv2.destroyAllWindows() cv2.destroyAllWindows()
``` ```
...@@ -48,7 +48,7 @@ if __name__ == '__main__': ...@@ -48,7 +48,7 @@ if __name__ == '__main__':
img[start[0]-y_offset:start[1]-y_offset, img[start[0]-y_offset:start[1]-y_offset,
end[0]+x_offset:end[1]+x_offset] = ball end[0]+x_offset:end[1]+x_offset] = ball
cv2.imshow("continue_ball", img) cv2.imshow("ball_continue", img)
cv2.waitKey(0) cv2.waitKey(0)
cv2.destroyAllWindows() cv2.destroyAllWindows()
......
...@@ -14,6 +14,6 @@ if __name__ == '__main__': ...@@ -14,6 +14,6 @@ if __name__ == '__main__':
img[start[0]-y_offset:start[1]-y_offset, img[start[0]-y_offset:start[1]-y_offset,
end[0]+x_offset:end[1]+x_offset] = ball end[0]+x_offset:end[1]+x_offset] = ball
cv2.imshow("continue_ball", img) cv2.imshow("ball_continue", img)
cv2.waitKey(0) cv2.waitKey(0)
cv2.destroyAllWindows() cv2.destroyAllWindows()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册