From 17078bea0aef87a839c41df966103cd095e017c4 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Wed, 17 Apr 2024 20:41:17 +0800 Subject: [PATCH] * add rtsp example --- examples/vision/streaming/rtsp.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/vision/streaming/rtsp.py diff --git a/examples/vision/streaming/rtsp.py b/examples/vision/streaming/rtsp.py new file mode 100644 index 00000000..fc5c0c59 --- /dev/null +++ b/examples/vision/streaming/rtsp.py @@ -0,0 +1,11 @@ +from maix import time, rtsp, camera, image + +server = rtsp.Rtsp() +cam = camera.Camera(2560, 1440, image.Format.FMT_YVU420SP) +server.bind_camera(cam) +server.start() + +print(server.get_url()) + +while True: + time.sleep(1) \ No newline at end of file