Image processing method and apparatus, and electronic device

By dynamically determining the target screen capture parameters, it solves the problem in the existing technology that the image resolution and frame rate cannot be flexibly adjusted during screen sharing, improves the screen sharing effect in online conference scenarios, and meets the needs of various scenarios.

WO2024222439A1PCT designated stage expired Publication Date: 2024-10-31BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086628
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-23
Filing Date
2024-04-08
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In the existing technology, when sharing screens in online conference scenarios, the preset screen capture parameters are fixed, resulting in the inability to flexibly adjust the resolution and frame rate of the image, affecting the display effect, and failing to meet the needs of various scenarios.

Method used

By determining the first screen acquisition parameters from multiple preset screen acquisition parameters, the type of display content and the amount of idle computing resources are obtained, the target screen acquisition parameters are dynamically determined, the display content is processed based on these parameters, the target image is obtained, and sent To the electronic device to be shared.

Benefits of technology

It improves the accuracy and flexibility of target screen acquisition parameters, improves the effect of screen sharing, meets the needs of multiple scenes, and enhances the flexibility of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086628_31102024_PF_FP_ABST
    Figure CN2024086628_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an image processing method and apparatus, and an electronic device. The method comprises: determining a first screen acquisition parameter from a plurality of / a plurality of groups of preset screen acquisition parameters of an electronic device; obtaining the type of display content in a screen of the electronic device and the amount of idle computing resources of the electronic device; on the basis of the first screen acquisition parameter, the type of the display content, and the amount of the idle computing resources, determining a target screen acquisition parameter of the electronic device; and on the basis of the target screen acquisition parameter, processing the display content to obtain a target image.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing method, device and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to the Chinese patent application with application number 202310441472.X and application date April 23, 2023. The disclosed content of the Chinese patent application is hereby introduced as a whole into this application. Technical Field

[0003] The embodiments of the present disclosure relate to the field of image processing technology, and in particular to an image processing method, device, and electronic device. Background Art

[0004] In online conference scenarios, screen sharing is often involved, that is, an electronic device can share the content currently displayed on the screen of the electronic device or share a specific file with other electronic devices.

[0005] Currently, electronic devices can capture data associated with an image displayed on a screen based on preset screen capture parameters to generate a shared image and transmit the shared image to other electronic devices. For example, an electronic device can determine the number of pixels in a shared image based on a preset resolution and the frequency at which the shared image is displayed per second based on a preset frame rate.

[0006] Summary of the Invention

[0007] The present disclosure provides an image processing method, apparatus, and electronic device.

[0008] In a first aspect, the present disclosure provides an image processing method, the method comprising:

[0009] Determine a first screen capture parameter from a plurality of / groups of preset screen capture parameters of the electronic device;

[0010] Acquiring the type of displayed content on the screen of the electronic device and the amount of idle computing resources of the electronic device;

[0011] determining a target screen capture parameter of the electronic device based on the first screen capture parameter, the type of the display content, and the amount of the idle computing resources;

[0012] The display content is processed based on the target screen acquisition parameters to obtain a target image.

[0013] In a second aspect, the present disclosure provides an image processing device, comprising a first determination module, an acquisition module, a second determination module, and a processing module, wherein:

[0014] The first determining module is configured to determine a first screen acquisition parameter from a plurality of / groups of preset screen acquisition parameters of the electronic device;

[0015] The acquisition module is used to acquire the type of display content on the screen of the electronic device and the amount of idle computing resources of the electronic device;

[0016] The second determining module is configured to determine a target screen capture parameter of the electronic device based on the first screen capture parameter, the type of the display content, and the amount of the idle computing resources;

[0017] The processing module is configured to process the display content based on the target screen acquisition parameters to obtain a target image.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: a processor and a memory;

[0019] The memory stores computer-executable instructions;

[0020] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the image processing method as described in the first aspect and various possible aspects of the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method as described in the first aspect and various possible aspects of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0024] FIG2 is a schematic diagram of a flow chart of an image processing method provided by an embodiment of the present disclosure;

[0025] FIG3 is a schematic diagram of determining first screen capture parameters according to an embodiment of the present disclosure;

[0026] FIG4 is a schematic diagram of a process for determining second screen capture parameters according to an embodiment of the present disclosure;

[0027] FIG5 is a schematic diagram of a process for determining a target image according to an embodiment of the present disclosure;

[0028] FIG6 is a schematic diagram of a method for determining target screen acquisition parameters provided by an embodiment of the present disclosure;

[0029] FIG7 is a schematic diagram of a process for determining target screen acquisition parameters according to an embodiment of the present disclosure;

[0030] FIG8 is a schematic diagram of an image processing method according to an embodiment of the present disclosure;

[0031] FIG9 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure; and

[0032] FIG10 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0034] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.

[0035] Electronic device: is a device with wireless transceiver function. The electronic device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, an on-board electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical care, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be referred to as a terminal, user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. The electronic device can also be fixed or mobile.

[0036] The application scenario of the embodiment of the present disclosure is described below with reference to FIG1 .

[0037] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. Please refer to Figure 1, which includes an electronic device 1 and an electronic device 2. Among them, the electronic device 1 and the electronic device 2 are communicatively connected, the electronic device 1 can be a device for sharing the screen, and the content displayed on the screen of the electronic device 1 is image A. When the electronic device 1 and the electronic device 2 share the screen, the electronic device 1 can process the image A based on the screen acquisition parameters to obtain the image a corresponding to the image A, and send the image a to the electronic device 2, wherein the objects included in the image A are the same as the objects included in the image a. After receiving the image a, the electronic device 2 can display the image a on the screen, thereby realizing the screen sharing effect of the electronic device 1 to the electronic device 2.

[0038] It should be noted that FIG1 is only an illustrative illustration of the application scenario of the embodiment of the present disclosure, and does not limit the application scenario of the embodiment of the present disclosure.

[0039] In related technologies, electronic devices can process the displayed content on the screen based on preset screen capture parameters to obtain a shared image. For example, if the preset screen capture parameters include a resolution of 1024*768 and a frame rate of 30 frames, the electronic device can capture image data based on the resolution of 1024*768 to obtain a shared image, and determine the display frequency of the shared image based on the frame rate of 30 frames. However, in the above method, the preset screen capture parameters are fixed and unchanged. In any scenario, the resolution and frame rate of the shared image are the same, which results in low flexibility in the electronic device in acquiring images and poor display effects of the shared images.

[0040] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides an image processing method, which determines a first screen acquisition parameter from multiple / multiple groups of preset screen acquisition parameters of an electronic device, obtains the type of display content in the screen of the electronic device and the amount of idle computing resources of the electronic device, determines the target screen acquisition parameter of the electronic device based on the first screen acquisition parameter, the type of display content and the amount of idle computing resources, processes the display content based on the target screen acquisition parameter to obtain a target image, and sends the target image to the electronic device to which the electronic device is connected and the screen is to be shared or the electronic device to be projected. In the above method, since the target screen acquisition parameter is determined based on the first screen acquisition parameter, the display content of the electronic device and the amount of idle computing resources, the target screen acquisition parameter can meet the needs of multiple scenarios and improve the accuracy of the target screen acquisition parameter. Moreover, since the type of display content and the amount of idle computing resources are dynamically changing, the flexibility of the target screen acquisition parameter can be improved, thereby improving the flexibility of obtaining the target image and improving the effect of screen sharing.

[0041] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0042] FIG2 is a flow chart of an image processing method provided by an embodiment of the present disclosure. Referring to FIG2 , the method may include:

[0043] S201: Determine a first screen capture parameter from multiple / multiple groups of preset screen capture parameters of the electronic device.

[0044] The execution subject of the embodiments of the present disclosure may be an electronic device or an image processing device provided in the electronic device. The image processing device may be implemented based on software or a combination of software and hardware, which is not limited in the embodiments of the present disclosure.

[0045] The screen capture parameters may include, but are not limited to, resolution and frame rate. Resolution may indicate the number of pixels in an image, and frame rate may indicate the frequency at which an image is displayed on the screen of an electronic device per unit time. For example, the resolution of the screen capture parameter may be 800*600, 1024*768, etc., and the frame rate of the screen capture parameter may be 30 frames, 60 frames, etc., which are not limited in the present embodiment.

[0046] For example, if the resolution of the screen capture parameter is 800*600, the number of pixels in the image captured by the electronic device based on this resolution is 800*600; if the resolution of the screen capture parameter is 1024*768, the number of pixels in the image captured by the electronic device based on this resolution is 1024*768. For example, if the frame rate of the screen capture parameter is 30 frames, the image captured by the electronic device can be displayed on the screen of the electronic device 30 times per second.

[0047] Optionally, the first screen capture parameters may be static screen capture parameters, and the first screen capture parameters may include a first resolution and a first frame rate. For example, the electronic device may determine the first screen capture parameters based on a variety of information (e.g., scene type, scene mode, network type, screen parameters of the electronic device, etc.). Since the frequency of change of the various information used to determine the first screen capture parameters is low, the first screen capture parameters may be static parameters.

[0048] Optionally, the preset screen capture parameters may be screen capture parameters associated with information such as scene type, scene mode, network type, screen parameters of the electronic device, etc. The screen capture parameters may be pre-set parameters, which are not limited in the embodiments of the present disclosure.

[0049] Specifically, the electronic device can determine the first screen acquisition parameters based on the following feasible implementation methods: obtaining the processing scenario of the electronic device, obtaining the processing mode corresponding to the processing scenario, obtaining the network type corresponding to the processing scenario, and based on the processing scenario, processing mode and network type, determining the first screen acquisition parameters from multiple / multiple groups of preset screen acquisition parameters of the electronic device.

[0050] The processing scenarios include projection scenarios and / or sharing scenarios. For example, the processing scenario of an electronic device can be projection scenarios or sharing scenarios. In the projection scenario, the electronic device can project the content displayed on the screen to a projection area (such as a wall, projection screen, etc.). In the sharing scenario, the electronic device can share the content displayed on the screen with the screens of other electronic devices.

[0051] Among them, the processing mode may include a clarity mode and / or a fluency mode. For example, in actual application, if the processing mode of the electronic device is a clarity mode, the resolution of the first screen acquisition parameter is higher; if the processing mode of the electronic device is a fluency mode, the frame rate of the first screen acquisition parameter is higher. For example, in a screen projection scenario, if the processing mode is a clarity mode, it means that the resolution of the projected image is higher; if the processing mode is a fluency mode, it means that the frame rate of the projected image is higher.

[0052] The network type may include a public network type or a P2P content distribution network (PCDN) type, which is not limited in the embodiment of the present disclosure.

[0053] Optionally, the electronic device determines the first screen capture parameter from multiple / multiple groups of preset screen capture parameters of the electronic device based on the processing scenario, processing mode, and network type. There are two feasible implementation methods:

[0054] A possible implementation:

[0055] The electronic device may determine the first screen capture parameter from a plurality of / groups of preset screen capture parameters of the electronic device based on the processing scenario, the processing mode, and the network type.

[0056] 3 , the process of determining the first screen capture parameter from multiple / multiple groups of preset screen capture parameters of the electronic device in this implementation will be described below.

[0057] FIG3 is a schematic diagram of determining the first screen acquisition parameters provided by an embodiment of the present disclosure. Please refer to FIG3 , which includes: a processing scenario. The processing scenario may include a screen sharing scenario and a screen projection scenario. In the screen sharing scenario, the network type of the screen sharing is a public network type. If the processing mode in the scenario is a clarity mode, the first screen acquisition parameters may include resolution A and frame rate a. If the processing mode in the scenario is a smoothness mode, the first screen acquisition parameters may include resolution B and frame rate b.

[0058] Please refer to Figure 3. In the screen projection scenario, the network type of screen projection can include a public network type and a P2P network type. In the public network type screen projection scenario, if the processing mode is a clarity mode, the first screen acquisition parameter can include a resolution C and a frame rate c. If the processing mode is a smoothness mode, the first screen acquisition parameter can include a resolution D and a frame rate d.

[0059] Referring to Figure 3, in a P2P network-type screen projection scenario, if the processing mode is clarity mode, the first screen capture parameters may include resolution E and frame rate e. If the processing mode is smoothness mode, the first screen capture parameters may include resolution F and frame rate f. In this way, the first screen capture parameters are determined based on the electronic device's processing scenario, processing mode, and network type, and therefore have a high degree of accuracy.

[0060] It should be noted that the parameters such as resolution A, frame rate a, resolution B, frame rate b, resolution C, frame rate c in the embodiment shown in Figure 3 can be multiple / multiple groups of preset screen acquisition parameters of the electronic device. The above-mentioned preset screen acquisition parameters are associated with the processing scenario, processing mode and network type. Therefore, the electronic device can determine the first screen acquisition parameter from multiple / multiple groups (such as one resolution or one frame rate, or a group of resolution and frame rate) of preset screen acquisition parameters based on the processing scenario, processing mode and network type.

[0061] It should be noted that the different resolutions and frame rates in the embodiment shown in Figure 3 can be pre-set parameters. The electronic device can pre-set the relevant resolution and frame rate for each processing scenario, processing mode and network type based on parameters such as the model of the electronic device, the model of the central processing unit (CPU), the model of the graphics processing unit (GPU), the type of the system, and the version of the system. The electronic device can also determine the resolution and frame rate related to each processing scenario, processing mode and network type based on any other feasible implementation method. The embodiments of the present disclosure are not limited to this.

[0062] In this way, the electronic device can determine the first screen acquisition parameters in combination with different processing scenarios, processing modes, and network types, thereby improving the accuracy of the first screen acquisition parameters.

[0063] Another possible implementation:

[0064] Optionally, the electronic device can obtain the screen parameters of the electronic device and the screen parameters of other electronic devices corresponding to the processing scenario received from the server, determine the screen acquisition parameters to be processed based on the processing scenario, processing mode and network type, and determine the first screen acquisition parameters based on the screen parameters of the electronic device, the screen parameters of other electronic devices corresponding to the processing scenario and the screen acquisition parameters to be processed.

[0065] The screen parameters of the electronic device may include the resolution of the screen of the electronic device. For example, if the resolution of the screen of the electronic device is 1024*768, the screen parameters of the electronic device may include the resolution 1024*768. The electronic device may obtain the screen parameters from the system information or based on any other feasible implementation method, which is not limited in the embodiments of the present disclosure.

[0066] Optionally, the screen parameters of other electronic devices corresponding to the processing scenario received from the server may include screen resolution and / or frame rate. For example, in a screen sharing scenario, the electronic device sharing the screen can share the content displayed on the screen with other electronic devices, and the other electronic devices can send the screen resolution and frame rate of the other electronic devices to the server, and the electronic device sharing the screen can receive the screen resolution and frame rate of the other electronic devices from the server (i.e., the screen parameters of the downlink feedback).

[0067] It should be noted that, in this implementation, the method for the electronic device to obtain the screen acquisition parameters to be processed may refer to the embodiment shown in FIG3 , and the embodiments of the present disclosure are not limited thereto.

[0068] Optionally, after the electronic device determines the screen acquisition parameters to be processed, it may determine the first screen acquisition parameters based on the screen parameters of the electronic device, the screen parameters of other electronic devices corresponding to the processing scenario, and the screen acquisition parameters to be processed. For example, if the screen acquisition parameters to be processed include resolution A and frame rate a, the screen parameter of the electronic device is resolution B, and the screen parameters received from the server are resolution C and frame rate c, then the electronic device may determine the minimum resolution among resolution A, resolution B, and resolution C, and obtain the frame rate corresponding to the minimum resolution, thereby obtaining the first screen acquisition parameters. For example, if the resolution among the screen parameters received from the server is the smallest, then the electronic device may determine that the first screen acquisition parameters may include the resolution and frame rate among the screen parameters received from the server.

[0069] It should be noted that if the minimum resolution does not have a corresponding frame rate, the electronic device can determine the frame rate corresponding to the minimum resolution based on the mapping relationship between resolution and frame rate, and then obtain the first screen capture parameter.

[0070] In this feasible implementation, the electronic device can further obtain first screen acquisition parameters with a high degree of matching with multiple screens based on the screen parameters of the electronic device and the screen parameters of other electronic devices, thereby improving the accuracy of the first screen acquisition parameters.

[0071] S202: Acquire the type of display content on the screen of the electronic device and the amount of idle computing resources of the electronic device.

[0072] The display content may be dynamic display content or static display content. For example, the display content type may include static type and dynamic type. If the display content is an image, document, etc., the display content is static display content and the display content type may be static type. If the display content is a video, the display content is dynamic display content and the display content type may be dynamic type.

[0073] It should be noted that the type of displayed content is related to the content displayed on the electronic device screen and has little correlation with the user's operations on the electronic device screen. For example, if the content displayed on the electronic device screen is an image, the type of displayed content can be static. When the user swipes the screen downward, although the image on the screen moves, the type of displayed content can also be static.

[0074] Optionally, the electronic device may obtain the displayed content on the screen and thereby determine the type of the displayed content. For example, the electronic device may obtain the displayed content and determine the type of the displayed content using a content detection module (used to detect the content displayed on the screen). The electronic device may also determine the type of the displayed content using any other feasible implementation method, which is not limited in the present embodiment.

[0075] The amount of idle computing resources of the electronic device may include, but is not limited to, idle CPU resources and idle GPU resources of the electronic device. For example, the electronic device may determine the amount of idle computing resources of the electronic device based on device information such as CPU usage and GPU usage. The electronic device may also determine the amount of idle computing resources of the electronic device based on any feasible implementation method, which is not limited in the embodiments of the present disclosure.

[0076] It should be noted that an electronic device can obtain the type of displayed content when the displayed content changes. For example, when an image or video begins to be displayed on the screen of an electronic device, the electronic device can obtain the type of displayed content. For example, if the content displayed on the screen of an electronic device is an image, and the displayed content changes to a video, the electronic device can obtain the type of displayed content. The electronic device can also obtain the type of displayed content under any other feasible conditions, and the embodiments of the present disclosure are not limited to this.

[0077] It should be noted that the electronic device can obtain the amount of idle computing resources of the electronic device when the device performance changes. For example, when the performance of the electronic device degrades (such as when other programs are started), the electronic device can obtain the amount of idle computing resources. For example, after the performance of the electronic device degrades, if the performance of the electronic device recovers, the electronic device can obtain the amount of idle computing resources. The electronic device can also obtain the amount of idle computing resources under any other feasible conditions, which is not limited in the embodiments of the present disclosure.

[0078] S203: Determine a target screen capture parameter of the electronic device based on the first screen capture parameter, the type of displayed content, and the amount of idle computing resources.

[0079] Specifically, the electronic device can determine the target screen acquisition parameters of the electronic device based on the following feasible implementation methods: determine the second screen acquisition parameters corresponding to the type of the displayed content, and determine the target screen acquisition parameters of the electronic device based on the first screen acquisition parameters, the second screen acquisition parameters and the amount of idle computing resources.

[0080] Among them, the second screen acquisition parameter may include a second resolution and a second frame rate. For example, the type of display content in the electronic device is different, and the second resolution and second frame rate obtained by the electronic device are also different. For example, if the type of displayed content is static, it means that when the electronic device shares the screen, the clarity requirement of the shared content is high and the fluency requirement is low. Therefore, the second resolution of the second screen acquisition parameter is high and the second frame rate is low. If the type of displayed content is dynamic, it means that when the electronic device shares the screen, the clarity requirement of the shared content is low and the fluency requirement is high. Therefore, the second resolution of the second screen acquisition parameter is low and the second frame rate is high.

[0081] For example, if the displayed content is a static image, the electronic device determines a higher second resolution and a lower second frame rate; if the displayed content is a dynamic video, the electronic device determines a lower second resolution and a higher second frame rate.

[0082] Optionally, the electronic device can pre-set the second screen acquisition parameters corresponding to each type of displayed content, and then determine the second screen acquisition parameters according to the type of displayed content. The electronic device can also determine the second screen acquisition parameters based on any other feasible implementation method, which is not limited to the embodiments of the present disclosure.

[0083] The process of determining the second screen acquisition parameters will be described below with reference to FIG. 4 .

[0084] Figure 4 is a schematic diagram of a process for determining second screen capture parameters according to an embodiment of the present disclosure. Referring to Figure 4 , the present invention includes an electronic device. The display content on the screen of the electronic device is an image, and the electronic device may determine that the display content is of a static type. Therefore, the electronic device may determine static second screen capture parameters, which may include resolution A and frame rate a.

[0085] Referring to Figure 4 , if the display content on the electronic device's screen transforms from an image to a video, the electronic device can determine that the displayed content is dynamic. Therefore, the electronic device can determine dynamic second screen capture parameters, which may include resolution B and frame rate b. In this way, based on the type of displayed content, the electronic device can obtain second screen capture parameters that match the displayed content, thereby improving the accuracy of the second screen capture parameters and enhancing the display quality of the electronic device.

[0086] Optionally, the electronic device may determine the target screen capture parameters based on the first resolution and first frame rate of the first screen capture parameters, the second resolution and second frame rate of the second screen capture parameters, and the amount of idle computing resources. For example, the electronic device may determine the resolution and frame rate associated with the current processing scenario, processing mode, network type, screen parameters, and display content based on the first resolution, second resolution, first frame rate, and second frame rate, and adjust the resolution and frame rate based on the amount of idle computing resources to obtain the target screen capture parameters, thereby improving the accuracy and flexibility of the target screen capture parameters.

[0087] S204: Process the display content based on the target screen acquisition parameters to obtain a target image.

[0088] The electronic device can process the display content based on the resolution and frame rate in the target screen acquisition parameters to obtain the target image. For example, the electronic device can perform pixel acquisition processing on the data associated with the display content (image or video) based on the resolution of the target screen acquisition parameters. The electronic device can determine the acquisition frequency of the data associated with the display content based on the frame rate of the target screen acquisition parameters, thereby obtaining the target image. For example, if the resolution of the target screen acquisition parameters is 800*600 and the frame rate is 120 frames, the electronic device can acquire 120 target images per second as an image sequence, and the resolution of each target image is 800*600.

[0089] The process of determining the target image is described below with reference to FIG5 .

[0090] FIG5 is a schematic diagram of a process for determining a target image provided by an embodiment of the present disclosure. Referring to FIG5 , it includes: an electronic device. The screen of the electronic device includes image A, and the resolution of image A is 1024*768, which may also be the screen resolution of the electronic device. If the resolution of the target screen parameter is 800*600 and the frame rate is 30 frames, the electronic device may capture image data of image A based on the resolution of 800*600 to obtain image a, and the resolution of image a is 800*600, and the frame rate of image a may be 30 frames.

[0091] Embodiments of the present disclosure provide an image processing method in which an electronic device can obtain a processing scenario, processing mode, network type, screen parameters of the electronic device, and screen parameters of other electronic devices corresponding to the processing scenario. Based on the above information, the electronic device determines a first screen capture parameter from multiple / multiple sets of preset screen parameters of the electronic device. The method also obtains the type of displayed content on the screen of the electronic device and the amount of idle computing resources of the electronic device, determines a second screen capture parameter corresponding to the type of displayed content, and determines a target screen capture parameter of the electronic device based on the first screen capture parameter, the second screen capture parameter, and the amount of idle computing resources. The electronic device can then process the displayed content based on the target screen capture parameter to obtain a target image. In this way, because the target screen capture parameter is determined based on the first screen capture parameter, the type of displayed content, and the amount of idle computing resources, and because the first screen capture parameter can match multiple scenarios, the target screen capture parameter can meet the requirements of multiple scenarios, improving the accuracy of the target screen capture parameter. Furthermore, because the type of displayed content and the amount of idle computing resources change dynamically, the target screen parameter is more flexible, thereby improving the flexibility of acquiring the target image and enhancing the display effect of screen sharing.

[0092] Based on the embodiment shown in FIG. 2 , the method for determining the target screen acquisition parameters of the electronic device in the above image processing method will be described below in conjunction with FIG. 6 .

[0093] FIG6 is a schematic diagram of a method for determining target screen acquisition parameters provided by an embodiment of the present disclosure. Referring to FIG6 , the method flow includes:

[0094] S601: Determine a second screen acquisition parameter corresponding to the type of display content.

[0095] It should be noted that the execution process of step S601 can refer to the execution process of step S203, and this embodiment of the present disclosure will not be further described.

[0096] S602: Determine a target screen capture parameter of the electronic device based on the first screen capture parameter, the second screen capture parameter, and the amount of idle computing resources.

[0097] Optionally, the electronic device may determine the target screen capture parameters of the electronic device based on the first screen capture parameters and the second screen capture parameters. For example, the electronic device may determine the minimum resolution and minimum frame rate of the first screen capture parameters and the second screen capture parameters as the target screen capture parameters of the electronic device.

[0098] Optionally, the electronic device determines the target screen capture parameter of the electronic device based on the first screen capture parameter, the second screen capture parameter, and the amount of idle computing resources. There may be the following two situations:

[0099] Case 1: The first resolution of the first screen capture parameter is greater than or equal to the second resolution of the second screen capture parameter.

[0100] If the first resolution of the first screen capture parameter is greater than or equal to the second resolution of the second screen capture parameter, the electronic device can determine the target screen capture parameter of the electronic device based on the second resolution, the second frame rate of the second screen capture parameter, the first frame rate of the first screen capture parameter, and the amount of idle computing resources.

[0101] Specifically, the electronic device can determine the target screen acquisition parameters based on the following feasible implementation methods: based on the second resolution and the mapping relationship between resolution and frame rate, determine the frame rate corresponding to the second resolution; based on the second resolution, the frame rate corresponding to the second resolution, the first frame rate, the second frame rate and the amount of idle computing resources, determine the target screen acquisition parameters.

[0102] The mapping relationship between resolution and frame rate may include at least one resolution and a frame rate corresponding to each resolution. For example, the mapping relationship between resolution and frame rate may be as shown in Table 1:

[0103] Table 1

[0104] It should be noted that Table 1 is only an example of the mapping relationship between resolution and frame rate, and does not limit the mapping relationship between resolution and frame rate.

[0105] For example, if the second resolution of the second screen capture parameter is resolution 1, the frame rate corresponding to the second resolution can be frame rate 1; if the second resolution of the second screen capture parameter is resolution 2, the frame rate corresponding to the second resolution can be frame rate 2; if the second resolution of the second screen capture parameter is resolution 3, the frame rate corresponding to the second resolution can be frame rate 3.

[0106] It should be noted that, as shown in Table 1, if the second resolution is between resolution 1 and resolution 2, the frame rate corresponding to the second resolution is frame rate 1; if the second resolution is between resolution 2 and resolution 3, the frame rate corresponding to the second resolution is frame rate 2.

[0107] Among them, the electronic device determines the target screen acquisition parameters based on the second resolution, the frame rate corresponding to the second resolution, the first frame rate, the second frame rate and the amount of idle computing resources. Specifically, it can be: determining the minimum frame rate among the frame rate corresponding to the second resolution, the first frame rate and the second frame rate, and determining the target screen acquisition parameters based on the second resolution, the minimum frame rate and the amount of idle computing resources.

[0108] For example, the frame rate corresponding to the second resolution of the second screen capture parameter is frame rate 1, the first frame rate of the first screen capture parameter is frame rate 2, and the frame rate of the second screen capture parameter is frame rate 3. If frame rate 1 is less than frame rate 2, and frame rate 2 is less than frame rate 3, the electronic device can determine frame rate 1 as the minimum frame rate. If frame rate 3 is less than frame rate 2, and frame rate 2 is less than frame rate 1, the electronic device can determine frame rate 3 as the minimum frame rate. In this way, the electronic device can determine the target screen capture parameters based on the minimum resolution and minimum frame rate, thereby improving the adaptability of the target screen capture parameters.

[0109] Optionally, the electronic device may determine the target screen acquisition parameters based on the following feasible implementation method: based on the amount of idle computing resources, determine the adjustment coefficient associated with the second resolution and the minimum frame rate; and based on the adjustment coefficient, the second resolution and the minimum frame rate, determine the target screen acquisition parameters.

[0110] The adjustment coefficient is used to adjust the second resolution and the minimum frame rate. For example, the adjustment coefficient can be a number greater than 0, and the electronic device can adjust the second resolution and the minimum frame rate based on the adjustment coefficient to obtain the target screen capture parameters. For example, if the second resolution is resolution A and the minimum frame rate is frame rate a, then resolution A is multiplied by the adjustment coefficient to obtain the target resolution, and frame rate a is multiplied by the adjustment coefficient to obtain the target frame rate. The target resolution and target frame rate are then determined as the target screen capture parameters.

[0111] Optionally, the electronic device may obtain a correspondence between the amount of idle computing resources and the adjustment coefficient, and then determine the adjustment coefficient based on the amount of idle computing resources obtained by the electronic device and the correspondence. For example, the correspondence between the amount of idle computing resources and the adjustment coefficient may be as shown in Table 2:

[0112] Table 2

[0113] It should be noted that Table 2 is only an example of the corresponding relationship between the amount of idle computing resources and the adjustment coefficient, and does not limit the corresponding relationship between the amount of idle computing resources and the adjustment coefficient.

[0114] For example, if the amount of idle computing resources obtained by the electronic device is resource 1, the electronic device can determine that the adjustment coefficient corresponding to the amount of idle computing resources is coefficient 1; if the amount of idle computing resources obtained by the electronic device is resource 2, the electronic device can determine that the adjustment coefficient corresponding to the amount of idle computing resources is coefficient 2; if the amount of idle computing resources obtained by the electronic device is resource 3, the electronic device can determine that the adjustment coefficient corresponding to the amount of idle computing resources is coefficient 3.

[0115] It should be noted that the amount of idle computing resources shown in Table 2 can be a specific value or a range of values, and the present disclosure is not limited to this. For example, Resource 1 shown in Table 2 can have a CPU utilization rate of 15% and a GPU utilization rate of 15%, or Resource 1 can have a CPU utilization rate of 10%-15% and a GPU utilization rate of 10%-15%.

[0116] It should be noted that when the electronic device adjusts the second resolution and the minimum frame rate based on the adjustment coefficient determined by the amount of idle computing resources, if the electronic device first reduces the second resolution and the minimum frame rate and then increases the second resolution and the minimum frame rate, the resolution and frame rate after the increase are less than or equal to the second resolution and the minimum frame rate before the reduction. For example, if the second resolution is 800*600 and the minimum frame rate is 60 frames, if the idle resources of the CPU and GPU decrease and the adjustment coefficient corresponding to the amount of idle computing resources is 0.5, the electronic device can lower the second resolution and the minimum frame rate based on the adjustment coefficient, and the electronic device determines that the resolution of the target screen sampling parameters is 400*300 and the frame rate is 30 frames. If the idle resources of the CPU and GPU are restored, the electronic device can divide the resolution and frame rate in the target screen acquisition parameters by 0.5, thereby obtaining a target screen acquisition parameter with a resolution of 800*600 and a frame rate of 60 frames, which can be less than or equal to the second resolution and the minimum frame rate.

[0117] The process of determining the target screen acquisition parameters in this case will be described below with reference to FIG. 7 .

[0118] Figure 7 is a schematic diagram of a process for determining target screen acquisition parameters provided by an embodiment of the present disclosure. Please refer to Figure 7, which includes: a first screen acquisition parameter determined by the electronic device and a second screen acquisition parameter determined by the electronic device based on the type of displayed content. The first screen acquisition parameter may include resolution A and frame rate a, and the second screen acquisition parameter may include resolution B and frame rate B. When resolution B is smaller than resolution A, the electronic device may obtain the frame rate corresponding to resolution B based on the mapping relationship between resolution B and resolution and frame rate. The mapping relationship between resolution and frame rate includes multiple resolutions and the frame rate corresponding to each resolution. When resolution B is equal to resolution 2, since the frame rate corresponding to resolution 2 is frame rate 2, the electronic device determines that the frame rate corresponding to resolution B is also frame rate 2.

[0119] Referring to FIG. 7 , the electronic device can obtain frame rate a, frame rate b, and frame rate 2, and determine the minimum frame rate among frame rate a, frame rate b, and frame rate 2 as frame rate 2. The electronic device can obtain resolution B and frame rate 2, and multiply resolution B and frame rate 2 by an adjustment coefficient determined by the amount of idle computing resources to obtain target screen acquisition parameters. The target screen acquisition parameters include a target resolution and a target frame rate. The target resolution is the product of resolution B and the adjustment coefficient, and the target frame rate is the product of frame rate 2 and the adjustment coefficient. In this way, the electronic device can combine display content and device resources to obtain the target screen acquisition parameters, thereby improving the flexibility and accuracy of the target screen acquisition parameters.

[0120] Case 2: The first resolution of the first screen capture parameter is smaller than the second resolution of the second screen capture parameter.

[0121] If the first resolution is less than the second resolution, a target screen capture parameter is determined based on the first resolution, the second frame rate of the second screen capture parameter, the first frame rate of the first screen capture parameter, and the amount of idle computing resources.

[0122] Specifically, when the first resolution is smaller than the second resolution, the electronic device can determine the frame rate corresponding to the first resolution based on the first resolution and the mapping relationship between resolution and frame rate, and then determine the target screen acquisition parameters based on the first resolution, the frame rate corresponding to the first resolution, the first frame rate, the second frame rate and the amount of idle computing resources.

[0123] For example, the electronic device may determine the minimum frame rate among the frame rate corresponding to the first resolution, the first frame rate, and the second frame rate, and determine an adjustment coefficient based on the amount of idle computing resources, and determine the target screen acquisition parameters based on the frame rate corresponding to the first resolution, the minimum frame rate among the first frame rate and the second frame rate, the first resolution, and the adjustment coefficient.

[0124] It should be noted that the method for determining the target screen acquisition parameters in Case 2 is similar to the method for determining the target screen acquisition parameters in Case 1. Case 1 determines the target screen acquisition parameters based on the second resolution, and Case 2 determines the target screen acquisition parameters based on the first resolution. Therefore, the method for determining the target screen acquisition parameters in Case 2 will not be repeated in the embodiment of the present disclosure.

[0125] The disclosed embodiments provide a method for determining target screen acquisition parameters, wherein an electronic device can determine a second screen acquisition parameter corresponding to the type of displayed content. If the first resolution of the first screen acquisition parameter is greater than or equal to the second resolution of the second screen acquisition parameter, the electronic device can determine the target screen acquisition parameter of the electronic device based on the second resolution, the second frame rate of the second screen acquisition parameter, the first frame rate of the first screen acquisition parameter, and the amount of idle computing resources. If the first resolution is less than the second resolution, the target screen acquisition parameter of the electronic device is determined based on the first resolution, the second frame rate of the second screen acquisition parameter, the first frame rate of the first screen acquisition parameter, and the amount of idle computing resources. In this way, the electronic device can determine the target screen acquisition parameter based on statically configured screen acquisition parameters, displayed content, performance of the electronic device, downlink feedback, and other information, thereby improving the accuracy and flexibility of the target screen acquisition parameter and the flexibility of determining the target image.

[0126] Based on any one of the above embodiments, the process of the above image processing method will be described below with reference to FIG8 .

[0127] FIG8 is a process diagram of an image processing method provided by an embodiment of the present disclosure. Referring to FIG8 , an electronic device 1 and an electronic device 2 are included. The display content on the screen of electronic device 1 includes an image. If electronic device 1 enables screen sharing with electronic device 2, the electronic device may determine a first screen acquisition parameter in the static screen acquisition parameters. The static screen acquisition parameters may include resolutions and frame rates corresponding to multiple processing scenarios, multiple network types, and multiple processing modes.

[0128] Please refer to Figure 8. Since the processing scenario of the electronic device is screen sharing and the processing mode is clarity mode (the displayed content is an image, and this mode can also be selected arbitrarily), the electronic device can determine that the screen parameters to be processed include resolution A and frame rate a. The electronic device determines that the resolution of the downlink feedback is resolution G and the screen resolution of the electronic device is resolution H. Since resolution A is less than resolution G and resolution H, the electronic device determines that the first screen acquisition parameters may include resolution A and frame rate a.

[0129] Referring to FIG8 , since the type of display content of the electronic device is a static type, the electronic device can obtain screen acquisition parameters corresponding to the static type (i.e., the second screen acquisition parameters in the embodiment of the present disclosure), wherein the screen acquisition parameters of the static type may include resolution I and frame rate i. Since resolution I is less than resolution A, the electronic device can determine the minimum frame rate among frame rate a, frame rate i, and the frame rate corresponding to resolution I (the frame rate obtained based on resolution I and the mapping relationship between resolution and frame rate).

[0130] Please refer to Figure 8. Since the frame rate i is the smallest, the electronic device can obtain the adjustment coefficient corresponding to the amount of idle computing resources, and based on the adjustment coefficient corresponding to the amount of idle computing resources, process the resolution I and the resolution i to obtain the target screen acquisition parameters, wherein the target screen acquisition parameters may include the target resolution and the target frame rate. The electronic device can capture the shared image based on the target resolution and the target frame rate, and send the shared image to the electronic device 2, which can display the shared image on the screen. In this way, since the target screen acquisition parameters are determined based on information such as the statically configured screen acquisition parameters, the display content, the performance of the electronic device, and the screen parameters of the downlink feedback, the target screen acquisition parameters have high accuracy and flexibility, thereby improving the flexibility of the target image acquisition and the display effect of the electronic device.

[0131] FIG9 is a schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure. Referring to FIG9 , the image processing device 900 includes a first determination module 901, an acquisition module 902, a second determination module 903, and a processing module 904, wherein:

[0132] The first determining module 901 is configured to determine a first screen acquisition parameter from a plurality of / groups of preset screen acquisition parameters of the electronic device;

[0133] The acquisition module 902 is configured to acquire the type of display content on the screen of the electronic device and the amount of idle computing resources of the electronic device;

[0134] The second determining module 903 is configured to determine a target screen capture parameter of the electronic device based on the first screen capture parameter, the type of the display content, and the amount of the idle computing resources;

[0135] The processing module 904 is configured to process the display content based on the target screen acquisition parameters to obtain a target image.

[0136] According to one or more embodiments of the present disclosure, the second determining module 903 is specifically configured to:

[0137] Determining a second screen acquisition parameter corresponding to the type of the display content;

[0138] The target screen capture parameter of the electronic device is determined based on the first screen capture parameter, the second screen capture parameter, and the amount of the idle computing resources.

[0139] According to one or more embodiments of the present disclosure, the second determining module 903 is specifically configured to:

[0140] If a first resolution of the first screen capture parameter is greater than or equal to a second resolution of the second screen capture parameter, determining a target screen capture parameter of the electronic device based on the second resolution, the second frame rate of the second screen capture parameter, the first frame rate of the first screen capture parameter, and the amount of the idle computing resources;

[0141] If the first resolution is smaller than the second resolution, the target screen capture parameter of the electronic device is determined based on the first resolution, the second frame rate of the second screen capture parameter, the first frame rate of the first screen capture parameter and the amount of the idle computing resources.

[0142] According to one or more embodiments of the present disclosure, the second determining module 903 is specifically configured to:

[0143] Determining a frame rate corresponding to the second resolution based on the second resolution and a mapping relationship between resolution and frame rate;

[0144] The target screen capture parameters are determined based on the second resolution, a frame rate corresponding to the second resolution, the first frame rate, the second frame rate, and the amount of idle computing resources.

[0145] According to one or more embodiments of the present disclosure, the second determining module 903 is specifically configured to:

[0146] Determining a minimum frame rate among the frame rate corresponding to the second resolution, the first frame rate, and the second frame rate;

[0147] Target screen capture parameters are determined based on the second resolution, the minimum frame rate, and the amount of idle computing resources.

[0148] According to one or more embodiments of the present disclosure, the second determining module 903 is specifically configured to:

[0149] determining an adjustment factor associated with the second resolution and the minimum frame rate based on the amount of the idle computing resources;

[0150] The target screen capture parameter is determined based on the adjustment coefficient, the second resolution, and the minimum frame rate.

[0151] According to one or more embodiments of the present disclosure, the first determining module 901 is specifically configured to:

[0152] Acquire a processing scenario of the electronic device, where the processing scenario includes a screen projection scenario and / or a sharing scenario;

[0153] Acquire a processing mode corresponding to the processing scenario, where the processing mode includes a clarity mode and / or a fluency mode;

[0154] Obtaining the network type corresponding to the processing scenario;

[0155] Based on the processing scenario, the processing mode, and the network type, the first screen capture parameter is determined from a plurality of / groups of preset screen capture parameters of the electronic device.

[0156] According to one or more embodiments of the present disclosure, the first determining module 901 is specifically configured to:

[0157] Acquiring screen parameters of the electronic device and screen parameters of other electronic devices corresponding to the processing scenario received from the server;

[0158] Determining screen acquisition parameters to be processed based on the processing scenario, the processing mode, and the network type;

[0159] The first screen acquisition parameter is determined based on the screen parameter of the electronic device, the screen parameters of other electronic devices corresponding to the processing scenario, and the screen acquisition parameter to be processed.

[0160] The image processing device provided in the embodiment of the present disclosure can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0161] Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Please refer to Figure 10, which shows a schematic diagram of the structure of an electronic device 1000 suitable for implementing an embodiment of the present disclosure. The electronic device 1000 can be any device with terminal computing capabilities. Among them, the electronic device may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in Figure 10 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.

[0162] As shown in Figure 10, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0163] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although FIG10 shows an electronic device 1000 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0164] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0165] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0166] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0167] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0168] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method as described in the first aspect and various possible aspects of the first aspect are implemented.

[0169] An embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the above-mentioned first aspect and various image processing methods that may be involved in the first aspect.

[0170] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0171] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0172] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0173] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0174] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0175] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0176] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0177] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0178] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server or storage medium or other software or hardware that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from the user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations can also be applied to the implementation method of the present disclosure.

[0179] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws and regulations. Data may include information, parameters and messages, such as flow switching indication information.

[0180] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0181] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0182] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An image processing method, comprising: Determine a first screen acquisition parameter from a plurality of / groups of preset screen acquisition parameters of the electronic device; Acquire the type of displayed content on the screen of the electronic device and the amount of idle computing resources of the electronic device; Determining a target screen acquisition parameter of the electronic device based on the first screen acquisition parameter, the type of the display content, and the amount of the idle computing resources; The display content is processed based on the target screen acquisition parameters to obtain a target image.

2. The method according to claim 1, wherein: The determining, based on the first screen acquisition parameter, the type of the display content, and the amount of the idle computing resources, a target screen acquisition parameter of the electronic device includes: Determine a second screen acquisition parameter corresponding to the type of the displayed content; The target screen capture parameter of the electronic device is determined based on the first screen capture parameter, the second screen capture parameter, and the amount of the idle computing resources.

3. The method according to claim 2, wherein: The screen acquisition parameters include resolution and frame rate; and determining the target screen acquisition parameters of the electronic device based on the first screen acquisition parameters, the second screen acquisition parameters, and the amount of the idle computing resources includes: If the first resolution of the first screen acquisition parameter is greater than or equal to the second resolution of the second screen acquisition parameter, determining a target screen acquisition parameter of the electronic device based on the second resolution, the second frame rate of the second screen acquisition parameter, the first frame rate of the first screen acquisition parameter, and the amount of the idle computing resources; If the first resolution is smaller than the second resolution, the target screen acquisition parameter of the electronic device is determined based on the first resolution, the second frame rate of the second screen acquisition parameter, the first frame rate of the first screen acquisition parameter and the amount of the idle computing resources.

4. The method according to claim 3, wherein: The determining the target screen acquisition parameter of the electronic device based on the second resolution, the second frame rate of the second screen acquisition parameter, the first frame rate of the first screen acquisition parameter, and the amount of the idle computing resources includes: Determining a frame rate corresponding to the second resolution based on the second resolution and a mapping relationship between resolution and frame rate; The target screen acquisition parameters are determined based on the second resolution, the frame rate corresponding to the second resolution, the first frame rate, the second frame rate, and the amount of the idle computing resources.

5. The method according to claim 4, wherein: The determining the target screen acquisition parameter based on the second resolution, the frame rate corresponding to the second resolution, the first frame rate, the second frame rate, and the amount of the idle computing resources includes: Determine a minimum frame rate among the frame rate corresponding to the second resolution, the first frame rate, and the second frame rate; The target screen capture parameters are determined based on the second resolution, the minimum frame rate, and the amount of idle computing resources.

6. The method according to claim 5, wherein: The determining the target screen acquisition parameter based on the second resolution, the minimum frame rate and the amount of the idle computing resources includes: Determining an adjustment factor associated with the second resolution and the minimum frame rate based on the amount of the idle computing resources; The target screen acquisition parameter is determined based on the adjustment coefficient, the second resolution and the minimum frame rate.

7. The method according to any one of claims 1 to 6, wherein: The determining of the first screen acquisition parameter from a plurality of / groups of preset screen acquisition parameters of the electronic device includes: Acquire a processing scenario of the electronic device, where the processing scenario includes a screen projection scenario and / or a sharing scenario; Acquire a processing mode corresponding to the processing scenario, wherein the processing mode includes a clarity mode and / or a fluency mode; Obtaining a network type corresponding to the processing scenario; Based on the processing scenario, the processing mode and the network type, the first screen acquisition parameter is determined from a plurality of / groups of preset screen acquisition parameters of the electronic device.

8. The method according to claim 7, wherein: The determining the first screen acquisition parameter from a plurality of / groups of preset screen acquisition parameters of the electronic device based on the processing scenario, the processing mode, and the network type includes: Acquire screen parameters of the electronic device and screen parameters of other electronic devices corresponding to the processing scenario received from the server; Determining screen acquisition parameters to be processed based on the processing scenario, the processing mode and the network type; The first screen acquisition parameter is determined based on the screen parameter of the electronic device, the screen parameters of other electronic devices corresponding to the processing scenario, and the screen acquisition parameter to be processed.

9. An image processing device, comprising a first determining module, an acquiring module, a second determining module and a processing module, wherein: The first determination module is used to determine the first screen acquisition parameter from multiple / multiple groups of preset screen acquisition parameters of the electronic device; The acquisition module is used to acquire the type of display content on the screen of the electronic device and the amount of idle computing resources of the electronic device; The second determination module is used to determine a target screen acquisition parameter of the electronic device based on the first screen acquisition parameter, the type of the display content and the amount of the idle computing resources; The processing module is used to process the display content based on the target screen acquisition parameters to obtain a target image.

10. An electronic device, comprising: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the image processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the image processing method according to any one of claims 1 to 8 is implemented.

12. A computer program, comprising instructions, which, when executed by a processor, implement the image processing method according to any one of claims 1 to 8.

13. A computer program product, comprising instructions, which, when executed by a processor, implement the image processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Shared screen coding method and device, computer readable medium and electronic equipment

    CN111182303A

  • Screen fluency detection method and device and electronic equipment

    CN115269296A

  • Dynamic frame screen projection method in cloud conference and related product

    CN115361569A

  • Screen acquisition method and device, terminal equipment and storage medium

    CN117472304A

  • System and method for automatically adjusting key frame quantization parameter and frame rate

    US20220256114A1