From 72648a04c0ccb9f435bd4d29cb7a35202c316699 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Thu, 15 Aug 2024 17:01:24 +0800 Subject: [PATCH] * delete rtsp display example --- examples/vision/streaming/rtsp_and_display.py | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 examples/vision/streaming/rtsp_and_display.py diff --git a/examples/vision/streaming/rtsp_and_display.py b/examples/vision/streaming/rtsp_and_display.py deleted file mode 100644 index b4375b3b..00000000 --- a/examples/vision/streaming/rtsp_and_display.py +++ /dev/null @@ -1,26 +0,0 @@ -from maix import app, rtsp, camera, image, display - -# init camera -cam = camera.Camera(2560, 1440, image.Format.FMT_YVU420SP) -cam2 = cam.add_channel(640, 480) - -# init display -disp = display.Display() - -# init rtsp server -server = rtsp.Rtsp() -server.bind_camera(cam) -server.start() - -# draw region -rgn = server.add_region(0, 0, 200, 100) -canvas = rgn.get_canvas() -canvas.draw_string(0, 0, "Hello MaixPy") -rgn.update_canvas() - -print(server.get_url()) -while not app.need_exit(): - img = cam2.read() - disp.show(img) - -server.stop() \ No newline at end of file