CN110618803B - Image display method and device - Google Patents

Image display method and device Download PDF

Info

Publication number
CN110618803B
CN110618803B CN201910854517.XA CN201910854517A CN110618803B CN 110618803 B CN110618803 B CN 110618803B CN 201910854517 A CN201910854517 A CN 201910854517A CN 110618803 B CN110618803 B CN 110618803B
Authority
CN
China
Prior art keywords
image
resolution
display
resolution ratio
ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910854517.XA
Other languages
Chinese (zh)
Other versions
CN110618803A (en
Inventor
王欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910854517.XA priority Critical patent/CN110618803B/en
Publication of CN110618803A publication Critical patent/CN110618803A/en
Application granted granted Critical
Publication of CN110618803B publication Critical patent/CN110618803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content

Landscapes

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

Abstract

The application provides an image display method and device, wherein the method comprises the following steps: acquiring the image resolution of the image and the display resolution of the display area, and judging whether the image resolution is matched with the display resolution; if the image resolution and the display resolution are not matched, a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution are obtained; acquiring preset image parameters of an image; and determining a display strategy of the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and controlling the image to be displayed on a display area according to the display strategy. Therefore, the problem of display distortion caused by inconsistent display resolutions of the image and the display area is avoided, and the display effect of the image is optimized.

Description

Image display method and device
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an image display method and apparatus.
Background
The adaptation of the display of images is a common technical problem at present, for example, in the process of designing and developing games, the adaptation is an inexhaustible topic, and the adaptation contains a lot of parameters and rules, so that the images in the games can be perfectly displayed on different devices (with different resolutions), and the phenomena of force image distortion and stretching are required.
In the related art, an image has an image resolution when generating a design, and a display device has a display resolution, and when the image resolution is inconsistent with the display resolution, full screen adaptation is performed on the image, that is, the image resolution is adjusted to the display resolution, so that, as shown in fig. 1, the image may be stretched to generate distortion.
Disclosure of Invention
The application provides an image display method and device, which are used for solving the technical problem of image display distortion caused by mismatching of image resolution and display area resolution in the related technology.
An embodiment of an aspect of the present application provides an image display method, including the following steps: acquiring image resolution of an image and display resolution of a display area, and judging whether the image resolution is matched with the display resolution; if the image resolution is not matched with the display resolution, acquiring a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution; acquiring preset image parameters of the image; and determining a display strategy of the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and controlling the image to be displayed on the display area according to the display strategy.
According to the image display method, the image resolution of the image and the display resolution of the display area are obtained, whether the image resolution is matched with the display resolution or not is judged, if the image resolution is not matched with the display resolution, the transverse resolution ratio and the longitudinal resolution ratio of the image resolution and the display resolution are obtained, further, the preset image parameters of the image are obtained, further, the display strategy of the image is determined according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and the image is controlled to be displayed on the display area according to the display strategy. Therefore, the problem of display distortion caused by inconsistent display resolutions of the image and the display area is avoided, and the display effect of the image is optimized.
In addition, the image display method of the embodiment of the application further includes the following additional technical features:
in one possible implementation manner of the embodiment of the present application, the acquiring preset image parameters of the image includes: identifying image elements contained in the image; and calculating the image complexity of the image according to the image elements.
In one possible implementation manner of the embodiment of the present application, the determining, according to the preset image parameter, the lateral resolution ratio, and the longitudinal resolution ratio, a display policy of the image, and controlling, according to the display policy, the image to be displayed on the display area includes: when the image complexity is larger than a preset threshold, determining the maximum value and the minimum value in the transverse resolution ratio and the longitudinal resolution ratio; judging whether image elements contained in an edge area of the image meet preset filtering conditions or not; if the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value; and displaying the adjusted image on the display area.
In one possible implementation manner of the embodiment of the present application, after the determining whether the image element included in the edge area of the image meets the preset filtering condition, the method further includes: if the filtering condition is not met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the minimum value; acquiring a filling image; and displaying the adjusted image on the display area, and displaying the filling image in an unfilled area between the display area and the adjusted image.
In one possible implementation manner of the embodiment of the present application, the acquiring a filling image includes: determining a filling image corresponding to the image according to a preset corresponding relation; or amplifying the image according to the maximum value, and obtaining the filling image after blurring the amplified image.
In one possible implementation manner of the embodiment of the present application, the determining, according to the preset image parameter, the lateral resolution ratio, and the longitudinal resolution ratio, a display policy of the image, and controlling, according to the display policy, the image to be displayed on the display area includes: when the image complexity is smaller than or equal to the preset threshold value, determining the maximum value of the transverse resolution ratio and the longitudinal resolution ratio; adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value; and displaying the adjusted image on the display area.
An embodiment of an aspect of the present application proposes an image display apparatus including: the first acquisition module is used for acquiring the image resolution of the image and the display resolution of the display area; the judging module is used for judging whether the image resolution is matched with the display resolution or not; a second obtaining module, configured to obtain a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution when the image resolution and the display resolution are not matched; the third acquisition module is used for acquiring preset image parameters of the image; and the display module is used for determining a display strategy of the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio and controlling the image to be displayed on the display area according to the display strategy.
According to the image display device, the image resolution of the image and the display resolution of the display area are obtained, whether the image resolution is matched with the display resolution or not is judged, if the image resolution is not matched with the display resolution, the transverse resolution ratio and the longitudinal resolution ratio of the image resolution and the display resolution are obtained, further, the preset image parameters of the image are obtained, further, the display strategy of the image is determined according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and the image is controlled to be displayed on the display area according to the display strategy. Therefore, the problem of display distortion caused by inconsistent display resolutions of the image and the display area is avoided, and the display effect of the image is optimized.
In addition, the image display device of the embodiment of the application further includes the following additional technical features:
in one possible implementation manner of the embodiment of the present application, the third obtaining module includes: an identification unit, configured to identify an image element included in the image; and the calculating unit is used for calculating the image complexity of the image according to the image elements.
In one possible implementation manner of the embodiment of the present application, the display module is specifically configured to: when the image complexity is larger than a preset threshold value, determining the maximum value and the minimum value in the transverse resolution ratio and the longitudinal resolution ratio; judging whether image elements contained in an edge area of the image meet preset filtering conditions or not; if the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value; and displaying the adjusted image on the display area.
In one possible implementation manner of the embodiment of the present application, the display module is specifically configured to: when the filtering condition is not met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the minimum value; acquiring a filling image; and displaying the adjusted image on the display area, and displaying the filling image in an unfilled area between the display area and the adjusted image.
In one possible implementation manner of the embodiment of the present application, the display module is specifically configured to: when the image complexity is smaller than or equal to the preset threshold value, determining the maximum value of the transverse resolution ratio and the longitudinal resolution ratio; adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value; and displaying the adjusted image on the display area.
Another embodiment of the present application provides an electronic device, including a processor and a memory; wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the image display method as described in the above embodiment.
Another aspect of the present application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the image display method as described in the above embodiments.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic view of an image display scene in the prior art according to an embodiment of the present application;
fig. 2 is a flowchart of an image display method according to an embodiment of the present application;
FIG. 3-1 is a schematic illustration of a display area according to one embodiment of the present application;
FIG. 3-2 is a schematic illustration of a display area according to another embodiment of the present application;
FIG. 4-1 is a schematic view of a scene illustrating an image display method according to an embodiment of the present application;
fig. 4-2 are schematic views of a scene illustrating an image display method according to another embodiment of the present application;
FIGS. 4-3 are schematic diagrams of a scenario illustrating an image display method according to yet another embodiment of the present application;
fig. 5 is a schematic structural view of an image display device according to an embodiment of the present application;
fig. 6 is a schematic structural view of an image display device according to another embodiment of the present application; and
fig. 7 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
An image display method and apparatus according to embodiments of the present application are described below with reference to the accompanying drawings. The image display method of the embodiment of the application is applied to any image containing a background image.
In order to solve the technical problem of image distortion caused by adjusting the image resolution to the display resolution in the background art, the application provides a personalized adaptation strategy for an image, ensures that the image is not distorted and achieves the optimal display effect.
Specifically, fig. 2 is a flowchart of an image display method according to an embodiment of the present application. As shown in fig. 2, the method includes:
step 101, acquiring the image resolution of the image and the display resolution of the display area, and judging whether the image resolution and the display resolution are matched.
It should be noted that the resolution is generally described by the parameter "aspect ratio", where the aspect ratio is understood to be the ratio of the resolution of the long side of the image or display area divided by the resolution of the short side, and the aspect ratio of many mobile phones is currently 16:9, the resolution is 750 x 1334, 1080 x 1920,1280 x 720, and the like. When the aspect ratios are uniform, the image can fit the display screen display even if the resolutions are different. As shown in fig. 3-1, the display area in this embodiment may be the entire display screen, or may be a partial area in the display screen for displaying the image as shown in fig. 3-2, which is not limited herein.
Specifically, the image resolution of the image and the display resolution of the display area are acquired, and whether the image resolution and the display resolution are the same is judged to determine whether the two resolutions are matched. Of course, it is also possible to acquire an aspect ratio corresponding to the image resolution and an aspect ratio corresponding to the display resolution, and determine whether the resolutions match by determining whether the aspect ratios of the two match.
And 102, if the image resolution and the display resolution are not matched, acquiring a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution.
Specifically, if the image resolution and the display resolution are not matched, for example, the aspect ratio of the two is inconsistent, or the aspect ratio difference is larger, the image and the display area are considered to be not suitable, so that a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution are obtained, wherein the transverse resolution ratio refers to a ratio of a length value of the image and the display area in the transverse direction, the longitudinal resolution ratio refers to a ratio of a width of the image and the display area in the longitudinal direction, the transverse resolution ratio can be obtained by calculating a ratio of the transverse resolution of the image and the transverse resolution of the display area, and the longitudinal resolution ratio can be obtained by calculating a ratio of the longitudinal resolution of the image and the longitudinal resolution of the display area.
For example, when the image resolution is 750 x 1334 and the display resolution is 1080 x 2240, the ratio of the horizontal resolution is 1080/750 equal to about 1.44 and the ratio of the vertical resolution is 2240/1334 equal to about 1.679.
In one embodiment of the present application, if the image resolution and the display resolution match, the image is displayed directly in the display area.
Step 103, obtaining preset image parameters of the image.
Specifically, a preset image parameter of the image is acquired, so that the image is displayed in a matching way based on the preset image parameter as a reference.
Under different application scenarios, the preset image parameters are different, and examples are as follows:
example one:
in this example, the image element included in the image is identified, where the image element includes entities such as a subject of the image and a person of the image, and in the actual implementation process, the image element may be identified based on the image feature, and further, the image complexity of the image is calculated according to the image element, and the image complexity is used as a preset image parameter.
In the present embodiment, the image complexity may be determined based on one or more of the number of image elements, the color richness of the image elements, the distribution density of the image elements, and the like.
Example two:
in this example, the content type contained in the image, such as a person class, a landscape class, or a scene class, is identified as a preset image parameter.
Example three:
in this example, the content contained in the image is identified, and the associated information corresponding to the content is acquired, and the associated information may be information related to the content contained in the image or recommended information associated with the content. For example, when the content included in the image is a star, the corresponding preset image parameter may be surrounding product information of the star.
And 104, determining a display strategy of the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and controlling the image to be displayed on a display area according to the display strategy.
Specifically, a display strategy of the image is determined according to preset image parameters, a transverse resolution ratio and a longitudinal resolution ratio, the display strategy integrates the transverse resolution ratio and the longitudinal resolution ratio, and the preset image parameters are considered, so that the display effect of controlling the image to be displayed on a display area according to the display strategy is ensured.
It should be noted that, in different application scenarios, the display strategies of the images are determined according to preset image parameters, a transverse resolution ratio and a longitudinal resolution ratio, and the modes of controlling the images to be displayed on the display areas according to the display strategies are different, which are illustrated as follows:
example one:
when the preset image parameter includes an image complexity, determining a maximum value and a minimum value of the transverse resolution ratio and the longitudinal resolution ratio when the image complexity is greater than a preset threshold, that is, distinguishing a relatively larger value and a smaller value of the transverse resolution ratio and the longitudinal resolution ratio. For example, when the ratio of the horizontal resolution is 1.44 and the vertical resolution is 1.679, 1.679 is the maximum value and 1.44 is the minimum value.
Further, judging whether the image elements contained in the edge area of the image meet preset filtering conditions, for example, whether the image elements at the edge of the image are important and can not be filtered, and if the image elements are not important, considering that the preset filtering conditions are met; for example, if the definition of the image element at the image edge is lower, if the definition is lower, the preset filtering condition is considered to be satisfied; for example, if the number of image elements at the image edge is smaller, if the number of image elements is smaller, the preset filtering condition is considered to be satisfied; for example, if the image elements included in the edge region of the image are the same elements as those of the non-image edge region, the preset filtering condition is considered to be satisfied.
It should be understood that the edge area of the image in this example can be understood as an area that exceeds the display area when the image is enlarged according to the maximum value.
If the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value, displaying the adjusted image on the display area, and continuing taking the above embodiment as an example, for example, the image elements at the edge of the image are not important and can be filtered; for example, the image element definition of the image edge is low; for example, the number of image elements at the image edge is small; for another example, the image elements included in the edge region of the image are the same as those of the non-image edge region.
For example, when the maximum value is 1.679 and the image resolution is 750×1334, 750×1.679=1259 may be used as a basis for adjusting the lateral dimension of the image, and 1334×1.679=2240 may be used as a basis for adjusting the longitudinal dimension.
In this example, if the preset filtering condition is not satisfied, the landscape display resolution and the portrait display resolution of the image are adjusted according to the minimum value, and when the minimum value is 1.44, 750×1.44=1080 may be used as a basis for adjusting the landscape size of the image, and 1334×1.44=1920 may be used as a basis for adjusting the portrait size.
At this time, since the vertical height corresponding to the resolution of the display area is 2240 and the adapted height is 1920, there is a 320-pixel defect, as shown in fig. 4-1, the effect on the procedure is that black edges appear up and down, and at this time, a filling image needs to be acquired to fill the black edge area based on the filling image. Further, the adjusted image is displayed on the display area, and the filled image is displayed in an unfilled area between the display area and the adjusted image.
As a possible implementation manner, the filling image corresponding to the image is determined according to a preset corresponding relation, that is, the filling image corresponding to the image is determined in advance according to the personalized requirement of the user, and the filling image is displayed in the black area.
As another possible implementation manner, as shown in fig. 4-2, the image is enlarged according to the maximum value, the enlarged image is subjected to blurring processing, a filling image is obtained, and the filling image is superimposed under the adjusted image for display, however, in this embodiment, the image may be subjected to blurring processing first and then the image subjected to blurring processing is enlarged according to the maximum value during display, and then the filling image is superimposed under the adjusted image for display.
In this example, when the image complexity is less than or equal to the preset threshold, it indicates that the image complexity is low, for example, it may be a solid-color image, etc., a maximum value of the lateral resolution ratio and the longitudinal resolution ratio is determined, and then the lateral display resolution and the longitudinal display resolution of the image are adjusted according to the maximum value, and the adjusted image is displayed on the display area.
Example two:
in this example, if the preset image parameter is the associated information of the image content, as shown in fig. 4-3, a light-colored solid background image is displayed in a black area, and the associated information is displayed on the background image, where the associated information may be displayed in a bullet screen form, a text frame form, or the like, and when the user clicks the corresponding associated information, the associated information may be displayed in the solid background image.
In this example, the associated information may also be displayed in a mobile form, such as continuously swimming, etc., in order to increase the interest of the display.
In one embodiment of the present application, to view the effect of the adaptation, different types of images may also be switched to perform the adaptation effect switching, so as to view the adaptation effect.
In summary, according to the image display method of the embodiment of the application, the image resolution of the image and the display resolution of the display area are obtained, whether the image resolution is matched with the display resolution is judged, if the image resolution is not matched with the display resolution, the transverse resolution ratio and the longitudinal resolution ratio of the image resolution and the display resolution are obtained, further, the preset image parameters of the image are obtained, further, the display strategy of the image is determined according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and the image is controlled to be displayed on the display area according to the display strategy. Therefore, the problem of display distortion caused by inconsistent display resolutions of the image and the display area is avoided, and the display effect of the image is optimized.
In order to achieve the above embodiments, the present application also proposes an image display apparatus. Fig. 5 is a schematic structural view of an image display device according to an embodiment of the present application, as shown in fig. 5, the image display device including: a first acquisition module 10, a judgment module 20, a second acquisition module 30, a third acquisition module 40, and a display module 50, wherein,
the first acquisition module 10 is configured to acquire an image resolution of an image and a display resolution of a display area.
A judging module 20, configured to judge whether the image resolution and the display resolution match.
The second obtaining module 30 is configured to obtain a landscape resolution ratio and a portrait resolution ratio of the image resolution and the display resolution when the image resolution and the display resolution do not match.
The third acquiring module 40 is configured to acquire preset image parameters of the image.
The display module 50 is configured to determine a display policy of the image according to the preset image parameter, the lateral resolution ratio, and the longitudinal resolution ratio, and control the image to be displayed on the display area according to the display policy.
In one embodiment of the present application, as shown in fig. 6, the third acquisition module 40 includes an identification unit 41 and a calculation unit 42 on the basis of the one shown in fig. 5, wherein,
the identifying unit 41 is used for identifying the image elements contained in the image.
A calculation unit 42 for calculating the image complexity of the image from the image elements.
In one embodiment of the present application, the display module 50 is specifically configured to: when the image complexity is larger than a preset threshold, determining the maximum value and the minimum value in the transverse resolution ratio and the longitudinal resolution ratio; judging whether image elements contained in an edge area of an image meet preset filtering conditions or not; if the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value; and displaying the adjusted image on a display area.
In one embodiment of the present application, the display module 50 is specifically configured to: when the filtering condition is not met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the minimum value; acquiring a filling image; the adjusted image is displayed on the display area while the filler image is displayed in an unfilled area between the display area and the adjusted image.
In one embodiment of the present application, the display module 50 is specifically configured to determine a maximum value of the landscape resolution ratio and the portrait resolution ratio when the complexity of the image is less than or equal to a preset threshold, adjust the landscape display resolution and the portrait display resolution of the image according to the maximum value, and display the adjusted image on the display area.
It should be noted that the foregoing explanation of the image processing method is also applicable to the image processing apparatus of the embodiment of the present application, and the implementation principle is similar and will not be repeated here.
In summary, the image display device of the embodiment of the present application obtains the image resolution of the image and the display resolution of the display area, determines whether the image resolution and the display resolution are matched, and if the image resolution and the display resolution are not matched, obtains the transverse resolution ratio and the longitudinal resolution ratio of the image resolution and the display resolution, further obtains the preset image parameters of the image, further determines the display strategy of the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and controls the image to be displayed on the display area according to the display strategy. Therefore, the problem of display distortion caused by inconsistent display resolutions of the image and the display area is avoided, and the display effect of the image is optimized.
In order to achieve the above embodiments, the embodiments of the present application further provide an electronic device, including a processor and a memory;
wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for realizing the image display method as described in the above embodiments.
Fig. 7 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application. The electronic device 12 shown in fig. 7 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 7, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In these cases, each drive may be coupled to bus 18 via one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the present application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the methods mentioned in the foregoing embodiments.
In order to achieve the above-described embodiments, the embodiments of the present application also propose a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the image display method as described in the above-described embodiments.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (11)

1. An image display method, characterized by comprising the steps of:
acquiring image resolution of an image and display resolution of a display area, and judging whether the image resolution is matched with the display resolution;
if the image resolution and the display resolution are not matched, a transverse resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution are obtained, wherein the transverse resolution ratio is a ratio of a length value of the image and the display area in the transverse direction, and the longitudinal resolution ratio is a ratio of a width of the image and the display area in the longitudinal direction;
identifying image elements contained in the image, calculating the image complexity of the image according to the image elements, and taking the image complexity as a preset image parameter of the image;
and adjusting the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio, and displaying the adjusted image on the display area.
2. The method of claim 1, wherein adjusting the image according to the preset image parameters, the lateral resolution ratio, and the longitudinal resolution ratio comprises:
when the image complexity is larger than a preset threshold, determining the maximum value and the minimum value in the transverse resolution ratio and the longitudinal resolution ratio;
judging whether image elements contained in an edge area of the image meet preset filtering conditions or not;
and if the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value.
3. The method according to claim 2, further comprising, after said determining whether the image elements included in the edge region of the image satisfy the preset filtering condition:
if the filtering condition is not met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the minimum value;
acquiring a filling image;
and displaying the adjusted image on the display area, and displaying the filling image in an unfilled area between the display area and the adjusted image.
4. The method of claim 3, wherein the acquiring the fill image comprises:
determining a filling image corresponding to the image according to a preset corresponding relation; or alternatively, the first and second heat exchangers may be,
and amplifying the image according to the maximum value, and obtaining the filling image after blurring the amplified image.
5. The method of claim 2, wherein adjusting the image according to the preset image parameters, the lateral resolution ratio, and the longitudinal resolution ratio comprises:
when the image complexity is smaller than or equal to the preset threshold value, determining the maximum value of the transverse resolution ratio and the longitudinal resolution ratio;
and adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value.
6. An image display device, comprising:
the first acquisition module is used for acquiring the image resolution of the image and the display resolution of the display area;
the judging module is used for judging whether the image resolution is matched with the display resolution or not;
a second obtaining module, configured to obtain a lateral resolution ratio and a longitudinal resolution ratio of the image resolution and the display resolution when the image resolution and the display resolution are not matched, where the lateral resolution ratio is a ratio of length values of the image and the display area in a lateral direction, and the longitudinal resolution ratio is a ratio of widths of the image and the display area in a longitudinal direction;
the third acquisition module is used for identifying image elements contained in the image, calculating the image complexity of the image according to the image elements, and taking the image complexity as a preset image parameter of the image;
and the display module is used for adjusting the image according to the preset image parameters, the transverse resolution ratio and the longitudinal resolution ratio and displaying the adjusted image on the display area.
7. The apparatus of claim 6, wherein the display module is specifically configured to:
when the image complexity is larger than a preset threshold value, determining the maximum value and the minimum value in the transverse resolution ratio and the longitudinal resolution ratio;
judging whether image elements contained in an edge area of the image meet preset filtering conditions or not;
and if the filtering condition is met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value.
8. The apparatus of claim 7, wherein the display module is specifically configured to:
when the filtering condition is not met, adjusting the horizontal display resolution and the vertical display resolution of the image according to the minimum value;
acquiring a filling image;
and displaying the adjusted image on the display area, and displaying the filling image in an unfilled area between the display area and the adjusted image.
9. The apparatus of claim 7, wherein the display module is specifically configured to:
when the image complexity is smaller than or equal to the preset threshold value, determining the maximum value of the transverse resolution ratio and the longitudinal resolution ratio;
and adjusting the horizontal display resolution and the vertical display resolution of the image according to the maximum value.
10. An electronic device comprising a processor and a memory;
wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the image display method according to any one of claims 1 to 5.
11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the image display method according to any one of claims 1 to 5.
CN201910854517.XA 2019-09-10 2019-09-10 Image display method and device Active CN110618803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910854517.XA CN110618803B (en) 2019-09-10 2019-09-10 Image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910854517.XA CN110618803B (en) 2019-09-10 2019-09-10 Image display method and device

Publications (2)

Publication Number Publication Date
CN110618803A CN110618803A (en) 2019-12-27
CN110618803B true CN110618803B (en) 2023-07-14

Family

ID=68923210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910854517.XA Active CN110618803B (en) 2019-09-10 2019-09-10 Image display method and device

Country Status (1)

Country Link
CN (1) CN110618803B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367537A (en) * 2020-11-02 2021-02-12 上海无线电设备研究所 Video acquisition-splicing-display system based on ZYNQ
CN112492233A (en) * 2020-11-27 2021-03-12 西安万像电子科技有限公司 Method and device for adapting resolution of transmitting end and receiving end of image transmission system
CN112492250B (en) * 2020-11-27 2023-07-21 西安万像电子科技有限公司 Method and device for adapting resolution of transmitting and receiving ends of image transmission system
CN112712464B (en) * 2020-12-29 2022-11-04 展讯半导体(南京)有限公司 Image processing method and device, electronic device and storage medium
CN113050999B (en) * 2021-03-31 2024-04-23 京东方科技集团股份有限公司 Image processing method and device, display control method and device, and display device
CN114356185B (en) * 2022-01-05 2024-08-13 京东方科技集团股份有限公司 Image display method and computer device
CN114363533A (en) 2022-01-10 2022-04-15 京东方科技集团股份有限公司 Display control method and device, display equipment and computer readable medium
CN118887907B (en) * 2024-08-30 2025-10-03 惠科股份有限公司 Display panel resolution conversion method, display device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI312633B (en) * 2005-06-02 2009-07-21 Ind Tech Res Inst A composite method and apparatus for scaling digital image
TWI470598B (en) * 2012-08-07 2015-01-21 Wistron Corp Method for adjusting display and computer program product thereof
CN110262741B (en) * 2013-12-31 2022-06-07 深圳迈瑞生物医疗电子股份有限公司 Medical equipment and resolution adjusting method and device of digital image of medical equipment
CN107093418B (en) * 2017-06-20 2020-12-18 南京中诚签信息科技有限公司 Screen display method, computer equipment and storage medium
CN108648259B (en) * 2018-03-27 2022-07-15 Oppo广东移动通信有限公司 Image rendering method, device, storage medium and intelligent terminal
CN108733336B (en) * 2018-05-21 2021-10-01 北京字节跳动网络技术有限公司 Page display method and device
CN108989563B (en) * 2018-07-25 2021-01-15 努比亚技术有限公司 Double-sided screen display method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110618803A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN110618803B (en) Image display method and device
CN110969580B (en) Image display method and device
CN109993713B (en) Image distortion correction method and device for vehicle head-up display system
CN111127543B (en) Image processing method, device, electronic equipment and storage medium
US7613363B2 (en) Image superresolution through edge extraction and contrast enhancement
US8787690B2 (en) Binarizing an image
CN101202928B (en) Apparatus and method to improve clarity of image
US20060291741A1 (en) Image processing apparatus, image processing method, program, and recording medium therefor
US20120076429A1 (en) Methods and systems for estimation of compression noise
US7119924B2 (en) Detection and segmentation of sweeps in color graphics images
JP2003512653A (en) Improving image display quality with adaptive sub-pixel rendering
US8538193B2 (en) Methods and systems for image enhancement and estimation of compression noise
US20170249721A1 (en) Image correction apparatus and image correction method
US20190114973A1 (en) Method, system and computer readable storage medium for driving liquid crystal displays
EP3522107A1 (en) Method and apparatus for generating hdr images with reduced clipped areas
EP2575348A2 (en) Image processing device and method for processing image
US11151693B2 (en) Image processing apparatus and image processing method for noise reduction
US10049610B2 (en) Display apparatus and method for controlling same
US20140294319A1 (en) Self-adaptive image edge correction device and method thereof
US20170206637A1 (en) Image correction apparatus and image correction method
CN110189242A (en) Image processing method and device
Shaked et al. Robust recursive envelope operators for fast Retinex
CN119479513A (en) A bright and dark line positioning method, electronic device and computer readable storage medium
CN113837987B (en) Tongue image acquisition method and device and computer equipment
US20150085327A1 (en) Method and apparatus for using an enlargement operation to reduce visually detected defects in an image

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