CN110740335A - Data transmission method, system and equipment - Google Patents

Data transmission method, system and equipment Download PDF

Info

Publication number
CN110740335A
CN110740335A CN201910823697.5A CN201910823697A CN110740335A CN 110740335 A CN110740335 A CN 110740335A CN 201910823697 A CN201910823697 A CN 201910823697A CN 110740335 A CN110740335 A CN 110740335A
Authority
CN
China
Prior art keywords
image frame
target image
reference image
preset reference
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910823697.5A
Other languages
Chinese (zh)
Inventor
郭鲲
范志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201910823697.5A priority Critical patent/CN110740335A/en
Publication of CN110740335A publication Critical patent/CN110740335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides data transmission methods, systems and equipment, relates to the technical field of electronic information, and can solve the problem of data processing resource and transmission bandwidth waste caused by repeated transmission of reference frames.

Description

Data transmission method, system and equipment
Technical Field
The present disclosure relates to the field of electronic information technologies, and in particular, to a data transmission method, system, and device.
Background
According to the interframe reference frame coding principle, if a large amount of repeated information exists in data to be transmitted, the receiving equipment stores the repeated information locally, the transmitting equipment removes and informs the receiving equipment of the repeated information when transmitting the data, and the receiving equipment searches for the locally stored repeated information and restores the locally stored repeated information so as to reduce the corresponding data amount during video data transmission.
Disclosure of Invention
The embodiment of the disclosure provides data transmission methods, systems and devices, which can solve the problem of data processing resource and transmission bandwidth waste caused by repeated transmission of reference frames in a data transmission process.
The technical scheme is as follows:
according to an aspect of the disclosed embodiment, there is provided a data transmission method, the method comprising, applied to a transmitting device:
acquiring a target image frame, wherein the target image frame is a reference image frame;
when the target image frame is found in a preset reference image frame sequence, acquiring parameter information corresponding to the target image frame, wherein the preset reference image frame sequence comprises at least reference image frames, and the parameter information comprises identification information;
and sending the identification information corresponding to the target image frame to the receiving equipment.
In embodiments, before acquiring the identification information corresponding to the target image frame, the method further includes:
acquiring an image frame and parameter information corresponding to the image frame;
when the image frame is a reference image frame, generating a preset reference image frame sequence according to the image frame and parameter information corresponding to the image frame;
the preset reference image frame sequence is transmitted to a receiving device.
In embodiments, before the method obtains the parameter information corresponding to the target image frame, the method further comprises,
acquiring a hash value corresponding to the target image frame and hash values corresponding to at least image frames in the preset reference image frame sequence;
when the hash value corresponding to the target image frame and the hash value corresponding to at least image frames in the preset reference image frame sequence are consistent, comparing the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence block by block according to a preset rule;
when the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence are consistent, it is determined that the target image frame is found in the preset reference image frame sequence.
In embodiments, the method further comprises,
dividing the target image frame into N macro blocks, wherein N is greater than or equal to 1;
when an Mth macro block in the target image frame is found in a preset reference image frame sequence, acquiring parameter information corresponding to the Mth macro block, wherein M is less than or equal to N;
and sending the identification information corresponding to the Mth macro block to the receiving equipment.
In embodiments, the method further comprises:
when the target image frame is not found in the preset reference image frame sequence, updating the preset reference image frame sequence according to the target image frame;
and after the target image frame is coded, the target image frame is sent to a receiving device.
According to the data transmission method provided by the embodiment of the disclosure, when an obtained image frame is a reference frame, whether the image frame can be found in a preset reference image frame sequence is judged, and when the image frame can be found in the preset reference image frame sequence, only parameter information corresponding to the image frame is sent to a receiving device; and when the image frame is not found in the preset reference image frame sequence, updating the preset reference image frame sequence according to the image frame, sending the image frame and updating request information to the receiving equipment, and requesting the receiving equipment to update the preset reference image frame sequence according to the image frame. According to the method and the device, the preset reference image frame is generated according to the reference frame in the historical received data, and only the parameter information corresponding to the image frame is sent when the subsequent image frame is the reference frame existing in the preset reference image frame, and the image frame does not need to be re-encoded and transmitted, so that the transmitted data volume is reduced, the encoding time is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
According to a second aspect of an embodiment of the present disclosure, there is provided a data transmission system, the system comprising:
a receiving device and a transmitting device, the receiving device being connected to the transmitting device,
the sending equipment is used for acquiring a target image frame, and the target image frame is a reference image frame;
when a target image frame is found in a preset reference image frame sequence, acquiring identification information corresponding to the target image frame, wherein the preset reference image frame sequence comprises at least reference image frames;
and sending the identification information corresponding to the target image frame to the receiving equipment.
And the receiving equipment is used for acquiring the target image frame corresponding to the identification information according to the identification information when receiving the identification information corresponding to the target image frame.
In embodiments, the system further comprises:
the receiving equipment is used for updating the preset reference image frame sequence according to the target image frame when the target image frame is not found in the preset reference image frame sequence;
coding a target image frame and then sending the target image frame to receiving equipment;
the sending equipment is used for decoding the target image frame when receiving the target image frame, and the target image frame is a reference image frame;
and updating the preset reference image frame sequence according to the decoded image frame.
According to a third aspect of embodiments of the present disclosure, there is provided sending devices, the device comprising a receiver, a processor and a sender,
the processor is connected with the receiver and the transmitter respectively,
the receiver is used for acquiring a target image frame, and the target image frame is a reference image frame;
the processor is used for acquiring parameter information corresponding to a target image frame when the target image frame is found in a preset reference image frame sequence, wherein the preset reference image frame sequence comprises at least reference image frames, and the parameter information comprises identification information;
and the transmitter is used for transmitting the identification information corresponding to the target image frame to the receiving equipment.
In embodiments, the receiver in the device is further configured to obtain image frames and parameter information corresponding to the image frames;
the processor is further used for generating a preset reference image frame sequence according to the image frame and the parameter information corresponding to the image frame when the image frame is a reference image frame;
and the transmitter is also used for transmitting the preset reference image frame sequence to the receiving equipment.
In embodiments, the processor in the device is further configured to, when the target image frame is not found in the preset reference image frame sequence, update the preset reference image frame sequence according to the target image frame and perform an encoding process on the target image frame;
and the transmitter is also used for transmitting the target image frame after the coding processing to the receiving equipment.
According to a fourth aspect of the embodiments of the present disclosure, there is provided data transmission methods applied to a receiving device, the method including:
receiving identification information corresponding to a target image frame, wherein the target image frame is a reference image frame, the identification information is used for indicating the position of the target image frame in a preset reference image frame sequence, and the preset reference image frame sequence comprises at least reference image frames;
and searching the target image frame corresponding to the identification information in the preset reference image frame sequence according to the identification information.
In embodiments, the method further comprises:
receiving update request information, wherein the update request information comprises an encoded target image frame and parameter information of the target image frame, the target image frame is a reference image frame, and the update request information is used for indicating that the preset reference image frame sequence is updated according to the target image frame;
and updating the preset reference image frame sequence after decoding the encoded target image frame according to the updating request information.
According to the data transmission method provided by the disclosure, the receiving device can acquire the target image frame corresponding to the identification information from the preset reference image frame sequence by receiving the identification information, or update the preset reference image frame sequence by updating the request information and the target image frame. The receiving device replaces the received target image frame by the identification information corresponding to the received target image frame, so that the transmitted data volume is reduced, the decoding time is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
It is to be understood that both the foregoing -general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description , serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of an data transmission method provided by an embodiment of the present disclosure;
FIG. 2 is an interaction diagram of an data transmission method provided by an embodiment of the disclosure;
fig. 3 is an interaction diagram 1 of data transmission methods provided by an embodiment of the present disclosure;
fig. 4 is a flowchart 1 of data transmission methods provided by the embodiments of the present disclosure;
fig. 5 is a block diagram of data transmission systems provided by embodiments of the present disclosure;
fig. 6 is a structural diagram of data transmission devices provided in the embodiments of the present disclosure.
Detailed Description
The embodiments described in the exemplary embodiments below do not represent all embodiments consistent with the present disclosure at , but rather are merely examples of apparatus and methods consistent with the aspects of the present disclosure at as recited in the appended claims.
Example
The embodiment of the present disclosure provides data transmission methods, as shown in fig. 1, the data transmission method includes the following steps:
101. and acquiring a target image frame.
The target image frame is a reference image frame. The method for judging the target image frame as the reference frame may be defined according to an I frame, a P frame and a B frame in a video coding algorithm, and when the target image frame is the I frame, the I frame may be used as a reference frame of the P frame and the B frame in a subsequent image frame, that is, the target image frame may be determined as the reference frame.
The method provided by the embodiment of the present disclosure further includes generating a preset reference image frame sequence according to the image frames received in history, that is:
acquiring an image frame and parameter information corresponding to the image frame;
when the image frame is a reference image frame, generating a preset reference image frame sequence according to the image frame and parameter information corresponding to the image frame;
the preset reference image frame sequence is transmitted to a receiving device.
The parameter information may include identification information, a hash value, a number of usage times, and a number of occurrence times corresponding to the target image frame, where the number of usage times refers to a number of usage times of the target image frame as a reference frame by other non-reference frames; the number of occurrences is the number of occurrences of the target image frame in the video, that is, the number of occurrences of the reference frame with the same pixels in the video coding process.
102. And when the target image frame is found in the preset reference image frame sequence, acquiring the parameter information corresponding to the target image frame.
The preset reference image frame sequence comprises at least reference image frames, i.e. the preset reference image frame sequence consists of at least reference image frames in the historical received image frames.
The parameter information includes identification information indicating a position of the target image frame in the preset reference image frame sequence.
Before the method provided by the embodiment of the present disclosure obtains the coding information corresponding to the target image frame, the method further includes confirming that the target image frame is found in a preset reference image frame sequence, that is, an image whose similarity with the target image frame reaches a preset value is present in the reference image frame:
acquiring a hash value corresponding to the target image frame and hash values corresponding to at least image frames in the preset reference image frame sequence;
when the hash value corresponding to the target image frame and the hash value corresponding to at least image frames in the preset reference image frame sequence are consistent, comparing the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence block by block according to a preset rule;
when the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence are consistent, it is determined that the target image frame is found in the preset reference image frame sequence.
Taking the target image frame as image a and the image frame in the preset reference image frame sequence as image B as an example, the above-mentioned comparison between the pixel value corresponding to the target image frame and the pixel values corresponding to at least image frames in the preset reference image frame sequence block by block according to the preset rule is described:
step , comparing the pixels at the four corners of the image a and the image B and the pixel at the center point of the image a and the image B, if the pixels are the same, continuing the subsequent comparison step, and if the pixels are not the same, the reference frame does not exist in the preset reference image frame sequence.
And step two, comparing the pixels at the middle points of the four edges of the image A and the image B, if the pixels are the same, continuing to perform the subsequent comparison step, and if the pixels are not the same, determining that the reference frame does not exist in the preset reference image frame sequence.
And step three, comparing the pixels at the diagonals 1/4 and 3/4 of the image A and the image B, if the pixels are the same, continuing to perform the subsequent comparison step, and if the pixels are not the same, determining that the reference frame does not exist in the preset reference image frame sequence.
And step four, sequentially comparing all pixel points in the image A and the image B from left to right and from top to bottom, if all the pixel points are completely the same, determining that the image frame exists in the preset reference image frame sequence, and if at least pixel points are different, determining that the target image frame does not exist in the preset reference image frame sequence.
The method provided by the embodiment of the disclosure further includes updating the parameter information corresponding to the target image frame in the preset reference image frame sequence after confirming that the target image frame exists in the preset reference image frame sequence. Specifically, the number of uses and the corresponding number of occurrences of the target image frame in the parameter information may be updated, where the number of uses refers to the number of times that the image frame is used as a reference frame by other non-reference frames, and the number of occurrences refers to the number of times that the image frame appears in the video, that is, the number of times that reference frames with identical pixels appear in the video encoding process. The management of the preset reference image frame sequence is facilitated by updating the parameter information corresponding to the target image frame in the preset reference image frame sequence, for example, the reference image frame with less use times can be replaced according to a preset rule, so that the use rate of the reference image frame sequence is improved.
The method provided by the embodiment of the present disclosure, when determining that the target image frame is found in the preset reference image frame sequence, further includes determining whether a macro block in the target image frame can be found in the preset reference image frame sequence, and specifically includes:
dividing the target image frame into N macro blocks, wherein N is greater than or equal to 1;
when an Mth macro block in the target image frame is found in a preset reference image frame sequence, acquiring parameter information corresponding to the Mth macro block, wherein M is less than or equal to N, the parameter information comprises identification information, and the identification information is used for indicating position information of the macro block in a reference frame;
and sending the parameter information corresponding to the Mth macro block to receiving equipment.
And when the Mth macro block in the target image frame is found in the preset reference image frame sequence, acquiring the parameter information corresponding to the Mth macro block.
In a specific implementation, the sending device may send, in the form of a message, the identification information of the macroblock newly added to the preset reference image frame sequence to the receiving device, that is, the location information of the macroblock in the preset reference image frame sequence, or may mark the identification information of the macroblock in the code stream; the position information in the identification information of the macro block in the code stream is predetermined by the sending device and the receiving device.
For example, the calculation is started at the 20 th byte of the code stream, the 20 th byte corresponds to the next 2 bytes to represent an identifier for instructing the receiving device to add the macroblock to the preset queue, the next 8 bytes represent identification information of the macroblock, the 22 th byte corresponds to the next 32 bytes to represent the position of the macroblock in the reference frame, such as coordinates (x, y), and the 52 th byte corresponds to the next 32 bytes to represent the width and height of the picture corresponding to the reference frame.
103. And sending the identification information corresponding to the image frame to the receiving equipment.
When the method provided by the embodiment of the present disclosure sends the identification information corresponding to the image frame to the receiving device, the identification information of the target image frame may be sent to the receiving device in a message form, for example, in a UDP message or a TCP message form, or the identification information of the target image frame may be marked in a code stream and sent to the receiving device, where the position information of the identification information in the parameter information of the target image frame in the code stream is agreed in advance by both the sending device and the receiving device, so that it can be ensured that the receiving device can obtain the target image frame according to the identification information when obtaining the identification information.
The rule corresponding to the identification information of the target image frame transmitted to the receiving device by the code stream includes starting calculation at the 20 th byte of the code stream, the next 2 bytes represent an identifier for indicating that the target image frame exists in the receiving device queue, the next 8 bytes represent the identification information of the target image frame, and the next 32 bytes represent the picture information corresponding to the target image frame, such as the width and the height.
The method provided by the embodiment of the present disclosure, when the target image frame is not found in the preset reference image frame sequence, further includes:
when the target image frame is not found in the preset reference image frame sequence, updating the preset reference image frame sequence according to the target image frame;
and after the target image frame is coded, the target image frame is sent to a receiving device.
Further , the method provided by the present disclosure may generate and send to the receiving device, after updating the preset reference image frame sequence according to the target image frame, update request information for instructing to update the preset reference image frame sequence according to the target image frame and the parameter information corresponding to the target image frame.
, the method can determine whether the frame sequence is full before adding the reference frame to the frame sequence, if not, the target image frame can be directly added to the frame sequence and the number of times of use and occurrence of the target image frame is recorded as 0 and 1, if the frame sequence is full, the method removes the image frame from the preset reference image frame sequence according to the reference information of the image frame, such as at least minimum image frames in the number of times of use and occurrence, and then adds the target image frame to the preset reference image frame sequence.
According to the data transmission method provided by the embodiment of the disclosure, when an obtained image frame is a reference frame, whether the image frame can be found in a preset reference image frame sequence is judged, and when the image frame can be found in the preset reference image frame sequence, only parameter information corresponding to the image frame is sent to a receiving device; and when the image frame is not found in the preset reference image frame sequence, updating the preset reference image frame sequence according to the image frame, sending the image frame and updating request information to the receiving equipment, and requesting the receiving equipment to update the preset reference image frame sequence according to the image frame. According to the method and the device, the preset reference image frame is generated according to the reference frame in the historical received data, and only the parameter information corresponding to the image frame is sent when the subsequent image frame is the reference frame existing in the preset reference image frame, and the image frame does not need to be re-encoded and transmitted, so that the transmitted data volume is reduced, the encoding time is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
Example two
Based on the data transmission method provided by the embodiment corresponding to fig. 1, another embodiment of the present disclosure provides a data transmission method, which may be applied to a sending device and a receiving device, for example, the sending device may be a terminal device or a network server, and the receiving device may also be a terminal device or a network server.
Referring to fig. 2, when the target image frame is found in the preset reference image frame sequence, the data transmission method provided in this embodiment includes the following steps:
201. the transmitting device acquires a target image frame.
The target image frame is a reference image frame.
202. And when the target image frame is found in a preset reference image frame sequence, the sending equipment acquires target parameter information corresponding to the target image frame.
The preset reference image frame sequence comprises at least reference image frames, and the parameter information comprises identification information.
Determining whether the target image frame can be found in the preset reference image frame sequence according to whether the corresponding hash value and pixel value of the image frame in the preset reference image frame sequence result in the hash value and pixel value corresponding to the target image frame.
The sending device and the receiving device store matched preset reference image frame sequences.
203. And the sending equipment sends the target parameter information corresponding to the target image frame to the receiving equipment.
The target parameter information includes identification information for enabling the receiving device to find the target image frame in the preset reference image frame sequence.
204. And the receiving equipment acquires the target image frame corresponding to the target parameter information according to the target parameter information.
Referring to fig. 3, when the target image frame is not found in the preset reference image frame sequence, the data transmission method provided in this embodiment includes the following steps:
301. the transmitting device acquires a target image frame.
The target image frame is a reference image frame.
302. And when the target image frame is not found in the preset reference image frame sequence, the sending equipment acquires target parameter information corresponding to the target image frame.
The preset reference image frame sequence comprises at least reference image frames, and the parameter information comprises identification information.
Determining whether the target image frame can be found in the preset reference image frame sequence according to whether the corresponding hash value and pixel value of the image frame in the preset reference image frame sequence result in the hash value and pixel value corresponding to the target image frame.
The sending device and the receiving device store matched preset reference image frame sequences.
303. The sending equipment updates the preset reference image frame according to the target image frame and the target parameter information corresponding to the target image frame, generates updating request information, and sends the target image frame and the updating request information to the receiving equipment.
The target parameter information may include identification information, a hash value, a number of usage times, and a number of occurrence times corresponding to the target image frame, where the number of usage times refers to a number of usage times of the target image frame as a reference frame by other non-reference frames; the occurrence number refers to the number of occurrences of the target image frame in the video, that is, the number of occurrences of the reference frame with the same pixels in the video encoding process; the identification information is information indicating a position corresponding to the target image frame in the preset reference image frame sequence.
The update request information is used for indicating that the preset reference image frame is updated according to the target image frame.
And updating request information for indicating that the preset reference image frame sequence is updated according to the target image frame and the parameter information corresponding to the target image frame.
304. And the receiving equipment acquires the target image frame according to the target image frame and the updating request information and updates the preset reference image frame sequence.
According to the data transmission method provided by the embodiment of the disclosure, when a sending device acquires an image frame as a reference frame, whether the image frame can be found in a preset reference image frame sequence is judged, and when the image frame can be found in the preset reference image frame sequence, only parameter information corresponding to the image frame is sent to a receiving device; and when the preset reference image frame sequence does not find the image frame, sending the image frame and the parameter information corresponding to the image frame to the receiving equipment, and updating the preset reference image frame sequence. According to the method and the device, the preset reference image frame is generated according to the reference frame in the historical received data, and when the subsequent received image frame is the reference frame existing in the preset reference image frame, only the mark information corresponding to the image frame is sent without recoding and transmitting the image frame, so that the transmitted data volume is reduced, the coding time is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
EXAMPLE III
Based on the data transmission method provided by the embodiment corresponding to fig. 1, another embodiment of the present disclosure provides a data transmission method, which may be applied to a receiving device, for example, the receiving device may also be a terminal device or a network server, and as shown in fig. 4, the data transmission method includes the following steps:
401. and receiving identification information corresponding to the target image frame.
The identification information is information indicating a position of a target image frame in a preset reference image frame sequence, the target image frame being a reference image frame, the preset reference image frame sequence including at least reference frames, and the preset reference image frame sequence of the receiving device being updated in synchronization with the preset reference image frame sequence of the transmitting device.
402. And searching the target image frame corresponding to the identification information in a preset reference image frame sequence according to the identification information.
When the method provided by the present disclosure acquires the target image frame, the method includes:
analyzing the identification information, and determining corresponding position information of the target image frame in a preset reference image frame sequence according to an analysis result;
and finding the target image frame in a preset reference image frame sequence according to the position information.
, since the target image frame is found in the preset reference image frame sequence stored locally at the receiving device, the target image frame can be directly processed, such as displayed, without decoding process.
After the target image frame is found, the method further includes updating the parameter information corresponding to the target image frame, such as updating the number of times of use.
The parameter information may include identification information, a hash value, a number of usage times, and a number of occurrence times corresponding to the target image frame, where the number of usage times refers to a number of usage times of the target image frame as a reference frame by other non-reference frames; the occurrence number refers to the number of occurrences of the target image frame in the video, that is, the number of occurrences of the reference frame with the same pixels in the video encoding process; the identification information is information indicating a position corresponding to the target image frame in the preset reference image frame sequence.
When the method provided by the present disclosure receives data, the method further includes:
receiving update request information including an encoded target image frame and parameter information of the target image frame, the target image frame being a reference image frame, the update request information indicating that a preset reference image frame sequence is updated from the target image frame, the preset reference image frame sequence including at least reference image frames;
and updating the preset reference image frame sequence after decoding the encoded target image frame according to the updating request information.
Therefore, before adding the reference frame into the preset reference image frame sequence, the receiving device can judge whether the preset reference image frame sequence is full or not, if the preset reference image frame sequence is not full, the target image frame can be directly added into the preset reference image frame sequence, the using times and the occurrence times of the target image frame are recorded as 0 and 1, if the preset reference image frame sequence is full, the target image frame in the preset reference image frame sequence is removed from a queue according to at least minimum target image frames in the using times and the occurrence times, and then the target image frame is added into the preset reference image frame sequence.
According to the data transmission method provided by the embodiment of the disclosure, the receiving device may obtain the target image frame corresponding to the identification information in the preset reference image frame sequence by receiving the identification information, or update the preset reference image frame sequence by updating the request information and the target image frame. The identification information corresponding to the received target image frame replaces the received target image frame, so that the transmitted data volume is reduced, the decoding processing data volume is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
Example four
Based on the data transmission methods described in the embodiments corresponding to fig. 1, fig. 2, and fig. 3, the following is an embodiment of the system of the present disclosure, which may be used to execute the embodiment of the method of the present disclosure.
The disclosed embodiment provides data transmission systems, as shown in fig. 5, data transmission systems, including a sending device 501 and a receiving device 502,
the receiving device 501 is connected with the sending device 502, and the connection method can be through wired connection or wireless connection.
A sending device 501, configured to obtain a target image frame, where the target image frame is a reference image frame;
when a target image frame is found in a preset reference image frame sequence, acquiring identification information corresponding to the target image frame, wherein the preset reference image frame sequence comprises at least reference image frames;
and sending the identification information corresponding to the target image frame to the receiving device 502.
The receiving and sending device 502 is configured to, when receiving the identification information corresponding to the target image frame, obtain the target image frame corresponding to the identification information according to the identification information.
In an alternative embodiment, the system 50 further comprises:
a sending device 501, configured to update the preset reference image frame sequence according to the target image frame when the target image frame is not found in the preset reference image frame sequence;
encoding the target image frame and then transmitting the target image frame to the receiving device 502;
a receiving device 502 for decoding a target image frame when receiving the target image frame, the target image frame being a reference image frame;
and updating the preset reference image frame sequence according to the decoded image frame.
According to the data transmission system provided by the embodiment of the disclosure, when the sending device acquires an image frame as a reference frame, whether the image frame can be found in a preset reference image frame sequence is judged, and when the image frame can be found in the preset reference image frame sequence, only parameter information corresponding to the image frame is sent to the receiving device; and when the preset reference image frame sequence does not find the image frame, sending the image frame and the parameter information corresponding to the image frame to the receiving equipment. According to the method and the device, the preset reference image frame is generated according to the reference frame in the historical received data, when the subsequent image frame is the reference frame existing in the preset reference image frame, only the identification information corresponding to the image frame is sent, the sending device does not need to re-encode the image frame, the receiving device only receives the identification information and searches the image frame according to the identification information. The image frame does not need to be decoded, so that the transmitted data volume is reduced, the data volume of encoding and decoding processing is reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
EXAMPLE five
Based on the data transmission methods described in the embodiments corresponding to fig. 1, fig. 2, and fig. 3, the following is an embodiment of the apparatus of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
The disclosed embodiment provides kinds of sending devices, as shown in fig. 6, the sending device 60 includes a receiver 601, a processor 602 and a sender 603,
the processor 602 is connected to the receiver 601 and the transmitter 603, respectively;
a receiver 601, configured to acquire a target image frame, where the target image frame is a reference image frame;
a processor 602, configured to obtain parameter information corresponding to a target image frame when the target image frame is found in a preset reference image frame sequence, where the preset reference image frame sequence includes at least reference image frames, and the parameter information includes identification information;
a transmitter 603, configured to transmit identification information corresponding to the target image frame to the receiving device.
In an alternative embodiment, the receiver 601 in the device 60 is further configured to obtain image frames and parameter information corresponding to the image frames;
the processor 602 is further configured to generate a preset reference image frame sequence according to the image frame and parameter information corresponding to the image frame when the image frame is a reference image frame;
the transmitter 603 is further configured to transmit the preset reference image frame sequence to the receiving device.
In an alternative embodiment, the processor 602 in the device 60 is further configured to, when a target image frame is not found in the preset reference image frame sequence, update the preset reference image frame sequence according to the target image frame, and perform encoding processing on the target image frame;
and generating update request information according to the target image frame, wherein the update request information is used for indicating that the preset reference image frame sequence is updated according to the target image frame and the parameter information corresponding to the target image frame.
The transmitter 603 is further configured to transmit the encoded target image frame and the update request information to the receiving device.
According to the sending device provided by the embodiment of the disclosure, when an obtained image frame is a reference frame, whether the image frame can be found in a preset reference image frame sequence is judged, and when the image frame can be found in the preset reference image frame sequence, only parameter information corresponding to the image frame is sent to a receiving device; and when the image frame is not found in the preset reference image frame sequence, sending the image frame and the parameter information corresponding to the image frame to the receiving equipment, and sending the image frame. According to the method and the device, the preset reference image frame is generated according to the reference frame in the historical received data, and only the parameter information corresponding to the image frame is sent when the subsequent image frame is the reference frame existing in the preset reference image frame, and the image frame does not need to be re-encoded and transmitted, so that the transmitted data volume is reduced, the encoding time is effectively reduced, the calculation efficiency is improved, the transmission code stream is reduced, and the transmission bandwidth resource is saved.
Based on the data transmission method described in the embodiment corresponding to fig. 1, fig. 2, and fig. 3, computer-readable storage media are further provided in the embodiments of the present disclosure, for example, the non-transitory computer-readable storage media may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the -like principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains and as may be applied to the essential features hereinbefore set forth, the description and examples are to be regarded as illustrative only and the true scope and spirit of the disclosure is to be indicated by the following claims.

Claims (10)

  1. The data transmission method of , applied to a sending device, includes:
    acquiring a target image frame, wherein the target image frame is a reference image frame;
    when the target image frame is found in a preset reference image frame sequence, acquiring parameter information corresponding to the target image frame, wherein the preset reference image frame sequence comprises at least reference image frames, the parameter information comprises identification information, and the identification information is used for indicating position information of the target image frame in the preset reference image frame sequence;
    and sending the identification information corresponding to the target image frame to receiving equipment.
  2. 2. The method according to claim 1, wherein before acquiring the identification information corresponding to the target image frame, the method further comprises:
    acquiring an image frame and parameter information corresponding to the image frame, wherein the parameter information comprises the frequency of the image frame appearing in a target video;
    when the image frame is a reference image frame, generating a preset reference image frame sequence according to the image frame and parameter information corresponding to the image frame;
    and sending the preset reference image frame sequence to a receiving device.
  3. 3. The method of claim 1, wherein before obtaining the parameter information corresponding to the target image frame, the method further comprises,
    acquiring hash values corresponding to the target image frame and hash values corresponding to at least image frames in the preset reference image frame sequence;
    when the hash value corresponding to the target image frame and the hash value corresponding to at least image frames in the preset reference image frame sequence are equal, comparing the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence block by block according to a preset rule;
    and when the pixel value corresponding to the target image frame and the pixel value corresponding to at least image frames in the preset reference image frame sequence are consistent, determining that the target image frame is found in the preset reference image frame sequence.
  4. 4. The method according to claim 1, wherein said sending identification information corresponding to the target image frame to a receiving device comprises,
    dividing the target image frame into N macro blocks, wherein N is greater than or equal to 1;
    when an Mth macro block is found in the target image frame in a preset reference image frame sequence, acquiring parameter information corresponding to the Mth macro block, wherein M is less than or equal to N;
    and sending the identification information corresponding to the Mth macro block to receiving equipment.
  5. 5. The method of claim 1, further comprising:
    when the target image frame is not found in the preset reference image frame sequence, updating the preset reference image frame sequence according to the target image frame;
    and after the target image frame is coded, the target image frame is sent to receiving equipment.
  6. The data transmission method of , applied to a receiving device, includes:
    receiving identification information corresponding to a target image frame, wherein the target image frame is a reference image frame, the identification information is used for indicating the position of the target image frame in a preset reference image frame sequence, and the preset reference image frame sequence comprises at least reference image frames;
    and searching the target image frame corresponding to the identification information in the preset reference image frame sequence according to the identification information.
  7. 7. The method of claim 6, further comprising:
    receiving update request information, wherein the update request information comprises an encoded target image frame and parameter information of the target image frame, the target image frame is a reference image frame, and the update request information is used for indicating that the preset reference image frame sequence is updated according to the target image frame;
    and updating the preset reference image frame sequence after decoding the encoded target image frame according to the updating request information.
  8. 8, A data transmission system, comprising a receiving device and a sending device,
    the receiving device is connected with the sending device,
    the sending device is used for acquiring a target image frame, and the target image frame is a reference image frame;
    when the target image frame is found in a preset reference image frame sequence, acquiring identification information corresponding to the target image frame, wherein the preset reference image frame sequence comprises at least reference image frames;
    and sending the identification information corresponding to the target image frame to receiving equipment.
    And the receiving equipment is used for acquiring the target image frame corresponding to the identification information according to the identification information when receiving the identification information corresponding to the target image frame.
  9. 9. The system of claim 8, further comprising:
    the receiving device is configured to update the preset reference image frame sequence according to the target image frame when the target image frame is not found in the preset reference image frame sequence;
    the target image frame is coded and then is sent to the sending equipment;
    the sending device is used for decoding the target image frame when receiving the target image frame, wherein the target image frame is a reference image frame;
    and updating the preset reference image frame sequence according to the decoded image frame.
  10. 10, sending device, comprising a receiver, a processor and a sender,
    the processor is respectively connected with the receiver and the transmitter,
    the receiver is used for acquiring a target image frame, and the target image frame is a reference image frame;
    the processor is configured to obtain parameter information corresponding to the target image frame when the target image frame is found in a preset reference image frame sequence, where the preset reference image frame sequence includes at least reference image frames, and the parameter information includes identification information;
    and the transmitter is used for transmitting the identification information corresponding to the target image frame to the receiving equipment.
CN201910823697.5A 2019-09-02 2019-09-02 Data transmission method, system and equipment Pending CN110740335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910823697.5A CN110740335A (en) 2019-09-02 2019-09-02 Data transmission method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910823697.5A CN110740335A (en) 2019-09-02 2019-09-02 Data transmission method, system and equipment

Publications (1)

Publication Number Publication Date
CN110740335A true CN110740335A (en) 2020-01-31

Family

ID=69267773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910823697.5A Pending CN110740335A (en) 2019-09-02 2019-09-02 Data transmission method, system and equipment

Country Status (1)

Country Link
CN (1) CN110740335A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060063604A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Method for encoding and decoding video signal
WO2008038513A1 (en) * 2006-09-26 2008-04-03 Panasonic Corporation Decoding device, decoding method, decoding program, and integrated circuit
CN102387361A (en) * 2010-09-02 2012-03-21 乐金电子(中国)研究开发中心有限公司 Reference frame processing method of video coding-decoding and video coder-decoder
CN107911353A (en) * 2017-11-06 2018-04-13 西安万像电子科技有限公司 Data transmission method, apparatus and system
CN108600769A (en) * 2018-04-16 2018-09-28 西安万像电子科技有限公司 Image transfer method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060063604A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Method for encoding and decoding video signal
WO2008038513A1 (en) * 2006-09-26 2008-04-03 Panasonic Corporation Decoding device, decoding method, decoding program, and integrated circuit
CN102387361A (en) * 2010-09-02 2012-03-21 乐金电子(中国)研究开发中心有限公司 Reference frame processing method of video coding-decoding and video coder-decoder
CN107911353A (en) * 2017-11-06 2018-04-13 西安万像电子科技有限公司 Data transmission method, apparatus and system
CN108600769A (en) * 2018-04-16 2018-09-28 西安万像电子科技有限公司 Image transfer method, apparatus and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
KR101874100B1 (en) Method and apparatus for encoding and decoding image
CN109640089B (en) Image coding and decoding method and device
KR20070040286A (en) Apparatus for encoding and decoding muti-view image by using camera parameter, and method thereof, a recording medium having a program to implement thereof
CN107801093B (en) Video rendering method and device, computer equipment and readable storage medium
CN110149515B (en) Data transmission method and device
KR100612691B1 (en) Systems and Methods for Measurement of Video Quality
CN109862365B (en) Image data processing method and device
WO2008047865A1 (en) Image quality evaluation method, image quality evaluation system and image quality evaluation program
CN111263243B (en) Video coding method and device, computer readable medium and electronic equipment
CN110636334B (en) Data transmission method and system
CN109120995B (en) Video cache analysis method, device, equipment and medium
EP2874390A1 (en) Method and device for processing video signal
CN111093083A (en) Data transmission method and device
CN110740316A (en) Data coding method and device
WO2014045507A1 (en) Video encoding device
CN110740335A (en) Data transmission method, system and equipment
JPWO2014155919A1 (en) Image coding apparatus, image coding method, and image coding program
CN111093079A (en) Image processing method and device
CN108401185B (en) Reference frame selection method, video transcoding method, electronic device and storage medium
CN110460855B (en) Image processing method and system
KR100731581B1 (en) Transmitting and receiving method of remote surveillant images through object recognition and system at the same of
US20170353722A1 (en) A method for encoding a digital image, decoding method, devices, and associated computer programs
CN101296166B (en) Method for measuring multimedia data based on index
CN107734278B (en) Video playback method and related device
CN112218087B (en) Image encoding and decoding method, encoding and decoding device, encoder and decoder

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131

RJ01 Rejection of invention patent application after publication