Picture display method and device, electronic equipment and storage medium

By cropping and supplementing the screen in the electronic device to adapt to the current posture of the display screen, the problem that the stored screen cannot be adapted to the horizontal screen electronic device is solved, and the display effect is improved.

CN119473190APending Publication Date: 2025-02-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311001801.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The pictures stored in electronic devices are usually pictures that are adapted to vertical screen electronic devices, and cannot be adapted to when the electronic devices are in a horizontal screen posture, resulting in poor display effect.

Method used

When the display screen has a first posture, the first picture shared by the first posture and the second posture is read, and when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped in the first picture and when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cut. , supplement the fourth and fifth areas to obtain the third screen that is adapted to the current posture of the display screen.

Benefits of technology

The screen stored by the electronic device can be adapted to a display screen with various postures, and the screen display effect of the electronic device is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473190A_ABST
    Figure CN119473190A_ABST
Patent Text Reader

Abstract

The invention relates to a picture display method and device, electronic equipment and a storage medium. The method is executed by the electronic equipment and can comprise the steps that when a display screen has a first posture, a first picture shared by the first posture and a second posture is read; the first picture sequentially comprises a first area, a second area and a third area; when the first picture is matched with the second posture, cutting a first area and a third area of the first picture to obtain a second picture; a fourth area and a fifth area are supplemented on the second picture, a third picture is obtained, and the connecting line of the fourth area and the fifth area is perpendicular to the connecting line between the first area and the third area; and displaying the third picture on the display screen with the first posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a screen display method and device, an electronic device, and a storage medium. Background Art

[0002] Users are increasingly relying on electronic devices, especially electronic devices that include display screens, such as mobile phones, tablet computers, smart watches and / or smart bracelets.

[0003] In the related art, the images stored in the electronic device are usually adapted to the vertical screen electronic device. However, when the electronic device is in the horizontal screen posture, the stored images cannot be adapted to the current posture of the electronic device, resulting in a poor display effect. Summary of the invention

[0004] Embodiments of the present disclosure provide a screen display method and device, an electronic device, and a storage medium.

[0005] A first aspect of an embodiment of the present disclosure provides a screen display method, which is executed by a processing module of an electronic device, and the method includes:

[0006] When the display screen has a first posture, a first screen shared by the first posture and the second posture is read; the first screen sequentially includes: a first area, a second area, and a third area;

[0007] When the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain a second picture;

[0008] Supplementing the second picture with a fourth area and a fifth area to obtain a third picture, wherein a line connecting the fourth area and the fifth area is perpendicular to a line connecting the first area and the third area;

[0009] The third picture is displayed on the display screen having the first posture.

[0010] Optionally, if the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

[0011] Optionally, when the first picture is adapted to the second posture, cropping the first area and the third area of ​​the first picture to obtain the second picture includes:

[0012] When the first picture is adapted to the second posture, obtaining a first length in a first direction of the first picture and a second length in the first direction of the display screen;

[0013] Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the third area in the first picture;

[0014] Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain the second picture, and the image center of the second picture is used to be displayed at the display center of the display screen.

[0015] Optionally, the adding the fourth area and the fifth area to the second picture to obtain the third picture includes:

[0016] Acquire a third length of the display screen in the second direction and a fourth length of the second picture in the second direction;

[0017] Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen;

[0018] Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

[0019] Optionally, when the display screen has a first posture, reading a first screen shared by the first posture and the second posture includes:

[0020] When the electronic device is powered on and the display screen has a first posture, a first screen shared by the first posture and a second posture is read.

[0021] Optionally, when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture, further comprising:

[0022] When the first picture is adapted to the second posture, determining whether the first picture has a target object that needs to be oriented in a specified direction;

[0023] When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

[0024] Optionally, the specified direction is the direction of the ground.

[0025] Optionally, the method further comprises:

[0026] When the first picture is adapted to the first posture, the first picture is displayed on a display screen having the first posture.

[0027] Optionally, the method further comprises:

[0028] Determining whether the first picture has a target object that needs to be oriented in a specified direction;

[0029] When the first picture has a target object that needs to face the specified direction, the target object faces the pointing direction when the first picture is displayed on the display screen with the first posture.

[0030] Optionally, the fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

[0031] A second aspect of the present disclosure provides a screen display device, the device comprising:

[0032] A reading module, configured to read a first screen shared by the first and second screens when the display screen has a first posture; the first screen sequentially includes: a first area, a second area, and a third area;

[0033] A cropping module, used for cropping the first area and the third area of ​​the first image to obtain a second image when the first image is adapted to the second posture;

[0034] A supplementing module, used for supplementing the fourth area and the fifth area on the second picture to obtain a third picture, wherein a line connecting the fourth area and the fifth area is perpendicular to a line connecting the first area and the third area;

[0035] The first display module is used to display the third picture on the display screen with the first posture.

[0036] Optionally, if the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

[0037] Optionally, the cutting module is used to:

[0038] When the first picture is adapted to the second posture, obtaining a first length of the first picture in a first direction and a second length of the display screen in the first direction;

[0039] Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the second area in the first picture;

[0040] Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain the second picture, and the image center of the second picture is used to be displayed at the display center of the display screen.

[0041] Optionally, the supplementary module is used to:

[0042] Acquire a third length of the display screen in the second direction and a fourth length of the second picture in the second direction;

[0043] Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen;

[0044] Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

[0045] Optionally, the reading module is used to:

[0046] When the electronic device is powered on and the display screen has a first posture, a first screen shared by the first posture and a second posture is read.

[0047] Optionally, the cropping module is further used to:

[0048] When the first picture is adapted to the second posture, determining whether the first picture has a target object that needs to be oriented in a specified direction;

[0049] When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

[0050] Optionally, the specified direction is the direction of the ground.

[0051] Optionally, the device further comprises:

[0052] The second display module is used to display the first picture on a display screen having the first posture when the first picture is adapted to the first posture.

[0053] Optionally, the device further comprises:

[0054] A determination module, used to determine whether the first picture has a target object that needs to be oriented in a specified direction;

[0055] The third display module is configured to, when the first picture has a target object that needs to face the specified direction, make the target object face the pointing direction when displaying the first picture on the display screen with the first posture.

[0056] Optionally, the fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

[0057] A third aspect of the present disclosure provides an electronic device, including:

[0058] a memory for storing processor-executable instructions;

[0059] A processor connected to the memory;

[0060] Among them, the processor is configured to execute the screen display method provided by any technical solution of the first aspect.

[0061] The fourth aspect of the embodiments of the present disclosure provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the computer, the computer can execute the screen display method provided by any technical solution of the first aspect.

[0062] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0063] When the picture stored in the electronic device does not match the current posture of the display screen, the first picture can be cropped and supplemented to obtain a picture adapted to the current posture of the display screen. That is, by cropping and supplementing a picture stored in the electronic device, a picture stored in the electronic device can be adapted to display screens with various postures, thereby improving the picture display effect of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0065] Figure 1A It is a schematic diagram of a screen when an electronic device is in a vertical screen posture;

[0066] Figure 1B A schematic diagram of a screen when an electronic device is in a horizontal position;

[0067] Figure 2 is a flowchart of a screen display method according to an exemplary embodiment;

[0068] Figure 3 is a schematic diagram of a first screen according to an exemplary embodiment;

[0069] Figure 4 is a schematic diagram showing a first area and a third area of ​​a first screen according to an exemplary embodiment;

[0070] Figure 5 is a schematic diagram of a first screen according to another exemplary embodiment;

[0071] Figure 6 is a schematic diagram showing a first area and a third area of ​​a first screen according to another exemplary embodiment;

[0072] Figure 7 is a display effect diagram of a third screen according to an exemplary embodiment;

[0073] Figure 8 is a display effect diagram of a third screen according to another exemplary embodiment;

[0074] Fig. 9 is a display effect diagram of a target object in a first picture according to an exemplary embodiment;

[0075] Fig.10 is a display effect diagram of a target object in a first picture according to another exemplary embodiment;

[0076] Fig.11 is a schematic diagram showing a display screen with a horizontal screen posture according to an exemplary embodiment;

[0077] Fig.12 is a schematic diagram showing a display screen with a horizontal screen posture according to another exemplary embodiment;

[0078] Fig.13 This is a diagram showing a display effect of a target object on a display screen with a horizontal screen posture according to an exemplary embodiment;

[0079] Fig.14 is a diagram showing a display effect of a target object on a display screen with a horizontal screen posture according to another exemplary embodiment;

[0080] Fig.15 is a schematic diagram showing a display screen with a vertical screen posture according to an exemplary embodiment;

[0081] Fig.16 is a schematic diagram showing a display screen with a vertical screen posture according to another exemplary embodiment;

[0082] Fig.17 This is a diagram showing a display effect of a target object on a display screen with a vertical screen posture according to an exemplary embodiment;

[0083] Fig.18 is a diagram showing a display effect of a target object on a display screen with a vertical screen posture according to another exemplary embodiment;

[0084] Fig.19 is a schematic structural diagram of a picture display device according to an exemplary embodiment;

[0085] Fig. 20 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0087] Before explaining the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure are first introduced, as follows:

[0088] Considering that when a user uses an electronic device, the display screen may be in a horizontal or vertical position, when the screen stored in the electronic device is adapted to the display screen in a vertical position, if the display screen is in a horizontal position at this time, there will be a problem of poor display effect. Similarly, when the screen stored in the electronic device is adapted to the display screen in a horizontal position, if the display screen is in a vertical position at this time, there will also be a problem of poor display effect.

[0089] In addition, when the electronic device is in a portrait posture, it includes a portrait posture in a third direction and a portrait posture in a fourth direction, wherein the third direction is opposite to the fourth direction. When the screen stored in the electronic device is a screen adapted to the portrait posture in the third direction, if the electronic device is currently in a portrait posture in the third direction, the target object in the screen will face the specified direction. If the electronic device is in a portrait posture in the fourth direction, the target object in the screen will face the direction opposite to the specified direction, affecting the user experience.

[0090] Similarly, when the electronic device is in a landscape orientation, including a landscape orientation in the third direction and a landscape orientation in the fourth direction. When the screen stored in the electronic device is a screen adapted to the landscape orientation of the electronic device in the third direction, if the electronic device is in the landscape orientation in the third direction, the target object in the screen will face the specified direction, and if the electronic device is in the landscape orientation in the fourth direction, the target object in the screen will face the direction opposite to the specified direction, which also affects the user experience.

[0091] For example, reference Figure 1A and Figure 1B , Figure 1A and Figure 1B The m in the figure is the target object in the picture. Figure 1A The electronic device shown in FIG. a is in a vertical screen posture in the third direction. When the image stored in the electronic device is an image adapted to the vertical screen posture in the third direction, the target object m in the image is as follows: Figure 1A As shown in Figure a, the opening direction of m is towards the ground. Figure 1A The electronic device shown in FIG. b has a vertical screen posture in the fourth direction. When the electronic device is in the vertical screen posture in the fourth direction, m is displayed on the display screen as follows: Figure 1A As shown in Figure b, the opening direction of m is towards the sky.

[0092] Figure 1B The electronic device shown in Figure c is in a landscape posture in the third direction. When the picture stored in the electronic device is a picture adapted to the landscape posture of the electronic device in the third direction, if the electronic device happens to be in the landscape posture in the third direction, the opening direction of m in the picture is as follows: Figure 1B If the electronic device is in the horizontal screen posture of the fourth direction, the opening direction of m in the screen is as follows Figure 1B The sky direction is shown in Figure d. Since the opening direction of m is towards the sky, which is not the normal display direction of m, the user's visual experience is affected.

[0093] In view of this, refer to Figure 2 , a screen display method provided by an embodiment of the present disclosure, Figure 2 The figure is a flowchart of a screen display method disclosed in the present invention, and the method is executed by an electronic device, including:

[0094] S201: when the display screen has a first posture, reading a first screen shared by the first posture and the second posture; the first screen sequentially includes: a first area, a second area, and a third area;

[0095] S202: when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture;

[0096] S203: Adding the fourth area and the fifth area to the second picture to obtain a third picture, wherein a line connecting the fourth area and the fifth area is perpendicular to a line connecting the first area and the third area;

[0097] S204: Displaying a third picture on the display screen having the first posture.

[0098] For example, the electronic device in the embodiment of the present disclosure may include a mobile phone, a tablet, a wearable device and / or a vehicle-mounted device with a display screen. For example, the electronic device may be various mobile devices. The mobile device may include a handheld device.

[0099] Exemplarily, the display screen of the electronic device may be a hard screen, or a flexible screen or a foldable screen.

[0100] The posture of the display screen may be determined according to the posture of the electronic device, and the posture of the electronic device may be determined based on sensing data obtained from a sensor in the electronic device.

[0101] The sensor in the electronic device may be any sensor that can detect the posture of the electronic device. The sensor in the electronic device includes but is not limited to: an acceleration sensor, a gyroscope and / or an electronic compass.

[0102] The three-axis acceleration information sensed by the acceleration sensor, such that the three-axis acceleration data may be the acceleration on three axes in a three-dimensional coordinate system;

[0103] Angular motion speed sensed by gyroscope, etc.

[0104] The electronic compass is based on the azimuth information formed by the Earth's magnetic field.

[0105] These sensing data will change with the posture of the electronic device, so the posture and / or posture change of the electronic device can be determined based on the sensing data of the sensor. In one embodiment, in order to ensure the accuracy of the posture, the angular motion speed sensed by the acceleration sensor and the gyroscope can be obtained at the same time to jointly determine the posture of the electronic device.

[0106] Exemplarily, the angles between the long side and the short side of the electronic device and the horizontal plane may be determined based on the sensor data, and the posture of the electronic device may be determined based on the angles between the long side and the short side of the electronic device and the horizontal plane.

[0107] Exemplarily, the relative position of the camera at the top of the display screen and the display screen, or the relative position of the HOME button and the display screen, can also be obtained based on the sensor data, and the posture of the display screen can be determined according to the relative position of the camera at the top of the display screen and the display screen or the relative position of the HOME button and the display screen.

[0108] For example, when the HOME key is located above or below the display screen, it is determined that the electronic device is in a portrait posture, and when the HOME key is located on the left or right side of the display screen, it is determined that the electronic device is in a landscape posture.

[0109] The first screen may be a boot screen pre-stored in the electronic device. When the first screen is a boot screen pre-stored in the electronic device, the first screen may be pre-stored in the storage firmware of the driving code.

[0110] In other cases, the first screen may be a startup screen of different applications of the electronic device, or a switching screen for performing a specific operation.

[0111] Exemplarily, the first picture may include at least one of the following: a static picture and / or a video frame.

[0112] Exemplarily, a graphic pattern, text and / or a mark may be displayed on the first screen.

[0113] Exemplarily, when the electronic device is an electronic device with an Android system, during the startup phase of the electronic device, after the system of the electronic device is powered on, a boot code is executed; the boot code may be stored in the firmware of the electronic device and may be used to load the operating system. The boot code may include: a unified extensible firmware interface (UEFI).

[0114] In the startup phase of the electronic device, a sensor in the electronic device is started, wherein starting the sensor may at least include: powering on the sensor and initializing the sensor. By powering on, the sensor can obtain working electrical energy. By initializing the sensor, the sensor can enter a working ready state.

[0115] Afterwards, sensing data is acquired from the sensor based on the GPIO interface, and the current posture of the electronic device is determined based on the sensing data, and the posture of the display screen is determined based on the posture of the electronic device.

[0116] After obtaining the current posture of the display screen based on the acquired sensing data, the electronic device reads the first picture from the storage firmware storing the driving code.

[0117] At this time, since the first posture and the second posture share the first screen, the first screen occupies less storage resources of the storage firmware, thereby reducing the cost of the electronic device.

[0118] The first picture pre-stored in the electronic device may be a picture adapted to the display screen with the first posture, or may be a picture adapted to the display screen with the second posture.

[0119] When the display screen currently has a first posture, and the first picture stored in the electronic device is a picture adapted to the display screen having a second posture, since the picture is not compatible with the current posture of the display screen, displaying the first picture directly on the display screen will cause the picture to be displayed crowdedly in the center and fail to cover all areas of the display screen, affecting the display effect.

[0120] Exemplarily, the first area and the third area are both end areas of the first picture. The end areas may be upper and lower end areas and / or left and right end areas.

[0121] Exemplarily, the second area is a middle area of ​​the first picture and is located between the first area and the third area.

[0122] Therefore, when the display screen has a first posture and the first screen in the electronic device is adapted to the second posture of the display screen, the first area and the third area of ​​the first screen can be cropped to obtain the second screen, and the fourth area and the fifth area of ​​the second screen can be supplemented to obtain the third screen adapted to the display screen with the first posture, and the third screen can be displayed on the display screen with the first posture.

[0123] In the disclosed embodiment, when the first picture stored in the electronic device does not match the current posture of the display screen, the first picture can be cropped and supplemented to obtain a picture adapted to the current posture of the display screen. That is, by cropping and supplementing a picture stored in the electronic device, a picture stored in the electronic device can be adapted to display screens with various postures, thereby improving the picture display effect of the electronic device.

[0124] In one embodiment, if the first posture is a horizontal screen posture, the second posture is a vertical screen posture.

[0125] In another embodiment, if the first posture is a portrait posture, the second posture is a landscape posture.

[0126] Exemplarily, the first picture stored in the electronic device may be a picture adapted to a display screen with a horizontal screen posture, or may be a picture adapted to a display screen with a vertical screen posture.

[0127] refer to Figure 3 and Figure 4 , when the first screen of the electronic device value storage is as follows Figure 3 As shown, the screen adapted to the display screen in the vertical screen posture, and the first posture currently possessed by the display screen is as follows Figure 4 In the horizontal screen posture shown, since the height of the first picture is greater than the height of the display screen in the horizontal screen posture, the width of the first picture is less than the width of the display screen in the horizontal screen posture, that is, the size of the current first picture does not match the size of the display screen. Therefore, if the first picture is directly displayed on the display screen, Figure 4 The display effect shown is that the left and right areas of the display are blank.

[0128] Therefore, the upper and lower areas of the first picture can be cropped along the height direction of the first picture based on the height of the display screen, that is, the first area and the third area of ​​the first picture are cropped to obtain a second picture whose height is equal to the height of the display screen.

[0129] Since the width of the first picture is smaller than the width of the display screen with the horizontal posture, the width of the second picture is also smaller than the width of the display screen with the horizontal posture. Therefore, after obtaining the second picture, the two side areas of the second picture can be supplemented along the width direction of the second picture, that is, the fourth area and the fifth area of ​​the second picture are supplemented to obtain a third picture with the same width as the width of the display screen, and the third picture is displayed on the display screen with the horizontal posture.

[0130] refer to Figure 5 and Figure 6 , when the first picture stored in the electronic device is as follows Figure 5 The screen shown is adapted to the display screen in the horizontal screen posture, and the first posture currently possessed by the display screen is as follows Figure 6 In the vertical screen posture shown in FIG. 1 , since the height of the first picture is smaller than the height of the display screen in the vertical screen posture, the width of the first picture is larger than the width of the display screen in the vertical screen posture. That is, the size of the first picture does not match the size of the display screen. If the first picture is directly displayed on the display screen, Figure 6 As shown, blank spaces appear in the upper and lower areas of the display.

[0131] Therefore, the left and right areas of the first picture can be cropped along the width direction of the first picture based on the width of the display screen, that is, the first area and the third area of ​​the first picture are cropped to obtain a second picture with a width equal to the width of the display screen.

[0132] Since the height of the first picture is less than the height of the display screen with a vertical posture, the height of the second picture is also less than the height of the display screen with a vertical posture. Therefore, after obtaining the second picture, the upper and lower areas of the second picture can be supplemented along the height direction of the second picture, that is, the fourth area and the fifth area of ​​the second picture are supplemented to obtain a third picture with the same height as the display screen with a vertical posture, and the third picture is displayed on the display screen with a vertical posture.

[0133] In one embodiment, S202 includes:

[0134] When the first picture is adapted to the second posture, obtaining a first length in the first direction of the first picture and a second length in the first direction of the display screen;

[0135] Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the third area in the first picture;

[0136] Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain a second picture, and the image center of the second picture is used for displaying at the display center of the display screen.

[0137] Exemplarily, when the first posture is a horizontal posture, the second posture is a vertical posture, and the first picture is a picture adapted to a display screen with a vertical posture, the first direction of the first picture is the height direction of the first picture, the first length is the height value of the first picture, the first direction of the display screen is the height direction of the display screen, and the second length is the height value of the display screen. Since the height value of the first picture is greater than the height value of the display screen with a horizontal posture, the pixel coordinates of the first area and the third area to be cropped in the first picture can be determined based on the difference between the height value of the first picture and the height value of the display screen with a horizontal posture, and the first area and the third area of ​​the first picture can be cropped based on the determined pixel coordinates of the first area and the third area to obtain the second picture.

[0138] For example, when the first screen stored in the electronic device is a screen adapted for a display screen with a portrait posture, and the posture of the display screen is a landscape posture, it is assumed that the upper left corner of the first screen is the coordinate origin (0, 0), the width of the first screen is pw1, the height of the first screen is ph1, the upper left corner of the display screen with a landscape posture is the coordinate origin (0, 0), the width of the display screen is sw1, and the height of the display screen is sh1.

[0139] The height difference between the first image and the display screen is (ph1-sh1). In order to make the center of the cropped second image appear at the center of the display screen, the first region and the third region need to have the same area. Therefore, the coordinates of the first region are (0, 0), (0, pw1), as well as That is, the first region is (0, 0), (0, pw1), as well as The coordinates of the third area enclosed by these four points are (ph1, 0) to (ph1, pw1).

[0140] Exemplarily, when the first posture is a portrait posture, the second posture is a landscape posture, and the first picture is a picture adapted to a display screen in a landscape posture, the first direction of the first picture is the width direction of the first picture, the first length is the width value of the first picture, the first direction of the display screen is the width direction of the display screen, and the second length is the width value of the display screen. Since the width value of the first picture is greater than the width value of the display screen in a portrait posture, the pixel coordinates of the first area and the third area to be cropped in the first picture can be determined based on the difference between the width value of the first picture and the width value of the display screen in a portrait posture, and the first area and the third area of ​​the first picture can be cropped based on the determined pixel coordinates of the first area and the third area to obtain the second picture.

[0141] For example, when the first screen stored in the electronic device is a screen adapted for a display screen with a horizontal screen posture, and the display screen has a vertical screen posture, if the upper left corner of the first screen is the coordinate origin (0, 0), the width of the first screen is pw2, the height of the first screen is ph2, the upper left corner of the display screen with a vertical screen posture is the coordinate origin (0, 0), the width of the display screen is sw2, and the height of the display screen is sh2.

[0142] The difference between the width value pw2 of the first screen and the width value sw2 of the display screen with a vertical screen posture is (pw2-sw2). In order to make the center of the image of the cropped second screen appear at the center of the display screen, the first area and the third area need to be the same area. Therefore, the first area is determined to be the coordinate (0, 0), (ph2,0) and The third area is the coordinate (0, pw2)(ph2, pw2).

[0143] It should be noted that the coordinates in the embodiment of the present disclosure are pixel row coordinates and pixel column coordinates of the first picture and the display screen.

[0144] In one embodiment, S203 includes:

[0145] Acquire a third length of the display screen in the second direction and a fourth length of the second screen in the second direction;

[0146] Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen;

[0147] Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

[0148] Exemplarily, when the first posture of the display screen is a horizontal posture, and the first screen is a screen adapted to the display screen with a vertical posture, the second direction of the display screen is a width direction, the third length is the width value of the display screen with a horizontal posture, the second direction of the second screen is the width direction of the second screen, that is, the width direction of the first screen, and the fourth length is the width value of the second screen, which is also the width value of the first screen.

[0149] Since when the first picture is adapted to a display screen with a vertical screen posture, the first area and the third area of ​​the cropped first picture are the upper area and the lower area of ​​the first picture, and the width of the second picture obtained after cropping remains unchanged. The width value of the cropped second picture is smaller than the width value of the display screen. When the second picture is displayed in the center of the display screen, the area of ​​the display screen that cannot be covered by the second picture is the fourth area and the fifth area. Therefore, based on the width of the second picture and the width of the display screen, the display area of ​​the second picture on the display screen can be determined, and the positions of the fourth area and the fifth area that cannot be covered by the second picture on the display screen can be determined based on the display area of ​​the second picture on the display screen. Based on the positions of the fourth area and the fifth area on the display screen, the fourth area and the fifth area of ​​the second picture are supplemented to obtain the following Figure 7 The third picture shown is adapted to the display screen with the horizontal screen posture, and the third picture is displayed on the display screen with the horizontal screen posture.

[0150] For example, when the first posture of the display screen is a horizontal posture, and the first picture is a picture adapted to the display screen in a vertical posture, it can be seen from the above that the width of the second picture obtained after cropping remains unchanged and is still pw1, the width of the display screen is sw1, and when the second picture is displayed at the center of the display screen, the display position of the second picture on the display screen is the coordinate and The enclosed area further determines that the corresponding position of the fourth area that cannot be covered by the second picture on the display screen is the coordinates (0, 0), (sh1, 0), and The location of the fifth area on the display screen is the coordinates The width of the fourth and fifth regions to be supplemented in the second image can also be determined as The height is sh1, that is, the areas of the fourth and fifth regions to be supplemented are both

[0151] Exemplarily, when the first posture of the display screen is a portrait posture, and the first screen is a screen adapted to the display screen with a landscape posture, the second direction of the display screen is a height direction, the third length is the height value of the display screen with a portrait posture, the second direction of the second screen is the height direction of the second screen, that is, the height direction of the first screen, and the fourth length is the height value of the second screen, which is also the height value of the first screen.

[0152] Since when the first picture is adapted to a display screen with a horizontal posture, the first area and the third area of ​​the cropped first picture are the left area and the right area of ​​the first picture, and the height of the second picture obtained after cropping remains unchanged. The height value of the cropped second picture is smaller than the height value of the display screen with a vertical posture. When the second picture is displayed in the center area of ​​the display screen, the area of ​​the display screen that cannot be covered by the second picture is the fourth area and the fifth area. Therefore, based on the width of the second picture and the width of the display screen, the display area of ​​the second picture on the display screen can be determined, and based on the display area of ​​the second picture on the display screen, the positions of the fourth area and the fifth area that cannot be covered by the second picture can be determined. Based on the positions of the fourth area and the fifth area on the display screen, the fourth area and the fifth area of ​​the second picture are supplemented to obtain the following Figure 8 As shown, a third picture is adapted to the display screen with a horizontal screen posture, and the third picture is displayed on the display screen with a horizontal screen posture.

[0153] For example, when the first posture of the display screen is a portrait posture, and the first picture is a picture adapted to the display screen in a landscape posture, it can be seen from the above that the height of the second picture obtained after cropping remains unchanged and is still ph2, the height value of the display screen is sh2, and the difference between the height value of the display screen and the height value of the second picture is (sh2-ph2). At this time, if the second picture is to be displayed in the center area of ​​the display screen, the display position of the second picture on the display screen is the coordinate and The enclosed area.

[0154] The fourth area that cannot be covered by the second picture has a coordinate (0, 0) on the display screen. (0, sw2) and The enclosed area, the position of the fifth area that cannot be covered by the second picture on the display screen is the coordinate The area enclosed by (sh2, 0) and (sh2, sw2) is then determined to be the height of the fourth area to be supplemented above the second image. The width to be supplemented is sw2, that is, the area of ​​the fourth region is The height of the fifth area to be added below the second picture along the height direction of the second picture is The width is sw2, that is, the area of ​​the fifth region to be supplemented is

[0155] In another embodiment, the coordinates of the first area and the third area that need to be cropped can be pre-stored in the electronic device. When the first screen needs to be cropped, the coordinates are directly read to crop the first screen, thereby reducing the delay in converting the first screen to the third screen, thereby reducing the display delay.

[0156] In one embodiment, when the display screen has a first posture, reading a first screen shared by the first posture and a second posture includes:

[0157] When the electronic device is powered on and the display screen has a first posture, a first screen shared by the first posture and a second posture is read.

[0158] Exemplarily, during the power-on phase of the electronic device, and when the display screen has a first posture, a first picture is read from the firmware storing the driving code.

[0159] In the embodiment of the present application, taking into account the limited storage resources in the display chip, by cropping and supplementing the first picture stored in the firmware storing the driver code in the display chip, the first picture can be adapted to display screens in various postures, thereby improving the display effect of the first picture. Compared with storing multiple boot screens adapted to display screens in different postures in the display chip, the storage resources occupied by the display chip are reduced.

[0160] In one embodiment, when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture, further comprising:

[0161] When the first picture is adapted to the second posture, determining whether the first picture has a target object that needs to be oriented in a specified direction;

[0162] When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

[0163] Exemplarily, the target object may be an image of a person or an object in the first picture, or an identifier such as text or a trademark.

[0164] When the target object in the first picture is an image of a person, the display screen, in the first picture, specifies a direction that is a normal standing direction of a person, that is, a direction in which the head is upward and the feet are downward.

[0165] When the target object in the first picture is text, the specified orientation of the text in the first picture displayed on the display screen is the normal display direction of the text, for example, Figure 1A In Figure a, the opening direction of m is toward the ground.

[0166] Exemplarily, after reading the first picture from the electronic device, it is determined whether there is a target object in the first picture that needs to be oriented in the specified direction. If there is a target object in the first picture that needs to be oriented in the specified direction, it is determined whether the target object in the first picture is oriented in the specified direction when the first picture is displayed on a display screen with a first posture. If the target object is not oriented in the specified direction when the first picture is displayed on a display screen with a first posture, after cropping the first area and the third area of ​​the first picture, the cropped first picture is rotated to obtain a second picture in which the target object is oriented in the specified direction.

[0167] Alternatively, the first picture is rotated first, and the first area and the third area of ​​the rotated first picture are cropped to obtain a second picture in which the target object faces a specified direction.

[0168] For example, when the first posture of the display screen is a horizontal posture, and the first picture is a picture adapted to the display screen in a vertical posture, if there is a target m in the first picture, and the specified direction of the target m is the direction of the opening facing the ground. Fig. 9 In this case, the first picture can be rotated 180° so that when the first picture is displayed on a display screen with a horizontal screen posture, the opening direction of the target object m in the first picture has the following characteristics: Figure 4 The designated direction is shown, and then the first area and the third area of ​​the rotated first picture are cropped, and when the obtained second picture is displayed on the display screen, the opening direction of the target object m will face the designated direction.

[0169] For example, when the first posture of the display screen is a portrait posture, and the first picture is a picture adapted to the display screen in a landscape posture, if there is a target m in the first picture, and the specified direction of the target m is the direction of the opening facing the ground. Fig.10 In this case, the first picture can be rotated 180° so that when the first picture is displayed on a display screen with a vertical screen posture, the opening direction of the target m in the first picture has the following characteristics: Figure 6 The designated direction is shown, and then the first area and the third area of ​​the first picture are cropped, and when the obtained second picture is displayed on the display screen, the opening direction of the target object m will face the designated direction.

[0170] In one embodiment, the specified direction is the direction of the ground.

[0171] Exemplarily, when there is a target object in the first picture, no matter what posture the display screen is in, the target object in the first picture or the third picture displayed on the display screen needs to face the direction where the ground is located.

[0172] For example, when the letter m exists in the first picture displayed on the display screen, no matter the display screen is in a horizontal or vertical position, the opening direction of m faces the direction where the ground is located.

[0173] In one embodiment, the method further comprises:

[0174] When the first picture is adapted to the first posture, the first picture is displayed on the display screen having the first posture.

[0175] Exemplarily, when the first posture is a horizontal screen posture, and the first picture stored in the electronic device is a picture adapted to the display screen with the horizontal screen posture, the first picture can be directly displayed on the display screen with the horizontal screen posture.

[0176] When the first posture is a vertical screen posture, and the first picture is a picture adapted to the display screen with the vertical screen posture, the first picture is directly displayed on the display screen with the vertical screen posture.

[0177] In one embodiment, the method further comprises:

[0178] Determine whether the first picture has a target object that needs to be oriented in a specified direction;

[0179] When the first picture has a target object that needs to be directed toward a specified direction, the target object is directed toward the pointed direction when the first picture is displayed on a display screen with a first posture.

[0180] Exemplarily, when the display screen has a horizontal screen posture, the following is included: Fig.11 The horizontal screen posture of the third direction shown and Fig.12 When the first screen is a screen adapted to the landscape posture of the third direction, if the first posture of the display screen is the landscape posture of the fourth direction, if the first screen is directly displayed on the display screen, the target object on the display screen will not be able to face the specified direction. At this time, the first screen can be rotated so that when the rotated first screen is displayed on the display screen, the target object faces the specified direction.

[0181] For example, the first picture stored in the electronic device is Figure 5 The screen shown in the figure is a screen adapted to the landscape posture of the third direction. At this time, if the first posture of the display screen is the landscape posture of the fourth direction, if the first screen is directly displayed on the display screen of the landscape posture of the fourth direction, the target object in the first screen will face the direction opposite to the specified direction. For example, Fig.13 The opening direction of the target object m in the first picture is toward the sky. At this time, the first picture can be rotated 180° and the first picture rotated 180° can be displayed on the display screen. The opening direction of the target object m in the first picture displayed on the display screen can be toward the sky. Fig.14 The ground direction shown.

[0182] Exemplarily, when the display screen has a vertical screen posture, the following is included: Fig.15 The vertical screen posture of the third direction shown and Fig.16 When the first screen is a screen adapted to the vertical screen posture of the third direction, if the first posture of the display screen is the vertical screen posture of the fourth direction, if the first screen is directly displayed on the display screen, the target object on the display screen will face the direction opposite to the specified direction. At this time, the first screen can be rotated so that when the rotated first screen is displayed on the display screen, the target object faces the specified direction.

[0183] For example, the first picture stored in the electronic device is Figure 3 The first picture is a picture adapted to the vertical screen posture of the third direction. At this time, if the first posture of the display screen is the vertical screen posture of the fourth direction, when the first picture is directly displayed on the display screen with the vertical screen posture of the fourth direction, the display effect is as follows: Fig.17 As shown in FIG. 1 , the opening direction of the target object m is toward the sky, not toward the specified direction. At this time, the first picture can be rotated 180°, and the first picture rotated 180° can be displayed on the display screen, and the following is obtained: Fig.18 The display effect shown.

[0184] In one embodiment, the fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

[0185] Exemplarily, in the process of supplementing the fourth area and the fifth area of ​​the second picture, the colors of the fourth area and the fifth area can be determined according to the color of the first area or the third area of ​​the first picture to improve the similarity between the fifth picture obtained after supplementing the fourth area and the fifth area and the first picture.

[0186] For example, when the colors of the first area and the third area of ​​the first picture are black, the fourth area and the fifth area of ​​the second picture may also be supplemented as black pictures.

[0187] In one embodiment, the electronic device may have multiple display screens. For example, a folding screen is provided on one surface of an electronic device, and a hard screen is provided on another surface. When the electronic device is in a folded posture, the first picture is displayed on the hard screen, and when the electronic device is in an unfolded posture, the first picture is displayed on the folding screen.

[0188] In one embodiment, if the electronic device is in a folded posture and the first picture stored in the electronic device is a picture adapted to the folding screen, the first picture is cropped according to the size of the hard screen to obtain a fourth picture of the same size as the hard screen, and the fourth picture is displayed on the hard screen.

[0189] If the electronic device is in the unfolded posture and the first picture stored in the electronic device is a picture adapted to the hard screen, the first picture is supplemented to obtain the fifth picture, and the fifth picture adapted to the size of the folding screen is displayed on the folding screen.

[0190] Among them, whether the electronic device is in an unfolded posture or a folded posture can be determined according to the current folding angle of the electronic device.

[0191] Exemplarily, when the folding angle of the electronic device is greater than a preset angle, it is determined that the electronic device is in an unfolded posture; when the folding angle of the electronic device is less than or equal to the preset angle, it is determined that the electronic device is in a folded posture.

[0192] refer to Figure 5 , Figure 6 and Fig.15 The embodiment of the present disclosure further provides a screen display direction, including:

[0193] When the electronic device is turned on, the first screen is rotated according to the current posture of the display screen.

[0194] For example, when the first picture is Figure 5 As shown, when the screen is adapted to the horizontal screen posture, if the mobile phone is Fig.15 As shown in the pose, two layers are created for the boot animation.

[0195] The color of layer 1 is consistent with the theme color of the picture.

[0196] Layer 2 cuts the horizontal screen resources. The cropping method is as follows:

[0197] When a horizontal screen is displayed on a display with a vertical screen posture, there is a problem that the size does not match and the screen cannot be completely filled. The specific strategy is as follows:

[0198] The origin of the Android device coordinate system (0, 0) is located in the upper left corner.

[0199] like Figure 6 As shown, a partial area of ​​the first picture is drawn (which can be understood as cropping). The width of the cropped second picture is equal to the width of the display screen, and the height of the cropped second picture is the height of the first picture itself.

[0200] Since the size of the second picture obtained after cropping does not match the screen, the screen canvas is divided into three parts for drawing.

[0201] Draw the area as Figure 6 As shown, it includes three parts: upper, middle and lower.

[0202] Assume that the screen width is sw and the height is sh, the width of the first screen is pw and the height is ph, and a black background is drawn on the fourth area of ​​the display screen. The drawing area starts from the origin coordinate (0, 0) and ends at (sw, (sh-ph) / 2)

[0203] The second picture is obtained after "cropping" the middle drawing. The starting coordinates of the drawing area are (0, (sh-ph) / 2) and the ending coordinates are [sw, (sh-ph) / 2+ph].

[0204] The lower part is drawn with a black background, and the starting coordinates of the drawing area are [0, (sh-ph) / 2+ph] and the ending coordinates are (sw, sh).

[0205] Based on the same concept, an embodiment of the present disclosure also provides a picture display device.

[0206] It is understandable that the screen display device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0207] like Fig.19 As shown, an embodiment of the present disclosure provides a screen display device, the device comprising:

[0208] A reading module 1901 is used to read a first screen shared by the first and second screens when the display screen has a first posture; the first screen includes: a first area, a second area, and a third area in sequence;

[0209] A cropping module 1902, configured to crop the first region and the third region of the first image to obtain a second image when the first image is adapted to the second posture;

[0210] A supplementing module 1903 is used to supplement the fourth area and the fifth area on the second picture to obtain a third picture, wherein the line connecting the fourth area and the fifth area is perpendicular to the line connecting the first area and the third area;

[0211] The first display module is used to display a third picture on a display screen with a first posture.

[0212] Optionally, if the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or, if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

[0213] Optionally, the clipping module 1902 is used to:

[0214] When the first picture is adapted to the second posture, obtaining a first length in the first direction of the first picture and a second length in the first direction of the display screen;

[0215] Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the third area in the first picture;

[0216] Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain a second picture, and the image center of the second picture is used for displaying at the display center of the display screen.

[0217] Optionally, the supplementary module 1903 is used to:

[0218] Acquire a third length of the display screen in the second direction and a fourth length of the second screen in the second direction;

[0219] Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen;

[0220] Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

[0221] Optionally, the reading module 1901 is used to:

[0222] When the electronic device is powered on and the display screen has a first posture, a first screen shared by the first posture and a second posture is read.

[0223] Optionally, the clipping module 1902 is further configured to:

[0224] The first picture is adapted to the second posture, and it is determined whether the first picture has a target object that needs to be oriented in a specified direction;

[0225] When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

[0226] Optionally, the specified direction is the direction of the ground.

[0227] Optionally, the device further comprises:

[0228] The second display module is used to display the first picture on a display screen with the first posture when the first picture is adapted to the first posture.

[0229] Optionally, the device further comprises:

[0230] A determination module, used to determine whether the first picture has a target object that needs to be oriented in a specified direction;

[0231] The third display module, when the first picture has a target object that needs to face a specified direction, makes the target object face the pointing direction when displaying the first picture on a display screen with a first posture.

[0232] Optionally, the fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

[0233] An embodiment of the present disclosure provides an electronic device, including:

[0234] a memory for storing processor-executable instructions;

[0235] A processor connected to the memory;

[0236] Among them, the processor is configured to execute the screen display method provided by any of the aforementioned technical solutions.

[0237] The processor may include various types of storage media, which are non-transitory computer storage media that can continue to retain information stored thereon after the communication device loses power.

[0238] The processor can be connected to the memory through a bus or the like, and is used to read the executable program stored in the memory, for example, to execute Figure 2 How to display the screen shown.

[0239] The electronic device may be the aforementioned electronic device.

[0240] Fig. 20 2 is a block diagram of an electronic device 2000 according to an exemplary embodiment. For example, the electronic device 2000 may be a terminal device such as a mobile phone, a mobile computer, or a smart home device or a smart office device.

[0241] Reference Fig. 20 , the electronic device 2000 may include one or more of the following components: a processing component 2002 , a memory 2004 , a power component 2006 , a multimedia component 2008 , a multimedia data component 2010 , an input / output (I / O) interface 2012 , a sensor component 2014 , and a communication component 2016 .

[0242] The processing component 2002 generally controls the overall operation of the electronic device 2000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 2002 may include one or more processors 2020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 2002 may include one or more modules to facilitate the interaction between the processing component 2002 and other components. For example, the processing component 2002 may include a multimedia module to facilitate the interaction between the multimedia component 2008 and the processing component 2002.

[0243] The memory 2004 is configured to store various types of data to support operations on the device 2000. Examples of such data include instructions for any application or method operating on the electronic device 2000, contact data, phone book data, messages, pictures, videos, etc. The memory 2004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0244] The power supply component 2006 provides power to various components of the electronic device 2000. The power supply component 2006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 2000.

[0245] The multimedia component 2008 includes a screen that provides an output interface between the electronic device 2000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2008 includes a front camera and / or a rear camera. When the device 2000 is in an operating state, such as a shooting state or a video state, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0246] The multimedia data component 2010 is configured to output and / or input multimedia data signals. For example, the multimedia data component 2010 includes a microphone (MIC), and when the electronic device 2000 is in an operating state, such as a call state, a recording state, and a voice recognition state, the microphone is configured to receive external multimedia data signals. The received multimedia data signal can be further stored in the memory 2004 or sent via the communication component 2016. In some embodiments, the multimedia data component 2010 also includes a speaker for outputting multimedia data signals.

[0247] The I / O interface 2012 provides an interface between the processing component 2002 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0248] The sensor assembly 2014 includes one or more sensors for providing various aspects of status assessment for the electronic device 2000. For example, the sensor assembly 2014 can detect the open / closed state of the device 2000, the relative positioning of components, such as the display and keypad of the electronic device 2000, and the sensor assembly 2014 can also detect the position change of the electronic device 2000 or a component of the electronic device 2000, the presence or absence of contact between the user and the electronic device 2000, the orientation or acceleration / deceleration of the electronic device 2000, and the temperature change of the electronic device 2000. The sensor assembly 2014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 2014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0249] The communication component 2016 is configured to facilitate wired or wireless communication between the electronic device 2000 and other devices. The electronic device 2000 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 2016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0250] In an exemplary embodiment, the apparatus 2000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0251] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 2004 including instructions, and the instructions can be executed by the processor 2020 of the device 2000 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0252] The present disclosure provides a computer storage medium, which may be a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a server or a terminal, the power supply device can execute the screen display method provided in any of the above embodiments, and can execute the following steps: Figure 2 The screen method shown.

[0253] The screen display method executed by the electronic device may include:

[0254] When the display screen has a first posture, a first screen shared by the first posture and the second posture is read; the first screen sequentially includes: a first area, a second area, and a third area;

[0255] When the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture;

[0256] Adding the fourth area and the fifth area to the second picture to obtain a third picture, wherein the line connecting the fourth area and the fifth area is perpendicular to the line connecting the first area and the third area;

[0257] A third screen is displayed on the display screen having the first posture.

[0258] Optionally, if the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or, if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

[0259] Optionally, when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture, including:

[0260] When the first picture is adapted to the second posture, obtaining a first length in the first direction of the first picture and a second length in the first direction of the display screen;

[0261] Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the third area in the first picture;

[0262] Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain a second picture, and the image center of the second picture is used for displaying at the display center of the display screen.

[0263] Optionally, the fourth area and the fifth area are added to the second picture to obtain a third picture, including:

[0264] Acquire a third length of the display screen in the second direction and a fourth length of the second screen in the second direction;

[0265] Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen;

[0266] Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

[0267] Optionally, when the display screen has a first posture, reading a first screen shared by the first posture and the second posture includes:

[0268] When the electronic device is powered on and the display screen has a first posture, a first screen shared by the first posture and a second posture is read.

[0269] Optionally, when the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture, further comprising:

[0270] The first picture is adapted to the second posture, and it is determined whether the first picture has a target object that needs to be oriented in a specified direction;

[0271] When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

[0272] Optionally, the specified direction is the direction of the ground.

[0273] Optionally, the method further comprises:

[0274] When the first picture is adapted to the first posture, the first picture is displayed on the display screen having the first posture.

[0275] Optionally, the method further comprises:

[0276] Determine whether the first picture has a target object that needs to be oriented in a specified direction;

[0277] When the first picture has a target object that needs to be directed toward a specified direction, the target object is directed toward the pointed direction when the first picture is displayed on a display screen with a first posture.

[0278] Optionally, the fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

[0279] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0280] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A screen display method, characterized in that: Executed by an electronic device, the method includes: When the display screen has a first posture, a first screen shared by the first posture and the second posture is read; the first screen sequentially includes: a first area, a second area, and a third area; When the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain a second picture; Supplementing the second picture with a fourth area and a fifth area to obtain a third picture, wherein a line connecting the fourth area and the fifth area is perpendicular to a line connecting the first area and the third area; The third picture is displayed on the display screen having the first posture.

2. The method according to claim 1, characterized in that If the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

3. The method according to claim 1 or 2, characterized in that: When the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cropped to obtain the second picture, including: When the first picture is adapted to the second posture, obtaining a first length of the first picture in a first direction and a second length of the display screen in the first direction; Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the third area in the first picture; Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain the second picture, and the image center of the second picture is used to be displayed at the display center of the display screen.

4. The method according to claim 1 or 2, characterized in that: The method of supplementing the fourth area and the fifth area on the second picture to obtain the third picture includes: Acquire a third length of the display screen in the second direction and a fourth length of the second picture in the second direction; Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen; Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

5. The method according to claim 1, characterized in that The step of reading a first picture shared by the first posture and the second posture when the display screen has a first posture comprises: When the electronic device is powered on and the display screen has a first posture, a first picture shared by the first posture and the second posture is read.

6. The method according to claim 1, characterized in that When the first picture is adapted to the second posture, the first area and the third area of ​​the first picture are cut to obtain the second picture, and further includes: When the first picture is adapted to the second posture, determining whether the first picture has a target object that needs to be oriented in a specified direction; When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

7. The method according to claim 6, characterized in that The specified direction is the direction of the ground.

8. The method according to claim 6, characterized in that The method further comprises: When the first picture is adapted to the first posture, the first picture is displayed on a display screen having the first posture.

9. The method according to claim 8, characterized in that The method further comprises: Determining whether the first picture has a target object that needs to be oriented in a specified direction; When the first picture has a target object that needs to face the specified direction, the target object faces the pointing direction when the first picture is displayed on the display screen with the first posture.

10. The method according to any one of claims 5 to 9, characterized in that: The fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

11. A screen display device, characterized in that: The device comprises: A reading module, configured to read a first screen shared by the first and second screens when the display screen has a first posture; the first screen sequentially includes: a first area, a second area, and a third area; A cropping module, used for cropping the first area and the third area of ​​the first image to obtain a second image when the first image is adapted to the second posture; A supplementing module, used for supplementing the fourth area and the fifth area on the second picture to obtain a third picture, wherein a line connecting the fourth area and the fifth area is perpendicular to a line connecting the first area and the third area; The first display module is used to display the third picture on the display screen with the first posture.

12. The device according to claim 11, characterized in that If the first posture is a horizontal screen posture, the second posture is a vertical screen posture; or if the first posture is a vertical screen posture, the second posture is a horizontal screen posture.

13. The device according to claim 11 or 12, characterized in that The cutting module is used for: When the first picture is adapted to the second posture, obtaining a first length of the first picture in a first direction and a second length of the display screen in the first direction; Determine first area parameters of the first area and the third area based on the first length and the second length; wherein the first area parameters are at least used to determine positions of the first area and the second area in the first picture; Based on the first area parameter, the first area and the third area of ​​the first picture are cropped to obtain the second picture, and the image center of the second picture is used to be displayed at the display center of the display screen.

14. The device according to claim 11 or 12, characterized in that The supplementary module is used to: Acquire a third length of the display screen in the second direction and a fourth length of the second picture in the second direction; Determine second area parameters of the fourth area and the fifth area based on the third length and the fourth length; wherein the second area parameters are at least used to determine display positions of the fourth area and the fifth area on the display screen; Based on the second area parameter, the fourth area and the fifth area are supplemented on the second picture to obtain the third picture.

15. The device according to claim 11, characterized in that The reading module is used for: When the electronic device is turned on and the display screen has a first posture, a first picture shared by the first posture and the second posture is read.

16. The device according to claim 11, characterized in that The cutting module is further used for: When the first picture is adapted to the second posture, determining whether the first picture has a target object that needs to be oriented in a specified direction; When the first picture has a target object that needs to face the specified direction, the second picture is obtained by cropping and rotating until the target object faces the specified direction.

17. The device according to claim 16, characterized in that The specified direction is the direction of the ground.

18. The device according to claim 16, characterized in that The device also includes: The second display module is used to display the first picture on a display screen having the first posture when the first picture is adapted to the first posture.

19. The device according to claim 18, characterized in that The device also includes: A determination module, used to determine whether the first picture has a target object that needs to be oriented in a specified direction; The third display module is configured to, when the first picture has a target object that needs to face the specified direction, make the target object face the pointing direction when displaying the first picture on the display screen with the first posture.

20. The device according to any one of claims 15 to 19, characterized in that: The fourth area and the fifth area have a first color, wherein the first color is any color in the first picture.

21. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; Wherein, the processor is configured to execute the screen display method according to any one of claims 1 to 10.

22. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the screen display method according to any one of claims 1 to 10.