File size: 331 Bytes
b98ffbb
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import cv2
from robomaster import robot,camera
import time

ep_robot = robot.Robot()
ep_robot.initialize(conn_type="sta", sn="159CKAD0060BQN")
ep_camera = ep_robot.camera

# 显示十秒图传
ep_camera.start_video_stream(display=True, resolution=camera.STREAM_360P)
time.sleep(1000)
ep_camera.stop_video_stream()

ep_robot.close()