datetime.datetime.now()
hour, minute, second = now_time.hour, now_time.minute, now_time.second
# 画秒刻线...min_angle * np.pi / 180.0)
cv2.line(temp, center, (int(min_x), int(min_y)), (186, 199, 255), 8)
# 画时刻线...line(temp, center, (int(hour_x), int(hour_y)), (255, 198, 26), 15)
再次欣赏效果图:
今天的实战分享结束了,我们学习了一个动态时钟的