Resolution adjustment method, device, equipment and storage medium
By obtaining and rating the network and hardware performance indicators of remote control connections, dynamically adjusting the output resolution of the controlled devices, solving the user experience problems caused by fixed resolution in remote control, and achieving a smoother and clearer interface.
Patent Information
- Application Number
- CN202411619427.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-04-04
AI Technical Summary
Fixed resolution in remote control results in poor network or limited performance of controlled devices, and the interface may have problems such as lag, delay, and unclear, resulting in poor user experience.
When the master control device establishes a remote control connection with the controlled device, it obtains network performance indicators, hardware resource indicators and GPU performance indicators, performs scoring processing, obtains quality scores, and adjusts the output resolution of the controlled device according to the quality level.
It realizes dynamic adjustment of resolution according to the quality of remote control connections, improves user experience, and reduces interface lag and delay.
Smart Images

Figure CN119766847A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of remote control technology, and in particular to a resolution adjustment method, device, equipment and storage medium. Background Art
[0002] The master device can operate the controlled device through remote control technology, so that the user can still control the controlled device when he is far away from the controlled device, which is very convenient.
[0003] At present, fixed resolution is still used in remote control. However, if the network is not good or the performance of the controlled device is limited, the remote control interface under fixed resolution may experience freezes, delays, unclearness, etc., and has the defects of insufficient flexibility and poor compatibility, which affects the user experience.
[0004] Therefore, how to improve the compatibility and flexibility of resolution adjustment to ensure a better user experience in remote control has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of the embodiments of the present application is to propose a resolution adjustment method, apparatus, device and storage medium, aiming to improve the compatibility and flexibility of resolution adjustment to ensure a better user experience in remote control.
[0006] To achieve the above object, a first aspect of an embodiment of the present application provides a resolution adjustment method, the method comprising:
[0007] When a remote control connection is established between a master control device and a controlled device, a network performance indicator between the master control device and the controlled device is obtained, and a hardware resource indicator and a GPU performance indicator of the controlled device are obtained;
[0008] Scoring the network performance indicator, the hardware resource indicator, and the GPU performance indicator to obtain a quality score of the remote control connection;
[0009] Performing a grading process on the quality score to obtain a quality grade of the remote control connection;
[0010] Acquire a required resolution level of the remote control connection according to the quality level;
[0011] The output resolution of the controlled device is adjusted according to the required resolution level.
[0012] To achieve the above object, a second aspect of an embodiment of the present application provides a resolution adjustment device, the device comprising:
[0013] An indicator acquisition module, used to acquire network performance indicators between the master control device and the controlled device, and to acquire hardware resource indicators and GPU performance indicators of the controlled device when a remote control connection is established between the master control device and the controlled device;
[0014] A scoring processing module, used to score the network performance index, the hardware resource index and the GPU performance index to obtain a quality score of the remote control connection;
[0015] A grading module, used for grading the quality score to obtain a quality grade of the remote control connection;
[0016] A resolution level acquisition module, used to acquire a required resolution level of the remote control connection according to the quality level;
[0017] The resolution adjustment module is used to adjust the output resolution of the controlled device according to the required resolution level.
[0018] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a computer device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the method described in the first aspect when executing the computer program.
[0019] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0020] The resolution adjustment method, apparatus, device and storage medium proposed in the present application, the resolution adjustment method, when a master control device and a controlled device establish a remote control connection, obtains the network performance index between the master control device and the controlled device, and obtains the hardware resource index and the GPU performance index of the controlled device; scores the network performance index, the hardware resource index and the GPU performance index to obtain a quality score of the remote control connection; grades the quality score to obtain a quality grade of the remote control connection; obtains a required resolution grade of the remote control connection according to the quality grade; and adjusts the output resolution of the controlled device according to the required resolution grade. In this way, by obtaining the network performance indicators between the main control device and the controlled device, as well as the hardware resource indicators and GPU performance indicators of the controlled device, a more comprehensive and reasonable basis is provided for measuring the quality status of the remote control connection; by scoring the network performance indicators, hardware resource indicators and GPU performance indicators, the network performance indicators, hardware resource indicators and GPU performance indicators are quantified into more intuitive quality scores; by grading the quality scores of the remote control connections, the quality level of the remote control connections can be clarified, thereby fitting the quality level of the remote control connections, and automatically selecting the appropriate required resolution level for the remote control connection, so that the output resolution of the controlled device is automatically adaptively adjusted according to the required resolution level, ensuring that the appropriate resolution is always provided to the user during remote control, thereby improving the compatibility and flexibility of resolution adjustment and ensuring a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a resolution adjustment method provided in an embodiment of the present application;
[0022] Figure 2 yes Figure 1 A detailed flowchart of step S102;
[0023] Figure 3 is another flow chart of the resolution adjustment method provided in an embodiment of the present application;
[0024] Figure 4 is a schematic block diagram of a resolution adjustment device provided in an embodiment of the present application;
[0025] Figure 5 It is a schematic block diagram of the structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0029] First, some nouns involved in this application are analyzed:
[0030] Remote control: refers to the technology that the main control device controls the controlled device from a physically distant place through network communication means such as the Internet and local area network. Remote control allows the user to control the controlled device without direct contact or being in the local area of the controlled device.
[0031] Graphics Processing Unit (GPU): A hardware component dedicated to processing graphics and image-related calculations. It is typically used to accelerate graphics rendering, image processing, video playback, and graphics-related computing tasks.
[0032] Based on this, the embodiments of the present application provide a resolution adjustment method, apparatus, device and storage medium, aiming to improve the compatibility and flexibility of resolution adjustment to ensure a better user experience in remote control.
[0033] The resolution adjustment method, apparatus, device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the resolution adjustment method in the embodiments of the present application is described.
[0034] The resolution adjustment method provided in the embodiment of the present application relates to the field of remote control technology. The resolution adjustment method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a vehicle-mounted terminal, a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the resolution adjustment method, such as remote control software, but is not limited to the above forms.
[0035] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer computer devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0036] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0037] Figure 1 is an optional flowchart of the resolution adjustment method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0038] Step S101, when a remote control connection is established between a master control device and a controlled device, network performance indicators between the master control device and the controlled device are obtained, as well as hardware resource indicators and GPU performance indicators of the controlled device.
[0039] When the master device and the controlled device establish a remote control connection through a network, the current network performance index between the master device and the controlled device can be obtained at preset time intervals (eg, every 5 seconds).
[0040] Among them, network performance indicators refer to key indicators used to measure network performance, including but not limited to network available bandwidth, network delay and packet loss rate.
[0041] Exemplarily, at least two test data packets can be sent to the network at preset intervals, and then the round-trip time and the amount of data transmitted of each test data packet sent from the control device to the controlled device and then returned to the control device are detected, thereby calculating the available network bandwidth based on the round-trip time and the amount of data transmitted of each test data packet.
[0042] Exemplarily, the number of unresponded test data packets may also be counted, so as to calculate the packet loss rate based on the total number of sent test data packets and the number of unresponded test data packets.
[0043] Exemplarily, the master control device may be controlled to send a test instruction to the controlled device at preset intervals, and then the time from when the master control device sends the test instruction to when the controlled device responds to the test instruction is detected, thereby taking the time as the network delay.
[0044] You can also read the hardware resource indicators and GPU performance indicators of the controlled device through the relevant interface at preset time intervals.
[0045] The hardware resource indicators refer to key indicators used to measure the usage of hardware resources. The hardware resource indicators include but are not limited to CPU usage and memory usage.
[0046] GPU performance indicators refer to key indicators used to measure GPU performance. GPU performance indicators include but are not limited to GPU usage, video memory size, and core frequency.
[0047] In other words, both hardware resource indicators and GPU performance indicators are indicators for measuring hardware performance.
[0048] In this way, by obtaining the network performance indicators between the master device and the controlled device, as well as the hardware resource indicators and GPU performance indicators of the controlled device, a more comprehensive and reasonable basis is provided for measuring the quality of the remote control connection from the perspective of network performance and the hardware performance of the controlled device.
[0049] Step S102, scoring the network performance index, the hardware resource index and the GPU performance index to obtain a quality score of the remote control connection.
[0050] The network performance indicators, hardware resource indicators and GPU performance indicators can be scored and processed to obtain the quality score of the remote control connection, thereby quantifying the network performance indicators, hardware resource indicators and GPU performance indicators into a more intuitive quality score.
[0051] Step S103: classify the quality score to obtain the quality level of the remote control connection.
[0052] In order to make the quality status of the remote control connection clearer, the quality score of the remote control connection may be graded to obtain the quality grade of the remote control connection.
[0053] Exemplarily, since the quality score is a score value (such as 0-10), the quality score can be compared with a predefined score interval of at least two quality levels, and the quality score belongs to the quality level to which the score interval belongs.
[0054] For example, the pre-defined quality levels include "poor", "medium" and "excellent", the score range of the "poor" quality level is 0-2, the score range of the "medium" quality level is "3-4", and the score range of the "excellent" quality level is "5-6". If the quality score is 5, the quality score belongs to the score range of the "excellent" quality level ("5-6"), and the quality score belongs to the "excellent" quality level.
[0055] It is understandable that the higher the quality score of the remote control connection, the higher the quality level of the remote control connection; the predefined quality level and its score range are not limited to the above examples and can be flexibly defined according to actual needs.
[0056] In this way, by classifying the quality scores of the remote control connections, it is possible to ensure that the quality scores correspond to clear quality levels, thereby facilitating rapid identification of the quality status of the remote control connections.
[0057] Step S104: Obtain the required resolution level of the remote control connection according to the quality level.
[0058] According to the quality level of the remote control connection, a suitable resolution level may be automatically selected as the required resolution level of the remote control connection.
[0059] In step S104 of some embodiments, a pre-constructed mapping relationship between quality levels and resolution levels may be obtained; based on the mapping relationship, the resolution level of the quality level may be determined; and the determined resolution level may be used as the required resolution level.
[0060] Exemplarily, a mapping relationship between quality levels and resolution levels may be pre-constructed, for example:
[0061] Quality Grade Resolution level excellent high middle medium Difference Low
[0062] Therefore, based on the pre-constructed mapping relationship between the quality level and the resolution level, the resolution level corresponding to the quality level of the remote control connection can be quickly determined, and the determined resolution level can be used as the required resolution level of the remote control connection.
[0063] It is understandable that the pre-built mapping relationship is not limited to the above examples and can be flexibly built according to actual needs.
[0064] In this way, the worse the quality level of the remote control connection, the lower the required resolution level, and the higher the quality level of the remote control connection, the higher the required resolution level. This achieves the goal of selecting an appropriate required resolution level for the remote control connection in accordance with the quality status of the remote control connection, thereby providing a more reasonable basis for resolution adjustment in remote control.
[0065] Step S105: adjusting the output resolution of the controlled device according to the required resolution level.
[0066] Finally, the output resolution of the controlled device is automatically adjusted according to the resolution range of the required resolution level.
[0067] For example, the resolution range of the "high" resolution level is 1920x1080, the resolution range of the "medium" resolution level is 1024x768, and the resolution range of the "low" resolution level is 640x480. If the required resolution level is "medium", the output resolution of the controlled device can be automatically adjusted to 1024x768.
[0068] In this way, the lower the quality level of the remote control connection, the lower the output resolution of the controlled device, which can ensure the stability of the remote control connection, thereby reducing the jamming and delay of the remote control interface and ensuring that users can smoothly perform remote control operations; the higher the quality level of the remote control connection, the higher the output resolution of the controlled device, which can provide a clearer and more detailed remote control interface, allowing users to have a better visual experience in remote control. This helps to balance the user's visual experience and operational smoothness in remote control, thereby optimizing the user's remote control experience.
[0069] Therefore, from the perspective of network performance and the hardware performance of the controlled device, the quality status of the remote control connection can be continuously monitored. Once the quality status of the remote control connection changes, the output resolution of the controlled device can be adaptively and dynamically adjusted to suit the quality status of the remote control connection, ensuring that the appropriate resolution is always provided to the user during remote control.
[0070] The method for adjusting the resolution provided in the above embodiment, when a remote control connection is established between a master control device and a controlled device, obtains the network performance indicators between the master control device and the controlled device, and obtains the hardware resource indicators and the GPU performance indicators of the controlled device; scores the network performance indicators, the hardware resource indicators and the GPU performance indicators to obtain a quality score for the remote control connection; grades the quality score to obtain a quality grade of the remote control connection; obtains the required resolution grade of the remote control connection according to the quality grade; and adjusts the output resolution of the controlled device according to the required resolution grade. In this way, by obtaining the network performance indicators between the main control device and the controlled device, as well as the hardware resource indicators and GPU performance indicators of the controlled device, a more comprehensive and reasonable basis is provided for measuring the quality status of the remote control connection; by scoring the network performance indicators, hardware resource indicators and GPU performance indicators, the network performance indicators, hardware resource indicators and GPU performance indicators are quantified into more intuitive quality scores; by grading the quality scores of the remote control connections, the quality level of the remote control connections can be clarified, thereby fitting the quality level of the remote control connections, and automatically selecting the appropriate required resolution level for the remote control connection, so that the output resolution of the controlled device is automatically adaptively adjusted according to the required resolution level, ensuring that the appropriate resolution is always provided to the user during remote control, thereby improving the compatibility and flexibility of resolution adjustment and ensuring a better user experience.
[0071] See also Figure 2 In some embodiments, step S102 includes but is not limited to steps S1021 to S1023.
[0072] Step S1021, scoring the network performance index to obtain a network performance score between the master device and the controlled device;
[0073] Step S1022, scoring the hardware resource index and the GPU performance index to obtain a hardware performance score of the controlled device;
[0074] Step S1023, the network performance score and the hardware performance score are added together to obtain a quality score.
[0075] In order to more carefully evaluate the quality of the remote control connection, the network performance indicators can be scored from the perspective of network performance to obtain the network performance score between the master device and the controlled device; the hardware resource indicators and GPU performance indicators of the controlled device can also be scored from the perspective of the hardware performance of the controlled device to obtain the hardware performance score of the controlled device; finally, the network performance score and the hardware performance score are added together to obtain the quality score of the remote control connection.
[0076] In this way, the network performance and the hardware performance of the controlled device can be evaluated, and their combined impact on the quality of the remote control connection can be evaluated, providing more detailed and accurate guidance for subsequent resolution adjustments.
[0077] In step S1021 of some embodiments, the network performance indicators include network available bandwidth, network delay and packet loss rate. The network available bandwidth can be quantified to obtain a quantitative score of the network available bandwidth; the network delay can be quantified to obtain a quantitative score of the network delay; the packet loss rate can be quantified to obtain a quantitative score of the packet loss rate; the quantitative scores of the network available bandwidth, the network delay and the packet loss rate can be weighted and summed to obtain a network performance score.
[0078] Network performance indicators include parameters such as network available bandwidth, network delay and packet loss rate.
[0079] The network available bandwidth can be quantified to obtain a quantified score of the network available bandwidth.
[0080] Exemplarily, the network available bandwidth can be compared with at least two predefined bandwidth intervals, and the quantized score of the bandwidth interval to which the network available bandwidth belongs is the quantized score of the network available bandwidth. For example, the predefined bandwidth intervals and their quantized scores are:
[0081] Lower bandwidth range: 0-1Mbps → quantization score 1
[0082] Low bandwidth range: 1 to 5 Mbps → quantization score 3
[0083] Medium bandwidth range: 5 to 10 Mbps → Quantization score 5
[0084] High bandwidth range: 10-20 Mbps → quantization score 7
[0085] Higher bandwidth range: 20Mbps and above → Quantitative score 10
[0086] If the network available bandwidth is 4 Mbps, which belongs to the low bandwidth range (1-5 Mbps), the quantitative score of the network available bandwidth is 3.
[0087] It is understandable that the more network available bandwidth there is, the higher the quantitative score of the network available bandwidth is. The pre-bandwidth interval and its quantitative score are not limited to the above examples and can be flexibly defined according to actual needs.
[0088] Similarly, the network delay is quantified to obtain a quantified score of the network delay; the packet loss rate is quantified to obtain a quantified score of the packet loss rate.
[0089] In this way, the network performance score can be obtained by performing weighted summation on the quantified scores of the network available bandwidth, the network delay, and the packet loss rate according to the corresponding weight values set in advance for the network available bandwidth, the network delay, and the packet loss rate.
[0090] For example, the network performance score y1=a1x1+a2x2+a3x3, where x1 represents the quantitative score of the network available bandwidth, x2 represents the quantitative score of the network delay, x3 represents the quantitative score of the packet loss rate, a1 represents the weight value of the network available bandwidth, a2 represents the weight value of the network delay, a3 represents the weight value of the packet loss rate, and a1+a2+a3=1.
[0091] It is understandable that network performance indicators include other parameters x n When y=a1x1+a2x2+a3x3…+a n x n , where a n Indicates other parameters x n The weight value of a1+a2+a3…+a n =1.
[0092] This makes it possible to quantify network performance indicators into more intuitive network performance scores.
[0093] In step S1022 of some embodiments, the hardware resource indicators include CPU usage and memory usage. The CPU usage can be quantified to obtain a quantitative score of the CPU usage; the memory usage can be quantified to obtain a quantitative score of the memory usage; the GPU performance indicator can be quantified to obtain a quantitative score of the GPU performance; the quantitative scores of the CPU usage, the memory usage and the GPU performance can be weighted and summed to obtain a hardware performance score.
[0094] Hardware resource indicators include parameters such as CPU usage and memory usage.
[0095] The CPU usage can be quantified to obtain a quantitative score of the CPU usage.
[0096] Exemplarily, the CPU usage may be compared with at least two predefined CPU usage intervals. To determine which CPU usage interval the CPU usage belongs to, a value in the quantitative score range of the CPU usage interval may be taken as the quantitative score of the CPU usage.
[0097] For example, the predefined CPU usage intervals and their quantitative score ranges are:
[0098] Low CPU usage range: 0% to 30% → Quantization score range 7 to 10
[0099] Medium CPU usage range: 31% to 60% → Quantization score range 4 to 6
[0100] High CPU usage range: 61% to 100% → Quantization score range 1 to 3
[0101] If the CPU usage is 20%, which belongs to the low CPU usage range (0% to 30%), then a value of 8 can be taken from 7 to 10 as the quantitative score of the CPU usage.
[0102] It is understandable that the lower the CPU usage, the higher the quantitative score of the CPU usage. The predefined CPU usage interval and its quantitative score range are not limited to the above examples and can be flexibly defined according to actual needs.
[0103] Similarly, the memory usage is quantified to obtain a quantitative score of the memory usage, and the GPU performance index is quantified to obtain a quantitative score of the GPU performance.
[0104] In this way, the corresponding weight values can be set in advance for the CPU usage, memory usage and GPU performance indicators, and the quantified scores of the CPU usage, memory usage and GPU performance indicators can be weighted and summed to obtain the hardware performance score.
[0105] For example, the hardware performance score y2=b1x1′+b2x′2+b3x3′, where x1′ represents the quantitative score of CPU utilization, x′2 represents the quantitative score of memory utilization, x3′ represents the quantitative score of GPU performance index, b1 represents the weight value of network available bandwidth, b2 represents the weight value of network delay, b3 represents the weight value of packet loss rate, and b1+b2+b3=1.
[0106] It is understandable that there are other metrics x′ to measure hardware performance n In the case of y2 = b1x1′ + b2x′2 + b3x3′… + b n x′ n , where a n Represents x′ n The weight value of b1+b2+b3…+b n =1.
[0107] As a result, the indicators for measuring hardware performance can be quantified into a more intuitive hardware performance score.
[0108] See also Figure 3 In some embodiments, after step S104, steps S106 to S108 may also be performed.
[0109] Step S106: obtaining operation information of the master device on the controlled device.
[0110] In order to improve the granularity of resolution adjustment, the resolution in remote control can be adjusted differently by region.
[0111] Specifically, the operation information of the user controlling the main control device to the controlled device is monitored and recorded, such as the mouse movement trajectory, mouse click frequency, mouse dwell time, and other operation information that can reflect the user's operating habits.
[0112] Step S107: performing operation area recognition processing on the operation information to obtain a key operation area in the interface of the controlled device.
[0113] The operation information is processed for operation area identification to obtain the key operation area of the user in the interface of the controlled device. For example, when the user frequently inputs text and edits in a document editing area, the document editing area will be identified as a key operation area.
[0114] Step S108: adjusting the output resolution of the controlled device according to the key operation area and the required resolution level.
[0115] In this way, the output resolution of the controlled device can be adjusted according to the key operating area and the required resolution level.
[0116] In step S108 of some embodiments, the output resolution of the key operation area may be adjusted to the target resolution; and the output resolutions of the remaining operation areas in the interface may be adjusted according to the required resolution level.
[0117] The output resolution of the key operation area can be adjusted to the target resolution, wherein the target resolution is a high resolution, and the specific value of the target resolution is not limited and can be flexibly set according to actual needs.
[0118] According to the required resolution level of the remote control connection, the output resolution of the remaining operation areas in the interface is adaptively adjusted.
[0119] In this way, by making differentiated adjustments to the resolution in remote control by region, it is possible to provide users with a better visual experience while ensuring the overall smoothness of remote control, especially in key operation areas that users are concerned about, allowing users to see the operation content more clearly and improve operational efficiency and comfort.
[0120] For example, in the remote control of a graphic design software, the area where the user is performing fine graphic drawing operations will maintain high resolution, while the surrounding areas such as the menu bar can appropriately reduce the resolution according to the quality score of the remote control connection to save resources of the network and the controlled device and ensure the overall smoothness of the remote control connection.
[0121] Therefore, if the user's operating habits change, the key operating area will be dynamically adjusted accordingly, and the resolution will always be optimized to meet the user's actual needs. This real-time response and dynamic resolution adjustment mechanism ensures a good remote control experience in various complex practical application scenarios.
[0122] See also Figure 4 , Figure 4 It is a schematic block diagram of a resolution adjustment device provided in an embodiment of the present application. The resolution adjustment device can be configured in a computer device to execute the aforementioned resolution adjustment method.
[0123] like Figure 4 As shown, the resolution adjustment device 400 includes: an indicator acquisition module 401, a scoring processing module 402, a level classification module 403, a resolution level acquisition module 404 and a resolution adjustment module 405.
[0124] The indicator acquisition module 401 is used to acquire the network performance indicator between the master control device and the controlled device, and acquire the hardware resource indicator and GPU performance indicator of the controlled device when the master control device and the controlled device establish a remote control connection;
[0125] A scoring processing module 402 is used to score the network performance index, the hardware resource index and the GPU performance index to obtain a quality score of the remote control connection;
[0126] A grading module 403, configured to grade the quality score to obtain a quality grade of the remote control connection;
[0127] A resolution level acquisition module 404, configured to acquire a required resolution level of the remote control connection according to the quality level;
[0128] The resolution adjustment module 405 is used to adjust the output resolution of the controlled device according to the required resolution level.
[0129] In one embodiment, the scoring processing module 402 is further used to:
[0130] Scoring the network performance index to obtain a network performance score between the master control device and the controlled device;
[0131] Scoring the hardware resource index and the GPU performance index to obtain a hardware performance score of the controlled device;
[0132] The network performance score and the hardware performance score are added together to obtain the quality score.
[0133] In one embodiment, the network performance indicators include network available bandwidth, network delay and packet loss rate, and the scoring processing module 402 is further used to:
[0134] Quantifying the available network bandwidth to obtain a quantized score of the available network bandwidth;
[0135] Quantifying the network delay to obtain a quantized score of the network delay;
[0136] Quantifying the packet loss rate to obtain a quantized score of the packet loss rate;
[0137] The network performance score is obtained by performing weighted sum processing on the quantified score of the network available bandwidth, the quantified score of the network delay, and the quantified score of the packet loss rate.
[0138] In one embodiment, the hardware resource indicators include CPU usage and memory usage, and the scoring processing module 402 is further used to:
[0139] Quantifying the CPU usage to obtain a quantitative score of the CPU usage;
[0140] Quantifying the memory usage to obtain a quantitative score of the memory usage;
[0141] Quantifying the GPU performance index to obtain a quantitative score of the GPU performance;
[0142] The quantified score of the CPU usage, the quantified score of the memory usage, and the quantified score of the GPU performance are weighted and summed to obtain the hardware performance score.
[0143] In one embodiment, the resolution adjustment device further includes an operation information acquisition module and an operation area identification module.
[0144] The operation information acquisition module is used to obtain the operation information of the master device on the controlled device;
[0145] The operation area identification module is used to perform operation area identification processing on the operation information to obtain a key operation area in the interface of the controlled device;
[0146] The resolution adjustment module 405 is further configured to adjust the output resolution of the controlled device according to the key operation area and the required resolution level.
[0147] In one embodiment, the resolution adjustment module 405 is further used to:
[0148] Adjusting the output resolution of the key operation area to a target resolution;
[0149] According to the required resolution level, the output resolution of the remaining operation areas in the interface is adjusted.
[0150] In one embodiment, the resolution level acquisition module 404 is further used to:
[0151] Obtain a pre-built mapping relationship between quality levels and resolution levels;
[0152] Based on the mapping relationship, determining a resolution level of the quality level;
[0153] The determined resolution level is used as the required resolution level.
[0154] Among them, each module in the above-mentioned resolution adjustment device 400 corresponds to each step in the above-mentioned resolution adjustment method embodiment, and its function and implementation process will not be described one by one here.
[0155] The resolution adjustment device 400 can execute the resolution adjustment method provided in the embodiment of the present application, and therefore can achieve the beneficial effects that can be achieved by the resolution adjustment method provided in the embodiment of the present application. Please refer to the previous embodiment for details, which will not be repeated here.
[0156] The method and apparatus of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0157] Exemplarily, the above method and apparatus may be implemented in the form of a computer program. The computer program may be implemented in the form of a computer program. Figure 5 Runs on the computer device shown.
[0158] See also Figure 5 , Figure 5 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.
[0159] See also Figure 5 The computer device includes a processor and a memory connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0160] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0161] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any resolution adjustment method.
[0162] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0163] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0164] When a remote control connection is established between a master control device and a controlled device, a network performance indicator between the master control device and the controlled device is obtained, and a hardware resource indicator and a GPU performance indicator of the controlled device are obtained;
[0165] Scoring the network performance indicator, the hardware resource indicator, and the GPU performance indicator to obtain a quality score of the remote control connection;
[0166] Performing a grading process on the quality score to obtain a quality grade of the remote control connection;
[0167] Acquire a required resolution level of the remote control connection according to the quality level;
[0168] The output resolution of the controlled device is adjusted according to the required resolution level.
[0169] In one embodiment, when the processor implements the scoring process of the network performance indicator, the hardware resource indicator, and the GPU performance indicator to obtain the quality score of the remote control connection, it is used to implement:
[0170] Scoring the network performance index to obtain a network performance score between the master control device and the controlled device;
[0171] Scoring the hardware resource index and the GPU performance index to obtain a hardware performance score of the controlled device;
[0172] The network performance score and the hardware performance score are added together to obtain the quality score.
[0173] In one embodiment, the network performance indicators include network available bandwidth, network delay and packet loss rate. When the processor implements the scoring process of the network performance indicators to obtain the network performance score between the master control device and the controlled device, it is used to implement:
[0174] Quantifying the available network bandwidth to obtain a quantized score of the available network bandwidth;
[0175] Quantifying the network delay to obtain a quantized score of the network delay;
[0176] Quantifying the packet loss rate to obtain a quantized score of the packet loss rate;
[0177] The network performance score is obtained by performing weighted sum processing on the quantified score of the network available bandwidth, the quantified score of the network delay, and the quantified score of the packet loss rate.
[0178] In one embodiment, the hardware resource indicator includes a CPU usage rate and a memory usage rate. When the processor implements the scoring process of the hardware resource indicator and the GPU performance indicator to obtain the hardware performance score of the controlled device, it is used to implement:
[0179] Quantifying the CPU usage to obtain a quantitative score of the CPU usage;
[0180] Quantifying the memory usage to obtain a quantitative score of the memory usage;
[0181] Quantifying the GPU performance index to obtain a quantitative score of the GPU performance;
[0182] The quantified score of the CPU usage, the quantified score of the memory usage, and the quantified score of the GPU performance are weighted and summed to obtain the hardware performance score.
[0183] In one embodiment, after acquiring the required resolution level of the remote control connection according to the quality level of the remote control connection, the processor is further configured to implement:
[0184] Obtaining operation information of the master device on the controlled device;
[0185] Performing operation area identification processing on the operation information to obtain a key operation area in the interface of the controlled device;
[0186] The output resolution of the controlled device is adjusted according to the key operation area and the required resolution level.
[0187] In one embodiment, when the processor adjusts the output resolution of the controlled device according to the key operating area and the required resolution level, it is used to implement:
[0188] Adjusting the output resolution of the key operation area to a target resolution;
[0189] According to the required resolution level, the output resolution of the remaining operation areas in the interface is adjusted.
[0190] In one embodiment, when the processor implements acquiring the required resolution level of the remote control connection according to the quality level, it is configured to implement:
[0191] Obtain a pre-built mapping relationship between quality levels and resolution levels;
[0192] Based on the mapping relationship, determining a resolution level of the quality level;
[0193] The determined resolution level is used as the required resolution level.
[0194] The computer device can execute the resolution adjustment method provided in the embodiment of the present application, and therefore can achieve the beneficial effects that can be achieved by the resolution adjustment method provided in the embodiment of the present application. For details, please refer to the previous embodiment and will not be repeated here.
[0195] An embodiment of the present application also provides a computer-readable storage medium.
[0196] The computer-readable storage medium of the present application stores a computer program, and when the computer program is executed by a processor, the steps of the resolution adjustment method as described above are implemented.
[0197] The computer-readable storage medium may be an internal storage unit of the resolution adjustment device or computer device described in the above embodiments, such as a hard disk or memory of the resolution adjustment device or computer device. The computer-readable storage medium may also be an external storage device of the resolution adjustment device or computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital Card, SD Card), a flash card (Flash Card), etc., equipped on the resolution adjustment device or computer device.
[0198] Since the computer program stored in the computer-readable storage medium can execute any one of the resolution adjustment methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the resolution adjustment methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0199] Furthermore, the computer-readable storage medium may mainly 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, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0200] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0201] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0202] The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should be included in the protection scope of the present application.
Claims
1. A method for adjusting resolution, characterized in that: The method comprises: When a remote control connection is established between a master control device and a controlled device, a network performance indicator between the master control device and the controlled device is obtained, and a hardware resource indicator and a GPU performance indicator of the controlled device are obtained; Scoring the network performance indicator, the hardware resource indicator, and the GPU performance indicator to obtain a quality score of the remote control connection; Performing a grading process on the quality score to obtain a quality grade of the remote control connection; Acquire a required resolution level of the remote control connection according to the quality level; The output resolution of the controlled device is adjusted according to the required resolution level.
2. The method according to claim 1, characterized in that: The scoring process of the network performance indicator, the hardware resource indicator and the GPU performance indicator to obtain the quality score of the remote control connection includes: Scoring the network performance index to obtain a network performance score between the master control device and the controlled device; Scoring the hardware resource index and the GPU performance index to obtain a hardware performance score of the controlled device; The network performance score and the hardware performance score are added together to obtain the quality score.
3. The method according to claim 2, characterized in that The network performance indicators include network available bandwidth, network delay and packet loss rate. The scoring process of the network performance indicators to obtain the network performance score between the master control device and the controlled device includes: Quantifying the available network bandwidth to obtain a quantized score of the available network bandwidth; Quantifying the network delay to obtain a quantized score of the network delay; Quantifying the packet loss rate to obtain a quantized score of the packet loss rate; The network performance score is obtained by performing weighted sum processing on the quantified score of the network available bandwidth, the quantified score of the network delay, and the quantified score of the packet loss rate.
4. The method according to claim 2, characterized in that: The hardware resource indicators include CPU usage and memory usage, and the scoring process of the hardware resource indicators and the GPU performance indicators to obtain the hardware performance score of the controlled device includes: Quantifying the CPU usage to obtain a quantitative score of the CPU usage; Quantifying the memory usage to obtain a quantitative score of the memory usage; Quantifying the GPU performance index to obtain a quantitative score of the GPU performance; The quantified score of the CPU usage, the quantified score of the memory usage, and the quantified score of the GPU performance are weighted and summed to obtain the hardware performance score.
5. The method according to claim 1, characterized in that After obtaining the required resolution level of the remote control connection according to the quality level of the remote control connection, the method further includes: Obtaining operation information of the master device on the controlled device; Performing operation area identification processing on the operation information to obtain a key operation area in the interface of the controlled device; The output resolution of the controlled device is adjusted according to the key operation area and the required resolution level.
6. The method according to claim 5, characterized in that The adjusting the output resolution of the controlled device according to the key operation area and the required resolution level includes: Adjusting the output resolution of the key operation area to a target resolution; According to the required resolution level, the output resolution of the remaining operation areas in the interface is adjusted.
7. The method according to claim 1, characterized in that The obtaining the required resolution level of the remote control connection according to the quality level includes: Obtain a pre-built mapping relationship between quality levels and resolution levels; Based on the mapping relationship, determining a resolution level of the quality level; The determined resolution level is used as the required resolution level.
8. A resolution adjustment device, characterized in that: The device comprises: An indicator acquisition module, used to acquire network performance indicators between the master control device and the controlled device, and to acquire hardware resource indicators and GPU performance indicators of the controlled device when a remote control connection is established between the master control device and the controlled device; A scoring processing module, used to score the network performance index, the hardware resource index and the GPU performance index to obtain a quality score of the remote control connection; A grading module, used for grading the quality score to obtain a quality grade of the remote control connection; A resolution level acquisition module, used to acquire a required resolution level of the remote control connection according to the quality level; The resolution adjustment module is used to adjust the output resolution of the controlled device according to the required resolution level.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the resolution adjustment method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the resolution adjustment method according to any one of claims 1 to 7 is implemented.