Port 5G intelligent target detection-oriented real-time video code rate optimization system

By dividing the video frame into independent coding areas in the smart port application scenario and allocating bits based on the complexity of the target detection object, the problem of low target detection accuracy in the existing system is solved, and efficient transmission and control of the video rate control system are achieved. Maximizing target detection capabilities.

CN118590691AInactive Publication Date: 2024-09-03FUJIAN HUADIAN STORAGE & TRANSPORTATION CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411054955.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In smart port application scenarios, existing video rate control systems cannot effectively guarantee target detection accuracy. Traditional methods focus more on PSNR and SSIM rather than semantic information.

Method used

Design a video rate control system based on target detection for port 5G applications. Video is collected through surveillance cameras and preprocessed at the sending end. The video frame is divided into multiple independent coding areas, and bits are allocated according to the complexity of the target detection object. , using deep learning models for code rate control, and establishing a video semantics-driven guidance model to optimize target detection tasks.

Benefits of technology

Effectively save transmission bit rate and bandwidth resources, maximize the target detection accuracy of terminal edge AI devices, and improve target detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590691A
    Figure CN118590691A
Patent Text Reader

Abstract

The invention relates to a port-oriented 5G intelligent target detection real-time video code rate optimization system, which comprises a sending end and edge AI equipment, and is characterized in that the sending end comprises a roadside camera, a video input unit, a video preprocessing unit and a code rate distribution model unit; the sending end is connected with the edge AI equipment for signal interaction; the monitoring camera is used for collecting on-site videos; the video preprocessing unit is used for preprocessing an on-site video to obtain a relationship between target detection accuracy and a quantization parameter QP and optimal model parameter data, reading a video stream, and dividing a video frame into different regions for video coding; the edge AI device receives the collected on-site video and executes a target detection task through deep learning target detection; and the code rate distribution model unit performs code rate control on the input video frame, and executes a video code rate algorithm to process a target detection task according to the established video semantic driving guidance model, so that the target detection accuracy can be maximized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of machine vision technology, and specifically relates to a video bit rate control system based on target detection for port 5G applications. Background Art

[0002] With the development of computer vision technology and communication technology, new technologies that combine the Internet of Things with artificial intelligence technology to understand and analyze the semantics of large amounts of video data obtained by surveillance cameras are developing rapidly; currently, computer vision algorithms have been widely used in video signal processing in tasks such as image classification and target detection.

[0003] In the current smart port application scenarios, the videos collected by the surveillance cameras are pre-processed and then transmitted to the mobile edge computing server with the help of the Internet of Things for video semantic task processing, such as target detection. In the process of video bit rate control, traditional bit rate optimization methods usually use PSNR and SSIM as optimization targets. However, in machine vision application scenarios, machines usually do not pay attention to their video quality, but to the semantic information that the video can express, such as target detection accuracy.

[0004] In the compression encoding process, the quantization parameter factor QP is one of the important factors affecting the video bit rate. The smaller the QP value, the smaller the compression step size, the closer the video bit rate is to the original video bit rate, the better the corresponding video quality, and the higher the target detection accuracy. The larger the QP value, the smaller the video bit rate, the worse the corresponding video quality, and the lower the corresponding target detection accuracy.

[0005] Based on this, a system is needed to improve the accuracy of target detection in smart port application scenarios. Summary of the invention

[0006] In order to solve the problem that the target detection rate cannot be guaranteed in the existing smart port application target detection system, the purpose of the present invention is to provide a video bit rate control system based on target detection for port 5G applications, which can enable the terminal to obtain the maximum target detection accuracy.

[0007] The technical solution of the present invention is as follows: A target detection-based video bit rate control system for port 5G applications, comprising a transmitter and a terminal, wherein the transmitter comprises a surveillance camera and a video input unit, a video preprocessing unit, and a bit rate allocation model unit; The transmitting end and the terminal are connected to perform signal interaction; The terminal is an edge AI device, including a target detection unit and an optimal detection result output unit; Surveillance cameras are used to collect on-site video; The video preprocessing unit preprocesses the live video to obtain the relationship between the target detection accuracy and the quantization parameter QP, as well as the optimal model parameter data, and reads the video stream to divide the video frame into different areas for video encoding; The target detection unit is responsible for performing target detection on the detection object in the received video; The optimal detection result output unit outputs the detection result to a display interface; The terminal edge AI device receives the collected live video and performs target detection tasks through deep learning target detection; The bit rate allocation model unit performs bit rate control on the input video frames and executes the video bit rate algorithm to process the target detection task according to the established video semantic driven guidance model.

[0008] Preferably, the preprocessing is specifically as follows: the video preprocessing unit receives the video stream through the RTSP protocol, performs video compression preprocessing on the received video stream, obtains the optimal model parameters, and the relationship between the target detection accuracy and the quantization parameter QP, wherein the relationship between the target detection accuracy and the quantization parameter QP is as follows: , represents the target detection accuracy, represents QP, , and is the model parameter.

[0009] Preferably, the video stream is read and the video frame is divided into different areas for video encoding, specifically: a video stream of a live video is obtained, and a Slice operation is used to divide the video frame into a number of independent video encoding areas.

[0010] Preferably, allocating different bits according to the complexity of the target detection object in each area of ​​the video frame includes: Step 1: A three-layer bit allocation scheme is adopted, namely, the GOP layer, the frame layer, and the LCU layer to allocate bits step by step to improve the utilization efficiency of the bit rate; Step 2: For areas with simple texture in the video, a larger CU block is selected to encode using a small number of bits; Step 3: The LCU layer uses a pixel gradient-based method to measure the complexity of each region. The gradient calculation formula of the CTU block in each region is: ; Where: Indicates the pixel gradient of the current CTU block, Represents each pixel at the coordinate The brightness value at and Represent the width and height of the current CTU block, and the gradient G of each video area j The calculation formula is: ; Where: L represents the number of CTU blocks contained in each area; Since multiple slices and multiple tiles are used to evenly divide the video frame, the complexity F of the N regions divided into each video frame is j The sum complexity set F is expressed as follows: F j =G j ; Preferably, the complexity of each region is used as the weight of the allocated bit in the frame to adaptively allocate the target bit, and the complexity is used to adaptively allocate bits to each region of the video frame, and the weight K of the complexity of the content of the jth region to the target bit complexity of the entire video frame is calculated. j : ; Where: represents the complexity of the jth region, Represents the sum of the complexities of all regions.

[0011] Therefore, the target number of bits obtained by the jth region It is expressed as: ; Where: Indicates the number of bits obtained by the current video frame.

[0012] A unified model is derived by normalizing the distortion and the number of bits per pixel to determine the quantization parameter QP for each region.

[0013] Preferably, the formula of the quantization parameter QP corresponding to each independent region of the video frame is as follows: ; Where: and represents the update parameter of the current region of the video frame, q j is the quantization parameter QP, C1 and C2 are preset values, G j is the total pixel value of the detection area.

[0014] Preferably, the edge AI device performs target detection tasks on the received video stream after bit rate control using a target detection model, and outputs it to the terminal display of the port background.

[0015] Preferably, the sending end and the terminal are connected via RTSP and 5G.

[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a video bit rate control system based on target detection for port 5G applications. The monitoring video captured by the camera is divided into multiple independent coding areas. According to the content characteristics of the target detection object in the video frame, the characteristic relationship between the target bit and the detection object is analyzed, and a new complexity allocation weight is established, which effectively saves the transmission bit rate and bandwidth resources, and can maximize the target detection accuracy when the terminal edge AI device performs the target detection task, thereby effectively improving the target detection capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is an overall block diagram of the system embodiment of the present invention; Figure 2 It is a schematic diagram of the bit allocation process of the bit rate control link of the transmitting end of the present invention; Figure 3 It is a schematic diagram of the processing flow of the terminal edge AI device of the present invention. DETAILED DESCRIPTION

[0018] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0019] See also Figure 1 , a target detection-based video bit rate control system for port 5G applications, including a transmitting end and a terminal, wherein the transmitting end includes a monitoring camera and a video input unit, a video preprocessing unit, and a bit rate allocation model unit; The transmitting end and the terminal are connected to perform signal interaction; The terminal is an edge AI device, including a target detection unit and an optimal detection result output unit; Surveillance cameras are used to collect on-site video; The video preprocessing unit preprocesses the live video to obtain the relationship between the target detection accuracy and the quantization parameter QP, as well as the optimal model parameter data, and reads the video stream to divide the video frame into different areas for video encoding; The terminal edge AI device receives the collected live video and performs target detection tasks through deep learning target detection; The bit rate allocation model unit performs bit rate control on the input video frames and executes the video bit rate algorithm to process the target detection task according to the established video semantic driven guidance model.

[0020] See also Figure 2In one embodiment of the present invention, the bit rate allocation model unit adopts a three-layer bit allocation method of GOP layer, frame layer, and LCU layer; at the LCU layer, the input video frame is divided into N independent coding areas, and the LCU layer uses the variance based on the discrete degree of pixels to measure the complexity of each area. According to the relationship between the target detection object and the texture complexity, the complexity of each video area is obtained, and the RD and R-λ-Q models are established to sort the complexity factors of each area. The target bits of each area are adaptively allocated, and the quantization parameter factor QP is obtained according to the RD and R-λ-Q models; The working principle of the code rate allocation model unit is as follows: Step 1: The GOP layer, frame layer, and LCU layer allocate bits downward step by step to improve the utilization efficiency of the bit rate; Step 2: For areas with simple textures in the video, larger CU blocks are selected to use a small number of bits for encoding; for areas where detection objects such as pedestrians and vehicles are located, smaller CU blocks are selected for encoding and more bits are allocated. The more pedestrians, vehicles and other targets there are in each area of ​​the video frame, the higher the texture complexity, and more bits are allocated to the area accordingly.

[0021] Step 3: The LCU layer uses a pixel gradient-based method to measure the complexity of each region. The gradient calculation formula of the CTU block in each region is: ; Where: Indicates the pixel gradient of the current CTU block, Represents each pixel at the coordinate The brightness value at and Represent the width and height of the current CTU block, and the gradient G of each video area j The calculation formula is: ; Where: L represents the number of CTU blocks contained in each area; Since multiple slices and multiple tiles are used to evenly divide the video frame, the complexity F of the N regions divided into each video frame is j The sum complexity set F is expressed as follows: F j =G j ; In one embodiment of the present invention, the complexity of each region is used as the weight of the allocated bit in the frame to adaptively allocate the target bit, and the complexity is used to adaptively allocate bits to each region of the video frame. The weight of the content complexity of the jth region to the target bit complexity of the entire video frame is calculated: ; Where: represents the complexity of the jth region, Represents the sum of the complexities of all regions.

[0022] Therefore, the target obtained in the jth region can be rewritten as: ; Where: Indicates the number of bits obtained by the current video frame.

[0023] The uniform The model is used to determine the quantization parameter QP of each region.

[0024] Further, based on the previous embodiment, the formula of the quantization parameter QP corresponding to each independent region of the video frame is as follows: ; Where: and represents the update parameter of the current region of the video frame, q j is the quantization parameter QP, C1 and C2 are preset values, C1=4.2005, C2=13.7122, G j is the total pixel value of the area.

[0025] In another embodiment of the present invention, the preprocessing is specifically: the video preprocessing unit receives the video stream through the RTSP protocol, performs video compression preprocessing on the received video stream, and obtains the optimal model parameters, and the relationship between the target detection accuracy and the quantization parameter QP, wherein the relationship between the target detection accuracy and the quantization parameter QP is as follows: , represents the target detection accuracy, represents QP, , and is the model parameter.

[0026] The video stream includes video frames, and the video stream is composed of video frames one by one.

[0027] In addition, in the embodiment of the present invention, the video stream is read and the video frame is divided into different areas for video encoding, specifically: a video stream of a live video is obtained, and a Slice operation is used to divide the video frame into a number of independent video encoding areas.

[0028] See also Figure 3,In the present invention, the edge AI device performs the target detection task on the received ,video stream after bit rate control using the target detection model, and outputs it to the ,terminal display of the port background.

[0029] The terminal device includes a buffer module, which decodes the acquired video stream and stores it in a frame column module frame by frame. The buffer module is a module built in the edge AI device, which can transmit the encoded video frames frame by frame to reduce the phenomenon of video freeze and frame loss.

[0030] The buffer module stores the processed frames in the queue module and outputs them to the port backend terminal interface for display In another embodiment of the present invention, the sending end and the terminal are connected via RTSP and 5G to perform signal interaction.

[0031] The target detection unit module extracts and matches features of each frame image with adjacent frame images to obtain the target detection object.

[0032] The system workflow is as follows: Step 1: The roadside camera collects on-site video and performs video preprocessing to obtain the relationship between the target detection accuracy and the quantization parameter QP.

[0033] Step 2: The bit rate control system reads the video stream and divides the video frame into different areas for video encoding; Step 3: Allocate different bits according to the complexity of the target detection object in each area of ​​the video frame, and calculate the corresponding quantization parameter QP of each independent area of ​​the video frame; Step 4: Edge AI device performs target detection.

[0034] The present invention divides the surveillance video captured by the camera into multiple independent coding areas, analyzes the characteristic relationship between the target bit and the detection object according to the content characteristics of the target detection object in the video frame, establishes a new complexity allocation weight, effectively saves the transmission bit rate, and saves bandwidth resources. It can also maximize the target detection accuracy when the terminal edge AI device performs the target detection task, effectively improving the target detection capability.

[0035] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A video bit rate control system based on target detection for port 5G applications, characterized in that: It includes a transmitting end and a terminal, wherein the transmitting end includes a monitoring camera and a video input unit, a video preprocessing unit, and a bit rate allocation model unit; The transmitting end and the terminal are connected to perform signal interaction; The terminal is an edge AI device, including a target detection unit and an optimal detection result output unit; Surveillance cameras are used to collect on-site video; The video preprocessing unit preprocesses the live video to obtain the relationship between the target detection accuracy and the quantization parameter QP, as well as the optimal model parameter data, and reads the video stream to divide the video frame into different areas for video encoding; The target detection unit is responsible for performing target detection on the detection object in the received video; The optimal detection result output unit outputs the detection result to a display interface; The terminal edge AI device receives the collected live video and performs target detection tasks through deep learning target detection; The bit rate allocation model unit performs bit rate control on the input video frames and executes the video bit rate algorithm to process the target detection task according to the established video semantics driven guidance model; The bit rate allocation model unit is specifically: allocating different bits according to the complexity of the target detection object in each area of ​​the video frame includes: Step 1: A three-layer bit allocation scheme is adopted, namely, the GOP layer, the frame layer, and the LCU layer to allocate bits step by step to improve the utilization efficiency of the bit rate; Step 2: For areas with simple texture in the video, a larger CU block is selected to encode using a small number of bits; Step 3: The LCU layer uses a pixel gradient-based method to measure the complexity of each region. The gradient calculation formula of the CTU block in each region is: ; Where: Indicates the pixel gradient of the current CTU block, Represents each pixel at the coordinate The brightness value at and Represent the width and height of the current CTU block, and the gradient G of each video area j The calculation formula is: ; Where: L represents the number of CTU blocks contained in each area; Since multiple slices and multiple tiles are used to evenly divide the video frame, the complexity F of the N regions divided into each video frame is j The sum complexity set F is expressed as follows: F j =G j ; The complexity of each region is used as the weight of the allocated bit in the frame to adaptively allocate the target bit. The complexity is used to adaptively allocate bits to each region of the video frame, and the weight K of the content complexity of the jth region to the target bit complexity of the entire video frame is calculated. j : ; Where: represents the complexity of the jth region, represents the sum of the complexity of all regions; Therefore, the target number of bits obtained by the jth region It is expressed as: ; Where: Indicates the number of bits obtained by the current video frame; The formula of the quantization parameter QP corresponding to each independent area of ​​the video frame is as follows: ; Where: and represents the update parameter of the current region of the video frame, q j is the quantization parameter QP, C1 and C2 are preset values, G j is the total pixel value of the detection area.

2. According to claim 1, a video bit rate control system based on target detection for port 5G applications is characterized in that: The preprocessing is specifically as follows: the video preprocessing unit receives the video stream through the RTSP protocol, performs video compression preprocessing on the received video stream, obtains the optimal model parameters, and the relationship between the target detection accuracy and the quantization parameter QP, wherein the relationship between the target detection accuracy and the quantization parameter QP is specifically as follows: , represents the target detection accuracy, represents QP, , and is the model parameter.

3. According to claim 2, a video bit rate control system based on target detection for port 5G applications is characterized in that: The described reading of the video stream and dividing the video frame into different areas for video encoding specifically includes: obtaining the video stream of the live video, and dividing the video frame into a number of independent video encoding areas by using Slice operation.

4. According to claim 1, a video bit rate control system based on target detection for port 5G applications is characterized in that: The edge AI device uses the target detection model to perform target detection tasks on the received video stream after bit rate control, and outputs it to the terminal interface display of the port background.

5. According to claim 1, a video bit rate control system based on target detection for port 5G applications is characterized in that: The sending end and the terminal are connected via RTSP and 5G.

Citation Information

Patent Citations

  • Rate control using complexity in video coding

    US20150215621A1