Image processing system, image processing device and image processing method

By segmenting the image and selecting the appropriate compression mode and color sampling method through the classification model trained by artificial intelligence, it solves the problem that the image processing system in the existing technology is difficult to automatically select the appropriate color sampling method, and achieves the satisfaction of bandwidth limitations and the improvement of image quality. Keep.

CN113452992BActive Publication Date: 2024-10-18ATEN INTERNATIONAL CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010533675.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-10-18
Estimated Expiration
2040-07-02

AI Technical Summary

Technical Problem

It is difficult for existing image processing systems to automatically select the most suitable color sampling method based on the complexity of the image, resulting in the inability to meet bandwidth constraints and avoid image distortion at the same time.

Method used

Using a classification model trained through artificial intelligence, the image is divided into multiple blocks, and the most suitable compression mode and color sampling method are selected based on the complexity results of each block to achieve dynamic adjustment.

Benefits of technology

It realizes the automatic selection of compression mode according to the complexity of image blocks, which not only complies with the bandwidth limit, but also avoids image distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113452992B_ABST
    Figure CN113452992B_ABST
Patent Text Reader

Abstract

An image processing system, an image processing device and an image processing method, wherein the image processing system comprises an image source device, an image processing device and a target device. The image processing device comprises an image capture unit, a mode determination unit and an image compression unit. The image capture unit captures an image provided by the image source device and divides it into a plurality of blocks. The mode determination unit is coupled to the image capture unit. The mode determination unit comprises a plurality of compression modes. The mode determination unit receives a first block among the blocks, and analyzes the first block by a classification model in the mode determination unit, and selects a first compression mode corresponding to the first block from the compression modes according to the analysis result. The image compression unit is coupled to the image capture unit and the mode determination unit. The image compression unit compresses the first block into a first compressed block according to the first compression mode and transmits it to the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to image processing, and in particular to an image processing system, an image processing device and an image processing method. Background Art

[0002] Generally speaking, in the process of image processing, 4:4:4, 4:2:2 and 4:2:0 are three commonly used color sampling methods in the industry. Among them, 4:4:4 is a full image transmission without channel compression, so the bandwidth it occupies is relatively large; 4:2:2 removes half of the signals of the last two channels, so it only requires two-thirds of the bandwidth of 4:4:4; as for 4:2:0, it will extract more blue and red chromaticity, so the bandwidth it occupies is relatively smaller.

[0003] For example, if the image being processed is a computer desktop or a simple static image, since its compression ratio is usually high, that is, the bandwidth occupied during transmission is relatively small, even if the uncompressed 4:4:4 color sampling method is used, the bandwidth occupied is still within an acceptable range and will not produce distortion after image compression. On the contrary, if the image being processed is a complex image, a compressed 4:2:2 or 4:2:0 color sampling method must be used to avoid exceeding the total bandwidth limit.

[0004] However, it is difficult to know or predict in advance whether the image provided by the user is a simple image or a complex image. Therefore, it is still difficult for current image processing systems to automatically and selectively adopt the most suitable color sampling method according to the complexity of the current processed image. Therefore, it is impossible to meet the bandwidth limitation and avoid image distortion at the same time. Summary of the invention

[0005] In view of this, the present invention provides an image processing system, an image processing device and an image processing method to effectively solve the problems encountered in the prior art.

[0006] According to a specific embodiment of the present invention, there is an image processing device. In this embodiment, the image processing device includes an image capture unit, a mode determination unit and an image compression unit. The image capture unit captures an image and divides the image into a plurality of blocks. The mode determination unit is coupled to the image capture unit. The mode determination unit includes a plurality of compression modes. The mode determination unit receives a first block among the blocks, analyzes the first block by a classification model in the mode determination unit, and selects a first compression mode corresponding to the first block from the compression modes according to the analysis result of the classification model. The image compression unit is coupled to the image capture unit and the mode determination unit. The image compression unit compresses the first block into a first compressed block according to the first compression mode.

[0007] In one embodiment, the classification model is obtained through an artificial intelligence (AI) training learning mechanism, and the classification model takes a plurality of sample images as its input and takes the training complexity results of the sample images as its output.

[0008] In one embodiment, the mode decision unit inputs the first block into a classification model, and selects a first compression mode corresponding to the first block from the compression modes according to a complexity result corresponding to the first block output by the classification model.

[0009] In one embodiment, the first compressed block further includes compression information corresponding to the first compression mode.

[0010] In one embodiment, the mode decision unit obtains a second block from the blocks, the classification model analyzes the second block, the mode decision unit selects a second compression mode corresponding to the second block from the compression modes according to the analysis result of the classification model, and the image compression unit compresses the second block into a second compressed block using the second compression mode, wherein the second block is different from the first block.

[0011] In one embodiment, the first compression mode is different from the second compression mode and each uses a different color sampling method.

[0012] Another specific embodiment of the present invention is an image processing system. In this embodiment, the image processing system includes an image source device, an image processing device and a target device. The image source device provides an image. The image processing device is coupled to the image source device. The image processing device includes an image capture unit, a mode determination unit and an image compression unit. The image capture unit receives an image from the image source device and divides the image into a plurality of blocks. The mode determination unit is coupled to the image capture unit. The mode determination unit includes a plurality of compression modes. The mode determination unit receives a first block among the blocks, analyzes the first block by a classification model in the mode determination unit, and selects a first compression mode corresponding to the first block from the compression modes according to the analysis result of the classification model. The image compression unit is coupled to the image capture unit and the mode determination unit. The image compression unit compresses the first block into a first compressed block according to the first compression mode. The target device is coupled to the image compression unit of the image processing device and receives the first compressed block. The target device selects a first decompression mode corresponding to the first compression mode according to the compression information, and decompresses the first compressed block according to the first decompression mode.

[0013] In one embodiment, the mode decision unit inputs the first block into a classification model, and selects a first compression mode corresponding to the first block from the compression modes according to a complexity result corresponding to the first block output by the classification model.

[0014] In one embodiment, the mode decision unit obtains a second block from the blocks, the classification model analyzes the second block, the mode decision unit selects a second compression mode corresponding to the second block from the compression modes according to the analysis result of the classification model, and the image compression unit compresses the second block into a second compressed block using the second compression mode, wherein the second block is different from the first block.

[0015] In one embodiment, the first compression mode is different from the second compression mode and each uses a different color sampling method.

[0016] Another specific embodiment of the present invention is an image processing method. In this embodiment, the image processing method includes the following steps: capturing an image; dividing the image into a plurality of blocks; selecting a first block among the blocks; analyzing the first block; selecting a first compression mode from a plurality of compression modes according to the analysis result, and the first compression mode corresponds to the first block; and compressing the first block into a first compressed block according to the first compression mode.

[0017] In one embodiment, the method further includes: selecting a second block from the blocks, wherein the second block is different from the first block; analyzing the second block; selecting a second compression mode corresponding to the second block from the compression modes according to the analysis result; and compressing the second block into a second compressed block according to the second compression mode.

[0018] In one embodiment, the first compression mode is different from the second compression mode and each uses a different color sampling method.

[0019] In one embodiment, the first compressed block also includes compression information corresponding to the first compression mode, and the image processing method also includes: transmitting the first compressed block to a target device; selecting a first decompression mode by the target device according to the compression information, wherein the first decompression mode corresponds to the first compression mode; and decompressing the first compressed block according to the first decompression mode.

[0020] In one embodiment, the method further includes: inputting the first block to a classification model; analyzing the first block using the classification model to generate a complexity result corresponding to the first block; and selecting a first compression mode from the compression modes according to the complexity result, the first compression mode corresponding to the first block.

[0021] In one embodiment, the method further comprises: obtaining a classification model through an artificial intelligence training learning mechanism, wherein the classification model takes a plurality of sample images as input and takes the training complexity results of the sample images as output.

[0022] In one embodiment, the method further comprises: in the first compression mode, using a complete color sampling method or a reduced-size color sampling method.

[0023] Compared to the prior art, the image processing system, image processing device and image processing method of the present invention can automatically determine the complexity result of the image block (such as a complex image, a medium image or a simple image) according to the current image block through a classification model (such as a neural network obtained through deep learning), and then adopt the compression mode that is most suitable for the image block, which can not only meet the bandwidth limitations, but also avoid the image distortion perceived by the human eye.

[0024] The advantages and spirit of the present invention can be further understood through the following detailed description of the invention and the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 FIG. 4 is a functional block diagram of an image processing system in a preferred embodiment of the present invention.

[0026] Figure 2 Schematic diagram of the classification model.

[0027] Figure 3A and Figure 3B The schematic diagrams are respectively for the classification model to receive different blocks of the image to be processed and output the complexity results of the different blocks accordingly.

[0028] Figure 4 FIG. 4 is a flow chart of an image processing method in another preferred embodiment of the present invention.

[0029] Figure 5 for Figure 4 Step S16 in the flowchart may also include steps S160 to S164.

[0030] Figure 6 When the image processing method is completed Figure 4 The flowchart may further include steps S20 to S24 after step S18.

[0031] Figure 7 When the image processing method is completed Figure 4 The flowchart may further include steps S30 to S40 after step S18.

[0032] Description of main component symbols:

[0033] S10~S24, S30~S40, S160~S164: Steps

[0034] IPS: Image Processing System

[0035] 1: Image processing device

[0036] 10: Image capture unit

[0037] 12: Mode determination unit

[0038] 14: Image compression unit

[0039] 2: Image source device

[0040] 3: Target device

[0041] CM: Classification Model

[0042] M: Image

[0043] B1: The first block

[0044] B2: The second block

[0045] B1': first compressed block

[0046] B2': Second compressed block

[0047] B1”: First restored block

[0048] B2”: Second restored block

[0049] C1: First compression mode

[0050] C2: Second compression mode

[0051] D1: First decompression mode

[0052] D2: Second decompression mode

[0053] INL: Input Layer

[0054] HL: Hidden Layer

[0055] OL: Output Layer

[0056] SI1~SIN: The first sample image~the Nth sample image

[0057] T1~TN: training complexity results

[0058] R1~R2: Complexity results DETAILED DESCRIPTION

[0059] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Elements / components using the same or similar reference numerals in the drawings and embodiments are intended to represent the same or similar parts.

[0060] A preferred embodiment of the present invention is an image processing system. In this embodiment, the image processing system is used to perform an image processing procedure on an image to generate a processed image.

[0061] Please refer to Figure 1 , Figure 1The functional block diagram of the image processing system in the preferred embodiment is shown below. Figure 1 As shown, the image processing system IPS comprises an image processing device 1, an image source device 2 and a target device 3. The image processing device 1 is coupled between the image source device 2 and the target device 3.

[0062] In this embodiment, the image source device 2 provides an image M to the image processing device 1 . The image processing device 1 compresses the image M provided by the image source device 2 to generate a first compressed block B1 ′ / a second compressed block B2 ′ and outputs the compressed block to the target device 3 .

[0063] In one embodiment, the image processing device 1 includes an image capturing unit 10 , a mode determining unit 12 , and an image compression unit 14 . The mode determining unit 12 is connected to the image capturing unit 10 , and the image compression unit 14 is connected to the image capturing unit 10 and the mode determining unit 12 .

[0064] In one embodiment, the mode determination unit 12 includes a plurality of compression modes. The compression modes include a first compression mode C1 and a second compression mode C2, but the present invention is not limited thereto. In addition, the mode determination unit 12 also includes a classification model CM, which will be described in detail later.

[0065] The image capture unit 10 receives an image M from the image source device 2 and divides the image M into a plurality of blocks, and the blocks include at least a first block B1 and a second block B2, but are not limited thereto. The shapes of the first block B1 and the second block B2 may be the same or different, and the present invention is not limited thereto. The areas of the first block B1 and the second block B2 may be equal or unequal, and the present invention is not limited thereto.

[0066] Here, when the mode decision unit 12 receives the first block B1 from the image capture unit 10 , the classification model CM analyzes the first block B1 , selects a first compression mode C1 corresponding to the first block B1 from the compression modes included in the mode decision unit 12 , and outputs the first compression mode C1 to the image compression unit 14 .

[0067] Specifically, when the mode decision unit 12 receives the first block B1, the mode decision unit 12 inputs the first block B1 into the classification model CM. Then, the classification model CM performs an analysis operation on the first block B1 to obtain a complexity result of the first block B1. Then, the mode decision unit 12 selects a first compression mode C1 corresponding to the complexity result from the compression modes according to the complexity result of the first block B1.

[0068] Next, the image compression unit 14 receives the first block B1 from the image capture unit 10 and the first compression mode C1 from the mode determination unit 12. The image compression unit 14 compresses the first block B1 into a first compressed block B1′ according to the first compression mode C1, and outputs the first compressed block B1′ to the target device 3. The first compressed block B1′ may include compression information related to the first compression mode C1, for example, the compression information may include information such as the color sampling method and the compression ratio adopted by the first compression mode C1, but is not limited thereto.

[0069] When the target device 3 receives the first compressed block B1', the target device 3 selects the corresponding first decompression mode D1 according to the compression information included in the first compressed block B1', and decompresses the first compressed block B1' into a first restored block B1' according to the first decompression mode D1. Since the compression information includes information corresponding to the first compression mode C1, the target device 3 can select the first decompression mode D1 corresponding to the first compression mode C1 from multiple decompression modes according to the information.

[0070] In one embodiment, the classification model CM may be a neural network obtained through deep learning. For example, by inputting N sample images (N is a positive integer) SI1~SIN to the classification model CM to be trained and learned, the classification model CM can continuously and dynamically adjust its internal parameters through each sample image SI1~SIN during the training and learning process, thereby making the classification model CM more accurate in the subsequent use of the calculation judgment of the input image that has not been input. However, in the present invention, the training and learning method is not limited to this. Please refer to Figure 2 The classification model CM may include an input layer INL, a hidden layer HL and an output layer OL, wherein the input layer INL is coupled to the hidden layer HL and the hidden layer HL is coupled to the output layer OL.

[0071] Here, when the classification model CM is trained and learned, the first sample image SI1 among the N sample images SI1 to SIN is input to the classification model CM. When the input layer INL receives the first sample image SI1, the input layer INL transmits the first sample image SI1 to the hidden layer HL. Then, the hidden layer HL uses algorithms such as convolution, pooling or fully connected to operate on the first sample image SI1 to generate the training complexity result T1 of the first sample image SI1 to the output layer OL, and feeds it back to the classification model CM. The classification model CM then adjusts the internal parameters of any one of the input layer INL, the hidden layer HL and the output layer OL or any combination thereof according to the training complexity result T1 of the first sample image SI1. It should be noted that since the classification model CM is still in the process of training and learning, the training complexity result T1 output by its output layer OL may not be correct. Therefore, when the result of the output layer OL is wrong, by feeding it back to the input layer INL, the internal parameters of the input layer INL, the hidden layer HL and / or the output layer OL can be adjusted again. By repeatedly running this process, the correct training complexity result T1 belonging to the first sample image SI1 can be obtained in the output layer OL.

[0072] Similarly, the second sample image SI2 among the N sample images SI1 to SIN can also be input to the classification model CM. When the input layer INL receives the second sample image SI2, the input layer INL transmits the second sample image SI2 to the hidden layer HL. Then, the hidden layer HL uses algorithms such as convolution, pooling or full connection to operate on the second sample image SI2 to generate the training complexity result T2 of the second sample image SI2 to output to the output layer OL, and feed it back to the classification model CM. The classification model CM then adjusts the internal parameters of any one of the input layer INL, the hidden layer HL and the output layer OL or any combination thereof according to the training complexity result T2 of the second sample image SI2. It should be noted that, since the classification model CM is still in the process of training and learning, the training complexity result T2 output by its output layer OL is similar to the training process of the aforementioned training complexity result T1. By continuously feeding back from the output layer OL to the input layer INL and correspondingly adjusting the internal parameters of the input layer INL, the hidden layer HL and / or the output layer OL, the correct training complexity result T2 belonging to the second sample image SI2 is obtained in the output layer OL.

[0073] Here, other third sample images SI3 to Nth sample image SIN can also obtain their training complexity results T3~TN respectively according to the above analogy, so that the classification model CM can obtain the internal parameters of any one of the input layer INL, hidden layer HL and output layer OL or any combination thereof corresponding to the training complexity results T3~TN according to the training process of the third sample image SI3 to Nth sample image SIN, thereby making the calculation judgment of the classification model CM for input images that have never been input more accurate when used subsequently.

[0074] Next, please refer to Figure 3A and Figure 3B . Figure 3A and Figure 3B Schematic diagrams showing that the classification model CM receives different blocks of the image M to be processed and outputs complexity results of the different blocks accordingly.

[0075] like Figure 3A As shown, when the input layer INL of the classification model CM receives the first block B1 of the image M, its hidden layer HL will calculate the first block B1 according to the result of the training and learning to obtain the complexity result R1 corresponding to the first block B1, and output the complexity result R1 through the output layer OL. The mode decision unit 12 then selects the first compression mode C1 corresponding to the complexity result R1 from the (K+1) compression modes C0~CK according to the complexity result R1. Among them, the first compression mode C1 of this embodiment is only used as an example. In fact, the appropriate n-th compression mode Cn is selected according to the first block B1, n=0~K.

[0076] Similarly, if Figure 3B As shown, when the input layer INL of the classification model CM receives the second block B2 (different from the first block B1) of the image M, its hidden layer HL will calculate the second block B2 according to the result of the training and learning to obtain the complexity result R2 corresponding to the second block B2, and output the complexity result R2 through the output layer OL. The mode decision unit 12 then selects the second compression mode C2 corresponding to the complexity result R2 from the above (K+1) compression modes C0~CK according to the complexity result R2. Among them, the second compression mode C2 of this embodiment is only used as an example. In fact, the appropriate n-th compression mode Cn is selected according to the second block B2, n=0~K.

[0077] In actual applications, if the complexity result R2 of the second block B2 is different from the complexity result R1 of the first block B1, the second block B2 will be compressed using a second compression mode C2 that is different from the first compression mode C1 of the first block B1. In other words, if the complexity result R2 of the second block B2 is equal to the complexity result R1 of the first block B1, the second block B2 will be compressed using the first compression mode C1 that is the same as the first block B1.

[0078] It should be noted that the complexity result R1 of the first block B1 and the complexity result R2 of the second block B2 can be divided into complex images, medium images and simple images according to their complexity, and each has its own suitable compression mode, which can be lossy compression or lossless compression, but is not limited thereto.

[0079] In addition, under the first compression mode C1 / second compression mode C2, a complete color sampling method (e.g., 4:4:4) or a reduced-size color sampling method (e.g., 4:2:2 or 4:2:0) may be used for color sampling, so that the first restored block B1” / second restored block B2” obtained after decompression by the target device 3 and the first block B1 / second block B2 before compression received by the mode determination unit 12 may be the same as or different from each other.

[0080] Taking the first block B1 as an example, if the complexity result R1 of the first block B1 output by the classification model CM is a “simple image”, it means that the bandwidth occupied by the first block B1 during transmission is relatively small and is suitable for compression in a lossless compression mode. The mode decision unit 12 can select lossless compression as the first compression mode C1 for the image compression unit 14 to compress the first block B1, and use a complete color sampling method (e.g., 4:4:4) for color sampling. Therefore, the first restored block B1” obtained after decompression by the target device 3 and the first block B1 before compression received by the mode decision unit 12 will be the same as each other.

[0081] On the contrary, if the complexity result R1 of the first block B1 output by the classification model CM is a "complex image", it means that the bandwidth occupied by the first block B1 during transmission is relatively large and is suitable for compression using a lossy compression mode with a higher degree of compression. The mode decision unit 12 can select lossy compression with a higher degree of compression as the first compression mode C1 for the image compression unit 14 to compress the first block B1, and use a color sampling method with a larger size reduction (for example, 4:2:0) for color sampling. Therefore, the first restored block B1" obtained after decompression by the target device 3 and the first block B1 before compression received by the mode decision unit 12 will be different from each other.

[0082] In addition, if the complexity result R1 of the first block B1 output by the classification model CM is a "medium image", it means that the bandwidth occupied by the first block B1 during transmission is smaller than that of a "complex image" and is suitable for compression using a lossy compression mode with a lower degree of compression. The mode decision unit 12 can select lossy compression with a lower degree of compression as the first compression mode C1 for the image compression unit 14 to compress the first block B1, and use a color sampling method with a smaller size reduction (for example, 4:2:2) for color sampling. Therefore, the first restored block B1" obtained after decompression by the target device 3 and the first block B1 before compression received by the mode decision unit 12 will also be different from each other. As for the situation of the second block B2, it can be deduced in the same way and will not be described in detail here.

[0083] From the above, it can be seen that the mode determination unit 12 in the image processing device 1 can select a more suitable first compression mode C1 / second compression mode C2 (such as lossless compression or lossy compression with different compression levels) according to the complexity result R1 / R2 (such as complex image, medium image or simple image) of the first block B1 / second block B2 of the image M for the image compression unit 14 to compress the first block B1 / second block B2, and correspondingly adopt a complete color sampling method (such as 4:4:4) or a color sampling method with different reduction in size (such as 4:2:2 or 4:2:0) for color sampling under the first compression mode C1 / second compression mode C2, thereby not only meeting the bandwidth limitation, but also avoiding the image distortion perceived by the human eye.

[0084] It should be noted that, although the above embodiment is described by taking the first block B1 / the second block B2 of the image M as an example, in fact, the processing of other blocks of the image M can be deduced similarly, which will not be further elaborated here.

[0085] Another specific embodiment of the present invention is an image processing device. Figure 1As shown, in this embodiment, the image processing device 1 can be coupled between the image source device 2 and the target device 3, but is not limited thereto. The image processing device 1 may include an image capture unit 10, a mode determination unit 12, and an image compression unit 14. The mode determination unit 12 includes a classification model CM. The mode determination unit 12 is coupled to the image capture unit 10; the image compression unit 14 is coupled to the image capture unit 10 and the mode determination unit 12. The image capture unit 10 captures the image M played by the image source device 2 and divides the image M into a plurality of blocks B1 / B2. The mode determination unit 12 receives a first block B1 among the blocks B1 / B2, and selects a first compression mode C1 corresponding to the first block B1 from a plurality of compression modes in the classification model CM. The image compression unit 14 compresses the first block B1 into a first compressed block B1' according to the first compression mode C1. Similarly, the mode determination unit 12 receives the second block B2 among the blocks B1 / B2, and selects the second compression mode C2 corresponding to the second block B2 from the plurality of compression modes in the classification model CM. The image compression unit 14 compresses the second block B2 into a second compressed block B2' according to the second compression mode C2. As for the operation of each unit of the image processing device 1, please refer to the above-mentioned related text and drawings, which will not be described in detail here.

[0086] Another specific embodiment of the present invention is an image processing method. In this embodiment, the image processing method can be applied to an image processing device to perform an image processing procedure on an image to generate a processed image. The image processing system may include an image processing device, an image source device, and a target device, and the image processing device may be coupled between the image source device and the target device, but is not limited thereto.

[0087] Please refer to Figure 4 , Figure 4 The image processing method in this embodiment. Figure 4 As shown, the image processing method may include steps S10 to S18.

[0088] First, the image processing method can capture an image provided by an image source device (step S10) and divide the image into a plurality of blocks (step S12), wherein the blocks at least include different first blocks and second blocks, but are not limited thereto. Next, the image processing method can select a first block among the blocks (step S14), analyze the first block and select a first compression mode corresponding to the first block from a plurality of compression modes according to the analysis result (step S16), and then compress the first block according to the first compression mode into a first compressed block (step S18).

[0089] Specifically, after the image processing method executes step S14 to select the first block, Figure 5As shown, in step S16, the image processing method can input the first block into the classification model (step S160) and generate a complexity result corresponding to the first block by analyzing the classification model (step S162). Then, the image processing method selects a first compression mode corresponding to the first block from the compression modes according to the complexity result of the first block (step S164).

[0090] It should be noted that the classification model described in step S160 can be a neural network obtained through deep learning, for example, by inputting a plurality of sample images to the classification model to be trained and learned, so that the classification model can continuously and dynamically adjust its internal parameters through the feedback of the training complexity result of each sample image during the training and learning process, thereby making the classification model more accurate in the calculation and judgment of the input image that has never been input in the subsequent use, but not limited to this. In addition, in step S164, the complexity result of the first block can be divided into complex images, medium images and simple images according to the complexity level, and each has its own suitable compression mode, but not limited to this.

[0091] In one embodiment, after the image processing method executes step S18 to compress the first block into a first compressed block using the first compression mode, Figure 6 As shown, the image processing method can also transmit the first compressed block to the target device, wherein the first compressed block also includes compression information corresponding to the first compression mode (step S20). Then, the target device selects a first decompression mode corresponding to the first compression mode according to the compression information (step S22), and decompresses the first compressed block according to the first decompression mode to obtain a first restored block (step S24).

[0092] It should be noted that the first compression mode can be lossy compression or lossless compression, and in the first compression mode, a complete color sampling method (e.g., 4:4:4) or a reduced-size color sampling method (e.g., 4:2:2 or 4:2:0) can be used for color sampling, so that the first restored block obtained after decompression in step S24 and the first uncompressed block selected in step S14 can be the same as or different from each other.

[0093] Specifically, if the first compression mode is lossy compression and color sampling is performed using a reduced-size color sampling method (e.g., 4:2:2 or 4:2:0), the first restored block obtained after decompression in step S24 and the first uncompressed block selected in step S14 will be different from each other; if the first compression mode is lossless compression and color sampling is performed using a complete color sampling method, the first restored block obtained after decompression in step S24 and the first uncompressed block selected in step S14 will be the same as each other.

[0094] For example, if the complexity result of the first block is "simple image", it means that the bandwidth occupied by the first block during transmission is relatively small and is suitable for compression in a lossless compression mode. The image processing method can select lossless compression as the first compression mode to compress the first block, and use a complete color sampling method (such as 4:4:4) for color sampling. Therefore, the first restored block obtained after decompression in step S24 and the first block before compression selected in step S14 will be the same as each other.

[0095] On the contrary, if the complexity result of the first block is "complex image", it means that the bandwidth occupied by the first block during transmission is relatively large and is suitable for compression using a lossy compression mode with a higher degree of compression. In this case, the image processing method can select lossy compression with a higher degree of compression as the first compression mode to compress the first block, and use a color sampling method with a larger size reduction (for example, 4:2:0) for color sampling. Therefore, the first restored block obtained after decompression in step S24 and the first block before compression selected in step S14 will be different from each other.

[0096] In addition, if the complexity result of the first block is "medium image", it means that the bandwidth occupied by the first block during transmission is smaller than that of the "complex image" and is suitable for compression using a lossy compression mode with a lower compression degree. In this case, the image processing method can select lossy compression with a lower compression degree as the first compression mode to compress the first block, and use a color sampling method with a smaller size reduction (e.g., 4:2:2) for color sampling. Therefore, the first restored block obtained after decompression in step S24 and the first block before compression selected in step S14 will also be different from each other.

[0097] Similarly, if Figure 7 As shown, the image processing method can select a second block different from the first block among the blocks (step S30), analyze the second block and select a second compression mode corresponding to the second block from the compression modes according to the analysis result (step S32). Then, the image processing method compresses the second block into a second compressed block according to the second compression mode (step S34), and transmits the second compressed block to the target device, wherein the second compressed block also includes compression information corresponding to the second compression mode (step S36). Then, the target device selects a second decompression mode corresponding to the second compression mode according to the compression information (step S38), and decompresses the second compressed block according to the second decompression mode to obtain a second restored block (step S40).

[0098] From the above, it can be seen that the image processing method of the present invention can selectively compress the first block / second block of the image in a more suitable first compression mode / second compression mode (such as lossless compression or lossy compression with different compression levels) according to the complexity result of the first block / second block of the image (such as a complex image, a medium image or a simple image), and correspondingly adopt a complete color sampling method (such as 4:4:4) or a color sampling method with different reduction in size (such as 4:2:2 or 4:2:0) to perform color sampling in the first compression mode / second compression mode, thereby not only meeting the bandwidth limitation, but also avoiding the perception of image distortion by the human eye.

[0099] It should be noted that, although the above embodiment is described by taking the first block and the second block of the image as examples, in fact, the processing method of other blocks of the image can also be deduced similarly, which will not be further elaborated here.

[0100] Compared to the prior art, the image processing system, image processing device and image processing method of the present invention can automatically determine the complexity result of the image block (such as a complex image, a medium image or a simple image) according to the current image block through a classification model (such as a neural network obtained through deep learning), and then adopt the compression mode that is most suitable for the image block, which can not only meet the bandwidth limitations, but also avoid the image distortion perceived by the human eye.

Claims

1. An image processing device, characterized in that: The above-mentioned image processing device comprises: An image capture unit captures an image and divides the image into a plurality of blocks; a mode determination unit, comprising a classification model and a plurality of compression modes, the mode determination unit being coupled to the image capture unit, receiving a first block among the blocks and inputting the first block into the classification model, the classification model analyzing the first block and outputting a complexity result corresponding to the first block, and selecting a first compression mode corresponding to the first block from the compression modes according to the complexity result; and An image compression unit, coupled to the image capture unit and the mode determination unit, and the image compression unit compresses the first block into a first compressed block according to the first compression mode; The mode decision unit obtains a second block from the blocks, the classification model analyzes the second block, the mode decision unit selects a second compression mode corresponding to the second block from the compression modes according to the analysis result of the classification model, and the image compression unit compresses the second block into a second compressed block using the second compression mode, wherein the second block is different from the first block.

2. The image processing device according to claim 1, characterized in that: The classification model is obtained through an artificial intelligence training learning mechanism. The classification model takes a plurality of sample images as input and takes the training complexity results of the sample images as output.

3. The image processing device according to claim 1, characterized in that: The first compressed block further includes compression information corresponding to the first compression mode.

4. The image processing device according to claim 1, wherein: The first compression mode is different from the second compression mode and each uses a different color sampling method.

5. An image processing system, characterized in that: The above-mentioned image processing system comprises: An image source device provides images; An image processing device is coupled to the image source device, and the image processing device includes: An image capture unit is coupled to the image source device, and receives the image from the image source device and divides the image into a plurality of blocks; a mode determination unit, comprising a classification model and a plurality of compression modes, the mode determination unit being coupled to the image capture unit, receiving a first block among the blocks and inputting the first block into the classification model, the classification model analyzing the first block and outputting a complexity result corresponding to the first block, and selecting a first compression mode corresponding to the first block from the compression modes according to the complexity result; and an image compression unit coupled to the image capture unit and the mode determination unit, the image compression unit compressing the first block into a first compressed block according to the first compression mode, the first compressed block including compression information corresponding to the first compression mode; and The target device is coupled to the image compression unit of the image processing device, receives the first compressed block, selects a first decompression mode corresponding to the first compression mode according to the compression information, and decompresses the first compressed block according to the first decompression mode.

6. The image processing system according to claim 5, characterized in that: The mode decision unit obtains a second block from the blocks, the classification model analyzes the second block, the mode decision unit selects a second compression mode corresponding to the second block from the compression modes according to the analysis result of the classification model, and the image compression unit compresses the second block into a second compressed block using the second compression mode, wherein the second block is different from the first block.

7. The image processing system according to claim 6, characterized in that: The first compression mode is different from the second compression mode and each uses a different color sampling method.

8. An image processing method, characterized in that: The image processing method comprises the following steps: Capture images; Divide the above image into multiple blocks; Selecting a first block among the blocks and inputting the first block into a classification model; Analyzing the first block by the classification model and outputting a complexity result corresponding to the first block; selecting a first compression mode from a plurality of compression modes according to the complexity result, wherein the first compression mode corresponds to the first block; as well as Compressing the first block into a first compressed block according to the first compression mode; The above-mentioned image processing method further includes: Selecting a second block among the blocks, wherein the second block is different from the first block; Analyze the second block above; selecting a second compression mode corresponding to the second block from the compression modes according to the analysis result; and The second block is compressed according to the second compression mode to obtain a second compressed block.

9. The image processing method according to claim 8, characterized in that: The first compression mode is different from the second compression mode and each uses a different color sampling method.

10. The image processing method according to claim 8, characterized in that: The first compressed block further includes compression information corresponding to the first compression mode, and the image processing method further includes: Transmitting the first compressed block to a target device; The target device selects a first decompression mode according to the compression information, wherein the first decompression mode corresponds to the first compression mode; and Decompressing the first compressed block according to the first decompression mode.

11. The image processing method according to claim 8, characterized in that: The above-mentioned image processing method further includes: The classification model is obtained through an artificial intelligence training learning mechanism. The classification model takes a plurality of sample images as input and takes the training complexity results of the sample images as output.

12. The image processing method according to claim 8, characterized in that: The above-mentioned image processing method further includes: In the first compression mode, a complete color sampling method or a reduced-size color sampling method is adopted.

Citation Information

Patent Citations

  • Image processing system of gray color method

    TW490973B

  • Image capturing method and image-capturing device thereof

    US20070188624A1