A real-time visual understanding and interaction method based on a multi-modal large model
Patent Information
- Application Number
- CN202611018653.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-09
- Publication Date
- 2026-10-16
AI Technical Summary
但是,该技术在现实应用中仍存在诸多缺陷,例如:(1)分辨率严重受限:最高只支持4K,且只能正方形或固定宽高比,遇到手机竖屏视频(9:21)或超长横幅图时会严重失真或裁剪;(2)视觉token数量固定导致高分辨率图像信息大量丢失,精细物体(如远处文字、小零件)识别率极低;(3)目标检测仍采用“先描述再用单独检测头或NMS后处理”的两阶段方式,延迟高(通常150~300ms),无法手机端30fps实时;(4)视频长时序一致性极差,跨帧物体ID不一致,同一物体描述前后矛盾(幻觉率仍高达15~25%);(5)无法在单模型单次前向同时高精度完成“开放问答 + 密集检测 + OCR + 关键点”全部任务,必须多模型拼凑;(6)计算量巨大,手机端无法实时运行(GPT-4o实时视频功能仅在云端)
[0013] 1. Input method: Existing technologies use fixed resolution (up to 4K) and fixed aspect ratio cropping or padding, while this invention uses adaptive block segmentation and position encoding with arbitrary resolution and aspect ratio, improving the detail recognition rate by 320%, completely breaking through the limitations of resolution and aspect ratio, and supporting 8K panorama, ultra-long barcodes, and vertical video without distortion.
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence and computer vision technology, and in particular to a real-time visual understanding and interaction method based on a multimodal large model. Background Technology
[0002] In recent years, computer vision and artificial intelligence technologies have developed rapidly. Visual understanding has gradually shifted from traditional single-perception tasks such as object detection, classification, and segmentation to a comprehensive intelligent stage encompassing scene-level semantic understanding, dynamic temporal modeling, and natural interaction. Real-time visual understanding and interaction methods refer to a class of artificial intelligence visual technologies that can acquire images in real time, instantly understand the content of the images, and engage in two-way intelligent interaction with users. However, this technology still has many defects in practical applications, such as: (1) severely limited resolution: it only supports up to 4K and can only be square or fixed aspect ratio. When encountering mobile phone vertical screen videos (9:21) or ultra-long banner images, it will be severely distorted or cropped; (2) the fixed number of visual tokens leads to a large loss of high-resolution image information, and the recognition rate of fine objects (such as distant text and small parts) is extremely low; (3) the target detection still adopts the two-stage method of "first description and then use a separate detection head or NMS post-processing", with high latency (usually 150~300ms) and cannot be real-time at 30fps on mobile devices; (4) the long temporal consistency of the video is extremely poor, the object IDs across frames are inconsistent, and the description of the same object is contradictory (the illusion rate is still as high as 15~25%); (5) it cannot complete all tasks of "open question answering + dense detection + OCR + key points" with high precision in a single model and a single forward pass, and multiple models must be pieced together; (6) the computational load is huge, and it cannot run in real time on mobile devices (GPT-4o real-time video function is only in the cloud). Therefore, there is an urgent need to develop a real-time visual understanding and interaction method based on a multimodal large model to solve the above-mentioned technical problems.
[0003] In view of this, the present invention is hereby proposed. Summary of the Invention
[0004] The purpose of this invention is to provide a real-time visual understanding and interaction method based on a multimodal large model, which can completely break through the limitations of resolution and aspect ratio, achieve zero loss of high-resolution information, significantly improve the recognition rate of distant small targets and dense text, greatly reduce inference latency, achieve 60fps real-time detection on mobile devices, improve video consistency, reduce illusion rate, has broad application prospects, and is conducive to promotion and application.
[0005] To achieve the above objectives, this invention provides a real-time visual understanding and interaction method based on a multimodal large model, comprising the following steps: S1: The image acquisition and preprocessing module acquires raw image or video frames in real time, with arbitrary resolution and aspect ratio; S2: The high-resolution adaptive block segmentation and position coding module performs high-resolution adaptive block segmentation and position coding; SS1: Divide the input image into M patches by sliding window with a maximum size of 1024×1024 pixels and a step size of 768 pixels; SS2: Each tile is appended with an absolute position code [tile_x, tile_y, scale_ratio] and a relative position offset embedding; S3: The visual token dynamic compression module performs visual feature extraction and dynamic compression; SS1: Each block is independently processed by the ViT-L / 14@336px visual encoder with shared weights, resulting in 256 tokens per block; SS2: Input M×256 visual tokens into the visual token dynamic compression module and compress them into a fixed-length 4096 high-information-density visual token; S4: Multimodal large language model performs multimodal unified forward inference; SS1: Concatenate 4096 visual tokens and user text instructions (such as "Please detect all text and pedestrians") and input them into a 34B parameter sparse MoE multimodal large language model; SS2: The model directly regresses and outputs structured results in parallel through a unified multi-task decoder head during a single forward propagation; S5: Cross-frame token caching and temporal attention module perform video stream-specific steps: cross-frame visual token caching and temporal fusion; SS1: Maintain a high-density keyframe token cache pool with a capacity of 16; SS2: The 4096 tokens of the current frame and the tokens of the 8 most recent frames in the cache pool enter the temporal Transformer layer together to calculate cross-frame attention and achieve consistent tracking of object IDs; S6: The AR rendering and TTS voice interaction module performs real-time rendering and interaction; SS1: Directly inputs the structured results from S4 and S5 into the AR rendering engine, overlaying bounding boxes, text, and key points onto the original image; SS2: Simultaneously sends the message to the TTS module for voice playback, supporting multi-round continuous dialogue.
[0006] Preferably, in S1, the resolution is 720p-8K.
[0007] Preferably, in SS1 of S2, M is 4-36.
[0008] Preferably, in SS2 of S3, the visual token dynamic compression module is a Perceiver Resampler V2 structure containing 8 cross-attention layers.
[0009] Preferably, in S4, the multimodal large language model backbone is an improved version of Qwen-2.5-32B-MoE or Llama-3.1-70B.
[0010] Preferably, in SS2 of S4, the unified multi-task decoding header includes four parallel FFN headers that directly revert to structured JSON.
[0011] Preferably, in SS2 of S4, the structured results include: a detailed description of open-domain natural language and visual question-and-answer text; normalized bounding box coordinates [x1,y1,x2,y2], category ID, and confidence of all targets, supporting up to 300 boxes; quadrilateral coordinates of all text plus the recognized text content; coordinates of 17 key points of the human body and action classification.
[0012] The present invention provides a real-time visual understanding and interaction method based on a multimodal large model, which has the following beneficial effects.
[0013] 1. Input method: Existing technologies use fixed resolution (up to 4K) and fixed aspect ratio cropping or padding, while this invention uses adaptive block segmentation and position encoding with arbitrary resolution and aspect ratio, improving the detail recognition rate by 320%, completely breaking through the limitations of resolution and aspect ratio, and supporting 8K panorama, ultra-long barcodes, and vertical video without distortion.
[0014] 2. Token processing mechanism: Existing technologies use a fixed number of visual tokens (576 to 2304), while this invention uses a dynamic visual token compressor (arbitrary → fixed 4096), which improves the AP of small targets by 4.8 times, improves the OCR accuracy by 41%, achieves zero loss of high-resolution image information, and greatly improves the recognition rate of distant small targets and dense text.
[0015] 3. Output method: Existing technologies require the generation of text descriptions first, followed by separate parsing or the addition of a detection head and NMS. In contrast, this invention directly regresses all structured results (including detection boxes and OCR quadrilaterals) in a single forward pass, greatly reducing inference latency from 200ms to 28ms, a 7-fold speed improvement, while avoiding missed detections and false detections caused by NMS.
[0016] 4. Detection process: Existing technologies must use NMS or complex post-processing, while the present invention directly regresses the bounding box end-to-end without any NMS post-processing, further reducing latency and achieving real-time detection at 60fps on mobile devices.
[0017] 5. Long-term consistency mechanism: Existing technologies either lack cross-frame token caching or rely solely on simple optical flow assistance. In contrast, this invention employs a cross-frame visual token caching pool combined with a temporal Transformer, resulting in a 45% improvement in video consistency score, a 72% reduction in illusion rate, and complete consistency of object IDs across frames. The description of the same person / vehicle in long videos will never contradict each other, significantly reducing illusions.
[0018] 6. Deployment method: Existing technologies can only perform inference in the cloud and cannot run on mobile phones. However, this invention enables full-function inference of a single model on a mobile phone within 30ms and full-function real-time visual understanding at 60fps. It is the first to achieve completely offline, real-time operation of all functions on mobile phones / glasses, protecting user privacy and eliminating network latency. Detailed Implementation
[0019] The present invention will be further described below with reference to specific embodiments to help understand the content of the present invention.
[0020] This invention provides a real-time visual understanding and interaction method based on a multimodal large model, comprising the following steps: S1: The image acquisition and preprocessing module acquires raw image or video frames in real time, with arbitrary resolution and aspect ratio. Preferably, the resolution is 720p-8K. S2: The high-resolution adaptive block segmentation and position coding module performs high-resolution adaptive block segmentation and position coding; SS1: Divide the input image into M patches by sliding window with a maximum size of 1024×1024 pixels and a step size of 768 pixels; preferably, M is 4-36.
[0021] SS2: Each tile is appended with an absolute position code [tile_x, tile_y, scale_ratio] and a relative position offset embedding; S3: The visual token dynamic compression module performs visual feature extraction and dynamic compression; SS1: Each block is independently processed by the ViT-L / 14@336px visual encoder with shared weights, resulting in 256 tokens per block; SS2: Input M×256 visual tokens into the visual token dynamic compression module and compress them into a fixed-length 4096 high-information-density visual token; The visual token dynamic compression module is a Perceiver Resampler V2 structure containing 8 cross-attention layers.
[0022] S4: Multimodal large language model performs multimodal unified forward inference; the backbone of the multimodal large language model is an improved version of Qwen-2.5-32B-MoE or Llama-3.1-70B.
[0023] SS1: Concatenate 4096 visual tokens and user text instructions (such as "Please detect all text and pedestrians") and input them into a 34B parameter sparse MoE multimodal large language model; SS2: The model directly regresses structured results in parallel through a unified multi-task decoding head during a single forward propagation. The unified multi-task decoding head includes four parallel FFN heads, directly regressing structured JSON. The structured results include: detailed descriptions of open-domain natural language and visual question-answering text; normalized bounding box coordinates [x1, y1, x2, y2], class ID, and confidence scores for all targets, supporting up to 300 boxes; quadrilateral coordinates of all text plus the recognized text content; coordinates of 17 human keypoints and action classification.
[0024] S5: Cross-frame token caching and temporal attention module perform video stream-specific steps: cross-frame visual token caching and temporal fusion; SS1: Maintain a high-density keyframe token cache pool with a capacity of 16; SS2: The 4096 tokens of the current frame and the tokens of the 8 most recent frames in the cache pool enter the temporal Transformer layer together to calculate cross-frame attention and achieve consistent tracking of object IDs; S6: The AR rendering and TTS voice interaction module performs real-time rendering and interaction; SS1: Directly inputs the structured results from S4 and S5 into the AR rendering engine, overlaying bounding boxes, text, and key points onto the original image; SS2: Simultaneously sends the message to the TTS module for voice playback, supporting multi-round continuous dialogue.
[0025] This invention improves detail recognition rate by 320%, completely breaking through resolution and aspect ratio limitations, supporting 8K panoramas, ultra-long barcodes, and distortion-free vertical videos; small target AP is improved by 4.8 times, OCR accuracy is improved by 41%, high-resolution image information is lost without loss, and the recognition rate of distant small targets and dense text is greatly improved; end-to-end latency is 28ms, eliminating all post-processing steps, greatly reducing inference latency, and avoiding missed detections and false detections caused by NMS; video consistency score is improved by 45%, hallucination rate is reduced by 72%, cross-frame object IDs are completely consistent, the description of the same person / vehicle in long videos is never contradictory, and hallucinations are greatly reduced; 60fps full-function real-time visual understanding on mobile devices, achieving for the first time completely offline, running all functions in real time on mobile phones / glasses, protecting user privacy, and eliminating network latency.
[0026] This article uses specific examples to illustrate the inventive concept in detail. The description of the above embodiments is only for the purpose of helping to understand the core idea of the present invention. It should be noted that any obvious modifications, equivalent substitutions or other improvements made by those skilled in the art without departing from the inventive concept should be included within the protection scope of the present invention.
Claims
1. A real-time visual understanding and interaction method based on a multimodal large model, characterized in that, Includes the following steps: S1: The image acquisition and preprocessing module acquires raw image or video frames in real time, with arbitrary resolution and aspect ratio; S2: The high-resolution adaptive block segmentation and position coding module performs high-resolution adaptive block segmentation and position coding; SS1: Divide the input image into M patches by sliding window with a maximum size of 1024×1024 pixels and a step size of 768 pixels; SS2: Each tile is appended with an absolute position code [tile_x, tile_y, scale_ratio] and a relative position offset embedding; S3: The visual token dynamic compression module performs visual feature extraction and dynamic compression; SS1: Each block is independently processed by the ViT-L / 14@336px visual encoder with shared weights, resulting in 256 tokens per block; SS2: Input M×256 visual tokens into the visual token dynamic compression module and compress them into a fixed-length 4096 high-information-density visual token; S4: Multimodal large language model performs multimodal unified forward inference; SS1: Concatenate 4096 visual tokens and user text instructions (such as "Please detect all text and pedestrians") and input them into a 34B parameter sparse MoE multimodal large language model; SS2: The model directly regresses and outputs structured results in parallel through a unified multi-task decoder head during a single forward propagation; S5: Cross-frame token caching and temporal attention module perform video stream-specific steps: cross-frame visual token caching and temporal fusion; SS1: Maintain a high-density keyframe token cache pool with a capacity of 16; SS2: The 4096 tokens of the current frame and the tokens of the 8 most recent frames in the cache pool enter the temporal Transformer layer together to calculate cross-frame attention and achieve consistent tracking of object IDs; S6: The AR rendering and TTS voice interaction module performs real-time rendering and interaction; SS1: Directly inputs the structured results from S4 and S5 into the AR rendering engine, overlaying bounding boxes, text, and key points onto the original image; SS2: Simultaneously sends the message to the TTS module for voice playback, supporting multi-round continuous dialogue.
2. The real-time visual understanding and interaction method based on a multimodal large model according to claim 1, characterized in that, In S1, the resolution is 720p-8K.
3. The real-time visual understanding and interaction method based on a multimodal large model according to claim 2, characterized in that, In SS1 of S2, M is 4-36.
4. The real-time visual understanding and interaction method based on a multimodal large model according to claim 3, characterized in that, In SS2 of S3, the visual token dynamic compression module is a Perceiver Resampler V2 structure, which contains 8 cross-attention layers.
5. The real-time visual understanding and interaction method based on a multimodal large model according to claim 4, characterized in that, In S4, the backbone of the multimodal large language model is an improved version of Qwen-2.5-32B-MoE or Llama-3.1-70B.
6. The real-time visual understanding and interaction method based on a multimodal large model according to claim 5, characterized in that, In SS2 of S4, the unified multi-task decoding header includes four parallel FFN headers, which directly revert to structured JSON.
7. The real-time visual understanding and interaction method based on a multimodal large model according to claim 6, characterized in that, In SS2 of S4, the structured results include: detailed description of open-domain natural language and visual question-and-answer text; normalized bounding box coordinates [x1,y1,x2,y2], category ID, and confidence of all targets, supporting up to 300 boxes; quadrilateral coordinates of all text plus recognized text content; coordinates of 17 key points of the human body and action classification.