From 9f257bca57621154115e7f8bdee67c3af07fed86 Mon Sep 17 00:00:00 2001 From: dianjixz <18637716021@163.com> Date: Wed, 9 Apr 2025 18:09:54 +0800 Subject: [PATCH] [update] main_camera doc --- .../llm_camera_en.md | 27 ++++++++++--------- .../llm_camera_zh.md | 14 ++++++---- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/doc/projects_llm_framework_doc/llm_camera_en.md b/doc/projects_llm_framework_doc/llm_camera_en.md index f7a93f9..25a0f05 100644 --- a/doc/projects_llm_framework_doc/llm_camera_en.md +++ b/doc/projects_llm_framework_doc/llm_camera_en.md @@ -15,25 +15,28 @@ Send JSON: "action": "setup", "object": "camera.setup", "data": { - "response_format": "camera.raw", + "response_format": "image.yuyv422.base64", "input": "/dev/video0", "enoutput": false, "frame_width": 320, - "frame_height": 320 + "frame_height": 320, + "enable_webstream":false, + "rtsp":"rtsp.1280x720.h265" } } ``` -- request_id: Reference basic data explanation. +- request_id: Refer to the basic data explanation. - work_id: When configuring the unit, it is `camera`. -- action: The method being called is `setup`. -- object: The data type being transmitted is `camera.setup`. -- response_format: The returned result is `camera.raw`, which is in YUV422 format. -- input: The name of the device being read. -- frame_width: The output video frame width. -- frame_height: The output video frame height. -- enoutput: Whether to enable the user result output. If camera images are not needed, do not enable this parameter, as - the video stream will increase the communication load of the channel. +- action: The method called is `setup`. +- object: The type of data transmitted is `camera.setup`. +- response_format: The output format is `image.yuyv422.base64`, which is in yuyv422 format. An optional format is image.jpeg.base64. +- input: The device name to be read. Example: "/dev/video0", "axera_single_sc850sl" +- frame_width: The width of the video frame output. +- frame_height: The height of the video frame output. +- enoutput: Whether to enable user result output. If you do not need to obtain camera images, do not enable this parameter, as the video stream will increase the communication pressure on the channel. +- enable_webstream: Whether to enable webstream output, webstream will listen on tcp:8989 port, and once a client connection is received, it will push jpeg images in HTTP protocol multipart/x-mixed-replace type. +- rtsp: Whether to enable rtsp stream output, rtsp will establish an RTSP TCP server at rtsp://{DevIp}:8554/axstream0, and you can pull the video stream from this port using the RTSP protocol. The video stream format is 1280x720 H265. Note that this video stream is only valid on the AX630C MIPI camera, and the UVC camera cannot use RTSP. Response JSON: @@ -137,7 +140,7 @@ Response JSON: "created": 1731652344, "data": { "enoutput": false, - "response_format": "camera.raw", + "response_format": "image.yuyv422.base64", "input": "/dev/video0", "frame_width": 320, "frame_height": 320 diff --git a/doc/projects_llm_framework_doc/llm_camera_zh.md b/doc/projects_llm_framework_doc/llm_camera_zh.md index 3610a81..97cacbe 100644 --- a/doc/projects_llm_framework_doc/llm_camera_zh.md +++ b/doc/projects_llm_framework_doc/llm_camera_zh.md @@ -15,11 +15,13 @@ "action": "setup", "object": "camera.setup", "data": { - "response_format": "camera.raw", + "response_format": "image.yuyv422.base64", "input": "/dev/video0", "enoutput": false, "frame_width": 320, - "frame_height": 320 + "frame_height": 320, + "enable_webstream":false, + "rtsp":"rtsp.1280x720.h265" } } ``` @@ -28,11 +30,13 @@ - work_id:配置单元时,为 `camera`。 - action:调用的方法为 `setup`。 - object:传输的数据类型为 `camera.setup`。 -- response_format:返回结果为 `camera.raw`,是 yuv422 格式。 -- input:读取的设备名。 +- response_format:返回结果为 `image.yuyv422.base64`,是 yuyv422 格式。可选 image.jpeg.base64 格式输出。 +- input:读取的设备名。示例:"/dev/video0", "axera_single_sc850sl" - frame_width:输出的视频帧宽。 - frame_height:输出的视频帧高。 - enoutput:是否起用用户结果输出。如果不需要获取摄像头图片,请不要开启该参数,视频流会增加信道的通信压力。 +- enable_webstream:是否启用 webstream 流输出,webstream 会监听 tcp:8989 端口,一但收到客户端连接,将会以 HTTP 协议 multipart/x-mixed-replace 类型推送 jpeg 图片。 +- rtsp:是否启用 rtsp 流输出,rtsp 会建立一个 rtsp://{DevIp}:8554/axstream0 RTSP TCP 服务端,可使用RTSP 协议向该端口拉取视频流。视频流的格式为 1280x720 H265。注意,该视频流只在 AX630C MIPI 摄像头上有效,UVC 摄像头无法使用 RTSP。 响应 json: @@ -136,7 +140,7 @@ error::code 为 0 表示执行成功。 "created": 1731652344, "data": { "enoutput": false, - "response_format": "camera.raw", + "response_format": "image.yuyv422.base64", "input": "/dev/video0", "frame_width": 320, "frame_height": 320