WO2022205157A1 - Image transmission method and device - Google Patents

Image transmission method and device Download PDF

Info

Publication number
WO2022205157A1
WO2022205157A1 PCT/CN2021/084648 CN2021084648W WO2022205157A1 WO 2022205157 A1 WO2022205157 A1 WO 2022205157A1 CN 2021084648 W CN2021084648 W CN 2021084648W WO 2022205157 A1 WO2022205157 A1 WO 2022205157A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
header
decoded
image data
decoded images
Prior art date
Application number
PCT/CN2021/084648
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 CN202180096260.1A priority Critical patent/CN117063472A/en
Priority to PCT/CN2021/084648 priority patent/WO2022205157A1/en
Publication of WO2022205157A1 publication Critical patent/WO2022205157A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]

Definitions

  • the present invention mainly relates to the field of images, and in particular, to an image transmission method and device.
  • the image is usually stored on the file server in an encoded form. After the image processing module obtains the image from the file server, it needs to decode the image before performing the image processing function.
  • the image processing module and the decoding module are coupled, that is, one image processing module will be set with a corresponding decoding module, the input of the decoding module is used as the input of the corresponding image processing module, and each image processing module is obtained from the file server. After the image, the image needs to be decoded.
  • This architecture makes the operation of the entire system very complicated, and the hardware requirements are also extremely strict.
  • the present invention provides an image transmission method and device to reduce the computational complexity of the system and the requirements for hardware.
  • the present invention provides an image transmission method, the image transmission method includes: decoding a received image stream to obtain a plurality of decoded images and an image corresponding to each decoded image in the plurality of decoded images parameters, the image parameters include the length, height and number of channels of the decoded image, and the image stream includes multiple encoded images; the header message of each decoded image is generated according to the image parameter, and the decoded image The image and the header message of each decoded image are integrated and packaged into a single image data packet; the image data packet is sent to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data Bag.
  • integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image, so as to encapsulate all the decoded images into a single image data packet.
  • the respective decoded images and the header messages of the respective decoded images are integrated and packaged into a single image data packet. Therefore, by inserting the header message into the header of the corresponding decoded image, the original structure of the decoded image does not need to be adjusted, and the generation speed of the image data packet is improved.
  • the image parameter further includes an image sequence number
  • the method further includes: inserting the header message into the header of a corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number image. Therefore, arranging the decoded images with the header message according to the image sequence number can improve the order of the decoded images, thereby improving the efficiency of image processing.
  • the header message further includes a start character and an end character
  • each of the image processing modules parses and processes the received image data packet includes: determining the received image data packet according to the start character and the end character. position of the header message, and the position of the decoded image is determined according to the length, height and number of channels. To this end, the localization of header messages and decoded images can be achieved.
  • the method includes: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
  • a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
  • An image transmission device comprising: a decoding module for decoding a received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images, the image parameters Including the length, height and number of channels of the decoded image, and the image stream includes a plurality of encoded images; the encapsulation module generates a header message of each decoded image according to the image parameter, and combines the decoded image and the The header message of each decoded image is integrated and encapsulated into a single image data packet; the sending module sends the image data packet to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data Bag.
  • the encapsulation module integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image , so as to integrate and encapsulate the respective decoded images and the header messages of the respective decoded images into a single image data packet.
  • the image parameter further includes an image sequence number
  • the encapsulation module further includes: inserting the header message into the header of the corresponding decoded image, and arranging the images with the header message according to the image sequence number. Decode the image.
  • the header message further includes a start character and an end character
  • each of the image processing modules parses and processes the received image data packet includes: determining the received image data packet according to the start character and the end character. position of the header message, and the position of the decoded image is determined according to the length, height and number of channels.
  • the apparatus includes: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
  • An electronic device includes a processor, a memory, and instructions stored in the memory, wherein the instructions, when executed by the processor, implement the method as described above.
  • a computer-readable storage medium having stored thereon computer instructions that, when executed, perform a method as described above.
  • FIG. 1 is a flowchart of an image transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an image transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an image transmission apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of an image transmission method 100 according to an embodiment of the present invention. As shown in FIG. 1, the image transmission method 100 includes:
  • Step 110 Decode the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images.
  • the image stream can be captured by a web camera or an IP camera.
  • the image stream includes multiple coded images (for example, JPEG or PNG format) with chronological order.
  • the multiple coded images in the image stream are stored in the memory of the camera, or stored in the camera. in a file server in the network.
  • Decode the received image stream to obtain the same number of decoded images, and the decoded images can be in RGB/RGBA/YUV format.
  • the multiple encoded images in the image stream are of the same format, and the decoded images of multiple frames obtained by decoding are also of the same format.
  • the encoded images in the image stream are all in JPEG format
  • the decoded images obtained by decoding are all in RGB format.
  • image parameters corresponding to the decoded image can also be obtained, and the image parameters include the length, height and number of channels of the decoded image. Taking a 4K RGB format image as an example, the length of an image is 32, the height is 20, and the number of channels is 3. In some embodiments, the image parameters may also include additional information such as camera ID, image serial number, and pipeline UUID.
  • FIG. 2 is a schematic diagram of an image transmission method according to an embodiment of the present invention.
  • the image stream 210 is input to the decoding module 220, and the encoding module 220 decodes multiple encoded images in the image stream 210, and outputs the same number of decoded images as the encoded images and image parameters of each decoded image.
  • Step 120 Generate header messages of each decoded image according to the image parameters, and integrate and encapsulate each decoded image and the header message of each decoded image into a single image data packet.
  • the header message of each decoded image is generated according to the image parameters.
  • the image parameters include the length, height and number of channels of the decoded image. Therefore, the location and data amount of the decoded image can be determined by the image parameters in the header message.
  • the header message may also include start and end characters to determine the location of the header message.
  • the following code 1 shows the code representation of the header message in an embodiment of the present invention.
  • the data structure of the header message FrameHeader includes the length (width), height (height), and number of channels of the decoded image. (channel), also includes camera id (source id), image serial number (frame_num), pipeline uuid (pipeline uuid), the start character is defined as VAS_, and the end character is defined as VAS$.
  • each decoded image and the header message of each decoded image are integrated and encapsulated into a single image data packet.
  • integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image, so as to encapsulate the respective decoded images and the header messages of the respective decoded images Consolidate encapsulation into a single image packet.
  • the header message of the first image is inserted into the header of the first image
  • the header message of the second image is inserted into the header of the second image
  • the header message of the last image is inserted into the header of the last image It forms a single image data packet in which the header message and the image alternately appear, thus completing the integrated encapsulation of the decoded image and the header message.
  • the following code 2 shows a code schematic of an image data packet in an embodiment of the present invention.
  • the data structure of the image data packet FramePayload includes a header file FrameHeader and a decoded image located after the header file FrameHeader.
  • the image parameter further includes an image sequence number
  • the image transmission method 100 further includes: inserting a header message into the header of the corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number.
  • a header message is inserted into the header of the corresponding decoded image
  • the image parameters in the header message include image sequence numbers
  • the decoded images with header messages are arranged in ascending order according to the image sequence numbers from small sequence numbers to large sequence numbers.
  • a plurality of decoded images and corresponding image parameters output by the decoding module 220 are input to the encapsulation module 230.
  • the encapsulation module 230 generates a header message of each decoded image according to the image parameters, and converts each decoded image and the header of each decoded image.
  • the message is integrated and encapsulated into a single image data packet, and a single image data packet is output.
  • Step 130 Send the image data packets to a plurality of mutually independent image processing modules, and each image processing module parses and processes the received image data packets.
  • the multiple image processing modules are independent of each other, that is, each image processing module operates independently and does not interfere with each other.
  • Multiple image processing modules may be located in multiple pieces of hardware in a distributed system.
  • the image processing module 250 may include a first image processing module 251, a second image processing module 252, a third image processing module 253, a fourth image processing module 254, etc.
  • the first image processing module 251 may be used for Crop the image
  • the second image processing module can be used for feature extraction
  • the third image processing module can be used for image transformation
  • the fourth image processing module can be used for image modeling, etc.
  • the image data packets are sent to a plurality of mutually independent image processing modules, and after receiving the image data packets, the image processing modules parse and process the received image data packets. Since the image data packet contains the header message, the image processing module can determine the data amount and position of the decoded image by reading the header message, which avoids the need for decoding by each image processing module, and reduces the computational complexity of the system. hardware requirements.
  • the header message further includes a start character and an end character
  • each image processing module parses and processes the received image data packet including: determining the position of the header message according to the start character and the end character, and determining the position of the header message according to the length, height and The number of channels determines the position of the decoded image.
  • the image transmission method 100 may further include: using a publish/subscribe message mode to send the image data packets to a plurality of mutually independent image processing modules.
  • the MQTT protocol Message Queuing Telemetry Transport, Message Queuing Telemetry Transport Protocol
  • the publish/subscribe message mode can be used to send the image data packets to a plurality of mutually independent image processing modules.
  • the MQTT broker 240 sends the image data packets to the first image processing module 251, the second image processing module 252, the third image processing module 253, the fourth image processing module 254, etc., using the MQTT protocol, which can ensure the image data
  • the packet is sent to the image processing module.
  • the embodiment of the present invention provides an image transmission method. By encapsulating the decoded image and the header message of the decoded image into image data packets and sending them to a plurality of mutually independent image processing modules, only one decoding is required for multiple mutually independent image processing modules.
  • the image processing module is used for image processing, which reduces the computational complexity of the system and the requirements for hardware.
  • FIG. 3 is a schematic diagram of an image transmission apparatus 300 of an industrial control network according to an embodiment of the present invention. As shown in FIG. 3, the image transmission device 300 includes:
  • the decoding module 310 decodes the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images.
  • the image parameters include the length, height and number of channels of the decoded image, and the image stream includes multiple decoded images. encoded image.
  • the encapsulation module 320 generates a header message of each decoded image according to the image parameters, and integrates and encapsulates each decoded image and the header message of each decoded image into a single image data packet.
  • the sending module 330 sends the image data packets to a plurality of mutually independent image processing modules, and each image processing module parses and processes the received image data packets.
  • the encapsulation module 320 integrates and encapsulates the respective decoded images and the header messages of the respective decoded images into a single image data packet, including: inserting the header message into the header of the corresponding decoded image, so as to encapsulate the respective decoded images and the respective decoded images
  • the header message is integrated and encapsulated into a single image packet.
  • the image parameter further includes an image sequence number
  • the encapsulation module 320 further includes: inserting a header message into the header of the corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number.
  • the header message further includes a start character and an end character
  • each image processing module parses and processes the received image data packet including: determining the position of the header message according to the start character and the end character, and determining the position of the header message according to the length, height and channel The number determines the position of the decoded image.
  • the sending module 330 uses a publish/subscribe message mode to send the image data packets to a plurality of mutually independent image processing modules.
  • FIG. 4 is a schematic diagram of an electronic device 400 according to an embodiment of the present invention.
  • the electronic device 400 includes a processor 410 and a memory 420.
  • the memory 420 stores instructions stored therein, wherein the instructions, when executed by the processor 410, implement the method 100 as described above.
  • the present invention also proposes a computer-readable storage medium having computer instructions stored thereon, the computer instructions, when executed, perform the method 100 as described above.
  • aspects of the methods and apparatus of the present invention may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software.
  • the above hardware or software may be referred to as a "data block”, “module”, “engine”, “unit”, “component” or “system”.
  • the processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors , controller, microcontroller, microprocessor, or a combination thereof.
  • aspects of the present invention may be embodied as a computer product comprising computer readable program code embodied in one or more computer readable media.
  • computer readable media may include, but are not limited to, magnetic storage devices (eg, hard disks, floppy disks, magnetic tapes%), optical disks (eg, compact discs (CDs), digital versatile discs (DVDs)%), smart cards and flash memory devices (eg cards, sticks, key drives).
  • magnetic storage devices eg, hard disks, floppy disks, magnetic tapes
  • optical disks eg, compact discs (CDs), digital versatile discs (DVDs)
  • smart cards and flash memory devices eg cards, sticks, key drives.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The present invention provides an image transmission method. The image transmission method comprises: decoding a received image stream to obtain a plurality of decoded images and image parameters corresponding to each of the plurality of decoded images, the image parameters comprising the length, height, and number of channels of the decoded image; generating a header message of the decoded image according to the image parameters, and integrating the decoded image and the header message of the decoded image and packaging same into a single image data packet; sending the image data packets to a plurality of image processing modules that are independent of each other, and parsing and processing the received image data packets by the image processing modules.

Description

一种图像传输方法及装置An image transmission method and device 技术领域technical field
本发明主要涉及图像领域,尤其涉及一种图像传输方法及装置。The present invention mainly relates to the field of images, and in particular, to an image transmission method and device.
背景技术Background technique
图像通常以编码的形式存储在文件服务器上,图像处理模块在从文件服务器获取图像之后,需要对图像进行解码之后才能执行图像处理功能。现有技术中,图像处理模块与解码模块是耦合的,即一个图像处理模块会对应设置一个解码模块,解码模块的输入作为相应的图像处理模块的输入,每个图像处理模块在从文件服务器获取图像之后均需对图像进行解码,这种架构使得整个系统的运算非常复杂,并且对硬件的要求也极为严苛。The image is usually stored on the file server in an encoded form. After the image processing module obtains the image from the file server, it needs to decode the image before performing the image processing function. In the prior art, the image processing module and the decoding module are coupled, that is, one image processing module will be set with a corresponding decoding module, the input of the decoding module is used as the input of the corresponding image processing module, and each image processing module is obtained from the file server. After the image, the image needs to be decoded. This architecture makes the operation of the entire system very complicated, and the hardware requirements are also extremely strict.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本发明提供一种图像传输方法及装置,以降低系统的运算复杂度和对硬件的要求。In order to solve the above technical problems, the present invention provides an image transmission method and device to reduce the computational complexity of the system and the requirements for hardware.
为实现上述目的,本发明提出了一种图像传输方法,所述图像传输方法包括:对接收的图像流进行解码,得到多个解码图像和与所述多个解码图像中各个解码图像对应的图像参数,所述图像参数包括所述解码图像的长度、高度和通道数,所述图像流包括多个编码图像;根据所述图像参数生成所述各个解码图像的报头消息,并将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包;将所述图像数据包发送至多个相互独立的图像处理模块,各所述图像处理模块解析并处理接收到的所述图像数据包。为此,通过将解码图像和解码图像的报头消息封装成图像数据包发送给多个相互独立的图像处理模块,只需要解码一次即可供多个相互独立的图像处理模块进行图像处理,降低了系统的运算复杂度和对硬件的要求。In order to achieve the above object, the present invention provides an image transmission method, the image transmission method includes: decoding a received image stream to obtain a plurality of decoded images and an image corresponding to each decoded image in the plurality of decoded images parameters, the image parameters include the length, height and number of channels of the decoded image, and the image stream includes multiple encoded images; the header message of each decoded image is generated according to the image parameter, and the decoded image The image and the header message of each decoded image are integrated and packaged into a single image data packet; the image data packet is sent to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data Bag. For this reason, by encapsulating the decoded image and the header message of the decoded image into image data packets and sending them to multiple independent image processing modules, only one decoding is needed for multiple independent image processing modules to perform image processing, reducing the need for image processing. The computational complexity of the system and the requirements for hardware.
在本发明的一实施例中,将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包包括:将所述报头消息插入对应的解码图像的头部,以将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包。为此,通过将报头消息插入对应的解码图像的头部,无需调整解码图像的原始结构,提高了图像数据包的生成速度。In an embodiment of the present invention, integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image, so as to encapsulate all the decoded images into a single image data packet. The respective decoded images and the header messages of the respective decoded images are integrated and packaged into a single image data packet. Therefore, by inserting the header message into the header of the corresponding decoded image, the original structure of the decoded image does not need to be adjusted, and the generation speed of the image data packet is improved.
在本发明的一实施例中,所述图像参数还包括图像序号,所述方法还包括:将所述报头消息插入对应的解码图像的头部,根据所述图像序号排列带有报头消息的解码图像。为 此,根据图像序号排列带有报头消息的解码图像,可以提高解码图像的有序性,进而提高图像处理的效率。In an embodiment of the present invention, the image parameter further includes an image sequence number, and the method further includes: inserting the header message into the header of a corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number image. Therefore, arranging the decoded images with the header message according to the image sequence number can improve the order of the decoded images, thereby improving the efficiency of image processing.
在本发明的一实施例中,所述报头消息还包括开始字符和结束字符,各所述图像处理模块解析并处理接收到的所述图像数据包包括:根据所述开始字符和结束字符确定所述报头消息的位置,以及根据所述长度、高度和通道数确定所述解码图像的位置。为此,可以实现报头消息和解码图像的定位。In an embodiment of the present invention, the header message further includes a start character and an end character, and each of the image processing modules parses and processes the received image data packet includes: determining the received image data packet according to the start character and the end character. position of the header message, and the position of the decoded image is determined according to the length, height and number of channels. To this end, the localization of header messages and decoded images can be achieved.
在本发明的一实施例中,所述方法包括:采用发布/订阅者消息模式将所述图像数据包发送至多个相互独立的图像处理模块。为此,通过采用发布/订阅者消息模式将图像数据包发送至多个相互独立的图像处理模块,可以确保图像数据包发送至图像处理模块,防止丢包。In an embodiment of the present invention, the method includes: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules. To this end, by using the publish/subscriber message mode to send image data packets to multiple independent image processing modules, it can ensure that the image data packets are sent to the image processing modules to prevent packet loss.
一种图像传输装置,所述图像传输装置包括:解码模块,对接收的图像流进行解码,得到多个解码图像和与所述多个解码图像中各个解码图像对应的图像参数,所述图像参数包括所述解码图像的长度、高度和通道数,所述图像流包括多个编码图像;封装模块,根据所述图像参数生成所述各个解码图像的报头消息,并将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包;发送模块,将所述图像数据包发送至多个相互独立的图像处理模块,各所述图像处理模块解析并处理接收到的所述图像数据包。An image transmission device, the image transmission device comprising: a decoding module for decoding a received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images, the image parameters Including the length, height and number of channels of the decoded image, and the image stream includes a plurality of encoded images; the encapsulation module generates a header message of each decoded image according to the image parameter, and combines the decoded image and the The header message of each decoded image is integrated and encapsulated into a single image data packet; the sending module sends the image data packet to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data Bag.
在本发明的一实施例中,所述封装模块将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包包括:将所述报头消息插入对应的解码图像的头部,以将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包。In an embodiment of the present invention, the encapsulation module integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image , so as to integrate and encapsulate the respective decoded images and the header messages of the respective decoded images into a single image data packet.
在本发明的一实施例中,所述图像参数还包括图像序号,所述封装模块还包括:将所述报头消息插入对应的解码图像的头部,根据所述图像序号排列带有报头消息的解码图像。In an embodiment of the present invention, the image parameter further includes an image sequence number, and the encapsulation module further includes: inserting the header message into the header of the corresponding decoded image, and arranging the images with the header message according to the image sequence number. Decode the image.
在本发明的一实施例中,所述报头消息还包括开始字符和结束字符,各所述图像处理模块解析并处理接收到的所述图像数据包包括:根据所述开始字符和结束字符确定所述报头消息的位置,以及根据所述长度、高度和通道数确定所述解码图像的位置。In an embodiment of the present invention, the header message further includes a start character and an end character, and each of the image processing modules parses and processes the received image data packet includes: determining the received image data packet according to the start character and the end character. position of the header message, and the position of the decoded image is determined according to the length, height and number of channels.
在本发明的一实施例中,所述装置包括:采用发布/订阅者消息模式将所述图像数据包发送至多个相互独立的图像处理模块。In an embodiment of the present invention, the apparatus includes: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
一种电子设备,包括处理器、存储器和存储在所述存储器中的指令,其中所述指令被所述处理器执行时实现如上所述的方法。An electronic device includes a processor, a memory, and instructions stored in the memory, wherein the instructions, when executed by the processor, implement the method as described above.
一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令在被运行时执行如上所述的方法。A computer-readable storage medium having stored thereon computer instructions that, when executed, perform a method as described above.
附图说明Description of drawings
以下附图仅旨在于对本发明做示意性说明和解释,并不限定本发明的范围。其中,The following drawings are only intended to illustrate and explain the present invention schematically, and do not limit the scope of the present invention. in,
图1是根据本发明的一实施例的一种图像传输方法的流程图;1 is a flowchart of an image transmission method according to an embodiment of the present invention;
图2是根据本发明的一实施例的一种图像传输方法的示意图;2 is a schematic diagram of an image transmission method according to an embodiment of the present invention;
图3是根据本发明的一实施例的一种图像传输装置的示意图;3 is a schematic diagram of an image transmission apparatus according to an embodiment of the present invention;
图4是根据本发明的一实施例的一种电子设备的示意图。FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
附图标记说明Description of reference numerals
100 图像传输方法100 Image Transmission Methods
110-130 步骤110-130 steps
210 图像源210 Image sources
220 解码模块220 decoding module
230 封装模块230 package modules
240 MQTT代理240 MQTT Brokers
250 图像处理模块250 Image Processing Modules
251 第一图像处理模块251 The first image processing module
252 第二图像处理模块252 Second image processing module
253 第三图像处理模块253 The third image processing module
254 第四图像处理模块254 Fourth image processing module
300 图像传输装置300 Image Transmission Device
310 解码模块310 decoding module
320 封装模块320 package module
330 发送模块330 sending module
400 电子设备400 Electronic Devices
410 处理器410 processors
420 存储器420 memory
具体实施方式Detailed ways
为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described with reference to the accompanying drawings.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是本发明还可以采用其它不同于在此描述的其它方式来实施,因此本发明不受下面公开的具体实施例的限制。Numerous specific details are set forth in the following description to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways than those described herein, and thus the present invention is not limited by the specific embodiments disclosed below.
如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其他的步骤或元素。As shown in this application and in the claims, unless the context clearly dictates otherwise, the words "a", "an", "an" and/or "the" are not intended to be specific in the singular and may include the plural. Generally speaking, the terms "comprising" and "comprising" only imply that the clearly identified steps and elements are included, and these steps and elements do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
图1是根据本发明的一实施例的一种图像传输方法100的流程图。如图1所示,图像传输方法100包括:FIG. 1 is a flowchart of an image transmission method 100 according to an embodiment of the present invention. As shown in FIG. 1, the image transmission method 100 includes:
步骤110,对接收的图像流进行解码,得到多个解码图像和与多个解码图像中各个解码图像对应的图像参数。Step 110: Decode the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images.
图像流可以由网络摄像头或IP摄像头拍摄得到,图像流包括多个具有时间先后顺序的编码图像(例如JPEG或PNG格式),图像流中的多个编码图像存储于摄像头的存储器中,或者存储于网络中的文件服务器中。对接收的图像流进行解码,得到相同数量的解码图像,解码图像可以是RGB/RGBA/YUV格式。可以理解,图像流中的多个编码图像为相同的格式,解码得到的多帧解码图像也是相同的格式,例如图像流中的编码图像均为JPEG格式,解码得到的解码图像均为RGB格式。对图像流进行解码,还可以得到与解码图像对应的图像参数,图像参数包括解码图像的长度、高度和通道数。以4K的RGB格式图像为例,某图像的长度为32,高度为20,通道数为3。在一些实施例中,图像参数还可以包括摄像头ID,图像序号,管道UUID等附加信息。The image stream can be captured by a web camera or an IP camera. The image stream includes multiple coded images (for example, JPEG or PNG format) with chronological order. The multiple coded images in the image stream are stored in the memory of the camera, or stored in the camera. in a file server in the network. Decode the received image stream to obtain the same number of decoded images, and the decoded images can be in RGB/RGBA/YUV format. It can be understood that the multiple encoded images in the image stream are of the same format, and the decoded images of multiple frames obtained by decoding are also of the same format. For example, the encoded images in the image stream are all in JPEG format, and the decoded images obtained by decoding are all in RGB format. After decoding the image stream, image parameters corresponding to the decoded image can also be obtained, and the image parameters include the length, height and number of channels of the decoded image. Taking a 4K RGB format image as an example, the length of an image is 32, the height is 20, and the number of channels is 3. In some embodiments, the image parameters may also include additional information such as camera ID, image serial number, and pipeline UUID.
图2是根据本发明的一实施例的一种图像传输方法的示意图。如图2所示,图像流210输入解码模块220,编码模块220对图像流210中的多个编码图像进行解码,输出与编码图像相同数量的解码图像,以及各个解码图像的图像参数。FIG. 2 is a schematic diagram of an image transmission method according to an embodiment of the present invention. As shown in FIG. 2 , the image stream 210 is input to the decoding module 220, and the encoding module 220 decodes multiple encoded images in the image stream 210, and outputs the same number of decoded images as the encoded images and image parameters of each decoded image.
步骤120,根据图像参数生成各个解码图像的报头消息,并将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包。Step 120: Generate header messages of each decoded image according to the image parameters, and integrate and encapsulate each decoded image and the header message of each decoded image into a single image data packet.
根据图像参数生成各个解码图像的报头消息,图像参数中包含了解码图像的长度、高度和通道数,为此,可以通过报头消息中的图像参数确定解码图像的位置以及数据量。在一些实施例中,报头消息还可以包括开始字符和结束字符,以确定报头消息的位置。The header message of each decoded image is generated according to the image parameters. The image parameters include the length, height and number of channels of the decoded image. Therefore, the location and data amount of the decoded image can be determined by the image parameters in the header message. In some embodiments, the header message may also include start and end characters to determine the location of the header message.
下文中的代码一示出了本发明的一实施例中的报头消息的代码示意,如代码一所示,报头消息FrameHeader的数据结构包括解码图像的长度(width),高度(height),通道数(channel),还包括摄像头id(source id),图像序号(frame_num),管道uuid(pipeline uuid),开始字符定义为VAS_,结束字符定义为VAS$。The following code 1 shows the code representation of the header message in an embodiment of the present invention. As shown in the code 1, the data structure of the header message FrameHeader includes the length (width), height (height), and number of channels of the decoded image. (channel), also includes camera id (source id), image serial number (frame_num), pipeline uuid (pipeline uuid), the start character is defined as VAS_, and the end character is defined as VAS$.
Figure PCTCN2021084648-appb-000001
Figure PCTCN2021084648-appb-000001
Figure PCTCN2021084648-appb-000002
Figure PCTCN2021084648-appb-000002
代码一 报头消息的数据结构代码示意Code 1 The data structure code of the header message
在生成各个解码图像的报头消息之后,将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包。在一些实施例中,将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包包括:将报头消息插入对应的解码图像的头部,以将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包。具体地,将第一图像的报头消息插入第一图像的头部,将第二图像的报头消息插入第二图像的头部,依次类推,直至将最后一个图像的报头消息插入最后一个图像的头部,即形成了报头消息-图像交替出现的单个图像数据包,从而完成了解码图像和报头消息的整合封装。After the header message of each decoded image is generated, each decoded image and the header message of each decoded image are integrated and encapsulated into a single image data packet. In some embodiments, integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet includes: inserting the header message into the header of the corresponding decoded image, so as to encapsulate the respective decoded images and the header messages of the respective decoded images Consolidate encapsulation into a single image packet. Specifically, the header message of the first image is inserted into the header of the first image, the header message of the second image is inserted into the header of the second image, and so on, until the header message of the last image is inserted into the header of the last image It forms a single image data packet in which the header message and the image alternately appear, thus completing the integrated encapsulation of the decoded image and the header message.
下文中的代码二示出了本发明的一实施例中的图像数据包的代码示意,如代码二所示,图像数据包FramePayload的数据结构包括报头文件FrameHeader以及位于报头文件FrameHeader之后的解码图像。The following code 2 shows a code schematic of an image data packet in an embodiment of the present invention. As shown in code 2, the data structure of the image data packet FramePayload includes a header file FrameHeader and a decoded image located after the header file FrameHeader.
typedef struct_FramePayloadtypedef struct_FramePayload
{{
FrameHeader header;FrameHeader header;
char data[IMAGE_MAX_WIDTH*IMAGE_MAX_HEIGHT*IMAGE_MAX_CHANNELS];char data[IMAGE_MAX_WIDTH*IMAGE_MAX_HEIGHT*IMAGE_MAX_CHANNELS];
}FramePayload}FramePayload
代码二 图像数据包的数据结构代码示意Code 2 The data structure code of the image data packet
在一些实施例中,对于图像参数还包括图像序号,图像传输方法100还包括:将报头消息插入对应的解码图像的头部,根据图像序号排列带有报头消息的解码图像。例如,将报头消息插入对应的解码图像的头部,报头消息中的图像参数包括图像序号,按照图像序号从小序号到到大序号按照升序排列带有报头消息的解码图像。In some embodiments, the image parameter further includes an image sequence number, and the image transmission method 100 further includes: inserting a header message into the header of the corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number. For example, a header message is inserted into the header of the corresponding decoded image, the image parameters in the header message include image sequence numbers, and the decoded images with header messages are arranged in ascending order according to the image sequence numbers from small sequence numbers to large sequence numbers.
在图2中,解码模块220的输出多个解码图像和对应的图像参数输入封装模块230中, 封装模块230根据图像参数生成各个解码图像的报头消息,并将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包,并输出单个图像数据包。In FIG. 2, a plurality of decoded images and corresponding image parameters output by the decoding module 220 are input to the encapsulation module 230. The encapsulation module 230 generates a header message of each decoded image according to the image parameters, and converts each decoded image and the header of each decoded image. The message is integrated and encapsulated into a single image data packet, and a single image data packet is output.
步骤130,将图像数据包发送至多个相互独立的图像处理模块,各图像处理模块解析并处理接收到的图像数据包。Step 130: Send the image data packets to a plurality of mutually independent image processing modules, and each image processing module parses and processes the received image data packets.
多个图像处理模块之间是相互独立的,即各个图像处理模块是独立运行的,相互之间不会造成干扰。多个图像处理模块可以位于分布式系统中的多个硬件中。如图2所示,图像处理模块250可以包括第一图像处理模块251,第二图像处理模块252,第三图像处理模块253,第四图像处理模块254等,第一图像处理模块251可以用于裁剪图像,第二图像处理模块可以用于特征提取,第三图像处理模块可以用于图像转换,第四图像处理模块可以用于图像建模等。通过多个独立运行的图像处理模块,可以避免图像处理模块之间的相互干扰,并且每个图像处理模块仅需执行单个功能,降低了对每个图像处理模块的的硬件要求,从而提高了图像处理系统的扩展性。The multiple image processing modules are independent of each other, that is, each image processing module operates independently and does not interfere with each other. Multiple image processing modules may be located in multiple pieces of hardware in a distributed system. As shown in FIG. 2, the image processing module 250 may include a first image processing module 251, a second image processing module 252, a third image processing module 253, a fourth image processing module 254, etc. The first image processing module 251 may be used for Crop the image, the second image processing module can be used for feature extraction, the third image processing module can be used for image transformation, the fourth image processing module can be used for image modeling, etc. Through multiple independently running image processing modules, mutual interference between the image processing modules can be avoided, and each image processing module only needs to perform a single function, reducing the hardware requirements for each image processing module, thereby improving the image quality. Handle system scalability.
将图像数据包发送至多个相互独立的图像处理模块,图像处理模块在接收到图像数据包之后,解析并处理接收到的图像数据包。由于图像数据包中包含了头部消息,图像处理模块通过读取头部消息即可确定解码图像的数据量和位置,避免了各个图像处理模块均需解码,降低了系统的运算复杂度和对硬件的要求。The image data packets are sent to a plurality of mutually independent image processing modules, and after receiving the image data packets, the image processing modules parse and process the received image data packets. Since the image data packet contains the header message, the image processing module can determine the data amount and position of the decoded image by reading the header message, which avoids the need for decoding by each image processing module, and reduces the computational complexity of the system. hardware requirements.
具体地,第一图像处理模块251接收到图像数据包,先读取第一个报头消息(从VAS_到VAS$),解析出报头消息中的图像参数,长度、高度和通道数分别为32,20和3,则第一报头消息对应的解码图像的数据量为32*20*3=1920,由此可以确定第一图像的有效数据量,依次类推,一直至图像数据包中的最后一个图像,至此完成了图像数据包中各个图像的位置,图像处理模块251可以对单个图像执行相应的图像处理功能,第二图像处理模块252,第三图像处理模块253,第四图像处理模块254等也执行与图像处理模块251类似的操作。Specifically, the first image processing module 251 receives the image data packet, first reads the first header message (from VAS_ to VAS$), parses out the image parameters in the header message, and the length, height and number of channels are 32 respectively , 20 and 3, the data volume of the decoded image corresponding to the first header message is 32*20*3=1920, from which the effective data volume of the first image can be determined, and so on, until the last one in the image data packet Image, the position of each image in the image data package has been completed so far, the image processing module 251 can perform corresponding image processing functions on a single image, the second image processing module 252, the third image processing module 253, the fourth image processing module 254, etc. Similar operations to the image processing module 251 are also performed.
在一些实施例中,对于报头消息还包括开始字符和结束字符,各图像处理模块解析并处理接收到的图像数据包包括:根据开始字符和结束字符确定报头消息的位置,以及根据长度、高度和通道数确定解码图像的位置。In some embodiments, the header message further includes a start character and an end character, and each image processing module parses and processes the received image data packet including: determining the position of the header message according to the start character and the end character, and determining the position of the header message according to the length, height and The number of channels determines the position of the decoded image.
在一些实施例中,图像传输方法100还可以包括:采用发布/订阅者消息模式将图像数据包发送至多个相互独立的图像处理模块。优选地,可以采用MQTT协议(Message Queuing Telemetry Transport,消息队列遥测传输协议)将图像数据包发送至多个相互独立的图像处理模块。通过采用发布/订阅者消息模式将图像数据包发送至多个相互独立的图像处理模块,可以确保图像数据包发送至图像处理模块,防止丢包。在图2中,MQTT代理240将图像 数据包以MQTT协议发送至第一图像处理模块251,第二图像处理模块252,第三图像处理模块253,第四图像处理模块254等,可以确保图像数据包发送至图像处理模块。In some embodiments, the image transmission method 100 may further include: using a publish/subscribe message mode to send the image data packets to a plurality of mutually independent image processing modules. Preferably, the MQTT protocol (Message Queuing Telemetry Transport, Message Queuing Telemetry Transport Protocol) can be used to send the image data packets to a plurality of mutually independent image processing modules. By using the publish/subscribe message mode to send image data packets to multiple independent image processing modules, it can ensure that the image data packets are sent to the image processing modules to prevent packet loss. In FIG. 2, the MQTT broker 240 sends the image data packets to the first image processing module 251, the second image processing module 252, the third image processing module 253, the fourth image processing module 254, etc., using the MQTT protocol, which can ensure the image data The packet is sent to the image processing module.
本发明的实施例提供了一种图像传输方法,通过将解码图像和解码图像的报头消息封装成图像数据包发送给多个相互独立的图像处理模块,只需要解码一次即可供多个相互独立的图像处理模块进行图像处理,降低了系统的运算复杂度和对硬件的要求。The embodiment of the present invention provides an image transmission method. By encapsulating the decoded image and the header message of the decoded image into image data packets and sending them to a plurality of mutually independent image processing modules, only one decoding is required for multiple mutually independent image processing modules. The image processing module is used for image processing, which reduces the computational complexity of the system and the requirements for hardware.
图3是根据本发明的一实施例的一种工控网络的图像传输装置300的示意图。如图3所示,图像传输装置300包括:FIG. 3 is a schematic diagram of an image transmission apparatus 300 of an industrial control network according to an embodiment of the present invention. As shown in FIG. 3, the image transmission device 300 includes:
解码模块310,对接收的图像流进行解码,得到多个解码图像和与多个解码图像中各个解码图像对应的图像参数,图像参数包括解码图像的长度、高度和通道数,图像流包括多个编码图像。The decoding module 310 decodes the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images. The image parameters include the length, height and number of channels of the decoded image, and the image stream includes multiple decoded images. encoded image.
封装模块320,根据图像参数生成各个解码图像的报头消息,并将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包。The encapsulation module 320 generates a header message of each decoded image according to the image parameters, and integrates and encapsulates each decoded image and the header message of each decoded image into a single image data packet.
发送模块330,将图像数据包发送至多个相互独立的图像处理模块,各图像处理模块解析并处理接收到的图像数据包。The sending module 330 sends the image data packets to a plurality of mutually independent image processing modules, and each image processing module parses and processes the received image data packets.
在一些实施例中,封装模块320将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包包括:将报头消息插入对应的解码图像的头部,以将各个解码图像和各个解码图像的报头消息整合封装成单个图像数据包。In some embodiments, the encapsulation module 320 integrates and encapsulates the respective decoded images and the header messages of the respective decoded images into a single image data packet, including: inserting the header message into the header of the corresponding decoded image, so as to encapsulate the respective decoded images and the respective decoded images The header message is integrated and encapsulated into a single image packet.
在一些实施例中,图像参数还包括图像序号,封装模块320还包括:将报头消息插入对应的解码图像的头部,根据图像序号排列带有报头消息的解码图像。In some embodiments, the image parameter further includes an image sequence number, and the encapsulation module 320 further includes: inserting a header message into the header of the corresponding decoded image, and arranging the decoded images with the header message according to the image sequence number.
在一些实施例中,报头消息还包括开始字符和结束字符,各图像处理模块解析并处理接收到的图像数据包包括:根据开始字符和结束字符确定报头消息的位置,以及根据长度、高度和通道数确定解码图像的位置。In some embodiments, the header message further includes a start character and an end character, and each image processing module parses and processes the received image data packet including: determining the position of the header message according to the start character and the end character, and determining the position of the header message according to the length, height and channel The number determines the position of the decoded image.
在一些实施例中,发送模块330采用发布/订阅者消息模式将图像数据包发送至多个相互独立的图像处理模块。In some embodiments, the sending module 330 uses a publish/subscribe message mode to send the image data packets to a plurality of mutually independent image processing modules.
本发明还提出一种电子设备400。图4是根据本发明的一实施例的一种电子设备400的示意图。如图4所示,电子设备400包括处理器410和存储器420,存储器420存储中存储有指令,其中指令被处理器410执行时实现如上文所述的方法100。The present invention also provides an electronic device 400 . FIG. 4 is a schematic diagram of an electronic device 400 according to an embodiment of the present invention. As shown in FIG. 4 , the electronic device 400 includes a processor 410 and a memory 420. The memory 420 stores instructions stored therein, wherein the instructions, when executed by the processor 410, implement the method 100 as described above.
本发明还提出一种计算机可读存储介质,其上存储有计算机指令,计算机指令在被运行时执行如上文所述的方法100。The present invention also proposes a computer-readable storage medium having computer instructions stored thereon, the computer instructions, when executed, perform the method 100 as described above.
本发明的方法和装置的一些方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据 块”、“模块”、“引擎”、“单元”、“组件”或“系统”。处理器可以是一个或多个专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理器件(DAPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器或者其组合。此外,本发明的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。例如,计算机可读介质可包括,但不限于,磁性存储设备(例如,硬盘、软盘、磁带……)、光盘(例如,压缩盘(CD)、数字多功能盘(DVD)……)、智能卡以及闪存设备(例如,卡、棒、键驱动器……)。Some aspects of the methods and apparatus of the present invention may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as a "data block", "module", "engine", "unit", "component" or "system". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors , controller, microcontroller, microprocessor, or a combination thereof. Furthermore, aspects of the present invention may be embodied as a computer product comprising computer readable program code embodied in one or more computer readable media. For example, computer readable media may include, but are not limited to, magnetic storage devices (eg, hard disks, floppy disks, magnetic tapes...), optical disks (eg, compact discs (CDs), digital versatile discs (DVDs)...), smart cards and flash memory devices (eg cards, sticks, key drives...).
在此使用了流程图用来说明根据本申请的实施例的方法所执行的操作。应当理解的是,前面的操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各种步骤。同时,或将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。Flowcharts are used herein to illustrate operations performed by methods according to embodiments of the present application. It should be understood that the preceding operations are not necessarily performed in exact order. Rather, the various steps may be processed in reverse order or concurrently. At the same time, other actions are either added to these processes, or a step or steps are removed from these processes.
应当理解,虽然本说明书是按照各个实施例描述的,但并非每个实施例仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。It should be understood that although this specification is described according to various embodiments, not each embodiment only includes an independent technical solution, and this description in the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole , the technical solutions in each embodiment can also be appropriately combined to form other implementations that can be understood by those skilled in the art.
以上所述仅为本发明示意性的具体实施方式,并非用以限定本发明的范围。任何本领域的技术人员,在不脱离本发明的构思和原则的前提下所作的等同变化、修改与结合,均应属于本发明保护的范围。The above descriptions are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent changes, modifications and combinations made by any person skilled in the art without departing from the concept and principles of the present invention shall fall within the protection scope of the present invention.

Claims (12)

  1. 一种图像传输方法(100),其特征在于,所述图像传输方法(100)包括:An image transmission method (100), characterized in that the image transmission method (100) comprises:
    对接收的图像流进行解码,得到多个解码图像和与所述多个解码图像中各个解码图像对应的图像参数,所述图像参数包括所述解码图像的长度、高度和通道数,所述图像流包括多个编码图像(110);Decode the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images, where the image parameters include the length, height and number of channels of the decoded image, the image the stream includes a plurality of encoded pictures (110);
    根据所述图像参数生成所述各个解码图像的报头消息,并将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包(120);Generate header messages of the respective decoded images according to the image parameters, and integrate and encapsulate the respective decoded images and the header messages of the respective decoded images into a single image data packet (120);
    将所述图像数据包发送至多个相互独立的图像处理模块,各所述图像处理模块解析并处理接收到的所述图像数据包(130)。The image data packets are sent to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data packets (130).
  2. 根据权利要求1所述的方法(100),其特征在于,将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包包括:将所述报头消息插入对应的解码图像的头部,以将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包。The method (100) according to claim 1, wherein integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet comprises: inserting the header messages into the corresponding decoded images , so as to integrate and encapsulate the respective decoded images and the header messages of the respective decoded images into a single image data packet.
  3. 根据权利要求2所述的方法(100),其特征在于,所述图像参数还包括图像序号,所述方法(100)还包括:将所述报头消息插入对应的解码图像的头部,根据所述图像序号排列带有报头消息的解码图像。The method (100) according to claim 2, wherein the image parameter further comprises an image sequence number, and the method (100) further comprises: inserting the header message into the header of the corresponding decoded image, according to the The picture sequence number aligns the decoded picture with the header message.
  4. 根据权利要求1所述的方法(100),其特征在于,所述报头消息还包括开始字符和结束字符,各所述图像处理模块解析并处理接收到的所述图像数据包包括:根据所述开始字符和结束字符确定所述报头消息的位置,以及根据所述长度、高度和通道数确定所述解码图像的位置。The method (100) according to claim 1, wherein the header message further includes a start character and an end character, and each of the image processing modules parses and processes the received image data packet comprising: according to the The start character and end character determine the position of the header message, and the position of the decoded image according to the length, height and number of channels.
  5. 根据权利要求1所述的方法(100),其特征在于,所述方法(100)包括:采用发布/订阅者消息模式将所述图像数据包发送至多个相互独立的图像处理模块。The method (100) according to claim 1, characterized in that, the method (100) comprises: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
  6. 一种图像传输装置(300),其特征在于,所述图像传输装置(300)包括:An image transmission device (300), characterized in that the image transmission device (300) comprises:
    解码模块(310),对接收的图像流进行解码,得到多个解码图像和与所述多个解码图像中各个解码图像对应的图像参数,所述图像参数包括所述解码图像的长度、高度和通道数,所述图像流包括多个编码图像;The decoding module (310) decodes the received image stream to obtain multiple decoded images and image parameters corresponding to each decoded image in the multiple decoded images, the image parameters including the length, height and the number of channels, the image stream includes a plurality of encoded images;
    封装模块(320),根据所述图像参数生成所述各个解码图像的报头消息,并将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包;an encapsulation module (320), generating header messages of the respective decoded images according to the image parameters, and integrating and encapsulating the respective decoded images and the header messages of the respective decoded images into a single image data packet;
    发送模块(330),将所述图像数据包发送至多个相互独立的图像处理模块,各所述图像处理模块解析并处理接收到的所述图像数据包。A sending module (330) sends the image data packets to a plurality of mutually independent image processing modules, and each of the image processing modules parses and processes the received image data packets.
  7. 根据权利要求6所述的装置(300),其特征在于,所述封装模块(320)将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包包括:将所述报头消息插入对应的解码图像的头部,以将所述各个解码图像和所述各个解码图像的报头消息整合封装成单个图像数据包。The apparatus (300) according to claim 6, wherein the encapsulation module (320) integrates and encapsulates the respective decoded images and the header messages of the respective decoded images into a single image data packet, comprising: encapsulating the The header message is inserted into the header of the corresponding decoded image, so as to integrate and encapsulate the respective decoded images and the header messages of the respective decoded images into a single image data packet.
  8. 根据权利要求7所述的装置(300),其特征在于,所述图像参数还包括图像序号,所述封装模块(320)还包括:将所述报头消息插入对应的解码图像的头部,根据所述图像序号排列带有报头消息的解码图像。The apparatus (300) according to claim 7, wherein the image parameter further comprises an image sequence number, and the encapsulation module (320) further comprises: inserting the header message into the header of the corresponding decoded image, according to The picture sequence numbers rank decoded pictures with header messages.
  9. 根据权利要求6所述的装置(300),其特征在于,所述报头消息还包括开始字符和结束字符,各所述图像处理模块解析并处理接收到的所述图像数据包包括:根据所述开始字符和结束字符确定所述报头消息的位置,以及根据所述长度、高度和通道数确定所述解码图像的位置。The apparatus (300) according to claim 6, wherein the header message further includes a start character and an end character, and each of the image processing modules parses and processes the received image data packets comprising: according to the The start character and end character determine the position of the header message, and the position of the decoded image according to the length, height and number of channels.
  10. 根据权利要求6所述的装置(300),其特征在于,所述装置(300)包括:采用发布/订阅者消息模式将所述图像数据包发送至多个相互独立的图像处理模块。The apparatus (300) according to claim 6, characterized in that, the apparatus (300) comprises: using a publish/subscribe message mode to send the image data packet to a plurality of mutually independent image processing modules.
  11. 一种电子设备(400),包括处理器(410)、存储器(420)和存储在所述存储器(420)中的指令,其中所述指令被所述处理器(410)执行时实现如权利要求1-5任一项所述的方法。An electronic device (400) comprising a processor (410), a memory (420) and instructions stored in the memory (420), wherein the instructions when executed by the processor (410) implement the claims The method of any one of 1-5.
  12. 一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令在被运行时执行根据权利要求1-5中任一项所述的方法。A computer-readable storage medium having stored thereon computer instructions that, when executed, perform the method of any of claims 1-5.
PCT/CN2021/084648 2021-03-31 2021-03-31 Image transmission method and device WO2022205157A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180096260.1A CN117063472A (en) 2021-03-31 2021-03-31 Image transmission method and device
PCT/CN2021/084648 WO2022205157A1 (en) 2021-03-31 2021-03-31 Image transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084648 WO2022205157A1 (en) 2021-03-31 2021-03-31 Image transmission method and device

Publications (1)

Publication Number Publication Date
WO2022205157A1 true WO2022205157A1 (en) 2022-10-06

Family

ID=83455468

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084648 WO2022205157A1 (en) 2021-03-31 2021-03-31 Image transmission method and device

Country Status (2)

Country Link
CN (1) CN117063472A (en)
WO (1) WO2022205157A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432171A (en) * 2000-05-29 2003-07-23 佳能株式会社 Method for enabling file format compatibility
US20080130740A1 (en) * 2005-09-20 2008-06-05 Mitsubishi Electric Corporation Image encoding method and image decoding method, image encoder and image decoder, and image encoded bit stream and recording medium
CN106412579A (en) * 2015-07-30 2017-02-15 浙江大华技术股份有限公司 Image coding method and apparatus, and image decoding method and apparatus
CN109891905A (en) * 2016-09-08 2019-06-14 皇家Kpn公司 Partial video coding/decoding method, equipment and system
CN112544084A (en) * 2018-05-15 2021-03-23 夏普株式会社 Image encoding device, encoded stream extraction device, and image decoding device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432171A (en) * 2000-05-29 2003-07-23 佳能株式会社 Method for enabling file format compatibility
US20080130740A1 (en) * 2005-09-20 2008-06-05 Mitsubishi Electric Corporation Image encoding method and image decoding method, image encoder and image decoder, and image encoded bit stream and recording medium
CN106412579A (en) * 2015-07-30 2017-02-15 浙江大华技术股份有限公司 Image coding method and apparatus, and image decoding method and apparatus
CN109891905A (en) * 2016-09-08 2019-06-14 皇家Kpn公司 Partial video coding/decoding method, equipment and system
CN112544084A (en) * 2018-05-15 2021-03-23 夏普株式会社 Image encoding device, encoded stream extraction device, and image decoding device

Also Published As

Publication number Publication date
CN117063472A (en) 2023-11-14

Similar Documents

Publication Publication Date Title
US11653036B2 (en) Live streaming method and system, server, and storage medium
US20200413042A1 (en) Multi-Layer Video Stream Encoding and Decoding
CN114503599A (en) Using extensions in the GLTF2 scene description to support video and audio data
JP2019097203A (en) Packet transmission method in communication system
TW200822758A (en) Scalable video coding and decoding
WO2022001469A1 (en) Image processing method and apparatus, electronic device and storage medium
CN112788431A (en) Video playing method, device, system, medium and browser based on HTML5
CN110996160A (en) Video processing method and device, electronic equipment and computer readable storage medium
EP2870769B1 (en) Simultaneous encoding and sending of a video data file
US9936266B2 (en) Video encoding method and apparatus
WO2022205157A1 (en) Image transmission method and device
US20230232024A1 (en) Methods, apparatuses, computer programs and computer-readable media for scalable video coding and transmission
WO2022116822A1 (en) Data processing method and apparatus for immersive media, and computer-readable storage medium
WO2022206016A1 (en) Data layering transport method, apparatus and system
CN108124183B (en) Method for synchronously acquiring video and audio to perform one-to-many video and audio streaming
CN115604481A (en) Method, device and system for improving parallelism of encoding and decoding and transmission
CN113473158B (en) Live broadcast data processing method, device, electronic equipment and medium
WO2021087819A1 (en) Information processing method, terminal device and storage medium
TWI600319B (en) A method for capturing video and audio simultaneous for one-to-many video streaming
JP2014135728A (en) Video transmission system and video transmission method
CN115278366B (en) Data processing method and device for video stream of virtual machine and electronic equipment
WO2024067405A1 (en) Video transmission method and apparatus, and electronic device, storage medium and program product
CN116033113B (en) Video conference auxiliary information transmission method and system
WO2024067430A1 (en) Transmission method and system, and related apparatus
US20220408071A1 (en) Image transmission method, image display device, image processing device, and image transmission system

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: 21933822

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180096260.1

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21933822

Country of ref document: EP

Kind code of ref document: A1