Method and apparatus for acquiring screen content, device and storage medium
By adjusting the resolution of the screen recording to match the display resolution of the terminal device, the problems of image distortion and black border cropping in screen recording and live streaming were solved, improving the quality and smoothness of screen content acquisition.
Patent Information
- Application Number
- PCT/CN2025/104781
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-28
- Filing Date
- 2025-06-27
- Publication Date
- 2026-01-02
AI Technical Summary
In screen recording and live streaming scenarios, the display resolution of the terminal device does not match the video resolution of the standard monitor, resulting in image distortion, black borders, or cropping.
By determining the display resolution of the terminal device, the resolution of the screen recording and live streaming is adjusted to a suitable second resolution to match the display resolution of the terminal device and avoid image distortion or black border cropping.
It enables adaptive adjustment of screen content resolution during screen recording and live streaming, avoiding image distortion and black borders or cropping of the display area, thus improving the quality and smoothness of screen content acquisition.
Smart Images

Figure CN2025104781_02012026_PF_FP_ABST
Abstract
Description
Method, device, apparatus and storage medium for screen content acquisition
[0001] The present application claims priority to the Chinese patent application No. 202410870303.2, filed on June 28, 2024, entitled “Method, device, apparatus and storage medium for screen content acquisition”, the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The example embodiments of the present disclosure generally relate to the field of computer, and in particular, to a method, device, electronic device and computer readable storage medium for screen content acquisition. BACKGROUND
[0003] In the screen recording live streaming scenario, the resolution of the screen content collected by the terminal device is usually based on the video resolution of the standard display (e.g., 16:9). However, the display resolution of some terminal devices (e.g., mobile phones, tablets) does not match the video resolution based on the standard display, and when the screen content of these terminal devices is collected based on the video resolution based on the standard display, picture distortion occurs, or a “black border area” or the picture is cropped. SUMMARY
[0004] In a first aspect of the present disclosure, a method for screen content acquisition is provided, comprising: in response to determining that a terminal device acquires screen content of the terminal device at a first resolution under a predetermined definition, determining a target adjustment mode corresponding to the predetermined definition from a plurality of adjustment modes, the first resolution corresponding to the predetermined definition; adjusting the first resolution to a second resolution based on a display resolution of the terminal device by using the target adjustment mode; and controlling the terminal device to acquire screen content at the second resolution under the predetermined definition.
[0005] In a second aspect of the present disclosure, an apparatus for screen content acquisition is provided, comprising: a determination module configured to determine a target adjustment mode corresponding to a predetermined definition from a plurality of adjustment modes in response to determining that a terminal device acquires screen content of the terminal device at a first resolution under the predetermined definition, the first resolution corresponding to the predetermined definition; an adjustment module configured to adjust the first resolution to a second resolution based on a display resolution of the terminal device by using the target adjustment mode; and a control module configured to control the terminal device to acquire screen content at the second resolution under the predetermined definition.
[0006] In a third aspect of the disclosure, an electronic device is provided. The electronic device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. The instructions, when executed by the at least one processor, cause the electronic device to perform the method of the first aspect.
[0007] In a fourth aspect of the disclosure, a computer-readable storage medium is provided. The computer-readable storage medium has stored thereon computer-executable instructions that are executable by a processor to implement the method of the first aspect.
[0008] In a fifth aspect of the disclosure, a computer-executable instruction product is provided, comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method of the first aspect.
[0009] It should be understood that the content described in this part is not intended to limit the key features or important features of the embodiments of the disclosure, nor is it used to limit the scope of the disclosure. Other features of the disclosure will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS
[0010] The above and other features, advantages, and aspects of embodiments of the disclosure will become more apparent by describing in detail some embodiments thereof with reference to the annexed drawings in which:
[0011] FIG. 1 shows a schematic diagram of an example environment in which embodiments of the disclosure can be implemented;
[0012] FIG. 2 shows a flowchart of a process of screen content acquisition according to some embodiments of the disclosure;
[0013] FIG. 3 shows a block diagram of an apparatus for screen content acquisition according to some embodiments of the disclosure; and
[0014] FIG. 4 shows a block diagram of an electronic device capable of implementing a plurality of embodiments of the disclosure. DETAILED DESCRIPTION
[0015] It can be understood that, before using the technical solutions disclosed by the embodiments of the disclosure, the type of personal information involved in the disclosure, the use range, the use scenario, etc. should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.
[0016] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed by the user will need to acquire and use personal information of the user. Thus, the user can autonomously select whether to provide the personal information to the software or hardware such as an electronic device, an application program, a server or a storage medium performing the operation of the technical solution of the present disclosure according to the prompt information.
[0017] As an optional but non-limiting implementation, in response to receiving an active request of a user, the manner of sending a prompt information to the user may, for example, be a pop-up window manner, and the prompt information may, for example, be presented in the pop-up window in the form of text. In addition, the pop-up window may, for example, also carry a selection control for the user to select “agree” or “disagree” to provide personal information to the electronic device.
[0018] It can be understood that the above notification and acquisition of user authorization process is only illustrative, and does not limit the implementation of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0019] It can be understood that the data involved in the technical solution (including but not limited to the data itself, acquisition or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein, rather, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the scope of protection of the present disclosure.
[0021] It should be noted that the titles of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and any type of embodiment can be included under any section / subsection. Furthermore, embodiments described in any section / subsection can be combined with any other embodiment described in the same section / subsection and / or a different section / subsection in any manner.
[0022] In this document, unless explicitly stated otherwise, performing a step “in response to A” does not mean that the step is performed immediately after “A”, but can include one or more intermediate steps.
[0023] In the description of embodiments of the disclosure, the term "includes" and its synonyms shall be understood as open inclusion, i.e., "including but not limited to". The term "based on" shall be understood as "at least partially based on". The term "one embodiment" or "the embodiment" shall be understood as "at least one embodiment". The term "some embodiments" shall be understood as "at least some embodiments". The following may also include other explicit and implicit definitions. The following may also include other explicit and implicit definitions.
[0024] As briefly mentioned in the foregoing, in the live screen recording scenario, the host manually selects or uses speed measurement recommendation to determine the resolution of the live broadcast at the beginning of the broadcast. Different resolutions correspond to different video resolutions based on standard displays. For example, the resolution of 1080p corresponds to the resolution of 1920x1080; the resolution of 720p corresponds to the resolution of 1280x720.
[0025] The live screen recording collects the screen content of the terminal device. The display resolution of some terminal devices does not match the video resolution based on standard displays. For example, the display resolution of a mobile phone is "long strip", i.e., the ratio of the width resolution to the height resolution exceeds 2:1; the ratio of the width resolution to the height resolution of a tablet computer is about 4:3.
[0026] If the video resolution based on standard displays is used to collect the screen content of the above terminal devices, the following two situations may occur: (1) the collected source picture completely fills the 16:9 display area, which may cause picture distortion; (2) in the 16:9 display area, the collected screen content is first filled in one side, and the other side is scaled according to the size of the device screen, which may cause large black edges or cropping on the display area.
[0027] Embodiments of the present disclosure provide a scheme for screen content acquisition. According to various embodiments of the present disclosure, a server device or a terminal device determines that the terminal device acquires the screen content of the terminal device at a first resolution under a predetermined resolution, and the first resolution corresponds to the predetermined resolution. Based on the display resolution of the terminal device, the first resolution is adjusted to a second resolution; and the terminal device is controlled to acquire the screen content at the second resolution under the predetermined resolution. By using the display resolution of the terminal device, the first resolution corresponding to the predetermined resolution is adjusted to the second resolution suitable for or matching the display resolution of the terminal device, and the terminal device is controlled to acquire the screen content at the second resolution under the predetermined resolution. Thus, the resolution of the content can be adaptively adjusted in the case of recording the screen content of the terminal device, thereby avoiding picture distortion or black edges or cropping on the display area.
[0028] FIG. 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, in some embodiments, the environment 100 can include a server 110 and a terminal device 120. In other embodiments, the environment 100 can include only the terminal device 120.
[0029] When the server 110 and the terminal device 120 are included in the environment 100, the terminal device 120 is deployed with an application supporting screen recording live streaming, an application supporting detection of terminal device performance, and an application supporting quality scoring of captured screen content. Alternatively, the server 110 is deployed with the application supporting detection of terminal device performance and the application supporting quality scoring of captured screen content, and the terminal device 120 is deployed with the application supporting screen recording live streaming.
[0030] When the environment 100 includes only the terminal device 120, the terminal device 120 is deployed with the application supporting screen recording live streaming, the application supporting detection of terminal device performance, and the application supporting quality scoring of captured screen content.
[0031] In the environment 100, the terminal device 120 can be any type of electronic device with computing capability, including a terminal electronic device or a server electronic device. The terminal electronic device can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) electronic device, a personal navigation electronic device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning electronic device, a television receiver, a radio broadcast receiver, an electronic book electronic device, a game electronic device, or any combination thereof, including accessories and peripherals of these electronic devices or any combination thereof. The server electronic device can include, for example, a computing system / server such as a mainframe, an edge computing node, an electronic device in a cloud environment, and the like.
[0032] The server 110 can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and basic cloud computing services such as big data and artificial intelligence platforms. The server 110 can include, for example, a computing system / server such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
[0033] A communication connection can be established between the server 110 and the terminal device 120. The communication connection can be established in a wired manner or a wireless manner. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 110 and the terminal device 120 can implement signaling interaction through the communication connection therebetween.
[0034] It should be understood that the structure and function of the environment 100 are described for illustrative purposes only, and do not imply any limitation on the scope of the present disclosure.
[0035] FIG. 2 shows a flowchart of a process 200 for screen content acquisition according to some embodiments of the present disclosure. In FIG. 2, the process 200 for screen content acquisition can be implemented in a server or a terminal device. For the convenience of discussion, the following will be described taking an example that a server performs a screen content acquisition process on a terminal device. Next, the scheme provided by the present disclosure for screen content acquisition will be described in detail in combination with FIG. 1. It should be understood that a similar process can also be performed locally by the terminal device 120.
[0036] At block 210, the server 110 determines, from a plurality of adjustment modes, a target adjustment mode corresponding to a predetermined definition in response to determining that the terminal device 120 acquires screen content of the terminal device 120 at a first resolution at the predetermined definition, the first resolution corresponding to the predetermined definition.
[0037] In some embodiments, acquiring screen content of the terminal device 120 can be in a scenario where screen recording live streaming needs to be implemented, such as game live streaming or live streaming of other content displayed on the screen of the terminal device 120. In the scenario of screen recording live streaming, the terminal device 120 can upload the acquired screen content to the server 110 in real time and transmit by the server 110 to other terminal devices for playing.
[0038] In some embodiments, before the screen recording live streaming starts, the definition can be manually set by a user, or the network speed of the terminal device 120 can be measured by network speed measurement software, and the definition is recommended to the user according to the measurement result. For example, in the case of poor network conditions, a lower definition can be selected; in the case of good network conditions, a higher definition can be selected. The definition selected by the user or the definition recommended by the network speed measurement software is the predetermined definition.
[0039] In some embodiments, the predetermined definition can include a plurality of levels, such as 1080p, 720p, 540p, and 540p or below. As described above, different definition corresponds to different resolution. After determining the definition of the terminal device 120 during the live screen recording, the resolution corresponding to the definition can be determined.
[0040] The adjustment mode here refers to the adjustment manner of the resolution. In some embodiments, for the recording of the screen content of the terminal device 110, the corresponding adjustment mode for different definition can be pre-configured for adjusting the resolution corresponding to different definition. That is, under different definition, different adjustment manner can be used to determine how to adjust the resolution of the collected screen content.
[0041] In some embodiments, the screen content of the electronic device 110 includes the picture presented on the screen of the electronic device during the screen recording, such as the picture of the running application. The presentation of the screen content can be authorized by the user, and the picture content to be presented can be selected by the user.
[0042] In block 220, the server 110 adjusts the first resolution to the second resolution based on the display resolution of the terminal device 120 using the target adjustment mode.
[0043] In some embodiments, the server 110 can be configured with a plurality of adjustment modes, or the server 110 can call a plurality of adjustment modes from the outside.
[0044] In some embodiments, the adjustment mode can include a first resolution adjustment mode, a second resolution adjustment mode, and a third resolution adjustment mode. For convenience, the "video resolution based on standard display" will be referred to as "standard resolution" in the following description. The resolution of the collected screen content of the terminal device 120 will be referred to as "target resolution". The three resolution adjustment modes will be described in detail below.
[0045] The first resolution adjustment mode: first align the width resolution of the target resolution with the width resolution of the standard resolution, and then determine the height resolution of the target resolution based on the ratio of the width resolution and the height resolution of the display resolution of the terminal device and the width resolution of the target resolution.
[0046] For example, the first resolution adjustment mode can be implemented in the following manner:
[0047] esolution_lrage=max{W target ,H target};
[0048] resolution_short = resolution_large / (max{W screen , H screen} / min{W screen , H screen}) ;
[0049] resolution_short mod 2 = 0;
[0050] Wherein, W target is the width resolution of the standard resolution, H target is the height resolution of the standard resolution, W screen is the width resolution of the display resolution, H screen is the height resolution of the display resolution, resolution_large is the width resolution of the target resolution, resolution_short is the height resolution of the target resolution, mod is the remainder function.
[0051] The second resolution adjustment mode: first align the height resolution of the target resolution with the height resolution of the standard resolution, then multiply the height resolution of the target resolution by the ratio of the width resolution and the height resolution of the display resolution of the terminal device to determine the width resolution of the target resolution, then perform 16 alignment correction on the width resolution of the target resolution.
[0052] For example, the second resolution adjustment mode can be implemented in the following way:
[0053] resolution_short_temp = min{W target , H target} ;
[0054] resolution_large_temp = resolution_short_temp x (max{W screen , H screen} / min{W screen , H screen}) ;
[0055] resolution_large = (resolution_large_temp + 16 - 1) / 16 x 16;
[0056] resolution_short = resolution_large / (max{W screen , H screen} / min{W screen , H screen}) ;
[0057] resolution_short mod 2=0;
[0058] wherein W target is the width resolution of the standard resolution, H target is the height resolution of the standard resolution, W screen is the width resolution of the display resolution, H screen is the height resolution of the display resolution, resolution_large is the width resolution of the target resolution, resolution_short is the height resolution of the target resolution, resolution_short_temp is an intermediate variable, resolution_large_temp is an intermediate variable, and mod is a modulo function.
[0059] The third resolution adjustment mode is: first determine the greatest common divisor of the width resolution and the height resolution of the display resolution of the terminal device, and determine the width resolution and the height resolution of the target resolution based on integer multiples of the greatest common divisor respectively.
[0060] For example, the third resolution adjustment mode can be implemented in the following way:
[0061] screen_gcd=gcd{W screen , H screen};
[0062] f(n)=(n×W screen / screen_gcd×16)×(n×H screen / screen_gcd×16);
[0063]
[0064] W capture =min_scale×W screen / screen_gcd×16;
[0065] H capture =min_scale×H screen / screen_gcd×16;
[0066] wherein W target is the width resolution of the standard resolution, H target is the height resolution of the standard resolution, W screen is the width resolution of the display resolution, H screen is the height resolution of the display resolution, W capture is the width resolution of the target resolution, Hcapture For the target resolution, the height resolution, screen_gcd is the greatest common divisor of the width resolution and the height resolution of the display resolution, gcd{} identifies a function of taking the greatest common divisor, and min_scale is the value of n when f(n) takes the minimum value.
[0067] In some embodiments, the server 110 can adjust the first resolution to obtain the second resolution by using the target adjustment mode described above.
[0068] For example, when the predetermined definition is 1080p, the server 110 can adjust the first resolution to the second resolution by using the first resolution adjustment mode. When the definition is 1080p, compared with obtaining the screen content of the terminal device by using the standard resolution, obtaining the screen content of the terminal device by using the second resolution obtained by using the first resolution adjustment mode can save the acquisition resources and the encoding resources of the terminal device, and can also optimize the power consumption of the terminal device, thereby improving the smoothness of obtaining the screen content.
[0069] For example, when the predetermined definition is 720p, the server 110 can adjust the first resolution to the second resolution by using the second resolution adjustment mode. When the definition is 720p, compared with obtaining the screen content of the terminal device by using the standard resolution, obtaining the screen content of the terminal device by using the second resolution obtained by using the second resolution adjustment mode can avoid the occurrence of a black border area or the cutting of a picture when the screen content of the terminal device is acquired, thereby improving the picture quality.
[0070] For example, when the predetermined definition is 540p or below, the server 110 can adjust the first resolution to the second resolution by using the third resolution adjustment mode. When the definition is 540p or below, compared with obtaining the screen content of the terminal device by using the standard resolution, obtaining the screen content of the terminal device by using the second resolution obtained by using the third resolution adjustment mode can greatly improve the power consumption and the picture quality of the terminal device.
[0071] It should be noted that the first resolution described above is the standard resolution mentioned in the foregoing, and the second resolution is the target resolution mentioned in the foregoing.
[0072] The foregoing discusses different adjustment modes in detail, and also mentions determining a more suitable adjustment mode for different definitions. The following will discuss in detail how to determine the target adjustment mode corresponding to each definition.
[0073] In some embodiments, the server 110 can determine the target adjustment mode corresponding to the predetermined definition from the plurality of adjustment modes based on the performance score of the terminal device 120.
[0074] Specifically, the server 110 can determine a plurality of performance scores of the terminal device 120 during acquisition of the screen content at a plurality of third resolutions at a predetermined definition, respectively, determine a target adjustment mode for adjusting the first resolution to the second resolution at the predetermined definition based on at least the plurality of performance scores. The plurality of third resolutions are obtained by adjusting the first resolution by different adjustment modes, respectively, and thus the plurality of third resolutions can be different. According to the scheme, the first resolution can be adjusted to obtain each third resolution according to different adjustment modes. However, the terminal device 120 can be controlled to acquire the screen content according to each third resolution in a period of time, and the performance scores of the terminal device 120 at each third resolution can be observed. Based on the observed performance scores, the target adjustment mode to be used for the predetermined definition can be determined from the plurality of adjustment modes.
[0075] In some embodiments, each performance score of the plurality of performance scores of the terminal device 120 can be determined by a performance score of a plurality of components in the terminal device 120, which are related to data processing for acquiring the screen content during the screen recording live streaming. It should be understood that one performance score of the terminal device 120 corresponds to one adjustment mode, i.e., the performance score of the terminal device 120 when the screen content of the terminal device 120 is acquired at the third resolution after the first resolution is adjusted to the third resolution by the adjustment mode.
[0076] The performance score of the terminal device 120 can be determined based on the respective performance scores of at least one component in the terminal device 120. The at least one component is a component related to data processing for acquiring the screen content during the screen recording live streaming. For example, the CPU, GPU, memory, etc. of the terminal device 120.
[0077] In some embodiments, the respective performance scores of the at least one component can be determined based on a component parameter-component performance score relationship curve. For example, the performance parameters of the related components in the terminal device 120 can be detected, and an interpolation method can be used to obtain the performance scores from the component parameter-component performance score relationship curve.
[0078] In determining the performance score of the terminal device 120, the performance scores of the at least one component in the terminal device 120 are obtained first, and then a weighted average, a weighted sum, or other operation results of the performance scores of the at least one component are determined as the performance score of the terminal device 120.
[0079] For example, taking the components shown in Table 1 as an example:
[0080] Table 1
[0081] The performance score of the terminal device 120 can be determined, for example, by the following method:
[0082] It should be understood that the weight value corresponding to the at least one component described above can be set as needed, and the present disclosure does not limit this.
[0083] Since the plurality of third resolutions are obtained by adjusting the first resolution by different adjustment modes, the performance score of the terminal device 120 can be obtained when the screen content of the terminal device 120 is collected at each third resolution. In some embodiments, the adjustment mode corresponding to the case where the performance score of the terminal device 120 is higher can be determined as the target adjustment mode for adjusting the first resolution to the second resolution at the predetermined definition.
[0084] In some embodiments, the resolution algorithm used to adjust the first resolution to the second resolution can be determined by the quality score of the screen content of the terminal device 120 collected.
[0085] Specifically, the quality scores of the plurality of screen contents of the terminal device 120 during the acquisition of the screen content at the plurality of third resolutions at the predetermined definition can be determined respectively, and the adjustment mode for adjusting the first resolution to the second resolution at the predetermined definition is determined based on the plurality of quality scores. The plurality of third resolutions are obtained by adjusting the first resolution by a plurality of adjustment modes. For example, the screen content of the terminal device 120 can be collected at each resolution obtained by the terminal device 120 according to different adjustment modes within a period of time, and the performance score and the quality score of the screen content at each resolution are observed at the same time.
[0086] It should be understood that one quality score of the screen content corresponds to one adjustment mode, that is, the quality score of the screen content of the terminal device 120 obtained at the third resolution is determined after the first resolution is adjusted to the third resolution by the adjustment mode.
[0087] Since the plurality of third resolutions are obtained by adjusting the first resolution by different adjustment modes, the quality score of the terminal device 120 can be obtained when the screen content of the terminal device 120 is collected at each third resolution. In some embodiments, the adjustment mode corresponding to the case where the performance score of the terminal device 120 is higher can be determined as the target adjustment mode for adjusting the first resolution to the second resolution at the predetermined definition.
[0088] In some embodiments, which resolution algorithm (i.e., target adjustment mode) is used to adjust the first resolution to the second resolution can be determined by comprehensively considering the performance score of the terminal device 120 and the quality score of the captured screen content of the terminal device 120. In some embodiments, a weighted average, a weighted sum, or other operation result of the performance score of at least one component of the terminal device 120 and the quality score of the screen content can be used as a comprehensive score of the terminal device 120. In some embodiments, the adjustment mode corresponding to a case where the comprehensive score of the terminal device 120 is higher can be determined as the target adjustment mode for adjusting the first resolution to the second resolution at the predetermined clarity.
[0089] At block 230, the server 110 controls the terminal device 120 to acquire the screen content of the terminal device 120 at the second resolution at the predetermined clarity.
[0090] After the resolution adjustment is completed, the second resolution can be determined to be more suitable for the terminal device 120. Therefore, in a subsequent screen content acquisition process, the terminal device 120 will acquire the screen content at the second resolution, for example, for screen recording live streaming.
[0091] In some embodiments, in a case where the server 110 determines the second resolution for the terminal device 120, the server 110 can send the second resolution to the terminal device 120 for use by the terminal device 120. In some embodiments, if the process 200 is implemented at the terminal device 120, the terminal device 120 itself will determine the second resolution obtained after the adjustment, and can use the second resolution to acquire the screen content.
[0092] According to embodiments of the present disclosure, the first resolution corresponding to the predetermined clarity can be adjusted to the second resolution suitable or matching the display resolution of the terminal device by using the display resolution of the terminal device, so that the resolution of the content can be adaptively adjusted in the case of recording the screen content of the terminal device, to avoid picture distortion, or black edges or cropping in the display area, etc.
[0093] FIG. 3 shows a block diagram of an apparatus 300 for screen content acquisition, according to some embodiments of the present disclosure. The apparatus 300 can be implemented as or included in the server 110 or the terminal device 120. Various modules / components in the apparatus 300 can be implemented by hardware, software, firmware, or any combination thereof.
[0094] As shown, the apparatus 300 includes a determining module 310 configured to determine, in response to determining that a terminal device acquires screen content of the terminal device at a first resolution at a predetermined clarity, a target adjustment mode corresponding to the predetermined clarity from a plurality of adjustment modes, the first resolution corresponding to the predetermined clarity. The apparatus 300 also includes an adjusting module 320 configured to adjust the first resolution to a second resolution using the target adjustment mode based on a display resolution of the terminal device. The apparatus 300 also includes a controlling module 330 configured to control the terminal device to acquire screen content at the second resolution at the predetermined clarity.
[0095] In some embodiments, the adjusting module 330 is further configured to, in response to the target adjustment mode being a first target adjustment mode, determine a width resolution in the first resolution as a width resolution of the second resolution, and determine a height resolution of the second resolution based on a height resolution of the first resolution and the display resolution.
[0096] In some embodiments, the adjusting module 330 is further configured to, in response to the target adjustment mode being a second target adjustment mode, determine a height resolution of the second resolution based on the display resolution and a predetermined integer multiple of a height resolution of the first resolution, and determine a width resolution of the second resolution based on the display resolution and the height resolution of the second resolution.
[0097] In some embodiments, the adjusting module 330 is further configured to, in response to the target adjustment mode being a third target adjustment mode, determine a greatest common divisor of a width resolution and a height resolution of the display resolution, and determine the second resolution based on the greatest common divisor, the first resolution, and the display resolution.
[0098] In some embodiments, the determining module 310 is further configured to determine a plurality of performance scores during a plurality of third resolutions at which the terminal device acquires the screen content at the predetermined clarity, respectively, the plurality of third resolutions being obtained by adjusting the first resolution using a plurality of adjustment modes, and determine the target adjustment mode for adjusting the first resolution to the second resolution at the predetermined clarity based on at least the plurality of performance scores.
[0099] In some embodiments, the determining module 310 is further configured to determine a plurality of quality scores of the screen content acquired by the terminal device at a plurality of third resolutions at the predetermined definition, the plurality of third resolutions being obtained by adjusting the first resolution using a plurality of modes, respectively, and determine the target adjustment mode of adjusting the first resolution to the second resolution at the predetermined definition based on the plurality of quality scores further.
[0100] FIG. 4 illustrates a block diagram of a terminal device in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device illustrated in FIG. 4 is merely exemplary and should not be construed as any limitation of the functionality and scope of the embodiments described herein. The electronic device illustrated in FIG. 4 can be used to implement the server 110 or the terminal device 120 of FIG. 1.
[0101] As shown in FIG. 4, the electronic device 400 is in the form of a general electronic device. The components of the electronic device 400 can include, but are not limited to, one or more processors or processing units 410, a memory 420, a storage electronic device 430, one or more communication units 440, one or more input electronic devices 450, and one or more output electronic devices 460. The processing unit 410 can be an actual or virtual processor and is capable of performing various processing according to programs stored in the memory 420. In a multi-processor system, multiple processing units perform computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 400.
[0102] The electronic device 400 typically includes a plurality of computer storage media. Such media can be any available media that is accessible by the electronic device 400 and includes both volatile and non-volatile media, removable and non-removable media. The memory 420 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage electronic device 430 can be a removable or non-removable media and can include machine-readable media, such as a flash drive, a magnetic disk drive, or any other media that can be used to store information and / or data and that can be accessed by the electronic device 400.
[0103] The electronic device 400 can further include additional detachable / non-detachable, volatile / non-volatile storage media. Although not shown in FIG. 4, a disk drive for reading from or writing to a detachable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a detachable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In these cases, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 420 can include a computer program product 425 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0104] The communication unit 440 enables communication with other electronic devices through communication media. Additionally, the functions of the components of the electronic device 400 can be implemented in a single computing cluster or a plurality of computer machines capable of communicating over a communication connection. As such, the electronic device 400 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0105] The input electronic device 450 can be one or more input electronic devices, such as a mouse, a keyboard, a trackball, etc. The output electronic device 460 can be one or more output electronic devices, such as a display, a speaker, a printer, etc. The electronic device 400 can also communicate with one or more external electronic devices (not shown) through the communication unit 440 as necessary, such as a storage electronic device, a display electronic device, etc., communicate with one or more electronic devices that enable a user to interact with the electronic device 400, or communicate with any electronic device (e.g., a network card, a modem, etc.) that enables the electronic device 400 to communicate with one or more other electronic devices. Such communication can be performed via an input / output (I / O) interface (not shown).
[0106] According to an example implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, where the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, there is also provided a computer program product tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, where the computer-executable instructions are executed by a processor to implement the method described above.
[0107] Various aspects of the disclosure are now described with reference to the drawings. In this regard, the drawings provide what is believed to be the most practical and readily ascertainable description of the methodologies, apparatuses, electronic devices, and computer program products implemented in accordance with the present disclosure. It should be readily understood that the various methodologies, apparatuses, electronic devices, and computer program products described herein can be implemented in software and / or hardware. As such, it should be understood that the various aspects of the disclosure could be implemented in many ways, including but not limited to in software and / or in hardware including one or more computer-readable storage media.
[0108] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium that can be a computer- readable storage medium having no data, programs, program modules, e.g., instructions for operation, or digital content stored thereon or therein for a short time or not at all. The computer readable storage medium can also have instructions stored thereon or therein which may
[0109] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other electronic device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0110] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other electronic device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0111] Various implementations of the disclosure have been described in detail above. The foregoing description is exemplary and explanatory only, and is not intended to be exhaustive or to limit various implementations of the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teachings without departing from the scope and spirit of the disclosure. It is intended that the scope of the disclosure be limited only by the claims and the equivalents thereof. The terms "comprises," "comprising," "includes," "including," and the like can be used herein and also specify the presence of stated features, integers, steps or components but do not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof. The terms "first," "second," and the like, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The terms "a" and "an" and "the" and similar reference use in the context of an implementation of the present disclosure, are to be construed to cover both the singular and the plural, unless otherwise indicated herein or otherwise clearly contradicted by context. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated in the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any of the website, remote information sources, online manuals, etc. described herein is not intended to limit the scope of various implementations of the disclosure to only those specifically identified herein, but rather the scope of various implementations of the disclosure is to be construed in accordance with the limitations set forth in the appended claims.
Claims
1.A method for screen content acquisition, comprising: determining a target adjustment mode corresponding to a predetermined definition from a plurality of adjustment modes in response to determining that a terminal device acquires screen content of the terminal device at a first resolution at the predetermined definition, the first resolution corresponding to the predetermined definition; adjusting the first resolution to a second resolution using the target adjustment mode based on a display resolution of the terminal device; and controlling the terminal device to acquire screen content at the second resolution at the predetermined definition. 2.The method of claim 1, wherein adjusting the first resolution to a second resolution using the target adjustment mode comprises: in response to the target adjustment mode being a first target adjustment mode, determining a width resolution in the first resolution as a width resolution of the second resolution; and determining a height resolution of the second resolution based on a height resolution of the first resolution and the display resolution. 3.The method of claim 1, wherein adjusting the first resolution to a second resolution using the target adjustment mode comprises: in response to the target adjustment mode being a second target adjustment mode, determining a height resolution of the second resolution based on the display resolution and a predetermined integer multiple of a height resolution of the first resolution; and determining a width resolution of the second resolution based on the display resolution and the height resolution of the second resolution. 4.The method of claim 1, wherein adjusting the first resolution to a second resolution using the target adjustment mode comprises: in response to the target adjustment mode being a third target adjustment mode, determining a greatest common divisor of a width resolution and a height resolution of the display resolution; and determining the second resolution based on the greatest common divisor, the first resolution, and the display resolution. 5.The method of claim 1, wherein determining the target adjustment mode comprises: determining a plurality of performance scores during the terminal device acquires the screen content at a plurality of third resolutions at the predetermined definition, respectively, the plurality of third resolutions being adjusted from the first resolution using a plurality of adjustment modes; and determining the target adjustment mode that adjusts the first resolution to the second resolution at the predetermined definition based on at least the plurality of performance scores. 6.The method of claim 1, wherein determining the target adjustment mode comprises: determining a plurality of quality scores of the screen content acquired by the terminal device at a plurality of third resolutions at the predetermined definition, respectively, the plurality of third resolutions being adjusted from the first resolution using a plurality of adjustment modes; and determining the target adjustment mode that adjusts the first resolution to the second resolution at the predetermined definition based on the plurality of quality scores. 7.An apparatus for screen content acquisition, comprising: A determining module, configured to determine a target adjustment mode corresponding to a predetermined definition from a plurality of adjustment modes in response to determining that the terminal device acquires screen content of the terminal device at a first resolution under the predetermined definition, the first resolution corresponding to the predetermined definition; An adjusting module, configured to adjust the first resolution to a second resolution by using the target adjustment mode based on a display resolution of the terminal device; and A control module, configured to control the terminal device to acquire screen content at the second resolution under the predetermined definition. 8.An electronic device, comprising: at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions, when executed by the at least one processor, cause the electronic device to perform the method according to any one of claims 1 to 6. 9.A computer-readable storage medium having computer-executable instructions stored thereon, the computer-executable instructions executable by a processor to implement the method according to any one of claims 1 to 6. 10.A computer-executable instruction product comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for regulating kinescope image quality of broadcast videocorder
CN101282440A
Method and device for switching screen recording live broadcast resolution
CN107454457A
Screen resolution adjusting method and device, terminal equipment and storage medium
CN113296664A
Screen recording method and device, storage medium and electronic equipment
CN115617288A
Digital video recorder that enables recording at a selected resolution
US20160249099A1