WO2022266974A1 - Image processing method and device, service server, and storage medium - Google Patents

Image processing method and device, service server, and storage medium Download PDF

Info

Publication number
WO2022266974A1
WO2022266974A1 PCT/CN2021/102220 CN2021102220W WO2022266974A1 WO 2022266974 A1 WO2022266974 A1 WO 2022266974A1 CN 2021102220 W CN2021102220 W CN 2021102220W WO 2022266974 A1 WO2022266974 A1 WO 2022266974A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
image frame
encoded data
feedback information
receiving end
Prior art date
Application number
PCT/CN2021/102220
Other languages
French (fr)
Chinese (zh)
Inventor
马宁
尹小俊
陈颖
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/102220 priority Critical patent/WO2022266974A1/en
Publication of WO2022266974A1 publication Critical patent/WO2022266974A1/en

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
    • H04N19/89Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder

Definitions

  • the present application relates to the technical field of image processing, and in particular to an image processing method, an image processing device at a transfer terminal, a service server, and a storage medium.
  • image data generally uses periodic error-tolerant frames and error-tolerant frame groups for error recovery during end-to-end transmission; or, try to ensure that less error-tolerant frames are transmitted or Error-tolerant frame group: When there is no problem in the transmission, no error-tolerant frame or error-tolerant frame group is transmitted; when there is an error in the transmission, the receiving end feeds back the error to the sending end, and the sending end sends an error-tolerant frame or error-tolerant frame group.
  • the end-to-end process may undergo multiple wireless or wired transmission processes, intermediate processing, etc., which results in longer error recovery time and increased error probability.
  • the present application provides an image processing method, an image processing device at a transfer terminal, a service server, and a storage medium.
  • the present application provides an image processing method, which is applicable to the transfer terminal, and the method includes:
  • the present application provides an image processing device at a transfer terminal, the device comprising: a communication module, a memory, and a processor;
  • the memory is used to store computer programs
  • the processor is configured to execute the computer program and when executing the computer program, implement the following steps:
  • controlling the communication module to send first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end;
  • controlling the communication module to send encoded data of the image frame to the receiving end
  • the present application provides a service server, where the service server includes the image processing device at the transfer terminal as described above.
  • the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method as described above.
  • the embodiment of the present application provides an image processing method, an image processing device at the transfer end, a service server, and a storage medium, which receive encoded data of image frames from the sending end; send first feedback information to the sending end, and the first feedback The information is used to indicate the transmission status of the image frame currently received by the transit end; send the encoded data of the image frame to the receiving end; obtain second feedback information from the receiving end, and the second feedback information is used to indicate The transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end.
  • the receiving end directly feeds back the error to the sending end.
  • the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery.
  • the relay end receives feedback from the receiver that it has received an error
  • the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay.
  • Fig. 1 is a schematic flow chart of an embodiment of the image processing method of the present application
  • FIG. 2 is a schematic diagram of the connection between the transfer terminal and the 5G base station in an application scenario in the image processing method of the present application;
  • Fig. 3 is a schematic flow chart of another embodiment of the image processing method of the present application.
  • FIG. 4 is a schematic diagram of the principle of an error recovery strategy in an embodiment of the image processing method of the present application.
  • Fig. 5 is a schematic flow chart of another embodiment of the image processing method of the present application.
  • FIG. 6 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • Fig. 7 is a schematic flow chart of another embodiment of the image processing method of the present application.
  • FIG. 8 is a schematic structural diagram of an embodiment of an image processing device at the relay end of the present application.
  • image data Due to the unreliability of data transmission, image data generally uses periodic error-tolerant frames and error-tolerant frame groups for error recovery during end-to-end transmission; or try to ensure that less error-tolerant frames or error-tolerant frame groups are transmitted: when there is no When there is a problem, the error-tolerant frame or error-tolerant frame group is not transmitted; when there is an error in the transmission, the receiving end feeds back the error to the sending end, and the sending end sends the error-tolerant frame or error-tolerant frame group at this time.
  • the end-to-end process there may be multiple transmission processes, intermediate processing, etc., which results in longer error recovery time and increased error probability.
  • the embodiment of the present application provides an image processing method, an image processing device at the transfer end, a service server, and a storage medium, which receive encoded data of image frames from the sending end; send first feedback information to the sending end, and the first feedback The information is used to indicate the transmission status of the image frame currently received by the transit end; send the encoded data of the image frame to the receiving end; obtain second feedback information from the receiving end, and the second feedback information is used to indicate The transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end.
  • the receiving end directly feeds back the error to the sending end.
  • the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery.
  • the relay end receives feedback from the receiver that it has received an error
  • the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay.
  • Fig. 1 is a schematic flow chart of an embodiment of the image processing method of the present application.
  • the method of the embodiment of the present application is applicable to the transfer terminal, and the sending process of sending the coded data of the image frame from the sending end to the receiving end includes sending the sending end to the transfer end.
  • the sending end in the embodiment of the present application can be the source sending end of the encoded data, or the intermediate sending end of the encoded data (that is, the sending end can be another transit end, and the encoded data of the sending end is another sending end. end); the receiving end of the embodiment of the present application can be the destination receiving end of the encoded data, and can also be the intermediate receiving end of the encoded data (that is, the receiving end can be another transit end, and the receiving end also receives the encoded data. need to be forwarded to other receivers).
  • the method includes: step S101, step S102, step S103 and step S104.
  • Step S101 Receive the coded data of the image frame from the sending end.
  • Step S102 Sending first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end.
  • Step S103 Send the coded data of the image frame to the receiving end.
  • Step S104 Obtain second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
  • the transmission status may refer to whether there is an error in the transmission of the image frame, including but not limited to: whether data loss or data error occurs during the transmission of the image frame; whether the image frame is transmitted correctly, and whether it is successfully transmitted after the correct transmission. decode; etc.
  • the sending end in this embodiment can be a platform that can move in any suitable environment, such as various airplanes, drones, etc. flying in the air, various ships, submarines, etc. moving in water, and moving on land. Various cars, trains, etc.
  • the sending end includes a common drone.
  • the sending end in this embodiment may also be an intermediate node in the image transmission process, or another transfer end, that is, more than two transmission transfers occur during the image transmission process. Therefore, the embodiment of the present application is also applicable to multi-segment transmission.
  • the receiving end in this embodiment may be a computer, a handheld electronic device, a communication device, a video monitoring device, and the like.
  • the receiving end in this embodiment may also be an intermediate node in the image transmission process, or another transfer end, that is, more than two transmission transfers occur during the image transmission process. Therefore, the embodiment of the present application is also applicable to multi-segment transmission.
  • the transmission process needs to go through 4 nodes successively, which are: device 1, device 2, device 3, and device 4 from beginning to end; the transmission process can be decomposed into two transmission and transfer processes, the first one is: device 1, device 2.
  • Device 3, the second one is: device 2, device 3, and device 4; for the first transmission and transfer process, device 1 can be used as the sending end of the embodiment of this application, and device 2 (transfer end) can be used as this
  • device 3 ie another transfer terminal
  • device 2 for the second transmission transfer terminal
  • device 2 another transfer terminal
  • the sending end, device 3 (transfer end) can be used as the transfer end of the embodiment of the application, and the device 4 can be used as the receiving end of the embodiment of the application; as a whole transmission process, the device 2 and the device 3 are both the embodiment of the application
  • the relay end, device 2 and device 3 are applicable to the method of the embodiment of the present application
  • the transfer terminal is connected to a 5G base station.
  • the transfer end can be a service server deployed on a mobile edge computing node, and the service server is connected to a 5G base station, which can further reduce the transmission and transmission costs from both ends (sending end and receiving end) to the service server. Feedback delay, so as to achieve a better image transmission experience.
  • wireless communication, wired communication, or optical communication may be used between the transfer end and the sending end and between the transfer end and the receiving end, or a mixed communication of the two or more ,as shown in picture 2.
  • the communication between the transfer terminal and the sending end and between the transfer terminal and the receiving end is through a 5G module.
  • the transfer terminal in the embodiment of the present application is the same as the transfer terminal in the related art: as an intermediate node between the sending end and the intermediate end, it receives the coded data sent by the sending end and forwards the coded data to the receiving end;
  • the difference of the transfer terminal is that the transfer terminal in this embodiment will send the first feedback information to the sending end, and will also receive the second feedback information sent by the receiving end.
  • the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer terminal.
  • the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
  • a transfer terminal on the one hand, it can feed back the first feedback information to the sender, so that the sender can understand the transmission status of the image frame sent by itself, and provide technical support for subsequent error correction and recovery between the sender and the transfer terminal;
  • the second feedback information fed back by the receiving end can be received, which is convenient for the transfer end to understand the transmission status of the image frame sent by itself, and provides technical support for subsequent error correction and recovery between the transfer end and the receiving end. That is, in the subsequent error correction recovery, the original error correction recovery between the sending end and the receiving end is changed to: the error correction recovery between the sending end and the transit end, and the error correction recovery between the transit end and the receiving end.
  • the original error correction path, the error correction path of the embodiment of the present application is also shortened, which can reduce the error recovery time and reduce the probability of transmission errors during error correction.
  • step S102 there is no obvious sequence relationship between the above step S102 and step S103.
  • the coded data of the image frame is received from the sending end; the first feedback information is sent to the sending end, and the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end; Sending the encoded data of the image frame to the receiving end; obtaining second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end.
  • the receiving end directly feeds back the error to the sending end.
  • the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery.
  • the relay end receives feedback from the receiver that it has received an error
  • the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay.
  • the coded data sent by the sender can be used for error recovery. Based on the feedback from the transit end, the sender usually has two common error recovery methods. Then the coded data received by the transit end corresponds to There are two different encoding data.
  • the first one is that the encoded data of the image frame from the sending end includes encoded data obtained by encoding according to a preset error recovery strategy when the first feedback information received by the sending end indicates a reception error.
  • the second type is that the coded data of the image frame from the sending end includes the coded data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame coding according to the reference frame.
  • the reception errors in this embodiment of the present application generally include data loss and data verification errors.
  • the encoded data before sending the encoded data, the encoded data is packaged, and each obtained data packet has a unique packet serial number, and the data in the data packet has a check code; the packet loss is judged by the discontinuous detection of the packet serial number, then The reception of the image frame is considered to be a reception error; the check code carried in the data packet is inconsistent with the check code calculated from the data in the data packet, and the reception of the image frame can be considered to be a reception error. It is judged that there is no packet loss through the discontinuous detection of the packet sequence number, and the check code carried in the data packet is consistent with the check code calculated from the data in the data packet, then it can be considered that the reception of the image frame is correct.
  • the encoded data subsequently received by the transfer terminal may be the encoded data obtained by encoding according to a preset error recovery strategy at the transmitting end, or it may be that the transmitting end determines a reference frame according to the first feedback information and Coded data obtained by performing inter-frame coding according to the reference frame. The details of these two error recovery methods will be described later.
  • the relay terminal When the relay terminal obtains the second feedback information from the receiving terminal indicating a reception error, the relay terminal usually adopts two commonly used error recovery methods for recovery.
  • the first is to encode the current image frame according to a preset error recovery policy and send the encoded data.
  • the method further includes: step S105A and step S106A, as shown in FIG. 3 .
  • Step S105A When the second feedback information from the receiving end indicates a receiving error, encode the current image frame according to a preset error recovery strategy to obtain encoded data of the current image frame.
  • Step S106A Send the encoded data of the current image frame to the receiving end.
  • the preset error recovery strategy can refer to an encoding strategy that enables the transfer end to obtain the correct decoded data of the image frame from the encoded data of the image frame encoded according to the strategy, including but not limited to: error-tolerant frame error recovery strategy, error-tolerant frame group Error recovery strategies, other possible error recovery strategies, etc.
  • the receiving end receives the image frame encoded with the preset error recovery strategy, and can perform error recovery on the subsequent image frame to be decoded, so as to ensure the reliability of the image frame transmission between the transfer end and the receiving end.
  • the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
  • the frame size of the image frame may refer to the frame size of the image frame, which has nothing to do with the data information of the image frame.
  • an image frame is divided into five blocks, and each block may be called a partial frame of the image frame, and these five blocks constitute a complete frame of the image frame.
  • Intra-frame coding does not seek outside but only inside, regardless of the external data, it only encodes through its own existing data, regardless of the previous (or subsequent) frame (or several frames) of the frame.
  • the coded part is used to guess what the current part of the data to be coded is; since the intra-frame coding only refers to the data of this frame, the compression rate is small.
  • inter-frame coding it is estimated from the previous (or subsequent) frame (or several frames) of the frame what the part of the data to be compressed is; since the inter-frame coding needs to refer to other frame data, the compression rate is high.
  • I frame I frame
  • P/B frame The characteristics of the I frame are: all images are divided into blocks, and the predictive compression method that does not depend on any other frame information is adopted; since there is no reference to the temporal correlation for prediction, the compression rate is low, and the bit rate of the frame after encoding is relatively high. ;Because it does not rely on and does not refer to other frames, as long as the receiving end receives the I frame correctly, it can recover from the error; the I frame belongs to intra-frame coding.
  • the characteristics of the P/B frame are: the image is divided into blocks, and the predictive compression method that depends on other frame information can be used; because the prediction is made with reference to the time correlation, the compression rate is high, and the code rate of the resulting encoded frame is low; Because of relying on and referring to other frames, even if the receiving end receives the frame correctly, if an error occurs before, the error cannot be recovered; the P/B frame belongs to inter-frame coding.
  • the encoded data of the current image frame includes intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames.
  • step S106A after sending the encoded data of the current image frame to the receiving end, further includes: sending the encoded data of M image frames to the receiving end, each image frame in the M image frames
  • the encoded data includes the intra-frame encoded data of the partial frame and the inter-frame encoded data of the remaining partial frames.
  • the intra-frame encoded M The sum of +1 partial frames forms a complete frame, M is a positive integer, i and j are different, and both i and j are greater than or equal to 1 and less than or equal to M+1.
  • the length of the error recovery image frame group is 3 frames, which are image frame 1, image frame 2, and image frame 3, and the frames of each image frame are divided into 3 blocks, which are respectively partial frame I and partial frame II , Partial frame III;
  • Partial frame I of image frame 1 carries out intra-frame coding, obtains the intra-frame coding data of image frame 1, other partial frame II of image frame 1,
  • partial frame III carries out inter-frame coding, obtains the frame of image frame 1 Inter-coded data;
  • the partial frame II of image frame 2 carries out intra-frame encoding, obtains the intra-frame encoded data of image frame 2, and other partial frame I and partial frame III of image frame 2 carry out inter-frame encoding, obtains the inter-frame encoding of image frame 2 Coding data;
  • the partial frame III of the image frame 3 is intraframe coded to obtain the intraframe encoded data of the image frame 3, and other partial frame I and partial frame II of the image frame 3 are interframe coded to obtain the interframe coding of the image frame
  • the intra-coded data of the partial frame of the current image frame and the inter-coded data of the remaining partial frames are sent. In this way, the channel utilization rate can be improved.
  • the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
  • the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame, the encoded data of the current frame may be referred to as an error-tolerant frame, and the error recovery strategy may be referred to as error-tolerant frame error recovery Strategy.
  • the method further includes: when the second feedback information from the receiving end indicates that the reception is correct, sending the inter-frame encoded data of the image frame to the receiving end.
  • the interframe coded data of the image frame is sent to the receiving end, which can effectively improve the channel utilization rate.
  • the second is to perform inter-frame coding on the current image frame according to the determined reference frame.
  • the method further includes: step S105B, step S106B, and step S107B, as shown in FIG. 5 .
  • Step S105B Determine a reference frame for encoding the current image frame according to the second feedback information from the receiving end.
  • Step S106B Perform inter-frame encoding on the current image frame according to the reference frame to obtain encoded data of the current image frame.
  • Step S107B Send the encoded data of the current image frame to the receiving end.
  • the coded image frame adopts an inter-frame coding method (also called an inter-frame predictive coding method).
  • This coding method not only compresses the spatial redundant information in the image frame, but also utilizes the The temporal redundancy between reference frames is used to compress data, that is, to perform temporal prediction and encoding.
  • the compression efficiency of this inter-frame coding method is much higher than that of the intra-frame coding method. In this way, sending the coded data of the current image frame obtained through inter-frame coding to the receiving end can improve the utilization rate of channel resources and reduce transmission delay.
  • the bit rate when performing inter-frame coding on the current image frame, can be controlled within a specific range or close to the target average bit rate.
  • the basis for rate control can be the complexity of the current image frame, bandwidth constraints, buffer capacity, or other factors.
  • the reference frame used to encode the current image frame is determined according to the second feedback information, and the current image frame is inter-frame encoded according to the reference frame. Therefore, as long as the receiving end successfully receives the encoded data of the current image frame, it can To recover from transmission errors, there is no need for the transit end to send intra-coded frames or error-tolerant frame groups, which can improve the utilization of channel resources and improve user experience.
  • step S105B the determining the reference frame used for encoding the current image frame according to the second feedback information from the receiving end may include: sub-step S105B1 and sub-step S105B2, as shown in FIG. 6 .
  • Sub-step S105B1 According to the second feedback information, determine the image frames that have been correctly transmitted.
  • Sub-step S105B2 Determine the reference frame according to the correctly transmitted image frame.
  • the second feedback information may include at least one of the following information: indication information used to indicate whether the last image frame sent before the second feedback information has been correctly transmitted, and information that has been correctly transmitted
  • the frame number of the image frame is the frame number of the last image frame that has been correctly transmitted before the second feedback information. It should be noted that the frame number of the image frame is unique, and the frame number of the image frame and the encoded data are sent to the receiving end together.
  • the method further includes: saving at least a part of the correctly transmitted image frames into a reference frame management queue.
  • the sub-step S105B2 of determining the reference frame according to the correctly transmitted image frame may include: determining an image frame in the reference frame management queue as the reference frame.
  • each time the second feedback information is received the image frame that has been correctly transmitted is determined according to the second feedback information, and the reference frame management queue is updated.
  • the receiving end after determining that the image frames have been correctly transmitted, the receiving end also saves at least a part of the correctly transmitted image frames in the reference frame management queue.
  • the information stored in the reference frame management queue at the transfer terminal is the same as that stored in the reference frame management queue at the receiving terminal.
  • the method further includes: if the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame.
  • the transfer terminal packs the coded data, and sends the data package to the receiving terminal. That is, step S103, the sending the coded data of the image frame to the receiving end may include: sub-step S1031 and sub-step S1032, as shown in FIG. 7 .
  • Sub-step S1031 pack the encoded data of the image frame to generate a data packet, and the data packet includes a packet sequence number and/or a check code.
  • the transfer terminal may pack the encoded data of the image frame into a data packet, and the packet sequence number of the data packet has a corresponding relationship with the frame number of the image frame.
  • the receiving end can detect whether data loss occurs continuously according to the packet sequence numbers of the received data packets. When the packet sequence numbers of the data packets corresponding to the image frames are missing in the packet sequence numbers of the received data packets, it can be determined that data loss occurs, that is The image frame transmission failed. Or, the receiving end calculates the check value according to the data in the received data packet, and when the calculated check value is inconsistent with the check value carried in the data packet, it is determined that a data error occurs, that is, the transmission of the image frame fails .
  • the transfer terminal may also pack the encoded data of the image frame into multiple data packets, and the packet sequence numbers of all the data packets correspond to the frame numbers of the image frame.
  • the receiving end detects whether data loss occurs according to whether the packet sequence numbers of the data packets are continuous. Or the receiving end determines whether a data error occurs according to the way of calculating the check value of the data in the received data packet.
  • the check code carried in the data packet may be a cyclic redundancy check code (CRC, Cyclic Redundancy Check).
  • CRC Cyclic Redundancy Check
  • Sub-step S1032 Send the data packet to the receiving end.
  • the encoded data received by the transfer terminal from the sender is a packaged data packet, that is, step S101, the receiving the encoded data of the image frame from the sender may include: receiving the image frame from the sender A data packet obtained after the encoded data is packaged, and the data packet includes a packet sequence number and/or a check code.
  • step S102 before sending the first feedback information to the sending end, may include: detecting the encoded data of the image frame according to the packet sequence number and/or check code of the data packet; As a result, the first feedback information is generated.
  • the first feedback information is used to indicate whether the reception is wrong.
  • the sending end may send encoded data obtained by encoding according to a preset error recovery strategy to the transfer end for error recovery.
  • the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong.
  • the sending end can determine the reference frame according to the frame number of the correctly decoded image frame, and send the encoded data obtained by performing inter-frame encoding according to the reference frame to the transfer end for error recovery.
  • FIG. 8 is a schematic structural diagram of an embodiment of an image processing device at the relay end of the present application.
  • the device in this embodiment can execute the steps in the above image processing method.
  • relevant content please refer to the relevant content of the above image processing method, which will not be repeated here.
  • the device 100 includes: a communication module 3, a memory 1, and a processor 2; the processor 2 is connected to the memory 1 and the communication module 3 through a bus, respectively.
  • the processor 2 may be a micro control unit, a central processing unit or a digital signal processor, and so on.
  • the memory 1 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk or a mobile hard disk, and the like.
  • the memory 1 is used to store a computer program; the processor 2 is used to execute the computer program and when executing the computer program, implement the following steps:
  • controlling the communication module to receive the coded data of the image frame from the sending end; controlling the communication module to send first feedback information to the sending end, the first feedback information being used to indicate that the transfer end currently receives the The transmission situation of the image frame; controlling the communication module to send the coded data of the image frame to the receiving end; obtaining second feedback information from the receiving end, the second feedback information is used to indicate the current received by the receiving end Describe the transmission of image frames.
  • the encoded data of the image frame from the sending end includes encoded data obtained by encoding according to a preset error recovery strategy when the first feedback information received by the sending end indicates a reception error.
  • the encoded data of the image frame from the sending end includes the encoded data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame encoding according to the reference frame.
  • the processor executes the computer program, the following steps are implemented: when the second feedback information from the receiving end indicates a receiving error, encode the current image frame according to a preset error recovery strategy to obtain the current The encoded data of the image frame; controlling the communication module to send the encoded data of the current image frame to the receiving end.
  • the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
  • the encoded data of the current image frame includes intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames; when the processor executes the computer program, the following steps are implemented: Controlling the communication module to send encoded data of M image frames to the receiving end, the encoded data of each image frame in the M image frames includes intra-frame encoded data of a partial frame and inter-frame encoded data of the remaining partial frames , in the M+1 image frames including the M image frames and the current image frame, the sum of M+1 partial frames for intra-frame coding constitutes a complete frame, M is a positive integer, i and j are different, and both i and j are greater than or equal to 1 and less than or equal to M+1.
  • the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
  • the processor executes the computer program, the following steps are implemented: when the second feedback information from the receiving end indicates that the reception is correct, control the communication module to send the interframe coding of the image frame to the receiving end data.
  • the processor executes the computer program, the following steps are implemented: according to the second feedback information from the receiving end, determining a reference frame for encoding the current image frame; according to the reference frame, the current The image frame is inter-frame encoded to obtain the encoded data of the current image frame; the communication module is controlled to send the encoded data of the current image frame to the receiving end.
  • the processor executes the computer program, the following steps are implemented: according to the second feedback information, determine the image frame that has been correctly transmitted; determine the reference frame according to the image frame that has been correctly transmitted .
  • Determining the reference frame for an image frame includes: determining an image frame in the reference frame management queue as the reference frame.
  • the processor executes the computer program, the following steps are implemented: if the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame .
  • the processor executes the computer program, the following steps are implemented: packaging the encoded data of the image frame to generate a data packet, the data packet includes a packet sequence number and/or a check code;
  • the communication module sends the data packet to the receiving end.
  • controlling the communication module to receive a data packet obtained after packaging the encoded data of the image frame from the sending end, the data packet includes a packet Serial number and/or check digit.
  • the processor executes the computer program, the following steps are implemented: detecting the encoded data of the image frame according to the packet sequence number and/or check code of the data packet; Describe the first feedback information.
  • the first feedback information is used to indicate whether the reception is wrong.
  • the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong.
  • the communication module is a 5G module.
  • the sending end is another transit end.
  • the receiving end is another transfer end.
  • the transfer terminal is connected to a 5G base station.
  • the sending end includes an unmanned aerial vehicle.
  • the present application also provides a service server, which includes the image processing device at the transfer terminal as described in any one of the above items.
  • a service server which includes the image processing device at the transfer terminal as described in any one of the above items.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method described in any one of the above items.
  • the relevant content please refer to the relevant content above, and will not repeat it here.
  • the computer-readable storage medium may be an internal storage unit of the above device, such as a hard disk or a memory.
  • the computer-readable storage medium can also be an external storage device, such as a plug-in hard disk provided, a smart memory card, a secure digital card, a flash memory card, and the like.

Abstract

An image processing method and device, a service server, and a storage medium. The method is applicable to a transit end, and comprises: receiving coded data of an image frame from a transmitting end (S101); transmitting first feedback information to the transmitting end, the first feedback information being used for indicating a transmission condition of the image frame currently received by a transit end (S102); transmitting the coded data of the image frame to a receiving end (S103); and obtaining second feedback information from the receiving end, the second feedback information being used for indicating the transmission condition of the image frame currently received by the receiving end (S104).

Description

图像处理方法、装置、业务服务器及存储介质Image processing method, device, service server and storage medium 技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法、中转端的图像处理装置、业务服务器及存储介质。The present application relates to the technical field of image processing, and in particular to an image processing method, an image processing device at a transfer terminal, a service server, and a storage medium.
背景技术Background technique
由于数据传输,特别是无线数据传输存在着不可靠行性,所以图像数据在端到端传输时一般会使用周期性容错帧和容错帧组来进行错误恢复;或者,尽量保证少传输容错帧或者容错帧组:当传输没有问题的时候,不传输容错帧或者容错帧组;而当传输有错的时候,接收端向发送端反馈错误,此时发送端才发送容错帧或者容错帧组。Due to the unreliability of data transmission, especially wireless data transmission, image data generally uses periodic error-tolerant frames and error-tolerant frame groups for error recovery during end-to-end transmission; or, try to ensure that less error-tolerant frames are transmitted or Error-tolerant frame group: When there is no problem in the transmission, no error-tolerant frame or error-tolerant frame group is transmitted; when there is an error in the transmission, the receiving end feeds back the error to the sending end, and the sending end sends an error-tolerant frame or error-tolerant frame group.
但是,实际上在端到端的过程中可能会经历多次无线传输或者有线传输过程,经历中间处理等等,这导致错误恢复的时间较长、错误概率加大。However, in fact, the end-to-end process may undergo multiple wireless or wired transmission processes, intermediate processing, etc., which results in longer error recovery time and increased error probability.
发明内容Contents of the invention
基于此,本申请提供一种图像处理方法、中转端的图像处理装置、业务服务器及存储介质。Based on this, the present application provides an image processing method, an image processing device at a transfer terminal, a service server, and a storage medium.
第一方面,本申请提供一种图像处理方法,适用于中转端,所述方法包括:In the first aspect, the present application provides an image processing method, which is applicable to the transfer terminal, and the method includes:
接收来自发送端的图像帧的编码数据;receiving the encoded data of the image frame from the sender;
向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;Sending first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end;
向接收端发送图像帧的编码数据;Send the encoded data of the image frame to the receiving end;
获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。Acquire second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
第二方面,本申请提供一种中转端的图像处理装置,所述装置包括:通信 模块、存储器和处理器;In a second aspect, the present application provides an image processing device at a transfer terminal, the device comprising: a communication module, a memory, and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and when executing the computer program, implement the following steps:
控制所述通信模块接收来自发送端的图像帧的编码数据;Controlling the communication module to receive encoded data of the image frame from the sending end;
控制所述通信模块向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;controlling the communication module to send first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end;
控制所述通信模块向接收端发送图像帧的编码数据;controlling the communication module to send encoded data of the image frame to the receiving end;
获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。Acquire second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
第三方面,本申请提供一种业务服务器,所述业务服务器包括如上所述的中转端的图像处理装置。In a third aspect, the present application provides a service server, where the service server includes the image processing device at the transfer terminal as described above.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上所述的图像处理方法。In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method as described above.
本申请实施例提供了一种图像处理方法、中转端的图像处理装置、业务服务器及存储介质,接收来自发送端的图像帧的编码数据;向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;向接收端发送图像帧的编码数据;获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。由于中转端接收到编码数据会向发送端反馈接收到的图像帧的传输情况,中转端向接收端发送编码数据后,也会接收到接收端反馈的接收到的所述图像帧的传输情况,相比相关技术中,端到端传输有错时接收端直接向发送端反馈错误,本申请实施例以中转端为中间节点,将端到端的传输过程分为至少两组,中转端既向发送端反馈接收情况,又接收来自接收端反馈的接收情况,如此能够缩短反馈路径,因此能够降低整个传输过程的图传和反馈的延迟;当中转端向发送端反馈接收错误时,发送端可以很快采取措施进行纠错恢复,当中转端接收到接收端反馈接收错误时,中转端可以采取措施进行纠错恢复,即 将发送端与接收端之间的接收错误分为发送端与中转端之间的接收错误、中转端与接收端之间的接收错误,一方面接收错误发生时发送端或者中转端能够很快收到反馈,能够很快进行纠错恢复,因此能够降低错误恢复时间,另一方面,由于纠错路径变短,进行纠错时传输错误的概率也会降低。The embodiment of the present application provides an image processing method, an image processing device at the transfer end, a service server, and a storage medium, which receive encoded data of image frames from the sending end; send first feedback information to the sending end, and the first feedback The information is used to indicate the transmission status of the image frame currently received by the transit end; send the encoded data of the image frame to the receiving end; obtain second feedback information from the receiving end, and the second feedback information is used to indicate The transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end. Compared with related technologies, when the end-to-end transmission has an error, the receiving end directly feeds back the error to the sending end. In the embodiment of this application, the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery. When the relay end receives feedback from the receiver that it has received an error, the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay. Receiving errors, receiving errors between the transfer end and the receiving end, on the one hand, when a receiving error occurs, the sending end or the transfer end can quickly receive feedback, and can quickly perform error correction and recovery, so the error recovery time can be reduced; on the other hand , since the error correction path becomes shorter, the probability of transmission errors during error correction is also reduced.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。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 application.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.
图1是本申请图像处理方法一实施例的流程示意图;Fig. 1 is a schematic flow chart of an embodiment of the image processing method of the present application;
图2是本申请图像处理方法中一应用场景中转端和5G基站连接的示意图;2 is a schematic diagram of the connection between the transfer terminal and the 5G base station in an application scenario in the image processing method of the present application;
图3是本申请图像处理方法另一实施例的流程示意图;Fig. 3 is a schematic flow chart of another embodiment of the image processing method of the present application;
图4是本申请图像处理方法中一实施例的错误恢复策略的原理示意图;FIG. 4 is a schematic diagram of the principle of an error recovery strategy in an embodiment of the image processing method of the present application;
图5是本申请图像处理方法又一实施例的流程示意图;Fig. 5 is a schematic flow chart of another embodiment of the image processing method of the present application;
图6是本申请图像处理方法又一实施例的流程示意图;FIG. 6 is a schematic flowchart of another embodiment of the image processing method of the present application;
图7是本申请图像处理方法又一实施例的流程示意图;Fig. 7 is a schematic flow chart of another embodiment of the image processing method of the present application;
图8是本申请中转端的图像处理装置一实施例的结构示意图。FIG. 8 is a schematic structural diagram of an embodiment of an image processing device at the relay end of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flow charts shown in the drawings are just illustrations, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, combined or partly combined, so the actual order of execution may be changed according to the actual situation.
由于数据传输存在着不可靠行性,所以图像数据在端到端传输时一般会使用周期性容错帧和容错帧组来进行错误恢复;或者尽量保证少传输容错帧或者容错帧组:当传输没有问题时,不传输容错帧或者容错帧组;当传输有错时,接收端向发送端反馈错误,此时发送端才发送容错帧或者容错帧组。但是,实际上在端到端的过程中可能会经历多次传输过程,经历中间处理等等,这导致错误恢复时间较长、错误概率加大。Due to the unreliability of data transmission, image data generally uses periodic error-tolerant frames and error-tolerant frame groups for error recovery during end-to-end transmission; or try to ensure that less error-tolerant frames or error-tolerant frame groups are transmitted: when there is no When there is a problem, the error-tolerant frame or error-tolerant frame group is not transmitted; when there is an error in the transmission, the receiving end feeds back the error to the sending end, and the sending end sends the error-tolerant frame or error-tolerant frame group at this time. However, in fact, in the end-to-end process, there may be multiple transmission processes, intermediate processing, etc., which results in longer error recovery time and increased error probability.
本申请实施例提供了一种图像处理方法、中转端的图像处理装置、业务服务器及存储介质,接收来自发送端的图像帧的编码数据;向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;向接收端发送图像帧的编码数据;获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。由于中转端接收到编码数据会向发送端反馈接收到的图像帧的传输情况,中转端向接收端发送编码数据后,也会接收到接收端反馈的接收到的所述图像帧的传输情况,相比相关技术中,端到端传输有错时接收端直接向发送端反馈错误,本申请实施例以中转端为中间节点,将端到端的传输过程分为至少两组,中转端既向发送端反馈接收情况,又接收来自接收端反馈的接收情况,如此能够缩短反馈路径,因此能够降低整个传输过程的图传和反馈的延迟;当中转端向发送端反馈接收错误时,发送端可以很快采取措施进行纠错恢复,当中转端接收到接收端反馈接收错误时,中转端可以采取措施进行纠错恢复,即将发送端与接收端之间的接收错误分为发送端与中转端之间的接收错误、中转端与接收端之间的接收错误,一方面接收错误发生时发送端或者中转端能够很快收到反馈,能够很快进行纠错恢复,因此能够降低错误恢复时间,另一方面,由于纠错路径变短,进行纠错时传输错误的概率也会降低。The embodiment of the present application provides an image processing method, an image processing device at the transfer end, a service server, and a storage medium, which receive encoded data of image frames from the sending end; send first feedback information to the sending end, and the first feedback The information is used to indicate the transmission status of the image frame currently received by the transit end; send the encoded data of the image frame to the receiving end; obtain second feedback information from the receiving end, and the second feedback information is used to indicate The transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end. Compared with related technologies, when the end-to-end transmission has an error, the receiving end directly feeds back the error to the sending end. In the embodiment of this application, the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery. When the relay end receives feedback from the receiver that it has received an error, the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay. Receiving errors, receiving errors between the transfer end and the receiving end, on the one hand, when a receiving error occurs, the sending end or the transfer end can quickly receive feedback, and can quickly perform error correction and recovery, so the error recovery time can be reduced; on the other hand , since the error correction path becomes shorter, the probability of transmission errors during error correction is also reduced.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some implementations of the present application will be described in detail below in conjunction with the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
参见图1,图1是本申请图像处理方法一实施例的流程示意图,本申请实施例的方法适用于中转端,发送端向接收端发送图像帧的编码数据的发送过程包括发送端向中转端发送图像帧的编码数据的发送过程以及中转端向接收端发送图像帧的编码数据的发送过程。Referring to Fig. 1, Fig. 1 is a schematic flow chart of an embodiment of the image processing method of the present application. The method of the embodiment of the present application is applicable to the transfer terminal, and the sending process of sending the coded data of the image frame from the sending end to the receiving end includes sending the sending end to the transfer end. The process of sending the coded data of the image frame and the process of sending the coded data of the image frame from the relay end to the receiving end.
需要说明的是,本申请实施例中的发送端可以是编码数据的源发送端,也可以编码数据的中间发送端(即该发送端可以是另一个中转端,该发送端的编码数据是其他发送端发送);本申请实施例的接收端可以是编码数据的目的接收端,也可以是编码数据的中间接收端(即该接收端可以是另一个中转端,该接收端接收到编码数据后还需要向其他接收端转发)。It should be noted that the sending end in the embodiment of the present application can be the source sending end of the encoded data, or the intermediate sending end of the encoded data (that is, the sending end can be another transit end, and the encoded data of the sending end is another sending end. end); the receiving end of the embodiment of the present application can be the destination receiving end of the encoded data, and can also be the intermediate receiving end of the encoded data (that is, the receiving end can be another transit end, and the receiving end also receives the encoded data. need to be forwarded to other receivers).
所述方法包括:步骤S101、步骤S102、步骤S103以及步骤S104。The method includes: step S101, step S102, step S103 and step S104.
步骤S101:接收来自发送端的图像帧的编码数据。Step S101: Receive the coded data of the image frame from the sending end.
步骤S102:向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况。Step S102: Sending first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end.
步骤S103:向接收端发送图像帧的编码数据。Step S103: Send the coded data of the image frame to the receiving end.
步骤S104:获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。Step S104: Obtain second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
本实施例中,传输情况可以是指图像帧的传输是否出现错误,包括但不限于:图像帧的传输过程中是否出现数据丢失或数据错误;图像帧是否被正确传输,正确传输后是否被成功解码;等等。In this embodiment, the transmission status may refer to whether there is an error in the transmission of the image frame, including but not limited to: whether data loss or data error occurs during the transmission of the image frame; whether the image frame is transmitted correctly, and whether it is successfully transmitted after the correct transmission. decode; etc.
本实施例中的发送端可以是在任何合适的环境下能够移动的平台,例如在空气中飞行的各种飞机、无人机等,在水中移动的各种船、潜艇等,在陆地上移动的各种汽车、火车等。在一实施例中,所述发送端包括常见的无人机。本实施例中的发送端还可以是图像传输过程中的中间节点,可以是另一个中转端,即在图像传输过程中出现2次以上的传输中转。因此本申请实施例也适用于多段传输。The sending end in this embodiment can be a platform that can move in any suitable environment, such as various airplanes, drones, etc. flying in the air, various ships, submarines, etc. moving in water, and moving on land. Various cars, trains, etc. In one embodiment, the sending end includes a common drone. The sending end in this embodiment may also be an intermediate node in the image transmission process, or another transfer end, that is, more than two transmission transfers occur during the image transmission process. Therefore, the embodiment of the present application is also applicable to multi-segment transmission.
本实施例中的接收端可以是计算机、手持式电子设备、通讯设备、视频监控设备等。本实施例中的接收端还可以是图像传输过程中的中间节点,可以是另一个中转端,即在图像传输过程中出现2次以上的传输中转。因此本申请实施例也适用于多段传输。The receiving end in this embodiment may be a computer, a handheld electronic device, a communication device, a video monitoring device, and the like. The receiving end in this embodiment may also be an intermediate node in the image transmission process, or another transfer end, that is, more than two transmission transfers occur during the image transmission process. Therefore, the embodiment of the present application is also applicable to multi-segment transmission.
例如,传输过程先后需要经过4个节点,从头到尾分别是:设备1、设备2、设备3、设备4;该传输过程可以分解为两个传输中转过程,第一个是:设备1、设备2、设备3,第二个是:设备2、设备3、设备4;对于第一个传输中转过程来说,设备1可以作为本申请实施例的发送端,设备2(中转端)可 以作为本申请实施例的中转端,设备3(即另一个中转端)可以作为本申请实施例的接收端;对于第二个传输中转来说,设备2(另一个中转端)可以作为本申请实施例的发送端,设备3(中转端)可以作为本申请实施例的中转端,设备4可以作为本申请实施例的接收端;作为整体的传输过程来说,设备2、设备3均为本申请实施例的中转端,设备2和设备3均适用于本申请实施例的方法。For example, the transmission process needs to go through 4 nodes successively, which are: device 1, device 2, device 3, and device 4 from beginning to end; the transmission process can be decomposed into two transmission and transfer processes, the first one is: device 1, device 2. Device 3, the second one is: device 2, device 3, and device 4; for the first transmission and transfer process, device 1 can be used as the sending end of the embodiment of this application, and device 2 (transfer end) can be used as this For the transfer terminal of the embodiment of the application, device 3 (ie another transfer terminal) can be used as the receiving end of the embodiment of the application; for the second transmission transfer, device 2 (another transfer terminal) can be used as the receiving end of the embodiment of the application The sending end, device 3 (transfer end) can be used as the transfer end of the embodiment of the application, and the device 4 can be used as the receiving end of the embodiment of the application; as a whole transmission process, the device 2 and the device 3 are both the embodiment of the application The relay end, device 2 and device 3 are applicable to the method of the embodiment of the present application.
在一实施例中,所述中转端和5G基站连接。例如,如图2所示,中转端可以是部署在移动边缘计算节点上的业务服务器,该业务服务器与5G基站连接,如此能够进一步降低两端(发送端和接收端)到业务服务器的传输和反馈延迟,从而达到较好的图传体验效果。In an embodiment, the transfer terminal is connected to a 5G base station. For example, as shown in Figure 2, the transfer end can be a service server deployed on a mobile edge computing node, and the service server is connected to a 5G base station, which can further reduce the transmission and transmission costs from both ends (sending end and receiving end) to the service server. Feedback delay, so as to achieve a better image transmission experience.
在本实施例中,所述中转端与所述发送端之间以及所述中转端与所述接收端之间可以是无线通信、有线通信、或者光线通信,还可以是两者以上的混合通信,如图2所示。随着5G应用的越来越广泛,在一实施例中,所述中转端与所述发送端之间以及所述中转端与所述接收端之间通过5G模块通信。In this embodiment, wireless communication, wired communication, or optical communication may be used between the transfer end and the sending end and between the transfer end and the receiving end, or a mixed communication of the two or more ,as shown in picture 2. As 5G applications become more and more widespread, in an embodiment, the communication between the transfer terminal and the sending end and between the transfer terminal and the receiving end is through a 5G module.
本申请实施例中的中转端与相关技术中的中转端相同的是:作为发送端和中间端的中间节点,接收发送端发送的编码数据并转发编码数据给接收端;该中转端与相关技术的中转端不同的是:本实施例中的中转端会向发送端发送第一反馈信息,也会接收到接收端发送的第二反馈信息。第一反馈信息用于指示中转端当前接收到的所述图像帧的传输情况。第二反馈信息用于指示接收端当前接收到的所述图像帧的传输情况。The transfer terminal in the embodiment of the present application is the same as the transfer terminal in the related art: as an intermediate node between the sending end and the intermediate end, it receives the coded data sent by the sending end and forwards the coded data to the receiving end; The difference of the transfer terminal is that the transfer terminal in this embodiment will send the first feedback information to the sending end, and will also receive the second feedback information sent by the receiving end. The first feedback information is used to indicate the transmission status of the image frame currently received by the transfer terminal. The second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
因此,作为中转端,一方面能够向发送端反馈第一反馈信息,便于发送端了解自己发送的所述图像帧的传输情况,为后续发送端与中转端之间的纠错恢复提供技术支持;另一方面能够接收到接收端反馈的第二反馈信息,便于中转端了解自己发送的所述图像帧的传输情况,为后续中转端与接收端之间的纠错恢复提供技术支持。即后续纠错恢复时,将原来的发送端到接收端之间的纠错恢复变化为:发送端与中转端之间的纠错恢复、中转端与接收端之间的纠错恢复,相比原来的纠错路径,本申请实施例的纠错路径也变短了,能够降低错误恢复时间,降低纠错时传输错误的概率。Therefore, as a transfer terminal, on the one hand, it can feed back the first feedback information to the sender, so that the sender can understand the transmission status of the image frame sent by itself, and provide technical support for subsequent error correction and recovery between the sender and the transfer terminal; On the other hand, the second feedback information fed back by the receiving end can be received, which is convenient for the transfer end to understand the transmission status of the image frame sent by itself, and provides technical support for subsequent error correction and recovery between the transfer end and the receiving end. That is, in the subsequent error correction recovery, the original error correction recovery between the sending end and the receiving end is changed to: the error correction recovery between the sending end and the transit end, and the error correction recovery between the transit end and the receiving end. The original error correction path, the error correction path of the embodiment of the present application is also shortened, which can reduce the error recovery time and reduce the probability of transmission errors during error correction.
需要说明的是,上述步骤S102和步骤S103没有明显的先后顺序关系。It should be noted that there is no obvious sequence relationship between the above step S102 and step S103.
本申请实施例接收来自发送端的图像帧的编码数据;向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;向接收端发送图像帧的编码数据;获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。由于中转端接收到编码数据会向发送端反馈接收到的图像帧的传输情况,中转端向接收端发送编码数据后,也会接收到接收端反馈的接收到的所述图像帧的传输情况,相比相关技术中,端到端传输有错时接收端直接向发送端反馈错误,本申请实施例以中转端为中间节点,将端到端的传输过程分为至少两组,中转端既向发送端反馈接收情况,又接收来自接收端反馈的接收情况,如此能够缩短反馈路径,因此能够降低整个传输过程的图传和反馈的延迟;当中转端向发送端反馈接收错误时,发送端可以很快采取措施进行纠错恢复,当中转端接收到接收端反馈接收错误时,中转端可以采取措施进行纠错恢复,即将发送端与接收端之间的接收错误分为发送端与中转端之间的接收错误、中转端与接收端之间的接收错误,一方面接收错误发生时发送端或者中转端能够很快收到反馈,能够很快进行纠错恢复,因此能够降低错误恢复时间,另一方面,由于纠错路径变短,进行纠错时传输错误的概率也会降低。In the embodiment of the present application, the coded data of the image frame is received from the sending end; the first feedback information is sent to the sending end, and the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end; Sending the encoded data of the image frame to the receiving end; obtaining second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end. Since the transfer terminal receives the encoded data, it will feed back the transmission status of the received image frame to the sending end, and after the transfer terminal sends the encoded data to the receiving end, it will also receive the transmission status of the received image frame fed back by the receiving end. Compared with related technologies, when the end-to-end transmission has an error, the receiving end directly feeds back the error to the sending end. In the embodiment of this application, the transfer end is used as an intermediate node, and the end-to-end transmission process is divided into at least two groups. Feedback on the reception status, and receive feedback from the receiving end, so that the feedback path can be shortened, so the delay of image transmission and feedback during the entire transmission process can be reduced; when the intermediate end feeds back the receiving error to the sending end, the sending end can quickly Take measures for error correction and recovery. When the relay end receives feedback from the receiver that it has received an error, the relay end can take measures to perform error correction and recovery, that is, the receiving error between the sender and the receiver is divided into the error between the sender and the relay. Receiving errors, receiving errors between the transfer end and the receiving end, on the one hand, when a receiving error occurs, the sending end or the transfer end can quickly receive feedback, and can quickly perform error correction and recovery, so the error recovery time can be reduced; on the other hand , since the error correction path becomes shorter, the probability of transmission errors during error correction is also reduced.
当发送端到中转端发生接收错误时,发送端发送的编码数据能够用于错误恢复,发送端基于中转端的反馈,通常有两种较为常用的错误恢复方式,那么中转端接收到的编码数据对应有两种不同的编码数据。When a receiving error occurs from the sender to the transit end, the coded data sent by the sender can be used for error recovery. Based on the feedback from the transit end, the sender usually has two common error recovery methods. Then the coded data received by the transit end corresponds to There are two different encoding data.
第一种是,所述来自发送端的图像帧的编码数据包括当所述发送端接收到的第一反馈信息指示接收错误时,所述发送端根据预设错误恢复策略编码得到的编码数据。The first one is that the encoded data of the image frame from the sending end includes encoded data obtained by encoding according to a preset error recovery strategy when the first feedback information received by the sending end indicates a reception error.
第二种是,所述来自发送端的图像帧的编码数据包括所述发送端根据所述第一反馈信息确定参考帧并根据所述参考帧进行帧间编码得到的编码数据。The second type is that the coded data of the image frame from the sending end includes the coded data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame coding according to the reference frame.
本申请实施例中的接收错误通常包括数据丢失和数据校验错误。The reception errors in this embodiment of the present application generally include data loss and data verification errors.
例如,在发送编码数据之前,将编码数据进行打包处理,得到的每个数据包都有唯一的包序号,数据包内数据有校验码;通过包序号的不连续检测判断发生丢包,则认为该图像帧的接收情况为接收错误;通过数据包内携带的校验码和数据包内的数据计算的校验码不一致,可以认为该图像帧的接收情况为接 收错误。通过包序号的不连续检测判断没有发生丢包,通过数据包内携带的校验码和数据包内的数据计算的校验码一致,则可以认为该图像帧的接收情况为接收正确。For example, before sending the encoded data, the encoded data is packaged, and each obtained data packet has a unique packet serial number, and the data in the data packet has a check code; the packet loss is judged by the discontinuous detection of the packet serial number, then The reception of the image frame is considered to be a reception error; the check code carried in the data packet is inconsistent with the check code calculated from the data in the data packet, and the reception of the image frame can be considered to be a reception error. It is judged that there is no packet loss through the discontinuous detection of the packet sequence number, and the check code carried in the data packet is consistent with the check code calculated from the data in the data packet, then it can be considered that the reception of the image frame is correct.
当第一反馈信息提示接收错误时,中转端后续接收到的编码数据可以是发送端根据预设错误恢复策略编码得到的编码数据,也可以是发送端根据所述第一反馈信息确定参考帧并根据所述参考帧进行帧间编码得到的编码数据。有关这两种错误恢复方式在后面详细说明。When the first feedback information prompts a reception error, the encoded data subsequently received by the transfer terminal may be the encoded data obtained by encoding according to a preset error recovery strategy at the transmitting end, or it may be that the transmitting end determines a reference frame according to the first feedback information and Coded data obtained by performing inter-frame coding according to the reference frame. The details of these two error recovery methods will be described later.
当中转端获取到接收端的第二反馈信息指示接收错误时,中转端通常会采取两种常用的错误恢复方式进行恢复。When the relay terminal obtains the second feedback information from the receiving terminal indicating a reception error, the relay terminal usually adopts two commonly used error recovery methods for recovery.
第一种是,根据预设错误恢复策略对当前图像帧进行编码并发送编码数据。The first is to encode the current image frame according to a preset error recovery policy and send the encoded data.
即所述方法还包括:步骤S105A和步骤S106A,如图3所示。That is, the method further includes: step S105A and step S106A, as shown in FIG. 3 .
步骤S105A:当来自所述接收端的第二反馈信息指示接收错误时,根据预设错误恢复策略对当前图像帧进行编码,得到所述当前图像帧的编码数据。Step S105A: When the second feedback information from the receiving end indicates a receiving error, encode the current image frame according to a preset error recovery strategy to obtain encoded data of the current image frame.
步骤S106A:向所述接收端发送所述当前图像帧的编码数据。Step S106A: Send the encoded data of the current image frame to the receiving end.
预设错误恢复策略可以是指能够使得中转端根据该策略编码得到的图像帧的编码数据获得该图像帧的正确的解码数据的编码策略,包括但不限于:容错帧错误恢复策略、容错帧组错误恢复策略、其他可行的错误恢复策略,等等。接收端接收到采用预设错误恢复策略进行编码的图像帧,可以对后续待解码的图像帧进行错误恢复,从而可以保证中转端与接收端之间传输图像帧的可靠性。The preset error recovery strategy can refer to an encoding strategy that enables the transfer end to obtain the correct decoded data of the image frame from the encoded data of the image frame encoded according to the strategy, including but not limited to: error-tolerant frame error recovery strategy, error-tolerant frame group Error recovery strategies, other possible error recovery strategies, etc. The receiving end receives the image frame encoded with the preset error recovery strategy, and can perform error recovery on the subsequent image frame to be decoded, so as to ensure the reliability of the image frame transmission between the transfer end and the receiving end.
在一实施例中,所述当前图像帧的编码数据至少包括所述当前图像帧的局部画幅的帧内编码数据。In an embodiment, the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
本实施例中,图像帧的画幅可以是指图像帧的画面大小,与图像帧的数据信息无关。例如:一个图像帧的画面分为五个块,每个块可以称为该图像帧的局部画幅,这五个块构成图像帧的完整画幅。In this embodiment, the frame size of the image frame may refer to the frame size of the image frame, which has nothing to do with the data information of the image frame. For example, an image frame is divided into five blocks, and each block may be called a partial frame of the image frame, and these five blocks constitute a complete frame of the image frame.
帧内编码,顾名思义,不求外只求内,不管外部数据如何,仅仅通过自身已有的数据进行编码,跟该帧的前面(或后面)一帧(或几帧)无关,由该帧中已编码的部分来推测当前待编码的这一部分数据是什么;由于帧内编码只参考本帧数据,因此压缩率小。帧间编码,是由该帧的前(或后)一帧(或几帧)来推测当前待压缩的这一部分数据是什么;由于帧间编码要参考其他帧数据, 因此压缩率大。Intra-frame coding, as the name suggests, does not seek outside but only inside, regardless of the external data, it only encodes through its own existing data, regardless of the previous (or subsequent) frame (or several frames) of the frame. The coded part is used to guess what the current part of the data to be coded is; since the intra-frame coding only refers to the data of this frame, the compression rate is small. In inter-frame coding, it is estimated from the previous (or subsequent) frame (or several frames) of the frame what the part of the data to be compressed is; since the inter-frame coding needs to refer to other frame data, the compression rate is high.
目前业界广泛使用的视频编码标准,包括H.263、H.264、H.265、MPEG4等等,都提供了两类帧类型:I帧、P/B帧。I帧的特点是:所有的图像分块,采用不依赖于其他任何帧信息的预测压缩方式;由于没有参考时间相关性进行预测,压缩率较低,产生的编码后该帧的码率较高;因为不依赖不参考他帧,接收端只要正确接收到I帧,即可恢复错误;I帧属于帧内编码。P/B帧的特点是:图像分块,可以采用依赖于其他帧信息的预测压缩方式;由于参考了时间相关性进行预测,压缩率较高,产生的编码后该帧的码率较低;因为依赖和参考他帧,即使接收端正确接收该帧,如果之前有错误发生,错误不能被恢复;P/B帧属于帧间编码。Currently, video coding standards widely used in the industry, including H.263, H.264, H.265, MPEG4, etc., provide two types of frame types: I frame and P/B frame. The characteristics of the I frame are: all images are divided into blocks, and the predictive compression method that does not depend on any other frame information is adopted; since there is no reference to the temporal correlation for prediction, the compression rate is low, and the bit rate of the frame after encoding is relatively high. ;Because it does not rely on and does not refer to other frames, as long as the receiving end receives the I frame correctly, it can recover from the error; the I frame belongs to intra-frame coding. The characteristics of the P/B frame are: the image is divided into blocks, and the predictive compression method that depends on other frame information can be used; because the prediction is made with reference to the time correlation, the compression rate is high, and the code rate of the resulting encoded frame is low; Because of relying on and referring to other frames, even if the receiving end receives the frame correctly, if an error occurs before, the error cannot be recovered; the P/B frame belongs to inter-frame coding.
本实施例在第二反馈信息指示接收错误时,发送帧内编码数据,能够防止错误扩散,实现错误恢复。In this embodiment, when the second feedback information indicates a reception error, intra-frame coded data is sent, which can prevent error diffusion and implement error recovery.
其中,所述当前图像帧的编码数据包括所述当前图像帧的局部画幅的帧内编码数据与剩余局部画幅的帧间编码数据。Wherein, the encoded data of the current image frame includes intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames.
此时,步骤S106A,向所述接收端发送所述当前图像帧的编码数据之后,还包括:向所述接收端发送M个图像帧的编码数据,所述M个图像帧中每个图像帧的编码数据包括局部画幅的帧内编码数据和剩余局部画幅的帧间编码数据,在包括所述M个图像帧与所述当前图像帧的M+1个图像帧中,进行帧内编码的M+1个局部画幅的总和构成一个完整画幅,M为正整数,i和j不相同,且i和j均大于等于1,小于等于M+1。At this time, step S106A, after sending the encoded data of the current image frame to the receiving end, further includes: sending the encoded data of M image frames to the receiving end, each image frame in the M image frames The encoded data includes the intra-frame encoded data of the partial frame and the inter-frame encoded data of the remaining partial frames. Among the M+1 image frames including the M image frames and the current image frame, the intra-frame encoded M The sum of +1 partial frames forms a complete frame, M is a positive integer, i and j are different, and both i and j are greater than or equal to 1 and less than or equal to M+1.
参见图4,假设错误恢复图像帧组的长度是3帧,分别是图像帧1、图像帧2以及图像帧3,每个图像帧的画幅分为3块,分别是局部画幅I、局部画幅II、局部画幅III;图像帧1的局部画幅I进行帧内编码,得到图像帧1的帧内编码数据,图像帧1的其他局部画幅II、局部画幅III进行帧间编码,得到图像帧1的帧间编码数据;图像帧2的局部画幅II进行帧内编码,得到图像帧2的帧内编码数据,图像帧2的其他局部画幅I、局部画幅III进行帧间编码,得到图像帧2的帧间编码数据;图像帧3的局部画幅III进行帧内编码,得到图像帧3的帧内编码数据,图像帧3的其他局部画幅I、局部画幅II进行帧间编码,得到图像帧3的帧间编码数据。接收端正确接收到此3帧图像帧,可以 恢复之前图像不同画幅区域的错误内容。Referring to Figure 4, it is assumed that the length of the error recovery image frame group is 3 frames, which are image frame 1, image frame 2, and image frame 3, and the frames of each image frame are divided into 3 blocks, which are respectively partial frame I and partial frame II , Partial frame III; Partial frame I of image frame 1 carries out intra-frame coding, obtains the intra-frame coding data of image frame 1, other partial frame II of image frame 1, partial frame III carries out inter-frame coding, obtains the frame of image frame 1 Inter-coded data; the partial frame II of image frame 2 carries out intra-frame encoding, obtains the intra-frame encoded data of image frame 2, and other partial frame I and partial frame III of image frame 2 carry out inter-frame encoding, obtains the inter-frame encoding of image frame 2 Coding data; the partial frame III of the image frame 3 is intraframe coded to obtain the intraframe encoded data of the image frame 3, and other partial frame I and partial frame II of the image frame 3 are interframe coded to obtain the interframe coding of the image frame 3 data. The receiving end correctly receives these 3 frames of image frames, and can recover the wrong content of the different frame areas of the previous image.
本实施例在第二反馈信息指示接收错误时,发送的是当前图像帧的局部画幅的帧内编码数据与剩余局部画幅的帧间编码数据,通过这种方式,能够提高信道利用率。In this embodiment, when the second feedback information indicates a reception error, the intra-coded data of the partial frame of the current image frame and the inter-coded data of the remaining partial frames are sent. In this way, the channel utilization rate can be improved.
其中,所述当前图像帧的编码数据包括所述当前图像帧的整个画幅的帧内编码数据。Wherein, the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
本实施例中,当前图像帧的编码数据包括所述当前图像帧的整个画幅的帧内编码数据,该当前帧的编码数据可以被称为容错帧,该错误恢复策略可以称为容错帧错误恢复策略。In this embodiment, the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame, the encoded data of the current frame may be referred to as an error-tolerant frame, and the error recovery strategy may be referred to as error-tolerant frame error recovery Strategy.
其中,所述方法还包括:当来自所述接收端的第二反馈信息指示接收正确时,向所述接收端发送图像帧的帧间编码数据。Wherein, the method further includes: when the second feedback information from the receiving end indicates that the reception is correct, sending the inter-frame encoded data of the image frame to the receiving end.
本实施例在第二反馈信息指示接收正确时,向所述接收端发送图像帧的帧间编码数据,能够有效提高信道利用率。In this embodiment, when the second feedback information indicates that the reception is correct, the interframe coded data of the image frame is sent to the receiving end, which can effectively improve the channel utilization rate.
第二种是,根据确定的参考帧对所述当前图像帧进行帧间编码。The second is to perform inter-frame coding on the current image frame according to the determined reference frame.
即所述方法还包括:步骤S105B、步骤S106B以及步骤S107B,如图5所示。That is, the method further includes: step S105B, step S106B, and step S107B, as shown in FIG. 5 .
步骤S105B:根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧。Step S105B: Determine a reference frame for encoding the current image frame according to the second feedback information from the receiving end.
步骤S106B:根据所述参考帧,对所述当前图像帧进行帧间编码,得到所述当前图像帧的编码数据。Step S106B: Perform inter-frame encoding on the current image frame according to the reference frame to obtain encoded data of the current image frame.
步骤S107B:向所述接收端发送所述当前图像帧的编码数据。Step S107B: Send the encoded data of the current image frame to the receiving end.
本实施例中,编码图像帧采用的是帧间编码方式(也称为帧间预测编码方式),这种编码方式不但压缩本图像帧内的空间冗余信息,还会利用本图像帧与指定的参考帧之间的时间冗余来压缩数据,也就是进行时域预测并进行编码。这种帧间编码方式的压缩效率要比帧内编码方式高很多。如此,向所述接收端发送通过帧间编码得到的所述当前图像帧的编码数据,能够提高信道资源的利用率,降低传输时延。In this embodiment, the coded image frame adopts an inter-frame coding method (also called an inter-frame predictive coding method). This coding method not only compresses the spatial redundant information in the image frame, but also utilizes the The temporal redundancy between reference frames is used to compress data, that is, to perform temporal prediction and encoding. The compression efficiency of this inter-frame coding method is much higher than that of the intra-frame coding method. In this way, sending the coded data of the current image frame obtained through inter-frame coding to the receiving end can improve the utilization rate of channel resources and reduce transmission delay.
实际应用中,在对当前图像帧进行帧间编码时,可以将码率控制在一个特定的范围内或者接近目标平均码率。码率控制的依据可以是当前图像帧的复杂 度、带宽限制、缓存容量或其他因素。In practical applications, when performing inter-frame coding on the current image frame, the bit rate can be controlled within a specific range or close to the target average bit rate. The basis for rate control can be the complexity of the current image frame, bandwidth constraints, buffer capacity, or other factors.
本实施例根据第二反馈信息确定用于编码当前图像帧的参考帧,根据所述参考帧对所述当前图像帧进行帧间编码,因此接收端只要成功接收当前图像帧的编码数据,即可恢复传输错误,无需中转端发送帧内编码帧或者容错帧组,如此能够提高信道资源的利用率,提升用户体验。In this embodiment, the reference frame used to encode the current image frame is determined according to the second feedback information, and the current image frame is inter-frame encoded according to the reference frame. Therefore, as long as the receiving end successfully receives the encoded data of the current image frame, it can To recover from transmission errors, there is no need for the transit end to send intra-coded frames or error-tolerant frame groups, which can improve the utilization of channel resources and improve user experience.
在一实施例中,步骤S105B,所述根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧,可以包括:子步骤S105B1和子步骤S105B2,如图6所示。In an embodiment, step S105B, the determining the reference frame used for encoding the current image frame according to the second feedback information from the receiving end may include: sub-step S105B1 and sub-step S105B2, as shown in FIG. 6 .
子步骤S105B1:根据所述第二反馈信息,确定已被正确传输的图像帧。Sub-step S105B1: According to the second feedback information, determine the image frames that have been correctly transmitted.
子步骤S105B2:根据所述已被正确传输的图像帧确定所述参考帧。Sub-step S105B2: Determine the reference frame according to the correctly transmitted image frame.
本实施例中,第二反馈信息可以包括以下信息中的至少一种:用于指示在所述第二反馈信息之前发送的最后一帧图像帧是否被正确传输的指示信息,已被正确传输的图像帧的帧号,在所述第二反馈信息之前最后一帧已被正确传输的图像帧的帧号。需要说明的是,图像帧的帧号是唯一的,并且图像帧的帧号和编码数据一起发送给接收端。In this embodiment, the second feedback information may include at least one of the following information: indication information used to indicate whether the last image frame sent before the second feedback information has been correctly transmitted, and information that has been correctly transmitted The frame number of the image frame is the frame number of the last image frame that has been correctly transmitted before the second feedback information. It should be noted that the frame number of the image frame is unique, and the frame number of the image frame and the encoded data are sent to the receiving end together.
在一实施例中,所述方法还包括:将所述已被正确传输的图像帧中的至少一部分保存到参考帧管理队列中。In an embodiment, the method further includes: saving at least a part of the correctly transmitted image frames into a reference frame management queue.
此时,子步骤S105B2,所述根据所述已被正确传输的图像帧确定所述参考帧,可以包括:将所述参考帧管理队列中的图像帧,确定为所述参考帧。At this time, the sub-step S105B2 of determining the reference frame according to the correctly transmitted image frame may include: determining an image frame in the reference frame management queue as the reference frame.
本实施例在每次收到第二反馈信息时,根据第二反馈信息确定已被正确传输的图像帧,并更新参考帧管理队列。相应地,接收端在确定已被正确传输的图像帧后,也将正确传输的图像帧中的至少一部分保存到参考帧管理队列中。中转端中的参考帧管理队列与接收端中的参考帧管理队列中保存的信息相同。In this embodiment, each time the second feedback information is received, the image frame that has been correctly transmitted is determined according to the second feedback information, and the reference frame management queue is updated. Correspondingly, after determining that the image frames have been correctly transmitted, the receiving end also saves at least a part of the correctly transmitted image frames in the reference frame management queue. The information stored in the reference frame management queue at the transfer terminal is the same as that stored in the reference frame management queue at the receiving terminal.
在一实施例中,所述方法还包括:若没有接收到所述第二反馈信息,则将所述图像帧之前发送的预设数量的图像帧确定为所述参考帧。In an embodiment, the method further includes: if the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame.
在一实施例中,中转端对编码数据打包,将数据包发送给接收端。即步骤S103,所述向接收端发送图像帧的编码数据,可以包括:子步骤S1031和子步骤S1032,如图7所示。In an embodiment, the transfer terminal packs the coded data, and sends the data package to the receiving terminal. That is, step S103, the sending the coded data of the image frame to the receiving end may include: sub-step S1031 and sub-step S1032, as shown in FIG. 7 .
子步骤S1031:对所述图像帧的编码数据进行打包处理,生成数据包,所 述数据包包括包序号和/或校验码。Sub-step S1031: pack the encoded data of the image frame to generate a data packet, and the data packet includes a packet sequence number and/or a check code.
中转端可以将所述图像帧的编码数据打包成一个数据包,数据包的包序号与图像帧的帧号具有对应关系。接收端可以根据接收到的数据包的包序号是否连续检测是否发生数据丢失,当接收到的数据包的包序号中缺少与图像帧对应的数据包的包序号时,可确定发生数据丢失,即该图像帧传输失败。或者,接收端根据接收到的数据包中的数据计算校验值,当计算得出的校验值与该数据包中携带的校验值不一致时,确定出现数据错误,即该图像帧传输失败。The transfer terminal may pack the encoded data of the image frame into a data packet, and the packet sequence number of the data packet has a corresponding relationship with the frame number of the image frame. The receiving end can detect whether data loss occurs continuously according to the packet sequence numbers of the received data packets. When the packet sequence numbers of the data packets corresponding to the image frames are missing in the packet sequence numbers of the received data packets, it can be determined that data loss occurs, that is The image frame transmission failed. Or, the receiving end calculates the check value according to the data in the received data packet, and when the calculated check value is inconsistent with the check value carried in the data packet, it is determined that a data error occurs, that is, the transmission of the image frame fails .
中转端也可以将图像帧的编码数据打包成多个数据包,所有数据包的包序号均对应该图像帧的帧号。接收端根据数据包的包序号是否连续检测是否发生数据丢失。或者接收端根据接收到的数据包中的数据的计算校验值的方式确定是否发生数据错误。The transfer terminal may also pack the encoded data of the image frame into multiple data packets, and the packet sequence numbers of all the data packets correspond to the frame numbers of the image frame. The receiving end detects whether data loss occurs according to whether the packet sequence numbers of the data packets are continuous. Or the receiving end determines whether a data error occurs according to the way of calculating the check value of the data in the received data packet.
其中,数据包中携带的校验码可以是循环冗余校验码(CRC,Cyclic Redundancy Check)。Wherein, the check code carried in the data packet may be a cyclic redundancy check code (CRC, Cyclic Redundancy Check).
子步骤S1032:向所述接收端发送所述数据包。Sub-step S1032: Send the data packet to the receiving end.
在一实施例中,中转端接收到发送端的编码数据是打包处理后的数据包,即步骤S101,所述接收来自发送端的图像帧的编码数据,可以包括:接收来自发送端的对所述图像帧的编码数据进行打包处理后得到的数据包,所述数据包包括包序号和/或校验码。In an embodiment, the encoded data received by the transfer terminal from the sender is a packaged data packet, that is, step S101, the receiving the encoded data of the image frame from the sender may include: receiving the image frame from the sender A data packet obtained after the encoded data is packaged, and the data packet includes a packet sequence number and/or a check code.
此时步骤S102,所述向所述发送端发送第一反馈信息之前,可以包括:根据所述数据包的包序号和/或校验码,对所述图像帧的编码数据进行检测;根据检测结果,生成所述第一反馈信息。At this time, step S102, before sending the first feedback information to the sending end, may include: detecting the encoded data of the image frame according to the packet sequence number and/or check code of the data packet; As a result, the first feedback information is generated.
其中,所述第一反馈信息用于指示接收是否错误。发送端接收到指示接收错误的第一反馈信息时,发送端可以将根据预设错误恢复策略进行编码得到的编码数据发送给中转端,以进行错误恢复。Wherein, the first feedback information is used to indicate whether the reception is wrong. When the sending end receives the first feedback information indicating a reception error, the sending end may send encoded data obtained by encoding according to a preset error recovery strategy to the transfer end for error recovery.
其中,所述第一反馈信息用于指示解码正确的图像帧的帧号和接收是否错误。发送端接收到该第一反馈信息时,发送端可以根据解码正确的图像帧的帧号确定参考帧,并将根据参考帧进行帧间编码得到的编码数据发送给中转端,以进行错误恢复。Wherein, the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong. When the sending end receives the first feedback information, the sending end can determine the reference frame according to the frame number of the correctly decoded image frame, and send the encoded data obtained by performing inter-frame encoding according to the reference frame to the transfer end for error recovery.
参见图8,图8是本申请中转端的图像处理装置一实施例的结构示意图,Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an embodiment of an image processing device at the relay end of the present application.
需要说明的是,本实施例的装置能够执行上述图像处理方法中的步骤,相关内容的详细说明,请参见上述图像处理方法的相关内容,在此不再赘叙。It should be noted that the device in this embodiment can execute the steps in the above image processing method. For detailed description of relevant content, please refer to the relevant content of the above image processing method, which will not be repeated here.
所述装置100包括:通信模块3、存储器1和处理器2;处理器2分别与存储器1、通信模块3通过总线连接。The device 100 includes: a communication module 3, a memory 1, and a processor 2; the processor 2 is connected to the memory 1 and the communication module 3 through a bus, respectively.
其中,处理器2可以是微控制单元、中央处理单元或数字信号处理器,等等。Wherein, the processor 2 may be a micro control unit, a central processing unit or a digital signal processor, and so on.
其中,存储器1可以是Flash芯片、只读存储器、磁盘、光盘、U盘或者移动硬盘等等。Wherein, the memory 1 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk or a mobile hard disk, and the like.
所述存储器1用于存储计算机程序;所述处理器2用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The memory 1 is used to store a computer program; the processor 2 is used to execute the computer program and when executing the computer program, implement the following steps:
控制所述通信模块接收来自发送端的图像帧的编码数据;控制所述通信模块向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;控制所述通信模块向接收端发送图像帧的编码数据;获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。controlling the communication module to receive the coded data of the image frame from the sending end; controlling the communication module to send first feedback information to the sending end, the first feedback information being used to indicate that the transfer end currently receives the The transmission situation of the image frame; controlling the communication module to send the coded data of the image frame to the receiving end; obtaining second feedback information from the receiving end, the second feedback information is used to indicate the current received by the receiving end Describe the transmission of image frames.
其中,所述来自发送端的图像帧的编码数据包括当所述发送端接收到的第一反馈信息指示接收错误时,所述发送端根据预设错误恢复策略编码得到的编码数据。Wherein, the encoded data of the image frame from the sending end includes encoded data obtained by encoding according to a preset error recovery strategy when the first feedback information received by the sending end indicates a reception error.
其中,所述来自发送端的图像帧的编码数据包括所述发送端根据所述第一反馈信息确定参考帧并根据所述参考帧进行帧间编码得到的编码数据。Wherein, the encoded data of the image frame from the sending end includes the encoded data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame encoding according to the reference frame.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:当来自所述接收端的第二反馈信息指示接收错误时,根据预设错误恢复策略对当前图像帧进行编码,得到所述当前图像帧的编码数据;控制所述通信模块向所述接收端发送所述当前图像帧的编码数据。Wherein, when the processor executes the computer program, the following steps are implemented: when the second feedback information from the receiving end indicates a receiving error, encode the current image frame according to a preset error recovery strategy to obtain the current The encoded data of the image frame; controlling the communication module to send the encoded data of the current image frame to the receiving end.
其中,所述当前图像帧的编码数据至少包括所述当前图像帧的局部画幅的帧内编码数据。Wherein, the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
其中,所述当前图像帧的编码数据包括所述当前图像帧的局部画幅的帧内编码数据与剩余局部画幅的帧间编码数据;所述处理器在执行所述计算机程序时,实现如下步骤:控制所述通信模块向所述接收端发送M个图像帧的编码 数据,所述M个图像帧中每个图像帧的编码数据包括局部画幅的帧内编码数据和剩余局部画幅的帧间编码数据,在包括所述M个图像帧与所述当前图像帧的M+1个图像帧中,进行帧内编码的M+1个局部画幅的总和构成一个完整画幅,M为正整数,i和j不相同,且i和j均大于等于1,小于等于M+1。Wherein, the encoded data of the current image frame includes intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames; when the processor executes the computer program, the following steps are implemented: Controlling the communication module to send encoded data of M image frames to the receiving end, the encoded data of each image frame in the M image frames includes intra-frame encoded data of a partial frame and inter-frame encoded data of the remaining partial frames , in the M+1 image frames including the M image frames and the current image frame, the sum of M+1 partial frames for intra-frame coding constitutes a complete frame, M is a positive integer, i and j are different, and both i and j are greater than or equal to 1 and less than or equal to M+1.
其中,所述当前图像帧的编码数据包括所述当前图像帧的整个画幅的帧内编码数据。Wherein, the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:当来自所述接收端的第二反馈信息指示接收正确时,控制所述通信模块向所述接收端发送图像帧的帧间编码数据。Wherein, when the processor executes the computer program, the following steps are implemented: when the second feedback information from the receiving end indicates that the reception is correct, control the communication module to send the interframe coding of the image frame to the receiving end data.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧;根据所述参考帧,对所述当前图像帧进行帧间编码,得到所述当前图像帧的编码数据;控制所述通信模块向所述接收端发送所述当前图像帧的编码数据。Wherein, when the processor executes the computer program, the following steps are implemented: according to the second feedback information from the receiving end, determining a reference frame for encoding the current image frame; according to the reference frame, the current The image frame is inter-frame encoded to obtain the encoded data of the current image frame; the communication module is controlled to send the encoded data of the current image frame to the receiving end.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:根据所述第二反馈信息,确定已被正确传输的图像帧;根据所述已被正确传输的图像帧确定所述参考帧。Wherein, when the processor executes the computer program, the following steps are implemented: according to the second feedback information, determine the image frame that has been correctly transmitted; determine the reference frame according to the image frame that has been correctly transmitted .
其中,所述处理器在执行所述计算机程序时,实现如下步骤:将所述已被正确传输的图像帧中的至少一部分保存到参考帧管理队列中;所述根据所述已被正确传输的图像帧确定所述参考帧,包括:将所述参考帧管理队列中的图像帧,确定为所述参考帧。Wherein, when the processor executes the computer program, the following steps are implemented: saving at least a part of the correctly transmitted image frames into the reference frame management queue; Determining the reference frame for an image frame includes: determining an image frame in the reference frame management queue as the reference frame.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:若没有接收到所述第二反馈信息,则将所述图像帧之前发送的预设数量的图像帧确定为所述参考帧。Wherein, when the processor executes the computer program, the following steps are implemented: if the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame .
其中,所述处理器在执行所述计算机程序时,实现如下步骤:对所述图像帧的编码数据进行打包处理,生成数据包,所述数据包包括包序号和/或校验码;控制所述通信模块向所述接收端发送所述数据包。Wherein, when the processor executes the computer program, the following steps are implemented: packaging the encoded data of the image frame to generate a data packet, the data packet includes a packet sequence number and/or a check code; The communication module sends the data packet to the receiving end.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:控制所述通信模块接收来自发送端的对所述图像帧的编码数据进行打包处理后得到的数据包,所述数据包包括包序号和/或校验码。Wherein, when the processor executes the computer program, the following steps are implemented: controlling the communication module to receive a data packet obtained after packaging the encoded data of the image frame from the sending end, the data packet includes a packet Serial number and/or check digit.
其中,所述处理器在执行所述计算机程序时,实现如下步骤:根据所述数据包的包序号和/或校验码,对所述图像帧的编码数据进行检测;根据检测结果,生成所述第一反馈信息。Wherein, when the processor executes the computer program, the following steps are implemented: detecting the encoded data of the image frame according to the packet sequence number and/or check code of the data packet; Describe the first feedback information.
其中,所述第一反馈信息用于指示接收是否错误。Wherein, the first feedback information is used to indicate whether the reception is wrong.
其中,所述第一反馈信息用于指示解码正确的图像帧的帧号和接收是否错误。Wherein, the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong.
其中,所述通信模块为5G模块。Wherein, the communication module is a 5G module.
其中,所述发送端为另一中转端。Wherein, the sending end is another transit end.
其中,所述接收端为另一中转端。Wherein, the receiving end is another transfer end.
其中,所述中转端和5G基站连接。Wherein, the transfer terminal is connected to a 5G base station.
其中,所述发送端包括无人机。Wherein, the sending end includes an unmanned aerial vehicle.
本申请还提供一种业务服务器,所述业务服务器包括如上任一项所述的中转端的图像处理装置。相关内容的详细说明,请参见上述中转端的图像处理装置的相关内容,在此不再赘叙。The present application also provides a service server, which includes the image processing device at the transfer terminal as described in any one of the above items. For a detailed description of related content, please refer to the related content of the above-mentioned image processing device at the transfer terminal, and details are not repeated here.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上任一项所述的图像处理方法。相关内容的详细说明请参见上述相关内容部分,在此不再赘叙。The present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method described in any one of the above items. For a detailed description of the relevant content, please refer to the relevant content above, and will not repeat it here.
其中,该计算机可读存储介质可以是上述装置的内部存储单元,例如硬盘或内存。该计算机可读存储介质也可以是外部存储设备,例如配备的插接式硬盘、智能存储卡、安全数字卡、闪存卡,等等。Wherein, the computer-readable storage medium may be an internal storage unit of the above device, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk provided, a smart memory card, a secure digital card, a flash memory card, and the like.
应当理解,在本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。It should be understood that the terminology used in the specification of the present application is only for the purpose of describing specific embodiments and is not intended to limit the present application.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
以上所述,仅为本申请的具体实施例,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此, 本申请的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the application, but the scope of protection of the application is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the scope of the technology disclosed in the application. Modifications or replacements, these modifications or replacements shall be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (46)

  1. 一种图像处理方法,其特征在于,适用于中转端,所述方法包括:An image processing method is characterized in that it is suitable for a transfer terminal, and the method includes:
    接收来自发送端的图像帧的编码数据;receiving the encoded data of the image frame from the sender;
    向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;Sending first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end;
    向接收端发送图像帧的编码数据;Send the encoded data of the image frame to the receiving end;
    获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。Acquire second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
  2. 根据权利要求1所述的方法,其特征在于,所述来自发送端的图像帧的编码数据包括当所述发送端接收到的第一反馈信息指示接收错误时,所述发送端根据预设错误恢复策略编码得到的编码数据。The method according to claim 1, wherein the encoded data of the image frame from the sending end includes that when the first feedback information received by the sending end indicates a reception error, the sending end recovers according to a preset error Encoded data obtained by policy encoding.
  3. 根据权利要求1所述的方法,其特征在于,所述来自发送端的图像帧的编码数据包括所述发送端根据所述第一反馈信息确定参考帧并根据所述参考帧进行帧间编码得到的编码数据。The method according to claim 1, wherein the coded data of the image frame from the sending end includes the data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame coding according to the reference frame Encode the data.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当来自所述接收端的第二反馈信息指示接收错误时,根据预设错误恢复策略对当前图像帧进行编码,得到所述当前图像帧的编码数据;When the second feedback information from the receiving end indicates a reception error, encoding the current image frame according to a preset error recovery strategy to obtain encoded data of the current image frame;
    向所述接收端发送所述当前图像帧的编码数据。Send the coded data of the current image frame to the receiving end.
  5. 根据权利要求4所述的方法,其特征在于,所述当前图像帧的编码数据至少包括所述当前图像帧的局部画幅的帧内编码数据。The method according to claim 4, wherein the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
  6. 根据权利要求5所述的方法,其特征在于,所述当前图像帧的编码数据包括所述当前图像帧的局部画幅的帧内编码数据与剩余局部画幅的帧间编码数据;The method according to claim 5, wherein the encoded data of the current image frame comprises intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames;
    所述向所述接收端发送所述当前图像帧的编码数据之后,还包括:After sending the encoded data of the current image frame to the receiving end, it also includes:
    向所述接收端发送M个图像帧的编码数据,所述M个图像帧中每个图像帧的编码数据包括局部画幅的帧内编码数据和剩余局部画幅的帧间编码数据,在包括所述M个图像帧与所述当前图像帧的M+1个图像帧中,进行帧内编码的M+1个局部画幅的总和构成一个完整画幅,M为正整数,i和j不相同,且 i和j均大于等于1,小于等于M+1。Send the encoded data of M image frames to the receiving end, the encoded data of each image frame in the M image frames includes intra-frame encoded data of partial frames and inter-frame encoded data of remaining partial frames, including the Among the M image frames and the M+1 image frames of the current image frame, the sum of M+1 partial frames for intra-frame encoding constitutes a complete frame, M is a positive integer, i and j are different, and i and j are greater than or equal to 1 and less than or equal to M+1.
  7. 根据权利要求5所述的方法,其特征在于,所述当前图像帧的编码数据包括所述当前图像帧的整个画幅的帧内编码数据。The method according to claim 5, wherein the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
  8. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    当来自所述接收端的第二反馈信息指示接收正确时,向所述接收端发送图像帧的帧间编码数据。When the second feedback information from the receiving end indicates that the reception is correct, send the interframe encoded data of the image frame to the receiving end.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧;determining a reference frame for encoding the current image frame according to the second feedback information from the receiving end;
    根据所述参考帧,对所述当前图像帧进行帧间编码,得到所述当前图像帧的编码数据;performing inter-frame encoding on the current image frame according to the reference frame, to obtain encoded data of the current image frame;
    向所述接收端发送所述当前图像帧的编码数据。Send the coded data of the current image frame to the receiving end.
  10. 根据权利要求9所述的方法,其特征在于,所述根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧,包括:The method according to claim 9, wherein the determining a reference frame for encoding a current image frame according to the second feedback information from the receiving end comprises:
    根据所述第二反馈信息,确定已被正确传输的图像帧;Determine the image frame that has been correctly transmitted according to the second feedback information;
    根据所述已被正确传输的图像帧确定所述参考帧。The reference frame is determined according to the correctly transmitted image frame.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, characterized in that the method further comprises:
    将所述已被正确传输的图像帧中的至少一部分保存到参考帧管理队列中;saving at least a part of the correctly transmitted image frames into a reference frame management queue;
    所述根据所述已被正确传输的图像帧确定所述参考帧,包括:The determining the reference frame according to the correctly transmitted image frame includes:
    将所述参考帧管理队列中的图像帧,确定为所述参考帧。An image frame in the reference frame management queue is determined as the reference frame.
  12. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    若没有接收到所述第二反馈信息,则将所述图像帧之前发送的预设数量的图像帧确定为所述参考帧。If the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame.
  13. 根据权利要求1所述的方法,其特征在于,所述向接收端发送图像帧的编码数据,包括:The method according to claim 1, wherein the sending the coded data of the image frame to the receiving end comprises:
    对所述图像帧的编码数据进行打包处理,生成数据包,所述数据包包括包序号和/或校验码;Packing the coded data of the image frame to generate a data packet, the data packet includes a packet sequence number and/or a check code;
    向所述接收端发送所述数据包。Send the data packet to the receiving end.
  14. 根据权利要求1所述的方法,其特征在于,所述接收来自发送端的图像帧的编码数据,包括:The method according to claim 1, wherein said receiving the coded data of the image frame from the sending end comprises:
    接收来自发送端的对所述图像帧的编码数据进行打包处理后得到的数据包,所述数据包包括包序号和/或校验码。and receiving a data packet obtained after packaging the encoded data of the image frame from the sending end, the data packet includes a packet sequence number and/or a check code.
  15. 根据权利要求14所述的方法,其特征在于,所述向所述发送端发送第一反馈信息之前,包括:The method according to claim 14, wherein, before sending the first feedback information to the sending end, comprising:
    根据所述数据包的包序号和/或校验码,对所述图像帧的编码数据进行检测;Detecting the coded data of the image frame according to the packet sequence number and/or check code of the data packet;
    根据检测结果,生成所述第一反馈信息。Generate the first feedback information according to the detection result.
  16. 根据权利要求15所述的方法,其特征在于,所述第一反馈信息用于指示接收是否错误。The method according to claim 15, wherein the first feedback information is used to indicate whether the reception is wrong.
  17. 根据权利要求15所述的方法,其特征在于,所述第一反馈信息用于指示解码正确的图像帧的帧号和接收是否错误。The method according to claim 15, wherein the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong.
  18. 根据权利要求1所述的方法,其特征在于,所述中转端与所述发送端之间以及所述中转端与所述接收端之间通过5G模块通信。The method according to claim 1, characterized in that, the communication between the transfer terminal and the sending end and between the transfer terminal and the receiving end is through a 5G module.
  19. 根据权利要求18所述的方法,其特征在于,所述发送端为另一中转端。The method according to claim 18, characterized in that the sending end is another transit end.
  20. 根据权利要求18所述的方法,其特征在于,所述接收端为另一中转端。The method according to claim 18, characterized in that the receiving end is another transfer end.
  21. 根据权利要求18所述的方法,其特征在于,所述中转端和5G基站连接。The method according to claim 18, wherein the transfer terminal is connected to a 5G base station.
  22. 根据权利要求1所述的方法,其特征在于,所述发送端包括无人机。The method according to claim 1, wherein the sending end comprises a drone.
  23. 一种中转端的图像处理装置,其特征在于,所述装置包括:通信模块、存储器和处理器;An image processing device at a transfer terminal, characterized in that the device includes: a communication module, a memory, and a processor;
    所述存储器用于存储计算机程序;The memory is used to store computer programs;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and when executing the computer program, implement the following steps:
    控制所述通信模块接收来自发送端的图像帧的编码数据;Controlling the communication module to receive encoded data of the image frame from the sending end;
    控制所述通信模块向所述发送端发送第一反馈信息,所述第一反馈信息用于指示所述中转端当前接收到的所述图像帧的传输情况;controlling the communication module to send first feedback information to the sending end, where the first feedback information is used to indicate the transmission status of the image frame currently received by the transfer end;
    控制所述通信模块向接收端发送图像帧的编码数据;controlling the communication module to send encoded data of the image frame to the receiving end;
    获取来自所述接收端的第二反馈信息,所述第二反馈信息用于指示所述接收端当前接收到的所述图像帧的传输情况。Acquire second feedback information from the receiving end, where the second feedback information is used to indicate the transmission status of the image frame currently received by the receiving end.
  24. 根据权利要求23所述的装置,其特征在于,所述来自发送端的图像帧的编码数据包括当所述发送端接收到的第一反馈信息指示接收错误时,所述发送端根据预设错误恢复策略编码得到的编码数据。The device according to claim 23, wherein the coded data of the image frame from the sending end includes when the first feedback information received by the sending end indicates a reception error, the sending end recovers according to a preset error Encoded data obtained by policy encoding.
  25. 根据权利要求23所述的装置,其特征在于,所述来自发送端的图像帧的编码数据包括所述发送端根据所述第一反馈信息确定参考帧并根据所述参考帧进行帧间编码得到的编码数据。The device according to claim 23, wherein the coded data of the image frame from the sending end includes the data obtained by the sending end determining a reference frame according to the first feedback information and performing inter-frame coding according to the reference frame Encode the data.
  26. 根据权利要求23所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 23, wherein the processor implements the following steps when executing the computer program:
    当来自所述接收端的第二反馈信息指示接收错误时,根据预设错误恢复策略对当前图像帧进行编码,得到所述当前图像帧的编码数据;When the second feedback information from the receiving end indicates a receiving error, encoding the current image frame according to a preset error recovery strategy to obtain encoded data of the current image frame;
    控制所述通信模块向所述接收端发送所述当前图像帧的编码数据。and controlling the communication module to send the encoded data of the current image frame to the receiving end.
  27. 根据权利要求26所述的装置,其特征在于,所述当前图像帧的编码数据至少包括所述当前图像帧的局部画幅的帧内编码数据。The device according to claim 26, wherein the encoded data of the current image frame includes at least intra-frame encoded data of a partial frame of the current image frame.
  28. 根据权利要求27所述的装置,其特征在于,所述当前图像帧的编码数据包括所述当前图像帧的局部画幅的帧内编码数据与剩余局部画幅的帧间编码数据;The device according to claim 27, wherein the encoded data of the current image frame includes intra-frame encoded data of a partial frame of the current image frame and inter-frame encoded data of the remaining partial frames;
    所述处理器在执行所述计算机程序时,实现如下步骤:When the processor executes the computer program, the following steps are implemented:
    控制所述通信模块向所述接收端发送M个图像帧的编码数据,所述M个图像帧中每个图像帧的编码数据包括局部画幅的帧内编码数据和剩余局部画幅的帧间编码数据,在包括所述M个图像帧与所述当前图像帧的M+1个图像帧中,进行帧内编码的M+1个局部画幅的总和构成一个完整画幅,M为正整数,i和j不相同,且i和j均大于等于1,小于等于M+1。Controlling the communication module to send encoded data of M image frames to the receiving end, the encoded data of each image frame in the M image frames includes intra-frame encoded data of a partial frame and inter-frame encoded data of the remaining partial frames , in the M+1 image frames including the M image frames and the current image frame, the sum of M+1 partial frames for intra-frame coding constitutes a complete frame, M is a positive integer, i and j are different, and both i and j are greater than or equal to 1 and less than or equal to M+1.
  29. 根据权利要求27所述的装置,其特征在于,所述当前图像帧的编码数据包括所述当前图像帧的整个画幅的帧内编码数据。The device according to claim 27, wherein the encoded data of the current image frame includes intra-frame encoded data of the entire frame of the current image frame.
  30. 根据权利要求26所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 26, wherein the processor implements the following steps when executing the computer program:
    当来自所述接收端的第二反馈信息指示接收正确时,控制所述通信模块向 所述接收端发送图像帧的帧间编码数据。When the second feedback information from the receiving end indicates that the receiving is correct, the communication module is controlled to send the interframe encoded data of the image frame to the receiving end.
  31. 根据权利要求23所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 23, wherein the processor implements the following steps when executing the computer program:
    根据来自所述接收端的第二反馈信息,确定用于编码当前图像帧的参考帧;determining a reference frame for encoding the current image frame according to the second feedback information from the receiving end;
    根据所述参考帧,对所述当前图像帧进行帧间编码,得到所述当前图像帧的编码数据;performing inter-frame encoding on the current image frame according to the reference frame, to obtain encoded data of the current image frame;
    控制所述通信模块向所述接收端发送所述当前图像帧的编码数据。and controlling the communication module to send the encoded data of the current image frame to the receiving end.
  32. 根据权利要求31所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 31, wherein the processor implements the following steps when executing the computer program:
    根据所述第二反馈信息,确定已被正确传输的图像帧;Determine the image frame that has been correctly transmitted according to the second feedback information;
    根据所述已被正确传输的图像帧确定所述参考帧。The reference frame is determined according to the correctly transmitted image frame.
  33. 根据权利要求32所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 32, wherein the processor implements the following steps when executing the computer program:
    将所述已被正确传输的图像帧中的至少一部分保存到参考帧管理队列中;saving at least a part of the correctly transmitted image frames into a reference frame management queue;
    所述根据所述已被正确传输的图像帧确定所述参考帧,包括:The determining the reference frame according to the correctly transmitted image frame includes:
    将所述参考帧管理队列中的图像帧,确定为所述参考帧。An image frame in the reference frame management queue is determined as the reference frame.
  34. 根据权利要求31所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 31, wherein the processor implements the following steps when executing the computer program:
    若没有接收到所述第二反馈信息,则将所述图像帧之前发送的预设数量的图像帧确定为所述参考帧。If the second feedback information is not received, determining a preset number of image frames sent before the image frame as the reference frame.
  35. 根据权利要求23所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 23, wherein the processor implements the following steps when executing the computer program:
    对所述图像帧的编码数据进行打包处理,生成数据包,所述数据包包括包序号和/或校验码;Packing the coded data of the image frame to generate a data packet, the data packet includes a packet sequence number and/or a check code;
    控制所述通信模块向所述接收端发送所述数据包。and controlling the communication module to send the data packet to the receiving end.
  36. 根据权利要求23所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 23, wherein the processor implements the following steps when executing the computer program:
    控制所述通信模块接收来自发送端的对所述图像帧的编码数据进行打包处理后得到的数据包,所述数据包包括包序号和/或校验码。The communication module is controlled to receive a data packet obtained by packaging the coded data of the image frame from the sending end, and the data packet includes a packet sequence number and/or a check code.
  37. 根据权利要求36所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 36, wherein the processor implements the following steps when executing the computer program:
    根据所述数据包的包序号和/或校验码,对所述图像帧的编码数据进行检测;Detecting the coded data of the image frame according to the packet sequence number and/or check code of the data packet;
    根据检测结果,生成所述第一反馈信息。Generate the first feedback information according to the detection result.
  38. 根据权利要求37所述的装置,其特征在于,所述第一反馈信息用于指示接收是否错误。The device according to claim 37, wherein the first feedback information is used to indicate whether the reception is wrong.
  39. 根据权利要求37所述的装置,其特征在于,所述第一反馈信息用于指示解码正确的图像帧的帧号和接收是否错误。The device according to claim 37, wherein the first feedback information is used to indicate the frame number of the correctly decoded image frame and whether the reception is wrong.
  40. 根据权利要求23所述的装置,其特征在于,所述通信模块为5G模块。The device according to claim 23, wherein the communication module is a 5G module.
  41. 根据权利要求40所述的装置,其特征在于,所述发送端为另一中转端。The device according to claim 40, wherein the sending end is another transit end.
  42. 根据权利要求40所述的装置,其特征在于,所述接收端为另一中转端。The device according to claim 40, wherein the receiving end is another transfer end.
  43. 根据权利要求40所述的装置,其特征在于,所述中转端和5G基站连接。The device according to claim 40, wherein the relay terminal is connected to a 5G base station.
  44. 根据权利要求23所述的装置,其特征在于,所述发送端包括无人机。The device according to claim 23, wherein the sending end comprises a drone.
  45. 一种业务服务器,其特征在于,所述业务服务器包括如权利要求23-44任一项所述的中转端的图像处理装置。A service server, characterized in that the service server includes the image processing device at the transfer terminal according to any one of claims 23-44.
  46. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-22任一项所述的图像处理方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes any one of claims 1-22. image processing method.
PCT/CN2021/102220 2021-06-24 2021-06-24 Image processing method and device, service server, and storage medium WO2022266974A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/102220 WO2022266974A1 (en) 2021-06-24 2021-06-24 Image processing method and device, service server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/102220 WO2022266974A1 (en) 2021-06-24 2021-06-24 Image processing method and device, service server, and storage medium

Publications (1)

Publication Number Publication Date
WO2022266974A1 true WO2022266974A1 (en) 2022-12-29

Family

ID=84544016

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102220 WO2022266974A1 (en) 2021-06-24 2021-06-24 Image processing method and device, service server, and storage medium

Country Status (1)

Country Link
WO (1) WO2022266974A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936746A (en) * 2016-12-30 2019-06-25 深圳市大疆创新科技有限公司 Image processing method and equipment
US20190327463A1 (en) * 2016-12-30 2019-10-24 SZ DJI Technology Co., Ltd. System and methods for feedback-based data transmission
CN110943800A (en) * 2019-11-06 2020-03-31 厦门亿联网络技术股份有限公司 Method, device and system for sending data packet, storage medium and electronic device
CN111758262A (en) * 2019-05-27 2020-10-09 深圳市大疆创新科技有限公司 Video transmission method and device, aircraft, playing equipment and storage medium
CN112822516A (en) * 2020-12-30 2021-05-18 北京大学 Image group transmission method, device, equipment and system based on data block recombination

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936746A (en) * 2016-12-30 2019-06-25 深圳市大疆创新科技有限公司 Image processing method and equipment
US20190327463A1 (en) * 2016-12-30 2019-10-24 SZ DJI Technology Co., Ltd. System and methods for feedback-based data transmission
CN111758262A (en) * 2019-05-27 2020-10-09 深圳市大疆创新科技有限公司 Video transmission method and device, aircraft, playing equipment and storage medium
CN110943800A (en) * 2019-11-06 2020-03-31 厦门亿联网络技术股份有限公司 Method, device and system for sending data packet, storage medium and electronic device
CN112822516A (en) * 2020-12-30 2021-05-18 北京大学 Image group transmission method, device, equipment and system based on data block recombination

Similar Documents

Publication Publication Date Title
CN101155311B (en) Video code stream error detecting and processing method in video communication
EP3940974B1 (en) Transmission method and device for data stream
US20110085602A1 (en) Video Communication System, Device and Method Based on Feedback Reference Frames
US20030023915A1 (en) Forward error correction system and method for packet based communication systems
JP2002190793A (en) Communication method, communication equipment and communication system using the communication equipment
JPH06237451A (en) Moving picture communication system and terminal equipment
CN106658223B (en) Video uplink transmission method and device under Long Term Evolution (LTE) network
WO2017092617A1 (en) Error estimation method, base station and terminal
CN107210843B (en) System and method for real-time video communication using fountain coding
KR102002939B1 (en) On-demand file recovery methods and systems
US20160261376A1 (en) Redundancy Scheme
KR20120112981A (en) Receiving node and method of reducing retransmission of data frame
US8799749B2 (en) Ad-hoc multimedia group communication terminal robust to packet loss and method of operating the same
WO2022266974A1 (en) Image processing method and device, service server, and storage medium
CN111273998B (en) Fountain code and network coding-based dynamic migration method and system for virtual machine
CN109348222B (en) Reference frame selection method
CN102065372A (en) Method for transmitting data in broadcast mode and related device
US20130322468A1 (en) Apparatus and method for transmitting/receiving data in communication system
Hansen et al. Bridging inter-flow and intra-flow network coding for video applications: Testbed description and performance evaluation
US9036658B2 (en) Apparatus and method for transmitting/receiving data in communication system
CN112165655A (en) Data transmission method, device, equipment and medium based on video network
KR101745646B1 (en) System and method for retransmitting packet in wireless lan, access point therefor
CN112217602B (en) Method, device and terminal for processing cluster voice packet
WO2012116563A1 (en) Video processing method and apparatus
WO2023051106A1 (en) Method and apparatus for code block groups and slices mapping in mobile communications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21946469

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE