WO2023020258A1 - 折痕补偿方法、装置、电子设备及存储介质 - Google Patents
折痕补偿方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023020258A1 WO2023020258A1 PCT/CN2022/108967 CN2022108967W WO2023020258A1 WO 2023020258 A1 WO2023020258 A1 WO 2023020258A1 CN 2022108967 W CN2022108967 W CN 2022108967W WO 2023020258 A1 WO2023020258 A1 WO 2023020258A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- area
- screen
- crease
- brightness
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 89
- 238000012360 testing method Methods 0.000 claims description 43
- 230000008569 process Effects 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 44
- 238000012545 processing Methods 0.000 description 19
- 238000005452 bending Methods 0.000 description 12
- 238000009877 rendering Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 7
- 239000000463 material Substances 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/03—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays
- G09G3/035—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays for flexible display surfaces
Definitions
- the present application relates to the technical field of electronic equipment, and more specifically, to a crease compensation method, device, electronic equipment, and storage medium.
- a display screen is a part of an electronic device for displaying a user interface, and a flexible display screen can be implemented as a foldable display screen.
- an electronic device with a foldable display screen can be in a folded state or an unfolded state.
- creases are easily generated in the bending area, which affects the display effect of the folding display.
- the present application proposes a crease compensation method, device, electronic equipment and storage medium.
- an embodiment of the present application provides a crease compensation method, which is applied to an electronic device, and the electronic device includes a foldable screen, and the method includes: acquiring the crease area of the screen and the crease At least one of the adjacent areas of the area is used as the target area of the pixel value to be adjusted; the adjustment coefficient of the pixel value corresponding to the target area is obtained; after the pixel value of the target area is adjusted based on the adjustment coefficient, the crease Regions are matched to the rendered brightness of the neighboring regions.
- the embodiment of the present application provides a crease compensation device, which is applied to an electronic device, and the electronic device includes a foldable screen.
- the device includes: a calibration area acquisition module, an adjustment coefficient acquisition module, and a pixel value adjustment module. module, wherein the calibration area acquisition module is used to acquire at least one of the crease area of the screen and the adjacent area of the crease area as the target area of the pixel value to be adjusted; the adjustment coefficient acquisition module uses After obtaining the adjustment coefficient of the pixel value corresponding to the target area; the pixel value adjustment module is used to adjust the pixel value of the target area based on the adjustment coefficient, the display brightness of the crease area and the adjacent area match.
- the embodiment of the present application provides an electronic device, including: a foldable screen; one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in The memory is configured to be executed by the one or more processors, and the one or more programs are configured to execute the crease compensation method provided in the first aspect above.
- the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above-mentioned first aspect. trace compensation method.
- FIG. 1 shows a schematic structural view of an electronic device provided by the present application in a folded state.
- FIG. 2 shows a schematic structural view of the electronic device provided by the present application in a partially unfolded state.
- FIG. 3 shows another schematic structural view of the electronic device provided in this application in a partially unfolded state.
- Fig. 4 shows a flowchart of a crease compensation method according to an embodiment of the present application.
- Fig. 5 shows a flowchart of a crease compensation method according to another embodiment of the present application.
- Fig. 6 shows a flowchart of a crease compensation method according to yet another embodiment of the present application.
- FIG. 7 shows another schematic structural view of the electronic device provided in the present application in a partially unfolded state.
- Fig. 8 shows a flowchart of a crease compensation method according to yet another embodiment of the present application.
- Fig. 9 shows a flowchart of a crease compensation method according to yet another embodiment of the present application.
- Fig. 10 shows a block diagram of a crease compensation device according to an embodiment of the present application.
- Fig. 11 is a block diagram of an electronic device for executing a crease compensation method according to an embodiment of the present application.
- Fig. 12 is a storage unit used to store or carry program codes for implementing the crease compensation method according to the embodiment of the present application according to the embodiment of the present application.
- the screen of mobile terminals is getting bigger and bigger, but the larger screen of mobile phones means that the size of mobile terminals will also become larger, which is convenient for users to operate and also reduces the convenience of carrying mobile terminals sex. Therefore, the folding display realized by the flexible display is produced.
- flexible screens have attracted much attention due to their unique characteristics and huge potential.
- flexible screens have the characteristics of strong flexibility and bendability, which can reduce the degree of accidental damage to equipment and have a much higher degree of durability.
- the flexible screen provides users with a new interaction method based on bendable characteristics, which can meet more needs of users for mobile terminals.
- the folding display realized by the flexible screen can be folded, so that the size of the screen becomes smaller, which is convenient for users to carry.
- the mobile phone with a folding screen is mainly designed on the hardware structure to improve the problem of creases.
- creases will occur, which will affect the display effect of the display screen.
- the inventor proposes a crease compensation method, device, electronic device, and storage medium provided by the embodiments of the present application, which can eliminate screen distortion by adjusting the pixel value of at least one of the crease area and the adjacent area.
- the creases generated by folding can affect the display effect and improve the display effect of the screen.
- the specific crease compensation method will be described in detail in the following embodiments.
- FIG. 1 is an electronic device 100 provided by an embodiment of the present application.
- the electronic device 100 may be, but not limited to, electronic devices such as mobile phones, tablet computers, game consoles, smart wearable devices, and vehicle-mounted devices.
- the electronic device 100 of this embodiment will be described by taking a mobile phone as an example.
- FIG. 1 is an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may include, but is not limited to, electronic devices such as mobile phones, tablet computers, game consoles, smart wearable devices, and vehicle-mounted devices.
- the electronic device 100 of this embodiment will be described by taking a mobile phone as an example.
- the electronic device 100 includes a foldable housing assembly 110, a foldable screen 120 and an electronic assembly (not shown in the figure), the electronic assembly is arranged in the foldable housing assembly 110, and the screen 120 is laid on the foldable housing assembly 110 .
- the foldable housing assembly 110 is used to carry the screen 120 and protect the electronic components at the same time.
- the electronic components may, but are not limited to, include a central processing unit, memory, camera, receiver, fingerprint module, etc.
- the specific electronic components may not be limited in this embodiment of the application.
- the foldable shell assembly 110 includes a first shell 111 , a second shell 112 and a hinge mechanism 113 , and the first shell 111 and the second shell 112 are respectively connected to two sides of the hinge mechanism 113 .
- the second housing 112 can be folded or unfolded relative to the first housing 111 through the rotating shaft mechanism 113, so that the foldable housing assembly 110 drives the screen 120 to fold or unfold.
- the electronic The volume of the device 100 is relatively small, which is convenient for storage and portability.
- the first housing 111 includes a first middle frame 1111 and a first cover 1112 .
- One side of the first middle frame 1111 is connected to the rotating shaft mechanism 113, which is used to carry part of the structure of the electronic assembly.
- the first cover 1112 covers the first middle frame 1111 .
- the first cover 1112 is stacked with the second casing 112 , that is, the first cover 1112 is attached to the second casing 112 .
- the second housing 112 includes a second middle frame 1121 and a second cover 1122 .
- One side of the second middle frame 1121 is connected to the rotating shaft mechanism 113, which is used to carry a part of the structure of the electronic assembly.
- the second cover 1122 covers the second middle frame 1121 .
- the second cover 1122 is stacked with the first cover 1112 , that is, the second cover 1122 is attached to the first cover 1112 .
- the screen 120 is laid on the first housing 111 , the rotating shaft mechanism 113 and the second housing 112 in sequence.
- the screen 120 is a flexible display.
- the screen 120 is bent or unfolded as the first casing 111 and the second casing 112 are turned over.
- the screen 120 is electrically connected to the electronic components, so that the electronic components can control the operation of the screen 120 .
- the screen 120 includes a first display part 121 connected to the first casing 111, a second display part 122 connected to the second casing 112, and a first display part 122 connected to the first display.
- the display part 123 of the part 121 and the second display part 122 is bent.
- the first display portion 121 corresponds to the first display area 124
- the second display portion 122 corresponds to the second display area 125
- the bending display portion 123 corresponds to the bendable area 126 .
- the first display part 121 and the second display part 122 are folded or unfolded relative to the first casing 111 and the second casing 112 respectively.
- the bending display part 123 is bent or flattened along with the folding or unfolding of the first display part 121 and the second display part 122 .
- the first display part 121, the second display part 122 and the bending display part 123 can be an integrated structure, so that the screen 120 is an integral flexible display; or, in some other implementations,
- the bending display part 123 is a bendable flexible part, while the first display part 121 and the second display part 122 can be non-flexible parts, and the first display part 121 and the second display part 122 are opposite to each other through the bending display part 123 Collapse or unfold.
- the first display part 121 and the second display part 122 are away from each other, so that the electronic device 100 presents a structure of an outwardly folded screen, so that The user can also observe the display content of the screen 120 when it is folded, which improves the convenience of using the electronic device 100 .
- the screen 120 of the electronic device has an inward-folding screen structure, as shown in FIG. 3 , after the screen 120 is folded, the first display portion 121 and the second display portion 122 are in an inward-folding state.
- the first housing 111 and the second housing 112 are superimposed, the first display part 121 and the second display part 122 are superimposed, so that the electronic device 100 presents an inwardly folded screen structure, so that the screen 120 Free from scratch damage.
- first display part 121 second display part 122 and bending display part 123 are set for convenience of description only, and are not used as structural limitations of the screen 120.
- first A display part 121, a second display part 122 and a bending display part 123 may have no obvious boundaries, or the screen 120 may appear in other divided structures, for example, the screen 120 includes a first display part 121 and a The second display portion 122 of the display portion 121 , the first display portion 121 and the second display portion 122 can be rotated relative to each other to be folded or unfolded.
- the electronic device 100 may further include an image acquisition device 115 (see FIG. 1 and FIG. 2 ), and the image acquisition device 115 may be a camera.
- the image acquisition device 115 can be arranged on the first housing 111 or the second housing 112, or there are more than one camera, and the first housing 111 and the second housing 112 can be provided with a camera 115, as shown in the figure 2.
- the image acquisition device 115 is a relatively retractable camera, so that the image acquisition device 115 can perform image acquisition on its screen to obtain an image including the screen.
- the electronic device 100 may further include an angle detection module 130 (see FIG. 1 ), the angle detection module 130 is used to detect the angle formed between the first casing 111 and the second casing 112, to determine the angle at which the screen 120 is folded.
- the angle detection module 130 can be a Hall angle sensor, which can be connected to any one of the first housing 111 , the second housing 112 or the rotating shaft mechanism 113 .
- the electronic device 100 may further include two motion sensors 140 (see FIG. 1 ), and the two motion sensors 140 are respectively disposed on the first casing 112 and the second casing 111 to detect the first The movement state of the first casing 112 and the second casing 111 .
- the motion sensor 140 may include, but is not limited to, sensors such as a speed sensor, a gravity sensor, and an inertial measurement unit.
- an embodiment of the present application provides a crease compensation method, by adjusting the pixel value of at least one of the crease area and the adjacent area, so as to eliminate the influence of the crease caused by the folding of the screen on the display effect, Improve the display effect of the screen.
- the display control method of the embodiment of the present application will be introduced in detail below.
- FIG. 4 shows a schematic flowchart of a crease compensation method provided by an embodiment of the present application.
- the crease compensation method is applied to the above-mentioned electronic device.
- the process shown in Figure 4 will be described in detail below, and the crease compensation method may specifically include the following steps:
- Step S110 Acquiring at least one of the crease area of the screen and the adjacent area of the crease area as a target area of pixel values to be adjusted.
- the electronic device when the electronic device corrects or compensates for the crease when the screen is in the display state, at least one of the crease area of the screen and the adjacent area of the crease area may be obtained as the target of the pixel value to be adjusted. area, so that after adjusting its pixel values, the rendering brightness of the crease area and its adjacent areas can be matched, so as to eliminate the influence of the crease on the display effect.
- the acquired target area refers to the acquired pixel coordinates of all pixel points in the area.
- the crease area refers to the area where the crease is located on the screen
- the adjacent area of the crease area refers to the area within the target range adjacent to the crease area on the screen
- the target range may be a range composed of several pixels.
- the adjacent area may be a boundary formed by pixels located N pixels away from the boundary of the crease area, and an area formed by the boundary of the crease area.
- the electronic device can collect an image of the screen through the image collection device to obtain an image including the screen; by identifying the crease area of the collected image, after the crease area is identified, based on the crease area Get the neighbors of the crease area. After the electronic device acquires the crease area and the adjacent area of the screen, at least one of the crease area and the adjacent area may be used as a target area to be adjusted for pixel values. Wherein, the electronic device may use both the acquired crease area and the adjacent area as the target area for pixel value adjustment, or may use one of the crease area and the adjacent area as the target area for pixel value adjustment. It can be understood that since the image collected on the screen can be considered as the display effect of the screen seen by the user, the collected image can be used to identify the crease area and adjacent areas, and identify the target area whose pixel value is to be adjusted. Sure.
- the pixel value of the target area since the purpose of adjusting the pixel value of the target area is to make the user perceive that the brightness of the crease area matches the brightness of the adjacent area, the pixel value will be increased or decreased so that The rendering brightness of its pixels varies so that the brightness of the two matches.
- the value of a certain color component of the pixels in the area that needs to be increased in brightness may have reached the maximum value, or after being increased The case where the value of the color component exceeds the maximum value.
- the area that needs to be improved in brightness can be determined as the brightness enhancement area; if any color component value of the pixel in the brightness enhancement area reaches the maximum value, Or the difference between the maximum value of the color component and any color component is less than the set threshold, then only the area where the brightness needs to be reduced can be used as the area to be adjusted, that is, the crease area or the adjacent area is used as the area to be adjusted Target area of pixel value, reduce the pixel value of the target area so that the brightness of the crease area matches the brightness of the adjacent area; is less than the set threshold, then at least one of the crease area and the adjacent area can be used as the area to be adjusted for pixel values.
- the pixel value of one of the areas can be increased to increase the brightness of the area.
- reduce the pixel value of another area to reduce the brightness of this area, so that the brightness of the two can be matched.
- the electronic device may also determine the brightness of the crease area and the adjacent area in the image based on the collected image, that is, determine the brightness of the two, so as to determine whether to perform crease compensation.
- the brightness of the crease area can be used as the first brightness
- the brightness of the adjacent area can be used as the second brightness. If the difference between the first brightness and the second brightness is greater than the target threshold, it means that the difference between the two brightnesses The difference is large, so crease compensation is required.
- the electronic device determines the target area of the pixel value to be adjusted based on the crease area and adjacent areas.
- the crease at the folding angle can be compensated according to the actual crease area and the adjacent area, so as to eliminate the influence of the crease on the display effect .
- the electronic device may store the corresponding relationship between each folding angle and the crease area and the adjacent area, and the electronic device may store the pixel coordinates of the crease area and the adjacent area.
- the electronic device needs to compensate the crease, it can obtain the folding angle in the current state, and determine the corresponding crease area and adjacent area based on the folding angle, and then determine the target of the pixel value to be adjusted based on the determined crease area and adjacent area area, so that the pixel value of the target area can be adjusted later, so that the rendering brightness of the crease area matches that of the adjacent area, thereby eliminating the influence of the crease on the display effect.
- the electronic device can store the brightness of the crease area and adjacent areas at various folding angles, and the electronic device can determine the crease area when determining the target area for pixel values to be adjusted based on the crease area and adjacent areas. and the brightness of the adjacent area; then, based on the brightness of the crease area and the adjacent area at the current folding angle, determine the target area of pixel values to be adjusted.
- the electronic device can store the brightness of the crease area and adjacent areas at various folding angles, and the electronic device can determine the crease area when determining the target area for pixel values to be adjusted based on the crease area and adjacent areas. and the brightness of the adjacent area; then, based on the brightness of the crease area and the adjacent area at the current folding angle, determine the target area of pixel values to be adjusted.
- the screen of the electronic device can compensate the creases at the folding angle according to the crease area and the adjacent area corresponding to the folding angle, so as to eliminate the impact of the crease on the display effect. Impact.
- Step S120 Obtain the adjustment coefficient of the pixel value corresponding to the target area.
- the electronic device after the electronic device determines the target area of the pixel value to be adjusted, it can also determine the adjustment coefficient of the pixel value corresponding to the target area, so that the pixel value of the target area can be adjusted based on the adjustment coefficient. , which can match the display brightness of the crease area of the screen with the adjacent area, so that the user can feel the brightness of the two matches.
- the electronic device can also determine the brightness of the crease area and the brightness of the adjacent area according to the image including the screen collected in real time. After the brightness, according to the brightness of the two, determine the adjustment coefficient of the pixel value corresponding to the target area. It can be understood that since the image collected on the screen can be considered as the display effect of the screen seen by the user, the collected image can be used to identify the brightness of the crease area and the adjacent area, so as to determine the pixel value of the target area. Adjust to make the brightness of the crease area and the adjacent area the same, so as to eliminate the influence of the crease on the display effect.
- the electronic device can determine the adjustment coefficient that needs to be adjusted for the pixel value of the target area, so that the adjustment coefficient is used to adjust Match the brightness of the crease area to the adjacent area after the pixel value of the target area.
- the electronic device determines the adjustment coefficient
- the average brightness of pixels in the adjacent area may be used as the brightness of the adjacent area, and based on the brightness of each pixel in the crease area, and The brightness of the adjacent area is determined by using the above method to determine the adjustment coefficient for each pixel. After adjusting the pixel value of each pixel, the adjustment of the pixel value of the crease area is completed.
- the electronic device may also store adjustment coefficients for the pixel values of the target area at each folding angle, After adjusting the pixel values of the target area according to the adjustment factor, the crease area matches the brightness of the adjacent area.
- the brightness matching between the crease area and the adjacent area refers to the brightness matching between the crease area and the adjacent area, that is, the brightness matching perceived by the user.
- the matching of the two may be that the absolute value of the difference between the brightness of the crease area and the brightness of the adjacent area is within a preset range, that is, the difference between the two does not exceed the preset range, so that the user perceives the crease area It is not much different from the adjacent area, thereby eliminating the influence of creases on the display effect.
- Step S130 After adjusting the pixel value of the target area based on the adjustment coefficient, the brightness of the crease area is matched with that of the adjacent area.
- the electronic device after the electronic device acquires the adjustment coefficient of the target area and the corresponding pixel value, it can adjust the pixel value of the target area based on the adjustment coefficient, and after adjusting the pixel value of the target area,
- the display brightness of the crease area and its adjacent area is matched to eliminate the influence of the crease on the display effect.
- the electronic device adjusts the pixel value of the target area based on the adjustment coefficient, which may be based on the adjustment coefficient, and adjusts the pixel value of the target area of each frame displayed by the electronic device, so that the electronic device displays any When changing the content of the screen, it can eliminate the influence of creases on the display effect and improve the display effect.
- the crease compensation method provided in the embodiment of the present application can adjust the pixel value of at least one of the crease area and the adjacent area, so that the brightness of the crease area and its adjacent area can be matched, so as to eliminate the crease caused by the folding of the screen.
- FIG. 5 shows a schematic flowchart of a crease compensation method provided by another embodiment of the present application.
- the crease compensation method is applied to the above-mentioned electronic equipment, and the flow shown in FIG. 5 will be described in detail below.
- the crease compensation method may specifically include the following steps:
- Step S210 Obtain the folding angle of the screen.
- the electronic device when it compensates for the crease of the screen, it can obtain the current folding angle of the screen, so as to determine the area where the pixel value is to be adjusted and the corresponding adjustment coefficient according to the current folding angle, so that Adjust the pixel value of the area where the pixel value is to be adjusted to realize the compensation of the crease under the current folding angle.
- the above-mentioned angle detection module can be set in the electronic device to detect the folding angle of the screen.
- the electronic device when it needs to compensate for the crease of the screen, it can control the angle detection module to detect the folding angle, so as to detect the current folding angle. It can be understood that in an electronic device provided with an angle detection module, since the screen is folded or unfolded along with the casing, the above-mentioned angle detection module for detecting the angle formed between the casings can be used to detect the folding of the screen angle.
- the electronic device can detect the impedance value of the variable impedance material provided on the bendable area of the screen to determine the angle formed between the display areas after the screen is folded, wherein the pressure on the above material is not At the same time, due to the piezoresistive effect, the resistance of the material is different. It can be understood that when the angles formed between the two display areas of the above-mentioned variable impedance material arranged in the bendable area of the screen are different, the pressure on the material is different, and the impedance value of the material is different. Therefore, According to the corresponding relationship between different angles and different impedance values, and the detected impedance values of the above-mentioned materials, the angle formed between the two display areas of the screen can be determined, that is, the folding angle of the screen can be obtained.
- Step S220 According to the first corresponding relationship between the folding angle of the screen and the screen area of the pixel value to be adjusted, obtain the screen area corresponding to the folding angle as the target area of the pixel value to be adjusted, the pixel value of the pixel value to be adjusted.
- the screen area is at least one of a crease area of the screen and an adjacent area of the crease area.
- the electronic device may store a first corresponding relationship between the folding angle of the screen and the screen area whose pixel value is to be adjusted. Based on this, after acquiring the current folding angle of the screen, the electronic device may acquire the target area corresponding to the current folding angle according to the first correspondence.
- the screen area corresponding to the folding angle of the screen to which the pixel value is to be adjusted is at least one of the crease area of the screen and the adjacent area of the crease area.
- the screen area corresponding to the pixel value to be adjusted at different folding angles of the screen can be obtained by pre-testing the crease area and adjacent areas at different folding angles, and based on the obtained creases at different folding angles The area and the adjacent area determine the screen area corresponding to the pixel value to be adjusted for different folding angles.
- Step S230 According to the second corresponding relationship between the folding angle of the screen and the adjustment coefficient, obtain the adjustment coefficient corresponding to the folding angle as the adjustment coefficient of the pixel value corresponding to the target area.
- the electronic device may also store a second corresponding relationship between the folding angle of the screen and the adjustment coefficient. Based on this, after obtaining the current folding angle of the screen, the electronic device can obtain the adjustment coefficient corresponding to the current folding angle according to the second corresponding relationship, so as to obtain the adjustment coefficient for adjusting the pixel value of the above-mentioned target area .
- the corresponding adjustment coefficients of the screen at different folding angles can be obtained by pre-testing the crease area and adjacent areas at different folding angles, and based on the obtained values of the crease areas and adjacent areas at different folding angles Brightness, determine the adjustment coefficient for adjusting the pixel value of the target area, so that under different folding angles, after adjusting the pixel value of the target area according to the corresponding adjustment coefficient, the brightness of the crease area and its adjacent areas can be made match.
- the specific manner of obtaining the second corresponding relationship will be described in detail in subsequent embodiments.
- Step S240 After adjusting the pixel value of the target area based on the adjustment coefficient, the brightness of the crease area is matched with that of the adjacent area.
- the crease compensation method provided by the embodiment of the present application can determine the target area corresponding to the folding angle and the adjustment coefficient of the pixel value to be adjusted according to the current folding angle of the screen and according to the pre-stored correspondence, and then based on the adjustment coefficient
- the target area is adjusted so that the display brightness of the crease area and its adjacent area match, so as to eliminate the influence of the crease generated by the folding of the screen on the display effect, thereby improving the display effect of the screen.
- FIG. 6 shows a schematic flowchart of a crease compensation method provided in another embodiment of the present application.
- the crease compensation method is applied to the above-mentioned electronic equipment, and the process shown in FIG. 6 will be described in detail below.
- the crease compensation method may specifically include the following steps:
- Step S310 displaying a test image when the electronic device is in a preset state.
- the embodiments of the present application also include methods for obtaining the above-mentioned first correspondence and the second correspondence. It is worth noting that the acquisition of the first correspondence and the second correspondence can be It is performed in advance, and each time the crease of the screen is compensated, the target area and the adjustment coefficient can be determined according to the first correspondence and the second correspondence, and then the pixel value of the target area can be adjusted. There is no need to obtain the first corresponding relationship and the second corresponding relationship every time the crease is compensated.
- the electronic device when the electronic device acquires the first correspondence and the second correspondence, it can display a test image when the electronic device is in a preset state, so that after displaying the test image, the screen can be folded according to different folding angles. Display the situation, and determine the above first correspondence and the second correspondence.
- the preset state may include: the electronic device is in the process of starting up. Understandably, when the electronic device is in the booting process, since the user does not actually use the electronic device, displaying a test image with a preset color at this time will not affect the user experience. Therefore, the above test image can be displayed when the electronic device is in the booting process, and the acquisition of the first corresponding relationship and the second corresponding relationship can be completed according to the subsequent steps, so that in the process of using the electronic device after starting up, it can be based on the electronic device. Fold angle to compensate for creases.
- the preset state may include: within a first time period after the electronic device is turned on. It can be understood that the electronic device displays the test image within the first period of time after it is turned on, and obtains the first correspondence and the second correspondence through subsequent steps, and can complete the first correspondence and the second correspondence after each startup.
- the acquisition of the second correspondence relationship can compensate for creases according to the folding angle of the electronic device during the subsequent use of the electronic device.
- the specific value of the first duration may not be limited, for example, 3 minutes, 5 minutes, 8 minutes and so on.
- the preset state may include: the electronic device has not been used within the second period of time. It can be understood that when the electronic device is not used within the second period of time, it may indicate that the user does not use the electronic device at this time, so the test image may be displayed, and the acquisition of the first correspondence and the second correspondence may be completed through subsequent steps, without affecting the user experience.
- the preset state may include: every time the screen of the electronic device is folded up to a preset number of times.
- the creases of the electronic device are mainly caused by the number of times of folding, and as the number of times of folding increases, the creases will also change, for example, the creases will become deeper. Therefore, each time the electronic device is folded up to a preset number of times, that is to say, each time a preset number of times of folding is performed, the test image is displayed, and the first corresponding relationship and the second corresponding relationship are obtained through subsequent steps, thereby realizing the The update of the first correspondence relationship and the second correspondence relationship enables accurate compensation of creases when the electronic device is used to compensate for creases.
- the specific preset state may not be limited.
- the preset state can also be a combination of the above embodiments, for example, when the electronic device is in the boot process, the electronic device is not used within the second period of time, and the folding times of the screen of the electronic device reach the preset number of times, satisfying any When one condition is executed, the test image is displayed, and the first corresponding relationship and the second corresponding relationship are obtained through subsequent steps.
- the test image is an image of a preset color
- the preset image can be a test image of a solid color, so when the image of the preset color is displayed, for the user, the crease area and the adjacent area of the screen Based on this, according to the rendering effect of the crease area and its adjacent area when the test image is actually displayed on the screen, the acquisition of the first corresponding relationship and the second corresponding relationship is completed.
- the specific color of the preset color may not be limited, for example, the preset color may be white, red, green, blue and so on.
- Step S320 Obtain the images obtained by collecting images of the screen displaying the test image at different folding angles of the screen, and obtain screen images corresponding to multiple folding angles.
- the electronic device after the electronic device displays the test image of the preset color, it can obtain the images obtained by collecting images of the screen at different folding angles, so as to obtain the crease area when the screen actually displays the test image and the presentation effect of its adjacent areas, and based on this, determine the above first correspondence and second correspondence.
- the electronic device may output prompt information to prompt the user to control the screen at different screen angles.
- the user since the electronic device is displaying a preset test image, the user may be prompted to slowly unfold the screen of the electronic device from a fully folded state to a fully unfolded state by means of a voice prompt; The screen of the device is slowly folded from a fully unfolded state to a fully folded state.
- the screen of the electronic device is in a fully folded state and in a fully unfolded state, that is, the folding angle between the display areas of the electronic device satisfies a corresponding angle condition.
- the screen of the electronic device includes a first display area and a second display area, and the first display area and the second display area can be folded or unfolded relatively.
- the above-mentioned set value may be an angle value when the first display area and the second display area are nearly parallel, for example, the set value may be 0, 3, 5, etc.
- the electronic device may include an image acquisition device, and the image acquisition device may be a camera.
- the electronic device can use its own image acquisition device to acquire images of the screen, so as to acquire screen images under different folding angles.
- the image capture device of the electronic device needs to capture screen images at different folding angles, the image capture device can be stretched and rotated relative to the surface of the screen, so that the stretching and rotation of the image capture device can be controlled. At least one, so that the screen is within the field of view of the image capture device, thereby capturing the screen image.
- other terminals may also complete the image acquisition of the screen.
- the screen can stay at each folding angle for a certain period of time, and other terminals will send the collected images to the electronic device after completing the image collection, thereby realizing the acquisition of screen images under different folding angles.
- Step S330 Obtain the crease area and its adjacent area corresponding to each of the multiple folding angles based on the multiple screen images.
- the electronic device after the electronic device obtains the corresponding screen images under multiple folding angles, it can obtain the crease area corresponding to each folding angle among the multiple folding angles, and the crease corresponding to each folding angle Adjacent areas of the area, so as to determine the above first correspondence and second correspondence according to the crease area and the adjacent area corresponding to each crease angle.
- the electronic device can identify the crease area and adjacent areas at various folding angles by way of image recognition.
- the adjacent area is cut out, and then the crease in the image is The area and the adjacent area are mapped to the screen to obtain the screen coordinate set of the pixels of the crease, that is, the crease area of the screen, and the screen coordinate set of the pixels of the adjacent area, that is, the adjacent area of the crease area of the screen.
- the area A1 and the area A2 in the figure are the crease area
- the areas B1 and B2 are the adjacent areas of the crease area of the screen.
- the electronic device may pre-store a recognition model for recognizing the crease area and the adjacent area, and the recognition model may be a deep neural network, etc., and by inputting the screen image into the recognition model, the corresponding crease area and adjacent area.
- the manner in which the electronic device determines the crease area and the adjacent area of the screen may not be limited. Of course, there are also situations where there is no crease area under some folding angles. At this time, it can be determined that no compensation for the crease is required under the folding angle, and the crease area and adjacent areas corresponding to the folding angle are stored as empty. So that when the electronic device determines that there is no crease area according to the first correspondence, it can know that the crease does not need to be compensated at present, that is, end the processing.
- Step S340 Based on the brightness of the crease area in the screen image corresponding to each folding angle and the brightness of adjacent areas in the screen image corresponding to each folding angle, determine the pixel to be adjusted corresponding to each folding angle Values of the screen area, obtaining the corresponding relationship between each folding angle and the screen area of the pixel value to be adjusted as the first corresponding relationship.
- the electronic device may base on the brightness of the crease area in the screen image corresponding to each folding angle, and the screen image corresponding to each folding angle.
- the brightness of the adjacent area in the image determines the screen area corresponding to the folding angle whose pixel value is to be adjusted. It can be understood that since the screen image can be considered as the display effect of the screen seen by the user, the brightness of the crease area and adjacent areas in the screen image can be used to determine the target area of pixel values to be adjusted. Wherein, the brightness of the crease area and the brightness of adjacent areas may refer to average brightness.
- the value of a certain color component of the pixels in the area that needs to be increased in brightness may have reached the maximum value, Or the case where the increased color component value exceeds the maximum value.
- the screen area under each folding angle and the area with relatively low brightness in the adjacent area can be determined, if the pixels in the area with relatively low brightness Any color component value of any color component satisfies the color component condition, then only the area with relatively high brightness is taken as the area to be adjusted, where the color component condition includes: the color component value reaches the maximum value, or the maximum value of the color component is equal to any The difference in color component values is less than the target threshold.
- the folded The trace area and the adjacent area are used as the area where the pixel value is to be adjusted, or one of them is used as the area where the pixel value is to be adjusted.
- the screen area at the first folding angle and The adjacent area is used as the area where the pixel value is to be adjusted, or one of the screen area and the adjacent area under the first folding angle is used as the area where the pixel value is to be adjusted; if the pixels in the screen area and the adjacent area have relatively low brightness If any color component value satisfies the color component condition, then the area with relatively high brightness under the first folding angle is taken as the area to be adjusted for the pixel value.
- the area of the determined crease area can be obtained as the first area, and the area of the adjacent area as the second area; The first area and the second area; according to the comparison result, if the first area is larger than the second area, then the adjacent area can be used as the area to be adjusted pixel value; if the second area is larger than the first area, then the crease area can be used as the area to be adjusted An area for adjusting pixel values; if the first area and the second area are equal, either one can be used as an area to be adjusted for pixel values. In this way, it is possible to reduce the processing load when the electronic device adjusts the pixel value, and in addition, the number of pixels for adjusting the pixel value can be reduced, thereby reducing the influence on the color of the screen content itself.
- the electronic device may obtain one of the crease area and the adjacent area with relatively higher brightness as the area to be adjusted in pixel value. Based on the brightness of the crease area in the screen image corresponding to each folding angle and the brightness of adjacent areas in the screen image corresponding to each folding angle, the electronic device determines the screen area corresponding to each folding angle to be adjusted, and obtains The corresponding relationship between a folding angle and the screen area whose pixel value is to be adjusted is used as the first corresponding relationship, which may include: if the brightness of the crease area in the screen image corresponding to the first target angle is greater than the adjacent area in the screen image corresponding to the first target angle , the crease area corresponding to the first target angle is used as the screen area corresponding to the pixel value to be adjusted corresponding to the first target angle, and the first target angle is any one of multiple folding angles; if the first target angle corresponds to The brightness of the adjacent area in the screen image corresponding to the first target angle is greater than the brightness of the crease area in the screen image
- the electronic device can determine the screen area where the pixel value is to be adjusted in the above manner, so that a corresponding relationship between the folding angle and the screen area where the pixel value is to be adjusted can be established.
- the electronic device may also increase the area of the adjacent area, so that after adjusting the pixel values of the adjacent area, the influence of the crease can be effectively eliminated.
- Step S350 Based on the brightness of the crease area in the screen image corresponding to each folding angle and the brightness of adjacent areas in the screen image corresponding to each folding angle, determine the adjustment coefficient corresponding to each folding angle, The corresponding relationship between each folding angle and the adjustment coefficient is obtained as the second corresponding relationship.
- the electronic device determines the target area of the pixel value to be adjusted corresponding to each folding angle, it may also be based on the brightness of the crease area in the screen image corresponding to each folding angle, and the brightness of each folding angle Corresponding to the brightness of the adjacent area in the screen image, the adjustment coefficient corresponding to each folding angle is determined, and the corresponding relationship between each folding angle and the adjustment coefficient is obtained as the second corresponding relationship.
- the electronic device can obtain the pixel value and the gamma value of the screen area corresponding to the pixel value to be adjusted corresponding to the second target angle, where the second target angle is any one of multiple folding angles; based on the second The ratio between the brightness of the crease area in the screen image corresponding to the target angle and the brightness of the adjacent area in the screen image corresponding to the second target angle; based on the pixel value, the gamma value and the ratio, obtain the corresponding The adjustment factor for the screen area whose pixel values are to be adjusted.
- the adjustment coefficient of the screen area corresponding to the pixel value to be adjusted corresponding to each folding angle can be obtained, so as to obtain the correspondence between each folding angle and the adjustment coefficient, and use this correspondence as the second correspondence.
- the electronic device can determine the adjustment coefficient according to the corresponding formula among the gamma value, pixel value and brightness value, as well as the actual pixel value, gamma value and ratio obtained above, so that the area of the pixel value to be adjusted The pixel values of are adjusted to match the brightness of the crease area to the adjacent areas.
- the test image shown above is white, and its RGB value is (255, 255, 255).
- the region where the pixel value is to be adjusted is a crease region
- the gamma value of any pixel in the crease region is ⁇ .
- the crease The brightness of the area is B, and any color component of the pixel value is D(b).
- the brightness of the adjacent area is A
- the pixel value of the crease area is adjusted to D(a) to make the crease area equal to the adjacent area.
- the implementation manner of determining the adjustment coefficient may not be limited, and the adjustment coefficient may also be determined through other correspondences between pixel values and brightness values.
- the electronic device after the electronic device acquires the above first correspondence and the second correspondence, it can store the first correspondence and the second correspondence, so that each time the crease is compensated, it can Based on the stored first correspondence relationship and the second correspondence relationship, after adjusting the pixel values of the corresponding area, the brightness of the crease area matches that of the adjacent area.
- the electronic device may also update the first corresponding relationship and the second corresponding relationship every preset time interval. In this way, the electronic device can perform the acquisition process of the above first correspondence and the second correspondence at intervals of a preset period of time, so as to realize the update of the first correspondence and the second correspondence, thereby ensuring that the conversion is performed every time. Calibration can be performed effectively when compensating for traces.
- Step S360 Obtain the folding angle of the screen.
- Step S370 Obtain the target area corresponding to the folding angle according to the first corresponding relationship between the folding angle of the screen and the screen area whose pixel value is to be adjusted, and the screen area whose pixel value is to be adjusted is the crease of the screen region and at least one of the adjacent regions of the crease region.
- Step S380 According to the second corresponding relationship between the screen folding angle and the adjustment coefficient, obtain the adjustment coefficient corresponding to the folding angle as the adjustment coefficient of the pixel value corresponding to the target area.
- Step S390 After adjusting the pixel value of the target area based on the adjustment coefficient, the brightness of the crease area matches that of the adjacent area.
- the crease compensation method provided in the embodiment of the present application, after displaying a test image of a preset color, based on the collected screen images at different folding angles, the areas to be adjusted for pixel values at each folding angle are determined, as well as the corresponding adjustment coefficients, In this way, the corresponding relationship between the folding angle, the screen area where the pixel value is to be adjusted and the adjustment coefficient can be obtained in advance.
- the target area and the adjustment coefficient can be determined based on the stored correspondence and the actual folding angle, and then the target area can be adjusted based on the adjustment coefficient so that the brightness of the crease area and its adjacent areas Matching to eliminate the impact of creases generated by the folding of the screen on the display effect, thereby improving the display effect of the screen.
- the crease can be quickly compensated at any folding angle, which further improves the display effect
- FIG. 8 shows a schematic flowchart of a crease compensation method provided in another embodiment of the present application.
- the crease compensation method is applied to the above-mentioned electronic equipment, and the flow shown in FIG. 8 will be described in detail below.
- the crease compensation method may specifically include the following steps:
- Step S410 Display a test image.
- the electronic device may also display a test image each time the crease is compensated, so that after the test image is displayed, the target area of the pixel value to be adjusted and the adjustment coefficient are determined according to the display conditions of the screen.
- the electronic device may display the test image after the screen is stably at a certain folding angle, that is, when the creases displayed on the screen are stable, and implement compensation for the creases through subsequent steps.
- the test image can also be an image of a preset color, specifically a solid color test image, so when the test image is displayed, for the user, the display brightness of the crease area and the adjacent area of the screen should be consistent, based on this According to the rendering effect of the crease area and its adjacent areas when the test image is actually displayed on the screen, the crease compensation is completed.
- the specific color of the preset color may not be limited, for example, the preset color may be white, red, green, blue and so on.
- Step S420 Obtain a target image obtained by image acquisition of the screen in the current folded state.
- the electronic device after the electronic device displays the test image of the preset color, it can obtain the image obtained by image acquisition on the screen, so as to obtain the rendering effect of the crease area and its adjacent area when the screen actually displays the test image, To deal with creases accordingly.
- the electronic device may collect images of the screen through its own image collection device or an image collection device of other terminals, so as to obtain a target image including the screen.
- Step S430 Based on the target image, acquire a crease area of the screen and adjacent areas of the crease area.
- the electronic device can identify the crease area and adjacent areas by means of image recognition.
- the adjacent area is cut out, and then the crease in the image is The area and the adjacent area are mapped to the screen to obtain the screen coordinate set of the pixels of the crease, that is, the crease area of the screen, and the screen coordinate set of the pixels of the adjacent area, that is, the adjacent area of the crease area of the screen.
- the electronic device may be pre-stored with a recognition model for recognizing the crease region and adjacent regions, and the recognition model may be a deep neural network, etc., by inputting the target image into the recognition model, the corresponding crease region and adjacent area.
- the manner in which the electronic device determines the crease area and the adjacent area of the screen may not be limited. Of course, there may also be cases where no crease area is identified according to the target image, and in this case, it can be determined that compensation for the crease is not needed, that is, the processing ends.
- Step S440 Based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image, acquire at least one of the crease area and the adjacent area as a pixel value to be adjusted target area.
- the electronic device may acquire at least one of the crease area and the adjacent area as the pixel value to be adjusted based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image. target area.
- the electronic device may obtain one of the crease area and the adjacent area with relatively higher brightness as the area to be adjusted in pixel value.
- the crease area is used as the target area for pixel values to be adjusted; if the The brightness of the adjacent area is greater than the brightness of the crease area in the target image, and the adjacent area is used as the target area for pixel values to be adjusted. If the brightness of the two is equal, it is determined that the adjustment coefficient is 1, that is, there is no need to adjust the pixel value.
- the electronic device when it uses one of them as the screen area whose pixel value is to be adjusted, it can obtain the area of the determined crease area as the first area, and the area of the adjacent area as the second area; compare the first area and the second area; according to the comparison result, if the first area is larger than the second area, the adjacent area can be used as the area to be adjusted; if the second area is larger than the first area, the crease area can be used as the area to be adjusted An area of pixel values; if the first area is equal to the second area, either one can be used as an area of pixel values to be adjusted. In this way, it is possible to reduce the processing load when the electronic device adjusts the pixel value, and in addition, the number of pixels for adjusting the pixel value can be reduced, thereby reducing the influence on the color of the screen content itself.
- Step S450 Based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image, determine an adjustment coefficient of the pixel value corresponding to the target area.
- the electronic device may also determine the adjustment coefficient of the pixel value corresponding to the target area based on the brightness of the crease area in the target image and the brightness of adjacent areas in the target image.
- the electronic device can obtain the pixel value and gamma value of the target area; based on the brightness ratio between the brightness of the crease area in the target image and the brightness of adjacent areas in the target image; based on the pixel value, gamma value and brightness ratio, Determines the adjustment factor for the pixel values corresponding to the target area.
- Step S460 After adjusting the pixel value of the target area based on the adjustment coefficient, the brightness of the crease area matches that of the adjacent area.
- the crease compensation method provided in the embodiment of the present application can display a test image of a preset color each time the crease is compensated, and determine the target area of the pixel value to be adjusted and adjust the pixel value based on the screen image when the test image is displayed. coefficient, and then adjust the target area based on the adjustment coefficient, so that the display brightness of the crease area matches its adjacent area, so as to eliminate the impact of the crease caused by the folding of the screen on the display effect, thereby improving the display effect of the screen. Moreover, it is possible to quickly compensate for creases at any folding angle, further improving the display effect.
- FIG. 9 shows a schematic flowchart of a crease compensation method provided in yet another embodiment of the present application.
- the crease compensation method is applied to the above-mentioned electronic equipment, and the process shown in FIG. 9 will be described in detail below.
- the crease compensation method may specifically include the following steps:
- Step S510 In response to a change in the folding angle of the screen, acquire a crease area of the screen or an adjacent area of the crease area as a target area for pixel values to be adjusted.
- the folding angle of the screen of the electronic device when the folding angle of the screen of the electronic device changes, in response to the change, acquire the crease area of the screen or the adjacent area of the crease area as the target area of the pixel value to be adjusted, and the subsequent Steps, so that after adjusting the pixel value of the target area, the brightness of the crease area can be matched with that of the adjacent area, and the influence of the crease on the display effect can be eliminated.
- the crease of the screen may also change, so the process of compensating for the crease of the screen can be implemented to eliminate the influence of the crease on the display effect under different folding angles.
- the electronic device in order to prevent the user from frequently folding the screen, the electronic device frequently performs crease compensation processing. Therefore, when the folding angle of the screen changes, the duration threshold may be reached when the folding angle does not change, for example, 1 Minutes, the crease area of the screen or the adjacent area of the crease area is acquired as the target area to be adjusted pixel value, and the subsequent steps, so that after adjusting the pixel value of the target area, the crease area and the adjacent area can be made brightness match.
- Step S520 Obtain the adjustment coefficient of the pixel value corresponding to the target area.
- Step S530 After adjusting the pixel value of the target area based on the adjustment coefficient, the brightness of the crease area matches that of the adjacent area.
- the electronic device may also respond to the calibration operation for calibrating the crease, and perform acquiring the crease area of the screen or the adjacent area of the crease area as the target area of the pixel value to be adjusted, and the subsequent Steps, so that after adjusting the pixel value of the target area, the brightness of the crease area can be matched with that of the adjacent area, and the influence of the crease on the display effect can be eliminated.
- the crease performance may be different under different folding angles. Therefore, after the user perceives the crease on the screen, he can input a calibration operation for calibrating the crease to the electronic device, and then the electronic device responds to the calibration operation.
- the above processing is to eliminate the influence of creases on the display effect.
- the electronic device may also perform the above processing in other situations where the crease may change, so as to eliminate the influence of the crease on the display effect.
- the influence of creases can be eliminated, and the structure of folding water droplets can also be set to reduce the influence of creases.
- the rotating shaft that drives the folding of the screen can be set as a rotating shaft with a variable radius.
- the crease compensation method provided by the embodiment of the present application can adjust the pixel value of at least one of the crease area and the adjacent area so that the brightness of the crease area and its adjacent area can match when the folding angle changes. , so as to eliminate the influence of creases caused by screen folding at different folding angles on the display effect, thereby improving the display effect of the screen.
- FIG. 10 shows a structural block diagram of a crease compensation device 400 provided by an embodiment of the present application.
- the crease compensation device 400 applies the above-mentioned electronic device, and the electronic device includes a foldable screen.
- the crease compensation device 400 includes: a calibration area acquisition module 410 , an adjustment coefficient acquisition module 420 and a pixel value adjustment module 430 .
- the calibration area acquisition module 410 is used to acquire at least one of the crease area of the screen and the adjacent area of the crease area as the target area of the pixel value to be adjusted;
- the adjustment coefficient acquisition module 420 uses After obtaining the adjustment coefficient of the pixel value corresponding to the target area;
- the pixel value adjustment module 430 is configured to adjust the pixel value of the target area based on the adjustment coefficient, the presentation of the crease area and the adjacent area Brightness matching.
- the calibration area acquiring module 410 can be used to: acquire the folding angle of the screen; and acquire the corresponding relationship between the folding angle and the first corresponding relationship between the folding angle of the screen and the screen area whose pixel value is to be adjusted.
- the screen area, as the target area of the pixel value to be adjusted, the screen area of the pixel value to be adjusted is at least one of the crease area of the screen and the adjacent area of the crease area;
- the adjustment coefficient acquisition module 420 is configured to: acquire an adjustment coefficient corresponding to the folding angle according to a second corresponding relationship between the folding angle of the screen and the adjustment coefficient, and use it as the adjustment coefficient of the pixel value corresponding to the target area.
- the crease compensation device 400 may further include an image display module, a screen image acquisition module, a target area acquisition module, a first relationship acquisition module, and a second relationship acquisition module.
- the image display module is used to obtain the crease area of the screen or the adjacent area of the crease area as the target area of the pixel value to be adjusted, and before the acquisition of the adjustment coefficient of the pixel value corresponding to the target area , when the electronic device is in a preset state, a test image is displayed;
- the screen image acquisition module is used to acquire images acquired by the screen at different folding angles on the screen displaying the test image, and obtain multiple The screen images corresponding to the multiple folding angles;
- the target area acquisition module is used to acquire the crease area and its adjacent area corresponding to each of the multiple folding angles based on the screen images corresponding to the multiple folding angles;
- the first The relationship acquiring module is configured to determine the to-be-resolved area corresponding to each folding angle based on the brightness of the crease area in the screen image corresponding to each
- the second relationship acquisition module is used to correspond to each folding angle based on the The brightness of the crease area in the screen image of the screen image, and the brightness of the adjacent area in the screen image corresponding to each folding angle, determine the adjustment coefficient corresponding to each folding angle, and obtain the adjustment coefficient of each folding angle and the adjustment
- the corresponding relationship of the coefficients is used as the second corresponding relationship.
- the first relationship acquisition module may be configured to: if the brightness of the crease area in the screen image corresponding to the first target angle is greater than the brightness of the adjacent area in the screen image corresponding to the first target angle, the first The crease area corresponding to the target angle is used as the screen area corresponding to the pixel value to be adjusted corresponding to the first target angle, and the first target angle is any one of the multiple folding angles.
- the first relationship acquisition module may also be configured to: if the brightness of the adjacent area in the screen image corresponding to the first target angle is greater than the brightness of the crease area in the screen image corresponding to the first target angle, set the second An adjacent area corresponding to a target angle is used as a screen area corresponding to the first target angle for pixel values to be adjusted.
- the second relationship acquisition module may be used to: acquire the pixel value and the gamma value of the screen area corresponding to the pixel value to be adjusted corresponding to the second target angle, the second target angle being one of the plurality of folding angles Any folding angle; based on the ratio between the brightness of the crease area in the screen image corresponding to the second target angle and the brightness of the adjacent area in the screen image corresponding to the second target angle; based on the pixel value, the The gamma value and the ratio are used to obtain the adjustment coefficient of the screen area corresponding to the pixel value to be adjusted corresponding to the second target angle.
- the test image is an image of a preset color.
- the crease compensation apparatus 400 may further include a relationship updating module.
- the relationship updating module is configured to update the first corresponding relationship and the second corresponding relationship every preset time interval.
- the electronic device further includes an image acquisition device.
- the calibration area acquiring module may be used to: display a test image; acquire a target image acquired by the image acquisition device in the current folded state by acquiring an image of the screen; based on the target image, acquire the crease area of the screen and the An adjacent area of the crease area; based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image, at least one of the crease area and the adjacent area is acquired As the target area to adjust the pixel value.
- the adjustment coefficient acquisition module 420 is configured to: determine an adjustment coefficient of a pixel value corresponding to the target area based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image.
- the calibration area acquisition module 410 acquires the crease area and the adjacent area based on the brightness of the crease area in the target image and the brightness of the adjacent area in the target image. At least one of the areas is used as the target area of the pixel value to be adjusted, which may include: if the brightness of the crease area in the target image is greater than the brightness of the adjacent area in the target image, using the crease area as A target area of pixel values to be adjusted; if the brightness of the adjacent area in the target image is greater than the brightness of the crease area in the target image, the adjacent area is used as the target area of pixel values to be adjusted.
- the adjustment coefficient acquisition module 420 may be specifically configured to: acquire the pixel value and gamma value of the target area; A brightness ratio between the brightness of the adjacent regions in the image; based on the pixel value, the gamma value and the brightness ratio, determine an adjustment coefficient of the pixel value corresponding to the target region.
- the test image is an image of a preset color.
- the calibration area acquiring module 410 may be configured to: in response to a change in the folding angle of the screen, perform the acquiring the crease area of the screen or the adjacent area of the crease area as pixels to be adjusted The target area for the value.
- the calibration area acquisition module 410 may be configured to: in response to the calibration operation for calibrating the crease, perform the acquiring the crease area of the screen or the adjacent area of the crease area as pixels to be adjusted The target area for the value.
- the coupling between the modules may be electrical, mechanical or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
- the solution provided by this application obtains at least one of the crease area of the screen and the adjacent area of the crease area as the target area of the pixel value to be adjusted, and obtains the adjustment coefficient of the pixel value corresponding to the target area , and then adjust the pixel value of the target area based on the adjustment coefficient, so that the rendering brightness of the crease area and the adjacent area match, so that the pixel value of at least one of the crease area and the adjacent area can be adjusted to eliminate
- the creases generated by the folding of the screen have an impact on the display effect and improve the display effect of the screen.
- the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and a notebook computer.
- the electronic device 100 in the present application may include one or more of the following components: a processor 160, a memory 170, a foldable screen 120, and one or more application programs, wherein one or more application programs may be stored in the memory 170 and configured to be executed by one or more processors 160, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
- Processor 160 may include one or more processing cores.
- the processor 160 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 170, and calls data stored in the memory 170 to execute Various functions of the electronic device 100 and processing data.
- the processor 160 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 160 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
- CPU Central Processing Unit
- GPU Graphics Processing Unit
- the CPU mainly handles the operating system, user interface and application programs, etc.
- the GPU is used to render and draw the displayed content
- the modem is used to handle wireless communication. It can be understood that, the above modem may also not be integrated into the processor 160, but implemented by a communication chip alone.
- the memory 170 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
- the memory 170 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
- the memory 170 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
- the storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
- the foldable screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof.
- the touch screen may be disposed on the foldable screen 120 so as to form an integral body with the foldable screen 120 .
- the foldable screen 130 may include a first display area and a second display area, and the first display area and the second display area may be selectively folded or unfolded relative to each other.
- FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
- the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
- the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
- Program code 810 may, for example, be compressed in a suitable form.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
一种折痕补偿方法、装置、电子设备及存储介质,其中折痕补偿方法应用于电子设备,电子设备包括可折叠的屏幕,折痕补偿方法包括:获取屏幕的折痕区域以及折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域(S110);获取目标区域对应的像素值的调整系数(S120);基于调整系数调整目标区域的像素值后,折痕区域与邻近区域的呈现亮度匹配(S130)。可以实现屏幕处于折叠状态下对折痕进行补偿,从而提升显示效果。
Description
相关申请的交叉引用
本申请要求于2021年8月20日提交的申请号为202110961498.8的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
本申请涉及电子设备技术领域,更具体地,涉及一种折痕补偿方法、装置、电子设备及存储介质。
电子设备,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。显示屏是电子设备上用于显示用户界面的部分,柔性显示屏可以实现成为折叠显示屏。在相关技术中,具有折叠显示屏的电子设备可以处于折叠状态或展开状态。然而,在折叠显示屏被折叠后,容易在弯折区域产生折痕,影响了折叠显示屏的显示效果。
发明内容
鉴于上述问题,本申请提出了一种折痕补偿方法、装置、电子设备及存储介质。
第一方面,本申请实施例提供了一种折痕补偿方法,应用于电子设备,所述电子设备包括可折叠的屏幕,所述方法包括:获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域;获取所述目标区域对应的像素值的调整系数;基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
第二方面,本申请实施例提供了一种折痕补偿装置,应用于电子设备,所述电子设备包括可折叠的屏幕,所述装置包括:校准区域获取模块、调整系数获取模块以及像素值调整模块,其中,所述校准区域获取模块用于获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域;所述调整系数获取模块用于获取所述目标区域对应的像素值的调整系数;所述像素值调整模块用于基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
第三方面,本申请实施例提供了一种电子设备,包括:可折叠的屏幕;一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的折痕补偿方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的折痕补偿方法。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请提供的电子设备处于折叠状态的一种结构示意图。
图2示出了本申请提供的电子设备处于部分展开状态的一种结构示意图。
图3示出了来本申请提供的电子设备处于部分展开状态的另一种结构示意图。
图4示出了根据本申请一个实施例的折痕补偿方法流程图。
图5示出了根据本申请另一个实施例的折痕补偿方法流程图。
图6示出了根据本申请又一个实施例的折痕补偿方法流程图。
图7示出了本申请提供的电子设备处于部分展开状态的又一种结构示意图。
图8示出了根据本申请再一个实施例的折痕补偿方法流程图。
图9示出了根据本申请又另一个实施例的折痕补偿方法流程图。
图10示出了根据本申请一个实施例的折痕补偿装置的一种框图。
图11是本申请实施例的用于执行根据本申请实施例的折痕补偿方法的电子设备的框图。
图12是本申请实施例的用于保存或者携带实现根据本申请实施例的折痕补偿方法的程序代码的存储单元。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
随着科技的发展和人类需求的提升,移动终端的屏幕越做越大,但手机屏幕变大意味着移动终端的尺寸也会变大,在方便用户操作的同时也降低了移动终端携带的便利性。因此,由柔性显示屏实现的折叠显示屏产生。
其中,柔性屏以其独特的特性和巨大的潜力而备受关注,柔性屏相较于传统屏幕而言,具有柔韧性强和可弯曲的特点,能够减轻设备意外损伤的程度,耐用程度远高于其他屏幕,并且,柔性屏给用户提供了基于可弯折特性的新交互方式,可以满足用户对于移动终端的更多需求。由柔性屏实现的折叠显示屏可以进行折叠,从而使屏幕尺寸变小,进而方便用户携带。但是,由于屏幕被折叠时,容易使弯折区域产生折痕。相关技术中,主要是通过硬件结构上设计折叠屏的手机,以改善折痕的问题,但仍然在折叠次数较多后,会产生折痕,使得显示屏的显示效果受到影响。
针对上述问题,发明人提出了本申请实施例提供的折痕补偿方法、装置、电子设备以及存储介质,可以实现通过对折痕区域以及邻近区域中的至少一个的像素值进行调整,以消除屏幕的折叠产生的折痕对显示效果的影响,提升屏幕的显示效果。其中,具体的折痕补偿方法在后续的实施例中进行详细的说明。
为了便于详细说明本申请方案,下面先结合附图对本申请实施例中的一种应用环境进行介绍。
请参阅图1,图1为本申请实施方式提供的一种电子设备100,电子设备100可以,但不限于为手机、平板电脑、游戏机、智能穿戴设备、车载设备等电子装置。本实施方式的电子设备100以手机为例进行说明。
请参阅图1,图1为本申请实施方式提供的一种电子设备100,电子设备100可以包括,但不限于,手机、平板电脑、游戏机、智能穿戴设备、车载设备等电子装置。本实施方式的电子设备100以手机为例进行说明。
电子设备100包括可折叠壳体组件110、可折叠的屏幕120以及电子组件(图中未示出),电子组件设置于可折叠壳体组件110内,屏幕120铺设于可折叠壳体组件110上。可折叠壳体组件110用于对屏幕120进行承载,同时对电子组件进行防护。电子组件可以,但不限于包括中央处理器、存储器、摄像头、受话器、指纹模组等,具体的电子组件在本申请实施例中可以不作为限定。
可折叠壳体组件110包括第一壳体111、第二壳体112以及转轴机构113,第一壳体111和第二壳体112分别连接于转轴机构113的两侧。第二壳体112能够通过转轴机构113相对第一壳体111折叠或展开,使可折叠壳体组件110带动屏幕120折叠或展开,可折叠壳体组件110及屏幕120呈叠合状时,电子设备100的体积相对较小,便于收纳及携带。
第一壳体111包括第一中框1111以及第一盖体1112。第一中框1111的一侧连接于转轴机构113,其用于承载电子组件的部分结构。第一盖体1112盖设于第一中框1111。当第一壳体111与第二壳体112呈叠合状时,第一盖体1112与第二壳体112相叠置,也即,第一盖体1112贴合于第二壳体112。第二壳体112包括第二中框1121以及第二盖体1122。第二中框1121的一侧连接于转轴机构113,其用于承载电子组件的部分结构。第二盖体1122盖设于第二中框1121。当第一壳体111与第二壳体112呈叠合状时,第二盖体1122与第一盖体1112相叠置,也即,第二盖体1122贴合于第一盖体1112。
屏幕120依次铺设于第一壳体111、转轴机构113和第二壳体112上。在本实施方式中,屏幕120为柔性显示屏。屏幕120随第一壳体111与第二壳体112相互翻转呈弯折状或展开状。屏幕120电连接于电子组件,以使电子组件能够控制屏幕120运行。
请同时参阅图1及图2,本实施方式中,屏幕120包括连接于第一壳体111的第一显示部121、连接于第二壳体112的第二显示部122和连接于第一显示部121和第二显示部122的弯折显示部123。其中,第一显示部121对应第一显示区域124,第二显示部122对应第二显示区域125,弯折显示部123对应可弯折区域126。第一显示部121和第二显示部122分别随第一壳体111和第二壳体112相对地折叠或展开。弯折显示部123随第一显示部121与第二显示部122的折叠或展开而弯折或展平。在一些实施方式中,第一显示部121、第二显示部122以及弯折显示部123可以为一体结构,使屏幕120为整片式的柔性显示屏;或者,在其他的一些实施方式中,弯折显示部123 为可弯折的柔性部分,而第一显示部121、第二显示部122可以为非柔性部分,第一显示部121、第二显示部122通过弯折显示部123相对地折叠或展开。在本实施方式中,第一壳体111与第二壳体112呈叠合状时,第一显示部121与第二显示部122相背离,使电子设备100呈现为外折屏幕的结构,使用户在折叠的情况下同样能够观察屏幕120的显示内容,提高了电子设备100使用的便利性。
在其他的一些实施方式中,电子设备的屏幕120为内折屏幕的结构时,如图3所示,屏幕120在折叠后,第一显示部121与第二显示部122处于内折状态。另外,第一壳体111与第二壳体112呈叠合状时,第一显示部121与第二显示部122相叠置,使电子设备100呈现为内折屏幕的结构,以使屏幕120免于刮花损坏。
应当理解的是,上述的第一显示部121、第二显示部122以及弯折显示部123的命名仅为便于描述而设置,并不作为屏幕120的结构限制,在实际的应用场景中,第一显示部121、第二显示部122以及弯折显示部123可以没有明显的界限,或者,屏幕120可以以其他的划分结构出现,例如,屏幕120包括第一显示部121以及连接于该第一显示部121的第二显示部122,该第一显示部121及该第二显示部122能够相对转动以折叠或展开。
在本实施例中,电子设备100还可以包括图像采集装置115(请参阅图1和图2),图像采集装置115可以为摄像头。图像采集装置115可以设置于第一壳体111,也可以设置于第二壳体112,或者摄像头不止一个,并且可以在第一壳体111以及第二壳体112均设置有摄像头115,如图2所示。可选地,图像采集装置115为可相对伸缩的摄像头,以便图像采集装置115可以对其屏幕进行图像采集,得到包含屏幕的图像。
在本实施例中,电子设备100还可以包括角度检测模组130(请参阅图1),角度检测模组130用于检测第一壳体111以及第二壳体112之间所成的角度,以确定屏幕120折叠的角度。在一些实施方式中,角度检测模组130可以为霍尔角度传感器,其可以连接于第一壳体111、第二壳体112或者转轴机构113的任意一个。
在一些实施方式中,电子设备100还可以包括两个运动传感器140(请参阅图1),两个运动传感器140分别设置于第一壳体112以及第二壳体111,以分别用于检测第一壳体112以及第二壳体111的运动状态。运动传感器140可以包括但不限于包括:速度传感器、重力传感器、惯性测量单元等传感器。
基于上述电子设备,本申请实施例提供了一种折痕补偿方法,通过对折痕区域以及邻近区域中的至少一个的像素值进行调整,以消除屏幕的折叠产生的折痕对显示效果的影响,提升屏幕的显示效果。下面对本申请实施例的显示控制方法进行详细介绍。
请参阅图4,图4示出了本申请一个实施例提供的折痕补偿方法的流程示意图。在具体的实施例中,所述折痕补偿方法应用于上述的电子设备。下面将针对图4所示的流程进行详细的阐述,所述折痕补偿方法具体可以包括以下步骤:
步骤S110:获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域。
在本申请实施例中,电子设备对屏幕处于显示状态时的折痕进行校正或补偿时,可以获取屏幕的折痕区域以及折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域,以便对其像素值进行调整后,使折痕区域与其邻近区域的呈现亮度匹配,从而消除折痕对显示效果的影响。其中,获取的目标区域指获取到的该区域的所有像素点的像素坐标。折痕区域指的是屏幕中折痕所在区域,折痕区域的邻近区域指的是屏幕中国与该折痕区域邻接的目标范围内的区域,目标范围可以是若干个像素点构成的范围。例如,邻近区域可以是与折痕区域的边界距离N个像素点处的像素点构成的边界,与折痕区域的边界构成的区域。
在一些实施方式中,电子设备可以通过图像采集装置对屏幕进行图像采集,以得到包含屏幕的图像;通过对采集的图像进行折痕区域的识别,在识别出折痕区域后,基于折痕区域获取折痕区域的邻近区域。电子设备在获取到屏幕的折痕区域和邻近区域后,则可以将折痕区域以及邻近区域中的至少一个区域作为待进行像素值调整的目标区域。其中,电子设备可以将获取的折痕区域以及邻近区域均作为待进行像素值调整的目标区域,也可以将折痕区域和邻近区域中的其中一个区域作为待进行像素值调整的目标区域。可以理解地,由于对屏幕采集的图像可以被认为是用户所看到的屏幕的显示效果,因此可以利用采集的图像,进行折痕区域以及邻近区域的识别,以及待调整像素值的目标区域的确定。
在一种可能的实施方式中,由于对目标区域进行像素值调整的目的,是为了使用户感知到折痕区域与邻近区域的亮度匹配,因此会对像素值进行增大或者减小,以使其像素的呈现亮度变化, 从而使两者的亮度匹配。但是,折痕区域以及邻近区域中,若是对其中一个区域的像素的呈现亮度提升时,该需要进行亮度提升的区域中像素的某个颜色分量值可能存在已经达到最大值,或者被增大后的颜色分量值超过最大值的情况。因此,在基于折痕区域以及邻近区域,确定待调整像素值的目标区域时,可以确定需要提升亮度的区域作为亮度提升区域;若该亮度提升区域中像素的任一颜色分量值达到最大值,或者颜色分量的最大值与任一颜色分量的差值小于设定阈值,则可以仅将需要降低亮度的区域作为待调整像素值的区域,也就是说,将折痕区域或者邻近区域作为待调整像素值的目标区域,对该目标区域的像素值进行减小,以使折痕区域与邻近区域的亮度匹配;若颜色分量的最大值与该亮度提升区域中每一颜色分量的差值均不小于设定阈值,则可以将折痕区域以及邻近区域中的至少一个区域作为待调整像素值的区域,该情况下,可以对其中一个区域的像素值进行增大,使该区域的亮度提升,同时对另一区域的像素值进行减小,使该区域的亮度降低,从而使两者的亮度匹配,也可以是,只对其中一个区域的像素值进行增大,使该区域的亮度提升,从而使两者亮度匹配,还可以是,只对其中一个区域的像素值进行减小,使该区域的亮度降低,从而使两者亮度匹配。
在一种可能的实施方式中,电子设备还可以基于采集的图像,确定该图像中折痕区域以及邻近区域的亮度,即确定出两者所呈现的亮度,以确定是否需要进行折痕补偿。其中,可以将折痕区域的亮度作为第一亮度,将邻近区域的亮度作为第二亮度,若第一亮度与第二亮度之间的差值大于目标阈值,则表示两者呈现的亮度之间差异较大,因此需要进行折痕补偿,该情况下,电子设备再以及折痕区域以及邻近区域确定待调整像素值的目标区域。
通过以上实施方式,可以实现电子设备的屏幕在任意的折叠角度下,均能够根据实际的折痕区域和邻近区域,对该折叠角度下的折痕进行补偿,以消除折痕对显示效果的影响。
在另一些实施方式中,电子设备中可以存储有各个折叠角度与折痕区域以及邻近区域的对应关系,并且电子设备中存储有折痕区域以及邻近区域的像素坐标。电子设备需要对折痕进行补偿时,可以获取当前状态下的折叠角度,并基于折叠角度确定对应的折痕区域以及邻近区域,再基于确定的折痕区域以及邻近区域,确定待调整像素值的目标区域,以便后续对目标区域的像素值进行调整,从而使折痕区域与邻近区域的呈现亮度匹配,进而消除折痕对显示效果的影响。
在该实施方式中,电子设备中可以存储有各个折叠角度下折痕区域以及邻近区域的亮度,电子设备在基于折痕区域以及邻近区域确定待调整像素值的目标区域时,可以确定折痕区域以及邻近区域的亮度;然后基于当前折叠角度下折痕区域以及邻近区域的亮度,确定待调整像素值的目标区域。其中,基于折痕区域以及邻近区域的亮度确定待调整像素值的目标区域的方式,可以参阅上个实施方式的内容。
通过以上实施方式,可以实现电子设备的屏幕在任意的折叠角度下,均能够根据折叠角度对应的折痕区域和邻近区域,对该折叠角度下的折痕进行补偿,以消除折痕对显示效果的影响。
步骤S120:获取所述目标区域对应的像素值的调整系数。
在本申请实施例中,电子设备在确定出待调整像素值的目标区域后,还可以确定该目标区域对应的像素值的调整系数,以便基于该调整系数对该目标区域的像素值进行调整后,能够使屏幕的折痕区域与邻近区域的呈现亮度匹配,从而使用户感受到两者的亮度匹配。
在一些实施方式中,若电子设备根据实时采集的包含屏幕的图像,确定待调整像素值的目标区域,则电子设备还可以根据采集的包含屏幕的图像,确定折痕区域的亮度以及邻近区域的亮度后,根据两者的亮度,确定目标区域对应的像素值的调整系数。可以理解地,由于对屏幕采集的图像可以被认为是用户所看到的屏幕的显示效果,因此可以利用采集的图像,进行折痕区域以及邻近区域的亮度识别,以对目标区域的像素值进行调整,使折痕区域以及邻近区域的亮度相同,从而消除折痕对显示效果的影响。可选地,电子设备可以基于像素值与亮度值之间的对应关系,并根据折痕区域以及邻近区域的亮度,确定出目标区域的像素值需要调整的调整系数,从而使得调整系数用于调整目标区域的像素值后,使折痕区域与邻近区域的亮度匹配。
可选地,电子设备在确定调整系数时,若目标区域为折痕区域,可以将邻近区域的像素点的平均亮度作为邻近区域的亮度,并基于折痕区域中每个像素点的亮度,与邻近区域的亮度,并利用以上方式,从而针对每个像素点确定出调整系数,在调整各个像素点的像素值后,即完成对折痕区域的像素值的调整。
在另一些实施方式中,若电子设备根据各个折叠角度与折痕区域以及邻近区域的对应关系确定的目标区域,则电子设备还可以存储有各个折叠角度下对目标区域的像素值的调整系数,以根据该调整系数对目标区域的像素值进行调整后,使折痕区域与邻近区域的亮度匹配。
在本申请实施例中,折痕区域与邻近区域的亮度匹配指的是折痕区域与邻近区域所呈现的亮 度匹配,即用户感知的亮度匹配。两者匹配可以是折痕区域的亮度与邻近区域的亮度之间的差值的绝对值处于预设范围内,也就是说两者相差不超过该预设范围,以使用户感知到折痕区域与邻近区域相差不大,从而消除折痕对显示效果的影响。
步骤S130:基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在本申请实施例中,电子设备在获取到目标区域以及对应的像素值的调整系数之后,则可以基于调整系数,对目标区域的像素值进行调整,并且,在调整目标区域的像素值之后,使得折痕区域与其邻近区域的呈现亮度匹配,进而消除折痕对显示效果的影响。
在一些实施方式中,电子设备基于调整系数,对目标区域的像素值进行调整,可以是基于调整系数,对电子设备显示的每帧画面的目标区域的像素值进行调整,从而使得电子设备显示任意画面内容时,都能够消除折痕对显示效果的影响,提升显示效果。
本申请实施例提供的折痕补偿方法,可以实现通过对折痕区域以及邻近区域中的至少一个的像素值进行调整,使得折痕区域与其邻近区域的呈现亮度匹配,以消除屏幕的折叠产生的折痕对显示效果的影响,进而提升屏幕的显示效果。
请参阅图5,图5示出了本申请另一个实施例提供的折痕补偿方法的流程示意图。该折痕补偿方法应用于上述电子设备,下面将针对图5所示的流程进行详细的阐述,所述折痕补偿方法具体可以包括以下步骤:
步骤S210:获取所述屏幕的折叠角度。
在本申请实施例中,电子设备在对屏幕的折痕进行补偿时,可以获取当前屏幕的折叠角度,以在根据当前的折叠角度,确定待调整像素值的区域,和对应的调整系数,从而对待调整像素值的区域进行像素值的调整,实现对当前的折叠角度下的折痕进行补偿。
在一些实施方式中,电子设备中可以设置有上述的角度检测模组,以检测屏幕的折叠角度。可选地,电子设备在需要对屏幕的折痕进行补偿时,可以控制角度检测模组对折叠角度进行检测,以检测当前的折叠角度。可以理解的,在设置有角度检测模组的电子设备中,由于屏幕随着壳体折叠或展开,从而可以利用上述用于检测壳体之间所成角度的角度检测模组,检测屏幕的折叠角度。
在另一些实施方式中,电子设备可以检测设置于屏幕的可弯折区域的阻抗可变材料的阻抗值,以确定屏幕折叠后显示区域之间所成的角度,其中,上述材料所受压力不同时,由于压阻效应,该材料的阻值不同。可以理解的,上述设置于可弯折区域的阻抗可变的材料,屏幕的两部分显示区域之间所成的角度不同时,该材料所受压力不同,则该材料的阻抗值不同,因此,可以根据不同角度与不同阻抗值的对应关系,以及检测到的上述材料的阻抗值,确定出屏幕的两部分显示区域之间所成的角度,即得到屏幕的折叠角度。
当然,具体检测屏幕的折叠角度的方式在本申请实施例中可以不作为限定。
步骤S220:根据所述屏幕的折叠角度与待调整像素值的屏幕区域的第一对应关系,获取所述折叠角度对应的屏幕区域,作为待调整像素值的目标区域,所述待调整像素值的屏幕区域为所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个。
在本申请实施例中,电子设备中可以存储有屏幕的折叠角度与待调整像素值的屏幕区域的第一对应关系。基于此,电子设备可以在获取到当前屏幕的折叠角度之后,则可以根据该第一对应关系,获取当前的折叠角度所对应的目标区域。其中,该第一对应关系中,屏幕的折叠角度对应的待调整像素值的屏幕区域为屏幕的折痕区域以及折痕区域的邻近区域中的至少一个。
在一些实施方式中,屏幕在不同折叠角度下对应的待调整像素值的屏幕区域,可以通过预先测试在不同折叠角度下的折痕区域和邻近区域,并基于得到的不同折叠角度下的折痕区域和邻近区域,确定出不同折叠角度对应的待调整像素值的屏幕区域。其中,具体获取该第一对应关系的方式在后续实施例中进行详细说明。
步骤S230:根据所述屏幕的折叠角度与调整系数的第二对应关系,获取所述折叠角度对应的调整系数,作为所述目标区域对应的像素值的调整系数。
在本申请实施例中,电子设备中还可以存储有屏幕的折叠角度与调整系数的第二对应关系。基于此,电子设备可以在获取到当前屏幕的折叠角度之后,则可以根据该第二对应关系,获取当前的折叠角度所对应的调整系数,以得到对上述目标区域的像素值进行调整的调整系数。
在一些实施方式中,屏幕在不同折叠角度下对应的调整系数,可以通过预先测试在不同折叠角度下的折痕区域和邻近区域,并基于得到的不同折叠角度下的折痕区域和邻近区域的亮度,确定出对目标区域的像素值进行调整的调整系数,以使不同折叠角度下,根据对应的调整系数对目 标区域的像素值进行调整后,能够使得折痕区域及其邻近区域的呈现亮度匹配。其中,具体获取该第二对应关系的方式在后续实施例中进行详细说明。
步骤S240:基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在本申请实施例中,步骤S240可以参阅前述实施例的内容,在此不再赘述。
本申请实施例提供的折痕补偿方法,可以实现根据屏幕当前的折叠角度,并根据预先存储的对应关系,确定该折叠角度对应的需调整像素值的目标区域和调整系数,然后基于调整系数对该目标区域进行调整,使得折痕区域与其邻近区域的呈现亮度匹配,以消除屏幕的折叠产生的折痕对显示效果的影响,进而提升屏幕的显示效果。并且,可以实现任一折叠角度下能够快速对折痕进行补偿,进一步提升了显示效果。
请参阅图6,图6示出了本申请又一个实施例提供的折痕补偿方法的流程示意图。该折痕补偿方法应用于上述电子设备,下面将针对图6所示的流程进行详细的阐述,所述折痕补偿方法具体可以包括以下步骤:
步骤S310:在所述电子设备处于预设状态时,显示测试图像。
针对前述实施例中的预设模型,本申请实施例中还包括对上述第一对应关系以及第二对应关系的获取方法,值得说明的是,对第一对应关系以及第二对应关系的获取可以是预先进行的,后续在每次对屏幕的折痕进行补偿时,则可以根据该第一对应关系以及第二对应关系,确定目标区域以及调整系数后,对目标区域的像素值进行调整,而无需每次对折痕进行补偿时去获取第一对应关系以及第二对应关系。
在本申请实施例中,电子设备在获取第一对应关系以及第二对应关系时,可以在电子设备处于预设状态时,显示测试图像,以在显示测试图像后,根据不同折叠角度下屏幕的显示情况,确定以上第一对应关系以及第二对应关系。
在一些实施方式中,预设状态可以包括:电子设备处于开机过程。可以理解地,电子设备处于开机过程时,由于用户不对电子设备进行实际使用,此时显示预设颜色的测试图像,不会对用户的使用体验造成影响。因此,可以在电子设备处于开机过程,显示以上测试图像,并根据后续步骤完成第一对应关系以及第二对应关系的获取,以使在开机后的使用电子设备的过程中,能够根据电子设备的折叠角度,对折痕进行补偿。
在另一些实施方式中,预设状态可以包括:在电子设备开机后的第一时长内。可以理解地,电子设备在开机后的第一时长内,对测试图像进行显示,并且通过后续步骤获取第一对应关系以及第二对应关系,可以在每次开机后完成对第一对应关系和第二对应关系的获取,后续使用电子设备的过程中,能够根据电子设备的折叠角度,对折痕进行补偿。其中,第一时长的具体数值可以不做限定,例如,3分钟、5分钟、8分钟等。
在又一些实施方式中,预设状态可以包括:电子设备在第二时长内未被使用。可以理解地,电子设备在第二时长内未被使用时,可以表征用户此时不对电子设备进行使用,因此可以显示测试图像,并通过后续步骤完成第一对应关系以及第二对应关系的获取,而不会对用户的使用体验造成影响。
在再一些实施方式中,预设状态可以包括:电子设备的屏幕的折叠次数每达到预设次数。可以理解地,电子设备的折痕主要由折叠次数所致,随着折叠次数的增多,其折痕也会发生变化,例如折痕会加深。因此,电子设备可以在每次折叠次数达到预设次数,也就是说,每折叠预设次数,则执行显示测试图像,并通过后续步骤获取第一对应关系以及第二对应关系,由此实现对第一对应关系以及第二对应关系的更新,以便电子设备被使用的过程中对折痕进行补偿时,能够准确补偿折痕。
当然,具体的预设状态可以不做限定。另外,预设状态也可以为上述实施方式的结合,例如,在电子设备处于开机过程、电子设备在第二时长内未被使用以及电子设备的屏幕的折叠次数每达到预设次数中,满足任意一种条件时执行显示测试图像,并通过后续步骤获取第一对应关系以及第二对应关系。
在一些实施方式中,测试图像为预设颜色的图像,即预设图像可以为纯色的测试图像,由此在显示预设颜色的图像时,对于用户而言,屏幕的折痕区域和邻近区域的呈现亮度应当一致,基于此,根据屏幕实际显示测试图像时折痕区域及其邻近区域的呈现效果,完成第一对应关系以及第二对应关系的获取。预设颜色的具体颜色可以不做限定,例如预设颜色可以为白色、红色、绿色、蓝色等。
步骤S320:获取所述屏幕在不同折叠角度下对显示所述测试图像的所述屏幕进行图像采集获 得的图像,得到多个折叠角度对应的屏幕图像。
在本申请实施例中,电子设备在显示预设颜色的测试图像之后,则可以获取其屏幕在不同折叠角度下,对屏幕进行图像采集获得的图像,以得到屏幕实际显示测试图像时折痕区域及其邻近区域的呈现效果,并基于此确定以上第一对应关系和第二对应关系。
在一些实施方式中,电子设备可以输出提示信息,以提示用户控制屏幕处于不同的屏幕角度。可选地,电子设备由于在显示预设测试图像,因此可以以语音提示的方式,提示用户将电子设备的屏幕由完全折叠的状态,缓缓展开至完全展开的状态;或者,提示用户将电子设备的屏幕由完全展开的状态,缓缓折叠至完全折叠的状态。
其中,电子设备的屏幕处于完全折叠的状态,以及处于完全展开的状态,即电子设备的显示区域之间的折叠角度满足相应的角度条件。可选地,电子设备的屏幕包括第一显示区域以及第二显示区域,第一显示区域与第二显示区域之间可相对折叠或展开,因此在获取到第一显示区域与第二显示区域之间的折叠角度之后,若第一显示区域与第二显示区域之间所成的角度小于设定值时时,确定第一显示区域与第二显示区域相对完全折叠的状态;若第一显示区域与第二显示区域之间所成的角度大于设定值时,确定第一显示区域与第二显示区域为相对完全展开的状态。上述设定值可以为第一显示区域与第二显示区域之间接***行时的角度值,例如设定值可以为0,也可以为3,也可以为5等。
在一些实施方式中,电子设备可以包括图像采集装置,图像采集装置可以为摄像头。电子设备可以利用其自身的图像采集装置,对屏幕进行图像采集,以获取不同折叠角度下的屏幕图像。可选地,由于电子设备的图像采集装置需要在不同的折叠角度下采集到屏幕图像,因此,该图像采集装置可相对屏幕的表面伸缩和旋转,从而可以控制图像采集装置的伸缩和旋转中的至少一种,以使屏幕处于图像采集装置的视野范围内,由此采集到屏幕图像。
在另一些实施方式中,电子设备处于不同折叠角度下,也可以由其他终端完成屏幕的图像采集。该方式下,屏幕在每个折叠角度下,可以停留一定时长,其他终端完成图像采集后将采集的图像发送至电子设备,由此,可以实现不同折叠角度下的屏幕图像的获取。
步骤S330:基于多个所述屏幕图像,获取所述多个折叠角度中每个折叠角度对应的折痕区域及其邻近区域。
在本申请实施例中,电子设备在获取到多个折叠角度下对应的屏幕图像之后,则可以获取多个折叠角度中每个折叠角度对应的折痕区域,以及每个折叠角度对应的折痕区域的邻近区域,以根据每个折痕角度对应的折痕区域和邻近区域,确定以上第一对应关系以及第二对应关系。
在一些实施方式中,电子设备可以通过图像识别的方式,识别出各个折叠角度下的折痕区域和邻近区域。可选地,通过将屏幕图像处理为灰度图像,然后通过灰度阈值的设定,以区分出折痕区域,然后基于确定的折痕区域,裁取出邻近区域,然后将图像中的折痕区域以及邻近区域映射到屏幕中,得到折痕的像素点的屏幕坐标集合,即屏幕的折痕区域,以及得到邻近区域的像素点的屏幕坐标集合,即屏幕的折痕区域的邻近区域。示例性地,请参阅图7,图中的区域A1和区域A2即为折痕区域,区域B1以及B2即为屏幕的折痕区域的邻近区域。
可选地,电子设备可以预先存储有用于识别折痕区域以及邻近区域的识别模型,该识别模型可以为深度神经网络等,通过将屏幕图像输入至该识别模型,可以得到相应的折痕区域和邻近区域。当然,电子设备确定屏幕的折痕区域以及邻近区域的方式可以不做限定。当然,也存在一些折叠角度下不存在折痕区域的情况,此时,则可以确定在折叠角度下不需要对折痕进行补偿,并将该折叠角度对应的折痕区域和邻近区域存储为空,以便电子设备根据第一对应关系确定出不存在折痕区域时,能够获知当前不需要对折痕进行补偿,即结束处理。
步骤S340:基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系。
在本申请实施例中,电子设备在确定出各个折叠角度下折痕区域以及邻近区域之后,则可以基于每个折叠角度对应的屏幕图像中折痕区域的亮度,以及每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述折叠角度对应的待调整像素值的屏幕区域。可以理解地,由于对屏幕图像可以被认为是用户所看到的屏幕的显示效果,因此可以利用屏幕图像中折痕区域和邻近区域的亮度,进行待调整像素值的目标区域的确定。其中,折痕区域的亮度以及邻近区域的亮度可以指平均亮度。
在一些实施方式中,由于折痕区域以及邻近区域中,存在对其中一个区域的像素的呈现亮度提升时,该需要进行亮度提升的区域中像素的某个颜色分量值可能存在已经达到最大值,或者被 增大后的颜色分量值超过最大值的情况。因此,在确定各个折叠角度下对应的待调整像素值的屏幕区域时,可以确定每个折叠角度下的屏幕区域以及邻近区域中亮度相对较低的区域,若该亮度相对较低的区域中像素的任一颜色分量值满足颜色分量条件,则只取亮度相对较高的区域作为待调整像素值的区域,其中,颜色分量条件包括:颜色分量值达到最大值,或者颜色分量最大值与任一颜色分量值的差值小于目标阈值。反之,若该亮度相对较低的区域中像素的每个颜色分量值均未达到最大值,或者每个颜色分量最大值与任一颜色分量值的差值不小于目标阈值,则可以同时将折痕区域以及邻近区域作为待调整像素值的区域,或者将其中一个作为待调整像素值的区域。举例而言,在第一折叠角度下,若屏幕区域以及邻近区域中亮度相对较低的区域中像素的每个颜色分量值不满足颜色分量条件,则同时将第一折叠角度下的屏幕区域以及邻近区域作为待调整像素值的区域,或者将第一折叠角度下的屏幕区域以及邻近区域中的其中一个作为待调整像素值的区域;若屏幕区域以及邻近区域中亮度相对较低的区域中像素的任一颜色分量值满足颜色分量条件,则将第一折叠角度下的亮度相对较高的区域作为待调整像素值的区域。
在一种可能的实施方式中,电子设备将其中一者作为待调整像素值的区域时,可以获取确定的折痕区域的面积作为第一面积,以及邻近区域的面积作为第二面积;比较第一面积与第二面积;根据比较结果,若第一面积大于第二面积,则可以将邻近区域作为待调整像素值的区域;若第二面积大于第一面积,则可以将折痕区域作为待调整像素值的区域;若第一面积与第二面积相等,则可以将任意一者作为待调整像素值的区域。由此,可以实现减少电子设备调整像素值时的处理量,另外,可以使得调整像素值的像素点的数量减少,由此,减少对画面内容的本身颜色的影响。
在一些实施方式中,电子设备可以获取折痕区域以及邻近区域中亮度相对较高的一者作为待调整像素值的区域。电子设备基于每个折叠角度对应的屏幕图像中折痕区域的亮度,以及每个折叠角度对应的屏幕图像中邻近区域的亮度,确定每个折叠角度对应的待调整像素值的屏幕区域,得到每个折叠角度与待调整像素值的屏幕区域的对应关系作为第一对应关系,可以包括:若第一目标角度对应的屏幕图像中折痕区域的亮度大于第一目标角度对应的屏幕图像中邻近区域的亮度,将第一目标角度对应的折痕区域作为第一目标角度对应的待调整像素值的屏幕区域,第一目标角度为多个折叠角度中的任一折叠角度;若第一目标角度对应的屏幕图像中邻近区域的亮度大于第一目标角度对应的屏幕图像中折痕区域的亮度,将第一目标角度对应的邻近区域作为第一目标角度对应的待调整像素值的屏幕区域。若两者亮度相等,则确定调整系数为1,即无需进行像素值调整。该实施方式中,电子设备可以针对每个折叠角度,以以上方式确定出待调整像素值的屏幕区域,从而可以建立起折叠角度与待调整像素值的屏幕区域的对应关系。
在以上实施方式中,在折痕区域与邻近区域的亮度之间的差值的绝对值大于预设亮度阈值时,可以表示折痕较为严重,该情况下,若确定的待调整像素值的区域为邻近区域,电子设备还可以增大邻近区域的面积,以使在调整邻近区域的像素值后,能够有效消除折痕的影响。
步骤S350:基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的调整系数,得到所述每个折叠角度与调整系数的对应关系作为所述第二对应关系。
在本申请实施例中,电子设备在确定出每个折叠角度对应的待调整像素值的目标区域后,还可以基于每个折叠角度对应的屏幕图像中折痕区域的亮度,以及每个折叠角度对应的屏幕图像中邻近区域的亮度,确定每个折叠角度对应的调整系数,得到每个折叠角度与调整系数的对应关系作为第二对应关系。
在一些实施方式中,电子设备可以获取第二目标角度对应的待调整像素值的屏幕区域的像素值以及伽马值,第二目标角度为多个折叠角度中的任一折叠角度;基于第二目标角度对应的屏幕图像中折痕区域的亮度与第二目标角度对应的屏幕图像中邻近区域的亮度之间的比值;基于该像素值、该伽马值以及该比值,获取第二目标角度对应的待调整像素值的屏幕区域的调整系数。通过该方式,可以获取到每个折叠角度对应的待调整像素值的屏幕区域的调整系数,从而得到每个折叠角度与调整系数的对应关系,并将该对应关系作为第二对应关系。其中,电子设备可以根据伽马值、像素值以及亮度值之间的对应公式,以及以上获取到的实际的像素值、伽马值和比值,确定出调整系数,以使对待调整像素值的区域的像素值进行调整后,能够使折痕区域与邻近区域的亮度匹配。
示例性地,以上显示的测试图像为白色,其RGB值为(255,255,255),若待调整像素值的区域为折痕区域,折痕区域中的任一像素的伽马值为γ,若折痕区域的亮度为B,像素值的任一颜色分量为D(b),根据Gamma(伽马值)的定义:(D(b)/255)
γ=B;邻近区域的亮度为A,需要把 折痕区域的像素值调整为D(a),才能使得折痕区域和邻近区域相等,根据Gamma的定义:(D(a)/255)
γ=A;由于D(b)的值为255,在将(D(a)/255)
γ=A,与(D(b)/255)
γ=B公式中的左边部分以及右边部分分别进行相除后,可以得到:
通过将伽马值,以及亮度比值代入该公式,即可计算出D(a),并通过与D(b)相除,即可得到调整系数。例如,若A为254,B为255,γ为2.2,则
从而可以得到调整系数为:254.544978/255=0.9982156。
当然,确定调整系数的实施方式可以不做限定,也可以通过其他的像素值与亮度值之间的对应关系,对调整系数进行确定。
在本申请实施例中,电子设备在获取到以上第一对应关系以及第二对应关系之后,则可以将第一对应关系以及第二对应关系进行存储,以在每次对折痕进行补偿时,能够基于存储的第一对应关系以及第二对应关系,对相应区域的像素值进行调整后,使得折痕区域与邻近区域的亮度匹配。
在一些实施方式中,电子设备还可以每间隔预设时长对第一对应关系以及第二对应关系进行更新。该方式中,电子设备可以每间隔预设时长,执行以上第一对应关系以及第二对应关系的获取过程,以实现对第一对应关系以及第二对应关系的更新,由此保证每次进行折痕补偿时,能够有效进行校准。
步骤S360:获取所述屏幕的折叠角度。
步骤S370:根据所述屏幕折叠的角度与待调整像素值的屏幕区域的第一对应关系,获取所述折叠角度对应的目标区域,所述待调整像素值的屏幕区域为所述屏幕的折痕区域以及折痕区域的邻近区域中的至少一个。
步骤S380:根据所述屏幕折叠的角度与调整系数的第二对应关系,获取所述折叠角度对应的调整系数,作为所述目标区域对应的像素值的调整系数。
步骤S390:基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在本申请实施例中,步骤S360至步骤S390可以参阅前述实施例的内容,在此不再赘述。
本申请实施例提供的折痕补偿方法,通过显示预设颜色的测试图像后,基于采集的不同折叠角度下的屏幕图像,确定各个折叠角度下待调整像素值的区域,以及对应的调整系数,由此可以预先获取到折叠角度与待调整像素值的屏幕区域以及调整系数的对应关系。实际对屏幕折痕进行补偿时,可以基于存储的对应关系,以及实际的折叠角度,确定目标区域以及调整系数后,基于调整系数对该目标区域进行调整,使得折痕区域与其邻近区域的呈现亮度匹配,以消除屏幕的折叠产生的折痕对显示效果的影响,进而提升屏幕的显示效果。并且,可以实现任一折叠角度下能够快速对折痕进行补偿,进一步提升了显示效果
请参阅图8,图8示出了本申请再一个实施例提供的折痕补偿方法的流程示意图。该折痕补偿方法应用于上述电子设备,下面将针对图8所示的流程进行详细的阐述,所述折痕补偿方法具体可以包括以下步骤:
步骤S410:显示测试图像。
在本申请实施例中,电子设备也可以在每次对折痕进行补偿时,显示测试图像,以在显示测试图像后,根据屏幕的显示情况,确定待调整像素值的目标区域和调整系数。
在一些实施方式中,电子设备可以在屏幕稳定的处于某个折叠角度后,即屏幕显示时的折痕稳定时,对测试图像进行显示,并通过后续步骤,实现对折痕的补偿。其中,测试图像也可以为预设颜色的图像,具体可以为纯色的测试图像,由此在显示测试图像时,对于用户而言,屏幕的折痕区域和邻近区域的呈现亮度应当一致,基于此,根据屏幕实际显示测试图像时折痕区域及其邻近区域的呈现效果,完成折痕的补偿。预设颜色的具体颜色可以不做限定,例如预设颜色可以为白色、红色、绿色、蓝色等。
步骤S420:获取当前折叠状态下对所述屏幕进行图像采集获得的目标图像。
在本申请实施例中,电子设备在显示预设颜色的测试图像之后,则可以获对屏幕进行图像采集获得的图像,以得到屏幕实际显示测试图像时折痕区域及其邻近区域的呈现效果,以据此对折 痕进行处理。同样的,电子设备可以通过其自身的图像采集装置或者其他终端的图像采集装置对屏幕进行图像采集,从而得到包含屏幕的目标图像。
步骤S430:基于所述目标图像,获取所述屏幕的折痕区域以及所述折痕区域的邻近区域。
在一些实施方式中,电子设备可以通过图像识别的方式,识别出折痕区域和邻近区域。可选地,通过将目标图像处理为灰度图像,然后通过灰度阈值的设定,以区分出折痕区域,然后基于确定的折痕区域,裁取出邻近区域,然后将图像中的折痕区域以及邻近区域映射到屏幕中,得到折痕的像素点的屏幕坐标集合,即屏幕的折痕区域,以及得到邻近区域的像素点的屏幕坐标集合,即屏幕的折痕区域的邻近区域。可选地,电子设备可以预先存储有用于识别折痕区域以及邻近区域的识别模型,该识别模型可以为深度神经网络等,通过将目标图像输入至该识别模型,可以得到相应的折痕区域和邻近区域。当然,电子设备确定屏幕的折痕区域以及邻近区域的方式可以不做限定。当然,也存在根据目标图像识别出不存在折痕区域的情况,此时,则可以确定不需要对折痕进行补偿,即结束处理。
步骤S440:基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域。
在本申请实施例中,电子设备可以基于目标图像中所述折痕区域的亮度,以及目标图像中所述邻近区域的亮度,获取折痕区域以及邻近区域中的至少一个作为待调整像素值的目标区域。
在一些实施方式中,电子设备可以获取折痕区域以及邻近区域中亮度相对较高的一者作为待调整像素值的区域。其中,若所述目标图像中所述折痕区域的亮度大于所述目标图像中所述邻近区域的亮度,将所述折痕区域作为待调整像素值的目标区域;若所述目标图像中所述邻近区域的亮度大于所述目标图像中所述折痕区域的亮度,将所述邻近区域作为待调整像素值的目标区域。若两者亮度相等,则确定调整系数为1,即无需进行像素值调整。
在另一些实施方式中,电子设备将其中一者作为待调整像素值的屏幕区域时,可以获取确定的折痕区域的面积作为第一面积,以及邻近区域的面积作为第二面积;比较第一面积与第二面积;根据比较结果,若第一面积大于第二面积,则可以将邻近区域作为待调整像素值的区域;若第二面积大于第一面积,则可以将折痕区域作为待调整像素值的区域;若第一面积与第二面积相等,则可以将任意一者作为待调整像素值的区域。由此,可以实现减少电子设备调整像素值时的处理量,另外,可以使得调整像素值的像素点的数量减少,由此,减少对画面内容的本身颜色的影响。
步骤S450:基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,确定所述目标区域对应的像素值的调整系数。
在本申请实施例中,电子设备确定出目标区域后,还可以基于目标图像中折痕区域的亮度,以及目标图像中邻近区域的亮度,确定目标区域对应的像素值的调整系数。其中,确定调整系数的方式可以参阅前述实施例步骤S350的实施方式。例如,电子设备可以获取目标区域的像素值以及伽马值;基于目标图像中折痕区域的亮度与目标图像中邻近区域的亮度之间的亮度比值;基于像素值、伽马值以及亮度比值,确定目标区域对应的像素值的调整系数。
步骤S460:基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在本申请实施例中,步骤S460可以参阅前述实施例的内容,在此不再赘述。
本申请实施例提供的折痕补偿方法,可以实现每次对折痕进行补偿处理时,显示预设颜色的测试图像,并基于显示测试图像时的屏幕图像,确定待调整像素值的目标区域以及调整系数,然后基于调整系数对该目标区域进行调整,使得折痕区域与其邻近区域的呈现亮度匹配,以消除屏幕的折叠产生的折痕对显示效果的影响,进而提升屏幕的显示效果。并且,可以实现任一折叠角度下能够快速对折痕进行补偿,进一步提升了显示效果。
请参阅图9,图9示出了本申请又另一个实施例提供的折痕补偿方法的流程示意图。该折痕补偿方法应用于上述电子设备,下面将针对图9所示的流程进行详细的阐述,所述折痕补偿方法具体可以包括以下步骤:
步骤S510:响应于所述屏幕的折叠角度发生变化,获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域。
在本申请实施例中,电子设备可以屏幕的折叠角度发生变化时,响应于产生的该变化,执行获取屏幕的折痕区域或者折痕区域的邻近区域作为待调整像素值的目标区域,以及后续的步骤,以使调整目标区域的像素值后,能够使折痕区域与邻近区域的亮度匹配,消除折痕对显示效果的影响。可以理解地,在折叠角度发生变化时,则屏幕的折痕也可能发生变化,因此可以执行对屏幕的折痕补偿的处理过程,实现不同折叠角度下能消除折痕对显示效果的影响。
在一些实施方式中,为避免用户频繁折叠屏幕,而电子设备频繁进行折痕补偿的处理,因此在屏幕的折叠角度发生变化时,可以在折叠角度未发生变化的时长达到时长阈值,例如达到1分钟时,才执行获取屏幕的折痕区域或者折痕区域的邻近区域作为待调整像素值的目标区域,以及后续的步骤,以使调整目标区域的像素值后,能够使折痕区域与邻近区域的亮度匹配。
步骤S520:获取所述目标区域对应的像素值的调整系数。
步骤S530:基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在本申请实施例中,步骤S520以及步骤S530可以参阅前述实施例的内容,在此不再赘述。
在一些实施方式中,电子设备也可以响应于用于校准折痕的校准操作,执行获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域,以及后续的步骤,以使调整目标区域的像素值后,能够使折痕区域与邻近区域的亮度匹配,消除折痕对显示效果的影响。可以理解地,在不同折叠角度下的折痕表现可能不同,因此用户在感知到屏幕的折痕后,可以输入用于校准折痕的校准操作至电子设备,然后电子设备响应该校准操作,进行以上处理,以消除折痕对显示效果的影响。当然,电子设备也可以在折痕可能发生变化的其他情况下,执行以上处理,以消除折痕对显示效果的影响。
在一些实施方式中,对折痕的影响进行消除,也可以通过设置水滴折叠的结构,以减小折痕影响。另外,带动屏幕折叠的转轴可以设置为半径可变的转轴,通过在折叠或者展开屏幕的过程中,动态地调整屏幕的弯折区的半径和曲率,使得弯折区接近圆形,则弯折过程中受力会均匀一些,从而避免产生折痕。
本申请实施例提供的折痕补偿方法,可以实现在折叠角度发生变化的情况下,通过对折痕区域以及邻近区域中的至少一个的像素值进行调整,使得折痕区域与其邻近区域的呈现亮度匹配,以消除不同折叠角度下屏幕折叠产生的折痕对显示效果的影响,进而提升屏幕的显示效果。
请参阅图10,其示出了本申请实施例提供的一种折痕补偿装置400的结构框图。该折痕补偿装置400应用上述的电子设备,所述电子设备包括可折叠的屏幕,该折痕补偿装置400包括:校准区域获取模块410、调整系数获取模块420以及像素值调整模块430。其中,所述校准区域获取模块410用于获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域;所述调整系数获取模块420用于获取所述目标区域对应的像素值的调整系数;所述像素值调整模块430用于基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
在一些实施方式中,校准区域获取模块410可以用于:获取所述屏幕的折叠角度;根据所述屏幕的折叠角度与待调整像素值的屏幕区域的第一对应关系,获取所述折叠角度对应的屏幕区域,作为待调整像素值的目标区域,所述待调整像素值的屏幕区域为所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个;所述调整系数获取模块420用于:根据所述屏幕的折叠角度与调整系数的第二对应关系,获取所述折叠角度对应的调整系数,作为所述目标区域对应的像素值的调整系数。
作为一种可能的实施方式,该折痕补偿装置400还可以包括图像显示模块、屏幕图像获取模块、目标区域获取模块、第一关系获取模块以及第二关系获取模块。图像显示模块用于在所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域,以及所述获取所述目标区域对应的像素值的调整系数之前,在所述电子设备处于预设状态时,显示测试图像;屏幕图像获取模块用于获取所述屏幕在不同折叠角度下对显示所述测试图像的所述屏幕进行图像采集获得的图像,得到多个折叠角度对应的屏幕图像;目标区域获取模块用于基于所述多个折叠角度对应的屏幕图像,获取所述多个折叠角度中每个折叠角度对应的折痕区域及其邻近区域;第一关系获取模块用于基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系;第二关系获取模块用于基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的调整系数,得到所述每个折叠角度与所述调整系数的对应关系作为所述第二对应关系。
可选地,第一关系获取模块可以用于:若第一目标角度对应的屏幕图像中折痕区域的亮度大于所述第一目标角度对应的屏幕图像中邻近区域的亮度,将所述第一目标角度对应的折痕区域作为所述第一目标角度对应的待调整像素值的屏幕区域,所述第一目标角度为所述多个折叠角度中的任一折叠角度。
所述第一关系获取模块还可以用于:若所述第一目标角度对应的屏幕图像中邻近区域的亮度大于所述第一目标角度对应的屏幕图像中折痕区域的亮度,将所述第一目标角度对应的邻近区域作为所述第一目标角度对应的待调整像素值的屏幕区域。
可选地,第二关系获取模块可以用于:获取第二目标角度对应的待调整像素值的屏幕区域的像素值以及伽马值,所述第二目标角度为所述多个折叠角度中的任一折叠角度;基于所述第二目标角度对应的屏幕图像中折痕区域的亮度与所述第二目标角度对应的屏幕图像中邻近区域的亮度之间的比值;基于所述像素值、所述伽马值以及所述比值,获取所述第二目标角度对应的待调整像素值的屏幕区域的调整系数。
作为一种可能的实施方式,所述测试图像为预设颜色的图像。
作为一种可能的实施方式,该折痕补偿装置400还可以包括关系更新模块。关系更新模块用于每间隔预设时长对所述第一对应关系以及所述第二对应关系进行更新。
在一些实施方式中,所述电子设备还包括图像采集装置。校准区域获取模块可以用于:显示测试图像;获取当前折叠状态下所述图像采集装置对所述屏幕进行图像采集获得的目标图像;基于所述目标图像,获取所述屏幕的折痕区域以及所述折痕区域的邻近区域;基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域。所述调整系数获取模块420用于:基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,确定所述目标区域对应的像素值的调整系数。
作为一种可能的实施方式,校准区域获取模块410基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域,可以包括:若所述目标图像中所述折痕区域的亮度大于所述目标图像中所述邻近区域的亮度,将所述折痕区域作为待调整像素值的目标区域;若所述目标图像中所述邻近区域的亮度大于所述目标图像中所述折痕区域的亮度,将所述邻近区域作为待调整像素值的目标区域。
作为一种可能的实施方式,所述调整系数获取模块420可以具体用于:获取所述目标区域的像素值以及伽马值;基于所述目标图像中所述折痕区域的亮度与所述目标图像中所述邻近区域的亮度之间的亮度比值;基于所述像素值、所述伽马值以及所述亮度比值,确定所述目标区域对应的像素值的调整系数。
作为一种可能的实施方式,所述测试图像为预设颜色的图像。
在一些实施方式中,校准区域获取模块410可以用于:响应于所述屏幕的折叠角度发生变化,执行所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域。
在一些实施方式中,校准区域获取模块410可以用于:响应于用于校准折痕的校准操作,执行所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
综上所述,本申请提供的方案,通过获取屏幕的折痕区域以及折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域,获取该目标区域对应的像素值的调整系数,然后基于该调整系数对目标区域的像素值进行调整,以使折痕区域与邻近区域的呈现亮度匹配,从而可以实现通过对折痕区域以及邻近区域中的至少一个的像素值进行调整,以消除屏幕的折叠产生的折痕对显示效果的影响,提升屏幕的显示效果。
请参考图11,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、笔记本电脑等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器160、存储器170、可折叠的屏幕120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器170中并被配置为由一个或多个处理器160执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器160可以包括一个或者多个处理核。处理器160利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器170内的指令、程序、代码集或指令集,以及调用存储在存储器170内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器 160可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器160可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器160中,单独通过一块通信芯片进行实现。
存储器170可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器170可用于存储指令、程序、代码、代码集或指令集。存储器170可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
可折叠的屏幕120用于显示由用户输入的信息、提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,触摸屏可设置于可折叠的屏幕120上从而与可折叠的屏幕120构成一个整体。另外,可折叠的屏幕130可以包括第一显示区域以及第二显示区域,第一显示区域以及第二显示区域可选择性的相对折叠或展开。
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种折痕补偿方法,应用于电子设备,所述电子设备包括可折叠的屏幕,所述方法包括:获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域;获取所述目标区域对应的像素值的调整系数;基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
- 根据权利要求1所述的方法,所述获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域,以及所述获取所述目标区域对应的像素值的调整系数,包括:获取所述屏幕的折叠角度;根据所述屏幕的折叠角度与待调整像素值的屏幕区域的第一对应关系,获取所述折叠角度对应的屏幕区域,作为待调整像素值的目标区域,所述待调整像素值的屏幕区域为所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个;根据所述屏幕的折叠角度与调整系数的第二对应关系,获取所述折叠角度对应的调整系数,作为所述目标区域对应的像素值的调整系数。
- 根据权利要求2所述的方法,在所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域,以及所述获取所述目标区域对应的像素值的调整系数之前,所述方法还包括:在所述电子设备处于预设状态时,显示测试图像;获取所述屏幕在不同折叠角度下对显示所述测试图像的所述屏幕进行图像采集获得的图像,得到多个折叠角度对应的屏幕图像;基于多个所述屏幕图像,获取所述多个折叠角度中每个折叠角度对应的折痕区域及其邻近区域;基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系;基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的调整系数,得到所述每个折叠角度与所述调整系数的对应关系作为所述第二对应关系。
- 根据权利要求3所述的方法,所述基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系,包括:若第一目标角度对应的屏幕图像中折痕区域的亮度大于所述第一目标角度对应的屏幕图像中邻近区域的亮度,将所述第一目标角度对应的折痕区域作为所述第一目标角度对应的待调整像素值的屏幕区域,所述第一目标角度为所述多个折叠角度中的任一折叠角度。
- 根据权利要求4所述的方法,所述基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系,还包括:若所述第一目标角度对应的屏幕图像中邻近区域的亮度大于所述第一目标角度对应的屏幕图像中折痕区域的亮度,将所述第一目标角度对应的邻近区域作为所述第一目标角度对应的待调整像素值的屏幕区域。
- 根据权利要求3所述的方法,所述基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的待调整像素值的屏幕区域,得到所述每个折叠角度与所述待调整像素值的屏幕区域的对应关系作为所述第一对应关系,包括:确定所述每个折叠角度下的屏幕区域以及邻近区域中亮度相对较低的区域;若所述亮度相对较低的区域中像素的任一颜色分量值满足颜色分量条件,则取所述亮度相对较高的区域作为待调整像素值的区域;若所述亮度相对较低的区域中像素的每个颜色分量值均不满足所述颜色分量条件,则同时将所述折痕区域以及邻近区域作为待调整像素值的区域,或者将所述折痕区域以及邻近区域中的其中一个作为待调整像素值的区域。
- 根据权利要求3-6任一项所述的方法,所述基于所述每个折叠角度对应的屏幕图像中折痕区域的亮度,以及所述每个折叠角度对应的屏幕图像中邻近区域的亮度,确定所述每个折叠角度对应的调整系数,得到所述每个折叠角度与所述调整系数的对应关系作为所述第二对应关系,包括:获取第二目标角度对应的待调整像素值的屏幕区域的像素值以及伽马值,所述第二目标角度为所述多个折叠角度中的任一折叠角度;基于所述第二目标角度对应的屏幕图像中折痕区域的亮度与所述第二目标角度对应的屏幕图像中邻近区域的亮度之间的比值;基于所述像素值、所述伽马值以及所述比值,获取所述第二目标角度对应的待调整像素值的屏幕区域的调整系数。
- 根据权利要求3-7任一项所述的方法,所述测试图像为预设颜色的图像。
- 根据权利要求3-8任一项所述的方法,其特征在于,所述预设状态包括:所述电子设备处于开机过程、在所述电子设备开机后的第一时长内、所述电子设备在第二时长内未被使用、或者所述电子设备的屏幕的折叠次数每达到预设次数。
- 根据权利要求2-9任一项所述的方法,所述方法还包括:每间隔预设时长对所述第一对应关系以及所述第二对应关系进行更新。
- 根据权利要求1所述的方法,其特征在于,所述获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域,以及所述获取所述目标区域对应的像素值的调整系数,包括:显示测试图像;获取当前折叠状态下对显示所述测试图像的所述屏幕,进行图像采集获得的目标图像;基于所述目标图像,获取所述屏幕的折痕区域以及所述折痕区域的邻近区域;基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域;基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,确定所述目标区域对应的像素值的调整系数。
- 根据权利要求11所述的方法,所述基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域,包括:若所述目标图像中所述折痕区域的亮度大于所述目标图像中所述邻近区域的亮度,将所述折痕区域作为待调整像素值的目标区域。
- 根据权利要求12所述的方法,所述基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,获取所述折痕区域以及所述邻近区域中的至少一个作为待调整像素值的目标区域,还包括:若所述目标图像中所述邻近区域的亮度大于所述目标图像中所述折痕区域的亮度,将所述邻近区域作为待调整像素值的目标区域。
- 根据权利要求11-13任一项所述的方法,所述基于所述目标图像中所述折痕区域的亮度,以及所述目标图像中所述邻近区域的亮度,确定所述目标区域对应的像素值的调整系数,包括:获取所述目标区域的像素值以及伽马值;基于所述目标图像中所述折痕区域的亮度与所述目标图像中所述邻近区域的亮度之间的亮度比值;基于所述像素值、所述伽马值以及所述亮度比值,确定所述目标区域对应的像素值的调整系数。
- 根据权利要求11-14任一项所述的方法,所述测试图像为预设颜色的图像。
- 根据权利要求1-15任一项所述的方法,所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域,包括:响应于所述屏幕的折叠角度发生变化,执行所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域。
- 根据权利要求1-15任一项所述的方法,所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域,包括:响应于用于校准折痕的校准操作,执行所述获取所述屏幕的折痕区域或者所述折痕区域的邻近区域作为待调整像素值的目标区域。
- 一种折痕补偿装置,应用于电子设备,所述电子设备包括可折叠的屏幕,所述装置包括:校准区域获取模块、调整系数获取模块以及像素值调整模块,其中:所述校准区域获取模块用于获取所述屏幕的折痕区域以及所述折痕区域的邻近区域中的至少一个,作为待调整像素值的目标区域;所述调整系数获取模块用于获取所述目标区域对应的像素值的调整系数;所述像素值调整模块用于基于所述调整系数调整所述目标区域的像素值后,所述折痕区域与所述邻近区域的呈现亮度匹配。
- 一种电子设备,包括:可折叠的屏幕;一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。
- 一种计算机可读取存储介质,其中,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110961498.8A CN113674657A (zh) | 2021-08-20 | 2021-08-20 | 折痕补偿方法、装置、电子设备及存储介质 |
CN202110961498.8 | 2021-08-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023020258A1 true WO2023020258A1 (zh) | 2023-02-23 |
Family
ID=78544613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/108967 WO2023020258A1 (zh) | 2021-08-20 | 2022-07-29 | 折痕补偿方法、装置、电子设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113674657A (zh) |
WO (1) | WO2023020258A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113674657A (zh) * | 2021-08-20 | 2021-11-19 | Oppo广东移动通信有限公司 | 折痕补偿方法、装置、电子设备及存储介质 |
CN114113141B (zh) * | 2021-11-29 | 2024-05-24 | 合肥维信诺科技有限公司 | 显示屏折痕程度确定方法和装置 |
CN115994940B (zh) * | 2022-11-09 | 2023-12-08 | 荣耀终端有限公司 | 一种折叠屏设备的折痕程度测试方法、设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015111703A (ja) * | 2009-07-18 | 2015-06-18 | 株式会社半導体エネルギー研究所 | 半導体装置 |
CN107689206A (zh) * | 2016-08-03 | 2018-02-13 | 三星电子株式会社 | 显示设备及其控制方法 |
CN108648626A (zh) * | 2018-05-10 | 2018-10-12 | Oppo广东移动通信有限公司 | 显示屏控制方法、装置、终端及可读存储介质 |
CN111459233A (zh) * | 2020-04-22 | 2020-07-28 | 维沃移动通信有限公司 | 显示方法、电子设备及存储介质 |
CN113674657A (zh) * | 2021-08-20 | 2021-11-19 | Oppo广东移动通信有限公司 | 折痕补偿方法、装置、电子设备及存储介质 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102009724B1 (ko) * | 2012-10-29 | 2019-08-13 | 삼성디스플레이 주식회사 | 플렉서블 표시 장치 및 표시 장치의 휘도 보정 방법 |
KR102181236B1 (ko) * | 2014-04-18 | 2020-11-23 | 삼성디스플레이 주식회사 | 표시 장치 및 표시 장치 제어 방법 |
US20160093240A1 (en) * | 2014-09-30 | 2016-03-31 | Dell Products, Lp | System for Varying Light Output in a Flexible Display |
KR102293839B1 (ko) * | 2014-12-30 | 2021-08-26 | 엘지디스플레이 주식회사 | 표시장치 및 이의 구동방법 |
CN109036271B (zh) * | 2018-08-17 | 2020-06-12 | 武汉华星光电半导体显示技术有限公司 | 曲面屏弯折区色偏修正的方法、装置、存储介质及终端 |
CN110956924B (zh) * | 2018-09-26 | 2022-01-11 | 北京小米移动软件有限公司 | 屏幕亮度调节方法及装置、电子设备、可读存储介质 |
KR20200053705A (ko) * | 2018-11-08 | 2020-05-19 | 삼성디스플레이 주식회사 | 표시 장치 및 이의 구동 방법 |
KR102604729B1 (ko) * | 2018-12-21 | 2023-11-22 | 엘지디스플레이 주식회사 | 폴더블 표시 장치 및 화질 개선 방법 |
CN111783664B (zh) * | 2020-06-30 | 2024-05-07 | 珠海格力电器股份有限公司 | 折叠屏的折痕补偿方法、装置、电子设备和存储介质 |
-
2021
- 2021-08-20 CN CN202110961498.8A patent/CN113674657A/zh active Pending
-
2022
- 2022-07-29 WO PCT/CN2022/108967 patent/WO2023020258A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015111703A (ja) * | 2009-07-18 | 2015-06-18 | 株式会社半導体エネルギー研究所 | 半導体装置 |
CN107689206A (zh) * | 2016-08-03 | 2018-02-13 | 三星电子株式会社 | 显示设备及其控制方法 |
CN108648626A (zh) * | 2018-05-10 | 2018-10-12 | Oppo广东移动通信有限公司 | 显示屏控制方法、装置、终端及可读存储介质 |
CN111459233A (zh) * | 2020-04-22 | 2020-07-28 | 维沃移动通信有限公司 | 显示方法、电子设备及存储介质 |
CN113674657A (zh) * | 2021-08-20 | 2021-11-19 | Oppo广东移动通信有限公司 | 折痕补偿方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113674657A (zh) | 2021-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023020258A1 (zh) | 折痕补偿方法、装置、电子设备及存储介质 | |
CN110177174B (zh) | 显示处理方法、装置、移动终端以及存储介质 | |
US11016531B2 (en) | Foldable device and method for controlling image capturing by using plurality of cameras | |
CN107357540B (zh) | 一种显示方向的调整方法及移动终端 | |
CN109947383B (zh) | 显示控制方法、装置、移动终端及存储介质 | |
CN109151442B (zh) | 一种图像拍摄方法及终端 | |
US11735143B2 (en) | Electronic device and method of controlling the same | |
US20220050565A1 (en) | Screenshot method and terminal device | |
CN109542306B (zh) | 一种截屏方法及终端设备 | |
CN110275612B (zh) | 亮度调节方法、装置、电子设备及存储介质 | |
US12025887B2 (en) | Shooting method and electronic device | |
US20210055821A1 (en) | Touchscreen Device and Method Thereof | |
CN109725773B (zh) | 一种柔性屏的控制方法及终端 | |
CN111459233B (zh) | 显示方法、电子设备及存储介质 | |
JP2021531589A (ja) | 目標対象の動作認識方法、装置及び電子機器 | |
US20190243462A1 (en) | Gesture identification method and electronic device | |
CN110533651B (zh) | 一种图像处理方法及装置 | |
CN111712786A (zh) | 触摸输入处理方法及支持该方法的电子装置 | |
CN113924611A (zh) | 减少电子装置的显示器劣化的方法及使用该方法的可折叠电子装置 | |
CN113168208A (zh) | 可折叠电子设备和在可折叠电子设备中显示信息的方法 | |
CN110908750B (zh) | 一种截屏方法及电子设备 | |
CN109313797A (zh) | 一种图像显示方法及终端 | |
US20240214659A1 (en) | Electronic device, photographing method, and photographing apparatus | |
CN108062370B (zh) | 一种应用程序搜索方法及移动终端 | |
CN111131712B (zh) | 一种图像处理方法、装置和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22857570 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |