Image processing method, apparatus and electronic device

CN117389402BActive Publication Date: 2026-09-11VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311324865.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2026-09-11
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

[0005]本申请实施例的目的是提供一种图像处理方法、装置及电子设备,能够解决现有为保证图像显示效果,在开启图像算法时关闭分区刷新功能,导致分区刷新的适用范围较小的问题

Benefits of technology

[0020]在本申请实施例中,在图像算法开启的情况下,可以获取显示区域的内容变化区域,并可以在内容变化区域为局部区域的情况下,进一步获取该局部区域与剩余区域的图像显示参数的差值,以根据该差值确定是否满足第一条件。在满足第一条件的情况下,可以开启分区刷新功能,利用图像算法调节该局部区域的图像显示参数,其中,第一条件包括该差值小于或等于预设值。可见,通过本申请实施例,在满足第一条件的情况下,可以实现图像算法与分区刷新功能的共存,可以扩大分区刷新的适用范围。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117389402B_ABST
    Figure CN117389402B_ABST
Patent Text Reader

Abstract

The application discloses an image processing method and device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: acquiring a content change area of a display area; in the case that the content change area is a local area and an image algorithm is turned on, acquiring a difference value between an image display parameter of the local area and an image display parameter of a remaining area, wherein the image algorithm is used for adjusting the image display parameter, and the remaining area is all areas of the display area except the local area; in the case that a first condition is met, controlling a partition refresh function to be in an open state, and adjusting the image display parameter of the local area by using the image algorithm; wherein the first condition comprises that the difference value is less than or equal to a preset value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of image processing technology, specifically relating to an image processing method, apparatus, and electronic device. Background Technology

[0002] In the use of electronic devices, when only a local area changes, partitioned refresh technology can be used to update the content of that local area in order to reduce the power consumption of the electronic device. Partitioned refresh technology can transmit, process, and update only the data in the changed area.

[0003] For image algorithms that adjust image display parameters, when a partition refresh is triggered, the algorithm only adjusts the image display parameters of the changed area, resulting in inconsistent image display parameters in different areas of the display area. Taking color temperature adjustment algorithms as an example... Figure 1 As shown, the display area includes area A, area B, and area C. Among them, area B is the area where content changes. When the partition refresh is triggered, the color temperature adjustment algorithm only adjusts the color temperature of area B, resulting in the color temperature of area B being inconsistent with the color temperature of other areas, which leads to poor image display effect.

[0004] Currently, to ensure image display quality, the partition refresh function is disabled when the image algorithm is enabled, resulting in a limited scope of applicability for partition refresh. Summary of the Invention

[0005] The purpose of this application is to provide an image processing method, apparatus, and electronic device that can solve the problem that existing methods disable the partition refresh function when enabling image algorithms in order to ensure image display effects, resulting in a limited applicability of partition refresh.

[0006] In a first aspect, embodiments of this application provide an image processing method, the method comprising:

[0007] Get the area where the content of the display area changes;

[0008] When the content change area is a local area and the image algorithm is enabled, the difference between the image display parameters of the local area and the image display parameters of the remaining area is obtained. The image algorithm is used to adjust the image display parameters, and the remaining area is all other areas of the display area except for the local area.

[0009] Under the condition that the first condition is met, the control partition refresh function is enabled, and the image display parameters of the local area are adjusted using the image algorithm.

[0010] The first condition includes: the difference is less than or equal to a preset value.

[0011] Secondly, embodiments of this application provide an image processing apparatus, the apparatus comprising:

[0012] The first acquisition module is used to acquire the content change area of ​​the display area, wherein the image algorithm is used to adjust the image display parameters;

[0013] The second acquisition module is used to acquire the difference between the image display parameters of the local area and the image display parameters of the remaining area when the content change area is a local area and the image algorithm is enabled. The image algorithm is used to adjust the image display parameters, and the remaining area is all the display areas other than the local area.

[0014] The first operation module is used to control the partition refresh function to be enabled when the first condition is met, and to adjust the image display parameters of the local area using the image algorithm.

[0015] The first condition includes: the difference is less than or equal to a preset value.

[0016] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.

[0017] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0018] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0019] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0020] In this embodiment, when the image algorithm is enabled, the content change area of ​​the display area can be obtained. If the content change area is a local area, the difference between the image display parameters of this local area and the remaining area can be further obtained to determine whether a first condition is met. If the first condition is met, the partition refresh function can be enabled, and the image display parameters of the local area can be adjusted using the image algorithm. The first condition includes the difference being less than or equal to a preset value. Therefore, through this embodiment, when the first condition is met, the coexistence of the image algorithm and the partition refresh function can be achieved, expanding the applicability of partition refresh. Attached Figure Description

[0021] Figure 1 This is a schematic diagram of color temperature adjustment provided in an embodiment of this application;

[0022] Figure 2 This is one of the flowcharts of the image processing method provided in the embodiments of this application;

[0023] Figure 3a This is a schematic diagram of the content change area provided in the embodiments of this application;

[0024] Figure 3b This is the second flowchart of the image processing method provided in the embodiments of this application;

[0025] Figure 4 This is a structural diagram of the image processing apparatus provided in the embodiments of this application;

[0026] Figure 5 This is one of the structural diagrams of the electronic device provided in the embodiments of this application;

[0027] Figure 6 This is the second structural diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0029] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0030] The image processing method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0031] Figure 2 This is one of the flowcharts of an image processing method provided in the embodiments of this application. The image processing method may include:

[0032] Step 201: Obtain the content change area of ​​the display area.

[0033] In practice, the area where the content of the display area changes can be determined by comparing the currently displayed image with the next frame image to be displayed. This area of ​​content change can be represented as a local region or a global region.

[0034] Specifically, when only a portion of the content in the display area changes—that is, when the next frame image to be displayed changes only partially relative to the currently displayed image—the area of ​​content change in the display area is called the local area. When all content in the display area changes—that is, when the next frame image to be displayed changes completely relative to the currently displayed image—the area of ​​content change in the display area is called the global area.

[0035] In some embodiments, the electronic device may determine whether the content change area of ​​the display area is a local area or a global area based on the display interface of the display area and / or the input received.

[0036] Example 1: Assume the display area is the stopwatch interface of an alarm clock application. In this interface, such as... Figure 3a As shown, only the content of the dashed area 31 changes. Therefore, it can be determined that the content change area of ​​the display area in this scenario is a local area.

[0037] Example 2: Suppose the current display area is an application interface. When the electronic device receives a touch input for the home button, it can determine that the display area will switch from the application interface to the desktop. The content displayed in the display area will change. Therefore, it can be determined that the area where the content of the display area changes in this scenario is the global area.

[0038] The partition refresh function is used to update data in a localized area. It can be activated when the content change area of ​​the display area is localized. In other words, the activation condition for the partition refresh function includes: the content change area of ​​the display area is localized. Therefore, to determine the status of the partition refresh function, the electronic device can acquire the content change area of ​​the display area at a preset frequency and determine the subsequent execution steps based on the specific manifestation of the content change area. In some embodiments, the preset frequency may be equal to the refresh frequency of the display area. It is understood that the content change areas acquired in different iterations may be the same or different.

[0039] Step 202: When the content change area is a local area and the image algorithm is enabled, obtain the difference between the image display parameters of the local area and the image display parameters of the remaining area. The image algorithm is used to adjust the image display parameters, and the remaining area is all the display areas other than the local area.

[0040] In this application embodiment, the image algorithm is used to adjust image display parameters. In some embodiments, the image algorithm may include, but is not limited to, at least one of the following: color temperature adjustment algorithm (also known as dynamic color temperature algorithm), eye protection algorithm, sharpness algorithm, and sunlight enhancement algorithm.

[0041] When the image algorithm includes a color temperature adjustment algorithm or an eye protection algorithm, the image display parameter includes the color temperature value; when the image algorithm includes a sharpness algorithm, the image display parameter includes sharpness; when the image algorithm includes a sunlight enhancement algorithm, the image display parameter includes the percentage increase in pixel grayscale. That is, for color temperature adjustment and eye protection algorithms, the image display parameter can specifically be expressed as a color temperature value, ranging from 3000K to 8000K; for sharpness algorithms, the image display parameter can specifically be expressed as sharpness, ranging from 0% to 100%; for sunlight enhancement algorithms, the image display parameter can specifically be expressed as the percentage increase in pixel grayscale, ranging from 0% to 100%.

[0042] It is worth noting that the effective area of ​​the image algorithm in this embodiment is related to the state of the partition refresh function; that is, the state of the partition refresh function affects the effective area of ​​the image algorithm. Specifically, when the partition refresh function is enabled, the area of ​​content change in the display area is a local area, and the image algorithm only adjusts the image display parameters of that local area, meaning the effective area of ​​the image algorithm is a local area within the display area. When the partition refresh function is disabled, the image algorithm adjusts the image display parameters of all areas in the display area, meaning the effective area of ​​the image algorithm is the entire display area, i.e., the global area.

[0043] In step 202, the area where the content of the display area changes is a local area, indicating that only a local area of ​​the display area changes, which meets the necessary condition for enabling the partition refresh function. However, considering that after enabling the partition refresh function, the image algorithm only operates on this local area, that is, only adjusts the image display parameters of this local area, which will cause a difference between the image display parameters of this local area and the remaining area, based on this, the embodiments of this application introduce a preset value to compare with the difference between the image display parameters of the local area and the remaining area.

[0044] The preset value represents the maximum allowable difference in image display parameters between the local area and the remaining area. It can be set according to actual needs, and this application embodiment does not limit this. In some embodiments, the preset value can be a human eye perception threshold; that is, below the preset value, the human eye cannot perceive the difference in image display parameters between the two areas.

[0045] For color temperature adjustment and eye protection algorithms, the difference can specifically be represented as a color temperature difference. In some embodiments, the preset value can be set to 10K for the color temperature adjustment algorithm and 100K for the eye protection algorithm. For the sharpness algorithm, the difference can specifically be represented as a sharpness difference, and the preset value can be set to 5%. For the sunlight enhancement algorithm, the image display parameter can specifically be represented as a pixel grayscale difference, and the preset value can be set to 10%.

[0046] In practice, the difference can be compared with a preset value, and the partition refresh function can be enabled based on the comparison result.

[0047] Step 203: If the first condition is met, the control partition refresh function is enabled, and the image display parameters of the local area are adjusted using the image algorithm.

[0048] In this embodiment of the application, the first condition may include, but is not limited to, the difference being less than or equal to a preset value.

[0049] The difference is less than or equal to a preset value, indicating that the difference between the image display parameters of the local area and the remaining area is within the allowable range. This allows the partition refresh function to be enabled, so that the display area only refreshes the content of the local area, and the image algorithm only adjusts the image display parameters of the local area. In this way, while ensuring the image display effect, the power consumption of electronic devices can be reduced, and the workload of the image algorithm can also be reduced.

[0050] It should be noted that when the partition refresh function is enabled, controlling the partition refresh function to remain enabled will result in the partition refresh function being kept running. Conversely, when the partition refresh function is disabled, controlling the partition refresh function to remain enabled will result in the partition refresh function being enabled.

[0051] The image processing method of this application embodiment, when the image algorithm is enabled, can obtain the content change area of ​​the display area. If the content change area is a local area, it can further obtain the difference in image display parameters between the local area and the remaining area to determine whether a first condition is met. If the first condition is met, a partition refresh function can be enabled, and the image display parameters of the local area can be adjusted using the image algorithm. The first condition includes the difference being less than or equal to a preset value. Therefore, through this application embodiment, when the first condition is met, the coexistence of the image algorithm and the partition refresh function can be achieved, expanding the applicability of partition refresh.

[0052] Understandably, the first condition may also include other information to further ensure the image display effect.

[0053] In some embodiments, after obtaining the content change area of ​​the display area and before the control partition refresh function is enabled, the method may further include:

[0054] Obtain the duration for which the partition refresh function is enabled;

[0055] The first condition further includes: the duration is less than or equal to a preset duration.

[0056] In this embodiment, the duration during which the partition refresh function is enabled is further considered, i.e., the runtime of the partition refresh function, and a preset duration is introduced for comparison with the duration.

[0057] The preset duration is the maximum duration for which the partition refresh function is allowed to run. The specific duration can be set according to actual needs. This application embodiment does not limit this, such as it can be set to 5 minutes.

[0058] In this embodiment, the conditions for running the partition refresh function further include: its running time is less than or equal to a preset time.

[0059] If the partition refresh function runs for longer than the preset time, the partition refresh function can be turned off so that the image algorithm applies to the entire display area, keeping the image display parameters consistent across the entire display area and thus improving the image display effect.

[0060] As can be seen, by using the above method, the partition refresh function is only activated when the difference is less than or equal to the preset value, and the running time of the partition refresh function is less than or equal to the preset duration; or, the partition refresh function is kept active. This further ensures the image display effect of the display area.

[0061] In some embodiments, after obtaining the difference between the image display parameters of the local region and the image display parameters of the remaining region, the method further includes:

[0062] If the first condition is not met, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

[0063] In this embodiment, failing to meet the first condition may include at least one of the following:

[0064] The above difference is greater than the preset value;

[0065] The runtime of the partition refresh function is longer than the preset duration.

[0066] In practice, if the difference is greater than the preset value, it means that the difference between the image display parameters of the local area and the remaining area is not within the allowable range. The partition refresh function can be turned off to refresh the display area to show the entire display area, and the image algorithm can adjust the image display parameters of the entire display area to keep the image display parameters of the entire display area consistent, thereby ensuring the image display effect of the display area.

[0067] If the runtime of the partition refresh function exceeds the preset duration, it indicates that the runtime of the partition refresh function is too long. To ensure the image display effect of the display area, the partition refresh function can be turned off so that the display area refreshes and displays the entire area, and the image algorithm adjusts the image display parameters of the entire display area to keep the image display parameters of the entire display area consistent.

[0068] It is worth noting that when the partition refresh function is enabled, the control for the partition refresh function is in a disabled state, specifically: the partition refresh function is turned off. When the partition refresh function is not enabled, the control for the partition refresh function is in a disabled state, specifically: the partition refresh function remains disabled even when enabled.

[0069] By using the above method, image algorithms and partition refresh can coexist if the first condition is met; if the first condition is not met, partition refresh can be turned off. In this way, the coexistence time of image algorithms and partition refresh can be extended to the maximum extent while ensuring the image display effect, thus expanding the applicable scope of partition refresh.

[0070] In some embodiments, after obtaining the content change area of ​​the display area, the method may further include:

[0071] When the content change area is a global area and the image algorithm is enabled, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

[0072] In this embodiment, the content change area of ​​the display area is the global area, that is, all the content of the display area changes. In order to improve the display accuracy, it is necessary to refresh all the data of the display area. Therefore, the partition refresh function can be controlled to be turned off. In this way, the image algorithm can adjust the image display parameters of the entire display area, thereby improving the image display effect.

[0073] It should be noted that the various optional embodiments described in this application can be combined with each other or implemented individually without conflict, and this application does not limit the implementation of these embodiments.

[0074] To facilitate understanding of the image processing method provided in the above embodiments, the following describes the image processing method using a specific scenario embodiment.

[0075] This example uses a dynamic color temperature algorithm for illustration.

[0076] When a user turns on the dynamic color temperature function while using the phone, the color temperature of the screen (i.e., the display area) will be dynamically adjusted according to changes in the environment. The color temperature can be adjusted between cool and warm colors. Cool colors (3000K) look bluish, while warm colors (8000K) look yellowish.

[0077] When a phone changes color from cool to warm, if the zone refresh function is triggered, the traditional method, which only processes the changed area B, will cause the color temperature of the changed local area B to be inconsistent with other areas. Figure 1Therefore, traditional solutions cannot achieve the coexistence of dynamic color temperature and zone refresh.

[0078] In this scenario embodiment, to achieve coexistence of the two, a threshold X (e.g., 10K) of color temperature difference that the human eye can perceive can be collected in a laboratory.

[0079] In practice, when the system determines that the color temperature difference between a local area of ​​change and other areas exceeds the threshold X, it triggers a full-screen update for one frame (the partition refresh function is temporarily disabled in this frame) to prevent the display effect of the local area image from being inconsistent with that of other areas, and to ensure that the color temperature function is normal.

[0080] When the color temperature difference between the local change area and other areas does not exceed the threshold X, only the local area image is updated. At this time, partition refresh and image algorithm coexist.

[0081] Furthermore, if it is found that the partition refresh is continuously triggered within a certain period of time (e.g., 5 minutes), even if the color temperature difference between the local area and other areas does not exceed the threshold X, the system can also actively trigger a full-screen update to keep the full-screen color temperature effect consistent.

[0082] For easier understanding, please refer to Figure 3b ,like Figure 3b As shown, the image processing algorithm includes the following steps:

[0083] Step 301: Image algorithm activated.

[0084] Step 302: Determine whether the area where the content of the display area changes is a local area.

[0085] If yes, proceed to step 303; if no, proceed to step 306.

[0086] Step 303: Determine whether the duration of the partition refresh function is less than or equal to 5 minutes.

[0087] If yes, proceed to step 304; otherwise, proceed to step 306.

[0088] Step 304: Determine whether the color temperature difference between the local area and the remaining area is less than or equal to the threshold X.

[0089] If yes, proceed to step 305; otherwise, proceed to step 306.

[0090] Step 305: Update the color temperature value of the local area using an image algorithm.

[0091] Step 306: Update the color temperature value of the entire display area using an image algorithm.

[0092] This scenario implementation allows image algorithms (such as dynamic color temperature, eye protection, sharpness, sunlight enhancement, etc.) to coexist with partition refresh. Partition refresh is only temporarily disabled for one frame under specific conditions. Compared with the traditional solution of disabling partition refresh, this expands the scope of partition refresh usage and achieves the goal of increasing the scope of partition refresh usage.

[0093] The image processing method provided in this application can be executed by an image processing device. This application uses an image processing device executing the image processing method as an example to illustrate the image processing device provided in this application.

[0094] like Figure 4 As shown, the image processing apparatus may include:

[0095] The first acquisition module 401 is used to acquire the content change area of ​​the display area;

[0096] The second acquisition module 402 is used to acquire the difference between the image display parameters of the local area and the image display parameters of the remaining area when the content change area is a local area and the image algorithm is enabled. The image algorithm is used to adjust the image display parameters, and the remaining area is all the display areas other than the local area.

[0097] The first operation module 403 is used to control the partition refresh function to be enabled when the first condition is met, and to adjust the image display parameters of the local area using the image algorithm.

[0098] The first condition includes: the difference is less than or equal to a preset value.

[0099] In some embodiments, the apparatus further includes:

[0100] The third acquisition module is used to acquire the duration for which the partition refresh function is enabled;

[0101] The first condition further includes: the duration is less than or equal to a preset duration.

[0102] In some embodiments, the apparatus further includes:

[0103] The second operation module is used to control the partition refresh function to be turned off when the first condition is not met, and to adjust the image display parameters of the display area using the image algorithm.

[0104] In some embodiments, the apparatus further includes:

[0105] The third operation module is used to control the partition refresh function to be turned off when the content change area is a global area and the image algorithm is enabled, and to adjust the image display parameters of the display area using the image algorithm.

[0106] In some embodiments, the image algorithm includes at least one of the following: color temperature adjustment algorithm, eye protection algorithm, sharpness algorithm, and sunlight enhancement algorithm.

[0107] When the image algorithm includes the color temperature adjustment algorithm or the eye protection algorithm, the image display parameters include the color temperature value;

[0108] When the image algorithm includes the sharpness algorithm, the image display parameters include sharpness;

[0109] When the image algorithm includes the sunlight enhancement algorithm, the image display parameters include the percentage increase in pixel grayscale.

[0110] The image processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0111] The image processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0112] The image processing apparatus provided in this application embodiment can implement the various processes implemented in the method embodiment, and will not be described again here to avoid repetition.

[0113] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described image processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0114] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0115] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0116] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.

[0117] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0118] The processor 610 is used for:

[0119] Get the area where the content of the display area changes;

[0120] When the content change area is a local area and the image algorithm is enabled, the difference between the image display parameters of the local area and the image display parameters of the remaining area is obtained. The image algorithm is used to adjust the image display parameters, and the remaining area is all other areas of the display area except for the local area.

[0121] Under the condition that the first condition is met, the control partition refresh function is enabled, and the image display parameters of the local area are adjusted using the image algorithm.

[0122] The first condition includes: the difference is less than or equal to a preset value.

[0123] In some embodiments, the processor 610 is further configured to:

[0124] Obtain the duration for which the partition refresh function is enabled;

[0125] The first condition further includes: the duration is less than or equal to a preset duration.

[0126] In some embodiments, the processor 610 is further configured to:

[0127] If the first condition is not met, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

[0128] In some embodiments, the processor 610 is further configured to:

[0129] When the content change area is a global area and the image algorithm is enabled, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

[0130] In some embodiments, the image algorithm includes at least one of the following: color temperature adjustment algorithm, eye protection algorithm, sharpness algorithm, and sunlight enhancement algorithm.

[0131] When the image algorithm includes the color temperature adjustment algorithm or the eye protection algorithm, the image display parameters include the color temperature value;

[0132] When the image algorithm includes the sharpness algorithm, the image display parameters include sharpness;

[0133] When the image algorithm includes the sunlight enhancement algorithm, the image display parameters include the percentage increase in pixel grayscale.

[0134] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0135] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0136] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.

[0137] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described image processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0138] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0139] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described image processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0140] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0141] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the image processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0142] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0144] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An image processing method, characterized in that, include: Get the area where the content of the display area changes; When the content change area is a local area and the image algorithm is enabled, the difference between the image display parameters of the local area and the image display parameters of the remaining area is obtained. The image algorithm is used to adjust the image display parameters, and the remaining area is all other areas of the display area except for the local area. Under the condition that the first condition is met, the control partition refresh function is enabled, and the image display parameters of the local area are adjusted using the image algorithm. The first condition includes: the difference is less than or equal to a preset value.

2. The method according to claim 1, characterized in that, After obtaining the content change area of ​​the display area and before the control partition refresh function is enabled, the method further includes: Obtain the duration for which the partition refresh function is enabled; The first condition further includes: the duration is less than or equal to a preset duration.

3. The method according to claim 1 or 2, characterized in that, After obtaining the difference between the image display parameters of the local region and the image display parameters of the remaining region, the method further includes: If the first condition is not met, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

4. The method of claim 1, wherein, After obtaining the content change area of ​​the display area, the method further includes: When the content change area is a global area and the image algorithm is enabled, the partition refresh function is turned off, and the image display parameters of the display area are adjusted using the image algorithm.

5. The method according to claim 1, characterized in that, The image algorithm includes at least one of the following: color temperature adjustment algorithm, eye protection algorithm, sharpness algorithm, and sunlight enhancement algorithm; When the image algorithm includes the color temperature adjustment algorithm or the eye protection algorithm, the image display parameters include the color temperature value; When the image algorithm includes the sharpness algorithm, the image display parameters include sharpness; When the image algorithm includes the sunlight enhancement algorithm, the image display parameters include the percentage increase in pixel grayscale.

6. An image processing apparatus, characterized in that, include: The first acquisition module is used to acquire the content change area of ​​the display area; The second acquisition module is used to acquire the difference between the image display parameters of the local area and the image display parameters of the remaining area when the content change area is a local area and the image algorithm is enabled. The image algorithm is used to adjust the image display parameters, and the remaining area is all the display areas other than the local area. The first operation module is used to control the partition refresh function to be enabled when the first condition is met, and to adjust the image display parameters of the local area using the image algorithm. The first condition includes: the difference is less than or equal to a preset value.

7. The apparatus according to claim 6, characterized in that, The device further includes: The third acquisition module is used to acquire the duration for which the partition refresh function is enabled; The first condition further includes: the duration is less than or equal to a preset duration.

8. The apparatus according to claim 6 or 7, characterized in that, The device further includes: The second operation module is used to control the partition refresh function to be turned off when the first condition is not met, and to adjust the image display parameters of the display area using the image algorithm.

9. The apparatus according to claim 6, characterized in that, The device further includes: The third operation module is used to control the partition refresh function to be turned off when the content change area is a global area and the image algorithm is enabled, and to adjust the image display parameters of the display area using the image algorithm.

10. The apparatus of claim 6, wherein, The image algorithm includes at least one of the following: color temperature adjustment algorithm, eye protection algorithm, sharpness algorithm, and sunlight enhancement algorithm; When the image algorithm includes the color temperature adjustment algorithm or the eye protection algorithm, the image display parameters include the color temperature value; When the image algorithm includes the sharpness algorithm, the image display parameters include sharpness; When the image algorithm includes the sunlight enhancement algorithm, the image display parameters include the percentage increase in pixel grayscale.

11. An electronic device, comprising: It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the image processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Adaptive partial screen update with dynamic backlight control capability

    CN104750444A

  • Image frame update method and related apparatus

    CN107018286A