CN111223047A - Image display method and electronic equipment - Google Patents
Image display method and electronic equipment Download PDFInfo
- Publication number
- CN111223047A CN111223047A CN201911171276.5A CN201911171276A CN111223047A CN 111223047 A CN111223047 A CN 111223047A CN 201911171276 A CN201911171276 A CN 201911171276A CN 111223047 A CN111223047 A CN 111223047A
- Authority
- CN
- China
- Prior art keywords
- resolution
- area
- image
- target
- region
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000004590 computer program Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 26
- 230000000875 corresponding effect Effects 0.000 description 21
- 230000006870 function Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000013507 mapping Methods 0.000 description 6
- 241001465754 Metazoa Species 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000005484 gravity Effects 0.000 description 3
- 210000003128 head Anatomy 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 210000001061 forehead Anatomy 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/403—Edge-driven scaling; Edge-based scaling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides an image display method and electronic equipment, wherein the method comprises the following steps: when the resolution of a target image is different from the resolution of a target display area of the electronic equipment, adjusting the image resolution of a first area of the target image and keeping the image resolution of a second area of the target image unchanged; displaying the target image based on the adjusted resolution; wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region. The invention can reduce the image deformation degree when the target image is adapted to the target display area for display and improve the display effect when the target image is adapted to the target display area for display.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image display method and an electronic device.
Background
With the development of science and technology, the screen of the electronic equipment occupies a larger area, and the size of the screen is larger. There may be differences in screen sizes of different types of electronic devices. Such as: the screen resolution of the electronic device is 1080 × 1920, 1080 × 2160, 1080 × 2232, 1080 × 2340 and the like, and the resolution of the conventional video is 1920 × 1080, 3840 × 2160(4K), 7680 × 4320(8K) and the like (the conventional video is, for example, a movie, a television play, a micro movie, an advertisement video and the like), so that when the video data is played through the electronic device, the resolution of the video image may be different from the screen resolution of the electronic device; the resolution may also represent the size of an image/screen to a certain extent, and the resolution of the video image is different from the screen resolution of the electronic device, or the size of the video image is different from the screen size of the electronic device, or the size ratio of the video image is different from the size ratio of the screen of the electronic device.
When the screen resolution (or size, size ratio) of the electronic device is different from the resolution (or size, size ratio) of the video data to be played, a black border (for example, a video image fills the display area of the screen in the width direction but does not fill the display area of the screen in the length direction, or a video image fills the display area of the screen in the length direction but does not fill the display area of the screen in the width direction) may exist in the video playing picture, and the display effect of the video image is poor.
Disclosure of Invention
The invention provides an image display method and electronic equipment, and aims to solve the problem that in the prior art, the display effect of a video image is poor under the condition that the screen resolution of the electronic equipment is different from the image resolution of video data to be played.
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, including:
when the resolution of a target image is different from the resolution of a target display area of the electronic equipment, adjusting the image resolution of a first area of the target image and keeping the image resolution of a second area of the target image unchanged;
displaying the target image based on the adjusted resolution;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the adjusting module is used for adjusting the image resolution of a first area of a target image and keeping the image resolution of a second area of the target image unchanged under the condition that the resolution of the target image is different from the resolution of a target display area of the electronic equipment;
a display module for displaying the target image based on the adjusted resolution;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the image display method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image display method as described above.
In the embodiment of the invention, under the condition that the resolution of a target image is different from that of a target display area of the electronic equipment, the image resolution of a first area of the target image is adjusted, and the image resolution of a second area except the first area in the target image is kept unchanged; therefore, the target image is displayed based on the adjusted resolution, the image deformation degree caused by the integral stretching of the image picture can be reduced when the target image is matched with the target display area to be displayed (for example, the target display area is completely filled by the picture area of the target image), the image content loss caused by the image cutting method can be avoided, and the display effect when the target image is matched with the target display area to be displayed is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of an image display method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an image display method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of an image display method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a display of a target image before resolution adjustment according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a stretched display of a target image;
FIG. 6 is a schematic diagram of a display of an enlarged and cropped target image;
FIG. 7 is a schematic diagram of an embodiment of the present invention for dividing a target image into at least two regions;
FIG. 8 is a schematic diagram of a resolution adjusted target image according to an embodiment of the invention;
FIG. 9 is a fourth flowchart of an image display method according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a target display area when held by the left hand according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a target display area when held by a right hand according to an embodiment of the present invention;
FIG. 12 is a fifth flowchart of an image display method according to an embodiment of the present invention;
FIG. 13 shows a block diagram of an electronic device of an embodiment of the invention;
fig. 14 is a schematic diagram showing a hardware configuration of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The image display method in the embodiment of the invention can be applied to electronic equipment, and optionally, the electronic equipment can be a terminal, a server and the like; the terminal may be a mobile terminal (e.g., a mobile phone, a tablet computer), or other device capable of sending or receiving wireless signals, including user equipment, a Personal Digital Assistant (PDA), a laptop computer, a desktop computer, a smart appliance (e.g., a television), and so on.
As shown in fig. 1, an embodiment of the present invention provides an image display method, including:
step 11: when the resolution of the target image is different from the resolution of the target display area of the electronic equipment, the image resolution of the first area of the target image is adjusted, and the image resolution of the second area of the target image is kept unchanged.
Optionally, the target display area may be a whole display area of a screen of the electronic device, or may be a partial display area of the screen; for example: the partial display area of the screen can be determined as the target display area according to the holding mode of the electronic equipment.
The resolution of the target image is different from the resolution of the target display region, and the size of the target image may be different from the size of the target display region, or the size ratio of the target image may be different from the size ratio of the target display region.
Wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
Specifically, as an implementation manner, the target image may be divided into at least two regions along a length direction of the target image, that is, a sum of sizes of the at least two regions in the length direction is the same as a size of the target image in the length direction, and a size of each of the at least two regions in a width direction of the target image is the same as a size of the target image in the width direction; the size of the first area in the length direction can be adjusted (for example, zooming processing), so that the image resolution of the first area can be adjusted.
As another implementation manner, the target image may be divided into at least two regions along a width direction of the target image, that is, a sum of sizes of the at least two regions in the width direction is the same as a size of the target image in the width direction, and a size of each of the at least two regions in a length direction of the target image is the same as a size of the target image in the length direction; the size of the first area in the length direction can be adjusted (for example, by zooming), so that the image resolution of the first area can be adjusted.
Whether the size of the first region in the longitudinal direction or the width direction is reduced or enlarged may be determined according to the dividing direction of the at least two regions (i.e., the longitudinal direction or the width direction), the resolution of the target image, and the resolution of the target display region, so as to ensure that the size ratio of the target image after adjustment (e.g., the ratio of the size of the target image in the longitudinal direction to the size of the width direction) is the same as the size ratio of the target display region (e.g., the ratio of the size of the target display region in the longitudinal direction to the size of the width direction); optionally, the adjusted size of the target image (e.g., the size of the target image in the length direction and the width direction) may be the same as the size of the target display area (e.g., the ratio of the size of the target display area in the length direction and the size of the target display area in the width direction).
Step 12: and displaying the target image based on the adjusted resolution.
Optionally, the size of the target image displayed after the resolution is adjusted is the same as the size of the target display area, so as to ensure the display effect of the target image.
In the above scheme, when the resolution of a target image is different from the resolution of a target display area of the electronic device, the image resolution of a first area of the target image is adjusted, and the image resolution of a second area of the target image except the first area is kept unchanged; therefore, the target image is displayed based on the adjusted resolution, the image deformation degree caused by the integral stretching of the image picture can be reduced when the target image is matched with the target display area to be displayed (for example, the target display area is completely filled by the picture area of the target image), the image content loss caused by the image cutting method can be avoided, and the display effect when the target image is matched with the target display area to be displayed is improved.
Optionally, in a case that the first area is at least two of the at least two areas: in the step 11, the adjusting the image resolution of the first region of the target image and keeping the image resolution of the second region of the target image unchanged may specifically include:
adjusting the image resolution of the first sub-area and the third sub-area of the target image, and keeping the image resolution of the second sub-area of the target image unchanged;
wherein the first sub-region is one of the first regions, the third sub-region is one of the first regions other than the first sub-region, and the second sub-region is one of the second regions; the second sub-region is located between the first sub-region and the third sub-region.
Optionally, the first sub-region is adjacent to the second sub-region, and/or the third sub-region is adjacent to the second sub-region.
Optionally, in a case that the first area is at least two of the at least two areas: different resolution adjustment can be carried out on each first area; the same resolution adjustment can also be performed for each first region; the resolution adjustment may be performed in the same manner for a part of the first area, and in a different manner for another part of the first area.
For example: when the first sub-region and the third sub-region are symmetrical with respect to the second sub-region, the same resolution adjustment may be performed on the first sub-region and the third sub-region; when the first sub-region and the third sub-region are asymmetric with respect to the second sub-region, different resolution adjustments may be made to the first sub-region and the third sub-region.
In this embodiment, resolution adjustment is not performed on the second sub-region located between the first sub-region and the third sub-region, and resolution adjustment is performed on the first sub-region and the third sub-region, so that resolution adjustment effects are ensured on two sides of the second sub-region on which resolution adjustment is not performed, and further reduction of the deformation degree of the target image is facilitated, and a display effect of the target image is facilitated.
As shown in fig. 2, an embodiment of the present invention further provides an image display method, including:
step 21: in the case where the resolution of a target image is different from the resolution of a target display area of the electronic device, the target image is divided into at least two areas in a length direction or a width direction according to the resolution of the target image and the resolution of the target display area.
Step 22: adjusting the image resolution of a first area of the target image, and keeping the image resolution of a second area of the target image unchanged;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
Step 23: and displaying the target image based on the adjusted resolution.
Alternatively, the resolution of the target image and the resolution of the target display area may be different in the following case: the length size of the target image is different from the length size of the target display area, and the width size of the target image is different from the width size of the target display area; or the target image is the same as one of the length size and the width size of the target display area, and the other is different, such as: the length size of the target image is the same as that of the target display area, and the width size of the target image is different from that of the target display area; or the width size of the target image is the same as the width size of the target display area, and the length size of the target image is different from the length size of the target display area.
Specifically, in the case where the target image is the same as one of the length and width dimensions of the target display area and the other is different: the division is performed according to one of the target images which is different in size from the target display area.
Such as: in the case where the length sizes of the target image and the target display region are different, the target image is divided into at least two regions in the length direction. Further, if the length of the target image is smaller than the length of the target display area, the first area is enlarged along the length direction so that the sum of the sizes of the first area and the second area in the length direction is the same as the length of the target display area; when the length of the target image is larger than the width of the target display area, the first area is reduced along the length direction so that the sum of the sizes of the first area and the second area in the length direction is equal to the length of the target display area.
It should be noted that, when the width sizes of the target image and the target display area are different, the adjustment manner for the first area is similar to that when the length sizes of the target image and the target display area are different, but the length direction size adjusted in the above method is changed to the width direction size, and details are not repeated here.
In the case where the length and width dimensions of the target image and the target display area are different from each other: the target image may be scaled in an equal manner, so that the length of the scaled target image is the same as the length of the target display area, or the width of the scaled target image is the same as the width of the target display area; and adjusting the resolution of the target image after the equal scaling processing according to the condition that one of the length and the width of the target image and the target display area is the same and the other is different, which is not described herein again.
In the above solution, when the resolution of the target image is different from the resolution of the target display area of the electronic device, the target image is divided into at least two areas in the length direction or the width direction according to the resolution of the target image and the resolution of the target display area, the image resolution of the first area of the target image is adjusted, the image resolution of the second area of the target image is kept unchanged, the target image is displayed based on the adjusted resolution, and on the basis of ensuring that the size of the target image after resolution adjustment is the same as the size of the target display area, or the size ratio of the target image after resolution adjustment is the same as the size ratio of the target display area, the degree of image deformation caused by the whole stretching of the image screen is reduced, and the image content loss caused by the image cropping method is avoided, and further, the display effect of the target image when the target image is matched with the target display area for display is improved.
As shown in fig. 3, an embodiment of the present invention further provides an image display method, including:
step 31: determining a screen baseline of a target image in a case that a resolution of the target image is different from a resolution of a target display area of the electronic device.
The target image may be a picture (e.g., a photograph), a video image, or the like.
Optionally, the frame baseline may be preset, such as: and shooting by using a preset picture base line (or a preset template with the picture base line) to obtain the target image.
Optionally, the frame baseline may be obtained by performing image processing on the target image.
As an implementation manner, determining the frame baseline of the target image may specifically include: determining a target object in the target image; and determining a picture base line of the target image according to the extending direction of the target object in the target image.
Specifically, people, animals, and specific objects (such as buildings, vases, cups, toys, tables and chairs, and vehicles) in the target image can be identified as target objects;
furthermore, the extending direction of the target object can be obtained by identifying the target object, and the picture base line of the target image is determined according to the extending direction of the target object in the target image.
For example: taking a human face as an example of a target object, a straight line determined from a nose to a mouth may be an extending direction of the human face in the target image, or a straight line determined from a forehead to a chin may be an extending direction of the human face in the target image, i.e., a picture baseline; taking a human body as an example of a target object, a straight line determined from the head to the foot can be taken as an extending direction of the human body in a target image, namely a picture base line; for the animal body, a straight line determined from the head to the tail can be taken as the extending direction of the animal in the target image, namely a picture base line; for animal head portraits, the scene baseline can be determined in a manner similar to a human face; for other specific objects such as buildings, the axis of the object may be used as the extending direction.
As another implementation, determining the picture baseline of the target image may further specifically include: determining a picture composition mode of the target image; and determining a picture base line of the target image according to the composition line corresponding to the picture composition mode.
Optionally, the picture composition mode includes, but is not limited to, the following: a Sudoku composition mode, a cross composition mode, a triangle composition mode, a diagonal composition mode, a golden section composition mode, a curve composition mode (such as an S-shaped curve composition mode) and a symmetrical composition mode.
The composition line of the nine-grid composition mode is a 'well' word line, the composition line of the cross composition mode is a 'ten' word line, the composition line of the triangular composition mode is a triangular edge, the composition line of the diagonal composition mode is a diagonal, the composition line of the golden section composition mode is a golden section line (point), the composition line of the curve composition mode (such as an S-shaped curve composition mode and the like) is a curve (such as an S line), and the composition line of the symmetrical composition mode is a symmetrical axis.
Specifically, the composition mode of the target image can be determined by performing image processing on the target image; such as: analyzing the position of a target object in the target image or the extending direction of the target object, and determining the corresponding composition mode of the target image according to the position and the extending direction of the target object.
Optionally, the nine-grid composition mode is the most basic and commonly used composition mode, or other composition modes except the nine-grid composition mode described above, and may also be characterized by the nine-grid composition mode to a certain extent, so as to be a preferred implementation mode, the target image may also be divided according to the nine-grid composition mode, and further, the position of the grid line (the "well" word line) where the target object is located is used as the picture base line.
Step 32: and determining the first area according to the picture baseline.
Optionally, a region, of the divided regions, whose distance from the picture base line exceeds a predetermined distance range may be determined as the first region; alternatively, in the case where the screen baseline is determined by identifying a target object in the target image, a region not including the target object may be determined as the first region (e.g., all regions not including the target object are determined as the first region, or a region including the target object with a number of pixels smaller than a preset threshold is determined as the first region). Accordingly, the region other than the first region is the second region.
Optionally, a region of the divided regions, in which the distance to the picture base line is within a predetermined distance range, may be determined as the second region; alternatively, in the case where the screen baseline is determined by identifying a target object in the target image, the area containing the target object may be determined as the second area (e.g., all areas containing the target object are taken as the second area, or an area containing the target object with a number of pixels greater than or equal to a preset threshold is taken as the second area, etc.). Accordingly, the region other than the second region is the first region.
Step 33: and adjusting the image resolution of the first area according to the resolution of the target display area, and keeping the image resolution of the second area of the target image unchanged.
The resolution of the image data refers to the amount of information stored in the image, and is how many pixel points are in each inch of the image, and the unit of the resolution is ppi (pixels Per inc), which is generally called pixel Per inch; typically, image resolution is expressed in horizontal pixels by vertical pixels, for example: the resolution is 1080 × 1920, and it indicates that the number of pixels in the horizontal direction is 1080 and the number of pixels in the vertical direction is 1920.
In the embodiment of the present invention, the resolution adjustment performed on the first area, that is, the scaling processing performed on the first area, is that the number of pixels is not changed but the size of the pixels is changed during the scaling processing, so that the resolution of the image can also be represented by the size of the image.
Such as: when the target image is a picture, the resolution of the target image can also be equivalent to the size of the picture, and the size of the picture can be represented by the length, the width or the area of the picture, that is, the resolution adjustment performed on the first region can also be equivalent to the size adjustment of the first region; when the target image is video data, the resolution of the target image may be equivalent to the size of one frame of image in the video data, and the size of the image may be represented by the length, the width, or the area of the image, that is, the resolution adjustment performed on the first region may also be equivalent to the size adjustment of the first region.
In this way, the resolution of the target display region may be equivalent to the size of the target display region, and the size of the target display region may be expressed by the length, width, area, or the like of the target display region.
It should be noted that, no matter what parameters (such as the number of pixels, the side length, the area, and the like) are used to represent the target display area and the target image, the size ratio of the target image (such as the aspect ratio of the image) after the resolution adjustment is the same as the size ratio of the target display area (such as the aspect ratio of the target display area) may be satisfied. Optionally, the same parameter representation should be adopted between the target display area and the target image, so as to facilitate analysis processing and calculation and be beneficial to ensuring calculation accuracy.
Step 34: and displaying the target image based on the adjusted resolution.
Specifically, the size ratio of the target image after the resolution adjustment is the same as the size ratio of the target display area.
In the above scheme, in the case that the resolution of the target image is different from the resolution of the target display area of the electronic device, determining the picture baseline of the target image; determining the first area according to the picture base line; adjusting the image resolution of the first area according to the resolution of the target display area, and keeping the image resolution of the second area of the target image unchanged; and displaying the target image based on the adjusted resolution. Therefore, the screen baseline represents the position of the target object (or the main body area) in the target image, the resolution of the second area in the preset range of the screen baseline is kept unchanged, and the resolution of the first area except the second area is adjusted, so that the resolution of the target image is adjusted, the deformation degree of the target object caused by the integral stretching of the screen can be reduced on the basis that the size proportion of the target image obtained after the resolution is adjusted is the same as that of the target display area, the image content loss caused by an image cutting method is avoided, and the display effect of the target image when the target image is matched with the target display area for display is improved.
Optionally, the step 33 may specifically include:
determining a resolution adjustment value corresponding to the first area according to the resolution of the target display area and the distance from the first area to the picture base line;
and adjusting the image resolution of the first area according to the resolution adjustment value.
In this embodiment, the first area of the plurality of areas into which the target image is divided may correspond to different resolution adjustment values, so as to ensure that the size ratio of the target image obtained after the resolution adjustment meets the size ratio requirement of the target display area, and further reduce the degree of deformation generated by the target image.
Specifically, as an implementation manner, a distance from the first area to the picture baseline is positively correlated with a resolution adjustment value corresponding to the first area, that is, a resolution adjustment value corresponding to a first area farther from the picture baseline is greater than a resolution adjustment value corresponding to a first area closer to the picture baseline. The resolution adjustment value reflects the adjustment degree of the resolution, and the larger the resolution adjustment value is, the larger the adjustment degree is.
Alternatively, the distance from the first area to the screen baseline is positively correlated with the resizing value corresponding to the first area, that is, the resizing value corresponding to the first sub-area farther from the screen baseline is larger than the resizing value corresponding to the first area closer to the screen baseline. The size of the resizing value also represents the degree of adjustment of the resolution (or size), and the larger the resizing value, the larger the degree of adjustment.
As such, since the frame baseline generally corresponds to the subject object in the frame, such as: people, animals, buildings and the like have small adjustment range of the resolution (or size) of the main object, and have relatively large adjustment range of the resolution (or size) of the image area far away from the main object area, so that the requirement that the picture size proportion of the target image is the same as the size proportion of the target display area after the resolution (or size) is adjusted can be met, the serious image deformation caused by the integral stretching of the picture can be avoided, the image content loss caused by an image cutting method can be avoided, and the display effect of the target image when the target image is matched with the target display area for display is improved.
As another implementation, the first mapping table may be generated according to the resolution or size of the main object at the position of the picture base line, or the number of pixels; the first mapping table includes a corresponding relationship between the first area and the resolution (or size) adjustment value.
Optionally, all regions belonging to the main object in the plurality of regions divided by the target image are taken as second regions, a region in which the number of pixels belonging to the main object is less than a preset threshold is taken as a first region of a first type, and a resolution (or size) adjustment value corresponding to the first region of the first type is lower than a first preset threshold; all the regions not belonging to the subject object are the first regions of the second type, and the resolution (or size) adjustment value corresponding to the first regions of the second type may be higher than the first preset threshold, and of course, may be as lower than the second preset threshold as possible.
The first preset threshold can be determined according to the deformation degree of the main object which can be observed by human eyes and is obtained through test, so that the deformation of the main object which can not be observed by the human eyes is guaranteed as best as possible, and the method is not particularly limited; and the deformation of the background area except the main body object is not easy to be observed by human eyes, so that the second preset threshold can be set to be larger than the first preset threshold, the requirement of the target image for being matched with the target display area to display can be met, and the display effect can also be met.
Optionally, the resolution (or size) adjustment values of a plurality of adjacent first areas (e.g. 2-3) in the first mapping table, or first areas having the same distance from the picture base line may be the same, and the resolution (or size) adjustment values of first areas having a farther distance from the picture base line are larger.
Of course, the example of the mapping relationship between the first region and the resolution (or size) adjustment value in the first mapping table is given above, but it should be noted that other mapping tables may be adopted in the embodiment of the present invention, and may be specifically set according to the display requirement and size of the main object in the target object, and the resolution (or size) adjustment value of the main region needs to be as small as possible with respect to the resolution (or size) adjustment value of the background region (the portion of the target image other than the main region), and the present invention is not limited in particular.
The following describes the above method with reference to specific examples:
specifically, a frame image in a resolution 1920 × 1080 of the standard video data is taken as an example of the target image; as shown in fig. 4, when the target image 402 is displayed in the target display area 401 at the original screen scale (e.g., the resolution is 2160 × 1080), black borders exist on the left and right sides of the target display area 401, which is shown by the shaded area in fig. 4.
If the shadow area is filled in a transverse stretching mode, the transverse deformation of the main body object in the target image is serious, as shown in fig. 5; if the requirement of the horizontal size is satisfied by the overall enlargement, the image needs to be cropped if the vertical size is too large, which results in a loss of the displayed image, as shown in fig. 6.
Due to the universality of the layout mode of the nine-square grid adopted by video shooting, photographing, designing and the like, as shown by a dotted line in fig. 4, the target images are laid out according to the rule 3 x 3 of the nine-square grid. Therefore, the picture base line of the target image is determined in the manner of the Sudoku, so that the picture composition is accurate, the person/object main body to be expressed is highlighted, and the method has universal applicability.
Further, as shown in fig. 4, the area 1, the area 2 and the area 3 obtained by dividing the target image in the horizontal direction according to the longitudinal frame baseline of the squared figure are further divided into a plurality of sub-areas, for example: each of the region 1, the region 2 and the region 3 is subdivided into 8 equal parts, i.e., the target image is divided into 24 equal parts in the lateral direction, as shown in fig. 7.
Specifically, the dividing direction of the target image may be determined according to the size ratio of the target image and the direction to be stretched, and the number of the sub-regions obtained by dividing may be determined according to the content of the target image.
Thus, the target image at resolution 1920 x1080 is divided laterally into 24 subregions at equal resolution 80 x1080, as shown in fig. 7.
Namely: region 1: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
region 2: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
region 3: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
and region 1, region 2 and region 3 add laterally, satisfying:
(80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80 +80) × 1080 ═ 1920 × 1080, i.e., the resolution of the target image.
Furthermore, according to the size of the target display area 401 (which may be represented by a resolution of 2160 × 1080), a resolution (or size) adjustment value of each sub-area is determined, or a target resolution (or size) value corresponding to each sub-area is directly determined, so that 24 sub-areas divided from the video data with the resolution 1920 × 1080 correspond to the target image generated after the resolution is adjusted, and the target image is placed into the target display area 401 with the resolution of 2160 × 1080 for adaptation, the adaptation principle is that the deformation of the area on the squared grid is reduced as much as possible, the squared grid ensures the continuity, and the deformation difference of adjacent areas is not too large.
For example: the adjustment values respectively corresponding to the lateral resolutions of the left to right 8 sub-regions in the region 1 are as follows: 25. 10, 5, 0, 5, 10, 25; the adjustment values for each sub-region of the respective region 2 and region 3 may be the same as the adjustment values in region 1. Therefore, the deformation of the upper area of the Sudoku grid line is reduced as much as possible, the Sudoku grid line ensures the continuity, and the deformation difference of the adjacent areas is not too large.
Namely: area before adjustment 1: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
adjusted region 1: (105+90+85+80+80+85+90+105) × 1080 ═ 720 × 1080;
area before adjustment 2: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
adjusted region 2: (105+90+85+80+80+85+90+105) × 1080 ═ 720 × 1080;
area before adjustment 3: (80+80+80+80+80+80 +80) × 1080 ═ 640 × 1080;
adjusted region 3: (105+90+85+80+80+85+90+105) × 1080 ═ 720 × 1080;
that is, the target image before adjustment:
(80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80+80)*1080=1920*1080;
as shown in fig. 8, the resolution-adjusted target image 403 obtained by adjusting the target image:
(105+90+85+80+80+85+90+105+105+90+85+80+80+85+90+105+105+90+85+80+80+85+90+105)*1080=2160*1080;
thus, the target image obtained after the resolution is adjusted is ensured to be matched with the target display area (namely, the black edge is eliminated), and compared with the target image before the resolution is adjusted, the main object is not deformed or only has smaller deformation.
It should be noted that the adjustment of 80 to 105 means that the original 80 pixels are enlarged to a size corresponding to the original 105 pixels, and does not mean that the 80 pixels are adjusted to 105 pixels, that is, the number of pixels is not changed during the resolution adjustment process, but the adjusted pixel size.
The method of the embodiment of the invention has good display effect and less image deformation through testing; specifically, an adjustment formula can be preset according to the method, so that the video or the image can be directly adapted according to the adaptation principle through the preset adjustment formula and the background when displayed, and finally the complete video which fills the target display area of the screen is displayed for the user, and the display effect is improved.
Such as: 1920 videos include 1920/3-640, 640/2-320, 320/2-160, 160/2-80; i.e., 1920/80-24; (80+80+80+80) × 6 ═ 1920;
when the 1920 video is adjusted to 2160 video, 2160/3 is 7200, 720/2 is 360, 360/2 is 180, and 180/2 is 90; i.e., 2160/90-24; (80+85+90+105) × 6 ═ 2160.
Note that the video in which 1920 × 1080 is adjusted to 2160 × 1080 means that the size corresponding to 1920 × 1080 pixels is adjusted to the size corresponding to 2160 × 1080 pixels based on the pixels in 1920 × 1080 video, that is, the adjusted 2160 × 1080 video has the same number of pixels as 1920 × 1080 video, but has different pixel sizes; the expression resolution is used here to facilitate understanding of the difference in size before and after adjustment. The above description is given by taking 1920 × 1080 video adjustment as 2160 × 1080 video, but the method in the embodiment of the present invention may also be applied to video adjustment of other resolutions, and the present invention is not limited thereto.
It should be further noted that the method in the embodiment of the present invention may be applied to the resolution (or size) adjustment of video data, and may also be applied to the resolution (or size) adjustment of picture data, and the method is similar to that described herein and is not described again.
It should be further noted that the resolution (or size) adjustment value in the embodiment of the present invention may also adopt other values besides the above embodiments, and specifically, the resolution (or size) adjustment value may be adaptively adjusted according to the size of the main object and the position of the main object, which is not limited to this.
Furthermore, the above-described embodiments give examples in which the image resolution of the first region of the target image is adjusted, and the image resolution of the second region of the target image is kept unchanged; as another implementation manner, the image resolutions of the first and second regions of the target image may be adjusted to different degrees, such as: the adjustment degree of the image resolution of the second area is smaller than that of the first area, so as to avoid serious deformation degree of the second area (or the area where the main object is located).
As shown in fig. 9, an embodiment of the present invention provides an image display method applied to an electronic device, where the method includes:
step 91: and acquiring the holding state of the electronic equipment.
The holding state comprises a single-hand holding state and a double-hand holding state, wherein the single-hand holding state further comprises a left-hand holding state and a right-hand holding state.
Optionally, the electronic device may be a mobile terminal (e.g., a mobile phone, a tablet computer), and the like.
Specifically, the holding state of the electronic device may be detected and determined by a sensor disposed in the electronic device, for example, a sensor for detecting the holding state may be disposed in the electronic device, or a single-hand holding state may also be detected by a gravity sensor or the like, or the holding state of the electronic device may also be determined by a touched state of the screen, and the present invention is not particularly limited, and only needs to obtain the holding state of the electronic device.
And step 92: and determining the target display area according to the holding state.
Step 93: and displaying a target image on the target display area.
Optionally, the step 92 may specifically include:
when the electronic equipment is in a holding state, a held area on a display area of the electronic equipment is determined, and an area except for the held area in the display area is determined as the target display area.
As an implementation manner, when the electronic device is in a two-hand holding state, determining that a region touched by two hands on a display region (display screen) of the electronic device is a held region, and taking a region other than the held region on the display region of the electronic device as the target display region;
when the electronic equipment is in a one-hand holding state, determining an area contacted by one hand on a display area (display screen) of the electronic equipment as a held area, and taking an area except the held area on the display area of the electronic equipment as the target display area.
As another implementation manner, the held area may also be determined according to the size of the target image and the size of the first display area for displaying the target image on the electronic device.
Specifically, under the condition that the size of the first display area is larger than the size of the target image to be displayed, determining the difference value between the size of the first display area and the size of the target image; based on the difference, the gripped area is determined.
As shown in fig. 10, if the electronic device is in a left-handed holding state, a region extending from the left side to the right of the first display region to the difference is taken as a held region 1001, and a region extending from the right side to the left of the first display region to the same size as the target image is taken as a target display region 1002;
as shown in fig. 11, if the electronic device is in a right-hand holding state, an area extending from the right side to the left of the first display area by the difference is taken as a held area 1101, and an area extending from the left side to the right side of the first display area by the same size as the target image is taken as the target display area 1102;
if the electronic device is in a two-hand holding state, a region extending from the left side to the right side by a difference of one half on the first display region is used as a left-side held region, and a region extending from the right side to the left side by a difference of one half on the first display region is used as a right-side held region, and a region having the same size as the target image between the left-side held region and the right-side held region is the target display region.
In this embodiment, when the size of the first display area is larger than the size of the target image, the position of the "black-edged" area, where the target image is not displayed, in the first display area is adjusted by the difference between the left-hand holding manner and the right-hand holding manner, so that the display of the target image is adapted according to the difference between the holding manners, and the "black-edged" area is used to avoid the shielding of the image frame when the user holds the target image by the hand, thereby facilitating the improvement of the image display effect in the holding state.
Further, after the target display area is determined according to the holding state of the electronic device and the target image is displayed, if it is detected that the holding state is cancelled (for example, when the holding state is switched to the non-holding state), the display effect of the target image may be switched to the default display effect, as shown in fig. 4.
The following describes the above method with reference to specific examples:
example one: when the user holds the edge of the electronic device with the left hand, the video data is played in a full screen mode through clicking of the right hand, and the video display is centered (as shown in fig. 2). When it is detected that the left hand holds the electronic device, the screen is blocked in the hand area (for example, the blocked part occupies 1/10 of the screen), and the staying time exceeds a preset time threshold (for example, 3 seconds or more), the adaptive condition is automatically activated, the video is adaptive to the right, and the right side of the video is tightly attached to the edge of the screen, as shown in fig. 8, so that the influence of the blocking and black edge of the video on the video viewing effect is reduced.
Example two: when the user holds the edge of the electronic equipment by the right hand and clicks the full screen to play the video by the left hand, the video display is centered (as shown in FIG. 2). When it is detected that the right hand holds the electronic device, the hand area blocks the screen (for example, the blocked part occupies 1/10 of the screen), and the dwell time exceeds a preset time threshold (for example, 3 seconds or more), the adaptive condition is automatically activated, the video is adaptive to the left, and the left side of the video is tightly attached to the edge of the screen, as shown in fig. 9, so that the influence of the blocking and black edge of the video on the video viewing effect is reduced.
Further, according to the above embodiment, the method may further include: receiving a user operation on a screen occlusion area (a left-hand occlusion area or a right-hand occlusion area), and executing corresponding functions in response to the user operation, such as: clicking a screen shielding area by a finger, and adjusting the volume (the volume is increased when two clicks are continuously performed, and the volume is decreased when three clicks are continuously performed); and the finger slides up and down in the shielded area of the screen to control the brightness of the screen.
Of course, besides this, the function keys can be adapted to control, such as: select a sharpness button, select a rate play button, etc.
As shown in fig. 12, an embodiment of the present invention further provides an image display method applied to an electronic device, where the method includes:
step 121: and acquiring the holding state of the electronic equipment.
Wherein the holding state comprises a first state in which the electronic device is held and a second state in which the electronic device is not held.
Optionally, the electronic device may be a mobile terminal (e.g., a mobile phone, a tablet computer), and the like.
Optionally, the first state of the electronic device includes a one-hand holding state and a two-hand holding state; the single-hand holding state also comprises a left-hand holding state and a right-hand holding state.
Specifically, the first state and the second state of the electronic device may be detected and determined by a sensor disposed in the electronic device, for example, a sensor for detecting the first state and the second holding state may be disposed in the electronic device, or a single-hand holding state may be detected by a gravity sensor or the like, or the first state and the second state of the electronic device may be determined by a touched state of the screen.
Step 122: and determining the target display area according to the holding state.
Optionally, the step 122 may specifically include:
when the electronic equipment is in the first state, a held area on a display area of the electronic equipment is determined, and an area except for the held area in the display area is determined to be the target display area.
For example: when the electronic equipment is in a two-hand holding state, determining that a region touched by two hands on a display region (display screen) of the electronic equipment is a held region, and taking a region except the held region on the display region of the electronic equipment as the target display region; when the electronic equipment is in a one-hand holding state, determining an area contacted by one hand on a display area (display screen) of the electronic equipment as a held area, and taking an area except the held area on the display area of the electronic equipment as the target display area.
And under the condition that the electronic equipment is in the second state, determining all display areas of the electronic equipment as the target display areas so as to ensure that the target image can be displayed in the display area with the largest range, thereby being beneficial to ensuring the display effect. Of course, when the electronic device is in the second state, a part of the display area on the electronic device may be determined as the target display area according to the actual display requirement, which is not limited in the present invention.
Step 123: when the resolution of the target image is different from the resolution of the target display area of the electronic equipment, the image resolution of the first area of the target image is adjusted, and the image resolution of the second area of the target image is kept unchanged.
Wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
Step 124: and displaying the target image based on the adjusted resolution.
Specifically, the specific implementation of step 123 and step 124 can be referred to the above embodiments, and will not be described herein again.
In the scheme, the target display area on the electronic equipment is determined by combining the holding state of the electronic equipment, so that the influence on the display effect of an image picture due to the fact that the display area of the electronic equipment is blocked by hand holding is avoided; and in the case that the resolution of the target image is different from the resolution of the target display area of the electronic device, adjusting the image resolution of a first area of the target image and keeping the image resolution of a second area except the first area in the target image unchanged; therefore, the target image is displayed based on the adjusted resolution, the image deformation degree caused by the integral stretching of the image picture can be reduced when the target image is matched with the target display area to be displayed (for example, the target display area is completely filled by the picture area of the target image), the image content loss caused by the image cutting method can be avoided, and the display effect when the target image is matched with the target display area to be displayed is improved.
Further, in a case where the electronic device is in the first state, the method further includes: receiving a first input to the held area; in response to the first input, performing a respective control operation on the target image.
For example: clicking a screen shielding area by a finger, and adjusting the volume (the volume is increased when two clicks are continuously performed, and the volume is decreased when three clicks are continuously performed); and the finger slides up and down in the shielded area of the screen to control the brightness of the screen. Of course, besides this, the function keys can be adapted to control, such as: select a sharpness button, select a rate play button, etc.
As shown in fig. 13, an embodiment of the present invention further provides an electronic device 1300, including:
an adjusting module 1310, configured to, if a resolution of a target image is different from a resolution of a target display area of the electronic device, adjust an image resolution of a first area of the target image and keep an image resolution of a second area of the target image unchanged;
a display module 1320, configured to display the target image based on the adjusted resolution;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
Optionally, the adjusting module 1310 includes:
the adjusting submodule is used for adjusting the image resolution of the first sub-area and the third sub-area of the target image and keeping the image resolution of the second sub-area of the target image unchanged;
wherein the first sub-region is one of the first regions, the third sub-region is one of the first regions other than the first sub-region, and the second sub-region is one of the second regions; the second sub-region is located between the first sub-region and the third sub-region.
Optionally, the electronic device 1300 further includes:
and the dividing module is used for dividing the target image into at least two areas in the length direction or the width direction according to the resolution of the target image and the resolution of the target display area.
Optionally, the adjusting module 1310 includes:
a first determination unit configured to determine a screen baseline of the target image;
a second determining unit, configured to determine the first area according to the picture baseline;
and the adjusting unit is used for adjusting the image resolution of the first area according to the resolution of the target display area.
Optionally, the adjusting unit includes:
the determining subunit is configured to determine, according to the resolution of the target display area and the distance from the first area to the picture base line, a resolution adjustment value corresponding to the first area;
and the adjusting subunit is used for adjusting the image resolution of the first area according to the resolution adjusting value.
Optionally, the electronic device 1310 further includes:
the acquisition module is used for acquiring the holding state of the electronic equipment; wherein the holding state comprises a first state in which the electronic equipment is held and a second state in which the electronic equipment is not held;
and the determining module is used for determining the target display area according to the holding state.
Optionally, the determining module includes:
the first determining sub-module is used for determining a held area on a display area of the electronic equipment and determining an area except for the held area in the display area as the target display area under the condition that the electronic equipment is in the first state;
and the second determining submodule is used for determining that all display areas of the electronic equipment are the target display area under the condition that the electronic equipment is in the second state.
Optionally, the electronic device 1310 further includes:
the receiving module is used for receiving a first input on the held area under the condition that the electronic equipment is in the first state;
and the response module is used for responding to the first input and executing corresponding control operation on the target image.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to 12, and is not described herein again to avoid repetition.
In the electronic device 1300 in the above solution, when the resolution of the target image is different from the resolution of the target display area of the electronic device, the image resolution of a first area of the target image is adjusted, and the image resolution of a second area of the target image except the first area is kept unchanged; therefore, the target image is displayed based on the adjusted resolution, the image deformation degree caused by the integral stretching of the image picture can be reduced when the target image is matched with the target display area to be displayed (for example, the target display area is completely filled by the picture area of the target image), the image content loss caused by the image cutting method can be avoided, and the display effect when the target image is matched with the target display area to be displayed is improved.
Fig. 14 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 1400 includes, but is not limited to: radio frequency unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, and power supply 1411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 14 does not constitute a limitation of the electronic device, and that the electronic device 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 electronic device 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 1410 is configured to, in a case that a resolution of a target image is different from a resolution of a target display area of the electronic device, adjust an image resolution of a first area of the target image and keep an image resolution of a second area of the target image unchanged; wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
A display unit 1406 configured to display the target image based on the adjusted resolution.
In the above solution, when the resolution of the target image is different from the resolution of the target display area of the electronic device, the electronic device 1400 adjusts the image resolution of a first area of the target image and keeps the image resolution of a second area of the target image except the first area unchanged; therefore, the target image is displayed based on the adjusted resolution, the image deformation degree caused by the integral stretching of the image picture can be reduced when the target image is matched with the target display area to be displayed (for example, the target display area is completely filled by the picture area of the target image), the image content loss caused by the image cutting method can be avoided, and the display effect when the target image is matched with the target display area to be displayed is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1401 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 the processor 1410; in addition, the uplink data is transmitted to the base station. In general, radio unit 1401 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. The radio unit 1401 may also communicate with a network and other devices via a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 1402, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1403 can convert audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into an audio signal and output as sound. Also, the audio output unit 1403 may also provide audio output related to a specific function performed by the electronic device 1400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1404 is for receiving an audio or video signal. The input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, the Graphics processor 14041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1406. The image frames processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or transmitted via the radio unit 1401 or the network module 1402. The microphone 14042 may receive sound and may be capable of processing 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 1401 in case of a phone call mode.
The electronic device 1400 also includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 14061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 14061 and/or the backlight when the electronic device 1400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1405 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1406 is used to display information input by the user or information provided to the user. The Display unit 1406 may include a Display panel 14061, and the Display panel 14061 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 1407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 14071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 14071 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 1410, receives a command from the processor 1410, and executes the command. In addition, the touch panel 14071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 14071, the user input unit 1407 may include other input devices 14072. In particular, the other input devices 14072 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.
Further, the touch panel 14071 may be overlaid on the display panel 14061, and when the touch panel 14071 detects a touch operation on or near the touch panel 14071, the touch operation is transmitted to the processor 1410 to determine the type of the touch event, and then the processor 1410 provides a corresponding visual output on the display panel 14061 according to the type of the touch event. Although in fig. 14, the touch panel 14071 and the display panel 14061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 1408 is an interface for connecting an external device to the electronic apparatus 1400. 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 1408 may 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 within the electronic apparatus 1400 or may be used to transmit data between the electronic apparatus 1400 and the external device.
The memory 1409 may be used to store software programs as well as various data. The memory 1409 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 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. In addition, the memory 1409 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.
The processor 1410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1409 and calling data stored in the memory 1409, thereby performing overall monitoring of the electronic device. Processor 1410 may include one or more processing units; preferably, the processor 1410 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 1410.
The electronic device 1400 may further include a power source 1411 (e.g., a battery) for supplying power to various components, and preferably, the power source 1411 may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 1400 includes some functional modules that are not shown, and are not described herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 1410, a memory 1409, and a computer program that is stored in the memory 1409 and can be run on the processor 1410, and when the computer program is executed by the processor 1410, the processes of the above-mentioned embodiment of the image display method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
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 computer program implements each process of the above-mentioned embodiment of the image display method, 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 (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 (18)
1. An image display method applied to an electronic device, the method comprising:
when the resolution of a target image is different from the resolution of a target display area of the electronic equipment, adjusting the image resolution of a first area of the target image and keeping the image resolution of a second area of the target image unchanged;
displaying the target image based on the adjusted resolution;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
2. The image display method according to claim 1, wherein the first region is at least two of the at least two regions; the adjusting the image resolution of the first region of the target image and keeping the image resolution of the second region of the target image unchanged includes:
adjusting the image resolution of the first sub-area and the third sub-area of the target image, and keeping the image resolution of the second sub-area of the target image unchanged;
wherein the first sub-region is one of the first regions, the third sub-region is one of the first regions other than the first sub-region, and the second sub-region is one of the second regions; the second sub-region is located between the first sub-region and the third sub-region.
3. The image display method according to claim 1 or 2, wherein before the adjusting the image resolution of the first region of the target image and keeping the image resolution of the second region of the target image unchanged, the method further comprises:
and dividing the target image into at least two areas in the length direction or the width direction according to the resolution of the target image and the resolution of the target display area.
4. The image display method according to claim 1 or 2, wherein the adjusting of the image resolution of the first region of the target image comprises:
determining a picture baseline of the target image;
determining the first area according to the picture base line;
and adjusting the image resolution of the first area according to the resolution of the target display area.
5. The image display method according to claim 4, wherein the adjusting the image resolution of the first region according to the resolution of the target display region comprises:
determining a resolution adjustment value corresponding to the first area according to the resolution of the display area and the distance from the first area to the picture base line;
and adjusting the image resolution of the first area according to the resolution adjustment value.
6. The image display method according to claim 1 or 2, wherein in a case where a resolution of a target image is different from a resolution of a target display area of the electronic device, before adjusting an image resolution of a first area of the target image and keeping an image resolution of a second area of the target image unchanged, the method comprises:
acquiring the holding state of the electronic equipment; wherein the holding state comprises a first state in which the electronic equipment is held and a second state in which the electronic equipment is not held;
and determining the target display area according to the holding state.
7. The image display method according to claim 6, wherein the determining the target display area according to the holding state includes:
when the electronic equipment is in the first state, determining a held area on a display area of the electronic equipment, and determining an area except the held area in the display area as the target display area;
and under the condition that the electronic equipment is in the second state, determining all display areas of the electronic equipment as the target display area.
8. The image display method according to claim 7, wherein in a case where the electronic apparatus is in the first state, the method further comprises:
receiving a first input to the held area;
in response to the first input, performing a respective control operation on the target image.
9. An electronic device, comprising:
the adjusting module is used for adjusting the image resolution of a first area of a target image and keeping the image resolution of a second area of the target image unchanged under the condition that the resolution of the target image is different from the resolution of a target display area of the electronic equipment;
a display module for displaying the target image based on the adjusted resolution;
wherein the first region is: at least one of the at least two regions divided along a length direction or a width direction of the target image; the second area is: a region of the at least two regions other than the first region.
10. The electronic device of claim 9, wherein the adjustment module comprises:
the adjusting submodule is used for adjusting the image resolution of the first sub-area and the third sub-area of the target image and keeping the image resolution of the second sub-area of the target image unchanged;
wherein the first sub-region is one of the first regions, the third sub-region is one of the first regions other than the first sub-region, and the second sub-region is one of the second regions; the second sub-region is located between the first sub-region and the third sub-region.
11. The electronic device of claim 9 or 10, further comprising:
and the dividing module is used for dividing the target image into at least two areas in the length direction or the width direction according to the resolution of the target image and the resolution of the target display area.
12. The electronic device of claim 9 or 10, wherein the adjustment module comprises: a first determination unit configured to determine a screen baseline of the target image;
a second determining unit, configured to determine the first area according to the picture baseline;
and the adjusting unit is used for adjusting the image resolution of the first area according to the resolution of the target display area.
13. The electronic device according to claim 12, wherein the adjusting unit includes:
the determining subunit is configured to determine, according to the resolution of the target display area and the distance from the first area to the picture base line, a resolution adjustment value corresponding to the first area;
and the adjusting subunit is used for adjusting the image resolution of the first area according to the resolution adjusting value.
14. The electronic device of claim 9 or 10, further comprising:
the acquisition module is used for acquiring the holding state of the electronic equipment; wherein the holding state comprises a first state in which the electronic equipment is held and a second state in which the electronic equipment is not held;
and the determining module is used for determining the target display area according to the holding state.
15. The electronic device of claim 14, wherein the determining module comprises:
the first determining sub-module is used for determining a held area on a display area of the electronic equipment and determining an area except for the held area in the display area as the target display area under the condition that the electronic equipment is in the first state;
and the second determining submodule is used for determining that all display areas of the electronic equipment are the target display area under the condition that the electronic equipment is in the second state.
16. The electronic device of claim 15, further comprising:
the receiving module is used for receiving a first input on the held area under the condition that the electronic equipment is in the first state;
and the response module is used for responding to the first input and executing corresponding control operation on the target image.
17. An electronic device, comprising 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 image display method according to any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the image display method according to any one of claims 1 to 8.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911171276.5A CN111223047B (en) | 2019-11-26 | 2019-11-26 | Image display method and electronic equipment |
PCT/CN2020/131083 WO2021104247A1 (en) | 2019-11-26 | 2020-11-24 | Image display method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911171276.5A CN111223047B (en) | 2019-11-26 | 2019-11-26 | Image display method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111223047A true CN111223047A (en) | 2020-06-02 |
CN111223047B CN111223047B (en) | 2022-01-25 |
Family
ID=70827684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911171276.5A Active CN111223047B (en) | 2019-11-26 | 2019-11-26 | Image display method and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111223047B (en) |
WO (1) | WO2021104247A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181548A (en) * | 2020-08-25 | 2021-01-05 | 北京中联合超高清协同技术中心有限公司 | Display and image display method |
CN112669211A (en) * | 2020-12-29 | 2021-04-16 | 三星电子(中国)研发中心 | Image repositioning method and device |
WO2021104247A1 (en) * | 2019-11-26 | 2021-06-03 | 维沃移动通信有限公司 | Image display method and electronic device |
CN113244613A (en) * | 2021-06-01 | 2021-08-13 | 网易(杭州)网络有限公司 | Method, device, equipment and medium for adjusting virtual tool display in game picture |
CN113296664A (en) * | 2021-05-18 | 2021-08-24 | Oppo广东移动通信有限公司 | Screen resolution adjusting method and device, terminal equipment and storage medium |
CN113326016A (en) * | 2021-08-04 | 2021-08-31 | 卡莱特云科技股份有限公司 | Method and device for improving contrast of LED display screen and computer equipment |
CN113760211A (en) * | 2021-08-31 | 2021-12-07 | 联想(北京)有限公司 | Control method and control device |
CN114494000A (en) * | 2022-01-27 | 2022-05-13 | 广州繁星互娱信息科技有限公司 | Image resolution ratio adjusting method and device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105139792A (en) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | Display method and display device |
US20170013231A1 (en) * | 2015-07-08 | 2017-01-12 | Samsung Electronics Co., Ltd. | Display apparatus, wireless communication apparatus and control method thereof |
CN107153519A (en) * | 2017-04-28 | 2017-09-12 | 北京七鑫易维信息技术有限公司 | Image transfer method, method for displaying image and image processing apparatus |
CN107277419A (en) * | 2017-07-28 | 2017-10-20 | 京东方科技集团股份有限公司 | A kind of display device and its display methods |
CN107844231A (en) * | 2017-10-31 | 2018-03-27 | 努比亚技术有限公司 | A kind of interface display method, mobile terminal and computer-readable recording medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395876A (en) * | 2017-07-01 | 2017-11-24 | 珠海格力电器股份有限公司 | Self-adaptive adjusting method and device for screen display content and electronic equipment |
CN109739460B (en) * | 2019-01-04 | 2022-09-09 | 京东方科技集团股份有限公司 | VR display method and equipment, and computer readable storage medium |
CN111223047B (en) * | 2019-11-26 | 2022-01-25 | 维沃移动通信有限公司 | Image display method and electronic equipment |
-
2019
- 2019-11-26 CN CN201911171276.5A patent/CN111223047B/en active Active
-
2020
- 2020-11-24 WO PCT/CN2020/131083 patent/WO2021104247A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170013231A1 (en) * | 2015-07-08 | 2017-01-12 | Samsung Electronics Co., Ltd. | Display apparatus, wireless communication apparatus and control method thereof |
CN105139792A (en) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | Display method and display device |
CN107153519A (en) * | 2017-04-28 | 2017-09-12 | 北京七鑫易维信息技术有限公司 | Image transfer method, method for displaying image and image processing apparatus |
CN107277419A (en) * | 2017-07-28 | 2017-10-20 | 京东方科技集团股份有限公司 | A kind of display device and its display methods |
CN107844231A (en) * | 2017-10-31 | 2018-03-27 | 努比亚技术有限公司 | A kind of interface display method, mobile terminal and computer-readable recording medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021104247A1 (en) * | 2019-11-26 | 2021-06-03 | 维沃移动通信有限公司 | Image display method and electronic device |
CN112181548A (en) * | 2020-08-25 | 2021-01-05 | 北京中联合超高清协同技术中心有限公司 | Display and image display method |
CN112181548B (en) * | 2020-08-25 | 2024-04-30 | 北京中联合超高清协同技术中心有限公司 | Display and image display method |
CN112669211A (en) * | 2020-12-29 | 2021-04-16 | 三星电子(中国)研发中心 | Image repositioning method and device |
CN113296664A (en) * | 2021-05-18 | 2021-08-24 | Oppo广东移动通信有限公司 | Screen resolution adjusting method and device, terminal equipment and storage medium |
CN113244613A (en) * | 2021-06-01 | 2021-08-13 | 网易(杭州)网络有限公司 | Method, device, equipment and medium for adjusting virtual tool display in game picture |
CN113244613B (en) * | 2021-06-01 | 2024-02-23 | 网易(杭州)网络有限公司 | Method, device, equipment and medium for adjusting virtual tool display in game picture |
CN113326016A (en) * | 2021-08-04 | 2021-08-31 | 卡莱特云科技股份有限公司 | Method and device for improving contrast of LED display screen and computer equipment |
CN113760211A (en) * | 2021-08-31 | 2021-12-07 | 联想(北京)有限公司 | Control method and control device |
CN114494000A (en) * | 2022-01-27 | 2022-05-13 | 广州繁星互娱信息科技有限公司 | Image resolution ratio adjusting method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2021104247A1 (en) | 2021-06-03 |
CN111223047B (en) | 2022-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111223047B (en) | Image display method and electronic equipment | |
CN108513070B (en) | Image processing method, mobile terminal and computer readable storage medium | |
US11115591B2 (en) | Photographing method and mobile terminal | |
CN108495029B (en) | Photographing method and mobile terminal | |
CN107592466B (en) | Photographing method and mobile terminal | |
CN108989672B (en) | Shooting method and mobile terminal | |
CN110505400B (en) | Preview image display adjustment method and terminal | |
CN110896451B (en) | Preview picture display method, electronic device and computer readable storage medium | |
CN110933306A (en) | Method for sharing shooting parameters and electronic equipment | |
CN110198413B (en) | Video shooting method, video shooting device and electronic equipment | |
CN111010512A (en) | Display control method and electronic equipment | |
CN107749046B (en) | Image processing method and mobile terminal | |
CN111562896A (en) | Screen projection method and electronic equipment | |
CN107741814B (en) | Display control method and mobile terminal | |
CN111182211B (en) | Shooting method, image processing method and electronic equipment | |
CN109413333B (en) | Display control method and terminal | |
CN110868550A (en) | Photographing method and terminal device electronic device | |
CN111031178A (en) | Video stream clipping method and electronic equipment | |
CN108804628B (en) | Picture display method and terminal | |
CN108174110B (en) | Photographing method and flexible screen terminal | |
CN110650367A (en) | Video processing method, electronic device, and medium | |
CN111176526B (en) | Picture display method and electronic equipment | |
CN110908517B (en) | Image editing method, image editing device, electronic equipment and medium | |
CN110868546B (en) | Shooting method and electronic equipment | |
CN110536005B (en) | Object display adjustment method and 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 |