Image transmission method and device, computer device, storage medium and program product

By encoding and dividing the image into regions, the problem of limiting the number and grayscale of LED arrays due to the load of the data transmission bus was solved, thus achieving image data compression and improved display effect.

CN118042140BActive Publication Date: 2026-02-27NANNING LIAOWANG AUTOMOTIVE LAMPS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311785732.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2026-02-27
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

In existing technologies, the number of LED arrays and grayscale levels are limited by the full load of the data transmission bus, making it difficult to increase the amount of image data and resulting in poor image display effects.

Method used

The image to be transmitted is encoded and divided into several image encoding packets. The regions are divided based on the number of refresh controllers on the display end. The image encoding packets are transmitted to the display end in sequence, reducing the number of bits for position encoding and achieving image data compression.

Benefits of technology

The increased number of LED arrays and grayscale levels reduced the amount of image data transmitted, lowered the bus load during data transmission, and improved the image display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118042140B_ABST
    Figure CN118042140B_ABST
Patent Text Reader

Abstract

The application relates to an image transmission method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring an image to be transmitted, encoding the image to be transmitted to obtain a plurality of image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted; acquiring the number of refresh controllers of a display terminal corresponding to the image to be transmitted; dividing the image to be transmitted based on the number to obtain a plurality of second regions; the second regions comprise a plurality of first regions; sequentially acquiring the image encoding packets corresponding to the first regions from the second regions, and transmitting the image encoding packets to the display terminal. The method can compress image data, reduce the transmission amount of image data, and increase the number of LED arrays and the gray scale level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to an image transmission method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] With the development of intelligent and interactive automobiles, more and more automotive components are being innovated with intelligent concepts to align with the development trend of automobiles. In terms of exterior design, more and more products with intelligent interaction are emerging. In terms of lighting, there are digital projection headlights, intelligent taillight interactive lights, and intelligent welcome interactive lights. Combined with the increasing number of cameras and radar products in automobiles, as well as more humanized and personalized pattern displays, the development of intelligent interaction has entered a new chapter. In order to better realize human-computer interaction displays, there are higher requirements for display brightness, color accuracy, and detail.

[0003] However, each pixel corresponds to one byte, which must include the positional relationship of the pixels in order to ensure the accuracy of encoding and decoding. Since the number of LEDs and grayscale levels of the LED array are limited by the full load of the data transmission bus, and the amount of image data is increasing, it is difficult to increase the number of LEDs and grayscale levels under the existing data transmission bus. Summary of the Invention

[0004] Therefore, it is necessary to provide an image transmission method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can compress image data, reduce the amount of image data transmitted, and increase the number of LED arrays and grayscale levels, in order to address the above-mentioned technical problems.

[0005] In a first aspect, this application provides an image transmission method, the method comprising:

[0006] The image to be transmitted is acquired, and the image to be transmitted is encoded to obtain a number of image encoding packets, each of which corresponds to a first region of the image to be transmitted.

[0007] Obtain the number of refresh controllers on the display end corresponding to the image to be transmitted;

[0008] The image to be transmitted is divided into several second regions based on the number of regions; and the second regions include several first regions.

[0009] The image encoding packets corresponding to the first region are sequentially obtained from the second region and transmitted to the display terminal.

[0010] In one embodiment, the step of sequentially obtaining the image encoding packet corresponding to the first region from the second region and transmitting it to the display end includes:

[0011] Sort each of the second regions;

[0012] Based on the sorting results, the current second region is determined, and the image encoding packet corresponding to the first region is obtained from the current second region and transmitted to the display terminal;

[0013] Based on the sorting result, the next second region is determined, and the next second region is used as the current second region. Then, the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end continues until all the image encoding packets corresponding to the image to be transmitted are transmitted to the display end.

[0014] In one embodiment, after sequentially obtaining the image encoding packet corresponding to the first region from the second region and transmitting it to the display end, the process includes:

[0015] Once all data packets of the image to be transmitted have been sent, a refreshed encoded packet with a pre-set fixed identifier is obtained;

[0016] The refresh code packet with the fixed identifier is sent to the display terminal, and the refresh code packet with the fixed identifier is used to instruct the display terminal to refresh the screen.

[0017] In one embodiment, the method further includes:

[0018] Receive the image encoding packet of the image to be transmitted sent by the image sending end;

[0019] The first region of the second region to which the image encoding packet belongs is determined based on the identifier of the image encoding packet;

[0020] The image encoding packet is decoded to obtain pixel values, and the obtained pixel values ​​are updated to the first region.

[0021] In one embodiment, the method further includes:

[0022] When a refresh encoding packet with a fixed identifier is received, the identifiers of the received unrefreshed image encoding packets are counted.

[0023] When the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, the received unrefreshed image encoding packets are deleted, and the image encoding packets of the image to be transmitted sent by the image sending end continue to be received.

[0024] In one embodiment, the process of encoding the image to be transmitted to obtain a plurality of image encoding packets includes:

[0025] Acquire the image to be transmitted;

[0026] Based on the size of the data packet according to the communication protocol and the size of the encoded value of a pixel, the image to be transmitted is divided into several sub-regions, each sub-region corresponds to an image data packet, and each image data packet has a unique identifier.

[0027] The pixels in each sub-region are encoded and placed in the corresponding image data packet.

[0028] Secondly, this application also provides an image transmission device, the device comprising:

[0029] The encoding module is used to acquire the image to be transmitted and encode the image to be transmitted to obtain a number of image encoding packets, each of the image encoding packets corresponding to a first region of the image to be transmitted;

[0030] The first quantity acquisition module is used to acquire the number of refresh controllers of the display end corresponding to the image to be transmitted;

[0031] The segmentation module is used to segment the image to be transmitted based on the number of regions to obtain several second regions; and the second regions include several first regions.

[0032] The transmission module is used to sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display terminal.

[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the above embodiments.

[0034] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0036] The aforementioned image transmission method, apparatus, computer equipment, storage medium, and computer program product acquire an image to be transmitted and encode it to obtain several image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted; acquire the number of refresh controllers on the display end corresponding to the image to be transmitted; divide the image to be transmitted based on the number to obtain several second regions; and the second regions include several first regions; sequentially acquire the image encoding packets corresponding to the first regions from the second regions and transmit them to the display end. In this way, the data packets are related to the pixel position, so there is no need to encode the position during encoding, which can reduce the number of bits for position encoding, thereby enabling image data compression, reducing the amount of image data transmitted, and increasing the number of LED arrays and grayscale levels. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is an application environment diagram of the image transmission method in one embodiment;

[0039] Figure 2 This is a flowchart illustrating an image transmission method in one embodiment;

[0040] Figure 3 This is a structural block diagram of an image transmission device in one embodiment;

[0041] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] The image transmission method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the first image processing unit communicates with the second image processing unit in the vehicle via a data transmission bus. The first image processing unit can be the vehicle's controller, and the second image processing unit can be an intelligent display device in the vehicle, which can be implemented using an LED array. The communication method between the vehicle controller and the intelligent display device can include at least one of CANFD 5M baud rate communication or in-vehicle Ethernet communication; no specific limitation is made here. Using in-vehicle Ethernet for data transmission can increase data transmission bandwidth, thereby reducing the bus load bottleneck when transmitting large amounts of data.

[0044] The first image processing unit acquires the image to be transmitted and encodes it to obtain several image encoding packets, each corresponding to a first region of the image to be transmitted. It then acquires the number of refresh controllers on the display end corresponding to the image to be transmitted; based on the number, it divides the image to be transmitted into several second regions, each of which includes several first regions; and sequentially acquires the image encoding packets corresponding to the first regions from the second regions and transmits them to the display end. In this way, the data packets are related to the pixel position, eliminating the need for position encoding during encoding. This reduces the number of bits required for position encoding, enabling image data compression, reducing the amount of image data transmitted, and increasing the number of LED arrays and grayscale levels.

[0045] In one exemplary embodiment, such as Figure 2 As shown, an image transmission method is provided, which is applied to... Figure 1 Taking the first image processing method as an example, the process includes steps 202 to 208. Wherein:

[0046] S202: Obtain the image to be transmitted, and encode the image to be transmitted to obtain several image encoding packets, each image encoding packet corresponding to the first region of the image to be transmitted.

[0047] Specifically, the image to be transmitted can be a video or a still image. If it is a video, the image to be transmitted in this embodiment is an example of a frame from the video. The images of other video frames are processed in the same way. The processing of each video frame can be parallel processing or serial processing, which is not specifically limited here.

[0048] Encoding the image to be transmitted yields several image encoding packets, each corresponding to a first region of the image to be transmitted. In one optional embodiment, encoding the image to be transmitted to obtain several image encoding packets includes: acquiring the image to be transmitted; dividing the image to be transmitted into several sub-regions based on the size of the data packet of the communication protocol and the size of the encoded value of a pixel, each sub-region corresponding to an image data packet, each image data packet having a unique identifier; encoding the pixels in each sub-region and placing them in the corresponding image data packet.

[0049] The communication protocol can be either CANFD 5M baud rate or the corresponding Ethernet communication protocol. The size of the data packet in the communication protocol is the size of a single data packet. In this embodiment, the maximum data transmitted per CANFD data packet is 64 bytes. The size of the encoded value of a pixel is determined based on the pixel's grayscale level. For example, if it is 32 grayscale levels, then the encoded value of a pixel is 5 bits.

[0050] Based on the size of the data packet and the size of the encoded value of a pixel, we can determine how many encoded pixel values ​​a data packet can store. This number is the target number. Then, based on this target number, the image to be encoded is divided into several sub-regions.

[0051] In this embodiment, 64 bytes / 5 bits = 102 pixels, so each 102 pixels is divided into a sub-region.

[0052] In this embodiment, for ease of statistics, the pixels in each sub-region are adjacent. In one optional embodiment, the pixels in the encoded image are arranged in a top-to-bottom, left-to-right order, and then based on the sorted pixels, each sub-region is divided into 102 pixels.

[0053] In other embodiments, if the size of the data packet of the communication protocol is a different value, or the gray level of the pixel is a different value, that is, the size of the pixel's encoded value has changed, then the number of pixel encoded values ​​that a data packet can store can be re-determined, and then the image to be encoded is divided into several sub-regions based on the target number.

[0054] In one alternative embodiment, the target quantity can be pre-calculated and stored, so that it can be directly used only when it is obtained each time. It only needs to be recalculated and stored when the size of the data packet of the communication protocol and / or the grayscale of the pixel changes.

[0055] Encoding the pixels in each sub-region can be done in parallel, where each sub-region corresponds to a thread and is then encoded. In other embodiments, it can also be done serially, where the sub-regions are encoded sequentially.

[0056] The encoding of each pixel in the sub-region can be performed in a certain order, so that each bit in the data packet represents the pixel value without representing the pixel position. This order can be the order of pixels from top to bottom and from left to right.

[0057] One point to note is that in this embodiment, a pixel value corresponds to a single LED bulb in the headlight, such as an LED light.

[0058] In one embodiment, the pixels in each sub-region are encoded and placed in the corresponding data packet, including: obtaining a pre-set association relationship between the pixel position and the bytes and bits in the data packet; reading pixel values ​​from the sub-region according to a preset pixel position order; encoding the pixel values; and storing the encoded pixel values ​​in the corresponding bits of the corresponding bytes of the corresponding data packet based on the association relationship.

[0059] The association is preset, meaning that the position of the pixel is related to the sorting of the encoded values. In one optional embodiment, the encoded values ​​in the data packet are sorted from top to bottom and from left to right according to the position of the pixels, with each pixel corresponding to 5 bits. In other embodiments, the number of bits corresponding to each pixel can be different, and no specific limitation is made here.

[0060] To ensure orderly processing, pixel values ​​are read from the sub-regions in a top-to-bottom, left-to-right manner, then encoded and placed in the data packet, until all pixels in the sub-region have been encoded.

[0061] In other embodiments, the arrangement order may also be other orders, which are not specifically limited here.

[0062] In one optional embodiment, before dividing the image to be encoded into several sub-regions, the method further includes: obtaining the maximum grayscale of the pixels in the image to be encoded, and determining the number of bits of the encoded value of each pixel based on the maximum grayscale; determining a first number of encoded values ​​of pixels that can be stored in one byte based on the number of bits; obtaining a second number of bytes contained in the data packet corresponding to the communication protocol; determining a third number of pixels corresponding to the data packet based on the first and second numbers; determining the pixel position corresponding to each data packet based on the third number and the arrangement order of pixels in the image to be encoded, and determining a sub-region based on the pixel position.

[0063] The maximum grayscale is the highest grayscale value of a pixel in the image to be encoded. Based on this maximum grayscale, the number of bits for the encoded value of each pixel is determined. For example, if the maximum grayscale is 32, the number of bits for the encoded value is 5; if the maximum grayscale is 16, the number of bits for the encoded value is 4. Since one byte is 8 bits, the first number of bits that can be stored for a pixel's encoded value is determined based on the number of bytes. For example, if one byte is 8 bits and the number of bits for the encoded value is 5, it can store one complete pixel's encoded value, leaving 3 bits remaining. Therefore, the first number is 2. The second number of bytes contained in the data packet corresponding to the communication protocol is obtained. For example, in the above example, the maximum data transmitted per frame in CANFD is 64 bytes. Based on the first and second numbers, the third number of pixels corresponding to the data packet is determined. For example, 64 * 8 / 5 = 102 pixels. Based on the third number and the arrangement order of pixels in the image to be encoded, the pixel position corresponding to each data packet is determined. Based on the pixel position, a sub-region is determined, including the condition that all pixels in the sub-region are adjacent. In one alternative embodiment, the individual pixels in the encoded image are arranged in a top-to-bottom, left-to-right order, and then, based on the sorted pixels, each 102 pixels are divided into a sub-region.

[0064] In this embodiment, the display screen data is divided into N data packets, each 64 bytes in size. Taking a monochrome image with a resolution of 306*63 pixels and 32 grayscale levels as an example, this image requires a total of 12049 bytes of data, which needs to be divided into 188 data packets. These N data packets are assigned fixed CAN IDs based on their corresponding display screen positions. For example, the data packets divided above are assigned IDs from 0x001 to 0x0BC.

[0065] S204: Obtain the number of refresh controllers on the display end corresponding to the image to be transmitted.

[0066] The number of refresh controllers refers to the number of MCUs used for image display included in the second image processing unit. For example, the headlight display unit of a vehicle terminal includes three MCUs for refreshing the image, and each MCU has a fixed refresh area. In other embodiments, the number of refresh controllers on the display end can be other numbers, which will not be elaborated here.

[0067] S206: Divide the image to be transmitted into several second regions based on the quantity; and the second regions include several first regions.

[0068] To improve transmission efficiency, the transmitted image is divided into several second regions based on the number of MCUs. For example, if there are 3 MCUs, there are 3 second regions, and each second region includes several first regions. Since the image encoding packets corresponding to each first region are fixed, the image encoding packets included in the second regions are also fixed.

[0069] S208: Sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display end.

[0070] To ensure processing efficiency, the encoded packets are sent in turn. That is, the second region is sorted, and then the image encoded packets are obtained from the first second region and sent to the display end in that order. Then the image encoded packets are obtained from the second second region and sent to the display end, until the second region is completely traversed. Then the image encoded packets are obtained from the first second region and sent to the display end, until all image encoded packets are sent.

[0071] In one optional embodiment, sequentially obtaining image encoding packets corresponding to the first region from the second region and transmitting them to the display end includes: sorting each second region; determining the current second region based on the sorting result, obtaining the image encoding packet corresponding to the first region from the current second region, and transmitting it to the display end; determining the next second region based on the sorting result, and after using the next second region as the current second region, continuing to execute the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end, until all image encoding packets corresponding to the images to be transmitted are transmitted to the display end.

[0072] For example, when sending CANFD data packets, the three MCUs receive the CAN IDs in turn. For instance, MCU1 receives CAN IDs 0x001-0x03E, MCU2 receives CAN IDs 0x03F-0x07E, and MCU3 receives CAN IDs 0x07F-0x0BC. The order of sending CAN IDs at the transmitting end is: 0x03F, 0x001, 0x07F, 0x040, 0x002, 0x080, and so on. That is, first send the encoded packet 0x03F to MCU1, then send the encoded packet 0x001 to MCU1, then send 0x07F to MCU3; first send the encoded packet 0x040 to MCU1, then send the encoded packet 0x002 to MCU2, and then send 0x080 to MCU3.

[0073] The above image transmission method involves acquiring an image to be transmitted and encoding it to obtain several image encoding packets, each corresponding to a first region of the image to be transmitted; acquiring the number of refresh controllers on the display end corresponding to the image to be transmitted; dividing the image to be transmitted based on the number to obtain several second regions; and each second region includes several first regions; sequentially acquiring the image encoding packets corresponding to the first regions from the second regions and transmitting them to the display end. In this way, the data packets are related to the pixel position, so there is no need to encode the position during encoding, which can reduce the number of bits for position encoding, thereby enabling image data compression, reducing the amount of image data transmitted, and increasing the number of LED arrays and grayscale levels.

[0074] In one optional embodiment, after sequentially obtaining the image encoding packets corresponding to the first region from the second region and transmitting them to the display end, the process includes: after all data packets of the image to be transmitted have been sent, obtaining a refresh encoding packet with a pre-set fixed identifier; and sending the refresh encoding packet with the fixed identifier to the display end, wherein the refresh encoding packet with the fixed identifier is used to instruct the display end to refresh the screen.

[0075] The refresh code packet with a fixed identifier is used to instruct the display to refresh the screen. It is sent to each refresh controller on the display, i.e., three MCUs, so that the three MCUs can refresh the page simultaneously.

[0076] After a frame of image data is sent, that is, after the first image processing party determines that all data packets of the image to be transmitted have been sent, it obtains a refresh code packet with a pre-set fixed identifier and sends a refresh frame with a fixed identifier. After receiving this control command, the MCUs of the three display terminals refresh the screen simultaneously to complete the screen display.

[0077] In one embodiment, an image encoding packet of an image to be transmitted is received from an image transmitting end; a first region in a second region to which the image encoding packet belongs is determined based on the identifier of the image encoding packet; the image encoding packet is decoded to obtain pixel values, and the obtained pixel values ​​are updated to the first region.

[0078] This embodiment describes the processing method of the display terminal in a vehicle, used for image display. The display terminal determines the first region within the second region to which the image encoding packet belongs based on the image encoding packet's identifier. This is because the image encoding packet identifier is related to the first region, and the first region is related to the second region. Therefore, the corresponding refresh controller can be determined based on the image encoding packet. The refresh controller then decodes the image encoding packet to obtain pixel values ​​and updates the corresponding positions in the first region with these pixel values. Each data packet's identifier corresponds to a first region; that is, each first region corresponds to one data packet. Each data packet has a unique identifier, such as a CAN ID number, allowing the determination of the position of the stored encoded values ​​based on the data packet's identifier. Since the data packet is related to the pixel position, decoding the encoded values ​​in the data packet yields the pixel values ​​of the sub-region, thus achieving decoding. The pixel position is related to the order of the encoded values. In one optional embodiment, the encoded values ​​in the data packet are ordered from top to bottom and from left to right according to the pixel position, with each pixel corresponding to 5 bits. In other embodiments, the number of bits per pixel can be different and is not specifically limited here. Based on this order, each encoded value in the data packet is decoded in groups of 5 bits per pixel, and the position of the corresponding pixel is determined according to the decoding order, thereby achieving decoding.

[0079] In one embodiment, the method further includes: when a refresh encoding packet with a fixed identifier is received, counting the identifiers of the received unrefreshed image encoding packets; when the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, deleting the received unrefreshed image encoding packets, and continuing to receive the image encoding packets of the image to be transmitted sent by the image sending end.

[0080] In this embodiment, if the number of CANIDs in a received data packet is less than the number in a frame, all data packets in that frame are deleted and not displayed. Therefore, in this embodiment, the display terminal counts the number of identifiers of the received unrefreshed image encoding packets. If this number is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, the received unrefreshed image encoding packets are deleted.

[0081] In the above embodiments, the order of the pixel encoding values ​​includes the pixel position information, so there is no need to occupy encoding bits, and one byte can include the encoding values ​​of multiple pixels, which greatly reduces the amount of image data and can reduce the bus load during data transmission.

[0082] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0083] Based on the same inventive concept, this application also provides an image transmission apparatus for implementing the image transmission method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more image transmission apparatus embodiments provided below can be found in the limitations of the image transmission method described above, and will not be repeated here.

[0084] In one exemplary embodiment, such as Figure 3 As shown, an image transmission device is provided, including: an encoding module 301, a first quantity acquisition module 302, a division module 303, and a transmission module 304, wherein:

[0085] The encoding module 301 is used to acquire the image to be transmitted and encode the image to be transmitted to obtain a number of image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted.

[0086] The first quantity acquisition module 302 is used to acquire the number of refresh controllers on the display end corresponding to the image to be transmitted;

[0087] The segmentation module 303 is used to segment the image to be transmitted based on the quantity to obtain several second regions; and the second regions include several first regions.

[0088] The transmission module 304 is used to sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display end.

[0089] In one embodiment, the transmission module 304 is further configured to sort each second region; based on the sorting result, determine the current second region, obtain the image encoding packet corresponding to the first region from the current second region, and transmit it to the display end; based on the sorting result, determine the next second region, and after taking the next second region as the current second region, continue to execute the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end, until all image encoding packets corresponding to the images to be transmitted are transmitted to the display end.

[0090] In one embodiment, the above-mentioned device further includes a refresh module, which is used to obtain a refresh code packet with a pre-set fixed identifier after all data packets of the image to be transmitted have been sent; and to send the refresh code packet with the fixed identifier to the display end, wherein the refresh code packet with the fixed identifier is used to instruct the display end to refresh the screen.

[0091] In one embodiment, the above-described apparatus further includes a receiving module for receiving an image encoding packet of an image to be transmitted sent by an image transmitting end; determining a first region in a second region to which the image encoding packet belongs based on the identifier of the image encoding packet; decoding the image encoding packet to obtain pixel values; and updating the obtained pixel values ​​to the first region.

[0092] In one embodiment, the above-mentioned apparatus further includes an encoding packet processing module, which is used to count the identifiers of the received unrefreshed image encoding packets when a refresh encoding packet with a fixed identifier is received; and to delete the received unrefreshed image encoding packets when the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, and to continue receiving the image encoding packets of the image to be transmitted sent by the image sending end.

[0093] In one embodiment, the encoding module 301 is further configured to acquire the image to be transmitted; divide the image to be transmitted into several sub-regions based on the size of the data packet of the communication protocol and the size of the encoded value of a pixel, with each sub-region corresponding to an image data packet and each image data packet having a unique identifier; encode the pixels in each sub-region and place them in the corresponding image data packet.

[0094] Each module in the aforementioned image transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0095] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an image transmission method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0096] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0097] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring an image to be transmitted, and encoding the image to be transmitted to obtain a plurality of image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted; acquiring the number of refresh controllers of the display terminal corresponding to the image to be transmitted; dividing the image to be transmitted based on the number to obtain a plurality of second regions; and the second regions include a plurality of first regions; sequentially acquiring the image encoding packets corresponding to the first regions from the second regions and transmitting them to the display terminal.

[0098] In one embodiment, the process of sequentially obtaining image encoding packets corresponding to the first region from the second region and transmitting them to the display end when the processor executes the computer program includes: sorting each second region; determining the current second region based on the sorting result, obtaining the image encoding packet corresponding to the first region from the current second region, and transmitting it to the display end; determining the next second region based on the sorting result, and after taking the next second region as the current second region, continuing to execute the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end, until all image encoding packets corresponding to the images to be transmitted have been transmitted to the display end.

[0099] In one embodiment, after the processor executes the computer program to sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display end, the process includes: after all data packets of the image to be transmitted have been sent, obtaining a refresh encoding packet with a pre-set fixed identifier; and sending the refresh encoding packet with the fixed identifier to the display end, wherein the refresh encoding packet with the fixed identifier is used to instruct the display end to refresh the screen.

[0100] In one embodiment, when the processor executes the computer program, it further performs the following steps: receiving an image encoding packet of an image to be transmitted sent by an image transmitter; determining a first region in a second region to which the image encoding packet belongs based on the identifier of the image encoding packet; decoding the image encoding packet to obtain pixel values; and updating the obtained pixel values ​​to the first region.

[0101] In one embodiment, when the processor executes the computer program, it further implements the following steps: when a refreshed encoding packet with a fixed identifier is received, the identifiers of the received unrefreshed image encoding packets are counted; when the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, the received unrefreshed image encoding packets are deleted, and the image encoding packets of the image to be transmitted sent by the image sending end are continued to be received.

[0102] In one embodiment, the process of encoding an image to be transmitted into several image encoding packets when the processor executes a computer program includes: acquiring the image to be transmitted; dividing the image to be transmitted into several sub-regions based on the size of the data packet of the communication protocol and the size of the encoding value of a pixel, with each sub-region corresponding to an image data packet and each image data packet having a unique identifier; encoding the pixels in each sub-region and placing them in the corresponding image data packet.

[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: acquiring an image to be transmitted, and encoding the image to be transmitted to obtain a plurality of image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted; acquiring the number of refresh controllers of the display terminal corresponding to the image to be transmitted; dividing the image to be transmitted based on the number to obtain a plurality of second regions; and the second regions include a plurality of first regions; sequentially acquiring the image encoding packets corresponding to the first regions from the second regions and transmitting them to the display terminal.

[0104] In one embodiment, the process of sequentially obtaining image encoding packets corresponding to the first region from the second region and transmitting them to the display end when the computer program is executed by the processor includes: sorting each second region; determining the current second region based on the sorting result, obtaining the image encoding packet corresponding to the first region from the current second region, and transmitting it to the display end; determining the next second region based on the sorting result, and after taking the next second region as the current second region, continuing to execute the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end, until all image encoding packets corresponding to the images to be transmitted have been transmitted to the display end.

[0105] In one embodiment, after the computer program is executed by the processor to sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display end, the process includes: after all data packets of the image to be transmitted have been sent, obtaining a refresh encoding packet with a pre-set fixed identifier; and sending the refresh encoding packet with the fixed identifier to the display end, wherein the refresh encoding packet with the fixed identifier is used to instruct the display end to refresh the screen.

[0106] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving an image encoding packet of an image to be transmitted sent by an image transmitter; determining a first region in a second region to which the image encoding packet belongs based on the identifier of the image encoding packet; decoding the image encoding packet to obtain pixel values; and updating the obtained pixel values ​​to the first region.

[0107] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when a refreshed encoding packet with a fixed identifier is received, the identifiers of the received unrefreshed image encoding packets are counted; when the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, the received unrefreshed image encoding packets are deleted, and the image encoding packets of the image to be transmitted sent by the image sending end are continued to be received.

[0108] In one embodiment, when a computer program is executed by a processor, it encodes an image to be transmitted to obtain several image encoding packets, including: acquiring the image to be transmitted; dividing the image to be transmitted into several sub-regions based on the size of the data packet of the communication protocol and the size of the encoding value of a pixel, with each sub-region corresponding to an image data packet and each image data packet having a unique identifier; encoding the pixels in each sub-region and placing them in the corresponding image data packet.

[0109] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: acquiring an image to be transmitted, and encoding the image to be transmitted to obtain a plurality of image encoding packets, each image encoding packet corresponding to a first region of the image to be transmitted; acquiring the number of refresh controllers of the display terminal corresponding to the image to be transmitted; dividing the image to be transmitted based on the number to obtain a plurality of second regions; and the second regions include a plurality of first regions; sequentially acquiring the image encoding packets corresponding to the first regions from the second regions and transmitting them to the display terminal.

[0110] In one embodiment, the process of sequentially obtaining image encoding packets corresponding to the first region from the second region and transmitting them to the display end when the computer program is executed by the processor includes: sorting each second region; determining the current second region based on the sorting result, obtaining the image encoding packet corresponding to the first region from the current second region, and transmitting it to the display end; determining the next second region based on the sorting result, and after taking the next second region as the current second region, continuing to execute the step of obtaining the image encoding packet corresponding to the first region from the current second region and transmitting it to the display end, until all image encoding packets corresponding to the images to be transmitted have been transmitted to the display end.

[0111] In one embodiment, after the computer program is executed by the processor to sequentially obtain the image encoding packets corresponding to the first region from the second region and transmit them to the display end, the process includes: after all data packets of the image to be transmitted have been sent, obtaining a refresh encoding packet with a pre-set fixed identifier; and sending the refresh encoding packet with the fixed identifier to the display end, wherein the refresh encoding packet with the fixed identifier is used to instruct the display end to refresh the screen.

[0112] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving an image encoding packet of an image to be transmitted sent by an image transmitter; determining a first region in a second region to which the image encoding packet belongs based on the identifier of the image encoding packet; decoding the image encoding packet to obtain pixel values; and updating the obtained pixel values ​​to the first region.

[0113] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when a refreshed encoding packet with a fixed identifier is received, the identifiers of the received unrefreshed image encoding packets are counted; when the number of identifiers of the received unrefreshed image encoding packets is less than the number of identifiers of the standard image encoding packets of the image to be transmitted, the received unrefreshed image encoding packets are deleted, and the image encoding packets of the image to be transmitted sent by the image sending end are continued to be received.

[0114] In one embodiment, when a computer program is executed by a processor, it encodes an image to be transmitted to obtain several image encoding packets, including: acquiring the image to be transmitted; dividing the image to be transmitted into several sub-regions based on the size of the data packet of the communication protocol and the size of the encoding value of a pixel, with each sub-region corresponding to an image data packet and each image data packet having a unique identifier; encoding the pixels in each sub-region and placing them in the corresponding image data packet.

[0115] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0116] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0117] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. An image transmission method characterized by, The method is applied between a controller of a vehicle and an intelligent display device implemented by an LED array; the method comprises: Obtaining a to-be-transmitted image, and encoding the to-be-transmitted image to obtain a plurality of image encoding packets, each of the image encoding packets corresponding to a first region of the to-be-transmitted image; Obtaining a number of refresh controllers of a display end corresponding to the to-be-transmitted image, the number of refresh controllers being a number of micro control units (MCUs) used for image display; Dividing the to-be-transmitted image based on the number to obtain a plurality of second regions, and the second regions including a plurality of the first regions; Transmitting, in sequence, image encoding packets corresponding to the second regions to the display end, wherein the transmitting of the image encoding packets corresponding to the second regions to the display end comprises: obtaining image encoding packets corresponding to the first regions and transmitting the image encoding packets to the display end; After the transmitting of the image encoding packets corresponding to the second regions to the display end, the method comprises: After the image encoding packets of the to-be-transmitted image are all transmitted, obtaining a refresh encoding packet of a pre-set fixed identifier; Transmitting the refresh encoding packet of the fixed identifier to the display end, the refresh encoding packet of the fixed identifier being used to instruct the display end to perform picture refresh; The encoding of the to-be-transmitted image to obtain a plurality of image encoding packets comprises: Obtaining a maximum gray scale of pixels of the to-be-transmitted image, determining a bit number of an encoding value of each pixel based on the maximum gray scale, determining a first number of pixels capable of being stored in a byte based on the bit number, obtaining a second number of bytes contained in an image encoding packet corresponding to a communication protocol, determining a third number of pixels corresponding to the image encoding packet based on the first number and the second number, determining a pixel position corresponding to each image encoding packet based on the third number and an arrangement order of the pixels in the to-be-transmitted image, and determining the first region based on the pixel position, each of the first regions corresponding to an image encoding packet, and each image encoding packet having a unique identifier; Encoding the pixels in each first region and placing the pixels in corresponding image encoding packets.

2. The method of claim 1, wherein, The transmitting of the image encoding packets corresponding to the second regions to the display end comprises: Sorting the second regions; Based on a sorting result, determining a current second region, obtaining an image encoding packet corresponding to the first region from the current second region, and transmitting the image encoding packet to the display end; After determining a next second region based on the sorting result and taking the next second region as a new current second region, continuing to perform the steps of obtaining an image encoding packet corresponding to the first region from the current second region and transmitting the image encoding packet to the display end until the image encoding packets corresponding to the to-be-transmitted image are all transmitted to the display end.

3. The method according to claim 1 or 2, characterized in that, The method further comprises: Receiving an image encoding packet of a to-be-transmitted image sent by an image sending end; Determining a first region in a second region to which the image encoding packet belongs based on an identifier of the image encoding packet; Decoding the image encoding packet to obtain pixel values, and updating the obtained pixel values to the first region.

4. The method of claim 3, wherein, The method further comprises: When the refresh code package with the fixed identifier is received, the identifier of the received non-refreshed image code package is counted; When the number of the identifiers of the received non-refreshed image code packages is less than the number of the identifiers of the standard image code packages of the image to be transmitted, the received non-refreshed image code packages are deleted, and the image code packages of the image to be transmitted sent by the image sending end are continuously received.

5. An image transmission apparatus characterized by comprising: The device is applied between a controller of a vehicle and an intelligent display device implemented by an LED array; the device comprises: An encoding module is configured to acquire an image to be transmitted, encode the image to be transmitted, and obtain a plurality of image code packages, each of the image code packages corresponding to a first region of the image to be transmitted; A first number acquisition module is configured to acquire a number of refresh controllers of a display end corresponding to the image to be transmitted, the number of the refresh controllers being a number of micro control units (MCUs) used for image display; A division module is configured to divide the image to be transmitted based on the number to obtain a plurality of second regions, and each of the second regions comprises a plurality of the first regions; A transmission module is configured to sequentially transmit image code packages corresponding to the second regions to the display end, wherein the transmission of the image code packages corresponding to the second regions to the display end comprises: acquiring the image code packages corresponding to the first regions and transmitting the image code packages to the display end; A refresh module is configured to acquire a refresh code package with a fixed identifier that is set in advance when the image code packages of the image to be transmitted are all transmitted, and transmit the refresh code package with the fixed identifier to the display end, the refresh code package with the fixed identifier being used to instruct the display end to perform picture refresh. The encoding module is further configured to acquire a maximum gray scale of pixels of the image to be transmitted, determine a number of bits of an encoding value of each pixel based on the maximum gray scale, determine a first number of the encoding values of the pixels that can be stored in one byte based on the number of bits, acquire a second number of bytes contained in an image code package corresponding to a communication protocol, determine a third number of the pixels corresponding to the image code package based on the first number and the second number, determine a pixel position corresponding to each image code package based on the third number and an arrangement order of the pixels in the image to be transmitted, determine the first region based on the pixel position, each of the first regions corresponding to an image code package, each of the image code packages having a unique identifier, and encode the pixels in each of the first regions and place the pixels in the corresponding image code package.

6. The apparatus of claim 5, wherein, The device is further configured to: Sort the second regions; Determine a current second region based on a sorting result, acquire the image code package corresponding to the first region from the current second region, and transmit the image code package to the display end; After determining a next second region based on the sorting result and taking the next second region as a new current second region, continue to perform the steps of acquiring the image code package corresponding to the first region from the current second region and transmitting the image code package to the display end until the image code packages corresponding to the image to be transmitted are all transmitted to the display end. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor implements the steps of the method in any one of claims 1 to 4 when executing the computer program.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 4.

9. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for displaying images in display array

    CN110119263A

  • Method for displaying multiple windows and electronic equipment

    CN116055786A