Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be arbitrarily combined with each other.
Fig. 1 is a schematic diagram of an application of an image processing method. As shown in fig. 1, the image processing system includes: a System On Chip (SOC), a micro control unit (Microcontroller Unit, MCU) and a timing controller (timing controller, TCON); wherein:
the SOC is used for processing the image to obtain backlight control data and image compensation data of the image;
the MCU is connected with the SOC and is used for performing on-off control on the lamp group of the backlight area by utilizing the backlight control data of the image;
and the TCON is connected with the SOC and is used for controlling the display operation of the Panel (Panel) by using the image compensation data of the image.
The SOC is internally provided with a backlight control strategy, the SOC backlight control strategy supports 4*4 partition backlight control, an image of one frame is input to the SOC, initial backlight information (such as bright and dark data) is obtained through image content analysis, backlight control data (such as switch data of a lamp group) of a backlight area lamp group can be obtained based on the initial backlight information, the backlight control data are output to an external MCU, and then LED drive (Driver) is used for controlling the on-off and bright and dark degree of backlight, meanwhile, the two groups of data are combined with backlight light shape data to correspondingly compensate the backlight information, then the image information is compensated and output to TCON, and display is carried out at a Panel (Panel) end synchronously, so that the synchronization of Panel and backlight information is achieved, and the contrast of a picture is improved.
Because the built-in backlight control strategy of the SOC can only support 4*4 partition, the corresponding storage space and the computing capacity are limited, the backlight control of a higher partition cannot be realized, if the scheme is adopted continuously, the SOC chip with higher specification needs to be replaced, the flow of leading-in verification is complicated, and the cost of the chip is increased.
To solve the above problems, the present application provides the following solutions:
fig. 2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application. As shown in fig. 2, the device comprises a segmentation module 21, a determination module 22, a processing module 23 and a control module 24; wherein:
the segmentation module 21 is configured to divide the original image into at least two partitions when the number of backlight partitions of the backlight module is greater than the number of partitions that can be processed by the backlight control chip, where the number of partitions of each partition is less than or equal to the number of partitions that can be processed by the backlight control chip.
Specifically, by dividing the original image into at least two partitions, and the total number of blocks of each partition being smaller than or equal to the total number of blocks that the backlight control chip can process, the backlight control chip can process all the number of blocks included in one partition at a time.
In an exemplary embodiment, the partition is determined according to a maximum value of a total number of blocks processed by the backlight control chip to achieve maximum utilization of the backlight control chip processing capacity.
For example, the total number of backlight partitions of the backlight module is 4*8, and if the number of partitions that can be processed by the backlight control chip is 4*4, the original image can be divided into 2 partitions, where the total number of blocks in each partition is 4*4.
Since the total number of blocks that can be handled by each backlight control chip is 4*4 and the total number of blocks in each partition is 4*4, the backlight control chip can handle the total number of blocks included in one partition at a time.
And a determining module 22, connected to the switching module 21, for determining backlight control data of each partition respectively.
In one exemplary embodiment, each partition may be processed one by one, where the image of each partition is processed as follows:
the initial backlight information (such as brightness data) of the image data in the subarea is extracted, and based on the initial backlight information of the subarea, the backlight control data (such as switch data of the lamp group) of the subarea in the backlight area can be obtained.
The processing module 23 is connected with the determining module 22 and is used for obtaining the backlight control data corresponding to the original image in the backlight module according to the backlight control data of each partition;
the corresponding relation between each partition and the respective backlight control data can be established, and the sum of the backlight control data of all the partitions is taken as the backlight control data corresponding to the original image in the backlight area.
For example, the total number of backlight partitions of the backlight module is 4*8, if the total number of blocks that can be processed by the backlight control chip is 4*4, the original image divides the original image into 2 partitions, namely partition 1 and partition 2, wherein the backlight control Data of partition 1 is led_data1, and the backlight control Data of partition 2 is led_data2. Since led_data1 and led_data2 each include 4*4 blocks of backlight control Data, the sum of led_data1 and led_data2 includes 4*8 blocks of backlight control Data as the backlight control Data corresponding to the original image at the backlight module.
A control module 24, connected to the processing module 23, for controlling display of the original image by using backlight control data of the original image;
and controlling the backlight module to perform backlight display by using the backlight control data of the original image while displaying the image by using the display panel.
According to the device provided by the embodiment of the application, when the number of backlight partitions of the backlight module is larger than the number of partitions which can be processed by the backlight control chip, an original image is divided into at least two partitions, wherein the number of partitions of each partition is smaller than or equal to the number of partitions which can be processed by the backlight control chip, so that the backlight control chip can process all blocks included in one partition at a time, backlight control data of each partition are respectively determined, the backlight control data of the original image corresponding to the backlight module is obtained according to the backlight control data of each partition, the display of the original image is controlled by utilizing the backlight control data of the original image, backlight control of higher partitions is realized, and the hardware cost of the backlight control chip is reduced.
The following describes the method provided in the embodiment of the present application:
fig. 3 is a schematic diagram of the control module 24 in the apparatus shown in fig. 2. As shown in fig. 3, the control module 24 includes an acquisition unit 241 and a transmission unit 242; wherein:
the acquiring unit 241 is configured to acquire image compensation data of the original image;
the sending unit 242 is configured to send a synchronization signal to both the backlight module and the display panel, so as to control the backlight module to perform backlight display by using the backlight control data of the original image; and controlling the display panel to display the image by using the image compensation data of the original image.
And obtaining the backlight control data of the original image, and simultaneously obtaining the image compensation data of the original image, and sending synchronous signals to the backlight module and the display panel, so that the backlight module performs backlight display by using the backlight control data of the original image, and the display panel performs image display by using the image compensation data of the original image.
Fig. 4 is a schematic diagram of the configuration of the acquisition unit 241 in the acquisition module 24 shown in fig. 3. As shown in fig. 4, the control module 24 includes an acquisition unit 241, the acquisition unit 241 including an acquisition subunit 241a and a generation subunit 241b, wherein:
an acquisition subunit 241a for acquiring image compensation data of each partition using the backlight control data of each partition;
and the generating subunit 241b is configured to obtain, according to the image compensation data of each partition, image compensation data corresponding to the original image in the backlight module.
Since the backlight control chip can process only the entire number of blocks included in one partition at a time, the image compensation data of a single partition can be determined from the backlight control data of the single partition.
After the backlight control data of one partition is determined, the image compensation data of the partition can be acquired based on the backlight control data through another process of the backlight control chip so as to improve the calculation efficiency of the data. Or after the backlight control data of each partition is completed, respectively acquiring the image compensation data of each partition.
In an exemplary embodiment, the obtaining subunit 241 is configured to perform backlight compensation on the backlight shape data corresponding to the partition in the backlight module according to the backlight control data of each partition, and perform image compensation on the image data in the partition according to the backlight compensation result of the partition, so as to obtain the image compensation data of the partition.
Wherein, the image compensation data of each partition can be obtained by the following way, comprising:
compensating the backlight of the partition by using the initial backlight information and the backlight control data of the partition; and carrying out image compensation on the image of the subarea based on the backlight compensation result in the subarea to obtain the backlight compensation data of the subarea.
In one exemplary embodiment, the backlight control data and the image compensation data of each partition are respectively determined by:
selecting one partition as a target partition, respectively determining backlight control data and image compensation data of the target partition, selecting the other partition as the target partition, and the like until the determination operation of the backlight control data and the image compensation data of all the partitions is completed.
The total block number of each partition is smaller than or equal to the total block number which can be processed by the backlight control chip, so that the backlight control chip can process all the block numbers included in one partition at a time, and the backlight control data and the image compensation data of all the partitions can be obtained by processing each partition one by one, thereby realizing the purpose of processing high partitions by the backlight control chip.
Fig. 5 is another schematic view of the apparatus of fig. 2. As shown in fig. 5, the apparatus further includes:
and the storage management module 25 is connected with the determination module 22 and is used for storing other partitions except the first selected target partition in all partitions into the storage space corresponding to the original image.
Since the capacity of the memory unit in the backlight control chip is designed according to the size of the supportable original image, the size of the partitions other than the target partition is smaller than that of the original image, so that the capacity of the memory unit does not need to be increased, and the cost is not increased.
Fig. 6 is a flowchart of an image processing method according to an embodiment of the present application. As shown in fig. 6, the method includes:
step 601, dividing an original image into at least two partitions when the number of backlight partitions of the backlight module is larger than the number of partitions which can be processed by the backlight control chip, wherein the number of partitions of each partition is smaller than or equal to the number of partitions which can be processed by the backlight control chip;
step 602, respectively determining backlight control data of each partition;
step 603, obtaining backlight control data corresponding to the original image in the backlight module according to the backlight control data of each partition;
step 604, controlling display of the original image by using the backlight control data of the original image.
According to the method provided by the embodiment of the application, when the number of backlight partitions of the backlight module is larger than the number of partitions which can be processed by the backlight control chip, an original image is divided into at least two partitions, wherein the number of partitions of each partition is smaller than or equal to the number of partitions which can be processed by the backlight control chip, so that the backlight control chip can process all blocks included in one partition at a time, backlight control data of each partition are respectively determined, the backlight control data of the original image corresponding to the backlight module is obtained according to the backlight control data of each partition, the display of the original image is controlled by utilizing the backlight control data of the original image, backlight control of higher partitions is realized, and the hardware cost of the backlight control chip is reduced.
Fig. 7 is a block diagram of an image processing system according to an embodiment of the present application. As shown in fig. 7, the system includes the image processing device, the backlight module and the display panel; the backlight module and the display panel are connected with the image processing device.
Optionally, the system further comprises:
the first storage unit is respectively connected with the image processing device and the backlight module and is used for storing backlight control data of each partition;
and the second storage unit is respectively connected with the image processing device and the display panel and is used for storing the image compensation data of each partition.
The backlight control data and the image compensation data of the original image are respectively stored in different storage units, so that the backlight module and the display panel can be conveniently read.
Optionally, the image processing device is further configured to send a synchronization signal to the backlight module and the display panel;
the backlight module is further used for reading out the backlight control data of each partition stored in the first storage unit for backlight display after receiving the synchronization signal;
and the display panel is also used for reading out the image compensation data of each partition stored by the second storage unit for image display after receiving the synchronous signal.
The image processing device can trigger the backlight module and the display panel to work simultaneously by sending the synchronous signal, so that the simultaneous output of backlight display and image display is realized, and the display output of the display screen is realized.
Fig. 8 is an application schematic diagram of an image processing method according to an embodiment of the present application. As shown in fig. 8, the above image processing apparatus may be an SOC, and the backlight control policy built in the SOC can only support 4*4 partition. When the image 1 is input to the SOC, the SOC divides the image 1 into the image 1A and the image 1B on average, and the image 1B is stored in the memory unit inside the backlight control chip, and since the capacity of the memory unit of the backlight control chip is designed according to the supportable size of the image 1, the size of the image 1B is only half of the size of the image 1, the capacity of the memory unit does not need to be increased, and the cost is not increased. Preferentially transmitting the image 1A to a subsequent module to obtain relevant image 1A backlight control data, storing the relevant image 1A backlight control data into an external Flash 1, combining backlight light shape data to obtain image compensation data of the image 1A, and storing the image compensation data of the image 1A into an external Flash 2; and then extracting the image 1B from the storage unit to obtain backlight control data of the image 1B, storing the backlight control data into Flash 1, combining the backlight light shape data to obtain image information compensation of the image 1B, and storing the image compensation data of the image 1B into external Flash 2. And finally, the SOC backlight control chip gives a synchronous Sync signal to the MCU and the TCON, the MCU and the TCON receive the signal and synchronously extract information in Flash 1 and Flash 2, and the information is respectively sent to the backlight and the panel, so that the display information of the backlight and the display information of the panel are synchronous, and meanwhile, a partition scheme supporting 4 x 2 can be realized.
Similarly, when the image 2 is input to the SOC, the SOC divides the image 2 into the image 2A, the image 2B and the image 2C on average, and the image 2B and the image 2C are stored in the memory unit inside the backlight control chip, and the memory unit capacity of the backlight control chip is designed according to the supportable size of the image 2, and the sizes of the image 2B and the image 2C are only 2/3 of the image 2, so that the memory unit capacity does not need to be increased, and the cost is not increased. Firstly, transmitting the image 2A to a subsequent module to obtain relevant image 2A backlight control data, storing the relevant image 2A backlight control data into an external Flash 1, combining backlight light shape data to obtain image compensation data of the image 2A, and storing the image compensation data of the image 2A into the external Flash 2; then extracting the image 2B from the storage unit to obtain backlight control data of the image 2B, storing the backlight control data into Flash 1, combining the backlight light shape data to obtain image information compensation of the image 2B, and storing the image compensation data of the image 2B into external Flash 2; and extracting the image 2C from the storage unit to obtain backlight control data of the image 2C, storing the backlight control data into the Flash 1, combining the backlight light shape data to obtain image information compensation of the image 2C, and storing the image compensation data of the image 2C into the external Flash 2. And finally, the SOC backlight control chip gives a synchronous Sync signal to the MCU and the TCON, the MCU and the TCON receive the signal and synchronously extract the information in the Flash 1 and the Flash 2, and the information is respectively sent to the backlight and the panel, so that the display information of the backlight and the display information of the panel are synchronous, and meanwhile, the partition scheme supporting 4 x 3 can be realized.
Based on the above processing procedure of the image 2, for an application scene of dividing the image into more than 3 partitions, a person skilled in the art can infer that each partition is processed one by one until all the partitions are processed, and then all the backlight control data and the image compensation data of the image can be obtained.
As can be seen from the above embodiments, in the case of using the SOC backlight control chip supporting only the X partition, the backlight control of the 2X partition can be realized, and the method has a wide application range in a display range where the display refresh rate is not required to be high and the image quality is not required to be strict.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.