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 display method provided in an embodiment of the present invention, where the display method is applied to a terminal device, and as shown in fig. 1, the display method includes the following steps:
step 101, at least one target area in a long screenshot picture is obtained, wherein the aspect ratio of each target area is smaller than the aspect ratio of the long screenshot picture, and the aspect ratio is the ratio of the length to the width.
In the embodiment of the invention, the aspect ratio of the long screenshot picture is greater than that of the display interface of the terminal equipment, wherein the aspect ratio is the ratio of the length to the width. That is, the long screenshot picture cannot be displayed on the display interface of the mobile terminal in a single page, but needs to be displayed through a plurality of continuous pages. The long screenshot picture can be a long screenshot picture obtained by the terminal device through long screenshot operation, or a long screenshot picture received by the terminal device and obtained by other terminal devices through long screenshot operation. It should be noted that, in the embodiment of the present invention, the long screenshot picture may include any picture with an aspect ratio larger than an aspect ratio of the display interface of the terminal device, and is not limited to a picture obtained through the long screenshot, for example, the long screenshot picture may include a spliced picture obtained by splicing a plurality of pictures.
In this step, when a thumbnail of a long screenshot picture needs to be displayed, the terminal device acquires at least one target region in the long screenshot picture. The at least one target region may include only one target region, or may include at least two target regions, and an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture.
And if the at least one target area only comprises one target area, the target area is an area including target content in the long screenshot picture. If the at least one target region includes at least two target regions, the at least two target regions may include only a partial region in the long screenshot picture or all regions in the long screenshot picture, and the areas of the target regions may be equal or unequal.
The terminal device may divide the long screenshot picture into at least two regions, and then obtain at least one target region from the at least two regions. The terminal device can directly divide the long screenshot picture into at least two areas according to the length-width ratio of the long screenshot picture and the length-width ratio of the thumbnail. The terminal device may also recognize the content in the long screenshot picture first, and then divide the long screenshot picture into at least two regions according to the content in the long screenshot picture.
The terminal device may also not perform region division on the long screenshot picture, and directly select at least one target region from the long screenshot picture according to the content of the long screenshot picture. Specifically, the terminal device may also identify content in the long screenshot picture, and then select at least one target region according to the content in the long screenshot picture, for example, select a region including the target content as the target region.
Step 102, if the at least one target area only includes one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area including the target content in the long screenshot picture.
In this step, if the at least one target area only includes one target area, the target area is an area including target content in the long screenshot picture. And under the condition that the long screenshot picture is in a thumbnail display state, the mobile terminal takes the picture content of the target area as the display content of the thumbnail of the long screenshot picture.
For example, referring to fig. 2, fig. 2 is a schematic diagram of a long screenshot picture according to an embodiment of the present invention, and as shown in fig. 2, thelong screenshot picture 200 includes afirst region 201, asecond region 202, athird region 203, afourth region 204, and afifth region 205. Assuming that the at least one target region includes only thethird region 203, the terminal device takes the picture content in thethird region 203 as the display content of the thumbnail of the long-shot picture.
Step 103, if the at least one target area includes at least two target areas, sequentially taking the picture content in each target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state.
In this step, if the at least one target area includes at least two target areas, the terminal device sequentially uses the picture content in each target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state, that is, the display content of the thumbnail of the long screenshot picture is dynamically updated.
For example, assuming that the at least one target area includes afirst area 201, asecond area 202, athird area 203, and afourth area 204, the terminal device takes picture contents in thefirst area 201, thesecond area 202, thethird area 203, and thefourth area 204 as display contents of thumbnails of the long screenshot pictures in sequence.
The terminal device can display the picture contents of the at least two target areas in a stacking manner in the thumbnail of the long screenshot picture, and sequentially place the picture contents of each area on the top layer for displaying. When the at least two target areas include all areas of the long screenshot picture, the terminal device can also scroll and display the picture content in each target area in the thumbnail of the long screenshot picture.
In this embodiment of the present invention, the terminal device may be a mobile terminal device, for example: mobile phones, Tablet Personal computers (Tablet Personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID) or Wearable devices (Wearable Device), digital cameras, and the like; but also fixed terminal equipment such as computers and the like.
In this embodiment, the display method obtains at least one target region in a long screenshot picture, where an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, where the aspect ratio is a ratio of a length to a width; if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture; if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is sequentially used as the display content of the thumbnail of the long screenshot picture. Therefore, the picture content in the target area is used as the display content of the thumbnail of the long screenshot picture, and the user can know the content of the long screenshot picture according to the display content in the thumbnail, so that convenience is brought to the user.
Optionally, if the at least one target area includes at least two target areas, sequentially taking the picture content in each target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state includes:
if the at least one target area comprises at least two target areas, sequencing the at least two target areas according to the content in each target area under the condition that the long screenshot picture is in the thumbnail display state;
and according to the sorted sequence, sequentially using the picture content of each target area in the at least two target areas as the display content of the thumbnail of the long screenshot picture.
In this embodiment, the terminal device sorts the at least two target regions according to the content in each target region, and then sequentially uses the picture content of each target region in the at least two target regions as the display content of the thumbnail of the long screenshot picture according to the sorted order.
For example, assuming that the at least two target areas include afirst area 201, asecond area 202, athird area 203 and afourth area 204 as shown in fig. 2, and the terminal device arranges the at least two target areas in the order of thesecond area 202, thefourth area 204, thefirst area 201 and thethird area 203, the at least two target areas may be stacked in the order shown in fig. 5.
The sorting the at least two target areas according to the content of each target area may specifically include: and sequencing the at least two target areas according to the weight corresponding to the content included in each target area. Specifically, the terminal device may store a plurality of different content sets in advance, where the different content sets correspond to different weights, and the terminal device may determine the corresponding weights according to the content set in which the content in each target area falls. For example, the content sets may include a first content set (e.g., a content set including content of interest to the user) and a second content set (e.g., a content set including content popular with the public), wherein the weight of the content in the first content set is greater than the weight of the content in the second content set. The content set may include a content set preset by the user according to the preference of the user, a content set popular with the public and acquired by the terminal device from the network, and a content set by the terminal device according to the viewing habit of the user, for example, the interest level of the user in the content is determined according to the viewing duration of each content by the user. It can be understood that, no matter which way the content set is obtained, the terminal device may continuously update the content set according to the viewing habit of the user during the display process.
In this way, the terminal device sorts the at least two target areas according to the content in each target area, and sequentially uses the picture content of each target area in the at least two target areas as the display content of the thumbnail of the long screenshot picture according to the sorted sequence, so that the content which is interested by the user can be preferentially displayed in the thumbnail, and convenience is provided for the user.
Optionally, the acquiring at least one target region in the long screenshot picture includes:
identifying content in the long screenshot picture;
and acquiring at least one target area in the long screenshot picture according to the content in the long screenshot picture, wherein the target area is an area including target content in the long screenshot picture, the target content is preset content and/or content with the frequency of occurrence ranked at the top N in the long screenshot picture, and N is a positive integer.
In this embodiment, the terminal device identifies the content in the long screenshot picture, and acquires the at least one target area according to the content in the long screenshot picture. The at least one target area is an area including target content in the long screenshot picture, the target content is preset content and/or content with the appearance frequency ranking at the top N in the long screenshot picture, and N is a positive integer. The preset content can be preset content which is interesting to the user and/or content popular with the public. The identifying the content in the long screenshot picture comprises identifying text content and/or image content in the long screenshot picture.
Therefore, the target content included in the long screenshot picture can be displayed in the thumbnail of the long screenshot picture, effective information in the long screenshot picture can be efficiently displayed, a user can conveniently know the content of the long screenshot picture through the thumbnail, and the user can decide whether to further check the long screenshot picture according to the thumbnail, so that convenience is brought to the user.
It can be understood that, if the at least one target area only includes one target area, the one target area includes preset content and/or content with the highest frequency of occurrence, so that the preset content and/or the content with the highest frequency of occurrence included in the long screenshot picture is displayed in the thumbnail, and a user can know the content of the long screenshot picture according to the display content in the thumbnail, so that whether to further view the long screenshot picture can be determined according to the content displayed in the thumbnail, thereby providing convenience for the user.
Optionally, if the at least one target area includes at least two target areas, sequentially taking the picture content in each target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state includes:
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is displayed in a rolling mode in the thumbnail of the long screenshot picture.
In this embodiment, if the at least one target area includes at least two target areas, and the at least two target areas are consecutive areas, for example (the terminal device divides the long screenshot picture into at least two target areas, that is, the at least two target areas include all areas of the long screenshot picture). And the terminal equipment displays the picture content in each target area in a rolling manner in the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state.
Therefore, the terminal equipment displays the picture content in each target area in the long screenshot thumbnail in a rolling mode, the picture content in each target area can be displayed clearly, and a user can know the content in the long screenshot picture through the thumbnail, so that convenience is brought to the user.
Referring to fig. 3, fig. 3 is a second flowchart of a display method provided in an embodiment of the present invention, where the method is applied to a terminal device, and a main difference between this embodiment and the embodiment shown in fig. 1 is that a thumbnail display manner when the at least one target area includes at least two target areas is specifically defined in this embodiment, as shown in fig. 3, the method includes the following steps:
step 301, obtaining at least one target region in the long screenshot picture, wherein an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, and the aspect ratio is a ratio of a length to a width.
Step 302, if the at least one target area only includes one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state, wherein the target area is an area including the target content in the long screenshot picture.
Step 301 and step 302 are the same asstep 101 and step 102 in the embodiment shown in fig. 1 of the present invention, and are not described again here.
Step 303, if the at least one target area includes at least two target areas, stacking and displaying the picture contents of the at least two target areas in the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, and sequentially placing the picture contents of each target area on the top layer for display.
In this step, if the at least one target area includes at least two target areas, the terminal device displays the picture contents of the at least two target areas in a stack manner in the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, and sequentially places the picture contents of each target area on the top layer for display.
In this embodiment, when the long screenshot picture is in the thumbnail display state, the terminal device displays the picture contents of the at least two target areas in a stack manner in the thumbnail of the long screenshot picture, and sequentially places the picture contents of each target area on the top layer for display. The terminal device can display the picture content of one target area on the top layer at preset time intervals. For example, assuming that the at least two target areas include afirst area 201, asecond area 202, athird area 203 and afourth area 204 as shown in fig. 2, the thumbnail of the long screenshot picture may be as shown in fig. 4, wherein the terminal device may sequentially place the picture content of each target area on the top layer for display.
The terminal device may display the picture contents of the at least two target areas in a stacking manner according to a default order of the at least two target areas (for example, a display order of the at least two target areas in the long screenshot picture); the at least two target areas can also be sequentially arranged according to the content of each target area, and then the picture contents of the at least two target areas are stacked and displayed according to the arranged sequence. For example, assuming that the at least two target regions include afirst region 201, asecond region 202, athird region 203 and afourth region 204 as shown in fig. 2, thefirst region 201, thesecond region 202, thethird region 203 and thefourth region 204 may be stacked in the order shown in fig. 4, or may be stacked in the order shown in fig. 5.
In this embodiment, the display method obtains at least one target region in a long screenshot picture, where an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, where the aspect ratio is a ratio of a length to a width; if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture; if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture contents of the at least two target areas are displayed in a stacking mode in the thumbnail of the long screenshot picture, and the picture contents of each target area are sequentially placed on the top layer to be displayed. Therefore, if the at least one target area comprises at least two target areas, the picture content of each target area is sequentially placed on the top layer in the thumbnail to be displayed, and a user can know the content of the long screenshot picture according to the display content in the thumbnail, so that convenience is brought to the user.
Referring to fig. 6, fig. 6 is a second flowchart of a display method provided in an embodiment of the present invention, where the method is applied to a terminal device, and the main difference between this embodiment and the embodiment shown in fig. 1 is that the at least one target area in this embodiment only includes one target area, and as shown in fig. 6, the method includes the following steps:
step 601, obtaining at least one target area in the long screenshot picture, wherein an aspect ratio of each target area is smaller than an aspect ratio of the long screenshot picture, and the aspect ratio is a ratio of a length to a width.
Step 602, if the at least one target area only includes one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state, where the target area is an area including the target content in the long screenshot picture.
Step 601 and step 602 are the same asstep 101 and step 102 in the embodiment shown in fig. 1 of the present invention, and are not described again here.
Step 603, receiving a first input for viewing the long screenshot picture.
When a user needs to view the detailed content of the long screenshot picture, a first input may be performed on the thumbnail of the long screenshot picture, where the first input is used to view the detailed content of the long screenshot picture, and for example, the first input may include a click operation on the thumbnail of the long screenshot picture.
Step 604, responding to the first input, and displaying a partial area of the long screenshot picture, wherein the partial area comprises the target area.
In this step, the terminal device displays a partial region of the long screenshot picture in response to the first input, where the partial region includes the target region. Namely, when the first input is received, displaying a partial area of the long screenshot picture by default, wherein the partial area comprises the target area.
It can be understood that the target area includes contents that may be of interest to the user and/or main contents in the long screenshot picture, and the terminal device displays the long screenshot picture to the target area in a positioning manner when displaying the long screenshot picture, so that the target area of the long screenshot picture can be quickly positioned, the user does not need to spend extra time to find the target area, and convenience is provided for the user.
In this embodiment, the display method obtains at least one target region in a long screenshot picture, where an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, where the aspect ratio is a ratio of a length to a width; if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture; receiving a first input for viewing the long screenshot picture; in response to the first input, displaying a partial region of the long screenshot picture, the partial region including the target region. Therefore, the target area of the long screenshot picture can be quickly positioned, the user does not need to spend extra time to search the target area, and convenience is brought to the user.
Optionally, before the obtaining of the at least one target region in the long screenshot picture, the method further includes:
dividing the long screenshot picture into at least two regions;
identifying content in each region and determining tag information for each region based on the content in each region;
after the displaying a partial region of the long screenshot picture in response to the first input, the partial region including the target region, the method further comprises:
displaying a tag list on a display interface of the long screenshot picture, and marking tag information corresponding to a currently displayed area in the long screenshot picture, wherein the tag list comprises tag information of each area;
receiving a second input of target tag information in the tag list;
and responding to the second input, and displaying a region corresponding to the target label information in the long screenshot picture.
In this embodiment, before acquiring a target region in the long screenshot picture, the terminal device divides the long screenshot picture into at least two regions, identifies content in each region, and determines tag information for each region according to the content in each region. The tag information may include keyword information and/or category information. The terminal device may determine a keyword for each region according to the content in each region, and/or classify each region according to the content in each region, and determine category information for each region.
When the terminal equipment displays the long screenshot picture, a tag list is further displayed on a display interface of the long screenshot picture, and tag information corresponding to a currently displayed area of the long screenshot picture is marked, wherein the tag list comprises tag information of each area. For example, assume that the tag information corresponding to thefirst region 201, thesecond region 202, thethird region 203, thefourth region 204, and thefifth region 205 in the long screenshot picture shown in fig. 2 are: clothing, food, travel, star and sports, and the terminal device displays the tag list shown in fig. 7 on the display interface of the long screenshot picture. As shown in fig. 7, when the currently displayed region of the long screenshot is thethird region 203, the terminal device marks the label information corresponding to the third region 203 (for example, "travel" shown in fig. 7), so that the user can know the label information of the currently displayed region of the long screenshot conveniently.
It is understood that the tag information in the tag list can also be used to locate to the area corresponding to the tag information. Specifically, the terminal device may receive a second input of target tag information, and in response to the second input, position the long screenshot picture to an area corresponding to the target tag information. For example, when the terminal device receives a second input of the tag information "food" from the user, the terminal device may display the long screenshot picture in a positioning manner in thesecond area 202 corresponding to the tag information "food". Therefore, the user can directly switch the display content of the long screenshot picture through the tag list, and convenience is provided for the user.
In some embodiments of the present invention, the terminal device may further provide a first entry on the display interface of the long screenshot, where the first entry is used to trigger the terminal device to search (for example, search locally or on the network) for information associated with first tag information, where the first tag information is tag information corresponding to a current display area of the long screenshot. In this way, the user can obtain information related to the currently viewed content through the first portal.
In some embodiments of the present invention, when the long screenshot picture displays a region corresponding to first tag information, the terminal device may further obtain operation information corresponding to the first tag information, and provide a user interface on a display interface of the long screenshot picture for a user to select whether to execute the operation information corresponding to the first tag information. The operation information corresponding to the first tag information may include a habit operation of a user for the content of the first tag information, and the operation information corresponding to the first tag information may be set by the user according to a usage habit of the user, or may be obtained by analyzing, by the terminal device, an operation performed by the user when viewing the area content corresponding to the first tag information multiple times. For example, assuming that the user selects the screenshot to store when viewing the content of the tag information "food" many times, the terminal device may record the operation information corresponding to the tag information "food" as the screenshot to store, and when the long screenshot image displays the area corresponding to the tag information "food", the terminal device may prompt the user on the display interface of the long screenshot image whether to perform the screenshot storing operation on the currently displayed content. Therefore, operation options which are possibly required to be executed by the user can be provided for the user according to the using habits of the user, the operation of the user can be simplified, the operation time of the user is saved, and convenience is provided for the user.
Optionally, the terminal device includes a first display screen and a second display screen, and the displaying, in response to the first input, a partial region of the long screenshot picture, the partial region including the target region, includes:
responding to the first input, displaying a partial area of the long screenshot picture on the first display screen, and displaying the picture content of the target area on the second display screen in an enlarged mode according to a preset proportion.
In this embodiment, the terminal device includes a first display screen and a second display screen, and the displaying, in response to the first input, a partial region of the long screenshot picture, where the partial region includes the target region, specifically includes: responding to the first input, displaying a partial area of the long screenshot picture on the first display screen, and displaying the picture content of the target area on the second display screen in an enlarged mode according to a preset proportion.
Therefore, when the user cannot view the detail content of the target area on the first display screen, the user can directly view the detail content from the second display screen without amplifying the long screenshot picture, and convenience is brought to the user.
It can be understood that, in this embodiment, when the area of the long screenshot picture displayed by the first display screen is updated, the second display screen is updated according to the display content of the first display screen, that is, the second display screen displays the current display content in the first display screen in an enlarged manner at a preset ratio.
Referring to fig. 8, fig. 8 is a structural diagram of a terminal device according to an embodiment of the present invention, which can implement details of a display method in the foregoing embodiment and achieve the same effect. As shown in fig. 8, theterminal device 800 includes an obtainingmodule 801, afirst display module 802 and asecond display module 803, wherein thefirst display module 802 is connected to the obtainingmodule 801 and thesecond display module 803 respectively, and wherein:
an obtainingmodule 801, configured to obtain at least one target region in a long screenshot picture, where an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, where the aspect ratio is a ratio of a length to a width;
afirst display module 802, configured to, if the at least one target area only includes one target area, use, when the long screenshot picture is in a thumbnail display state, the picture content of the target area as the display content of the thumbnail of the long screenshot picture, where the target area is an area of the long screenshot picture that includes the target content;
asecond display module 803, configured to, if the at least one target area includes at least two target areas, sequentially use the picture content in each target area as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state.
Optionally, thesecond display module 803 is specifically configured to:
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture contents of the at least two target areas are displayed in a stacking mode in the thumbnail of the long screenshot picture, and the picture contents of each target area are sequentially placed on the top layer to be displayed.
Optionally, referring to fig. 9, fig. 9 is a second schematic structural diagram of the terminal device according to the embodiment of the present invention, and as shown in fig. 9, thesecond display module 803 includes:
asorting unit 8031, configured to, if the at least one target area includes at least two target areas, sort the at least two target areas according to content in each target area when the long screenshot picture is in a thumbnail display state;
thedisplay unit 8032 is configured to sequentially use, according to the sorted order, the picture content of each of the at least two target areas as the display content of the thumbnail of the long screenshot picture.
Optionally, referring to fig. 10, fig. 10 is a third schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 10, the obtainingmodule 801 includes:
an identifyingunit 8011, configured to identify content in the long screenshot picture;
an obtainingunit 8012, configured to obtain at least two target regions in the long screenshot picture according to the content in the long screenshot picture, where the target regions are regions in the long screenshot picture that include target content, the target content is preset content and/or content with a frequency of occurrence ranked at the top N in the long screenshot picture, and N is a positive integer.
Optionally, thesecond display module 803 is specifically configured to:
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is displayed in a rolling mode in the thumbnail of the long screenshot picture.
Optionally, referring to fig. 11, fig. 11 is a fourth schematic structural diagram of a terminal device according to an embodiment of the present invention, as shown in fig. 11, if the at least one target area only includes one target area, theterminal device 800 further includes:
afirst receiving module 804, configured to receive a first input for viewing the long screenshot picture;
athird display module 805 configured to display a partial region of the long screenshot picture in response to the first input, the partial region including the target region.
Optionally, referring to fig. 12, fig. 12 is a fifth schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 12, theterminal device 800 further includes:
adividing module 806, configured to divide the long screenshot picture into at least two regions;
a determiningmodule 807 for identifying the content in each region and determining tag information for each region according to the content in each region;
afourth display module 808, configured to display a tag list on a display interface of the long screenshot picture, and mark tag information corresponding to a currently displayed area in the long screenshot picture, where the tag list includes tag information of each area;
asecond receiving module 809, configured to receive a second input of target tag information in the tag list;
afifth display module 810, configured to display, in response to the second input, a region corresponding to the target tag information in the long screenshot picture.
Optionally, the terminal device includes a first display screen and a second display screen, and thethird display module 805 is specifically configured to:
responding to the first input, displaying a partial area of the long screenshot picture on the first display screen, wherein the partial area comprises the target area, and displaying the picture content of the target area on the second display screen in an enlarged mode according to a preset proportion.
In this embodiment, the terminal device acquires at least one target region in a long screenshot picture, where an aspect ratio of each target region is smaller than an aspect ratio of the long screenshot picture, where the aspect ratio is a ratio of a length to a width; if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture; if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is sequentially used as the display content of the thumbnail of the long screenshot picture. Therefore, the picture content in the target area is used as the display content of the thumbnail of the long screenshot picture, and the user can know the content of the long screenshot picture according to the display content in the thumbnail, so that convenience is brought to the user.
Fig. 13 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, and as shown in fig. 13, theterminal device 1300 includes, but is not limited to: aradio frequency unit 1301, anetwork module 1302, anaudio output unit 1303, aninput unit 1304, asensor 1305, adisplay unit 1306, auser input unit 1307, aninterface unit 1308, amemory 1309, aprocessor 1310, apower supply 1311, and the like. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 13 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
Wherein, theprocessor 1310 is configured to:
acquiring at least one target area in a long screenshot picture, wherein the aspect ratio of each target area is smaller than that of the long screenshot picture, and the aspect ratio is the ratio of the length to the width;
if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture;
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is sequentially used as the display content of the thumbnail of the long screenshot picture.
Optionally, if the at least one target region includes at least two target regions, the step of sequentially taking the picture content in each target region as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state includes:
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture contents of the at least two target areas are displayed in a stacking mode in the thumbnail of the long screenshot picture, and the picture contents of each target area are sequentially placed on the top layer to be displayed.
Optionally, if the at least one target region includes at least two target regions, the step of sequentially taking the picture content in each target region as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state includes:
if the at least one target area comprises at least two target areas, sequencing the at least two target areas according to the content in each target area under the condition that the long screenshot picture is in the thumbnail display state;
and according to the sorted sequence, sequentially using the picture content of each target area in the at least two target areas as the display content of the thumbnail of the long screenshot picture.
Optionally, the acquiring of the at least one target region in the long screenshot picture performed by theprocessor 1310 includes:
identifying content in the long screenshot picture;
and acquiring at least one target area in the long screenshot picture according to the content in the long screenshot picture, wherein the target area is an area including target content in the long screenshot picture, the target content is preset content and/or content with the frequency of occurrence ranked at the top N in the long screenshot picture, and N is a positive integer.
Optionally, if the at least one target region includes at least two target regions, the step of sequentially taking the picture content in each target region as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state includes:
if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is displayed in a rolling mode in the thumbnail of the long screenshot picture.
Optionally, if the at least one target region only includes one target region, theprocessor 1310 may further perform the following steps after taking the picture content of the target region as the display content of the thumbnail of the long screenshot picture when the long screenshot picture is in the thumbnail display state:
receiving a first input for viewing the long screenshot picture;
in response to the first input, displaying a partial region of the long screenshot picture, the partial region including the target region.
Optionally, before theprocessor 1310 executes the step of acquiring at least one target region in the long screenshot picture, the following steps may be further implemented:
dividing the long screenshot picture into at least two regions;
identifying content in each region and determining tag information for each region based on the content in each region;
after the displaying a partial region of the long screenshot picture in response to the first input, the partial region including the target region, the method further comprises:
displaying a tag list on a display interface of the long screenshot picture, and marking tag information corresponding to a currently displayed area in the long screenshot picture, wherein the tag list comprises tag information of each area;
receiving a second input of target tag information in the tag list;
and responding to the second input, and displaying a region corresponding to the target label information in the long screenshot picture.
Optionally, the terminal device includes a first display screen and a second display screen, and the displaying, performed by theprocessor 1310, a partial region of the long screenshot picture in response to the first input, the partial region including the target region, includes:
responding to the first input, displaying a partial area of the long screenshot picture on the first display screen, and displaying the picture content of the target area on the second display screen in an enlarged mode according to a preset proportion.
In the embodiment of the invention, the terminal equipment acquires at least one target area in a long screenshot picture, wherein the aspect ratio of each target area is smaller than that of the long screenshot picture, and the aspect ratio is the ratio of the length to the width; if the at least one target area only comprises one target area, taking the picture content of the target area as the display content of the thumbnail of the long screenshot picture under the condition that the long screenshot picture is in the thumbnail display state, wherein the target area is an area comprising the target content in the long screenshot picture; if the at least one target area comprises at least two target areas, under the condition that the long screenshot picture is in the thumbnail display state, the picture content in each target area is sequentially used as the display content of the thumbnail of the long screenshot picture. Therefore, the picture content in the target area is used as the display content of the thumbnail of the long screenshot picture, and the user can know the content of the long screenshot picture according to the display content in the thumbnail, so that convenience is brought to the user.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 1301 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to theprocessor 1310; in addition, the uplink data is transmitted to the base station. In general,radio unit 1301 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, theradio frequency unit 1301 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through thenetwork module 1302, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
Theaudio output unit 1303 can convert audio data received by theradio frequency unit 1301 or thenetwork module 1302 or stored in thememory 1309 into an audio signal and output as sound. Also, theaudio output unit 1303 can also provide audio output related to a specific function performed by the terminal apparatus 1300 (e.g., a call signal reception sound, a message reception sound, and the like). Theaudio output unit 1303 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 1304 is used to receive audio or video signals. Theinput Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and amicrophone 13042, and theGraphics processor 13041 processes image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on thedisplay unit 1306. The image frames processed by thegraphic processor 13041 may be stored in the memory 1309 (or other storage medium) or transmitted via theradio frequency unit 1301 or thenetwork module 1302. Themicrophone 13042 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 theradio frequency unit 1301 in case of a phone call mode.
Terminal device 1300 also includes at least onesensor 1305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 13061 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 13061 and/or backlight when theterminal device 1300 moves 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 terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; thesensors 1305 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 will not be described in detail herein.
Thedisplay unit 1306 is used to display information input by a user or information provided to the user. TheDisplay unit 1306 may include aDisplay panel 13061, and theDisplay panel 13061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 1307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, theuser input unit 1307 includes atouch panel 13071 andother input devices 13072.Touch panel 13071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user ontouch panel 13071 ornear touch panel 13071 using a finger, stylus, or any other suitable object or attachment). Thetouch panel 13071 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 theprocessor 1310, and receives and executes commands sent from theprocessor 1310. In addition, thetouch panel 13071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. Theuser input unit 1307 may includeother input devices 13072 in addition to thetouch panel 13071. In particular, theother input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, thetouch panel 13071 can be overlaid on thedisplay panel 13061, and when thetouch panel 13071 detects a touch operation on or near the touch panel, the touch operation can be transmitted to theprocessor 1310 to determine the type of the touch event, and then theprocessor 1310 can provide a corresponding visual output on thedisplay panel 13061 according to the type of the touch event. Although in fig. 13, thetouch panel 13071 and thedisplay panel 13061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, thetouch panel 13071 and thedisplay panel 13061 may be integrated to implement the input and output functions of the terminal device, and are not limited herein.
Theinterface unit 1308 is an interface for connecting an external device to theterminal apparatus 1300. 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.Interface unit 1308 can be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements withinterminal apparatus 1300 or can be used to transmit data betweenterminal apparatus 1300 and an external device.
Thememory 1309 may be used to store software programs as well as various data. Thememory 1309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by 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, thememory 1309 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 1310 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in thememory 1309 and calling data stored in thememory 1309, thereby performing overall monitoring of the terminal device.Processor 1310 may include one or more processing units; preferably, theprocessor 1310 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 will be appreciated that the modem processor described above may not be integrated intoprocessor 1310.
Theterminal device 1300 may further include a power supply 1311 (e.g., a battery) for supplying power to the various components, and preferably, thepower supply 1311 may be logically connected to theprocessor 1310 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, theterminal device 1300 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a terminal device, including aprocessor 1310, amemory 1309, and a computer program stored in thememory 1309 and capable of running on theprocessor 1310, where the computer program, when executed by theprocessor 1310, implements each process executed by the terminal device in the foregoing display method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
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 display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated 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 device (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.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.