CN117827069A - Display processing method, device, equipment, system and storage medium - Google Patents

Display processing method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN117827069A
CN117827069A CN202410027828.XA CN202410027828A CN117827069A CN 117827069 A CN117827069 A CN 117827069A CN 202410027828 A CN202410027828 A CN 202410027828A CN 117827069 A CN117827069 A CN 117827069A
Authority
CN
China
Prior art keywords
image
displayed
scaling
scale
resolution
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.)
Pending
Application number
CN202410027828.XA
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
China Unicom Heilongjiang Industrial Internet Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
China Unicom Heilongjiang Industrial Internet 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 China United Network Communications Group Co Ltd, Unicom Digital Technology Co Ltd, China Unicom Heilongjiang Industrial Internet Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202410027828.XA priority Critical patent/CN117827069A/en
Publication of CN117827069A publication Critical patent/CN117827069A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a display processing method, a device, equipment, a system and a storage medium. Comprising the following steps: acquiring a display request; according to the display request, the resolution of the display screen and the resolution of the image to be displayed are obtained, and whether the image to be displayed is scaled or not is determined according to the resolution of the display screen and the resolution of the image to be displayed; when the image to be displayed is determined to be zoomed, a width zoom scale and a height zoom scale are obtained according to the resolution of a display screen and the resolution of the image to be displayed, and a zoom type and a zoom scale matched with the zoom type are determined according to the width zoom scale and the height zoom scale; and performing scaling processing on the image to be displayed according to the scaling ratio to acquire the image subjected to scaling processing, and performing display processing on the image subjected to scaling processing. The application solves the problem that in the prior art, the image to be displayed is deformed due to the fact that the image to be displayed is integrally stretched or compressed according to the size of the screen.

Description

Display processing method, device, equipment, system and storage medium
Technical Field
The present disclosure relates to computer technology, and in particular, to a display processing method, apparatus, device, system, and storage medium.
Background
The user-defined large screen technology is used for data visualization construction, namely, a user is helped to better view data and diagnose problems through a large screen of interactive real-time data, so that the visualization requirement of the user on the data is met. Because the speed and the real-time performance of the technology are very high, a user can know the change and trend of a certain index at the first time and make corresponding decisions and adjustments, and therefore the technology is widely applied to the fields of factories, traffic, logistics and the like.
At present, since the fixed length proportion of the image to be displayed of the large screen is predefined, when the image to be displayed is displayed in a full screen mode by adopting a self-defined large screen technology, in order to adapt to screens with different sizes, the image to be displayed is integrally stretched or compressed according to the proportional size of the screen, so that the deformation of the image to be displayed is caused, and the visual effect is affected.
Disclosure of Invention
The application provides a display processing method, a device, equipment, a system and a storage medium, which are used for solving the technical problem that the image to be displayed is deformed due to the fact that the image to be displayed is integrally stretched or compressed in order to adapt to screens with different sizes by a user-defined large screen technology.
In a first aspect, the present application provides a display processing method, including:
acquiring a display request, wherein the display request comprises identification information of an image to be displayed;
according to the display request, the resolution of a display screen and the resolution of the image to be displayed are obtained, and whether the image to be displayed is scaled or not is determined according to the resolution of the display screen and the resolution of the image to be displayed;
when the image to be displayed is determined to be zoomed, a width zoom scale and a height zoom scale are obtained according to the resolution of the display screen and the resolution of the image to be displayed, and a zoom type and a zoom scale matched with the zoom type are determined according to the width zoom scale and the height zoom scale;
and carrying out scaling processing on the image to be displayed according to the scaling ratio so as to obtain a scaled image, and carrying out display processing on the scaled image.
In one possible implementation manner, when determining to scale the image to be displayed, obtaining a width scale and a height scale according to the resolution of the display screen and the resolution of the image to be displayed, and determining a scale type and a scale type matching the scale type according to the width scale and the height scale, including:
when the image to be displayed is determined to be zoomed, obtaining width zoom scales of the display screen and the image to be displayed and height zoom scales of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed;
and determining a scaling type according to the width scaling and the height scaling, and acquiring a deformation scaling and a non-deformation scaling matched with the scaling type when determining that a deformation component and a non-deformation component exist in the image to be displayed.
In one possible implementation manner, when determining to scale the image to be displayed, obtaining a width scaling ratio of the display screen and the image to be displayed and a height scaling ratio of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed, including:
when the image to be displayed is determined to be zoomed, according to the width screenWidth of the display screen and the width w of the image to be displayed, the following formula is adopted:
scaleX=screenWidth/w
acquiring width scaling scaleX of the display screen and the image to be displayed;
according to the height of the display screen, the height h of the image to be displayed and the height screenHeight of the display screen, the following formula is adopted:
scaleY=screenHeight/h
and acquiring a height scaling scale Y of the display screen and the image to be displayed.
In one possible implementation manner, the determining a scaling type according to the width scaling and the height scaling, and when determining that a deformation component and a non-deformation component exist in the image to be displayed, obtaining a deformation scaling and a non-deformation scaling that match the scaling type includes:
if the width scaling scaleX is determined to be larger than the height scaling scaleY, determining the scaling type to be a contour scaling type, and acquiring a deformation scaling ratio which is 1:1/scaleY/scaleX and a non-deformation scaling ratio which is scaleY/scaleX to be 1 when a deformation component and a non-deformation component exist in the image to be displayed;
or,
if the width scaling scale X is determined to be smaller than or equal to the height scaling scale Y, determining that the scaling type is an equal-width scaling type, and acquiring a deformation scaling ratio which is matched with the equal-width scaling type to be 1:1 and a non-deformation scaling ratio to be 1:scaleX/scaleY when the deformation component and the non-deformation component exist in the image to be displayed.
In one possible implementation manner, the scaling processing is performed on the image to be displayed according to the scaling ratio, so as to obtain a scaled image, and the displaying processing is performed on the scaled image, which includes:
and scaling the deformed component in the image to be displayed according to the deformed scaling proportion, scaling the non-deformed component in the image to be displayed according to the non-deformed scaling proportion so as to obtain a scaled image, and displaying the scaled image.
In one possible embodiment, the method further comprises:
and when the image to be displayed is determined not to be zoomed, performing display processing on the image to be displayed.
In a second aspect, the present application provides a display processing apparatus, including:
the display module is used for displaying the image to be displayed, and the display request comprises identification information of the image to be displayed;
the processing module is used for acquiring the resolution of a display screen and the resolution of the image to be displayed according to the display request, and determining whether to scale the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed;
the processing module is further configured to obtain a width scaling ratio and a height scaling ratio according to the resolution of the display screen and the resolution of the image to be displayed, and determine a scaling type and a scaling ratio matched with the scaling type according to the width scaling ratio and the height scaling ratio when determining to scale the image to be displayed;
the processing module is further configured to perform scaling processing on the image to be displayed according to the scaling ratio, so as to obtain a scaled image, and perform display processing on the scaled image.
In a third aspect, the present application provides a server comprising a memory and a processor; wherein the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the display processing method according to any one of the first aspect according to the computer program in the memory.
In a fourth aspect, the present application provides a display processing system, including a display, a display analysis platform; the display analysis platform is used for executing the display processing method in any one of the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the display processing method of any one of the first aspects.
According to the display processing method, the device, the equipment, the system and the storage medium, the resolution of a display screen and the resolution of an image to be displayed are obtained according to the display request, and whether the image to be displayed is scaled or not is determined according to the resolution of the display screen and the resolution of the image to be displayed; when the image to be displayed is determined to be zoomed, a width zoom scale and a height zoom scale are obtained according to the resolution of a display screen and the resolution of the image to be displayed, and a zoom type and a zoom scale matched with the zoom type are determined according to the width zoom scale and the height zoom scale; and performing scaling processing on the image to be displayed according to the scaling ratio to acquire the image subjected to scaling processing, and performing display processing on the image subjected to scaling processing. Compared with the prior art, the method and the device have the advantages that the image to be displayed is directly subjected to integral stretching or compression to cause deformation of the image to be displayed, and further, the display effect is influenced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a first embodiment of a display processing system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a first embodiment of a display processing method provided in the embodiment of the present application;
fig. 3 is a schematic flow chart of a second embodiment of a display processing method provided in the embodiment of the present application;
fig. 4 is a schematic flow chart of a third embodiment of a display processing method provided in the embodiment of the present application;
fig. 5 is a schematic flow chart of a fourth embodiment of a display processing method provided in the embodiment of the present application;
fig. 6 is a schematic flow chart of a fifth embodiment of a display processing method provided in the embodiments of the present application;
fig. 7 is a schematic structural diagram of a first embodiment of a display processing device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application, as detailed in the accompanying claims, rather than all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the prior art, a user is helped to better view the data and diagnose the problem through a large screen of the interactive real-time data so as to meet the visual requirement of the user on the data. However, since the fixed length proportion of the image to be displayed of the large screen is predefined, when the image to be displayed is displayed in a full screen by adopting the self-defined large screen technology, in order to adapt to the screens with different sizes, the image to be displayed is integrally stretched or compressed according to the proportional size of the screen, so that the image to be displayed is deformed, and the visual effect is further affected.
Based on this, in order to solve the above technical problems, the technical idea of the present application is: how to enlarge or reduce the image to be displayed so as to realize that the image to be displayed is not deformed.
Fig. 1 is a schematic structural diagram of a first embodiment of a display processing system according to an embodiment of the present application, as shown in fig. 1, where the system includes: a display 11 and a display analysis platform 12.
After the display analysis platform 12 receives the display request, the display analysis platform 12 scales the image to be displayed according to the display request, and then sends the scaled image to the display 11 for displaying the scaled image on the display screen of the display 11.
It should be noted that, fig. 1 is only a block diagram of a display processing system provided by an embodiment of the present application, and the embodiment of the present application does not limit actual forms of various devices included in fig. 1, nor limit an interaction manner between devices in fig. 1, and in a specific application of the solution, the configuration may be set according to actual requirements.
The following describes the technical scheme of the present application in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flow chart of a first embodiment of a display processing method provided in the embodiment of the present application, as shown in fig. 2, specifically, the method includes:
s201, acquiring a display request.
In the present embodiment, the display request includes identification information of an image to be displayed.
In this embodiment, for example, a user inputs an address where an image to be displayed is located in a web browser of a display, thereby generating a display request carrying the address of the image to be displayed, so that a display analysis platform obtains the address in the display request to determine that the image to be displayed is required.
S202, according to the display request, acquiring the resolution of a display screen and the resolution of an image to be displayed, and determining whether to scale the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed.
In this embodiment, for example, according to the acquired display request, the display analysis platform acquires the resolution of the display screen as 1366×768 and acquires the resolution of the image to be displayed as 1920×1080, and when determining that the resolution of the display screen is different from the resolution of the image to be displayed, determines to scale the image to be displayed.
S203, when the image to be displayed is determined to be scaled, a width scaling scale and a height scaling scale are obtained according to the resolution of the display screen and the resolution of the image to be displayed, and a scaling type and a scaling scale with a matching scaling type are determined according to the width scaling scale and the height scaling scale.
In this embodiment, for example, the resolution of the display screen is different from the resolution of the image to be displayed, so that scaling of the image to be displayed is determined, the width scaling ratio is 1366:1920 and the height scaling ratio is 768:1080 according to the resolution of the display screen and the resolution of the image to be displayed, and the scaling type and the scaling ratio of the scaling type matching are determined according to the width scaling ratio and the height scaling ratio. For example, from various scaling cases of the width scaling and the height scaling, the type of scaling to match is determined, such as: equal width or height zoom types, etc., and then determining a final scale based on the different zoom types.
S204, performing scaling processing on the image to be displayed according to the scaling ratio to acquire the image after the scaling processing, and performing display processing on the image after the scaling processing.
In this embodiment, for example, the display analysis platform performs scaling processing on the image to be displayed according to the scaling ratio, so as to obtain the image after scaling processing, and then sends the image after scaling processing to the display, so that the display can display the image after scaling processing.
In this embodiment, by acquiring a display request, and according to the display request, acquiring the resolution of a display screen and the resolution of an image to be displayed, and according to the resolution of the display screen and the resolution of the image to be displayed, determining whether to scale the image to be displayed; when the image to be displayed is determined to be zoomed, a width zoom scale and a height zoom scale are obtained according to the resolution of a display screen and the resolution of the image to be displayed, and a zoom type and a zoom scale matched with the zoom type are determined according to the width zoom scale and the height zoom scale; and performing scaling processing on the image to be displayed according to the scaling ratio to acquire the image subjected to scaling processing, and performing display processing on the image subjected to scaling processing. Compared with the prior art, the method and the device have the advantages that the image to be displayed is directly subjected to integral stretching or compression to cause deformation of the image to be displayed, and further, the display effect is influenced.
Fig. 3 is a schematic flow chart of a second embodiment of a display processing method according to the embodiment of the present application, and based on the foregoing embodiment, as shown in fig. 3, a specific implementation manner of step S203 is as follows:
s301, when the image to be displayed is determined to be scaled, obtaining width scaling ratios of the display screen and the image to be displayed and height scaling ratios of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed.
In this embodiment, for example, when determining to zoom an image to be displayed, according to the width of the display screen, screen width, and the width w of the image to be displayed, formula (1) is adopted:
scaleX=screenWidth/w (1)
acquiring a display screen and a width scaling scale (scaleX) of an image to be displayed;
according to the height of the display screen, screen height, and the height h of the image to be displayed, formula (2) is adopted:
scaleY=screenHeight/h (2)
a high-scale y of the display screen and the image to be displayed is acquired.
S302, determining a scaling type according to the width scaling and the height scaling, and acquiring a deformation scaling and a non-deformation scaling matched with the scaling type when determining that a deformation component and a non-deformation component exist in an image to be displayed.
In this embodiment, the scaling type is determined according to the width scaling and the height scaling, and when it is determined that the deformed component and the non-deformed component exist in the image to be displayed, the deformed scaling and the non-deformed scaling matched with the scaling type are obtained, so that the deformed component is scaled according to the deformed scaling, and the non-deformed component is scaled according to the non-deformed scaling.
In this embodiment, the morphing assembly optionally includes, but is not limited to, forms, text. Non-deformable components include, but are not limited to, bar graphs, pie charts, and line graphs.
In this embodiment, when determining to scale an image to be displayed, obtaining width scaling ratios of the display screen and the image to be displayed and height scaling ratios of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed; then, a scaling type is determined according to the width scaling and the height scaling, and upon determining that a morphing component and a non-morphing component are present in the image to be displayed, a morphing scaling and a non-morphing scaling that match the scaling type are acquired. According to the method and the device, according to the resolution of the display screen and the resolution of the image to be displayed, the width scaling of the display screen and the width scaling of the image to be displayed and the height scaling of the display screen and the image to be displayed are obtained, then, according to the width scaling and the height scaling, the scaling type is determined, when the deformation component and the non-deformable component exist in the image to be displayed, the deformation scaling and the non-deformable scaling matched with the scaling type are obtained, scaling of different scaling rates is carried out on the deformation component and the non-deformable component in the image to be displayed respectively, and deformation does not occur after the image to be displayed is scaled.
Fig. 4 is a schematic flow chart of a third embodiment of a display processing method provided in the embodiment of the present application, and based on the foregoing embodiment, as shown in fig. 4, a specific implementation manner of step S302 is as follows:
s401, determining whether the width scaling scaleX is larger than the height scaling scaleY; if yes, executing S402; if less than or equal to, S403 is performed.
S402, determining that the zoom type is the contour zoom type, and when the deformation component and the non-deformable component exist in the image to be displayed, acquiring that the deformation zoom ratio matched with the contour zoom type is 1:1/scaleY/scaleX and the non-deformable zoom ratio is scaleY/scaleX:1.
S403, determining that the zoom type is an equal-width zoom type, and acquiring that the deformation zoom ratio matched with the equal-width zoom type is 1:1 and the non-deformation zoom ratio is 1:scaleX/scaleY when the deformation component and the non-deformation component exist in the image to be displayed.
In this embodiment, for example, if the width scale scaleX is 800:1920 and the height scale scaleY is 600:1080, it is determined that the width scale is smaller than the height scale, the scale type is the equal width scale type, then the deformed scale of the equal width scale type matching is acquired as 1:1, and the non-deformed scale is 1:3/4; if the width scale is 1600:1920 and the height scale is 500:1080, determining that the width scale is larger than the height scale, determining that the scale type is equal-height scale, and acquiring the deformation scale matched with the equal-height scale as 1 when determining that the deformation component and the non-deformable component exist in the image to be displayed: 9/5, the non-deformable scale is 5/9:1.
In this embodiment, if it is determined that the width scale scaleX is greater than the height scale scaleY, determining that the scale type is a contour scale type, and when it is determined that a deformed component and an undeformable component exist in the image to be displayed, acquiring a deformed scale ratio of 1:1/scaleY/scaleX and a non-deformed scale ratio of scaleY/scalex:1, which are matched with the contour scale type; or if the width scaling scale x is determined to be smaller than or equal to the height scaling scale y, determining that the scaling type is an equal width scaling type, and acquiring a deformation scaling ratio matched with the equal width scaling type to be 1:1 and a non-deformable scaling ratio to be 1:scalex/scaleY when the deformation component and the non-deformable component exist in the image to be displayed. According to the method and the device, the width scaling scale and the height scaling scale are compared, the scaling type is determined according to the size relation, the deformation scaling scale and the non-deformable scaling scale are determined according to the scaling type, and the deformation components and the non-deformable components in the image to be displayed are scaled, so that the components in the image to be displayed are guaranteed not to deform.
Fig. 5 is a schematic flow chart of a fourth embodiment of a display processing method provided in the embodiment of the present application, and based on the foregoing embodiment, as shown in fig. 5, a specific implementation manner of step S204 is as follows:
s501, scaling the deformed component in the image to be displayed according to the deformed scaling, scaling the non-deformed component in the image to be displayed according to the non-deformed scaling to obtain a scaled image, and displaying the scaled image.
In this embodiment, for example, in step S402, if it is determined that the zoom type is the contour zoom type, and when it is determined that there are a morphing component and a non-morphable component in the image to be displayed, a morphing zoom ratio matching the contour zoom type is acquired as 1:9/5, the width of the deformation component is kept unchanged, the height of the deformation component is enlarged to 9/5 of the original width, the width of the non-deformation component is reduced to 5/9 of the original width, and the height of the non-deformation component is kept unchanged.
In this embodiment, scaling is performed on the deformed component in the image to be displayed according to the deformed scaling, scaling is performed on the non-deformed component in the image to be displayed according to the non-deformed scaling, so as to obtain the scaled image, and display is performed on the scaled image. According to the method and the device, the deformation component in the image to be displayed is subjected to scaling according to the deformation scaling, the non-deformable component in the image to be displayed is subjected to scaling according to the non-deformable scaling, the image after scaling is obtained, then the scaled image is displayed, deformation cannot be generated after the image to be displayed is scaled, and the visual requirement of a user on large-screen data is met.
Fig. 6 is a schematic flow chart of a fifth embodiment of a display processing method according to the embodiment of the present application, where, on the basis of the foregoing embodiment, as shown in fig. 6, after step S202, the method further includes:
s601, when the image to be displayed is determined not to be scaled, the image to be displayed is subjected to display processing.
In this embodiment, for example, if the resolution of the image to be displayed is 1920×1080 and the resolution of the display screen is 1920×1080, it is determined that the resolution of the image to be displayed is the same as the resolution of the display screen, it is determined that the image to be displayed is not scaled, and then the image to be displayed is subjected to display processing.
In this embodiment, when it is determined that the image to be displayed is not scaled, the image to be displayed is subjected to display processing. According to the method and the device, when the image to be displayed is not zoomed, the image to be displayed is displayed, so that the image to be displayed is displayed on the screen more rapidly, and the real-time performance of large-screen data display is improved.
Fig. 7 is a schematic structural diagram of a first embodiment of a display processing apparatus according to an embodiment of the present application, as shown in fig. 7, where the apparatus includes: an acquisition module 71 and a processing module 72. Wherein,
an acquisition module 71 for acquiring a display request including identification information of an image to be displayed.
The processing module 72 is configured to obtain a resolution of the display screen and a resolution of the image to be displayed according to the display request, and determine whether to scale the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed. The processing module 72 is further configured to, when determining to scale the image to be displayed, obtain a width scale and a height scale according to the resolution of the display screen and the resolution of the image to be displayed, and determine a scale type and a scale type matching scale according to the width scale and the height scale. The processing module 72 is further configured to perform scaling processing on the image to be displayed according to the scaling ratio, so as to obtain an image after scaling processing, and perform display processing on the image after scaling processing.
The display processing device provided in this embodiment may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
The embodiment also provides a server comprising a memory and a processor, wherein the memory is used for storing a computer program; the processor is configured to read the computer program stored in the memory, and execute the embodiment of the method according to the computer program in the memory, which is not described herein.
The present embodiment also provides a computer readable storage medium, in which computer executable instructions are stored, and when a processor executes the computer executable instructions, the embodiments shown in the above method are implemented, which is not described herein again.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A display processing method, characterized by comprising:
acquiring a display request, wherein the display request comprises identification information of an image to be displayed;
according to the display request, the resolution of a display screen and the resolution of the image to be displayed are obtained, and whether the image to be displayed is scaled or not is determined according to the resolution of the display screen and the resolution of the image to be displayed;
when the image to be displayed is determined to be zoomed, a width zoom scale and a height zoom scale are obtained according to the resolution of the display screen and the resolution of the image to be displayed, and a zoom type and a zoom scale matched with the zoom type are determined according to the width zoom scale and the height zoom scale;
and carrying out scaling processing on the image to be displayed according to the scaling ratio so as to obtain a scaled image, and carrying out display processing on the scaled image.
2. The method according to claim 1, wherein when determining to scale the image to be displayed, obtaining a width scale and a height scale according to the resolution of the display screen and the resolution of the image to be displayed, and determining a scale type and a scale type matching the scale type according to the width scale and the height scale, comprises:
when the image to be displayed is determined to be zoomed, obtaining width zoom scales of the display screen and the image to be displayed and height zoom scales of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed;
and determining a scaling type according to the width scaling and the height scaling, and acquiring a deformation scaling and a non-deformation scaling matched with the scaling type when determining that a deformation component and a non-deformation component exist in the image to be displayed.
3. The method according to claim 2, wherein the obtaining, when determining to scale the image to be displayed, a width scale of the display screen and the image to be displayed, and a height scale of the display screen and the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed, comprises:
when the image to be displayed is determined to be zoomed, according to the width screenWidth of the display screen and the width w of the image to be displayed, the following formula is adopted:
scaleX=screenWidth/w
acquiring width scaling scaleX of the display screen and the image to be displayed;
according to the height of the display screen, the height h of the image to be displayed and the height screenHeight of the display screen, the following formula is adopted:
scaleY=screenHeight/h
and acquiring a height scaling scale Y of the display screen and the image to be displayed.
4. A method according to claim 3, wherein said determining a scale type from said width scale and said height scale and upon determining that a morphable element and a non-morphable element are present in said image to be displayed, obtaining a morphable scale and a non-morphable scale matching said scale type comprises:
if the width scaling scaleX is determined to be larger than the height scaling scaleY, determining the scaling type to be a contour scaling type, and acquiring a deformation scaling ratio which is 1:1/scaleY/scaleX and a non-deformation scaling ratio which is scaleY/scaleX to be 1 when a deformation component and a non-deformation component exist in the image to be displayed;
or,
if the width scaling scale X is determined to be smaller than or equal to the height scaling scale Y, determining that the scaling type is an equal-width scaling type, and acquiring a deformation scaling ratio which is matched with the equal-width scaling type to be 1:1 and a non-deformation scaling ratio to be 1:scaleX/scaleY when the deformation component and the non-deformation component exist in the image to be displayed.
5. The method according to any one of claims 2 to 4, wherein scaling the image to be displayed according to the scaling ratio to obtain a scaled image, and displaying the scaled image, includes:
and scaling the deformed component in the image to be displayed according to the deformed scaling proportion, scaling the non-deformed component in the image to be displayed according to the non-deformed scaling proportion so as to obtain a scaled image, and displaying the scaled image.
6. The method as recited in claim 1, further comprising:
and when the image to be displayed is determined not to be zoomed, performing display processing on the image to be displayed.
7. A display processing apparatus, comprising:
the display module is used for displaying the image to be displayed, and the display request comprises identification information of the image to be displayed;
the processing module is used for acquiring the resolution of a display screen and the resolution of the image to be displayed according to the display request, and determining whether to scale the image to be displayed according to the resolution of the display screen and the resolution of the image to be displayed;
the processing module is further configured to obtain a width scaling ratio and a height scaling ratio according to the resolution of the display screen and the resolution of the image to be displayed, and determine a scaling type and a scaling ratio matched with the scaling type according to the width scaling ratio and the height scaling ratio when determining to scale the image to be displayed;
the processing module is further configured to perform scaling processing on the image to be displayed according to the scaling ratio, so as to obtain a scaled image, and perform display processing on the scaled image.
8. A server comprising a memory and a processor; wherein,
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the display processing method according to any one of the preceding claims 1 to 6 according to the computer program in the memory.
9. The display processing system is characterized by comprising a display and a display analysis platform; wherein the display analysis platform is configured to perform the display processing method of any one of claims 1 to 6.
10. A computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the display processing method of any of the preceding claims 1-6.
CN202410027828.XA 2024-01-08 2024-01-08 Display processing method, device, equipment, system and storage medium Pending CN117827069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410027828.XA CN117827069A (en) 2024-01-08 2024-01-08 Display processing method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410027828.XA CN117827069A (en) 2024-01-08 2024-01-08 Display processing method, device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN117827069A true CN117827069A (en) 2024-04-05

Family

ID=90517317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410027828.XA Pending CN117827069A (en) 2024-01-08 2024-01-08 Display processing method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN117827069A (en)

Similar Documents

Publication Publication Date Title
CN107273007B (en) System and non-transitory computer readable medium for scaling a visualization image
US11222211B2 (en) Method and apparatus for segmenting video object, electronic device, and storage medium
CN110544214A (en) Image restoration method and device and electronic equipment
US20220067375A1 (en) Object detection
EP2485190A1 (en) Adapting the resolution of a graphic representation of metadata
CN111787312A (en) Video delay test method, system, electronic equipment and storage medium
CN113439227A (en) Capturing and storing magnified images
CN114202648A (en) Text image correction method, training method, device, electronic device and medium
CN113516697A (en) Image registration method and device, electronic equipment and computer-readable storage medium
CN111583329B (en) Augmented reality glasses display method and device, electronic equipment and storage medium
CN117827069A (en) Display processing method, device, equipment, system and storage medium
WO2020121996A1 (en) Image processing device, method, and program
CN107506119B (en) Picture display method, device, equipment and storage medium
CN113838428B (en) Ink screen refreshing method and terminal equipment
CN115908116A (en) Image processing method, device, equipment and storage medium
US20220020113A1 (en) Image resizing using seam carving
CN111754518B (en) Image set expansion method and device and electronic equipment
CN114549303A (en) Image display method, image processing method, image display device, image processing equipment and storage medium
CN112559340A (en) Picture testing method, device, equipment and storage medium
CN109710122B (en) Method and device for displaying information
CN109429067B (en) Dynamic picture compression method and device, computer equipment and storage medium
CN111522609A (en) Page display method and device
CN111143018A (en) Front-end image rendering method and device and electronic equipment
CN113096011B (en) Image processing method and device and electronic equipment
CN110764764B (en) Webpage end image fixed stretching method and device, computer equipment and storage medium

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