Display method and device and electronic equipment

文档序号:405434 发布日期:2021-12-17 浏览:2次 中文

阅读说明:本技术 显示方法、装置和电子设备 (Display method and device and electronic equipment ) 是由 林伟炼 于 2021-09-09 设计创作,主要内容包括:本申请公开了一种显示方法、装置和电子设备,属于显示技术领域。其中,该显示方法应用于电子设备,电子设备包括折叠屏,折叠屏包括第一屏和第二屏,该显示方法包括:分别获取第一屏的视线夹角和第二屏的视线夹角;其中,视线夹角为用户眼部与对应屏的连线相对于对应屏的夹角;根据每个屏的视线夹角,确定对应屏的缩放比例;根据每个屏的缩放比例,分别缩放对应屏的原始图像,得到缩放图像;在每个屏上显示对应屏的缩放图像。(The application discloses a display method, a display device and electronic equipment, and belongs to the technical field of display. The display method is applied to electronic equipment, the electronic equipment comprises a folding screen, the folding screen comprises a first screen and a second screen, and the display method comprises the following steps: respectively acquiring a sight line included angle of a first screen and a sight line included angle of a second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen; determining the scaling of the corresponding screen according to the sight line included angle of each screen; respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images; a scaled image of the corresponding screen is displayed on each screen.)

1. A display method is applied to an electronic device, the electronic device comprises a folding screen, the folding screen comprises a first screen and a second screen, and the method comprises the following steps:

respectively acquiring a sight line included angle of the first screen and a sight line included angle of the second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

determining the scaling of the corresponding screen according to the sight line included angle of each screen;

respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images;

a scaled image of the corresponding screen is displayed on each screen.

2. The method of claim 1, wherein determining a scaling of the corresponding screen according to the view angle of each screen comprises:

determining the reduction ratio of the corresponding screen along the first direction according to the sight line included angle of each screen; wherein the first direction is a direction of a folding axis of the folding screen;

the scaling of each screen is used for scaling the original image of the corresponding screen respectively to obtain a scaled image, and the scaling comprises the following steps:

and reducing the original image of the corresponding screen along the first direction according to the reduction scale of each screen to obtain the scaled image.

3. The method of claim 2, wherein determining a reduced scale of the corresponding screen along the first direction of the folded screen based on the included angle of sight for each screen comprises:

under the condition that the sight line included angles of the first screen and the second screen are different, the reduction proportion of the first screen is different from that of the second screen;

the reducing the original image of the corresponding screen along the first direction according to the reduction scale of each screen to obtain the scaled image includes:

determining the screen with the larger reduced scale from the first screen and the second screen;

for the screen with the larger reduction ratio, reducing the original image along the first direction according to the corresponding reduction ratio to obtain a zoom image of the corresponding screen;

for the screen with the smaller reduction ratio, reducing the original image along the first direction according to the corresponding reduction ratio to obtain a first image;

and reducing the whole first image to be aligned with the zoom image of the other screen at the folding axis to obtain the zoom image of the corresponding screen.

4. The method of claim 1, wherein the obtaining the included angle of the line of sight of the first screen and the included angle of the line of sight of the second screen respectively comprises:

acquiring the sight line included angle of each screen at different positions along the second direction; the sight line included angle is an included angle between a connecting line of the eyes of the user and the corresponding position and the corresponding screen, and the second direction is a direction perpendicular to a folding axis of the folding screen on the corresponding screen;

determining the scaling of the corresponding screen according to the sight line included angle of each screen comprises the following steps:

determining the stretching proportion of the corresponding screen at different positions along the second direction according to the sight line included angles of different positions of each screen along the second direction;

the scaling of each screen is used for scaling the original image of the corresponding screen respectively to obtain a scaled image, and the scaling comprises the following steps:

respectively stretching the areas of the original images of the corresponding screens at the corresponding positions according to the stretching proportion of each screen at different positions in the second direction to obtain second images of the corresponding screens;

and reducing the second image of the corresponding screen to be completely displayed on the corresponding screen to obtain a zoom image of the corresponding screen.

5. The method of claim 4, wherein determining the stretching ratio of each screen at different positions along the second direction according to the view angle of each screen at different positions along the second direction comprises:

under the condition that the sight line included angles of the first screen and the second screen are different, determining that the stretching proportion of the first screen is different from that of the second screen;

the reducing the second image of the corresponding screen to the second image that can be completely displayed on the corresponding screen to obtain the scaled image of the corresponding screen includes:

determining a screen with smaller stretching ratio according to the stretching ratio of the first screen and the ratio of the second screen;

for the screen with smaller stretching proportion, the second image of the corresponding screen is wholly reduced to be capable of being completely displayed on the corresponding screen, and a zoom image of the corresponding screen is obtained;

and for the screen with larger stretching proportion, reducing the second image of the corresponding screen to be aligned with the zooming image of the other screen at the folding axis to obtain the zooming image of the corresponding screen.

6. A display device, wherein the device is applied to an electronic apparatus, the electronic apparatus includes a foldable screen, the foldable screen includes a first screen and a second screen, and the device includes:

the acquisition unit is used for respectively acquiring the sight line included angle of the first screen and the sight line included angle of the second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

the determining unit is used for determining the scaling of the corresponding screen according to the sight line included angle of each screen;

the zooming unit is used for respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images;

and a display unit for displaying the scaled image of the corresponding screen on each screen.

7. The apparatus of claim 6, wherein the determining unit comprises:

the first determining subunit is used for determining the reduction proportion of the corresponding screen along the first direction according to the sight line included angle of each screen; wherein the first direction is a direction of a folding axis of the folding screen;

the scaling unit includes:

and the first reducing subunit is used for reducing the original image of the corresponding screen along the first direction according to the reduction proportion of each screen to obtain the scaled image.

8. The apparatus according to claim 7, wherein the first determining subunit is further configured to control the reduction ratio of the first screen to be different from the reduction ratio of the second screen if the line of sight angles of the first screen and the second screen are different;

the first reduction subunit includes:

a second determining subunit configured to determine, among the first screen and the second screen, a screen with a larger reduction ratio;

a second reducing subunit, configured to reduce, for a screen with a larger reduction ratio, the original image in the first direction according to the corresponding reduction ratio, so as to obtain a scaled image of the corresponding screen;

a third reducing subunit, configured to reduce, for a screen with a smaller reduction ratio, the original image in the first direction according to a corresponding reduction ratio to obtain a first image;

and the fourth reducing subunit is used for reducing the first image to be aligned with the scaled image of the other screen at the folding axis to obtain the scaled image of the corresponding screen.

9. The device of claim 6, wherein the obtaining unit is further configured to obtain an included angle of a line of sight of each screen at different positions along the second direction; the sight line included angle is an included angle between a connecting line of the eyes of the user and the corresponding position and the corresponding screen, and the second direction is a direction perpendicular to a folding axis of the folding screen on the corresponding screen;

the determination unit includes:

the third determining subunit is configured to determine, according to the view angle of each screen at different positions in the second direction, a stretching ratio of the corresponding screen at different positions in the second direction;

the scaling unit includes:

the stretching subunit is used for respectively stretching the areas of the original images of the corresponding screens at the corresponding positions according to the stretching proportion of each screen at different positions along the second direction to obtain second images of the corresponding screens;

and the fifth reducing subunit is used for reducing the second image of the corresponding screen to the whole size which can be completely displayed on the corresponding screen to obtain the scaled image of the corresponding screen.

10. The apparatus of claim 9, wherein the third determining subunit comprises:

the fourth determining subunit is configured to determine that the stretching ratio of the first screen is different from the stretching ratio of the second screen when the view angle between the first screen and the second screen is different;

the fifth reduction subunit includes:

a fifth determining subunit, configured to determine, according to the stretching ratio of the first screen and the ratio of the second screen, a screen with a smaller stretching ratio;

the sixth reducing subunit is used for reducing the second image of the corresponding screen to the whole size which can be completely displayed on the corresponding screen for the screen with smaller stretching proportion to obtain the zoom image of the corresponding screen;

and the seventh reducing subunit is used for reducing the second image of the corresponding screen to be aligned with the scaled image of the other screen at the folding axis as a whole for the screen with the larger stretching ratio to obtain the scaled image of the corresponding screen.

11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the display method according to any one of claims 1 to 5.

12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the display method according to any one of claims 1 to 5.

Technical Field

The application belongs to the technical field of display, and particularly relates to a display method and device and electronic equipment.

Background

For example, a folding screen mobile phone comprises two split screens connected by a first shaft, and the two split screens can be folded along the first shaft. However, in the current electronic device with the foldable screen, after being folded by a user at some angles, the image displayed on the screen is still unchanged, so that the image in the middle of the screen is concave from the user's perspective, which greatly differs from the effect of the screen being laid flat, and the viewing effect is not good.

Disclosure of Invention

An object of the embodiments of the present application is to provide a display method and apparatus, and an electronic device, which can solve the problem in the related art that a viewing effect of an electronic device with a foldable screen after being folded is greatly different from a viewing effect of the electronic device with an unfolded screen.

In a first aspect, an embodiment of the present application provides a display method, where the method is applied to an electronic device, the electronic device includes a foldable screen, and the foldable screen includes a first screen and a second screen, and the method includes:

respectively acquiring a sight line included angle of a first screen and a sight line included angle of a second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

determining the scaling of the corresponding screen according to the sight line included angle of each screen;

respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images;

a scaled image of the corresponding screen is displayed on each screen.

In a second aspect, an embodiment of the present application provides a display device, where the display device is applied to an electronic device, the electronic device includes a foldable screen, the foldable screen includes a first screen and a second screen, and the display device includes:

the acquisition unit is used for respectively acquiring a sight line included angle of the first screen and a sight line included angle of the second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

the determining unit is used for determining the scaling of the corresponding screen according to the sight line included angle of each screen;

the zooming unit is used for respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images;

and a display unit for displaying the scaled image of the corresponding screen on each screen.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when executed by the processor, the program or the instruction implements the steps of the display method according to the first aspect.

In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the display method according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the display method according to the first aspect.

In the embodiment of the application, the scaling of the corresponding screen can be determined according to the sight line included angle of each screen by respectively obtaining the sight line included angle of the first screen and the sight line included angle of the second screen, so that the original image of the corresponding screen is respectively scaled according to the scaling of each screen to obtain the scaled image, and the scaled image of the corresponding screen is displayed on each screen.

Drawings

FIG. 1 is a schematic flow chart of an alternative display method in an embodiment of the present application;

FIG. 2 is a schematic diagram illustrating an alternative display method in an embodiment of the present application;

FIG. 3 is a schematic diagram of an alternative display method in an embodiment of the present application;

FIG. 4 is a schematic diagram of an alternative display method in an embodiment of the present application;

FIG. 5 is a schematic diagram of an alternative display method in an embodiment of the present application;

FIG. 6 is a first schematic interface diagram of an alternative display method in an embodiment of the present application;

FIG. 7 is a second schematic interface diagram of an alternative display method in an embodiment of the present application;

FIG. 8 is a third schematic interface diagram of an alternative display method in an embodiment of the present application;

FIG. 9 is a schematic structural diagram of an alternative display device in an embodiment of the present application;

FIG. 10 is a schematic structural diagram of an alternative electronic device in an embodiment of the present application;

fig. 11 is a schematic structural diagram of another alternative electronic device in the embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

The display method provided by the embodiment of the application can be applied to electronic equipment comprising a folding screen. The folding screen includes at least two screens arranged in a first direction: a first screen and a second screen. As shown in fig. 2, an example of a folding screen mobile phone includes a first screen 202 (right split screen in fig. 2) and a second screen 201 (left split screen in fig. 2), which can be folded toward one side of the screen along a folding axis 203, wherein the direction of the folding axis 203 is a first direction, and as shown in fig. 2, when the two split screens are folded close to each other, the folding axis moves upward toward the paper.

As shown in fig. 1, a display method provided in an embodiment of the present application may include the following steps:

step 101, respectively obtaining a sight line included angle of a first screen and a sight line included angle of a second screen.

The sight line included angle is the included angle of the connecting line of the eyes of the user and the corresponding screen relative to the corresponding screen.

In one example, a camera may be configured on at least one split screen, in which case, a sight line included angle between the eyes of the user and each split screen may be calculated according to an image collected by the camera, and a spatial position of the eyes of the user is identified in the image, so as to determine a sight line included angle between each split screen and the eyes of the user.

Illustratively, as shown in fig. 4 and 5, the lower oval shaped indicia is used to indicate the position of the user's eyes 208.

Optionally, in one example, the line of sight angles on the same screen are considered approximately the same, i.e., the line of sight angles of the user's eyes relative to the same screen may be the same, in another example, the line of sight angles at different locations may be different for the same screen.

In one example, the user's eye line angle relative to the same screen is the same. In this case, the connection line between the eyes of the user and the corresponding screen may be a connection line between the eyes of the user and a designated position of the corresponding screen, where the designated position may be a middle point of a projection on a vertical plane of the screen, or an edge of the corresponding screen, or may be another designated position on the corresponding screen.

Illustratively, as shown in fig. 4 and 5, a and B are projections of the second screen and the first screen, respectively, on a vertical plane of the screen. The vertical plane of the screen is a plane perpendicular to the folding axis, and as shown in fig. 4 and 5, the vertical plane of the screen is a plane in which the paper surface is located, and the vertical plane of the screen is a plane perpendicular to the reference plane 206 of the screen and the folding axis (i.e., the first direction, specifically, the direction perpendicular to the paper surface in the figure). Illustratively, as shown in fig. 5, the line connecting the eyes of the user with the projection B of the first screen is line 209.

Further, the angle between the connection line and the corresponding screen may be an angle between the connection line and the perpendicular line of the projection B of the corresponding screen, and exemplarily, as shown in fig. 5, an angle between the connection line of the user eye 208 and the projection B of the first screen and the perpendicular line of the projection B of the first screen is ═ B ', that is, the angle B' is the angle of the line of sight of the first screen. Alternatively, the angle between the connection line and the corresponding screen may also be an angle relative to the projection of the corresponding screen, and the like.

In another example, the line of sight angles at different locations may be different for the same screen. In this case, for a position on the screen, the line between the eyes of the user and the corresponding screen refers to a line between the eyes of the user and the corresponding position of the corresponding screen, and the included angle of the line of sight refers to an included angle between the line and the corresponding screen (specifically, the included angle may refer to a plane where the corresponding screen is located, a projection of the corresponding screen on a vertical plane, a perpendicular line projected by the corresponding screen on the vertical plane, or the like).

And step 102, determining the scaling of the corresponding screen according to the sight line included angle of each screen.

The scaling of each split screen is a scale for reducing or enlarging an original image to be displayed on the corresponding screen. The scaling is related to the view angle of each sub-screen, and the specific scaling value can be determined according to the view angle. Optionally, a mapping table may be preset to list different viewing angles and corresponding scaling ratios, so as to determine the scaling ratio by table lookup, or the scaling ratio may also be calculated by using a calculation formula in which the viewing angle is used as a dependent variable, the specific calculation formula may be set according to a specific situation, and in one example, the scaling ratio may be equal to an inverse of a cosine value of the viewing angle.

In one example, the line-of-sight angles on the same screen are considered approximately the same, in which case the scaling on the same screen is the same. In yet another example, the viewing angles of different positions on the same screen are different, in which case the scaling of different positions on the same screen may be different.

And 103, respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images.

The whole image displayed by the folding screen of the electronic equipment is divided into different areas by different screens, and the image of the corresponding area is displayed on each split screen, so that the original whole image to be displayed is divided by different screens, and the original image to be displayed on each screen is combined to obtain the whole original image to be displayed on the folding screen.

When the original image of the corresponding screen is respectively zoomed according to the zoom ratio of each screen, the complete original image can be firstly divided into the original image to be displayed on each screen, and thus, the zoomed image of the corresponding screen can be obtained by zooming according to the zoom ratios of different screens.

In one example, the scaling on the same block of screen is the same, in which case the entire image on the block of split screen may be directly scaled. In another example, the scaling of different positions on the same screen is different, and then each position may be scaled separately to obtain a scaled image of the screen.

And 104, displaying the zoom image of the corresponding screen on each screen.

After the scaled image of each screen is obtained, the scaled image of the corresponding screen is displayed on each screen.

As shown in fig. 6, the viewing effect of the original image is displayed in a state where the folding screen is fully unfolded. As shown in fig. 7, the viewing effect of the original image is displayed in a case where the folding screen is folded by a user in a vertical direction by a certain angle. As can be seen from fig. 7, after the folding screen is folded at some angles, the image viewed from the user's perspective is concave and the image becomes longer from the top to bottom direction. As shown in fig. 8, the viewing effect of the scaled image subjected to the scaling process is output for the folding screen. As can be seen from fig. 8, through the longitudinal compression, the displayed viewing effect can be more suitable for the display effect of the original image when the folding screen is completely unfolded (flattened), so as to obtain a better visual effect.

According to the display method provided by the embodiment of the application, the scaling of the corresponding screen can be determined according to the sight line included angle of each screen by respectively obtaining the sight line included angle of the first screen and the sight line included angle of the second screen, so that the original image of the corresponding screen is respectively scaled according to the scaling of each screen to obtain the scaled image, and the scaled image of the corresponding screen is displayed on each screen.

In an example provided by the embodiment of the present application, the view angle on the same screen is the same, so that when the scaling of the corresponding screen is determined according to the view angle of each screen in step 102, the scaling of the corresponding screen along the first direction may be determined according to the view angle of each screen. Wherein the first direction is the direction of the folding axis of the folding screen. Thus, when step 103 is executed to respectively zoom the original images of the corresponding screens according to the zoom ratio of each screen to obtain the zoomed images, the original images of the corresponding screens can be zoomed in the first direction according to the zoom ratio of each screen to obtain the zoomed images.

That is, because the display effect of the image can present the effect of extending in the first direction after the folding screen is folded, correspondingly, in order to adapt to the habit of human eyes, each screen can be compressed in the first direction, and thus, better viewing experience can be brought to the user.

Further, when the reduction proportion of the corresponding screen along the first direction of the folding screen is determined according to the sight line included angle of each screen, if the sight line included angles of the first screen and the second screen are different, the reduction proportion of the first screen is different from that of the second screen, and under the condition, the images of the first screen and the second screen are different in size and are not aligned.

Accordingly, when the original image of the corresponding screen is reduced in the first direction at the reduction ratio of each screen, a screen having a larger reduction ratio (reduction ratio: the original image: the scaled image, that is, a larger reduction ratio, which means a larger degree of reduction) may be first determined in the first screen and the second screen. Thus, for the screen with a larger reduction ratio, the original image can be reduced along the first direction according to the corresponding reduction ratio, and the scaling image of the corresponding screen is obtained. For the screen with smaller reduction ratio, the original image can be reduced along the first direction according to the corresponding reduction ratio to obtain a first image, and then the first image is reduced to be aligned with the scaling image of the other screen at the folding axis in a whole manner, so that the scaling image of the corresponding screen can be obtained.

That is, for the screen with a larger reduction ratio, the screen is directly scaled in the first direction, and for the screen with a smaller reduction ratio, because the image of the screen is still larger than that of the other screen after being scaled in the first direction, the screen needs to be further scaled, at this time, the image of the screen after being scaled in the first direction needs to be scaled integrally, so that the scaled image is more in line with the habit of watching by human eyes, and better visual experience is brought.

In another example provided by the embodiment of the present application, the line-of-sight included angles on the same screen are different at different positions, in one example, each screen is divided into different positions along the second direction, where the second direction is a direction perpendicular to the folding axis of the folding screen on the corresponding screen, so that when the line-of-sight included angle of the first screen and the line-of-sight included angle of the second screen are respectively obtained in step 101, the line-of-sight included angle of each screen at different positions along the second direction can be obtained, where the line-of-sight included angle is an included angle of a connection line between eyes of a user and the corresponding position relative to the corresponding screen.

Accordingly, when the scaling of the corresponding screen is determined according to the view angle of each screen in step 102, the stretching ratios of the corresponding screen at different positions in the second direction may be determined according to the view angles of the different positions in the second direction of each screen. The stretch ratio is the ratio of the original image to the image after scaling (stretching in this example).

Furthermore, when step 103 is executed to respectively zoom the original images of the corresponding screens according to the zoom ratio of each screen to obtain the zoomed images, the areas of the original images of the corresponding screens at the corresponding positions may be respectively stretched according to the stretch ratios of the different positions of each screen in the second direction to obtain the second images of the corresponding screens, and then the second images of the corresponding screens are entirely reduced to be able to be completely displayed on the corresponding screens to obtain the zoomed images of the corresponding screens.

That is, under the different circumstances of the different position department sight contained angle of same piece screen, can stretch along the second direction earlier, then whole dwindles again, like this, the image of zooming that obtains is equivalent to and compresses along the first direction, can accord with the custom of people's eye, and under the folding circumstances of screen, people's eye watches and can reach the effect when original not folding, and can not produce the deformation of image because the screen is folding.

Further, under the condition that the included angles of the sight lines of the first screen and the second screen are different, the stretching proportion of the first screen and the stretching proportion of the second screen are different, so that the condition that the scaling proportions of the two screen images are different and the images at the joint are not aligned can be avoided, the second image of the corresponding screen can be integrally reduced to be completely displayed on the corresponding screen, the screen with the smaller stretching proportion is determined according to the stretching proportion of the first screen and the proportion of the second screen, and then different strategies are executed according to the different sizes of the stretching proportions.

According to the definition of the stretch ratio in the embodiment of the present application, the larger the stretch ratio is, the smaller the degree of stretch is, that is, the smaller the variation is; conversely, the smaller the stretch ratio, the greater the degree of stretch, i.e., the greater the change. Therefore, for a screen with a smaller stretching ratio, the second image of the corresponding screen is reduced as a whole to be able to be displayed on the corresponding screen completely, resulting in a scaled image of the corresponding screen, and for a screen with a larger stretching ratio, the second image of the corresponding screen is reduced as a whole to be aligned with the scaled image of the other screen at the folding axis, resulting in a scaled image of the corresponding screen.

That is, for a less stretched screen, zooming directly to the screen may be done after stretching proportionally in the second direction. For the screen with larger stretching proportion, after the screen is stretched in the second direction in proportion, due to the fact that the degree of change is small, if the screen is directly zoomed to the extent that the whole image content can be put down, the image content is larger than that of the other screen, therefore, the image after stretching needs to be zoomed to the extent that the image can be aligned with the other screen, and therefore the zoomed image is more in line with the habit of watching by human eyes, and better visual experience is brought.

Specifically, when stretching the image, it is actually equivalent to adding pixels of the image, for example, if there are 20 × 20 pixels inside 1mm × 1mm, and if the stretching ratio is 1.2:1, the width of the image is changed to 24 pixels, and in order to achieve that the display details are not sacrificed in the subsequent reduced image, the stretching selects the adjacent variable ratio for copying or interpolation, i.e. to 24 × 20 pixels, and the image is stretched to 1200 × 2000 in the resolution image of the whole half-screen 1000 × 2000, so that the display window of the stretched image exceeds the display range of the display screen, and therefore, the image needs to be scaled down by the pixel ratio and then retracted to 1000 × 1667 again, i.e. one pixel is displayed before. Due to scaling, several display elements are required to be displayed as one pixel, and detail may be lost.

For the situation that the stretching ratios of the left half screen and the right half screen are different, in order to achieve a consistent display effect, the image with the maximum stretching ratio needs to be adapted, that is, if the stretching ratio of the left half screen is 1.2:1 and the right half-screen stretch ratio is 1:1, then the left half-screen zoom ratio is 1.2:1, and the right half-screen also needs to be scaled to a 1.2:1 image in its entirety without any viewing angle problems.

In an alternative example, the step 101 of obtaining the angle of the line of sight of the first screen and the angle of the line of sight of the second screen respectively may be implemented by the following specific implementation manners.

First, the folding angle between the two screens is determined. The folding angle may be detected by a motion sensor such as a gyroscope or an angular rotation sensor. As shown in fig. 2, the first screen 202 and the second screen 201 are provided with a gyro sensor 205 and a gyro sensor 204, respectively. Fig. 3 shows another exemplary folding-screen mobile phone, which has a similar appearance and folding manner to fig. 2, and is not repeated herein, except that an angle rotation sensor 207 is disposed between two screens of the folding-screen mobile phone shown in fig. 3, so as to detect an included angle between the two screens.

Further, according to the folding angle between every two adjacent split screens, the included angle between each split screen and the screen reference plane can be determined. As shown in fig. 2, the included angle between the first screen 202 and the screen reference plane 206 is ≤ b, and the included angle between the second screen 201 and the screen reference plane 206 is ≤.

The screen reference plane may be a preset plane, and the specific position of the screen reference plane may be preset in a calibration reference coordinate system of the motion sensor, so that the motion sensor can determine an included angle between each split screen and the screen reference plane according to the detected motion parameters.

In the embodiment of the present application, for each split screen and different positions on each split screen, the user sight line is different, specifically, for each split screen (or different positions on each split screen), the user sight line is a connection line from the eye of the user to the corresponding split screen (or the corresponding position on the corresponding split screen).

In one example, the camera is disposed at a side of the first screen, so that an image collected by the camera can be obtained to determine a line-of-sight included angle between the first screen and a user's line of sight to obtain a first line-of-sight included angle, and a motion parameter of the first screen detected by the motion sensor is obtained to determine a folding angle of the first screen to obtain a first folding angle.

Illustratively, the first included angle of sight may be ≈ b' as shown in fig. 5. The motion sensor may be a gyroscope sensor or an angular rotation sensor. Accordingly, the motion parameter may be a parameter acquired by corresponding different types of sensors, and the first folding angle may be determined according to the motion parameter, where an implementation manner of determining an angle according to a gyroscope or an angular rotation sensor in the related art may be used, which is not limited in this application. Illustratively, the first fold angle may be ≦ b as shown in fig. 5.

Thus, according to the first sight line included angle and the first folding angle, the distance between the folding axis and the eyes of the user can be determined. For example, the distance between the connection position of the first screen and the second screen and the eyes of the user may be a distance D as shown in fig. 4 and 5.

Furthermore, the sight line included angle between different positions of each screen in the second direction and the sight line of the user can be calculated according to the distance and the folding angle of each split screen detected by the motion sensor.

That is, after the distance D is determined, the view angle between different positions on the folding screen and the user's view can be calculated according to the distance and the folding angle of each split screen detected by the motion sensor.

Specifically, the above example can be implemented by the following specific flow:

calculating the included angle gamma' between the sight line of the user and different positions on each split screen by the following formula:

wherein gamma is an included angle between the corresponding split screen and a reference plane of the screen, D is a distance between eyes of a user and the first axis, R is a projection distance of the corresponding split screen on a vertical plane of the screen, and R' is a distance between a corresponding position on the corresponding split screen and the edge of the corresponding split screen.

The distance D in equation 1 can be calculated by the following equation:

as shown in fig. 5, B ' in the formula is an angle of an included angle ≤ B ' between the user's sight line and a first screen B provided with a camera, B is a length of the first screen B on a screen vertical plane, the screen vertical plane is a plane where a paper surface is located, and B is an angle of an included angle ≤ B between the first screen B and a screen reference plane 206. By equation 2, D can be solved. Thus, the angle γ between the user's line of sight and each position R' of each split screen R can be calculated according to equation 1.

Further, as shown in fig. 4, in order to calculate the included angle a ' between the user's sight line and the different position a ' on the second screen a, the substitution can be obtained by equation 1:

where a is a projection angle between the second screen a and the screen reference plane 206 on a screen vertical plane, and the screen vertical plane is a plane on which a paper surface is located. The position of a' may be shifted from the edge toward the center every predetermined length (e.g., 1 mm). As can be seen from equations 1 and 3, for a split screen, the angle between the user's sight line and the corresponding position is gradually reduced from the edge of the screen to the center.

In one example, the scaling may be 1/cos (a'). Therefore, the visual line included angle is reduced from the edge of the screen to the center, and correspondingly, the scaling is changed from the edge of the screen to the center and is increased from the small to the large. That is, the scaling of the screen edge is smaller, that is, the degree of change is smaller.

The above is an optional specific implementation manner for calculating the implementation included angle of the different positions of the first screen and the sight angle of the different positions of the second screen, and is only used for exemplarily describing a specific process for obtaining the sight angle of the first screen and the sight angle of the second screen, and is not used for limiting the embodiments of the present application.

In the display method provided in the embodiment of the present application, the execution main body may be a display device, or a control module for executing the display method in the display device. In the embodiment of the present application, a display device executing a display method is taken as an example, and the display device provided in the embodiment of the present application is described.

The display device provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof. For the content that is not described in detail in the display device provided in the embodiment of the present application, reference may be made to the display method provided in the embodiment of the present application, and details are not described herein again.

The display device provided by the embodiment of the application can be applied to an electronic device, the electronic device includes a folding screen, the folding screen includes a first screen and a second screen, and as shown in fig. 9, the device includes an obtaining unit 11, a determining unit 12, a zooming unit 13 and a display unit 14.

The acquisition unit 11 is configured to acquire a line of sight angle of the first screen and a line of sight angle of the second screen respectively; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

the determining unit 12 is configured to determine a scaling of the corresponding screen according to the view angle of each screen;

the zooming unit 13 is configured to zoom the original images of the corresponding screens according to the zooming proportion of each screen, so as to obtain zoomed images;

the display unit 14 is used to display a scaled image of the corresponding screen on each screen.

Optionally, the determining unit 12 includes:

the first determining subunit is used for determining the reduction proportion of the corresponding screen along the first direction according to the sight line included angle of each screen; wherein the first direction is the direction of a folding axis of the folding screen;

accordingly, the scaling unit 13 includes:

and the first reducing subunit is used for reducing the original image of the corresponding screen along the first direction according to the reduction proportion of each screen to obtain a scaled image.

Optionally, the first determining subunit is further configured to, under the condition that the included angle between the lines of sight of the first screen and the second screen is different, control the reduction ratio of the first screen to be different from the reduction ratio of the second screen;

the first reduction subunit includes:

a second determining subunit, configured to determine, among the first screen and the second screen, a screen with a larger reduction ratio;

the second reducing subunit is used for reducing the original image along the first direction according to the corresponding reducing proportion for the screen with the larger reducing proportion to obtain a scaling image of the corresponding screen;

the third reducing subunit is used for reducing the original image along the first direction according to the corresponding reduction proportion for the screen with smaller reduction proportion to obtain a first image;

and the fourth reducing subunit is used for reducing the first image to be aligned with the scaled image of the other screen at the folding axis to obtain the scaled image of the corresponding screen.

Optionally, the obtaining unit 11 is further configured to obtain a view angle of each screen at different positions along the second direction; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding position relative to the corresponding screen, and the second direction is a direction perpendicular to a folding axis of the folding screen on the corresponding screen;

accordingly, the determination unit 12 includes:

the third determining subunit is used for determining the stretching proportion of the corresponding screen at different positions in the second direction according to the sight line included angle of each screen at different positions in the second direction;

accordingly, the scaling unit 13 includes:

the stretching subunit is used for respectively stretching the areas of the original images of the corresponding screens at the corresponding positions according to the stretching proportion of each screen at different positions in the second direction to obtain second images of the corresponding screens;

and the fifth reducing subunit is used for reducing the second image of the corresponding screen to the whole size which can be completely displayed on the corresponding screen to obtain the scaled image of the corresponding screen.

Optionally, the third determining subunit includes:

the fourth determining subunit is used for determining that the stretching proportion of the first screen is different from that of the second screen under the condition that the included angles of the sight lines of the first screen and the second screen are different;

the fifth reduction subunit includes:

a fifth determining subunit, configured to determine, according to the stretching ratio of the first screen and the ratio of the second screen, a screen with a smaller stretching ratio;

the sixth reducing subunit is used for reducing the second image of the corresponding screen to the whole size which can be completely displayed on the corresponding screen for the screen with smaller stretching proportion to obtain the zoom image of the corresponding screen;

and the seventh reducing subunit is used for reducing the second image of the corresponding screen to be aligned with the scaled image of the other screen at the folding axis in a whole manner for the screen with the larger stretching ratio to obtain the scaled image of the corresponding screen.

The display device that this application embodiment provided, through the sight contained angle that acquires first screen and the sight contained angle of second screen respectively, can confirm the scaling that corresponds the screen according to the sight contained angle of every screen, thereby according to the scaling of every screen, zoom the original image that corresponds the screen respectively, obtain the image of zooming, with the image of zooming that shows corresponding screen on every screen, this application embodiment is through dividing the screen to the difference and zooming according to the scaling of difference and showing, can realize better viewing effect.

The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 8, and is not described here again to avoid repetition.

Optionally, as shown in fig. 10, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.

Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010. Among them, the display unit 1006 may include a folding screen including at least two screens arranged in a first direction. The sensor 1005 may include a camera.

Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.

Processor 1010 may perform the following steps:

respectively acquiring a sight line included angle of a first screen and a sight line included angle of a second screen; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding screen relative to the corresponding screen;

determining the scaling of the corresponding screen according to the sight line included angle of each screen;

respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images;

a scaled image of the corresponding screen is displayed on each screen.

In an alternative example, when the processor 1010 determines the scaling of the corresponding screen according to the included angle of sight line of each screen, the following steps may be performed:

determining the reduction ratio of the corresponding screen along the first direction according to the sight line included angle of each screen; wherein the first direction is the direction of a folding axis of the folding screen;

respectively zooming the original images of the corresponding screens according to the zooming proportion of each screen to obtain zoomed images, wherein the zooming comprises the following steps:

and reducing the original image of the corresponding screen along the first direction according to the reduction proportion of each screen to obtain a scaled image.

In an alternative example, when the processor 1010 determines the reduction ratio of the corresponding screen along the first direction of the folded screen according to the angle of sight of each screen, the following steps may be performed:

under the condition that the included angles of the sight lines of the first screen and the second screen are different, the reduction proportion of the first screen is different from that of the second screen;

accordingly, when the processor 1010 performs zooming out the original image of the corresponding screen in the first direction according to the zoom-out scale of each screen to obtain a zoomed-out image, it may include performing the following steps:

determining a screen with a larger reduction ratio in the first screen and the second screen;

for the screen with larger reduction ratio, reducing the original image along the first direction according to the corresponding reduction ratio to obtain a scaled image of the corresponding screen;

for a screen with a smaller reduction ratio, reducing an original image along a first direction according to the corresponding reduction ratio to obtain a first image;

and reducing the first image to be aligned with the zoom image of the other screen at the folding axis to obtain the zoom image of the corresponding screen.

In an alternative example, when performing the step of obtaining the first screen view angle and the second screen view angle, respectively, the processor 1010 may include performing the following steps:

acquiring the sight line included angle of each screen at different positions along the second direction; the sight line included angle is an included angle of a connecting line between the eyes of the user and the corresponding position relative to the corresponding screen, and the second direction is a direction perpendicular to a folding axis of the folding screen on the corresponding screen;

when the processor 1010 determines the scaling of the corresponding screen according to the included angle of the line of sight of each screen, the following steps may be performed:

determining the stretching proportion of different positions of the corresponding screen along the second direction according to the sight line included angles of different positions of each screen along the second direction;

when the processor 1010 performs scaling on the original image of each screen according to the scaling of each screen to obtain a scaled image, the following steps may be performed:

respectively stretching the areas of the original images of the corresponding screens at the corresponding positions according to the stretching proportion of each screen at different positions in the second direction to obtain second images of the corresponding screens;

and reducing the second image of the corresponding screen to be completely displayed on the corresponding screen to obtain a scaled image of the corresponding screen.

In an alternative example, when the processor 1010 determines the stretching ratio of the corresponding screen at different positions along the second direction according to the view angle of each screen at different positions along the second direction, the processor may perform the following steps:

under the condition that the included angles of the sight lines of the first screen and the second screen are different, determining that the stretching proportion of the first screen is different from that of the second screen;

accordingly, when the processor 1010 performs the entire reduction of the second image of the corresponding screen to be completely displayed on the corresponding screen, and obtains the scaled image of the corresponding screen, the following steps may be performed:

determining a screen with smaller stretching ratio according to the stretching ratio of the first screen and the ratio of the second screen;

for the screen with smaller stretching proportion, the second image of the corresponding screen is wholly reduced to be capable of being completely displayed on the corresponding screen, and a zoom image of the corresponding screen is obtained;

and for the screen with larger stretching proportion, reducing the second image of the corresponding screen to be aligned with the zooming image of the other screen at the folding axis to obtain the zooming image of the corresponding screen.

The electronic equipment provided by the embodiment of the application can determine the scaling ratio of the corresponding screen according to the sight line included angle of each screen by respectively acquiring the sight line included angle of the first screen and the sight line included angle of the second screen, so that the original image of the corresponding screen is respectively scaled according to the scaling ratio of each screen to obtain the scaled image, the scaled image of the corresponding screen is displayed on each screen, the electronic equipment provided by the embodiment of the application can display different sub-screens in a scaling manner according to different scaling ratios, and a better viewing effect can be realized.

It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种便于携带的计算机软件测试装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!