CN108536513B - Picture display direction adjusting method and mobile terminal - Google Patents
Picture display direction adjusting method and mobile terminal Download PDFInfo
- Publication number
- CN108536513B CN108536513B CN201810349566.3A CN201810349566A CN108536513B CN 108536513 B CN108536513 B CN 108536513B CN 201810349566 A CN201810349566 A CN 201810349566A CN 108536513 B CN108536513 B CN 108536513B
- Authority
- CN
- China
- Prior art keywords
- target
- picture
- shared
- pictures
- display
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000000007 visual effect Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a picture display direction adjusting method and a mobile terminal, wherein the method comprises the following steps: the method comprises the steps of obtaining at least two pictures to be shared, and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, wherein the display direction of the picture to be shared is the display direction of a target object image in the picture to be shared on a screen of the mobile terminal; determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared; determining a target picture with a display direction inconsistent with the target direction in the at least two pictures to be shared; and adjusting the display direction of the target picture to be the target direction. The mobile terminal provided by the invention can ensure that the pictures to be shared selected by the user have consistent display directions, thereby obtaining better display effect.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a picture display direction adjusting method and a mobile terminal.
Background
At present, with the continuous progress of the camera shooting technology of the mobile terminal, people generally take pictures by using the mobile terminal, and often share the taken pictures to various social network sites. In practical applications, many users are used to share immediately after taking pictures, but the display directions of the pictures in the taken pictures are not necessarily the same, for example: the display direction of some pictures is from the bottom end of the screen to the top end of the screen, and the display direction of some pictures is from the left side of the screen to the right side of the screen or other directions, so that the display directions of the shared pictures are often inconsistent, and thus, when a user views the shared pictures, visual confusion is easily generated.
Therefore, the problem of poor display effect exists in the existing mobile terminal when pictures are shared.
Disclosure of Invention
The embodiment of the invention provides a picture display direction adjusting method and a mobile terminal, and aims to solve the problem that the display effect is poor when the existing mobile terminal shares pictures.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for adjusting a display direction of a picture, which is applied to a mobile terminal, and the method includes:
the method comprises the steps of obtaining at least two pictures to be shared, and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, wherein the display direction of the picture to be shared is the display direction of a target object image in the picture to be shared on a screen of the mobile terminal;
determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared;
determining a target picture with a display direction inconsistent with the target direction in the at least two pictures to be shared;
and adjusting the display direction of the target picture to be the target direction.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the identification module is used for acquiring at least two pictures to be shared and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, wherein the display direction of the picture to be shared is the display direction of a target object image in the picture to be shared on a screen of the mobile terminal;
the first determining module is used for determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared;
the second determining module is used for determining a target picture of which the display direction is inconsistent with the target direction in the at least two pictures to be shared;
and the adjusting module is used for adjusting the display direction of the target picture to the target direction.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the above method for adjusting the display direction of a picture.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the above method for adjusting the display direction of a picture.
In the embodiment of the invention, when a user selects at least two pictures to be shared to be ready to share, the mobile terminal can respectively identify the display direction of each picture to be shared in the at least two pictures to be shared, determine the target direction according to the display direction of each picture to be shared in the at least two pictures to be shared, and finally adjust the display direction of a target picture with the display direction inconsistent with the target direction in the at least two pictures to be shared so as to keep the display direction of the target picture consistent with the target direction. Therefore, the mobile terminal can ensure that the pictures to be shared selected by the user have consistent display directions, so that a better display effect can be obtained.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for adjusting a display direction of a picture according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for adjusting a display direction of a picture according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a thumbnail of an adjusted picture according to an embodiment of the present invention;
fig. 3b is a schematic display diagram illustrating replacement of a target picture with an adjusted picture according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for adjusting a picture display direction according to an embodiment of the present invention, which is applied to a mobile terminal, and as shown in fig. 1, the method includes the following steps:
In this embodiment, the obtaining of the at least two pictures to be shared may be obtaining at least two pictures to be shared selected from the album, or obtaining at least two taken pictures to be shared.
The above identifying the display direction of each of the at least two pictures to be shared may be to first identify a target object image in each of the at least two pictures to be shared, and then identify the display direction of the target object image in each picture to be shared on the screen of the mobile terminal, where the target object image may be a person image, a building image, a scene image, or the like.
However, since some pictures may include at least two target object images at the same time, for example: a picture to be shared includes both a person image and a building image, and therefore, priorities of different types of object images can be set, for example: the image of the person object has the highest priority, the image of the building object has the lowest priority, and the image of the scene object has the lowest priority, so that when a picture to be shared comprises the image of the person object and the image of the building object, the image of the person object can be used as a target object image, and the display direction of the image of the person object in the picture to be shared can be identified.
Specifically, the display direction of the target object image in the picture to be shared is identified, which may be a direction in which one image feature of the target object image in the picture to be shared points to another image feature, for example: if the target object image is a face image, the direction of the nose image in the target object image pointing to the mouth image can be identified; or comparing the target object image in the picture to be shared with a pre-established model matched with the target object image to determine the display direction of the picture to be shared.
In this way, in this step, the display direction of each picture to be shared can be determined by obtaining at least two pictures to be shared and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, so that the target direction can be determined according to the display direction of each picture to be shared, and the display direction of the picture with the display direction inconsistent with the target direction in the at least two pictures to be shared is adjusted.
And step 102, determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared.
In this step, a target direction may be determined according to a display direction of each of the at least two pictures to be shared, specifically, whether the display directions of the pictures to be shared in the at least two pictures to be shared are consistent or not may be determined according to the display direction of each of the at least two pictures to be shared, and if the display directions of the pictures to be shared in the at least two pictures to be shared are inconsistent, one direction may be determined as the target direction. For example: the display directions of the pictures to be shared with the same display direction and a larger number in the at least two pictures to be shared may be taken as target directions, or forward display directions (such as a direction from the bottom end of the screen to the top end of the screen) in the at least two pictures to be shared may be taken as target directions, or one display direction may be randomly selected from the display directions of the pictures to be shared in the at least two pictures to be shared as a target direction.
In this way, in this step, the target direction is determined according to the display direction of each of the at least two pictures to be shared, so that the display direction of the picture with the display direction inconsistent with the target direction in the at least two pictures to be shared can be adjusted by taking the target direction as a reference direction, and further the display direction of each of the two pictures to be shared is kept consistent, thereby avoiding the user from generating visual confusion.
And 103, determining a target picture with the display direction inconsistent with the target direction in the at least two pictures to be shared.
In this step, a target picture whose display direction is inconsistent with the target direction in the at least two pictures to be shared may be determined, specifically, the display direction of each of the at least two pictures to be shared may be compared with the target direction, whether the display direction of each of the at least two pictures to be shared is consistent with the target direction or not is determined, and if the display direction of a certain one of the at least two pictures to be shared is inconsistent with the target direction, the picture to be shared is determined as the target picture. Therefore, through comparison and judgment, the target picture with the display direction inconsistent with the target direction in the at least two pictures to be shared can be determined.
In this way, in this step, by determining a target picture whose display direction is inconsistent with the target direction in the at least two pictures to be shared, a picture to be shared whose display direction needs to be adjusted in the at least two pictures to be shared can be determined, so that the display direction of the target picture can be adjusted, and the display direction of each picture to be shared in the at least two pictures to be shared is kept consistent.
And 104, adjusting the display direction of the target picture to be the target direction.
In this step, after a target picture whose display direction is inconsistent with the target direction is determined from the at least two pictures to be shared, the display direction of the target picture can be adjusted so as to keep the display direction of the target picture consistent with the target direction. Specifically, the target picture may be rotated by a plurality of angles until the display direction of the target picture is the target direction, or the target object image in the target picture may be rotated so that the display direction of the target object image in the target picture is the target direction.
It should be noted that, in this embodiment, after determining a target picture in which a display direction of the at least two pictures to be shared is inconsistent with the target direction, the display direction of the target picture may be directly adjusted to the target direction, or a prompt message may be output first to prompt a user that the display direction of the target picture is inconsistent with display directions of other pictures in the at least two pictures to be shared, and an option is provided to allow the user to select whether to adjust the display direction of the target picture, and the display direction of the target picture is adjusted to the target direction when the user confirms the adjustment.
In this way, in this step, the display direction of the target picture is adjusted to the target direction, so that the display direction of each of the at least two pictures to be shared is the target direction, and thus the at least two pictures to be shared can maintain the consistent display direction without causing a sense of visual confusion to the user, and the user experience can be improved.
In this embodiment of the present invention, the mobile terminal may be any device having a storage medium, for example: terminal devices such as computers (Computer), Mobile phones, Tablet Personal computers (Tablet Personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), and Wearable devices (Wearable Device).
In the method for adjusting the picture display direction in the embodiment, when a user selects at least two pictures to be shared, the mobile terminal may respectively identify the display direction of each of the at least two pictures to be shared, determine a target direction according to the display direction of each of the at least two pictures to be shared, and finally adjust the display direction of a target picture, of which the display direction is inconsistent with the target direction, of the at least two pictures to be shared, so that the display direction of the target picture is consistent with the target direction. Therefore, the mobile terminal can ensure that the pictures to be shared selected by the user have consistent display directions, so that a better display effect can be obtained.
Referring to fig. 2, fig. 2 is a flowchart of another method for adjusting a display direction of a picture according to an embodiment of the present invention, which is applied to a mobile terminal, and in this embodiment, on the basis of the embodiment shown in fig. 1, a step of determining a target direction according to a display direction of each picture to be shared in at least two pictures to be shared is refined, so that a manner of determining the target direction is clearer and more specific. As shown in fig. 2, the method comprises the steps of:
The specific implementation of this step can refer to the implementation of step 101 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and for avoiding repetition, details are not described here.
In this step, after the display direction of each of the at least two pictures to be shared is identified, the at least two pictures to be shared may be grouped according to the display direction of each of the at least two pictures to be shared, and specifically, the pictures to be shared having the same display direction in the at least two pictures to be shared may be grouped into one group, so that at least one group may be obtained.
For example: if the display direction of three pictures to be shared in the six pictures to be shared is from the bottom end of the screen to the top end of the screen, the display direction of two pictures to be shared is from the left side of the screen to the right side of the screen, and the display direction of one picture to be shared is from the right side of the screen to the left side of the screen, the six pictures to be shared can be divided into three groups, wherein the display direction of the pictures to be shared in the first group is from the bottom end of the screen to the top end of the screen, the display direction of the pictures to be shared in the second group is from the left side of the screen to the right side of the screen, and the display direction of the pictures to be shared in the third group is from the right side of the.
In this way, in this step, the at least two pictures to be shared are grouped according to the display direction of each picture to be shared in the at least two pictures to be shared, and the pictures to be shared in the same display direction in the at least two pictures to be shared can be grouped into one group, so that the group with the largest number of pictures in each group can be determined, and the target direction can be determined.
In this step, after the at least two pictures to be shared are grouped, the target direction may be determined according to the number of pictures in each group, and specifically, the display direction of the picture to be shared in the group with the largest number of pictures may be determined as the target direction. For example: if three groups are obtained after the at least two pictures to be shared are grouped, wherein the number of the pictures in the first group is three, the number of the pictures in the second group is two, and the number of the pictures in the third group is one, the display direction of the pictures to be shared in the first group can be determined as the target direction.
In this way, in this step, the display direction of the picture to be shared in the group with the largest number of pictures is determined as the target direction, so that the picture to be shared in the group with the smaller number of pictures in each group can be determined as the target picture, and the mobile terminal only needs to adjust the display direction of the picture to be shared with the smaller number of pictures, thereby achieving the purposes of saving system resources and improving the adjustment efficiency.
Optionally, step 203 includes:
when the number of the target groups is at least two, judging whether a group with the display direction consistent with a preset reference direction exists in the target groups, wherein the target group is the group with the largest number of pictures;
if a group with a display direction consistent with a preset reference direction exists in the target group, determining the preset reference direction as a target direction;
and if no group with the display direction consistent with the preset reference direction exists in the target group, randomly selecting one group from the target group, and determining the display direction of the picture to be shared in the selected group as the target direction.
In this embodiment, when the number of target packets is at least two, that is, there are at least two packets with the same number of pictures, it may be determined whether there is a packet with a display direction consistent with a preset reference direction in the target packets, where the target packet is a packet with the largest number of pictures, and the preset reference direction may be a preset forward reference direction, for example: when the mobile terminal is in a vertical screen state, the preset reference direction can be a direction from the bottom end of the screen to the top end of the screen; when the mobile terminal is in a horizontal screen state and the right side of the screen is down, the preset reference direction can be a direction from the right side of the screen to the left side of the screen; when the mobile terminal is in a horizontal screen state and the left side of the screen is down, the preset reference direction may be a direction from the left side of the screen to the right side of the screen.
If the target group is judged to have a group with the display direction consistent with the preset reference direction, the preset reference direction can be determined as the target direction, so that the at least two pictures to be shared can be ensured to be in the forward display direction, and the user can conveniently check the at least two pictures to be shared.
If it is determined that no group with the display direction consistent with the preset reference direction exists in the target group, one group can be randomly selected from the target group, and the display direction of the picture to be shared in the selected group is determined as the target direction.
In this way, in this embodiment, when the number of the packets with the largest number of pictures is at least two, by judging whether there is a packet whose display direction is consistent with the preset reference direction in the target packet, and determining how to determine the target direction according to the judgment result, the mobile terminal can determine the target direction in a better manner, so that the target direction can be determined quickly, and the user experience can be improved to a certain extent.
And 204, determining a target picture with the display direction inconsistent with the target direction in the at least two pictures to be shared.
The specific implementation of this step can refer to the implementation of step 103 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and for avoiding repetition, details are not described here.
The specific implementation of this step can refer to the implementation of step 104 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and for avoiding repetition, details are not described here.
Optionally, step 205 includes:
determining an included angle between the display direction of the target picture and the target direction;
and rotating the target picture according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction.
In this embodiment, before adjusting the display direction of the target picture, an included angle between the display direction of the target picture and the target direction may be determined, and specifically, a reference model capable of representing the display direction of the target picture and the target direction may be established according to the display direction of the target picture and the target direction, and the included angle between the display direction of the target picture and the target direction may be calculated according to the reference model.
After the included angle between the display direction of the target picture and the target direction is determined, the target picture can be rotated according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction. For example: if the included angle between the display direction of the target picture and the target direction is determined to be 90 degrees, the target picture can be rotated by 90 degrees clockwise; if the included angle between the display direction of the target picture and the target direction is determined to be minus 90 degrees, the target picture can be rotated 90 degrees anticlockwise; if the included angle between the display direction of the target picture and the target direction is determined to be 180 degrees, the target picture can be rotated by 180 degrees clockwise or anticlockwise.
In this way, in this embodiment, by determining an included angle between the display direction of the target picture and the target direction and rotating the target picture according to the determined included angle between the display direction of the target picture and the target direction, the display direction of the rotated target picture can be kept consistent with the target direction, so that the at least two pictures to be shared can be kept consistent in display direction, a sense of visual confusion is not caused to a user, and user experience can be improved.
Of course, the same can be applied to the embodiment shown in fig. 1 and the same advantageous effects can be achieved.
Optionally, after step 205, the method further includes:
displaying the adjusted picture at a preset position of a display area of the target picture, wherein the display area is located in a picture display area to be shared;
and if the preset touch operation aiming at the adjusted picture is detected, replacing the target picture with the adjusted picture.
In this embodiment, after the display direction of the target picture is adjusted, the adjusted picture may be displayed at the preset position of the display area of the target picture in the same size as the target picture, where the display area may be understood as a picture display area to be shared in a picture interface to be shared, and preferably, to avoid that the adjusted picture occupies a large space and affects a display effect, a thumbnail of the adjusted picture may be displayed at the preset position of the display area of the target picture, for example: as shown in fig. 3a, after the display direction of the target picture 301 is adjusted, a thumbnail 302 of the adjusted picture may be displayed at a preset position of the display area of the target picture 301. Therefore, the style of the target picture after the display direction is adjusted can be displayed for the user, and the user can further confirm whether the target picture needs to be replaced by the adjusted picture.
If preset touch operation for the adjusted picture is detected, the target picture can be replaced by the adjusted picture, wherein the preset touch operation can be preset clicking operation, long-time pressing operation or pressing operation and the like, and thus, if a user confirms to adjust the display direction of the target picture, the preset touch operation for the adjusted picture can be executed, so that the target picture is replaced by the adjusted picture by the mobile terminal, and the adjusted picture is not displayed at the preset position of the display area of the target picture. For example: if a preset touch operation on the thumbnail 302 of the adjusted picture is detected, the target picture 301 may be replaced by the adjusted picture 303, and the display effect of the adjusted picture may be as shown in fig. 3 b.
It should be noted that, if the preset touch operation for the adjusted picture is not detected, the target picture may not be replaced, but the target picture may be directly shared.
In this way, in this embodiment, after the display direction of the target picture is adjusted, the target picture may not be directly replaced by the adjusted picture, but the adjusted picture is displayed at the preset position of the display area of the target picture, so that a user may determine whether to confirm that the target picture is replaced by the adjusted picture, and the picture display direction adjustment method is more flexible.
It is understood that, after the step 205, the target picture may be directly replaced by the adjusted picture and shared.
Of course, the same can be applied to the embodiment shown in fig. 1 and the same advantageous effects can be achieved.
In this embodiment, on the basis of the embodiment shown in fig. 1, the step of determining the target direction according to the display direction of each of the at least two pictures to be shared is refined, so that the manner of determining the target direction is more clear and concrete. In addition, a plurality of optional implementation manners are added to the embodiment shown in fig. 1, and these optional implementation manners may be implemented in combination with each other or individually, and the pictures to be shared selected by the user can be ensured to have the same display direction, so that a better display effect is obtained.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the mobile terminal 400 includes:
the identification module 401 is configured to obtain at least two pictures to be shared, and identify a display direction of each of the at least two pictures to be shared, where the display direction of the picture to be shared is a display direction of a target object image in the picture to be shared on a screen of the mobile terminal 400;
a first determining module 402, configured to determine a target direction according to a display direction of each of the at least two pictures to be shared;
a second determining module 403, configured to determine a target picture whose display direction is inconsistent with the target direction in the at least two pictures to be shared;
an adjusting module 404, configured to adjust the display direction of the target picture to the target direction.
Optionally, as shown in fig. 5, the first determining module 402 includes:
the grouping unit 4021 is configured to group the at least two pictures to be shared according to a display direction of each of the at least two pictures to be shared, where the pictures to be shared in the same display direction are in a group;
the first determining unit 4022 is configured to determine the display direction of the picture to be shared in the group with the largest number of pictures as the target direction.
Optionally, as shown in fig. 6, the first determining unit 4022 includes:
a determining subunit 40221, configured to determine whether a packet whose display direction is consistent with a preset reference direction exists in target packets when the number of the target packets is at least two, where the target packets are packets with the largest number of pictures;
a first determining subunit 40222, configured to determine, if a group whose display direction is consistent with a preset reference direction exists in the target group, the preset reference direction as a target direction;
the second determining subunit 40223 is configured to, if there is no group in the target groups whose display direction is consistent with the preset reference direction, randomly select one group from the target groups, and determine the display direction of the to-be-shared picture in the selected group as the target direction.
Optionally, as shown in fig. 7, the adjusting module 404 includes:
a second determining unit 4041, configured to determine an included angle between the display direction of the target picture and the target direction;
the rotating unit 4042 is configured to rotate the target picture according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction.
Optionally, as shown in fig. 8, the mobile terminal 400 further includes:
a display module 405, configured to display the adjusted picture at a preset position in a display area of the target picture, where the display area is located in a display area of a picture to be shared;
a replacing module 406, configured to replace the target picture with the adjusted picture if a preset touch operation for the adjusted picture is detected.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 and fig. 2, and is not described herein again to avoid repetition. The mobile terminal 400 of the embodiment of the invention can ensure that the pictures to be shared selected by the user have consistent display directions, thereby obtaining better display effect.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 910 is configured to obtain at least two pictures to be shared, and identify a display direction of each picture to be shared in the at least two pictures to be shared, where the display direction of the picture to be shared is a display direction of a target object image in the picture to be shared on a screen of the mobile terminal;
determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared;
determining a target picture with a display direction inconsistent with the target direction in the at least two pictures to be shared;
and adjusting the display direction of the target picture to be the target direction.
Optionally, the processor 910 is further configured to: grouping the at least two pictures to be shared according to the display direction of each picture to be shared in the at least two pictures to be shared, wherein the pictures to be shared in the same display direction in the at least two pictures to be shared form a group;
and determining the display direction of the picture to be shared in the group with the largest number of pictures as the target direction.
Optionally, the processor 910 is further configured to: when the number of the target groups is at least two, judging whether a group with the display direction consistent with a preset reference direction exists in the target groups, wherein the target group is the group with the largest number of pictures;
if a group with a display direction consistent with a preset reference direction exists in the target group, determining the preset reference direction as a target direction;
and if no group with the display direction consistent with the preset reference direction exists in the target group, randomly selecting one group from the target group, and determining the display direction of the picture to be shared in the selected group as the target direction.
Optionally, the processor 910 is further configured to: determining an included angle between the display direction of the target picture and the target direction;
and rotating the target picture according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction.
Optionally, the processor 910 is further configured to: displaying the adjusted picture at a preset position of a display area of the target picture, wherein the display area is located in a picture display area to be shared;
and if the preset touch operation aiming at the adjusted picture is detected, replacing the target picture with the adjusted picture.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here. The mobile terminal 900 of the embodiment of the invention can ensure that the pictures to be shared selected by the user have consistent display directions, thereby obtaining better display effect.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the mobile terminal 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 910, a memory 909, and a computer program that is stored in the memory 909 and can be run on the processor 910, and when the computer program is executed by the processor 910, the processes of the above-mentioned method for adjusting a display direction of a picture can be implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for adjusting a display direction of an image, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention may be embodied in the form of a 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, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (6)
1. A picture display direction adjusting method is applied to a mobile terminal, and is characterized by comprising the following steps:
the method comprises the steps of obtaining at least two pictures to be shared, and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, wherein the display direction of the picture to be shared is the display direction of a target object image in the picture to be shared on a screen of the mobile terminal;
determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared;
determining a target picture with a display direction inconsistent with the target direction in the at least two pictures to be shared;
adjusting the display direction of the target picture to the target direction;
the step of determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared comprises the following steps:
grouping the at least two pictures to be shared according to the display direction of each picture to be shared in the at least two pictures to be shared, wherein the pictures to be shared in the same display direction in the at least two pictures to be shared form a group;
determining the display direction of the picture to be shared in the group with the largest number of pictures as a target direction;
the determining, as a target direction, a display direction of a picture to be shared in a group with the largest number of pictures includes:
when the number of the target groups is at least two, judging whether a group with the display direction consistent with a preset reference direction exists in the target groups, wherein the target group is the group with the largest number of pictures;
if a group with a display direction consistent with a preset reference direction exists in the target group, determining the preset reference direction as a target direction;
and if no group with the display direction consistent with the preset reference direction exists in the target group, randomly selecting one group from the target group, and determining the display direction of the picture to be shared in the selected group as the target direction.
2. The method according to claim 1, wherein the step of adjusting the display direction of the target picture to the target direction comprises:
determining an included angle between the display direction of the target picture and the target direction;
and rotating the target picture according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction.
3. The method according to claim 1, wherein after the step of adjusting the display direction of the target picture to the target direction, the method further comprises:
displaying the adjusted picture at a preset position of a display area of the target picture, wherein the display area is located in a picture display area to be shared;
and if the preset touch operation aiming at the adjusted picture is detected, replacing the target picture with the adjusted picture.
4. A mobile terminal, comprising:
the identification module is used for acquiring at least two pictures to be shared and respectively identifying the display direction of each picture to be shared in the at least two pictures to be shared, wherein the display direction of the picture to be shared is the display direction of a target object image in the picture to be shared on a screen of the mobile terminal;
the first determining module is used for determining a target direction according to the display direction of each picture to be shared in the at least two pictures to be shared;
the second determining module is used for determining a target picture of which the display direction is inconsistent with the target direction in the at least two pictures to be shared;
the adjusting module is used for adjusting the display direction of the target picture to the target direction;
the first determining module includes:
the grouping unit is used for grouping the at least two pictures to be shared according to the display direction of each picture to be shared in the at least two pictures to be shared, wherein the pictures to be shared in the same display direction in the at least two pictures to be shared form a group;
the first determining unit is used for determining the display direction of the picture to be shared in the group with the largest number of pictures as a target direction;
the first determination unit includes:
the device comprises a judging subunit, a processing unit and a display unit, wherein the judging subunit is used for judging whether a group with a display direction consistent with a preset reference direction exists in target groups when the number of the target groups is at least two, and the target groups are the groups with the largest number of pictures;
the first determining subunit is configured to determine, if a group whose display direction is consistent with a preset reference direction exists in the target group, the preset reference direction as a target direction;
and the second determining subunit is configured to, if no group with a display direction consistent with a preset reference direction exists in the target group, randomly select one group from the target group, and determine the display direction of the to-be-shared picture in the selected group as the target direction.
5. The mobile terminal of claim 4, wherein the adjusting module comprises:
the second determining unit is used for determining an included angle between the display direction of the target picture and the target direction;
and the rotating unit is used for rotating the target picture according to the determined included angle between the display direction of the target picture and the target direction, so that the display direction of the rotated target picture is the target direction.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the display module is used for displaying the adjusted picture at a preset position of a display area of the target picture, wherein the display area is positioned in a picture display area to be shared;
and the replacing module is used for replacing the target picture with the adjusted picture if the preset touch operation aiming at the adjusted picture is detected.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2018102058113 | 2018-03-13 | ||
CN201810205811 | 2018-03-13 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108536513A CN108536513A (en) | 2018-09-14 |
CN108536513B true CN108536513B (en) | 2021-06-18 |
Family
ID=63477990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810349566.3A Active CN108536513B (en) | 2018-03-13 | 2018-04-18 | Picture display direction adjusting method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108536513B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647826B (en) * | 2019-09-05 | 2022-04-29 | 北京百度网讯科技有限公司 | Method and device for acquiring commodity training picture, computer equipment and storage medium |
CN111124334A (en) * | 2019-12-10 | 2020-05-08 | 上海擎感智能科技有限公司 | Method, system, medium and intelligent terminal for acquiring display picture suitable for vehicle-mounted screen |
CN115482797A (en) * | 2022-08-19 | 2022-12-16 | 合肥讯飞读写科技有限公司 | Image display method and device, electronic photo frame and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798245A (en) * | 2004-12-31 | 2006-07-05 | 乐金电子(中国)研究开发中心有限公司 | Photo file preservation and transmission method of camera and mobile telephone |
CN102609707A (en) * | 2012-01-12 | 2012-07-25 | 天津大学 | Drawing method for universal public sketch |
CN105607835A (en) * | 2015-12-21 | 2016-05-25 | 惠州Tcl移动通信有限公司 | Mobile terminal with automatic picture direction adjusting function and display method thereof |
CN106201201A (en) * | 2016-07-07 | 2016-12-07 | 广州视睿电子科技有限公司 | view adjusting method and system |
-
2018
- 2018-04-18 CN CN201810349566.3A patent/CN108536513B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798245A (en) * | 2004-12-31 | 2006-07-05 | 乐金电子(中国)研究开发中心有限公司 | Photo file preservation and transmission method of camera and mobile telephone |
CN102609707A (en) * | 2012-01-12 | 2012-07-25 | 天津大学 | Drawing method for universal public sketch |
CN105607835A (en) * | 2015-12-21 | 2016-05-25 | 惠州Tcl移动通信有限公司 | Mobile terminal with automatic picture direction adjusting function and display method thereof |
CN106201201A (en) * | 2016-07-07 | 2016-12-07 | 广州视睿电子科技有限公司 | view adjusting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108536513A (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107977144B (en) | Screen capture processing method and mobile terminal | |
US12095858B2 (en) | Application sharing method, electronic device and computer readable storage medium | |
CN110096326B (en) | Screen capturing method, terminal equipment and computer readable storage medium | |
CN110308885B (en) | Screen projection method and mobile terminal | |
CN108712577B (en) | Call mode switching method and terminal equipment | |
EP4071607A1 (en) | Method for sharing application, electronic apparatus, and computer readable storage medium | |
CN109710349B (en) | Screen capturing method and mobile terminal | |
CN108900695B (en) | Display processing method, terminal equipment and computer readable storage medium | |
CN108509141B (en) | Control generation method and mobile terminal | |
CN110213485B (en) | Image processing method and terminal | |
US20220278950A1 (en) | Information display method, information sending method, and electronic device | |
CN111147919A (en) | Play adjustment method, electronic equipment and computer readable storage medium | |
CN111401463B (en) | Method for outputting detection result, electronic equipment and medium | |
CN110191426B (en) | Information sharing method and terminal | |
CN110990172A (en) | Application sharing method, first electronic device and computer-readable storage medium | |
CN108881721B (en) | Display method and terminal | |
CN111061404A (en) | Control method and first electronic device | |
CN108536513B (en) | Picture display direction adjusting method and mobile terminal | |
CN111522613B (en) | Screen capturing method and electronic equipment | |
CN111131607A (en) | Information sharing method, electronic equipment and computer readable storage medium | |
CN110007821B (en) | Operation method and terminal equipment | |
CN109859718B (en) | Screen brightness adjusting method and terminal equipment | |
CN109597546B (en) | Icon processing method and terminal equipment | |
CN109358913B (en) | Application program starting method and terminal equipment | |
CN111050214A (en) | Video playing method and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |