CN110162286B - Picture display method and terminal - Google Patents

Picture display method and terminal Download PDF

Info

Publication number
CN110162286B
CN110162286B CN201910415031.6A CN201910415031A CN110162286B CN 110162286 B CN110162286 B CN 110162286B CN 201910415031 A CN201910415031 A CN 201910415031A CN 110162286 B CN110162286 B CN 110162286B
Authority
CN
China
Prior art keywords
target picture
picture
display
displaying
size
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
Application number
CN201910415031.6A
Other languages
Chinese (zh)
Other versions
CN110162286A (en
Inventor
陈伟星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910415031.6A priority Critical patent/CN110162286B/en
Publication of CN110162286A publication Critical patent/CN110162286A/en
Application granted granted Critical
Publication of CN110162286B publication Critical patent/CN110162286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a picture display method and a terminal, wherein the picture display method comprises the following steps: under the condition that the ratio value between the transverse size and the longitudinal size of a target picture is larger than or equal to a first threshold value, acquiring the ratio of text content in the target picture; and displaying the target picture according to the proportion of the text content. The scheme can realize different forms of display aiming at the pictures with more text information and the pictures with less text information (even without text information) so as to facilitate the user to check: the method comprises the following steps that text content can be extracted from pictures with more text information and displayed at proper positions on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition; the problem that in the prior art, a user cannot conveniently view the picture under the condition that the length-width ratio of the picture is unbalanced due to the fact that the transverse size is far larger than the longitudinal size is well solved.

Description

Picture display method and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to a picture display method and a terminal.
Background
Currently, as the screen size of the mobile terminal is larger and larger, the screen aspect ratio is also developed from 16 to 19.5, and even 20, but the ratio of the screen width is not increased, which results in that when the mobile phone views some "long and narrow" pictures with the transverse dimension much larger than the longitudinal dimension, the user needs to manually zoom in and continuously slide the screen to see the complete picture. To address this problem, current solutions are finger dragging to zoom in the picture or double-clicking to automatically zoom in.
However, firstly, the resolution of the picture content is uncertain, and after double-click amplification, the picture content may be too large to be seen clearly, or too large locally, the content of the whole picture cannot be seen, so that the user needs to manually reduce the picture content to a size suitable for the user to view.
Secondly, for the picture with the content of the horizontal display text, after the user double-clicks or manually zooms in, the user needs to drag the picture one line by one line to read the characters, and after one line is read, the user needs to drag the picture to the position where the content starts from the next line, which is very inconvenient for the user to read the text picture with a large number of lines.
Disclosure of Invention
The invention aims to provide a picture display method and a terminal, and aims to solve the problem that in the prior art, a user cannot conveniently view a picture under the condition that the length-width ratio of the picture is unbalanced because the transverse size is far larger than the longitudinal size.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image display method applied to a terminal, including:
under the condition that the ratio value between the transverse size and the longitudinal size of a target picture is larger than or equal to a first threshold value, acquiring the proportion of text content in the target picture;
and displaying the target picture according to the proportion of the text content.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the first acquisition module is used for acquiring the proportion of text content in the target picture under the condition that the proportion value between the transverse size and the longitudinal size of the target picture is greater than or equal to a first threshold value;
and the first display module is used for displaying the target picture according to the proportion of the text content.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned picture display method.
In a fourth aspect, an 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 steps of the above-mentioned picture display method are implemented.
In the embodiment of the invention, under the condition that the ratio value between the transverse size and the longitudinal size of a target picture is greater than or equal to a first threshold value, the ratio of text content in the target picture is acquired; displaying the target picture according to the proportion of the text content; the display of different forms can be realized to the picture that the literal information is more and the picture that the literal information is less (even there is no literal information) to the user looks over: the method comprises the following steps that text content can be extracted from pictures with more text information and displayed at proper positions on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition; the problem that in the prior art, a user cannot conveniently view the picture under the condition that the length-width ratio of the picture is unbalanced due to the fact that the transverse size is far larger than the longitudinal size is well solved.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for displaying pictures according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a specific application flow of a picture display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an irregular picture according to an embodiment of the present invention;
FIG. 4 is a first diagram illustrating a target image display according to an embodiment of the present invention;
FIG. 5 is a second schematic view of displaying a target picture according to an embodiment of the present invention;
FIG. 6 is a schematic view illustrating a reduced display process of a target picture according to an embodiment of the present invention;
fig. 7 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal structure according to a second 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.
The invention provides a picture display method, which is applied to a terminal and is shown in figure 1, aiming at the problem that a user cannot conveniently view a picture under the condition that the length-width ratio of the picture is unbalanced because the transverse size is far larger than the longitudinal size in the prior art, and comprises the following steps:
step 11: and under the condition that the ratio value between the transverse size and the longitudinal size of the target picture is greater than or equal to a first threshold value, acquiring the ratio of the text content in the target picture.
The target picture may be a picture that is not selected for enlarged display and is in a thumbnail browsing state, and the first threshold may be 2, but is not limited thereto.
Step 12: and displaying the target picture according to the proportion of the text content.
Specifically, different forms of display can be performed for pictures with more text information and pictures with less text information (even without text information): text content can be extracted from pictures with more text information and displayed at a proper position on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition, but the method is not limited to the above.
According to the image display method provided by the embodiment of the invention, under the condition that the ratio value between the transverse size and the longitudinal size of the target image is greater than or equal to the first threshold value, the proportion of the text content in the target image is acquired; displaying the target picture according to the proportion of the text content; the display of different forms can be realized to the picture that the literal information is more and the picture that the literal information is less (even there is no literal information) to the user looks over: the method comprises the following steps that text content can be extracted from pictures with more text information and displayed at proper positions on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition; the problem that in the prior art, a user cannot conveniently view the picture under the condition that the length-width ratio of the picture is unbalanced due to the fact that the transverse size is far larger than the longitudinal size is well solved.
Wherein, the displaying the target picture according to the proportion of the text content comprises: under the condition that the proportion of the text content is greater than or equal to a second threshold value, extracting the text content in the target picture; and displaying the target picture in a first area on a display screen of the terminal, and displaying the text content in a second area on the display screen of the terminal.
That is, for pictures with more text information, text content can be extracted and displayed at a proper position on a terminal screen, and a target picture is displayed at the same time so as to be convenient for a user to view; the second threshold may be 0.5, the second area may be an area on the display screen of the terminal other than the first area, or the second area may be an area on the display screen of the terminal overlapping with the first area, or even the second area may be the same area as the first area, that is, completely overlapping.
Further, the displaying the target picture according to the proportion of the text content further includes: and under the condition that the proportion of the text content is smaller than a second threshold value, amplifying the target picture by adopting a horizontal screen display mode and then displaying the amplified target picture.
That is, for the picture with less text information (even without text information), the target picture can be displayed in an enlarged manner in a horizontal screen manner, so that the user can conveniently view the target picture.
Specifically, the displaying the target picture after being amplified in a landscape display mode includes: and under the condition that the proportional value between the transverse size and the longitudinal size of the target picture is kept unchanged, stretching the transverse size of the target picture to be consistent with the longitudinal size of the display screen.
That is, for a picture with little text information (even without text information), the target picture can be displayed in the largest size as possible so as to be convenient for the user to view.
Further, the displaying the target picture after being amplified by using a landscape display mode further includes: after the transverse size of the target picture is stretched to be consistent with the longitudinal size of the display screen, acquiring a first definition of the stretched target picture; if the first definition is larger than or equal to a third threshold value, displaying the stretched target picture in a horizontal screen display mode; if the first definition is smaller than the third threshold, repeatedly executing the reduction of the stretched target picture in a preset proportion, and displaying the reduced target picture in a horizontal screen display mode after the preset reduction times are reached or the definition of the reduced target picture is larger than or equal to the third threshold.
That is, for pictures with less text information (even without text information), the pictures can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring the definition, so that the pictures can be conveniently viewed by a user. The "reaching of the preset zoom-out number" may be understood as that the current definition is empirically confirmed to be closer to the target definition (the third threshold), and in order to ensure that the current definition is convenient for the user to view to the maximum extent, the target picture is not zoomed out any more, and the target picture is displayed in the current size. The first resolution may be 30, the predetermined number of reduction times may be 2, and the predetermined ratio may be 0.9; when the target picture is reduced, the horizontal size and the vertical size of the target picture may be reduced, for example, the horizontal size is reduced to 0.9 times of the current horizontal size, and the vertical size is reduced to 0.9 times of the current vertical size.
Further, after the transverse size of the target picture is stretched to be consistent with the longitudinal size of the display screen, under the condition that the longitudinal size of the stretched target picture is larger than the transverse size of the display screen, displaying a partial area of the stretched target picture on the display screen; and updating the partial region after detecting a preset operation for the partial region.
That is, for an area that is not displayed, display may be performed by dragging a partial area that is already displayed on the display screen, i.e., updating the partial area, so that the display content is adjusted based on the updated partial area. Of course, the content in the partial region may be dragged and the content displayed in the partial region may be updated, so that the content displayed in the partial region is adjusted based on the adjustment of the content in the partial region, so that the user can view the picture content.
The picture display method provided by the embodiment of the invention is further explained below.
In order to solve the above technical problem, an embodiment of the present invention provides a method for displaying a picture, and in particular, a method for acquiring and presenting content for a long and narrow picture whose lateral size is much larger than a longitudinal size; according to the scheme provided by the embodiment of the invention, the transverse size and the longitudinal size of the target picture are obtained, the ratio of the transverse size and the longitudinal size of the target picture is calculated, and whether the target picture is a long and narrow picture is judged. For a long and narrow picture, the content of the picture is detected, the text information is read for the picture (text picture) with more text information, and the picture characters are sorted by selecting a proper position, so that the user can conveniently check the picture characters. For non-text pictures, the definition degree of the pictures is calculated by using an image detection method, a horizontal screen is selected to be displayed on an interface, and the size of the displayed pictures is ensured to be the maximum on the basis of ensuring the definition.
Specifically, as shown in fig. 2, the scheme provided by the embodiment of the present invention includes:
step 21: and acquiring a proportional value between the transverse size and the longitudinal size of the target picture.
Specifically, when the user opens the picture using the terminal in the vertical screen, the ratio between the horizontal size and the vertical size of the target picture may be obtained.
In actual use, the transverse size and the longitudinal size of the target picture are basic attributes of the picture; for a non-rectangular irregular picture, the transverse size of the picture is the maximum transverse size of the picture, and the longitudinal size of the picture is the maximum longitudinal size of the picture; such as the oval picture shown in fig. 3, its lateral and longitudinal dimensions in the terminal are the lateral and longitudinal dimensions a, b of its peripheral rectangle.
Step 22: whether the ratio of the transverse dimension to the longitudinal dimension is greater than a first threshold value is determined (i.e., whether the transverse dimension is greater than the longitudinal dimension is determined), if so, step 24 is performed, and if not, step 23 is performed.
When the transverse size of the target picture is more than 2 times of the longitudinal size, the ratio imbalance between the transverse size and the longitudinal size can be considered, and the picture which is inconvenient for the user to view in the vertical screen state, namely the long and narrow picture, is judged.
Step 23: and directly displaying the target picture (only by adopting the existing means, the description is omitted).
Step 24: and performing text detection on the target picture, and acquiring the proportion of the area of the text content in the target picture in the whole area of the target picture (namely the proportion of the text content).
Step 25: and determining whether the target picture is a text picture according to the ratio obtained in the step 24 (i.e., determining whether the ratio of the text content is greater than or equal to a second threshold), if so, entering a step 26, otherwise, entering a step 27.
Specifically, text detection and region division can be performed on the target picture, so as to judge whether the target picture is a text picture;
after the proportional imbalance between the horizontal size and the vertical size of the target picture is judged, text content detection is carried out on the target picture. Specifically, characters in the current picture can be detected through an image processing technology; after the text is detected, the text region and the non-text region can be divided, and specifically, when the text region accounts for more than 50% of the picture, the target picture is judged to be the text picture.
Step 26: the text content is extracted line by line and the target picture is displayed in a first area on the screen of the terminal (the currently displayed page) and the text content is displayed in a second area on the screen of the terminal.
Here, the content characters of the target picture are acquired line by line, and the characters are read line by line in a row unit when the characters are extracted. The read text may be stored in the memory, and after the reading is completed, the obtained text is displayed line by line in a non-picture display area (i.e., the second area) on the screen of the terminal, and a target picture is displayed in a picture display area (i.e., the first area), as shown in fig. 4.
Step 27: and calculating the definition (which can be resolution) of the picture content, and displaying the horizontal screen of the picture content on the screen of the terminal according to the definition.
In particular, the horizontal screen maximally displays a non-text picture (target picture):
for non-text pictures, the scheme displays the picture cross screen, and displays the picture cross screen to a user in an enlarged mode as far as possible.
More specifically, when displaying, the transverse dimension of the target picture is stretched to be consistent with the longitudinal dimension of the terminal, and the ratio between the transverse dimension and the longitudinal dimension of the target picture is ensured to be unchanged in the stretching process, as shown in fig. 5.
Further, since the image is enlarged, there is a possibility that the enlarged target image is blurred, and an exemplary method for detecting the image sharpness is provided in the embodiment of the present invention: specifically, the method comprises the following steps: the image on the right side of the image in fig. 5 can be taken as a snapshot, and then the image definition of the snapshot is detected in the background; generally, an image with high image definition has sharper edges and larger gradient values, and for the same picture, the smaller the size is, the sharper the edges are; therefore, in the embodiment of the present invention, the Laplacian gradient function is used to calculate the sharpness of the image, and the sharpness function of the image is defined as follows:
D(f)=∑ yx g (x, y) |, where G (x, y) > T;
d (f) represents definition, x represents the abscissa of the pixel point (x, y), y represents the ordinate of the pixel point (x, y), G (x, y) represents the convolution of a Laplacian operator at the pixel point (x, y), and T represents the threshold value of the convolution;
a threshold T =50 is set, specifically, G (x, y) is of the form:
Figure BDA0002064065890000071
wherein +>
Figure BDA0002064065890000072
Denotes the derivation of the abscissa x of the pixel point (x, y), based on the value of the X, H>
Figure BDA0002064065890000073
The derivation is shown for the ordinate y of the pixel point (x, y).
In the state of T =50, it is empirically known that if the value of D (f) exceeds 30, it is determined that the image is clear, and if the value of D (f) of the snapshot in the current size is lower than 30, it is determined that the image is unclear, at this time, the horizontal size and the vertical size of the target picture are scaled down to 0.9 times of the first size (specifically, the current size) (i.e., the horizontal size is scaled down to 0.9 times of the horizontal size in the first size, and the vertical size is scaled down to 0.9 times of the vertical size in the first size), and the snapshot is formed again and the sharpness value is calculated, if the sharpness value is greater than 30, the target picture is presented on the screen by 0.9 times of the first size, and if the value is still smaller than 30, the horizontal size and the vertical size of the target picture are further scaled down to 0.9 × 0.9 times of the first size, and the sizes (the horizontal size and the vertical size) obtained after the scaling down are taken as the final presentation size. Specifically, the detecting and scaling process may be as shown in fig. 6, and includes:
step 61: starting;
step 62: calculating a definition D (f) value of the target picture snapshot under the current size;
and step 63: judging whether the value D (f) is larger than 30, if so, entering a step 66, and if not, entering a step 64;
step 64: judging whether the zooming (reducing) times of the target picture reach 2 times, if so, entering a step 66, and if not, entering a step 65;
step 65: reducing the transverse size and the longitudinal size of the target picture to be 0.9 of the current size in an equal proportion;
and step 66: presenting (displaying) the target picture in the current size;
step 67: and (6) ending.
From the above, the scheme provided by the embodiment of the invention can realize content detection on the long and narrow picture with the transverse size far larger than the longitudinal size, directly extract and display characters in the picture on the page through an image processing algorithm for the picture with most of the content being text, and ensure that the size of the picture presented to a user is the largest on the premise of ensuring the definition for a non-text picture (the picture with most of the content not being text), thereby facilitating the user to check the text and the picture content.
An embodiment of the present invention further provides a terminal, as shown in fig. 7, including:
a first obtaining module 71, configured to obtain a ratio of text content in a target picture when a ratio value between a transverse size and a longitudinal size of the target picture is greater than or equal to a first threshold;
and the first display module 72 is configured to display the target picture according to the proportion of the text content.
The terminal provided by the embodiment of the invention obtains the proportion of the text content in the target picture under the condition that the proportion value between the transverse size and the longitudinal size of the target picture is greater than or equal to a first threshold value; displaying the target picture according to the proportion of the text content; the display of different forms can be realized to the picture that the literal information is more and the picture that the literal information is less (even there is no literal information) to the user looks over: the method comprises the following steps that text content can be extracted from pictures with more text information and displayed at proper positions on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition; the problem that in the prior art, a user cannot conveniently view the picture under the condition that the length-width ratio of the picture is unbalanced due to the fact that the transverse size is far larger than the longitudinal size is well solved.
Wherein the first display module comprises: the first extraction submodule is used for extracting the text content in the target picture under the condition that the proportion of the text content is greater than or equal to a second threshold value; and the first display sub-module is used for displaying the target picture in a first area on a display screen of the terminal and displaying the text content in a second area on the display screen of the terminal.
Further, the first display module further includes: and the second display sub-module is used for amplifying the target picture and displaying the amplified target picture in a horizontal screen display mode under the condition that the proportion of the text content is smaller than a second threshold value.
Specifically, the second display sub-module includes: the first processing unit is used for stretching the transverse size of the target picture to be consistent with the longitudinal size of the display screen under the condition that the proportional value between the transverse size and the longitudinal size of the target picture is kept unchanged.
Further, the second display sub-module further includes: the first acquisition unit is used for acquiring a first definition of the stretched target picture after the transverse size of the target picture is stretched to be consistent with the longitudinal size of the display screen; the first display unit is used for displaying the stretched target picture in a horizontal screen display mode if the first definition is larger than or equal to a third threshold; and the second processing unit is used for repeatedly executing the reduction of the stretched target picture in a preset proportion if the first definition is smaller than the third threshold, and displaying the reduced target picture in a horizontal screen display mode after the preset reduction times are reached or the definition of the reduced target picture is larger than or equal to the third threshold.
Further, the first processing unit is further configured to, after the horizontal size of the target picture is stretched to be consistent with the vertical size of the display screen, display a partial area of the stretched target picture on the display screen in a case that the vertical size of the stretched target picture is larger than the horizontal size of the display screen; and updating the partial region after detecting a preset operation for the partial region.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
Fig. 8 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 80 includes, but is not limited to: radio frequency unit 81, network module 82, audio output unit 83, input unit 84, sensor 85, display unit 86, user input unit 87, interface unit 88, memory 89, processor 810, and power supply 811. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting of the terminal, and that the 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 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 810 is configured to, when a ratio value between a horizontal size and a vertical size of a target picture is greater than or equal to a first threshold, obtain a ratio of text contents in the target picture; and displaying the target picture according to the proportion of the text content.
In the embodiment of the invention, under the condition that the ratio value between the transverse size and the longitudinal size of a target picture is greater than or equal to a first threshold value, the ratio of text content in the target picture is acquired; displaying the target picture according to the proportion of the text content; the display of different forms can be realized to the picture that the literal information is more and the picture that the literal information is less (even there is no literal information) to the user looks over: the method comprises the following steps that text content can be extracted from pictures with more text information and displayed at proper positions on a terminal screen, and pictures with less text information can be displayed in a maximum size in a horizontal screen mode on the premise of ensuring definition; the problem that in the prior art, a user cannot conveniently view the picture under the condition that the length-width ratio of the picture is unbalanced due to the fact that the transverse size is far larger than the longitudinal size is well solved.
Optionally, the processor 810 is specifically configured to, under the condition that the proportion of the text content is greater than or equal to a second threshold, extract the text content in the target picture; and displaying the target picture in a first area on a display screen of the terminal, and displaying the text content in a second area on the display screen of the terminal.
Optionally, the processor 810 is further configured to, when the ratio of the text content is smaller than a second threshold, display the target picture after enlarging the target picture in a landscape screen display manner.
Optionally, the processor 810 is specifically configured to, under the condition that the ratio between the horizontal size and the vertical size of the target picture is kept unchanged, stretch the horizontal size of the target picture to be consistent with the vertical size of the display screen.
Optionally, the processor 810 is further configured to, after stretching the transverse dimension of the target picture to be consistent with the longitudinal dimension of the display screen, obtain a first definition of the stretched target picture; if the first definition is larger than or equal to a third threshold value, displaying the stretched target picture in a horizontal screen display mode; if the first definition is smaller than the third threshold, repeatedly executing the reduction of the stretched target picture in a preset proportion, and displaying the reduced target picture in a horizontal screen display mode after the preset reduction times are reached or the definition of the reduced target picture is larger than or equal to the third threshold.
Optionally, the processor 810 is further configured to, after stretching the horizontal dimension of the target picture to be consistent with the vertical dimension of the display screen, in a case that the vertical dimension of the stretched target picture is larger than the horizontal dimension of the display screen, display a partial area of the stretched target picture on the display screen; and updating the partial region after detecting a preset operation for the partial region.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 81 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, uplink data is transmitted to the base station. In general, the radio frequency unit 81 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 81 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user via the network module 82, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 83 may convert audio data received by the radio frequency unit 81 or the network module 82 or stored in the memory 89 into an audio signal and output as sound. Also, the audio output unit 83 may also provide audio output related to a specific function performed by the terminal 80 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 83 includes a speaker, a buzzer, a receiver, and the like.
The input unit 84 is used to receive audio or video signals. The input Unit 84 may include a Graphics Processing Unit (GPU) 841 and a microphone 842, the Graphics processor 841 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 86. The image frames processed by the graphic processor 841 may be stored in the memory 89 (or other storage medium) or transmitted via the radio frequency unit 81 or the network module 82. The microphone 842 can receive sound and can process such sound 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 81 in case of the phone call mode.
The terminal 80 also includes at least one sensor 85, 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 861 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 861 and/or the backlight when the terminal 80 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 terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer and tapping), and the like; the sensor 85 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 herein.
The display unit 86 is used to display information input by the user or information provided to the user. The Display unit 86 may include a Display panel 861, and the Display panel 861 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 87 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. Specifically, the user input unit 87 includes a touch panel 871 and other input devices 872. The touch panel 871, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 871 (e.g., operations by a user on or near the touch panel 871 using a finger, a stylus, or any suitable object or accessory). The touch panel 871 may include two parts of 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 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 871 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 87 may include other input devices 872 in addition to the touch panel 871. Specifically, the other input devices 872 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 in detail herein.
Further, the touch panel 871 can be overlaid on the display panel 861, and when the touch panel 871 detects a touch operation on or near the touch panel 871, the touch panel 871 is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 861 according to the type of the touch event. Although the touch panel 871 and the display panel 861 are shown in fig. 8 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 871 and the display panel 861 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 88 is an interface for connecting an external device to the terminal 80. 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 88 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 80 or may be used to transmit data between the terminal 80 and an external device.
The memory 89 may be used to store software programs as well as various data. The memory 89 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 89 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 810 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 89 and calling data stored in the memory 89, thereby integrally monitoring the terminal. Processor 810 may include one or more processing units; preferably, the processor 810 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 into processor 810.
The terminal 80 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the terminal 80 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor 810, a memory 89, and a computer program stored in the memory 89 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above-mentioned image display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image display method, and can achieve the same technical effect, and in order to avoid repetition, the computer program is not described herein again. 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 a … …" does not exclude the presence of another identical element 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 (9)

1. A picture display method is applied to a terminal and is characterized by comprising the following steps:
under the condition that the ratio value between the transverse size and the longitudinal size of a target picture is larger than or equal to a first threshold value, acquiring the ratio of text content in the target picture;
displaying the target picture according to the proportion of the text content;
the displaying the target picture according to the proportion of the text content comprises the following steps:
under the condition that the proportion of the text content is greater than or equal to a second threshold value, extracting the text content in the target picture;
displaying the target picture in a first area on a display screen of the terminal, and displaying the text content in a second area on the display screen of the terminal;
the displaying the target picture according to the proportion of the text content further comprises:
and under the condition that the proportion of the text content is smaller than a second threshold value, amplifying the target picture by adopting a horizontal screen display mode and then displaying the amplified target picture.
2. The picture display method according to claim 1, wherein the displaying the target picture after enlarging the target picture in a landscape display mode comprises:
under the condition that the proportional value between the transverse size and the longitudinal size of the target picture is kept unchanged, the transverse size of the target picture is stretched to be consistent with the longitudinal size of the display screen.
3. The picture display method according to claim 2, wherein the target picture is displayed after being enlarged in a landscape display mode, further comprising:
after the transverse size of the target picture is stretched to be consistent with the longitudinal size of the display screen, acquiring a first definition of the stretched target picture;
if the first definition is larger than or equal to a third threshold, displaying the stretched target picture in a horizontal screen display mode;
if the first definition is smaller than the third threshold, repeatedly executing the reduction of the stretched target picture in a preset proportion, and displaying the reduced target picture in a horizontal screen display mode after the preset reduction times are reached or the definition of the reduced target picture is larger than or equal to the third threshold.
4. The picture display method according to claim 2 or 3, further comprising, after stretching the lateral dimension of the target picture to coincide with the longitudinal dimension of the display screen:
if the longitudinal size of the stretched target picture is larger than the transverse size of the display screen, displaying a partial area of the stretched target picture on the display screen; and updating the partial region after detecting a preset operation for the partial region.
5. A terminal, comprising:
the first acquisition module is used for acquiring the proportion of text content in the target picture under the condition that the proportion value between the transverse size and the longitudinal size of the target picture is greater than or equal to a first threshold value;
the first display module is used for displaying the target picture according to the proportion of the text content;
the first display module includes:
the first extraction submodule is used for extracting the text content in the target picture under the condition that the proportion of the text content is greater than or equal to a second threshold value;
the first display sub-module is used for displaying the target picture in a first area on a display screen of the terminal and displaying the text content in a second area on the display screen of the terminal;
the first display module further comprises:
and the second display sub-module is used for amplifying the target picture and displaying the amplified target picture in a horizontal screen display mode under the condition that the proportion of the text content is smaller than a second threshold value.
6. The terminal of claim 5, wherein the second display sub-module comprises:
and the first processing unit is used for stretching the transverse dimension of the target picture to be consistent with the longitudinal dimension of the display screen under the condition of keeping the proportional value between the transverse dimension and the longitudinal dimension of the target picture unchanged.
7. The terminal of claim 6, wherein the second display sub-module further comprises:
the first acquisition unit is used for acquiring a first definition of the stretched target picture after the transverse dimension of the target picture is stretched to be consistent with the longitudinal dimension of the display screen;
the first display unit is used for displaying the stretched target picture in a horizontal screen display mode if the first definition is larger than or equal to a third threshold;
and the second processing unit is used for reducing the stretched target picture by a preset proportion if the first definition is smaller than a third threshold value, and displaying the reduced target picture in a horizontal screen display mode after the preset reduction times are reached or the definition of the reduced target picture is larger than or equal to the third threshold value.
8. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the picture display method according to any one of claims 1 to 4.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the picture display method according to any one of claims 1 to 4.
CN201910415031.6A 2019-05-17 2019-05-17 Picture display method and terminal Active CN110162286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910415031.6A CN110162286B (en) 2019-05-17 2019-05-17 Picture display method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910415031.6A CN110162286B (en) 2019-05-17 2019-05-17 Picture display method and terminal

Publications (2)

Publication Number Publication Date
CN110162286A CN110162286A (en) 2019-08-23
CN110162286B true CN110162286B (en) 2023-04-07

Family

ID=67631260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910415031.6A Active CN110162286B (en) 2019-05-17 2019-05-17 Picture display method and terminal

Country Status (1)

Country Link
CN (1) CN110162286B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061531B (en) * 2019-12-10 2022-07-15 维沃移动通信有限公司 Picture display method and electronic equipment
CN111405182B (en) * 2020-03-26 2021-07-23 杭州小影创新科技股份有限公司 Video editing method for adjusting lens proportion
CN116820289A (en) * 2020-03-31 2023-09-29 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium
CN111861991A (en) * 2020-06-11 2020-10-30 北京百度网讯科技有限公司 Method and device for calculating image definition
CN112506868A (en) * 2020-12-03 2021-03-16 北京达佳互联信息技术有限公司 File display method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419661A (en) * 2007-10-26 2009-04-29 国际商业机器公司 Method for displaying image based on text in image and system
CN103500332A (en) * 2013-09-06 2014-01-08 优视科技有限公司 Character display method and device in image
CN105868235A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image preview method and apparatus of intelligent terminal
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102498499A (en) * 2009-08-11 2012-06-13 皇家飞利浦电子股份有限公司 Method and apparatus for providing an image for display
JP2013040976A (en) * 2009-12-11 2013-02-28 Panasonic Corp Image display device and image display method
CN103631493B (en) * 2013-10-31 2017-03-15 小米科技有限责任公司 Image display method, device and electronic equipment
CN105320391A (en) * 2014-07-31 2016-02-10 宇龙计算机通信科技(深圳)有限公司 Method for adjusting display effect of standby interface and terminal
CN107463534B (en) * 2017-07-27 2020-03-20 维沃移动通信有限公司 Object labeling method, mobile terminal and computer readable storage medium
CN107393459B (en) * 2017-07-31 2020-07-31 京东方科技集团股份有限公司 Image display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419661A (en) * 2007-10-26 2009-04-29 国际商业机器公司 Method for displaying image based on text in image and system
CN103500332A (en) * 2013-09-06 2014-01-08 优视科技有限公司 Character display method and device in image
CN105868235A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image preview method and apparatus of intelligent terminal
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal

Also Published As

Publication number Publication date
CN110162286A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN110162286B (en) Picture display method and terminal
CN108536365B (en) Image sharing method and terminal
CN109495711B (en) Video call processing method, sending terminal, receiving terminal and electronic equipment
CN108471498B (en) Shooting preview method and terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN109005286B (en) Display control method and folding screen terminal
WO2019184947A1 (en) Image viewing method and mobile terminal
CN111290810B (en) Image display method and electronic equipment
CN107749046B (en) Image processing method and mobile terminal
CN109656461B (en) Screen capturing method and terminal
CN109445653B (en) Icon processing method and mobile terminal
CN109388324B (en) Display control method and terminal
CN111145093A (en) Image display method, image display device, electronic device, and storage medium
CN108174110B (en) Photographing method and flexible screen terminal
CN111176526B (en) Picture display method and electronic equipment
CN111562896A (en) Screen projection method and electronic equipment
CN110536005B (en) Object display adjustment method and terminal
CN110308769B (en) Information display method and terminal
CN109669656B (en) Information display method and terminal equipment
CN110955793A (en) Display control method and electronic equipment
CN111311489A (en) Image clipping method and electronic equipment
CN108491128B (en) Application program management method and terminal
CN107798662B (en) Image processing method and mobile terminal

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