Electronic information transmission method and electronic equipment

By performing frame-division, blocking and differential compression processing on the monitoring video, combining optical flow method and grayscale change analysis, dynamically adjusting the differential length and blocking strategy, the inefficient compression efficiency caused by inconsistent grayscale changes in the monitoring video in the monitoring video is solved. Problem, efficient video transmission is achieved.

CN118921442BActive Publication Date: 2025-02-07CHONGQING YIBAO INTELLIGENT ELECTRONIC DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411404329.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-02-07
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

The consistency of grayscale changes between adjacent frame images in the monitoring video is different, resulting in excessive information loss or inefficient compression during differential compression.

Method used

By performing frame-based and block processing on the monitoring video, keyframes are extracted using the optical flow method, the grayscale changes between each image and the next image are calculated, the difference length threshold is dynamically adjusted, and the accumulated grayscale changes are performed again Block determination to achieve efficient differential compression.

Benefits of technology

It improves the compression efficiency of surveillance video, reduces information loss, and maintains the integrity of video details and improves the efficiency of video transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921442B_ABST
    Figure CN118921442B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image communication technology, and specifically to an electronic information transmission method and electronic equipment, including: obtaining each block of each frame image; recording the first frame image as the first analysis image, obtaining the grayscale change of each block of each frame image and the next frame image of each frame image, and then obtaining the initial differential length of each block of the first analysis image, and compressing each frame image according to the initial differential length; obtaining the coded frame image of the kth block of the first analysis image; obtaining the second analysis image; obtaining the cumulative grayscale change of the coded frame image from the first analysis image to the kth block of the first analysis image, and then obtaining the possibility of re-blocking the kth block of the second analysis image, and judging the block of the kth block of the second analysis image according to the re-blocking possibility, thereby compressing each frame image and completing the monitoring video transmission. The present application aims to improve the compression efficiency without losing the detailed information of the monitoring video during transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image communication technology, and in particular to an electronic information transmission method and electronic equipment. Background Art

[0002] Electronic information transmission refers to the electronic transmission of information between the sender and the receiver, including digital data, images, videos, and audio. Among them, video, as a form of information that can intuitively observe the content, is widely used in various scenarios such as monitoring and conferencing. With the technological advancement of surveillance cameras and surveillance systems, the continuous improvement of video resolution has also increased the demand for transmission bandwidth and compression technology. The compressed transmission of surveillance images based on 5G technology not only improves the performance of the surveillance system, but also promotes the innovation of surveillance technology and applications. This has a positive social impact on improving urban management, public safety, etc. Therefore, the collected surveillance videos need to be compressed before transmission.

[0003] The difference between the grayscale change areas between adjacent frames of surveillance video is small. Differential compression can be used to efficiently compress and transmit surveillance video. However, due to the motion of surveillance video, that is, the foreground area (moving object area) in adjacent frames is moving, there may be different consistency of grayscale changes between adjacent frames. Therefore, in the process of differential compression of each frame of surveillance video, if the differential length is set too large, it will cause excessive information loss of surveillance video. If differential compression is performed frame by frame, the compression efficiency will be low. Summary of the invention

[0004] In order to solve the above problems, the present application provides an electronic information transmission method and an electronic device.

[0005] The electronic information transmission method and electronic device of the present application adopt the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides an electronic information transmission method, the method comprising the following steps:

[0007] Collect surveillance video, perform frame processing on the surveillance video, and obtain each frame image;

[0008] Each frame of image is segmented to obtain each block of each frame of image; according to the grayscale value of each pixel point in each block of each frame of image, the grayscale change of each block of each frame of image and the next frame of image is obtained; the first frame of image is recorded as the first analysis image, and according to the grayscale change of each block of each frame of image and the next frame of image, the initial differential length of each block of the first analysis image is obtained;

[0009] All key frame images in the surveillance video are extracted using the optical flow method, the last frame of all the key frame images is taken as the latest key frame image, and the number of interval frame images between the first analysis image and the latest key frame image is recorded as the differential length threshold; the differential length of each block of the first analysis image is obtained according to the differential length threshold and the initial differential length of each block of the first analysis image; each frame image is compressed once according to the differential length of each block of the first analysis image;

[0010] For the first analysis image blocks, according to the first analysis image The difference length of the blocks is used to obtain the first analysis image. The coded frame image of the first block; the first analysis image The next frame image of the coded frame image of the block is recorded as the second analysis image; according to the gray value of the pixel point in each block of each frame image, the first analysis image to the first analysis image are obtained. The accumulated grayscale changes of the coded frame images of the blocks; The accumulated grayscale changes of the coded frame images of blocks are used to obtain the first The possibility of re-blocking the blocks; The possibility of re-blocking the blocks is The blocks are divided into blocks to compress each frame of the image;

[0011] Modulation is performed based on the compression results of all frame images to complete the transmission of the surveillance video.

[0012] Preferably, the step of segmenting each frame of image to obtain each block of each frame of image includes the following specific steps:

[0013] The number of preset blocks is , based on the number of blocks, the first frame image is segmented using a superpixel segmentation algorithm to obtain blocks of the first frame image, and each of the other frames of the image is divided into blocks according to the blocks of the first frame image to obtain blocks of each of the other frames of the image.

[0014] Preferably, the step of obtaining the grayscale change of each block of each frame image and the next frame image according to the grayscale value of the pixel point in each block of each frame image comprises the following specific steps:

[0015] When The frame image In the block The gray value of the pixel is The frame image In the block When the grayscale values ​​of pixels are inconsistent, The frame image In the block The pixel is recorded as Frame image and The frame image The pixel points with inconsistent grayscale changes in the blocks are counted. Frame image and The frame image The number of pixels with inconsistent grayscale changes in each block;

[0016]

[0017] In the formula, Representative Frame image and The frame image Grayscale changes of each block; Represents the first The number of pixels in a block; Representative Frame image and The frame image The number of pixels with inconsistent grayscale changes in each block; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; Represents the sigmoid function.

[0018] Preferably, the first frame image is recorded as the first analysis image, and the initial differential length of each block of the first analysis image is obtained according to the grayscale change of each block of each frame image and the next frame image of each frame image. The specific acquisition steps are as follows:

[0019] Preset grayscale change threshold , record the first frame image as the first analysis image, obtain the first analysis image and the second frame image The grayscale changes of the first analysis image and the second frame image are The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is ;

[0020] When the first analysis image and the second frame image The grayscale change of the block is less than the grayscale change threshold When the second frame image and the third frame image are obtained The grayscale change of each block is compared with the grayscale change threshold, and so on, until the Frame image and The frame image The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is .

[0021] Preferably, the step of obtaining the differential length of each block of the first analysis image according to the differential length threshold and the initial differential length of each block of the first analysis image; and compressing each frame of the image once according to the differential length of each block of the first analysis image comprises the following specific steps:

[0022] If the first analysis image The initial difference length of the blocks is greater than or equal to the difference length threshold, the first analysis image The difference length of the blocks is the difference length threshold. If the first analysis image The initial difference length of the block is less than the difference length threshold, and the first analysis image The difference length of each block is the first analysis image. The initial differential length of the blocks;

[0023] The first analysis image The difference length of the blocks is recorded as , using the differential compression algorithm to analyze the first image Block, The frame image blocks and the first analysis image and the The first of all frames between the frames Blocks are compressed.

[0024] Preferably, the first analysis image blocks, according to the first analysis image The difference length of the blocks is used to obtain the first analysis image. The specific steps of coding a frame image of blocks are as follows:

[0025] The first analysis image The difference length of the blocks is recorded as , will The frame image is the first analysis image. A coded frame image of blocks.

[0026] Preferably, the grayscale values ​​of the pixels in each block of each frame image are used to obtain the first analysis image to the first analysis image. The cumulative grayscale changes of the coded frame image of each block include the following specific steps:

[0027]

[0028] In the formula, represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; Represents the first The number of pixels in a block; The first analyzed image The difference length of the blocks.

[0029] Preferably, the first analysis image to the second analysis image The accumulated grayscale changes of the coded frame images of blocks are used to obtain the first The possibility of re-blocking a block includes the following specific steps:

[0030]

[0031] In the formula, The second analysis image The possibility of re-dividing a block; Represents the coefficient of variation of the sequence composed of the grayscale changes of the kth block in all frame images between the first frame image and the rth frame image; represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Represents the second analysis image to the first The frame image The cumulative grayscale change of each block; Represents the absolute value symbol; Represents the normalization function.

[0032] Preferably, the second analysis image is The possibility of re-blocking the blocks is The blocks are divided into blocks to compress each frame of the image. The specific steps are as follows:

[0033] Preset block possibilities , if the second analysis image When the re-blocking probability of a block is greater than the block possibility threshold, the superpixel segmentation algorithm is used to segment the first block of the second analysis image. The blocks are segmented to obtain the first Each block of the blocks, according to the first block of the second analysis image For each block of each frame image after the second analysis image, The blocks are divided to obtain the first For each block of the second analysis image, The differential length of each block and the possibility of re-blocking are analyzed and compressed;

[0034] When the second analysis image When the re-blocking probability of a block is less than or equal to the blocking probability threshold, the second analysis image Block, The frame image blocks and the second analysis image to the The first of all frames between the frames Differential compression is performed on blocks to obtain the The frame image The possibility of re-dividing the blocks is analyzed.

[0035] In a second aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of any one of the above-mentioned methods for transmitting electronic information are implemented.

[0036] The beneficial effects of the technical solution of the present application are as follows: the present application first collects each frame of image according to the surveillance video, divides each frame of image into blocks, and compresses each block of each frame of image, thereby improving the compression efficiency; the first frame of image is recorded as the first analysis image, and the grayscale change of each block of each frame of image and the next frame of image of each frame of image is obtained, and then the initial differential length of each block of the first analysis image is obtained to compress each frame of image, and the blocks corresponding to the continuous frame images with consistent grayscale changes are compressed, thereby improving the compression efficiency; for each block of the first analysis image, the coded frame image of each block of the first analysis image is obtained, and the second analysis image of the coded frame image of each block of the first analysis image is obtained; according to the cumulative grayscale change of the coded frame image of each block of the first analysis image to the first analysis image, the possibility of re-blocking of each block of the second analysis image is obtained, and the block division of each block of the second analysis image is determined, and the blocks with grayscale changes in the subsequent frame images are re-blocked and compressed, and the transmission efficiency of the surveillance video is improved by adjusting the compression degree of different blocks in the surveillance video, which can improve the compression efficiency without losing the detail information in the surveillance video. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flowchart of a method for transmitting electronic information provided in an embodiment of the present application;

[0039] Figure 2 A flowchart for implementing secondary segmentation processing of each block in a second analysis image provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the electronic information transmission method and electronic device proposed in accordance with the present application, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0042] The following is a detailed description of an electronic information transmission method and a specific solution of an electronic device provided by the present application in conjunction with the accompanying drawings.

[0043] See also Figure 1 , which shows a flowchart of a method for transmitting electronic information provided by an embodiment of the present application, the method comprising the following steps:

[0044] S001. Collect surveillance video, divide the surveillance video into frames, and obtain each frame image.

[0045] In this application, the surveillance video is taken as the electronic information that needs to be transmitted. By analyzing each frame of the surveillance video, each frame is divided into blocks, and each block of each frame is compressed to improve the compression efficiency, thereby improving the transmission efficiency of the surveillance video.

[0046] It should be noted that the purpose of this application is to compress the surveillance video, so it is first necessary to collect the surveillance video and obtain each frame image based on the surveillance video.

[0047] In an embodiment of the present application, any surveillance camera is used outdoors to record a video to obtain a surveillance video, and the surveillance video is frame-processed to obtain each frame image.

[0048] S002. Obtain the grayscale change of each block of each frame image and the next frame image according to the grayscale value of each block of each frame image; obtain the differential length of each block of the first analysis image according to the differential length threshold and the initial differential length of each block of the first analysis image, and perform differential compression on each frame image according to the differential length of each block of the first analysis image.

[0049] It should be noted that the compression of the surveillance video is to compress each frame of the acquired image, and the differential compression algorithm is used. The grayscale values ​​of pixels between corresponding positions of adjacent frame images are consistent, so as to obtain a smaller differential value to achieve efficient compression of the image data. The foreground tends to have a larger grayscale change in adjacent frame images, while the background area (non-moving object area) has a smaller grayscale change in adjacent frame images. Combining this feature of the surveillance video, efficient compression can be achieved by performing differential compression after dividing each frame of the image into blocks. Therefore, in the embodiment of the present application, it is necessary to first divide the first frame of the image into blocks, and then complete the dividing of other frame images according to the dividing result of the first frame of the image.

[0050] It should be further explained that, since different positions in the surveillance video may have different motion conditions, the same area will have different changes in adjacent frame images of different lengths, that is, after the first frame image is divided into blocks, each block area will have different changes in subsequent frame images. If the differential length of each block is set too large during differential compression of the surveillance video, it will cause excessive information loss in the surveillance video. If differential compression is performed frame by frame, the compression efficiency is low. Therefore, for any block of the first frame image, it is necessary to determine the grayscale change between the block and the block of the next frame image of the first frame image. If the grayscale change is small, it means that the block of the first frame image and the block of the next frame image of the first frame image can be differentially compressed. If the differential length of any block of the first frame image is , that is, the first frame image, frame image and the first frame image and the The grayscale changes of this block in all frame images between frame images are consistent, so the grayscale changes of the first frame image, the frame image and the first frame image and the This block of all frame images between frame images is compressed using a differential compression algorithm.

[0051] In the embodiment of the present application, the number of preset blocks is Based on the number of blocks, the first frame image is segmented into superpixels using a superpixel segmentation algorithm to obtain the blocks of the first frame image. In this embodiment, the number of blocks is preset. In other embodiments, the implementer may preset According to the blocks of the first frame image, each of the other frames of image is divided into blocks to obtain the blocks of each of the other frames of image.

[0052] In the embodiment of the present application, if The frame image In the block The gray value of the pixel is The frame image In the block When the grayscale values ​​of pixels are inconsistent, The frame image In the block The pixel is recorded as Frame image and The frame image The pixel points with inconsistent grayscale changes in the blocks are counted. Frame image and The frame image The number of pixels with inconsistent grayscale changes in a block.

[0053] Get the Frame image and The frame image Grayscale changes of blocks:

[0054]

[0055] In the formula, Representative Frame image and The frame image Grayscale changes of each block; Representative The number of pixels in a block; Representative Frame image and The frame image The number of pixels with inconsistent grayscale changes in each block; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; when Frame image and The frame image The more pixels with inconsistent grayscale changes in a block, the more The larger the value of Frame image and The frame image The higher the grayscale change between blocks, Represents the normalization function.

[0056] Preset grayscale change threshold , record the first frame image as the first analysis image, obtain the first analysis image and the second frame image The grayscale changes of the first analysis image and the second frame image are The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is ; When the first analysis image and the second frame image The grayscale change of the block is less than the grayscale change threshold When the second frame image and the third frame image are obtained The grayscale change of each block is compared with the grayscale change threshold, and so on, until the Frame image and The frame image The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is In this embodiment, the grayscale change threshold is preset In other embodiments, the implementer may preset the grayscale change threshold according to the specific implementation situation. The value of .

[0057] It should be noted that before the surveillance video is transmitted, with the advancement of video differential compression, continuous block division may cause the block results to become smaller and smaller, which will not only fail to improve the coding efficiency, but also cause excessive calculations due to too many blocks, resulting in reduced coding efficiency. Therefore, it is necessary to set a stop condition for the block division, that is, to conditionally limit the differential length of each block of the first analysis image, so as to avoid the problem of increased calculations caused by too small blocks.

[0058] In this embodiment, all frames in the surveillance video are used as input, and all key frames are extracted using the optical flow method, which is a common technology in video image processing, and the specific process is not repeated. The last key frame among all key frames is used as the latest key frame with the time closest to the current moment.

[0059] Secondly, the number of interval frames between the first analysis image and the latest key frame image is obtained, which is recorded as the difference length threshold. If the initial difference length of the blocks is greater than or equal to the difference length threshold, then the first analysis image is The difference length of the blocks is the difference length threshold. If the first analysis image If the initial difference length of the blocks is less than the difference length threshold, then the first analysis image is The difference length of each block is the first analysis image. It should be noted that the use of a convolutional neural network to obtain the latest key frame image is a well-known technology and will not be described in detail in this embodiment.

[0060] Similarly, the differential length of each block of the first analysis image is obtained.

[0061] Furthermore, in this embodiment, the first analysis image The difference length of the blocks is recorded as , using the differential compression algorithm to analyze the first image Block, The frame image blocks and the first analysis image and the The first of all frames between the frames The differential compression algorithm is a common technology in the field of video processing, and the specific process will not be described in detail.

[0062] S003. Obtain the first analysis image A coded frame image of a block; obtaining the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of the blocks are obtained, and then the first analysis image is obtained. The possibility of re-blocking the blocks; The possibility of re-blocking the blocks is The blocks are divided into blocks for determination.

[0063] It should be noted that after obtaining the differential length of each block of the first analysis image, differential compression is performed according to the differential length of each block of the first analysis image. After the differential compression is completed, the grayscale change consistency of each block of the first analysis image in the subsequent frame image may change. This is because the object in the surveillance video moves. At this time, if the current block is continued to be used for subsequent analysis, it will cause information loss in the moving area of ​​the surveillance video. Therefore, after completing the differential compression, it is necessary to re-judge the possibility of re-blocking of the corresponding block in the subsequent frame image.

[0064] If the first analysis image The difference length of the blocks is , then The frame image is the first analysis image. The coded frame image of blocks, that is, for the first analysis image to the The first of all frames between the frames The first block can be compressed using a differential compression algorithm, and the The frame image The possibility of re-blocking the block needs to be obtained. The next frame image of the coded frame image of the block is recorded as the second analysis image. Assume that the first analysis image to the All frames between the frames The grayscale changes of the blocks are related to the second analysis image. All frames between the frames The difference in grayscale changes of the blocks is small, indicating that the second analysis image The probability of re-blocking is small, and the first frame to the The smaller the difference in grayscale changes between two adjacent frames of the frame image, the better the grayscale changes from the first frame to the second frame. The first of all frames between the frames The grayscale change of the kth block is relatively stable, and the probability of the image content in the kth block in the second analysis image changing is low. The possibility of a block being split again is small.

[0065] In the embodiment of the present application, the first analysis image is obtained from the first analysis image to the second analysis image. The cumulative grayscale change of the coded frame image of blocks:

[0066]

[0067] In the formula, represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; Representative The number of pixels in a block; The first analyzed image The difference length of the blocks.

[0068] Further, obtaining the second analysis image Possibility of re-dividing a block:

[0069]

[0070] In the formula, The second analysis image The possibility of re-dividing a block; Represents the coefficient of variation of the sequence composed of the grayscale changes of the kth block in all frame images between the first frame image and the rth frame image; represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Represents the second analysis image to the first The frame image The cumulative grayscale change of each block; Represents the absolute value symbol; The smaller the value of The smaller the possibility of re-blocking of a block, Represents the normalization function.

[0071] Further, based on the second analysis image The kth block of the second analysis image and each frame image after the second analysis image is processed according to the possibility of re-blocking of the blocks, such as Figure 2 As shown, steps 201, 202 and 203 are included.

[0072] 201, determine whether the k-th block is to be divided twice.

[0073] Preset block probability threshold , if the second analysis image When the re-blocking possibility of a block is greater than the block possibility threshold, the superpixel segmentation algorithm is used to segment the first block in the second analysis image. The blocks are segmented twice to obtain the first In this embodiment, the block segmentation possibility threshold is an empirical value of 0.7. In other embodiments, a reasonable value can be set according to the content of the monitoring video, and this application does not impose any special restrictions on this.

[0074] 202, segmenting the second analysis image based on each sub-block of the k-th block into the first sub-blocks of each frame of the image blocks.

[0075] According to the second analysis image For each sub-block of a block, for each frame image after the second analysis image, The blocks are divided to obtain the first For each sub-block of the k-th block, according to the above steps S002 and S003, the calculation principle of the difference length and cumulative grayscale change of the k-th block is respectively calculated. The difference length of each sub-block of the block and the corresponding cumulative grayscale change; secondly, according to the first The re-blocking possibility of each sub-block is obtained by the same calculation principle as the re-blocking possibility of each block, and so on, each image block of each frame image in the monitoring video is segmented until the re-blocking possibility of the sub-block is less than or equal to the blocking possibility threshold;

[0076] 203, for the second analysis image when the re-blocking possibility is less than or equal to the blocking possibility threshold, blocks to process.

[0077] First, when the second analysis image When the re-blocking probability of a block is less than or equal to the blocking probability threshold, the second analysis image Block, The frame image blocks and the second analysis image to the The first of all frames between the frames Differential compression is performed on each block;

[0078] Secondly, obtain the The frame image The possibility of re-blocking of each block is analyzed; and so on, the compression of each frame of the image is completed to obtain compressed data.

[0079] S004, transmitting the surveillance video based on the compression result of each frame of the surveillance video.

[0080] According to the above steps, the compression processing of each frame image in the monitoring video is completed to obtain the compression result of each frame image. Secondly, the compression results of all frame images in the monitoring video are modulated to the radio frequency channel for transmission through the modem, which can meet the requirements of different long and short transmission distances and multi-channel transmission, thereby completing the compressed transmission of the monitoring video.

[0081] Based on the same inventive concept as the above method, an embodiment of the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned electronic information transmission methods are implemented.

[0082] It should be noted that the above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0083] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for transmitting electronic information, characterized in that: The method comprises the following steps: Collect surveillance video, perform frame processing on the surveillance video, and obtain each frame image; Each frame of image is segmented to obtain each block of each frame of image; according to the grayscale value of each pixel point in each block of each frame of image, the grayscale change of each block of each frame of image and the next frame of image is obtained; the first frame of image is recorded as the first analysis image, and according to the grayscale change of each block of each frame of image and the next frame of image, the initial differential length of each block of the first analysis image is obtained; All key frame images in the surveillance video are extracted using the optical flow method, the last frame of all the key frame images is taken as the latest key frame image, and the number of interval frame images between the first analysis image and the latest key frame image is recorded as the differential length threshold; the differential length of each block of the first analysis image is obtained according to the differential length threshold and the initial differential length of each block of the first analysis image; each frame image is compressed once according to the differential length of each block of the first analysis image; For the first analysis image blocks, according to the first analysis image The difference length of the blocks is used to obtain the first analysis image. The coded frame image of the first block; the first analysis image The next frame image of the coded frame image of the block is recorded as the second analysis image; according to the gray value of the pixel point in each block of each frame image, the first analysis image to the first analysis image are obtained. The accumulated grayscale changes of the coded frame images of the blocks; The accumulated grayscale changes of the coded frame images of blocks are used to obtain the first The possibility of re-blocking the blocks; The possibility of re-blocking the blocks is The blocks are divided into blocks to compress each frame of the image; Modulation is performed based on the compression results of all frame images to complete the transmission of the surveillance video; The first frame image is recorded as the first analysis image, and the initial differential length of each block of the first analysis image is obtained according to the grayscale change of each block of each frame image and the next frame image of each frame image. The specific acquisition steps are as follows: Preset grayscale change threshold , record the first frame image as the first analysis image, obtain the first analysis image and the second frame image The grayscale changes of the blocks are as follows: The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is ; When the first analysis image and the second frame image The grayscale change of the block is less than the grayscale change threshold When the second frame image and the third frame image are obtained The grayscale change of each block is compared with the grayscale change threshold, and so on, until the Frame image and The frame image The grayscale change of the block is greater than or equal to the grayscale change threshold When the first analysis image The initial difference length of the block is ; The step of obtaining the differential length of each block of the first analysis image according to the differential length threshold and the initial differential length of each block of the first analysis image; and compressing each frame of the image once according to the differential length of each block of the first analysis image includes the following specific steps: If the first analysis image The initial difference length of the blocks is greater than or equal to the difference length threshold, the first analysis image The difference length of the blocks is the difference length threshold. If the first analysis image The initial difference length of the block is less than the difference length threshold, and the first analysis image The difference length of each block is the first analysis image. The initial differential length of the blocks; The first analysis image The difference length of the blocks is recorded as , using the differential compression algorithm to analyze the first image Block, The frame image blocks and the first analysis image and the The first of all frames between the frames Blocks are compressed; The first analysis image blocks, according to the first analysis image The difference length of the blocks is used to obtain the first analysis image. The specific steps of coding a frame image of blocks are as follows: The first analysis image The difference length of the blocks is recorded as , will The frame image is the first analysis image. The coded frame image of blocks; The first analysis image is a first analysis image. The accumulated grayscale changes of the coded frame images of blocks are used to obtain the first The possibility of re-blocking a block includes the following specific steps: In the formula, The second analysis image The possibility of re-dividing a block; Represents the coefficient of variation of the sequence composed of the grayscale changes of the kth block in all frame images between the first frame image and the rth frame image; represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Represents the second analysis image to the first The frame image The cumulative grayscale change of each block; Represents the absolute value symbol; represents the normalization function; The method according to the second analysis image The possibility of re-blocking the blocks is The blocks are divided into blocks to compress each frame of the image. The specific steps are as follows: Preset block possibilities , if the second analysis image When the re-blocking probability of a block is greater than the block possibility threshold, the superpixel segmentation algorithm is used to segment the first block of the second analysis image. The blocks are segmented to obtain the first Each block of the blocks, according to the first block of the second analysis image For each block of each frame image after the second analysis image, The blocks are divided to obtain the first For each block of the second analysis image, The differential length of each block and the possibility of re-blocking are analyzed and compressed; When the second analysis image When the re-blocking probability of a block is less than or equal to the blocking probability threshold, the second analysis image Block, The frame image blocks and the second analysis image to the The first of all frames between the frames Differential compression is performed on blocks to obtain the The frame image The possibility of re-dividing the blocks is analyzed.

2. An electronic information transmission method according to claim 1, characterized in that: The specific steps of segmenting each frame of image to obtain each block of each frame of image are as follows: The number of preset blocks is , based on the number of blocks, the first frame image is segmented using a superpixel segmentation algorithm to obtain blocks of the first frame image, and each of the other frames of the image is divided into blocks according to the blocks of the first frame image to obtain blocks of each of the other frames of the image.

3. The electronic information transmission method according to claim 1, characterized in that: The specific steps of obtaining the grayscale change of each block of each frame image and the next frame image of each frame image according to the grayscale value of the pixel point in each block of each frame image are as follows: When The frame image In the block The gray value of the pixel is The frame image In the block When the grayscale values ​​of pixels are inconsistent, The frame image In the block The pixel is recorded as Frame image and The frame image The pixel points with inconsistent grayscale changes in the blocks are counted. Frame image and The frame image The number of pixels with inconsistent grayscale changes in each block; In the formula, Representative Frame image and The frame image Grayscale changes of each block; Represents the first The number of pixels in a block; Representative Frame image and The frame image The number of pixels with inconsistent grayscale changes in each block; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; Represents the sigmoid function.

4. The electronic information transmission method according to claim 1, characterized in that: The method of obtaining the first analysis image to the first analysis image according to the gray value of the pixel point in each block of each frame image The cumulative grayscale changes of the coded frame image of each block include the following specific steps: In the formula, represents the first analysis image to the first analysis image The accumulated grayscale changes of the coded frame images of blocks; Representative The frame image In the block The gray value of each pixel; Representative The frame image In the block The gray value of each pixel; Represents the absolute value symbol; Represents the first The number of pixels in a block; The first analyzed image The difference length of the blocks.

5. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement an electronic information transmission method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Video processing method and device, electronic equipment and computer readable storage medium

    CN117915088A

  • Image processor, image processing method, program and storage medium

    JP2005122571A