Image processing method and device, electronic equipment and readable storage medium
Patent Information
- Application Number
- CN202310936951.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-07-27
AI Technical Summary
[0003]然而,OLED显示面板在长时间点亮一个区域的像素单元时,会使该区域的像素单元的寿命损耗远高于其他区域
[0057]在本公开实施例中,通过确定待显示的第一图像帧序列内的目标像素区域,也就是确定出显示设备显示所述第一图像帧序列时的存在烧屏风险的目标显示区域对应的目标像素区域,以及对所述第一图像帧序列内的每一个图像帧的目标像素区域内的像素点进行补偿处理,可以得到任意两个时序相邻的图像帧的同一所述目标像素点的像素值不同的第二图像帧序列,从而使得显示设备在显示第二图像帧序列时,同一个像素单元能够依时序不同显示不同的像素值,实现将长时间处于点亮状态的像素单元调整为不断变化状态的像素单元,达到防烧屏优化的效果。
Smart Images

Figure CN119380658B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing, and more particularly to an image processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] In recent years, organic light-emitting diodes (OLEDs) have gained an increasing share in the display panel market due to their characteristics such as active light emission, high brightness, and high resolution.
[0003] However, when an OLED display panel keeps a certain area of its pixels lit for an extended period, the lifespan of those pixels in that area decreases significantly compared to other areas. As the lighting time increases, the transistor characteristics of the pixels in that area gradually drift, causing deviations in the color and brightness of the OLED display panel, resulting in screen burn-in. Summary of the Invention
[0004] To overcome the problems existing in the related technologies, this disclosure provides an image processing method, apparatus, electronic device, and readable storage medium.
[0005] A first aspect of this disclosure provides an image processing method, comprising:
[0006] Determine the target pixel region within the first image frame sequence to be displayed; wherein, the first image frame sequence includes multiple temporally consecutive first image frames, and the target pixel region includes: multiple target pixels corresponding to a target display area within the display device displaying the first image frame sequence that has a risk of screen burn-in;
[0007] Compensation processing is performed on the target pixels within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel in any two temporally adjacent second image frames within the second image frame sequence are different.
[0008] Optionally, the step of compensating the target pixels within the target pixel region of each of the first image frames to obtain the second image frame sequence includes:
[0009] A reference pixel region is determined for each target pixel in a plurality of first image frames; wherein, the reference pixel regions for the same target pixel in any two temporally adjacent first image frames are different;
[0010] Based on the reference pixel region of each target pixel in multiple first image frames, the target pixel is blurred to obtain the second image frame sequence.
[0011] Optionally, determining the reference pixel region corresponding to each of the target pixels in the plurality of first image frames includes:
[0012] Based on a first preset parameter, multiple image groups are determined from the first image frame sequence; wherein each image group includes: multiple temporally consecutive first image frames; and the number of first image frames contained in the image group is determined by the first preset parameter.
[0013] Based on the second preset parameters, a reference pixel region is determined for the target pixel point in each of the first image frames within an image group.
[0014] Optionally, determining the reference pixel region of the target pixel in each of the first image frames within an image group based on the second preset parameter includes:
[0015] Determine the display order of each of the first image frames within the image group;
[0016] Based on the display order of each of the first image frames and the second preset parameters, the reference distance corresponding to the target pixel in each of the first image frames is determined;
[0017] Based on the reference distance corresponding to the target pixel in each first image frame, a plurality of reference pixels are obtained from the first image frame; wherein the distance between the plurality of reference pixels and the target pixel is less than or equal to the reference distance;
[0018] Based on the target pixel point corresponding to the multiple reference pixels in each of the first image frames within an image group, a reference pixel region corresponding to the target pixel point is determined.
[0019] Optionally, obtaining multiple reference pixels from the first image frame based on the reference distance corresponding to the target pixel within each first image frame includes:
[0020] Based on the target pixel in each first image frame, a plurality of reference pixels are obtained in a first direction; the distance between the plurality of reference pixels and the target pixel in the first direction is less than or equal to the reference distance;
[0021] Based on the target pixel, a plurality of reference pixels are obtained in a second direction; the distance between the plurality of reference pixels and the target pixel in the second direction is less than or equal to the reference distance; the second direction is perpendicular to the first direction.
[0022] Optionally, the step of blurring the target pixel based on the reference pixel region of each of the target pixels in the plurality of first image frames to obtain the second image frame sequence includes:
[0023] Based on the target pixel and the first pixel value of the plurality of reference pixels corresponding to the target pixel in the i-th first image frame in the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame is determined; wherein, i is greater than or equal to 1 and less than or equal to a first preset parameter;
[0024] Based on the second pixel value corresponding to the target pixel in the i-th first image frame within the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame within the second image group is determined; the second image group is an image group other than the first image group among multiple image groups in the first image frame sequence.
[0025] The second image frame sequence is determined based on the second pixel value corresponding to the target pixel point of multiple first image frames within the first image frame sequence.
[0026] Optionally, determining the second pixel value corresponding to the target pixel in the i-th first image frame based on the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel includes:
[0027] The second pixel value corresponding to the target pixel in the i-th first image frame is determined based on the average pixel value between the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel.
[0028] A second aspect of this disclosure provides an image processing apparatus, comprising:
[0029] A determining module is used to determine a target pixel region within a first image frame sequence to be displayed; wherein, the first image frame sequence includes multiple temporally consecutive first image frames, and the target pixel region includes: multiple target pixels corresponding to a target display area within the display device displaying the first image frame sequence that has a risk of screen burn-in;
[0030] The processing module is used to perform compensation processing on the target pixel points within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel point in any two temporally adjacent second image frames within the second image frame sequence are different.
[0031] Optionally, the processing module is further configured to:
[0032] A reference pixel region is determined for each target pixel in a plurality of first image frames; wherein, the reference pixel regions for the same target pixel in any two temporally adjacent first image frames are different;
[0033] Based on the reference pixel region of each target pixel in multiple first image frames, the target pixel is blurred to obtain the second image frame sequence.
[0034] Optionally, the processing module is further configured to:
[0035] Based on a first preset parameter, multiple image groups are determined from the first image frame sequence; wherein each image group includes: multiple temporally consecutive first image frames; and the number of first image frames contained in the image group is determined by the first preset parameter.
[0036] Based on the second preset parameters, a reference pixel region is determined for the target pixel point in each of the first image frames within an image group.
[0037] Optionally, the processing module is further configured to:
[0038] Determine the display order of each of the first image frames within the image group;
[0039] Based on the display order of each of the first image frames and the second preset parameters, the reference distance corresponding to the target pixel in each of the first image frames is determined;
[0040] Based on the reference distance corresponding to the target pixel in each first image frame, a plurality of reference pixels are obtained from the first image frame; wherein the distance between the plurality of reference pixels and the target pixel is less than or equal to the reference distance;
[0041] Based on the target pixel point corresponding to the multiple reference pixels in each of the first image frames within an image group, a reference pixel region corresponding to the target pixel point is determined.
[0042] Optionally, the processing module is further configured to:
[0043] Based on the target pixel in each first image frame, a plurality of reference pixels are obtained in a first direction; the distance between the plurality of reference pixels and the target pixel in the first direction is less than or equal to the reference distance;
[0044] Based on the target pixel, a plurality of reference pixels are obtained in a second direction; the distance between the plurality of reference pixels and the target pixel in the second direction is less than or equal to the reference distance; the second direction is perpendicular to the first direction.
[0045] Optionally, the processing module is further configured to:
[0046] Based on the target pixel and the first pixel value of the plurality of reference pixels corresponding to the target pixel in the i-th first image frame in the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame is determined; wherein, i is greater than or equal to 1 and less than or equal to a first preset parameter;
[0047] Based on the second pixel value corresponding to the target pixel in the i-th first image frame within the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame within the second image group is determined; the second image group is an image group other than the first image group among multiple image groups in the first image frame sequence.
[0048] The second image frame sequence is determined based on the second pixel value corresponding to the target pixel point of multiple first image frames within the first image frame sequence.
[0049] Optionally, the processing module is further configured to:
[0050] The second pixel value corresponding to the target pixel in the i-th first image frame is determined based on the average pixel value between the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel.
[0051] A third aspect of this disclosure provides an electronic device comprising:
[0052] Memory used to store processor-executable instructions;
[0053] The processor is connected to the memory;
[0054] The processor is configured to perform the image processing method as described in any embodiment of the first aspect of this disclosure.
[0055] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an image processing method as described in any embodiment of the first aspect of this disclosure.
[0056] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0057] In this embodiment of the disclosure, by determining the target pixel region within the first image frame sequence to be displayed, that is, by determining the target pixel region corresponding to the target display area with the risk of screen burn-in when the display device displays the first image frame sequence, and by performing compensation processing on the pixels within the target pixel region of each image frame in the first image frame sequence, a second image frame sequence in which the pixel values of the same target pixel in any two temporally adjacent image frames are different can be obtained. This allows the same pixel unit to display different pixel values according to different time sequences when the display device displays the second image frame sequence, thereby adjusting the pixel unit that has been in a lit state for a long time to a pixel unit in a constantly changing state, achieving the effect of screen burn-in prevention optimization.
[0058] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0059] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0060] Figure 1 This is a schematic diagram of a display interface in related technologies.
[0061] Figure 2 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 1 .
[0062] Figure 3 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 2 .
[0063] Figure 4 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 3 .
[0064] Figure 5 This is a schematic diagram of the structure of an image processing apparatus according to an exemplary embodiment of the present disclosure. Figure 1 .
[0065] Figure 6 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 4 .
[0066] Figure 7 This is a schematic diagram of the structure of an image processing apparatus according to an exemplary embodiment of the present disclosure. Figure 2 .
[0067] Figure 8This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0068] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.
[0069] Figure 1 This is a schematic diagram of a display interface in related technologies, such as... Figure 1 As shown, when the electronic device is running application A, the OLED display panel in the electronic device will display interface 10 for a long time. The image within the first sub-interface 11 of display interface 10 will continuously change, and the lifespan of the corresponding pixel units will not differ significantly. However, the image within the second sub-interface 12 of display interface 10 (…) Figure 1 The pattern shown by the solid black line (which appears as a high-brightness pattern in actual applications) will be lit for a long time, causing the lifespan of the pixel units in the second sub-interface 12 to be much higher than that of the pixel units in the first sub-interface 11, resulting in screen burn-in.
[0070] The solution to the above-mentioned screen burn-in phenomenon in related technologies is to reduce the brightness of the always-on area (second sub-interface 12). However, this solution will significantly reduce the contrast between pixel units, affecting the user experience. Moreover, this method can only delay screen burn-in and cannot eliminate the screen burn-in problem.
[0071] This disclosure provides an image processing method. Figure 2 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 1 ,like Figure 2 As shown, the image processing method includes:
[0072] Step S201: Determine the target pixel region within the first image frame sequence to be displayed; wherein, the first image frame sequence includes multiple sequentially consecutive first image frames, and the target pixel region includes: multiple target pixels corresponding to a target display area within the display device displaying the first image frame sequence that has a risk of screen burn-in;
[0073] Step S202: Compensation processing is performed on the target pixels within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel in any two temporally adjacent second image frames within the second image frame sequence are different.
[0074] In this embodiment of the disclosure, the image processing method can be applied to an electronic device (e.g., a display device). The electronic device may be a monitor with an OLED display panel, a television with an OLED display panel, or a mobile device with an OLED display panel, such as a mobile phone, tablet computer, or PDA. No specific limitation is made to the electronic device here.
[0075] In step S201, the electronic device can determine the target pixel region of the first image frame sequence based on the target application corresponding to the first image frame sequence to be displayed.
[0076] The target pixel region may include multiple target pixels corresponding to a target display area within the electronic device displaying the first image frame sequence that poses a risk of screen burn-in. Alternatively, the target pixel region may be the area where multiple target pixels corresponding to a target display area of the electronic device that poses a risk of screen burn-in are located when the electronic device is running the target application and displaying the first image frame sequence.
[0077] The first image frame sequence includes multiple temporally consecutive first image frames; the target application is, for example, a short video application, but this disclosure does not limit it. When the target application is a short video application, the first image frame sequence may be a short video, and the multiple temporally consecutive first image frames may be multiple images that make up the short video.
[0078] It is understood that the first image frame sequence consists of multiple images to be displayed on the target application. Based on the display characteristics of the target application, the target pixel region in the first image frame sequence can be determined. The display characteristics are used to characterize the features of the target application on the display interface.
[0079] For example, when the target application has such Figure 1 When the display interface 10 is shown, the target application has the characteristic of the image within the second sub-interface 12 being lit for a long time. Based on the characteristic of the long-lit pixel unit within the second sub-interface 12, the area corresponding to the pixel unit can be determined as the burn-in area, thereby determining the area of multiple pixels in the first image frame sequence corresponding to the burn-in area as the target pixel area.
[0080] In some embodiments, the electronic device needs to acquire the first image frame sequence to be displayed before determining the target pixel region within the first image frame sequence to be displayed. It is understood that the electronic device can determine the first image frame sequence to be displayed by first acquiring multiple temporally consecutive image frames to be displayed by the target application. Here,
[0081] In some embodiments, the electronic device may determine the target pixel region of the first image frame sequence based on the pixel values of the first image frame sequence.
[0082] It is understood that after acquiring the first image frame sequence, the electronic device can also obtain the pixel value of each pixel in the first image frame sequence. Based on the pixel value, a target display area with a risk of screen burn-in can be determined within the OLED display panel when the electronic device displays the first image frame sequence. Based on the target display area, the area within the first image frame sequence corresponding to the target display area can be determined as the target pixel area.
[0083] The pixel value can be either the color value or the brightness value of a pixel. For example, the pixel value can be divided into 256 levels from 0 to 255, with each level corresponding to a different brightness level.
[0084] It is understood that the first image frame has multiple pixels, and each pixel has a corresponding pixel value. Based on the pixel values, the brightness value of each pixel unit in the OLED display panel when displaying each corresponding pixel in the first image frame can be determined, thereby determining the total brightness value when each pixel unit displays multiple corresponding pixels in the first image frame sequence.
[0085] In one embodiment, based on the total brightness value, the area containing multiple pixel units whose total brightness value is greater than a preset threshold can be determined as the target display area with a risk of screen burn-in.
[0086] The preset threshold can be set according to actual needs, and this embodiment does not impose specific limitations on it.
[0087] It is understandable that when the total brightness value is greater than the preset threshold, the pixel unit will work at high brightness for a long time, which is likely to cause the transistor characteristics of the pixel unit to drift, resulting in deviations in the color and brightness of the pixel unit and causing screen burn-in.
[0088] In one embodiment, based on the total brightness value, the area containing multiple pixel units with the same total brightness value can be determined as the target display area with a risk of screen burn-in.
[0089] It is understandable that if multiple adjacent pixel units have the same total brightness value, it means that these multiple pixels may continuously display the same image. When these multiple pixel units continuously emit light, it can easily cause performance degradation of these pixel units, leading to screen burn-in.
[0090] In step S202, after determining the target pixel region within the first image frame sequence through step S201, the electronic device can sequentially perform pixel value compensation on the target pixel points within the target pixel region of each first image frame to obtain multiple second image frames. The multiple second image frames are arranged in chronological order to form a second image frame sequence.
[0091] The second image frame is the image frame obtained after image processing of the first image frame. The target pixel is any pixel within the target pixel region.
[0092] The pixel values of the same target pixel in any two temporally adjacent second image frames within the second image frame sequence are different. Here, the same target pixel refers to two target pixels corresponding to the same pixel unit in any two temporally adjacent second image frames.
[0093] It is understood that the pixel values of the same target pixel in any two temporally adjacent second image frames in the second image frame sequence are different. Therefore, when the electronic device displays the second image frame sequence, the luminous brightness of the same pixel unit in the target display area can be continuously changed to achieve dynamic adjustment of the display luminous brightness, thereby reducing the risk of screen burn-in caused by prolonged high-brightness luminous emission of pixel units when displaying the first image frame.
[0094] In one embodiment, different compensation values can be used to compensate the pixel values of the same target pixel in two temporally adjacent first image frames.
[0095] For example, when the pixel value of the same target pixel in two sequentially adjacent first image frames is 200, the first first image frame can be compensated with a first compensation value of +20 to make the pixel value of the obtained second image frame 220; the second first image frame can also be compensated with a second compensation value of -40 to make the pixel value of the obtained second image frame 160.
[0096] It should be noted that the size of the compensation value can be set according to the actual situation, and this disclosure does not impose specific limitations on it.
[0097] In this embodiment, by acquiring a first image frame sequence composed of multiple sequentially consecutive first image frames to be displayed, the target display area at risk of burn-in when the display device displays the first image frame sequence can be determined, and then the target pixel area within the first image frame sequence displayed in the target display area can be determined. By performing compensation processing on the pixels within the target pixel area of each image frame in the first image frame sequence, a second image frame sequence in which the pixel values of the same target pixel in any two sequentially adjacent image frames are different can be obtained. This allows the same pixel unit to display different pixel values according to different time sequences when the display device displays the second image frame sequence, thereby adjusting a pixel unit that has been in a lit state for a long time to a pixel unit in a constantly changing state, achieving the effect of anti-burn-in optimization.
[0098] Optional, Figure 3 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 2 ,like Figure 3 As shown, step S202, which involves compensating the target pixels within the target pixel region of each of the first image frames to obtain the second image frame sequence, includes:
[0099] Step S301: Determine the reference pixel region corresponding to each of the target pixels in the plurality of first image frames; wherein, the reference pixel regions corresponding to the same target pixel in any two temporally adjacent first image frames are different;
[0100] Step S302: Based on the reference pixel region of each target pixel in the plurality of first image frames, blur the target pixel to obtain the second image frame sequence.
[0101] In this embodiment of the present disclosure, after the electronic device obtains the target pixel region of the first image frame sequence to be displayed through step S201, it can first execute step S301 to determine the reference pixel region corresponding to each of the target pixels in a plurality of first image frames (e.g., the first first image frame, the second first image frame, the third first image frame, etc.); then execute step S302 to blur the target pixels based on the information obtained by each target pixel from its reference pixel region, thereby obtaining a plurality of second image frames (e.g., the first second image frame, the second second image frame, the third second image frame, etc.); the plurality of second image frames are arranged in chronological order to form the second image frame sequence.
[0102] It should be noted that when the pixel value of the same pixel in the target pixel region of multiple first image frames is the same, in order to ensure that the pixel values of the same pixel in any two adjacent first image frames are different after processing, different processing parameters can be configured for the pixel value of the same pixel during the processing of any two temporally adjacent first image frames, for example, different reference pixel regions; thereby, it can be ensured that the processing parameters of the same target pixel in any two temporally adjacent first image frames are different, thereby obtaining different processed pixel values, satisfying the requirement that the pixel values of the same target pixel in any two temporally adjacent second image frames in the second image frame sequence are different.
[0103] The reference pixel region can be a region composed of multiple pixels adjacent to the target pixel.
[0104] In some embodiments, the electronic device may blur the pixel value of the target pixel based on the pixel value of the pixel corresponding to the reference pixel region to obtain the second image frame sequence.
[0105] It is understood that the reference pixel region is a region composed of multiple pixels adjacent to the target pixel. Therefore, the pixel value of the target pixel can be adjusted according to the pixel value of the pixel corresponding to the reference pixel region. On the one hand, the pixel value of the target pixel can be adjusted, and on the other hand, the pixel difference between the target pixel and the pixels in the reference pixel region can be balanced, so that the brightness of the image in the display interface of the electronic device does not change much and will not affect the user's visual experience.
[0106] For example, when the pixel value of the target pixel is 200 and the pixel values of the two pixels in the reference pixel area are 160, the pixel value of the target pixel can be adjusted from 200 to 180 by moving the pixel value of the target pixel closer to the pixel value of the pixel in the reference area.
[0107] In this embodiment of the disclosure, by determining the reference pixel region of each target pixel in each image frame, the reference pixel value for processing the pixel value of each target pixel in each image frame can be determined. By setting different reference pixel regions for two temporally adjacent image frames, the reference pixel value of the same target pixel in two temporally adjacent image frames can be different. Thus, by performing blurring processing on each target pixel based on different reference pixel values, the target pixel can have different pixel values in image frames of different time sequences, thereby achieving a dynamic adjustment of the display effect of the target pixel region.
[0108] Optionally, the step S301 of determining the reference pixel region corresponding to each of the target pixels in the plurality of first image frames includes:
[0109] Based on a first preset parameter, multiple image groups are determined from the first image frame sequence; wherein each image group includes: multiple temporally consecutive first image frames; and the number of first image frames contained in the image group is determined by the first preset parameter.
[0110] Based on the second preset parameters, a reference pixel region is determined for the target pixel point in each of the first image frames within an image group.
[0111] In this embodiment of the present disclosure, when determining the reference pixel region corresponding to each target pixel in a plurality of first image frames, the electronic device may group the plurality of first image frames based on a first preset parameter, thereby determining a plurality of image groups from the sequence of first image frames. Subsequently, the electronic device may process each image group based on a second preset parameter to determine the reference region of the target pixel in each first image frame within each image group.
[0112] In each of the image groups, the multiple first image frames are multiple first image frames that are sequentially consecutive. The number of first image frames in each of the image groups is determined by a first preset parameter.
[0113] The first preset parameter may be a parameter preset by the electronic device when executing the image processing method in the embodiments of this disclosure. The value of the first preset parameter can be set according to actual needs, and the embodiments of this disclosure do not specifically limit it.
[0114] It is understandable that since multiple image groups determine the reference region of the target pixel based on the second preset parameter, the processing method of each first image frame with the same time sequence in the multiple image groups is the same, so the reference pixel region of the target pixel of each first image frame with the same time sequence in the multiple image groups is the same.
[0115] In other words, the processing method for the first image frame in the first image group is the same as that for the first image frame in the second image group, so that the reference pixel region of the target pixel of the first image frame in the first image group is the same as that of the target pixel of the first image frame in the second image group; the processing method for the second image frame in the first image group is the same as that for the second image frame in the second image group, so that the reference pixel region of the target pixel of the second image frame in the first image group is the same as that of the target pixel of the second image frame in the second image group; and so on, the processing method for the last image frame in the first image group is the same as that for the last image frame in the second image group, so that the reference pixel region of the target pixel of the last image frame in the first image group is the same as that of the target pixel of the last image frame in the second image group.
[0116] Furthermore, since the first image frame in the second image group is located after the last image frame in the first image group in terms of timing, and the reference pixel region of the target pixel of the first image frame in the second image group is the same as the reference pixel region of the target pixel of the first image frame in the first image group, the electronic device can cyclically acquire different reference pixel regions by taking the number of first image frames in an image group as the period when determining the reference pixel region corresponding to each target pixel in multiple first image frames.
[0117] In this embodiment of the disclosure, the first image frame sequence is grouped using a first preset parameter, and then the reference pixel region is obtained for multiple first image frames in each image group using a second preset parameter. This method can achieve the cyclic acquisition of the reference pixel region of the target pixel with the first preset parameter as the period, thereby improving the acquisition efficiency of the reference pixel region of the target pixel of any time sequence first image frame and reducing the computational difficulty of the electronic device.
[0118] Optionally, determining the reference pixel region of the target pixel in each of the first image frames within an image group based on the second preset parameter includes:
[0119] Determine the display order of each of the first image frames within the image group;
[0120] Based on the display order of each of the first image frames and the second preset parameters, the reference distance corresponding to the target pixel in each of the first image frames is determined;
[0121] Based on the reference distance corresponding to the target pixel in each first image frame, a plurality of reference pixels are obtained from the first image frame; wherein the distance between the plurality of reference pixels and the target pixel is less than or equal to the reference distance;
[0122] Based on the target pixel point corresponding to the multiple reference pixels in each of the first image frames within an image group, a reference pixel region corresponding to the target pixel point is determined.
[0123] It should be noted that in a sequence of first image frames with multiple first image frames, the pixel value of the same target pixel within the target pixel region of the multiple first image frames may be the same. Therefore, when determining the reference pixel region of the target pixel in each of the first image frames within an image group, the electronic device can distinguish between first image frames of different time sequences within the image group and set the reference pixel region of the same target pixel in the first image frames of different time sequences to be different. Based on the different reference pixel regions of the same target pixel in the first image frames of different time sequences, different compensation values are obtained for the same target pixel in the first image frames of different time sequences, thereby making the pixel value of the same target pixel different for any two temporally adjacent image frames in the processed second image frame sequence.
[0124] In this embodiment of the disclosure, the electronic device determines the reference pixel region of the target pixel in each of the first image frames within an image group. First, the electronic device determines the display order of each of the first image frames within the image group, obtaining the sorting position of each of the first image frames in the image group. Then, based on the sorting position of each of the first image frames in the image group and a second preset parameter, a corresponding reference distance is determined for the target pixel within each of the first image frames.
[0125] The second preset parameter can be a parameter preset by the electronic device when executing the image processing method in the embodiments of this disclosure. The value of the second preset parameter can be set according to actual needs, and the embodiments of this disclosure do not impose specific limitations on it.
[0126] It is understandable that different reference distances can be obtained depending on the second preset parameter and the different display order of the image frames.
[0127] It is understood that the reference distance can be a preset number of pixels that are separated from the target pixel by the electronic device. For example, the reference distance can be 1, indicating that the number of pixels separated from the target pixel is 1, that is, the number of pixels adjacent to the target pixel.
[0128] As can be seen, for any target pixel in the first image frame, multiple pixels that meet the quantity requirement can be determined based on the reference distance corresponding to the target pixel, that is, the number of pixels separated from the target pixel. These multiple pixels are multiple reference pixels obtained from the first image frame.
[0129] The distance between multiple reference pixels and the target pixel can be less than or equal to the reference distance. In other words, the number of pixels separating the multiple reference pixels from the target pixel is less than or equal to a preset number of pixels separating the reference pixels from the target pixel.
[0130] It should be noted that the reference distance corresponding to the target pixel in any given first image frame is different from the reference distance corresponding to the target pixel in the two adjacent first image frames. This ensures that the reference distances corresponding to the target pixel in two adjacent first image frames are different. Based on this difference in reference distance, the number of reference pixels for the target pixel obtained in each first image frame is different.
[0131] After obtaining multiple reference pixels of the target pixel, the electronic device can determine the reference pixel region corresponding to each target pixel based on the multiple reference pixels corresponding to each target pixel.
[0132] The reference pixel region includes at least the plurality of reference pixels.
[0133] In this embodiment of the disclosure, by using the display position of the first image frame in the image group and the second preset parameter, different reference pixel regions can be determined for the target pixel points in the first image frames at different time sequences. This ensures that the pixel values of the target pixel points in two adjacent image frames are different, thereby realizing the dynamic adjustment of the pixel values of the target pixel points.
[0134] Optionally, obtaining multiple reference pixels from the first image frame based on the reference distance corresponding to the target pixel within each first image frame includes:
[0135] Based on the target pixel in each first image frame, a plurality of reference pixels are obtained in a first direction; the distance between the plurality of reference pixels and the target pixel in the first direction is less than or equal to the reference distance;
[0136] Based on the target pixel, a plurality of reference pixels are obtained in a second direction; the distance between the plurality of reference pixels and the target pixel in the second direction is less than or equal to the reference distance; the second direction is perpendicular to the first direction.
[0137] In this embodiment of the disclosure, after determining the reference distance corresponding to each target pixel, the electronic device can acquire multiple reference pixels that satisfy the reference distance in the first direction and the second direction respectively, and confirm all multiple reference pixels acquired in the first direction and the second direction as reference pixels of the target pixel.
[0138] Among them, the multiple reference pixels that satisfy the reference distance refer to pixels whose distance from the target pixel in the first direction or the second direction is less than or equal to the reference distance.
[0139] It is understandable that, in actual use, the image displayed in the target pixel area is as follows: Figure 1 As shown in the second sub-interface 12, it is mostly composed of line segments along a first direction (e.g., the X direction) and a second direction (e.g., the Y direction). Therefore, when processing the target pixel region in the first image frame, reference pixels of the target pixel can be selected in the first and second directions. This reduces the acquisition of reference pixels and the amount of data calculation, and allows only pixels related to the pattern displayed on the electronic device to be selected as reference pixels, thereby improving the accuracy of image processing.
[0140] Optionally, step S302, which involves blurring the target pixel based on the reference pixel region of each target pixel in a plurality of first image frames to obtain the second image frame sequence, includes:
[0141] Based on the target pixel and the first pixel value of the plurality of reference pixels corresponding to the target pixel in the i-th first image frame in the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame is determined; wherein, i is greater than or equal to 1 and less than or equal to a first preset parameter;
[0142] Based on the second pixel value corresponding to the target pixel in the i-th first image frame within the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame within the second image group is determined; the second image group is an image group other than the first image group among multiple image groups in the first image frame sequence.
[0143] The second image frame sequence is determined based on the second pixel value corresponding to the target pixel point of multiple first image frames within the first image frame sequence.
[0144] In this embodiment of the disclosure, after the electronic device groups multiple first image frames by executing step S301 and determines the reference pixel region corresponding to each target pixel in each first image frame of each image group, it can determine the second pixel value of each target pixel in the first image group after image processing based on the first pixel value of the pixel in the reference pixel region corresponding to each target pixel in the first image group. Subsequently, the electronic device can store the second pixel value of each target pixel in the target pixel region of the first image group, and determine the second pixel value of each target pixel in the second image group corresponding to the first image group based on the stored second pixel value of each target pixel in the first image group, thereby reducing the steps of the electronic device to calculate the second pixel value of each target pixel in the second image group and improving the efficiency of image processing.
[0145] The first image group can be any one of the multiple image groups determined by the first image frame sequence, and the second image group can be any image group other than the first image group among the multiple image groups.
[0146] It is understood that the image processing process for the first image group includes: the electronic device can determine the second pixel value corresponding to the target pixel of the first first image frame based on the target pixel of the first first image frame in the first image group and the first pixel value of a plurality of reference pixels corresponding to the target pixel; the electronic device can determine the second pixel value corresponding to the target pixel of the second first image frame based on the target pixel of the second first image frame in the first image group and the first pixel value of a plurality of reference pixels corresponding to the target pixel; and so on, the electronic device can determine the second pixel value corresponding to the target pixel of the next first image frame based on the target pixel of the last first image frame in the first image group and the first pixel value of a plurality of reference pixels corresponding to the target pixel, so that the electronic device obtains the second pixel value of the target pixel in each first image frame in the first image group.
[0147] The image processing procedure for the second image group includes: obtaining the display order of multiple first image frames within the second image group; and for each first image frame indicated by the display order, using the same processing method as for each first image frame indicated by the display order in the first image group to obtain the second pixel value of the target pixel point of each first image frame.
[0148] For example, for a target pixel in the first first image frame within the second image group, the second pixel value of the same target pixel in the first first image frame within the first image group is determined as the pixel value of the target pixel in the first first image frame within the second image group. Wherein, the second pixel value of the first target pixel in the first first image frame is equal to the second pixel value of the first target pixel in the first first image frame within the first image group.
[0149] The image processing of the first image frame sequence includes the image processing of the first image group and the image processing of the second image group, so that the second pixel value corresponding to the target pixel point can be determined sequentially by multiple image groups obtained from the first image frame sequence, resulting in multiple processed image groups, and the multiple processed second image groups form the second image frame sequence.
[0150] Optionally, determining the second pixel value corresponding to the target pixel in the i-th first image frame based on the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel includes:
[0151] The second pixel value corresponding to the target pixel in the i-th first image frame is determined based on the average pixel value between the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel.
[0152] In this embodiment of the disclosure, for the i-th first image frame, the first pixel value of the target pixel in the i-th first image frame is obtained, and the first pixel values of the plurality of reference pixels within the pixel reference region corresponding to the target pixel are obtained; then, the first pixel value of the target pixel and the first pixel values of the plurality of reference pixels corresponding to the target pixel are summed and averaged to obtain the pixel mean between the first pixel value of the target pixel and the first pixel values of the plurality of reference pixels in the i-th first image frame. The pixel mean is the pixel value obtained by the target pixel after image processing, i.e., the second pixel value.
[0153] The image processing method in the embodiments of this disclosure will now be described with specific examples.
[0154] Figure 4 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 3 .like Figure 4 As shown, the image processing method includes:
[0155] In step S401, the electronic device receives input data (e.g., a first image frame sequence to be displayed) and determines the target pixel region and non-target pixel region based on the first image frame sequence to be displayed.
[0156] Step S402: Perform image processing on the data within the target pixel region of the first image frame sequence, and display the processed data.
[0157] The image processing procedure described above can be implemented through one or more of the above embodiments, and will not be repeated here for the sake of brevity.
[0158] Step S403: Data in non-target pixel areas of the first image frame sequence is not processed and is displayed directly.
[0159] In this embodiment, the electronic device can process the data of the target pixel area to adjust pixel units that have been in a lit state for a long time to pixel units in a constantly changing state, thereby achieving the effect of screen burn-in prevention and optimization. Furthermore, the electronic device may not process the data of non-target pixel areas, thus not affecting the display effect of non-target pixel areas and not impacting the user's experience with the target application.
[0160] Figure 5 This is a schematic diagram of the structure of an image processing apparatus according to an exemplary embodiment of the present disclosure. Figure 1 .like Figure 5 As shown, the image processing device can be a chip or system-on-a-chip in an electronic device, or a functional module in an electronic device used to implement the methods described in the above embodiments. This image processing device can implement the functions performed by the electronic devices in the above embodiments, and these functions can be implemented by hardware executing corresponding software. This hardware or software includes one or more modules corresponding to the above functions.
[0161] The image processing device may have an image processing module 501, which may include a first submodule 501a, a second submodule 501b, and a third submodule 501c. The first submodule 501a, the second submodule 501b, and the third submodule 501c may be integrated into a single hardware or software unit, or they may be configured as multiple hardware or software units respectively.
[0162] The image processing module 501 is used to execute the image processing methods in one or more of the above embodiments. The first submodule 501a is used to initiate an image processing mode after receiving data. For example, the first submodule 501a may include a register (denoted as DeEN). When DeEN = 1, the first submodule 501a initiates the image processing mode. The second submodule 501b is used to acquire the target pixel region. For example, the second submodule 501b may include four registers (denoted as DeHa, DeHb, DeVa, and DeVb, respectively). DeHa, DeHb, DeVa, and DeVb store four location information points, and the area enclosed by these four locations can be the target pixel region. The third submodule 501c is used to set the intensity of the image processing. For example, the third submodule 501c may include two registers (denoted as Deswitch and Deshift, respectively). Deswitch and Deshift control the first preset parameter and the second preset parameter, respectively. By setting different values for Deswitch and Deshift, different intensity image processing effects can be achieved.
[0163] Figure 6 This is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Figure 4 Below, for reference. Figures 1 to 4 , Figure 6 The method described, combined with Figure 5 The device structure shown is explained. Figure 5 The module shown executes an image processing method, which includes:
[0164] Step S601: The electronic device starts executing the image processing method.
[0165] It is understandable that when the electronic device determines that DeEN = 1 in the first submodule 501a, it can obtain the first image frame sequence to be displayed and start image processing on the first image frame sequence.
[0166] In step S602, the electronic device determines the target pixel region within the first image frame sequence.
[0167] It is understood that after the electronic device executes step S601 to determine the start of the image processing mode, it can determine the target pixel region of the first image frame sequence based on the method in one or more embodiments of step S201. The electronic device can also set and store the location of the determined target pixel region through DeHa, DeHb, DeVa and DeVb in the second submodule 501b to ensure that subsequent image processing only targets the target pixel region and does not include non-target pixel regions.
[0168] In step S603, the electronic device determines a reference pixel region corresponding to each of the target pixels in the plurality of first image frames, and performs blurring processing on the target pixels based on the reference pixel region of each of the target pixels in the plurality of first image frames.
[0169] It is understood that after the electronic device performs step S602 to determine the target pixel area, it can perform blurring processing on the target pixel point through one or more of the methods in steps S301 to S302. For the sake of brevity, these will not be described in detail here.
[0170] It should be noted that in actual use, Deswitch and Deshift in the third submodule 501c can control the first preset parameter and the second preset parameter respectively. For example, Deswitch can be set to a level of 1-5, with different levels corresponding to different numbers of image frames in the image group; Deswitch can also be set to a level of 0-10, with different levels controlling different reference pixel areas.
[0171] For example, when Deswitch is set to 3, that is, three frames form an image group, and every three frames form a loop. The fourth frame (the first image frame of the second image group) will return to the state of the first frame (the first image frame of the first image group) (the reference pixel area is the same).
[0172] Therefore, the pixel value of any pixel can be calculated using the following formula when performing image processing.
[0173]
[0174] Date(x,y)(n+1)=∑(Date(x-Deshift-Δt),Date(x+Deshift+Δt)) / (2*Deshift+1+2Δt);
[0175] ∑(Date(y-Deshift-Δt),Date(y+Deshift+Δt) / (2*Deshift+1+2Δt) (2)
[0177] Date(x,y)(n+2)=∑(Date(x-Deshift-2Δt),Date(x+Deshift+2Δt)) / (2*Deshift+1+4Δt);
[0178] ∑(Date(y-Deshift-2Δt),Date(y+Deshift+2Δt) / (2*Deshift+1+4Δt) (3)
[0180] In the above formulas (1) to (3), Date represents the pixel value of the pixel; (x,y) represents the horizontal and vertical coordinates of the pixel; n represents the nth frame of the image; Deshift represents the preset pixel reference area; Δt represents the adjustment area of the preset pixel reference area between different frames.
[0181] Therefore, the above formula (1) as a whole means that in the nth frame of the image, the pixel value of the pixel located at (x, y) is equal to the average of the first pixel of the pixel and the average of the first pixel of the pixel along the x-axis (assuming a value of 1), plus the average of the second pixel of the pixel and the average of the first pixel of the pixel along the y-axis, and then the average pixel value of the pixel along the x-axis and y-axis. The above formula (2) as a whole means that in the (n+1)th frame of the image, the pixel value of the pixel located at (x, y) is equal to the average of the first pixel of the pixel and the average of the first pixel of the pixel and the average of the second pixel of the pixel and the average of the first pixel of the pixel along the x-axis (assuming a value of 1), plus the average of the second pixel of the pixel and the average of the first pixel of the pixel and the average of the second pixel of the pixel and the average of the first pixel of the pixel along the y-axis, and then the average pixel value of the pixel along the x-axis and y-axis.
[0182] As described above, the image processing method in this embodiment, without affecting the user's actual experience (i.e., while the user can still see the image of the target pixel area), continuously scales the image of the target pixel area in 3 frames (Deswitch set to 3) (the scaling degree is Δt, which is set by Deshift). Since the actual scaling is at the pixel level, the user will not perceive it, and the actual pixel unit that is lit for a long time changes continuously, thereby enhancing the lifespan of the pixel unit and further optimizing the anti-burn-in effect.
[0183] This disclosure provides an image processing apparatus. Figure 7 This is a schematic diagram of the structure of an image processing apparatus according to an exemplary embodiment of the present disclosure. Figure 2 ,like Figure 7 As shown, the image processing device 700 includes:
[0184] The determining module 701 is used to determine the target pixel region within the first image frame sequence to be displayed; wherein, the first image frame sequence includes a plurality of temporally consecutive first image frames, and the target pixel region includes: a plurality of target pixels corresponding to a target display area in the display device displaying the first image frame sequence that has a risk of screen burn-in;
[0185] The processing module 702 is used to perform compensation processing on the target pixel points within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel point in any two temporally adjacent second image frames in the second image frame sequence are different.
[0186] Optionally, the processing module 702 is further configured to:
[0187] A reference pixel region is determined for each target pixel in a plurality of first image frames; wherein, the reference pixel regions for the same target pixel in any two temporally adjacent first image frames are different;
[0188] Based on the reference pixel region of each target pixel in multiple first image frames, the target pixel is blurred to obtain the second image frame sequence.
[0189] Optionally, the processing module 702 is further configured to:
[0190] Based on a first preset parameter, multiple image groups are determined from the first image frame sequence; wherein each image group includes: multiple temporally consecutive first image frames; and the number of first image frames contained in the image group is determined by the first preset parameter.
[0191] Based on the second preset parameters, a reference pixel region is determined for the target pixel point in each of the first image frames within an image group.
[0192] Optionally, the processing module 702 is further configured to:
[0193] Determine the display order of each of the first image frames within the image group;
[0194] Based on the display order of each of the first image frames and the second preset parameters, the reference distance corresponding to the target pixel in each of the first image frames is determined;
[0195] Based on the reference distance corresponding to the target pixel in each first image frame, a plurality of reference pixels are obtained from the first image frame; wherein the distance between the plurality of reference pixels and the target pixel is less than or equal to the reference distance;
[0196] Based on the target pixel point corresponding to the multiple reference pixels in each of the first image frames within an image group, a reference pixel region corresponding to the target pixel point is determined.
[0197] Optionally, the processing module 702 is further configured to:
[0198] Based on the target pixel in each first image frame, a plurality of reference pixels are obtained in a first direction; the distance between the plurality of reference pixels and the target pixel in the first direction is less than or equal to the reference distance;
[0199] Based on the target pixel, a plurality of reference pixels are obtained in a second direction; the distance between the plurality of reference pixels and the target pixel in the second direction is less than or equal to the reference distance; the second direction is perpendicular to the first direction.
[0200] Optionally, the processing module 702 is further configured to:
[0201] Based on the target pixel and the first pixel value of the plurality of reference pixels corresponding to the target pixel in the i-th first image frame in the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame is determined; wherein, i is greater than or equal to 1 and less than or equal to a first preset parameter;
[0202] Based on the second pixel value corresponding to the target pixel in the i-th first image frame within the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame within the second image group is determined; the second image group is an image group other than the first image group among multiple image groups in the first image frame sequence.
[0203] The second image frame sequence is determined based on the second pixel value corresponding to the target pixel point of multiple first image frames within the first image frame sequence.
[0204] Optionally, the processing module 702 is further configured to:
[0205] The second pixel value corresponding to the target pixel in the i-th first image frame is determined based on the average pixel value between the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel.
[0206] It should be noted that the aforementioned determining module 701 and processing module 702 may be the same module as the aforementioned image processing module 501, and both may perform the functions that the electronic device in one or more of the above embodiments can perform.
[0207] Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. For example, the electronic device may be an electronic device 80 having an OLED display panel.
[0208] Reference Figure 8The electronic device 80 may include one or more of the following components: a processing component 83, a memory 84, a power supply component 85, a multimedia component 86, an audio component 87, an input / output (I / O) interface 88, a sensor component 89, and a communication component 810.
[0209] Processing component 83 typically controls the overall operation of electronic device 80, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 83 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 83 may include one or more modules to facilitate interaction between processing component 83 and other components. For example, processing component 83 may include a multimedia module to facilitate interaction between multimedia component 86 and processing component 83.
[0210] Memory 84 is configured to store various types of data to support the operation of electronic device 80. Examples of such data include instructions for any application or method operating on electronic device 80, contact data, phonebook data, messages, pictures, videos, etc. Memory 84 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0211] Power supply component 85 provides power to various components of electronic device 80. Power supply component 85 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 80.
[0212] The multimedia component 86 includes a screen that provides an output interface between the electronic device 80 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 86 includes a front-facing camera and / or a rear-facing camera. When the electronic device 80 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0213] Audio component 87 is configured to output and / or input audio signals. For example, audio component 87 includes a microphone (MIC) configured to receive external audio signals when electronic device 80 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 84 or transmitted via communication component 810. In some embodiments, audio component 87 also includes a speaker for outputting audio signals.
[0214] I / O interface 88 provides an interface between processing component 83 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0215] Sensor assembly 89 includes one or more sensors for providing state assessments of various aspects of electronic device 80. For example, sensor assembly 89 can detect the on / off state of electronic device 80, the relative positioning of components such as the display and keypad of electronic device 80, changes in position of electronic device 80 or a component of electronic device 80, the presence or absence of user contact with electronic device 80, orientation or acceleration / deceleration of electronic device 80, and temperature changes of electronic device 80. Sensor assembly 89 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 89 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 89 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0216] Communication component 810 is configured to facilitate wired or wireless communication between electronic device 80 and other devices. Electronic device 80 can access wireless networks based on communication standards, such as Wi-Fi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 810 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 810 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0217] In an exemplary embodiment, the electronic device 80 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0218] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 84 including instructions, which can be executed by a processor 820 of an electronic device 80 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0219] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0220] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An image processing method, characterized in that, include: Determine the target pixel region within the first image frame sequence to be displayed; wherein, the first image frame sequence includes multiple temporally consecutive first image frames, and the target pixel region includes: multiple target pixels corresponding to a target display area in the electronic device displaying the first image frame sequence that has a risk of screen burn-in; Compensation processing is performed on the target pixel points within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel point in any two temporally adjacent second image frames within the second image frame sequence are different. The step of compensating the target pixels within the target pixel region of each of the first image frames to obtain the second image frame sequence includes: determining a reference pixel region corresponding to each of the target pixels in the plurality of first image frames; wherein the reference pixel regions corresponding to the same target pixel in any two temporally adjacent first image frames are different; and blurring the target pixels based on the reference pixel regions of each of the target pixels in the plurality of first image frames to obtain the second image frame sequence.
2. The method according to claim 1, characterized in that, Determining the reference pixel region corresponding to each of the target pixels in the plurality of first image frames includes: Based on a first preset parameter, multiple image groups are determined from the first image frame sequence; wherein each image group includes: multiple temporally consecutive first image frames; and the number of first image frames contained in the image group is determined by the first preset parameter. Based on the second preset parameters, a reference pixel region is determined for the target pixel point in each of the first image frames within an image group.
3. The method according to claim 2, characterized in that, The step of determining the reference pixel region of the target pixel point in each of the first image frames within an image group based on the second preset parameters includes: Determine the display order of each of the first image frames within the image group; Based on the display order of each of the first image frames and the second preset parameters, the reference distance corresponding to the target pixel in each of the first image frames is determined; Based on the reference distance corresponding to the target pixel in each first image frame, a plurality of reference pixels are obtained from the first image frame; wherein the distance between the plurality of reference pixels and the target pixel is less than or equal to the reference distance; Based on the target pixel point corresponding to the multiple reference pixels in each of the first image frames within an image group, a reference pixel region corresponding to the target pixel point is determined.
4. The method according to claim 3, characterized in that, The step of obtaining multiple reference pixels from the first image frame based on the reference distance corresponding to the target pixel within each first image frame includes: Based on the target pixel in each first image frame, a plurality of reference pixels are obtained in a first direction; the distance between the plurality of reference pixels and the target pixel in the first direction is less than or equal to the reference distance; Based on the target pixel, a plurality of reference pixels are obtained in a second direction; the distance between the plurality of reference pixels and the target pixel in the second direction is less than or equal to the reference distance; the second direction is perpendicular to the first direction.
5. The method according to claim 3, characterized in that, The second image frame sequence is obtained by blurring the target pixels based on reference pixel regions of each target pixel in multiple first image frames, including: Based on the target pixel and the first pixel value of the plurality of reference pixels corresponding to the target pixel in the i-th first image frame in the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame is determined; wherein, i is greater than or equal to 1 and less than or equal to a first preset parameter; Based on the second pixel value corresponding to the target pixel in the i-th first image frame within the first image group, the second pixel value corresponding to the target pixel in the i-th first image frame within the second image group is determined; the second image group is an image group other than the first image group among multiple image groups in the first image frame sequence. The second image frame sequence is determined based on the second pixel value corresponding to the target pixel point of multiple first image frames within the first image frame sequence.
6. The method according to claim 5, characterized in that, The step of determining the second pixel value corresponding to the target pixel in the i-th first image frame based on the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel includes: The second pixel value corresponding to the target pixel in the i-th first image frame is determined based on the average pixel value between the first pixel value of the target pixel in the i-th first image frame and the first pixel value of the plurality of reference pixels corresponding to the target pixel.
7. An image processing apparatus, characterized in that, include: A determining module is used to determine a target pixel region within a first image frame sequence to be displayed; wherein, the first image frame sequence includes multiple temporally consecutive first image frames, and the target pixel region includes: multiple target pixels corresponding to a target display area within the display device displaying the first image frame sequence that has a risk of screen burn-in; A processing module is configured to perform compensation processing on target pixels within the target pixel region of each first image frame to obtain a second image frame sequence; wherein, the pixel values of the same target pixel in any two temporally adjacent second image frames within the second image frame sequence are different; wherein, the compensation processing on the target pixel within the target pixel region of each first image frame to obtain the second image frame sequence includes: determining a reference pixel region corresponding to each target pixel in a plurality of first image frames; wherein, the reference pixel regions corresponding to the same target pixel in any two temporally adjacent first image frames are different; and blurring the target pixel based on the reference pixel region of each target pixel in the plurality of first image frames to obtain the second image frame sequence.
8. An electronic device, characterized in that, include: Memory used to store processor-executable instructions; The processor is connected to the memory; The processor is configured to perform the image processing method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the image processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Displayer burn-in prevention method and device and storage medium
CN108492767A