Large data screen display control method and apparatus, computer device and storage medium
By comparing the display parameters of the target content and the screen, and determining and applying appropriate display control strategies, the problem of not being able to automatically adjust the display mode in the prior art is solved, and the display effect at multiple resolutions is improved.
Patent Information
- Application Number
- PCT/CN2024/111837
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-26
- Filing Date
- 2024-08-13
- Publication Date
- 2025-05-01
AI Technical Summary
The prior art cannot automatically adjust the display method according to the screen resolution, resulting in poor display effect of target content with different resolutions on the screen.
By obtaining the first display parameter of the target content currently displayed on the target screen, comparing it with the second display parameter of the target screen, determining the target parameter type of the target content, and determining the target display control strategy based on the correspondence between the preset parameter type and the display control strategy, adjusting the display module of the target content to adapt to the display parameters of the target screen.
It realizes automatic adjustment of the display method according to the screen resolution, and improves the display effect of target content at different resolutions on the screen.
Smart Images

Figure CN2024111837_01052025_PF_FP_ABST
Abstract
Description
A display control method, device, computer equipment and storage medium for a large data screen
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Chinese Patent Application No. 202311403164.4, filed on October 26, 2023. The entire teachings of the above application are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer technology, and in particular to a display control method and device for a large data screen, a computer device, and a storage medium. Background Art
[0004] Currently, large screens are commonly used for content display in scenarios such as e-commerce live streaming and advertising. However, during the content display process, they can only adapt to width changes or provide different layouts for different resolutions through media queries. They cannot automatically adjust the display mode according to the screen resolution, ultimately resulting in poor display effects of target content with different resolutions on the screen.
[0005] Summary of the Invention
[0006] In view of this, the embodiments of the present disclosure provide a display control method, device, computer equipment and storage medium for a large data screen to solve the problem that the existing solutions cannot automatically adjust the display mode according to the resolution of the screen, which ultimately leads to poor display effects of target content with different resolutions on the screen.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for controlling display of a large data screen, the method comprising:
[0008] Acquire a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules;
[0009] comparing the first display parameter with a second display parameter corresponding to the target screen to determine a target parameter type corresponding to the target content;
[0010] Determining a target display control strategy corresponding to the target parameter type based on a correspondence between preset parameter types and display control strategies;
[0011] The display modules of the target content are adjusted according to the target display control strategy to obtain adjusted target content, wherein the display parameters of the adjusted target content are adapted to the second display parameters.
[0012] In a second aspect, an embodiment of the present disclosure provides a display control device for a large data screen, the device comprising:
[0013] an acquisition module, configured to acquire a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules;
[0014] a detection module, configured to compare the first display parameter with a second display parameter corresponding to the target screen, and determine a target parameter type corresponding to the target content;
[0015] a determination module, configured to determine a target display control strategy corresponding to the target parameter type based on a correspondence between preset parameter types and display control strategies;
[0016] The control module is configured to adjust the display modules of the target content according to the target display control strategy to obtain adjusted target content, wherein the display parameters of the adjusted target content are adapted to the second display parameters.
[0017] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] FIG1 is a flow chart of a method for controlling display of a large data screen according to some embodiments of the present disclosure;
[0021] FIG2 is a schematic diagram of display control of a large data screen according to some embodiments of the present disclosure;
[0022] FIG3 is a schematic diagram of display control of a data large screen according to some embodiments of the present disclosure;
[0023] FIG4 is a schematic diagram of display control of a data large screen according to some embodiments of the present disclosure;
[0024] FIG5 is a schematic diagram of display control of a data large screen according to some embodiments of the present disclosure;
[0025] FIG6 is a structural block diagram of a display control device for a large data screen according to an embodiment of the present disclosure;
[0026] FIG7 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present disclosure.
[0028] According to an embodiment of the present disclosure, a display control method, apparatus, computer device and storage medium for a large data screen are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] In this embodiment, a method for controlling the display of a large data screen is provided. FIG1 is a flow chart of a method for controlling the display of a large data screen according to an embodiment of the present disclosure. As shown in FIG1 , the flow chart includes the following steps:
[0030] Step S11 : obtaining a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules.
[0031] The method provided in the embodiments of the present disclosure is applied to smart devices with display screens, such as smart advertising display screens, smart TVs, and the like. Specifically, each time the smart device displays corresponding content, it can dynamically adjust according to the display parameters of the screen and the display parameters of the corresponding content, thereby improving the display effect of the content. It should be noted that the content displayed by the smart device includes multiple display modules, and the display modules are used to display different data content. The display modules can be set according to the data attributes, for example: display module M is used to display chart content, display module N is used to display real-time data, and display module P is used to display picture content.
[0032] In an embodiment of the present disclosure, obtaining a first display parameter corresponding to a target content currently displayed on a target screen includes the following steps A1-A2:
[0033] Step A1: Detect a first resolution corresponding to the target content.
[0034] In the disclosed embodiments, a smart device can accept display requests from other devices, which can be devices connected to the smart device. After receiving the display request, the smart device parses the display request to obtain target content, which can be web page data, advertising data, chart data, video, image, etc. When the target content is web page data, the corresponding display module displays the real-time page views, the real-time number of page attacks, web page hotspot data, etc. When the target content is icon data, the corresponding display module displays icon data in different formats, chart analysis data, etc.
[0035] In an embodiment of the present disclosure, after obtaining the target content, the smart device detects a first resolution corresponding to the target content. Specifically, the first resolution corresponding to the target content may be detected by using a developer tool to check the size of the visualization window corresponding to the target content. The first resolution is determined by the size of the visualization window. The first resolution may be 1920×1080, 1366×900, 1280×720, 1440x900, and so on.
[0036] It should be noted that developer tools usually provide a debugging toolbar with an option to visualize the window size. By viewing the window size, you can determine the resolution of the target content.
[0037] Step A2: Calculate a first aspect ratio corresponding to the target content according to the first resolution, and determine the first aspect ratio as a first display parameter.
[0038] In an embodiment of the present disclosure, the first aspect ratio corresponding to the target content is calculated based on the first resolution. The specific calculation method may be: extracting the horizontal resolution and the vertical resolution from the first resolution, calculating the ratio of the horizontal resolution to the vertical resolution, and using the ratio as the first aspect ratio corresponding to the target content. For example, if the first resolution of the target content is 1920×1080, then the aspect ratio is 1920 / 1080=16:9. If the first resolution of the target content is 1440×900, then the aspect ratio is 1440 / 900=16:10.
[0039] Step S12: comparing the first display parameter with the second display parameter corresponding to the target screen to determine the target parameter type corresponding to the target content.
[0040] In the embodiment of the present disclosure, comparing the first display parameter with the second display parameter corresponding to the target screen to determine the target parameter type corresponding to the target content includes the following steps B1-B3:
[0041] Step B1: Acquire a second resolution corresponding to the target screen, and calculate a second aspect ratio corresponding to the target screen according to the second resolution.
[0042] In the disclosed embodiments, the second resolution corresponding to the target screen can be obtained by: different operating systems provide API interfaces for obtaining the resolution information of the current target screen. For example, in the Windows operating system, the GetSystemMetrics function can be used to obtain the resolution of the target screen. On iOS and Android devices, the screen resolution can be detected using the API interfaces of their respective systems.
[0043] Alternatively, the second resolution corresponding to the target screen can be obtained by obtaining device configuration information corresponding to the smart device, and then reading the device configuration information to obtain the target screen resolution of the smart device. The second resolution of the target screen can be: 1920×1080, 1366×900, 1280×720, 1440x900, etc.
[0044] The specific calculation method may be: extracting the horizontal resolution and vertical resolution from the second resolution, calculating the ratio of the horizontal resolution to the vertical resolution, and using the ratio as the second aspect ratio corresponding to the target screen. For example, if the second resolution of the target screen is 1920×1080, then the aspect ratio is 1920 / 1080=16:9. If the second resolution of the target screen is 1440×900, then the aspect ratio is 1440 / 900=16:10.
[0045] Step B2: comparing the first aspect ratio with the second aspect ratio to obtain a comparison result.
[0046] In the embodiment of the present disclosure, the first aspect ratio is compared with the second aspect ratio to determine whether the aspect ratio of the target content is consistent with the aspect ratio of the target screen by using the aspect ratio of the target screen as a standard, so as to facilitate subsequent determination of how to adjust the target content based on the comparison results.
[0047] Step B3: Determine the target parameter type corresponding to the target content according to the comparison result.
[0048] In an embodiment of the present disclosure, determining the target parameter type corresponding to the target content based on the comparison result includes: if the comparison result shows that the first aspect ratio and the second aspect ratio are consistent, determining the target parameter type to be the first type; or if the comparison result shows that the first aspect ratio and the second aspect ratio are inconsistent, determining the target parameter type to be the second type.
[0049] It is understood that if the comparison result shows that the first aspect ratio and the second aspect ratio are consistent, it means that the target content has a standard aspect ratio. In this case, the first type can be understood as the standard type. If the comparison result shows that the first aspect ratio and the second aspect ratio are inconsistent, it means that the target content does not have a standard aspect ratio. In this case, the second type can be understood as the non-standard type.
[0050] Step S13: determining a target display control strategy corresponding to the target parameter type based on the correspondence between the preset parameter type and the display control strategy.
[0051] In the embodiment of the present disclosure, in order to achieve rapid display adaptation of the target content, the correspondence between parameter types and display control strategies is pre-set. The parameter types include the first type and the second type. The display control strategies include: proportional scaling, adjusting the layout of the target content, etc.
[0052] In the disclosed embodiments, the pre-defined correspondence between parameter types and display control strategies is designed to ensure that the system correctly processes and displays parameters in different scenarios and conditions, thereby improving system reliability and stability. Furthermore, by selecting the appropriate display control strategy based on parameter type, the displayed content and display method can be ensured to align with viewer expectations, thereby enhancing visual quality.
[0053] Step S14 , adjusting each display module of the target content according to the target display control strategy to obtain adjusted target content, wherein the display parameters of the adjusted target content are adapted to the second display parameters.
[0054] The method provided by the embodiment of the present disclosure can determine the parameter type of the target content by comparing the display parameters of the screen with the display parameters of the target content, so as to facilitate the subsequent selection of the corresponding adjustment strategy according to the parameter type, display the target content, and adapt the adjusted target content to the display parameters of the screen. In this way, by comparing the first display parameter with the second display parameter corresponding to the target screen, the target parameter type corresponding to the target content is determined. This ensures that the selected target parameter type matches the actual display parameters of the target screen, thereby providing accurate display adjustment. In addition, based on the correspondence between the preset parameter type and the display control strategy, the target display control strategy corresponding to the target parameter type is determined. In this way, the corresponding display control strategy can be selected according to the specific parameter type, thereby achieving flexible adjustment of the displayed content.
[0055] In the embodiment of the present disclosure, when the target parameter type is the first type, adjusting each display module of the target content according to the target display control strategy to obtain the adjusted target content includes the following steps C1-C2:
[0056] Step C1: Acquire a first width difference between the target content and the target screen.
[0057] In an embodiment of the present disclosure, when the target parameter type is the first type, obtaining the first width difference between the target content and the target screen may include: obtaining the horizontal resolution and the vertical resolution from the first resolution corresponding to the target content, and simultaneously obtaining the horizontal resolution and the vertical resolution from the second resolution corresponding to the target screen. Then, the horizontal resolution of the target content and the target screen are compared, as well as the vertical resolution of the target content and the target screen, to obtain the first width difference between the target content and the target screen.
[0058] Step C2: scaling each display module of the target content in geometric proportion according to the first width difference to obtain adjusted target content.
[0059] In an embodiment of the present disclosure, the target content is scaled proportionally according to the first width difference. The proportional scaling may be a proportional enlargement or a proportional reduction, and finally the adjusted target content is obtained.
[0060] As an example, as shown in FIG2 , when the horizontal resolution and vertical resolution of the target content are respectively smaller than the horizontal resolution and vertical resolution of the target screen, each display module of the target content is proportionally enlarged according to the first width value until it is consistent with the target screen. Alternatively, as shown in FIG3 , when the horizontal resolution and vertical resolution of the target content are respectively larger than the horizontal resolution and vertical resolution of the target screen, each display module of the target content is proportionally reduced according to the first width value until it is consistent with the target screen.
[0061] In the embodiment of the present disclosure, when the target parameter type is the second type, adjusting each display module of the target content according to the target display control strategy to obtain the adjusted target content includes the following steps D1-D4:
[0062] Step D1: Acquire a second width difference between the target content and the target screen.
[0063] In an embodiment of the present disclosure, when the target parameter type is the second type, obtaining the second width difference between the target content and the target screen may include: obtaining the horizontal resolution and the vertical resolution from the first resolution corresponding to the target content, and simultaneously obtaining the horizontal resolution and the vertical resolution from the second resolution corresponding to the target screen. Then, the horizontal resolution of the target content and the target screen are compared, as well as the vertical resolution of the target content and the target screen, to obtain the width difference between the target content and the target screen. The obtained width difference is recorded as the second width.
[0064] Step D2 : scaling each display module of the target content in geometric proportion according to the second width difference to obtain the scaled target content.
[0065] In an embodiment of the present disclosure, the target content is scaled proportionally according to the second width difference, and the proportional scaling can be proportional enlargement and proportional reduction, and finally the scaled target content is obtained. Specifically, when the horizontal resolution and vertical resolution of the target content are respectively smaller than the horizontal resolution and vertical resolution of the target screen, the various display modules of the target content are proportionally enlarged according to the second width value and enlarged to the target screen. Or as shown in Figure 3, when the horizontal resolution and vertical resolution of the target content are respectively greater than the horizontal resolution and vertical resolution of the target screen, the various display modules of the target content are proportionally reduced according to the first width value and reduced to the target screen.
[0066] It should be noted that, since the target parameter type is the second type, after the target content is proportionally scaled, the scaled target content obtained is inconsistent with the target screen. Therefore, the scaled target content needs to be further processed.
[0067] Step D3: Obtain the display height corresponding to the scaled target content, and compare the display height with the screen height corresponding to the target screen to obtain a comparison result.
[0068] In the disclosed embodiments, by highly comparing the scaled target content with the target screen, it is possible to more accurately determine whether the target content is suitable for the target screen, thus preventing the displayed content from being too large or too small. Furthermore, it is convenient to subsequently select an appropriate adjustment strategy based on the comparison results to further adjust the target content, allowing the target content to adapt to the size and ratio of different screens, providing a better display effect.
[0069] Step D4 : adjusting the scaled target content again according to the adjustment strategy corresponding to the comparison result to obtain adjusted target content.
[0070] In an embodiment of the present disclosure, the scaled target content is further adjusted according to an adjustment strategy corresponding to the comparison result to obtain the adjusted target content, including: if the comparison result shows that the display height is greater than the screen height, using the display module that exceeds the screen height as the first display module, and evenly distributing the height of the first display module that exceeds the screen height to the display modules in the vertical direction;
[0071] In an embodiment of the present disclosure, as shown in FIG4 , when the comparison result shows that the display height is greater than the screen height, the local target content exceeding the screen height is obtained, and then the local target content is evenly distributed to the display modules in the vertical direction of the target screen.
[0072] In an embodiment of the present disclosure, the scaled target content is adjusted again according to the adjustment strategy corresponding to the comparison result to obtain the adjusted target content, including: when the comparison result is that the display height is less than the screen height, the display module that exceeds the screen width is used as the second display module, and the width of the second display module that exceeds the screen width is evenly distributed to the display modules in the horizontal direction.
[0073] In an embodiment of the present disclosure, as shown in FIG5 , when the comparison result shows that the display height is less than the screen height, the local target content exceeding the screen height is obtained, and then the local target content is evenly distributed to the display modules in the horizontal direction of the target screen.
[0074] The method provided by the embodiment of the present disclosure can evenly distribute the local content that exceeds the height or width of the screen to the display modules in the vertical or horizontal direction, so that the content can be fully displayed on the screen, avoiding information loss. According to the comparison results and adjustment strategy, the content that exceeds the screen size is distributed to other display modules, so that the entire screen space is fully utilized, improving the display effect and presentation capabilities. In addition, it can automatically adjust according to the comparison results and is suitable for screens of different sizes and proportions, so that the content can be adapted to display on different screens, providing a good user experience.
[0075] In the method provided by the embodiment of the present disclosure, when the local target content that exceeds the screen width or exceeds the screen height cannot be evenly distributed to the display modules in the vertical direction or the display modules in the horizontal direction, the method further includes the following steps:
[0076] Step S21 : split the target content and display the split content on each display module in the target screen.
[0077] Step S22, detecting a selection operation on each display module;
[0078] In step S23, the selected first display module in the target screen is determined according to the selection operation, and the first module state corresponding to the first display module is changed to an editable state. The content displayed by the first display module cannot be fully displayed on the target screen.
[0079] Step S24 , obtaining at least one second display module having the highest similarity to the first display module from the plurality of display modules in the target screen, and changing the second module state corresponding to the second display module to an editable state.
[0080] Step S25 , detecting whether the blank area of the second display module is larger than a preset area; if the blank area of the second display module is larger than the preset area, swapping the positions of the first display module and the second display module.
[0081] In the method provided by the embodiment of the present disclosure, when local target content that exceeds the screen width or screen height cannot be evenly distributed to the display modules in the vertical direction or the display modules in the horizontal direction, the operator can directly select the first display module in the target screen. The smart device can automatically obtain a second display module with a high similarity based on the selected first display module, and then swap the positions of the first display module and the second display module. In this way, the operator can make adjustments based on preferences and needs without being restricted by preset ratios or automatic scaling effects. This provides higher usability and ease of use, and improves the content display effect.
[0082] In addition, the method provided by the embodiment of the present disclosure further includes: obtaining a display style input by the operator, where the display style can be understood as an arrangement of display modules, such as horizontal layout, vertical layout, grid layout, etc. The display modules are arranged in combination according to the display style.
[0083] The method provided in the embodiments of the present disclosure obtains the display style input by the operator, allowing the operator to customize the arrangement of display modules to suit their needs and preferences. This can provide a more personalized interface layout and improve the display effect. At the same time, different application scenarios or content types may require different display styles. By combining and arranging display modules according to the selected display style, different needs can be flexibly adapted and a more flexible interface layout can be provided.
[0084] In this embodiment, a display control device for a large data screen is also provided. The device is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0085] This embodiment provides a display control device for a large data screen, as shown in FIG6 , including:
[0086] An acquisition module 61 is configured to acquire a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules;
[0087] A detection module 62 is configured to compare the first display parameter with a second display parameter corresponding to the target screen to determine a target parameter type corresponding to the target content;
[0088] A determination module 63 is configured to determine a target display control strategy corresponding to a target parameter type based on a correspondence between preset parameter types and display control strategies;
[0089] The control module 64 is configured to adjust the display modules of the target content according to the target display control strategy to obtain the adjusted target content, wherein the display parameters of the adjusted target content are adapted to the second display parameters.
[0090] In the embodiment of the present disclosure, the comparison module 62 is used to obtain a second resolution corresponding to the target screen, and calculate a second aspect ratio corresponding to the target screen based on the second resolution; compare the first aspect ratio with the second aspect ratio to obtain a comparison result; and determine the target parameter type corresponding to the target content based on the comparison result.
[0091] In the embodiment of the present disclosure, the comparison module 62 is configured to determine that the target parameter type is the first type when the comparison result shows that the first aspect ratio is consistent with the second aspect ratio; and to determine that the target parameter type is the second type when the comparison result shows that the first aspect ratio is inconsistent with the second aspect ratio.
[0092] In an embodiment of the present disclosure, when the target parameter type is the first type, the control module 64 is used to obtain a first width difference between the target content and the target screen; and proportionally scale each display module of the target content according to the first width difference to obtain the adjusted target content.
[0093] In the embodiment of the present disclosure, when the target parameter type is the second type, the control module 64 includes:
[0094] an acquiring unit, configured to acquire a second width difference between the target content and the target screen;
[0095] a processing unit, configured to perform geometric scaling on each display module of the target content according to the second width difference to obtain the scaled target content;
[0096] A comparison unit, configured to obtain a display height corresponding to the scaled target content, and compare the display height with a screen height corresponding to the target screen to obtain a comparison result;
[0097] The adjustment unit is configured to adjust the scaled target content again according to an adjustment strategy corresponding to the comparison result to obtain adjusted target content.
[0098] In an embodiment of the present disclosure, the scaled target content is adjusted again according to an adjustment strategy corresponding to the comparison result to obtain the adjusted target content, including: when the comparison result is that the display height is greater than the screen height, the display module that exceeds the screen height is used as the first display module, and the height of the first display module that exceeds the screen height is evenly distributed to the display modules in the vertical direction; or, when the comparison result is that the display height is less than the screen height, the display module that exceeds the screen width is used as the second display module, and the width of the second display module that exceeds the screen width is evenly distributed to the display modules in the horizontal direction.
[0099] Please refer to Figure 7, which is a structural diagram of a computer device provided by an optional embodiment of the present disclosure. As shown in Figure 7, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0100] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0101] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0102] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created based on the use of a computer device for displaying a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0103] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0104] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0105] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0106] Although the embodiments of the present disclosure have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A display control method for a large data screen, wherein the method comprises: Acquire a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules; comparing the first display parameter with a second display parameter corresponding to the target screen to determine a target parameter type corresponding to the target content; Determining a target display control strategy corresponding to the target parameter type based on a correspondence between a preset parameter type and a display control strategy; The display modules of the target content are adjusted according to the target display control strategy to obtain adjusted target content, wherein the display parameters of the adjusted target content are adapted to the second display parameters.
2. The method according to claim 1, wherein the step of obtaining a first display parameter corresponding to the target content currently displayed on the target screen comprises: Detecting a first resolution corresponding to the target content; A first aspect ratio corresponding to the target content is calculated according to the first resolution, and the first aspect ratio is determined as the first display parameter.
3. The method according to claim 2, wherein comparing the first display parameter with a second display parameter corresponding to the target screen to determine the target parameter type corresponding to the target content comprises: Acquire a second resolution corresponding to the target screen, and calculate a second aspect ratio corresponding to the target screen according to the second resolution; Comparing the first aspect ratio with the second aspect ratio to obtain a comparison result; The target parameter type corresponding to the target content is determined according to the comparison result.
4. The method according to claim 2, wherein determining the target parameter type corresponding to the target content according to the comparison result comprises: When the comparison result shows that the first aspect ratio is consistent with the second aspect ratio, determining that the target parameter type is the first type; When the comparison result is that the first aspect ratio is inconsistent with the second aspect ratio, it is determined that the target parameter type is the second type.
5. The method according to claim 3, wherein when the target parameter type is the first type, adjusting each display module of the target content according to the target display control strategy to obtain the adjusted target content comprises: Acquire a first width difference between the target content and the target screen; Each display module of the target content is scaled proportionally according to the first width difference to obtain adjusted target content.
6. The method according to claim 3, wherein when the target parameter type is the second type, adjusting each display module of the target content according to the target display control strategy to obtain the adjusted target content comprises: Acquire a second width difference between the target content and the target screen; scaling each display module of the target content in geometric proportion according to the second width difference to obtain scaled target content; Obtaining a display height corresponding to the scaled target content, and comparing the display height with a screen height corresponding to the target screen to obtain a comparison result; The scaled target content is adjusted again according to the adjustment strategy corresponding to the comparison result to obtain the adjusted target content.
7. The method according to claim 6, wherein the step of re-adjusting the scaled target content according to the adjustment strategy corresponding to the comparison result to obtain the adjusted target content comprises: If the comparison result shows that the display height is greater than the screen height, the display module exceeding the screen height is used as the first display module, and the height of the first display module exceeding the screen height is evenly distributed to the display modules in the vertical direction; or When the comparison result is that the display height is less than the screen height, the display module exceeding the screen width is used as the second display module, and the width of the second display module exceeding the screen width is evenly distributed to the display modules in the horizontal direction.
8. A display control device for a large data screen, wherein the device comprises: An acquisition module, used to acquire a first display parameter corresponding to a target content currently displayed on a target screen, wherein the target content includes a plurality of display modules; a detection module, configured to compare the first display parameter with a second display parameter corresponding to the target screen, and determine a target parameter type corresponding to the target content; A determination module, configured to determine a target display control strategy corresponding to the target parameter type based on a correspondence between a preset parameter type and a display control strategy; a control module, configured to adjust the display modules of the target content according to the target display control strategy to obtain the adjusted target content, wherein the display parameters of the adjusted target content are the same as those of the first 2. Display parameter adaptation.
9. A computer device comprising: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions. 10 . A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to claim 1 .
Citation Information
Patent Citations
Screen display proportion regulating method and electronic equipment
CN103700360A
Display method for enabling virtual machine interfaces to adapt to mobile terminal screens with different resolution ratios
CN104182270A
Self-adaptive display method and device of display resolutions
CN106648511A
Screen adaptive display method, electronic device and computer storage medium
CN109783181A
Webpage display method and device and storage medium
CN109992337A
Cited By
Display switching control device and method, equipment and medium
CN121764432A