Skip to content

Commit

Permalink
* add rtsp example
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Apr 17, 2024
1 parent 8d8b34c commit 17078be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/vision/streaming/rtsp.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 17078be

Please sign in to comment.