CN111010476A - Image display method, device, terminal and readable storage medium - Google Patents

Image display method, device, terminal and readable storage medium Download PDF

Info

Publication number
CN111010476A
CN111010476A CN201911109342.6A CN201911109342A CN111010476A CN 111010476 A CN111010476 A CN 111010476A CN 201911109342 A CN201911109342 A CN 201911109342A CN 111010476 A CN111010476 A CN 111010476A
Authority
CN
China
Prior art keywords
image
terminal screen
angle
target
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911109342.6A
Other languages
Chinese (zh)
Inventor
汪翔
钟明亮
马跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911109342.6A priority Critical patent/CN111010476A/en
Publication of CN111010476A publication Critical patent/CN111010476A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an image display method, an image display device, a terminal and a storage medium, wherein the method comprises the following steps: detecting the attitude change condition of the terminal screen to obtain attitude change data, determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data, and generating an image adjustment strategy of a target image according to the rotation data; the image adjusting strategy comprises the steps of enabling a target image to be reversely rotated to the terminal screen and adjusting to a target angle; the target image is an image to be displayed, an image adjustment strategy is executed, the target image is displayed in the terminal screen, the target image is enabled to rotate in the direction opposite to the rotation direction of the terminal screen, the target image is displayed on the terminal screen at any angle, the defect of watching caused by only horizontal screen display and vertical screen display is overcome, the image rotates reversely along with the rotation of the terminal screen, and therefore the angle of the image is always kept or close to the same as the watching angle of a user, and more comfortable impression is brought.

Description

Image display method, device, terminal and readable storage medium
Technical Field
The present invention relates to the field of video technologies, and in particular, to an image display method, an image display apparatus, a terminal, and a computer-readable storage medium.
Background
With the development of mobile terminal technology, people watch video, animation and other image contents more and more through mobile terminals such as mobile phones, and various network video applications are produced. Generally, a video application supports two modes of horizontal screen display and vertical screen display, for example, a horizontal screen button on a playing interface is clicked, and a video which is being displayed on a vertical screen can be switched to be displayed on the horizontal screen; or when the user holds the mobile phone vertically, the display is automatically switched to the vertical screen display, and when the user holds the mobile phone transversely, the display is automatically switched to the horizontal screen display.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an image display method, an image display apparatus, a terminal and a computer-readable storage medium, thereby solving the problem of only two modes of horizontal screen display and vertical screen display.
In order to solve the above problem, the present invention discloses an image display method, which is executed in a mobile terminal, and comprises:
detecting the attitude change condition of a terminal screen to obtain attitude change data;
determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data;
generating an image adjustment strategy of the target image according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed;
and executing the image adjusting strategy, and displaying the target image in the terminal screen.
Optionally, the image adjustment strategy further includes enlarging or reducing the target image to a target screen display scale;
the image adjustment strategy for generating the target image according to the rotation data comprises the following steps:
and determining the display scale of the target picture according to the rotation data.
Optionally, the determining the display scale of the target picture according to the rotation data includes:
detecting the current angle of the terminal screen according to the rotation data; the current angle is an angle of the terminal screen around an axis perpendicular to the terminal screen relative to an initial angle;
and determining the display scale of the target picture according to the current angle.
Optionally, the rotation data includes angle change data, and the generating of the image adjustment policy for the target image according to the rotation data includes:
determining the target angle according to the angle change data; the difference between the target angle and the angle change data is within a preset range.
Optionally, the detecting a posture change condition of the terminal screen, and obtaining posture change data includes:
acquiring a detection result of the attitude sensor; the attitude sensor comprises at least one of a gyroscope sensor, an acceleration sensor and a gravity sensor;
and determining the attitude change data according to the detection result.
According to a second aspect of the present invention, there is disclosed an image display apparatus, executed in a mobile terminal, comprising:
the gesture detection module is used for detecting gesture change conditions of the terminal screen to obtain gesture change data;
the data determining module is used for determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data;
the strategy generating module is used for generating an image adjusting strategy of the target image according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed;
and the image display module is used for executing the image adjustment strategy and displaying the target image in the terminal screen.
Optionally, the image adjustment strategy further includes enlarging or reducing the target image to a target screen display scale;
the policy generation module includes:
and the proportion determining submodule is used for determining the display proportion of the target picture according to the rotation data.
Optionally, the ratio determination sub-module includes:
the angle detection unit is used for detecting the current angle of the terminal screen according to the rotation data; the current angle is an angle of the terminal screen around an axis perpendicular to the terminal screen relative to an initial angle;
and the proportion determining unit is used for determining the display proportion of the target picture according to the current angle.
Optionally, the rotation data includes angle change data, and the policy generation module includes:
the angle determining module is used for determining the target angle according to the angle change data; the difference between the target angle and the angle change data is within a preset range.
Optionally, the state detection module includes:
the result acquisition submodule is used for acquiring the detection result of the attitude sensor; the attitude sensor comprises at least one of a gyroscope sensor, an acceleration sensor and a gravity sensor;
and the data determining submodule is used for determining the attitude change data according to the detection result.
According to a third aspect of the present invention, there is disclosed a terminal, comprising: a memory, a processor and an image display program stored on the memory and executable on the processor, the image display program when executed by the processor implementing the steps of the image display method as described above.
According to a fourth aspect of the present invention, a computer-readable storage medium is disclosed, characterized in that the computer-readable storage medium has stored thereon an image display program which, when executed by a processor, implements the steps in the image display method as described above.
In summary, according to the embodiment of the present invention, posture change data is obtained by detecting a posture change condition of a terminal screen, rotation data of the terminal screen rotating around an axis perpendicular to the terminal screen is determined according to the posture change data, and an image adjustment policy of a target image is generated according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed, the image adjustment strategy is executed, the target image is displayed in the terminal screen, the target image is made to rotate in the direction opposite to the rotation direction of the terminal screen, the target image is displayed on the terminal screen at any angle, the defect of viewing caused by only horizontal screen display and vertical screen display is overcome, the image rotates reversely along with the rotation of the terminal screen, and therefore the angle of the image is always kept or close to the viewing angle of a user, and more comfortable impression is brought.
Drawings
FIG. 1 is a flow chart illustrating the steps of one embodiment of an image display method of the present invention;
FIG. 2 is a flow chart illustrating the steps of another image display method embodiment of the present invention;
FIG. 3 shows a schematic diagram of a current angle of a terminal screen;
fig. 4 is a block diagram showing a configuration of an embodiment of an image display apparatus of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The terminal screen includes a display screen on a terminal such as a smart phone, a tablet computer, an intelligent wearable device, or any other suitable terminal screen, which is not limited in this embodiment of the present invention.
When a user watches images displayed on a terminal screen, the user can usually select a horizontal screen display mode or a vertical screen display mode, so that the problem of insufficient watching effect is caused. In order to solve the problem, the embodiments of the present invention provide the following technical solutions.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an image display method according to the present invention is shown, which may specifically include the following steps:
step 101, detecting the posture change condition of the terminal screen to obtain posture change data.
The terminal screen can rotate at any angle in a three-dimensional space, and when the terminal screen rotates, the terminal screen changes in posture relative to the original posture. The posture change data is used for representing a posture change condition, and includes data such as a direction and a degree of posture change, and may specifically include any applicable posture change data, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the implementation manner of detecting the posture change condition of the terminal screen and obtaining the posture change data may include multiple manners, for example, a gyroscope sensor, an acceleration sensor, a gravity sensor, and the like, which are configured on the terminal, are used to determine the posture of the terminal, and according to the detection result of the one or more sensors, the posture change data of the terminal screen may be obtained, and specifically, any suitable manner may be adopted to detect the posture change data, which is not limited in this embodiment of the present invention.
For example, a user holds a mobile phone and watches a video being played on a screen of the mobile phone, the mobile phone is usually provided with a sensor capable of detecting a posture change condition of the mobile phone, such as a gyroscope sensor, an acceleration sensor, a gravity sensor and the like, and when the user rotates the mobile phone, the sensor can obtain posture change data.
And 102, determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data.
In the embodiment of the invention, a user can rotate the terminal screen at any angle, some rotations include rotation of the terminal screen around an axis perpendicular to the terminal screen, and some rotations do not include rotation of the terminal screen around an axis perpendicular to the terminal screen. The rotation data includes data related to the rotation of the terminal screen around an axis perpendicular to the terminal screen, such as a direction of the rotation, an angle of the rotation, a speed of the rotation, and the like, or any other suitable data, which is not limited in this embodiment of the present invention. The rotation data may be in the form of angles, vectors, etc., or any other suitable form. For example, the angle change data is used to characterize the angle of rotation of the terminal screen about an axis perpendicular to the terminal screen, and includes the direction of rotation, e.g., the angle is a positive number representing clockwise rotation, and the angle is a negative number representing counterclockwise rotation.
In the embodiment of the present invention, the implementation manner of determining the rotation data of the terminal screen around the axis perpendicular to the terminal screen according to the posture change data may include various manners, for example, firstly converting the posture change data into coordinate transformation data in a three-dimensional coordinate system, and then calculating data changing around the axis perpendicular to the terminal screen in the coordinate transformation data to obtain coordinate transformation data around the axis perpendicular to the terminal screen as the rotation data; or calculating rotation data of the terminal screen around an axis perpendicular to the terminal screen according to the coordinate transformation data, or any other suitable implementation manner, which is not limited in this embodiment of the present invention.
The coordinate transformation data includes, but is not limited to, data describing coordinate transformation of the object in a three-dimensional space in the form of a rotation matrix, a quaternion, and the like. The rotation matrix is a matrix which has the effect of changing the direction of the vector but not changing the size when the vector is multiplied by the rotation matrix and keeps the chirality, and the posture change data recalled back by the sensor is converted into the rotation matrix. Quaternions are a representation of rotations, complex numbers consisting of real numbers plus imaginary units i, where i ^2 ^ -1. Similarly, quaternions are all made up of real numbers plus three imaginary units i, j, k, and they have the following relationship: i ^2 ^ j ^2 ^ k ^2 ^ 1, i ^0 ^ j ^0 ^ k ^0 ^ 1, each quaternion is a linear combination of 1, i, j and k, i.e. quaternions can be generally expressed as a + bi + cj + dk, where a, b, c and d are real numbers.
According to the coordinate transformation data, rotation data of the terminal screen around an axis perpendicular to the terminal screen can be calculated, and the obtained rotation data can be in the forms of angles, vectors and the like. For example, the angle change of the mobile phone from the position 1 to the position 2 can be calculated according to the rotation matrix, and the scheme does not need the angle change in all directions and only needs to calculate the angle a rotated around an axis vertical to the screen of the mobile phone.
For example, one or more of a gyroscope sensor, an acceleration sensor, a gravity sensor, etc. cannot directly use the detected attitude change data, and the attitude change data is converted into a rotation matrix, i.e., coordinate transformation data describing an object in a three-dimensional space, and then angle change data around a position perpendicular to a terminal screen is calculated according to the rotation matrix.
103, generating an image adjustment strategy of the target image according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed.
In the embodiment of the present invention, the target image is an image to be displayed, and includes various forms such as videos, animations, pictures, and the like, or any other suitable forms. Before the target image is displayed, an image adjustment strategy of the target image is generated according to the rotation data. The image adjustment strategy comprises the following steps: and adjusting the target image to a target angle in a direction opposite to the rotation direction of the terminal screen, so that the target image can rotate reversely along with the rotation of the terminal screen.
The target angle may be determined according to the rotation data, and may specifically include a plurality of determination manners, for example, the rotation data includes angle change data, the target angle may be equal to the angle change data or different from the angle change data by a set angle, or any other suitable determination manner, which is not limited in this embodiment of the present invention.
For example, a user watches a video in a vertical screen display mode at the beginning, then the user rotates the mobile phone, one component of the rotation is that the mobile phone rotates clockwise by 45 degrees around an axis vertical to a screen of the mobile phone, in the rotation process from 0 degree to 45 degrees, a gyroscope sensor and an acceleration sensor on the mobile phone continuously detect attitude change data at a set frequency and store the attitude change data in a cache, when the video displays an image of each video frame, the attitude change data is extracted from the cache, the rotation data of a terminal screen around the axis vertical to the screen of the mobile phone is determined, an image adjustment strategy of a target image is generated according to the rotation data, when the mobile phone rotates clockwise by 1 degree, the generated image adjustment strategy is that the image of the video frame rotates anticlockwise by 1 degree on the screen of the mobile phone, when the mobile phone rotates clockwise by 2 degrees, the generated image adjustment strategy is that the image of the video frame rotates anticlockwise by 2 degrees on the screen of the mobile phone, when the mobile phone rotates clockwise by 45 degrees, the generated image adjustment strategy is to make the image of the video frame rotate counterclockwise by 45 degrees on the screen of the mobile phone.
And 104, executing the image adjusting strategy, and displaying the target image in the terminal screen.
In the embodiment of the invention, after the image adjustment strategy is generated, the image adjustment strategy is executed aiming at the target image, and the target image is displayed in the terminal screen. In specific implementation, when the target image is rendered, an image adjustment strategy is executed, when the target image is rendered, the target image is adjusted to a target angle in a direction opposite to the rotation direction of the terminal screen, and then the rendered target image is displayed in the terminal screen.
For example, when a video is played on a terminal screen, an image of each video frame is rendered according to angle change data and then displayed, so that the video is played and reversely rotated along with the rotation of the terminal screen, when the angle of the reverse rotation of the video on the terminal screen is equal to the angle of the rotation of the terminal screen, the video is just not rotated relative to a user watching the video, and a richer watching effect is realized.
In summary, according to the embodiment of the present invention, posture change data is obtained by detecting a posture change condition of a terminal screen, rotation data of the terminal screen rotating around an axis perpendicular to the terminal screen is determined according to the posture change data, and an image adjustment policy of a target image is generated according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed, the image adjustment strategy is executed, the target image is displayed in the terminal screen, the target image is made to rotate in the direction opposite to the rotation direction of the terminal screen, the target image is displayed on the terminal screen at any angle, the defect of viewing caused by only horizontal screen display and vertical screen display is overcome, the image rotates reversely along with the rotation of the terminal screen, and therefore the angle of the image is always kept or close to the viewing angle of a user, and more comfortable impression is brought.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of an image display method according to the present invention is shown, which may specifically include the following steps:
step 201, obtaining a detection result of the attitude sensor.
In the embodiment of the present invention, the attitude sensor is used to determine the attitude of the terminal, and includes a gyroscope sensor, an acceleration sensor, a gravity sensor, or any other suitable sensor, which is not limited in this embodiment of the present invention. Among them, the gyro Sensor (gyro Sensor) is a simple and easy-to-use positioning and control system based on free space movement and gestures. An acceleration sensor (acceleration transducer) is a sensor capable of measuring acceleration. The gravity sensor adopts an elastic sensitive element to manufacture a cantilever type displacer and an energy storage spring manufactured by the elastic sensitive element to drive an electric contact, so that the conversion from the gravity change to an electric signal is completed. The gyroscope sensor can detect angular velocity, the acceleration sensor can detect acceleration, the gravity sensor can detect acceleration caused by gravity, and detection results of the one or more sensors are obtained respectively.
Step 202, determining the attitude change data according to the detection result.
In the embodiment of the invention, the attitude change data is determined according to the detection result of one or more sensors. For example, the three-dimensional space may be represented by a three-dimensional space coordinate system, the detection result of the gyro sensor is an angular velocity rotating around three coordinate axes, the detection result of the acceleration sensor is a linear acceleration along three coordinate axes, and the detection results of the gyro sensor and the acceleration sensor are combined to obtain the attitude change data.
Step 203, determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data.
In the embodiment of the present invention, the specific implementation manner of this step may refer to the description in the foregoing embodiment, and details are not described herein.
And 204, determining the target angle according to the angle change data.
In the embodiment of the invention, the rotation data comprises angle change data, and the image adjustment strategy is generated according to the rotation data, wherein the target angle is determined according to the angle change data. The angle change data and the target angle may be equal in size, or there may be a difference between the size of the angle change data and the size of the target angle, but the difference between the angle change data and the target angle should be within a preset range. For example, the angle change data is 5 degrees and the target angle is 6 degrees. Any suitable preset range may be specifically included, and the embodiment of the present invention is not limited thereto.
Step 205, determining the display scale of the target picture according to the rotation data.
In the embodiment of the present invention, in order to improve the viewing effect, the image adjustment strategy further includes enlarging or reducing the target image to the target screen display scale. According to the rotation data, an implementation mode of an image adjustment strategy for generating a target image comprises the steps of determining a target image display proportion according to the rotation data, and therefore when a terminal screen rotates to different angles, amplifying or reducing the displayed target image to different degrees to achieve the target image display proportion. The vertical version video is not displayed in a vertical screen mode, or the horizontal version video is not displayed in a horizontal screen mode, so that partial images cannot be displayed in a terminal screen, and partial areas in the terminal screen are free of images; when the partial images cannot be displayed in the terminal screen, the display scale of the target image is reduced, the viewing experience can be considered, and the integrity of the image information can be ensured.
The target picture display scale is used for determining the size of the displayed target image, the smaller the target picture display scale is, the smaller the size of the target image is, and the larger the target picture display scale is, the larger the size of the target image is. For example, when a user watches a portrait video, in the process of rotating from the terminal screen in the portrait display state to the landscape display state, the target image is gradually enlarged to the target image display scale along with the rotation process. The implementation manner of determining the display ratio of the target picture according to the rotation data may include multiple implementations, for example, determining the display ratio of the target picture to be 105% according to the angle change data being 5 degrees, or any other applicable implementation manner, which is not limited by the embodiment of the present invention.
In this embodiment of the present invention, optionally, one implementation manner of determining the display scale of the target screen according to the rotation data may include: detecting the current angle of the terminal screen according to the rotation data; and the current angle is the angle of the terminal screen around an axis perpendicular to the terminal screen relative to the initial angle, and the target picture display proportion is determined according to the current angle.
When the posture change condition of the terminal screen is detected, the terminal screen can be in any initial posture, for example, when a user watches the terminal screen in a sitting posture or a standing posture, the terminal screen plays a video in a vertical screen display mode or a horizontal screen display mode, and when the detection is started, the long edge of the terminal screen is parallel or approximately parallel to a horizontal plane; or when the user watches the terminal screen in a lying posture, the terminal screen plays a video in a vertical screen display or horizontal screen display mode, and when the detection is started, the long edge of the terminal screen is vertical or nearly vertical to the horizontal plane; or when the detection is started, an included angle with any size is formed between the long edge of the terminal screen and the horizontal plane.
Attitude change data is obtained by continuously detecting the attitude change condition of the terminal screen, and the rotation data is updated accordingly. The current angle of the terminal screen refers to the angle of the terminal screen around an axis perpendicular to the terminal screen relative to the initial angle, and the current angle of the terminal screen can be detected according to the rotation data determined once or for multiple times.
For example, when a user views a video in a landscape display state, initially defining an initial angle of a terminal screen as 0 degree, and as the posture of the terminal screen changes, the first determined rotation data is that the terminal screen rotates clockwise by 10 degrees around an axis perpendicular to the terminal screen, so that a current angle of the terminal screen is 10 degrees, the second determined rotation data is that the terminal screen rotates clockwise by 20 degrees around an axis perpendicular to the terminal screen, so that the first determined angle is superimposed, the current angle of the terminal screen is 30 degrees, the third determined rotation data is that the terminal screen rotates counterclockwise by 10 degrees around an axis perpendicular to the terminal screen, so that the angles determined in the first two times are superimposed, as shown in the schematic diagram of the current angle of the terminal screen shown in fig. 3, and the current angle of the terminal screen is 20 degrees. Specifically, any other suitable manner may be adopted to determine the current angle, which is not limited in this embodiment of the present invention.
And along with the change of the current angle of the terminal screen, the display scale of the target picture is changed. For example, if the current angle of the terminal screen is 5 degrees, the target screen display ratio is 105%, and if the current angle of the terminal screen is 10 degrees, the target screen display ratio is 110%. By determining the target picture display proportion according to the current angle, the most appropriate target picture display proportion is convenient to determine, for example, the target image can fill the display area on the terminal screen, that is, the display area does not have black edges, so that the watching effect is better. Of course, after the target image is enlarged, part of the content will not be displayed in the display area.
One way to determine the display scale of the target picture may be calculated according to a display scale adjustment policy and the current angle, where the display scale adjustment policy is used to determine a relationship between the current angle and the display scale of the target picture, for example, when the current angle is 1 degree, the display scale of the target picture is increased by 1% relative to the original scale, and when the current angle is 2 degrees, the display scale of the target picture is increased by 2% relative to the original scale.
The display scale adjustment strategy can be changed along with the change of the angle range of the current angle of the terminal screen, a plurality of angle ranges need to be divided, and each angle range has a corresponding display scale adjustment strategy. And in response to detecting that the current angle range in which the current angle is located is different from the angle range in which the current angle is located last time, determining a display scale adjustment strategy corresponding to the current angle range. And calculating the display scale of the target picture according to the determined display scale adjustment strategy and the current angle.
For example, when a video displayed in a landscape mode is watched initially, the first angle range is 0-90 degrees, the corresponding display scale adjustment strategy is that the target picture display scale is correspondingly increased along with the increase of the current angle, and the target picture display scale is correspondingly reduced along with the reduction of the current angle; the second angle range is 90-180 degrees, the corresponding display scale adjustment strategy is that the target picture display scale is correspondingly reduced along with the increase of the current angle, and the target picture display scale is correspondingly increased along with the reduction of the current angle; the third angle range is 180-270 degrees, the corresponding display scale adjustment strategy is that the display scale of the target picture is correspondingly increased along with the increase of the current angle, and the display scale of the target picture is correspondingly reduced along with the reduction of the current angle; the range of the fourth angle is 270 degrees to 360 degrees, the corresponding display scale adjustment strategy is that the display scale of the target picture is correspondingly reduced along with the increase of the current angle, and the display scale of the target picture is correspondingly increased along with the reduction of the current angle. The angle range may be divided according to actual requirements, and a corresponding display scale adjustment strategy may be set, which is not limited in the embodiments of the present invention.
And step 206, executing the image adjusting strategy, and displaying the target image in the terminal screen.
In the embodiment of the present invention, the specific implementation manner of this step may refer to the description in the foregoing embodiment, and details are not described herein.
To sum up, according to the embodiments of the present invention, by obtaining the detection result of the attitude sensor, determining the attitude change data according to the detection result, determining the rotation data of the terminal screen rotating around the axis perpendicular to the terminal screen according to the attitude change data, determining the target angle according to the angle change data, determining the target picture display ratio according to the rotation data, executing the image adjustment policy, displaying the target image in the terminal screen, and rotating the target image in a direction opposite to the rotation direction of the terminal screen, the target image is displayed at any angle on the terminal screen, the viewing defect caused by only landscape display and portrait display is overcome, and the image rotates reversely with the rotation of the terminal screen, so that the angle of the image is always kept or close to the viewing angle of the user, thereby bringing more comfortable appearance.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of an embodiment of an image display apparatus according to the present invention is shown, where the apparatus is implemented in a mobile terminal, and may specifically include the following modules:
the gesture detection module 301 is configured to detect a gesture change condition of a terminal screen to obtain gesture change data;
a data determining module 302, configured to determine, according to the posture change data, rotation data of the terminal screen rotating around an axis perpendicular to the terminal screen;
a policy generation module 303, configured to generate an image adjustment policy for the target image according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed;
and an image display module 304, configured to execute the image adjustment policy and display the target image in the terminal screen.
In the embodiment of the present invention, optionally, the image adjustment policy further includes enlarging or reducing the target image to a target screen display scale;
the policy generation module includes:
and the proportion determining submodule is used for determining the display proportion of the target picture according to the rotation data.
In this embodiment of the present invention, optionally, the ratio determining sub-module includes:
the angle detection unit is used for detecting the current angle of the terminal screen according to the rotation data; the current angle is an angle of the terminal screen around an axis perpendicular to the terminal screen relative to an initial angle;
and the proportion determining unit is used for determining the display proportion of the target picture according to the current angle.
In this embodiment of the present invention, optionally, the rotation data includes angle change data, and the policy generating module includes:
the angle determining module is used for determining the target angle according to the angle change data; the difference between the target angle and the angle change data is within a preset range.
In this embodiment of the present invention, optionally, the state detection module includes:
the result acquisition submodule is used for acquiring the detection result of the attitude sensor; the attitude sensor comprises at least one of a gyroscope sensor, an acceleration sensor and a gravity sensor;
and the data determining submodule is used for determining the attitude change data according to the detection result.
In summary, according to the embodiment of the present invention, posture change data is obtained by detecting a posture change condition of a terminal screen, rotation data of the terminal screen rotating around an axis perpendicular to the terminal screen is determined according to the posture change data, and an image adjustment policy of a target image is generated according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed, the image adjustment strategy is executed, the target image is displayed in the terminal screen, the target image is made to rotate in the direction opposite to the rotation direction of the terminal screen, the target image is displayed on the terminal screen at any angle, the defect of viewing caused by only horizontal screen display and vertical screen display is overcome, the image rotates reversely along with the rotation of the terminal screen, and therefore the angle of the image is always kept or close to the viewing angle of a user, and more comfortable impression is brought.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to still another embodiment of the present invention, there is also provided a terminal including: a memory, a processor and an image display program stored on the memory and executable on the processor, the image display program when executed by the processor implementing the steps of the image display method as described in any of the above embodiments.
According to still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon an image display program which, when executed by a processor, implements the steps in the image display method according to any one of the above-described embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The foregoing detailed description of an image display method, an image display apparatus, a terminal, and a computer-readable storage medium according to the present invention has been presented, and specific examples are used herein to explain the principles and implementations of the present invention, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An image display method, which is executed in a mobile terminal, includes:
detecting the attitude change condition of a terminal screen to obtain attitude change data;
determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data;
generating an image adjustment strategy of the target image according to the rotation data; the adjustment strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed;
and executing the image adjusting strategy, and displaying the target image in the terminal screen.
2. The method of claim 1, wherein the image adjustment strategy further comprises zooming in or out the target image to a target screen display scale;
the image adjustment strategy for generating the target image according to the rotation data comprises the following steps:
and determining the display scale of the target picture according to the rotation data.
3. The method of claim 2, wherein determining the target frame display scale based on the rotation data comprises:
detecting the current angle of the terminal screen according to the rotation data; the current angle is an angle of the terminal screen around an axis perpendicular to the terminal screen relative to an initial angle;
and determining the display scale of the target picture according to the current angle.
4. The method of claim 1, wherein the rotation data comprises angle change data, and wherein generating an image adjustment policy for the target image based on the rotation data comprises:
determining the target angle according to the angle change data; the difference between the target angle and the angle change data is within a preset range.
5. The method according to claim 1, wherein the detecting the gesture change condition of the terminal screen, and obtaining the gesture change data comprises:
acquiring a detection result of the attitude sensor; the attitude sensor comprises at least one of a gyroscope sensor, an acceleration sensor and a gravity sensor;
and determining the attitude change data according to the detection result.
6. An image display apparatus, characterized in that the apparatus is arranged in a mobile terminal, comprising:
the gesture detection module is used for detecting gesture change conditions of the terminal screen to obtain gesture change data;
the data determining module is used for determining rotation data of the terminal screen rotating around an axis vertical to the terminal screen according to the attitude change data;
the strategy generating module is used for generating an image adjusting strategy of the target image according to the rotation data; the image adjusting strategy comprises the steps of enabling the target image to be adjusted to a target angle in a reverse direction of the rotation direction of the terminal screen; the target image is an image to be displayed;
and the image display module is used for executing the image adjustment strategy and displaying the target image in the terminal screen.
7. A terminal, comprising: memory, processor and image display program stored on the memory and executable on the processor, the image display program when executed by the processor implementing the steps of the image display method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that an image display program is stored thereon, which when executed by a processor implements the steps in the image display method according to any one of claims 1 to 5.
CN201911109342.6A 2019-11-13 2019-11-13 Image display method, device, terminal and readable storage medium Pending CN111010476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911109342.6A CN111010476A (en) 2019-11-13 2019-11-13 Image display method, device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911109342.6A CN111010476A (en) 2019-11-13 2019-11-13 Image display method, device, terminal and readable storage medium

Publications (1)

Publication Number Publication Date
CN111010476A true CN111010476A (en) 2020-04-14

Family

ID=70113304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911109342.6A Pending CN111010476A (en) 2019-11-13 2019-11-13 Image display method, device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN111010476A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium
CN112367552A (en) * 2020-06-08 2021-02-12 三星电子(中国)研发中心 Image deformation adaptation method and device
CN112533049A (en) * 2020-11-26 2021-03-19 深圳创维-Rgb电子有限公司 Picture following screen rotation processing method and device, intelligent terminal and medium
CN112732148A (en) * 2020-12-30 2021-04-30 联想(北京)有限公司 Image display method and electronic equipment
CN112783585A (en) * 2020-07-21 2021-05-11 华人运通(上海)云计算科技有限公司 Interface adjusting method and device, electronic equipment, vehicle and storage medium
CN112887477A (en) * 2021-01-26 2021-06-01 努比亚技术有限公司 Voice processing method and device, mobile terminal and computer readable storage medium
CN116820379A (en) * 2023-08-31 2023-09-29 中国电子科技集团公司第十五研究所 Equipment display control method based on human engineering, server and storage medium
CN117687501A (en) * 2023-07-06 2024-03-12 荣耀终端有限公司 Display method for switching horizontal screen and vertical screen and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140347806A1 (en) * 2013-05-21 2014-11-27 Masateru Totani Image display device
CN105100396A (en) * 2015-05-21 2015-11-25 努比亚技术有限公司 Mobile terminal and rotating display method and device thereof
CN106527699A (en) * 2016-10-26 2017-03-22 惠州Tcl移动通信有限公司 Method and system capable of realizing synchronous rotation of display interface and terminal
WO2017173583A1 (en) * 2016-04-05 2017-10-12 华为技术有限公司 Terminal display anti-shake method and apparatus
CN109348139A (en) * 2018-10-19 2019-02-15 北京凯视达科技有限公司 Video rotation method, device, computer readable storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140347806A1 (en) * 2013-05-21 2014-11-27 Masateru Totani Image display device
CN105100396A (en) * 2015-05-21 2015-11-25 努比亚技术有限公司 Mobile terminal and rotating display method and device thereof
WO2017173583A1 (en) * 2016-04-05 2017-10-12 华为技术有限公司 Terminal display anti-shake method and apparatus
CN106527699A (en) * 2016-10-26 2017-03-22 惠州Tcl移动通信有限公司 Method and system capable of realizing synchronous rotation of display interface and terminal
CN109348139A (en) * 2018-10-19 2019-02-15 北京凯视达科技有限公司 Video rotation method, device, computer readable storage medium and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367552A (en) * 2020-06-08 2021-02-12 三星电子(中国)研发中心 Image deformation adaptation method and device
CN112783585A (en) * 2020-07-21 2021-05-11 华人运通(上海)云计算科技有限公司 Interface adjusting method and device, electronic equipment, vehicle and storage medium
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium
WO2022048424A1 (en) * 2020-09-03 2022-03-10 深圳市雷鸟网络传媒有限公司 Screen picture adaptive adjustment method, apparatus and device, and storage medium
CN112533049A (en) * 2020-11-26 2021-03-19 深圳创维-Rgb电子有限公司 Picture following screen rotation processing method and device, intelligent terminal and medium
CN112732148A (en) * 2020-12-30 2021-04-30 联想(北京)有限公司 Image display method and electronic equipment
CN112887477A (en) * 2021-01-26 2021-06-01 努比亚技术有限公司 Voice processing method and device, mobile terminal and computer readable storage medium
CN112887477B (en) * 2021-01-26 2023-11-14 努比亚技术有限公司 Voice processing method, device, mobile terminal and computer readable storage medium
CN117687501A (en) * 2023-07-06 2024-03-12 荣耀终端有限公司 Display method for switching horizontal screen and vertical screen and related device
CN116820379A (en) * 2023-08-31 2023-09-29 中国电子科技集团公司第十五研究所 Equipment display control method based on human engineering, server and storage medium

Similar Documents

Publication Publication Date Title
CN111010476A (en) Image display method, device, terminal and readable storage medium
US11217019B2 (en) Presenting image transition sequences between viewing locations
CN109313812B (en) Shared experience with contextual enhancements
US9992429B2 (en) Video pinning
US9589321B2 (en) Systems and methods for animating a view of a composite image
US9888179B1 (en) Video stabilization for mobile devices
US20150062178A1 (en) Tilting to scroll
US20170046820A1 (en) Equatorial Stitching of Hemispherical Images in a Spherical Image Capture System
US20230245398A1 (en) Image effect implementing method and apparatus, electronic device and storage medium
CN106447788B (en) Method and device for indicating viewing angle
CN103795892A (en) Method and apparatus for processing collected image data
CN107329671B (en) Model display method and device
JP2014053794A (en) Information processing program, information processing apparatus, information processing system, and information processing method
CN111163303A (en) Image display method, device, terminal and storage medium
CN109147058A (en) Initial method and device and storage medium for the fusion of vision inertial navigation information
CN110286906A (en) Method for displaying user interface, device, storage medium and mobile terminal
CN114401362A (en) Image display method and device and electronic equipment
CN107197339B (en) Display control method and device of film bullet screen and head-mounted display equipment
US11054965B2 (en) Systems and methods for indicating highlights within spherical videos
US20200233556A1 (en) Systems and methods for interacting with video content
US20140184520A1 (en) Remote Touch with Visual Feedback
WO2015062176A1 (en) Multipoint touch-control multimedia spherical-screen demonstration instrument and multipoint touch-control method therefor
US20210287399A1 (en) Method and device for collecting images of a scene for generating virtual reality data
CN114049403A (en) Multi-angle three-dimensional face reconstruction method and device and storage medium
JP2014044569A (en) Electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414

RJ01 Rejection of invention patent application after publication