Image rendering method, device and equipment
By calculating the target rendering resolution based on the actual delay and preset delay in cloud devices and rendering the image, the problem of large black edge area of Cloud VR caused by poor network is solved, and more efficient image transmission and display is achieved.
Patent Information
- Application Number
- CN202111424831.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the prior art, due to the poor network, it takes a long time for cloud devices to transmit the rendered image back to the user terminal, resulting in a delay in displaying the rendered image. In addition, when the user terminal displays the rendered image through a time distortion method, a larger black edge area is generated.
By determining the relationship between the actual delay and the preset delay of the image to be rendered in the cloud device, the target rendering resolution of the image to be rendered is calculated, and the image is rendered based on the resolution to obtain the target image. The size of the target image is larger than the size of the image to be rendered, thereby reducing the black edge area.
By adjusting the rendering resolution of the image, the black edge area of the images transmitted by cloud devices to the user terminal in the display area is reduced, cloud resources are saved, and the display effect of Cloud VR is improved.
Smart Images

Figure CN114266690B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to image processing technology, and in particular to an image rendering method, device and equipment. Background Art
[0002] Currently, many operators are deploying cloud virtual reality (VR) technology services and realizing the development of cloud VR. Therefore, cloud devices need to render images and transmit the rendered images back to user terminals for display.
[0003] In the prior art, when a cloud device renders an image, it directly renders the image and then transmits the rendered image back to a user terminal, and the user terminal displays the rendered image through a time warping method.
[0004] However, in the prior art, due to the poor network, it takes a long time for the cloud device to transmit the rendered image back to the user terminal, resulting in a delay in the display time of the rendered image. When the user terminal displays the rendered image through the time warping method, it is necessary to adjust the position of the rendered image in the display area according to the latest acquired image, which results in a large black border area in the display area. Summary of the invention
[0005] The present application provides an image rendering method, apparatus and device to solve the technical problem of large black border area of Cloud VR caused by poor network.
[0006] In a first aspect, the present application provides an image rendering method, which is applied to a cloud device; the method comprises:
[0007] When it is determined that the actual delay for transmitting the image to be rendered is less than the preset delay, determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device;
[0008] The image to be rendered is rendered according to the target rendering resolution to obtain a target image; wherein the size of the target image is larger than the size of the image to be rendered.
[0009] Further, when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution includes:
[0010] When it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, obtaining the original rendering resolution of the image to be rendered;
[0011] A target rendering resolution of the image to be rendered is determined according to the actual delay, the preset delay, the preset rendering resolution, and the original rendering resolution.
[0012] Furthermore, the target rendering resolution
[0013] Among them, T max is the preset delay, t is the actual delay, W max is the preset rendering resolution, W original is the original rendering resolution, and k is a preset adjustment coefficient.
[0014] Furthermore, the method further comprises:
[0015] When it is determined that the actual delay for transmitting the image to be rendered is greater than or equal to the preset delay, the preset delay is determined as the actual delay, and the step of determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution is repeatedly performed.
[0016] Furthermore, the method further comprises:
[0017] If it is determined that the rendering fails, a prompt message is generated and displayed.
[0018] In a second aspect, the present application provides an image rendering device, which is applied to a cloud device; the device comprises:
[0019] A determination unit, configured to determine a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, and the preset rendering resolution when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device;
[0020] A rendering unit is used to render the image to be rendered according to the target rendering resolution to obtain a target image; wherein the size of the target image is larger than the size of the image to be rendered.
[0021] Furthermore, the determining unit includes:
[0022] An acquisition module, configured to acquire an original rendering resolution of the image to be rendered when it is determined that the actual delay of transmitting the image to be rendered is less than a preset delay;
[0023] A determination module is used to determine a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, the preset rendering resolution and the original rendering resolution.
[0024] Furthermore, the target rendering resolution
[0025] Among them, T max is the preset delay, t is the actual delay, W max is the preset rendering resolution, W original is the original rendering resolution, and k is a preset adjustment coefficient.
[0026] Furthermore, the device also includes:
[0027] The execution unit is configured to, when it is determined that the actual delay of transmitting the image to be rendered is greater than or equal to the preset delay, determine the preset delay as the actual delay, and repeatedly execute the determination unit.
[0028] Furthermore, the device also includes:
[0029] The prompt unit is used to generate and display prompt information if it is determined that the rendering fails.
[0030] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0032] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0033] The image rendering method, device and equipment provided by the present application, when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, the target rendering resolution of the image to be rendered is determined according to the actual delay, the preset delay and the preset rendering resolution; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device; the image to be rendered is rendered according to the target rendering resolution to obtain the target image; wherein the size of the target image is larger than the size of the image to be rendered. In this scheme, the actual delay of transmitting the image to be rendered on the existing network can be obtained first, and then it can be determined whether the actual delay is less than the preset delay. When it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, the target rendering resolution of the image to be rendered is calculated and determined according to the actual delay, the preset delay and the preset rendering resolution. Finally, the image to be rendered is rendered according to the target rendering resolution to obtain the target image. At this time, the size of the target image is larger than the size of the image to be rendered. Therefore, the cloud device can transmit the target image to the user terminal, and the user terminal displays the target image through the time warping method. In the process of displaying the target image, when the position of the target image in the display area is greatly changed by the time warping method, since the size of the target image has increased, a larger area of the target image can be retained in the display area, thereby reducing the black border area in the display area. Therefore, the minimum size of the target image is determined by the actual delay of the image to be rendered, which greatly saves cloud resources and reduces the black border of the display area, solving the technical problem of large black border area of Cloud VR caused by poor network. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] Figure 1 A schematic diagram of a flow chart of an image rendering method provided in an embodiment of the present application;
[0036] Figure 2 A flowchart of another image rendering method provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the structure of an image rendering device provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of another image rendering device provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0040] Figure 6A block diagram of an electronic device provided in an embodiment of the present application.
[0041] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0042] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0043] In one example, many operators are deploying cloud VR services and realizing the development of Cloud VR. Therefore, the cloud device needs to render the image and transmit the rendered image back to the user terminal for display. In the prior art, when the cloud device renders the image, it directly renders the image and then transmits the rendered image back to the user terminal, and the user terminal displays the rendered image through the time warp method. However, in the prior art, due to the poor network, the cloud device takes a long time to transmit the rendered image back to the user terminal, resulting in a lag in the display time of the rendered image. When the user terminal displays the rendered image through the time warp method, it is necessary to adjust the position of the rendered image in the display area according to the latest acquired image, which results in a large black border area in the display area.
[0044] The present application provides an image rendering method, device and equipment, aiming to solve the above technical problems in the prior art.
[0045] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 A flowchart of an image rendering method provided in an embodiment of the present application is applied to a cloud device; Figure 1 As shown, the method includes:
[0047] 101. When it is determined that the actual delay for transmitting the image to be rendered is less than the preset delay, determine the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device.
[0048] Exemplarily, the execution subject of this embodiment may be a cloud device. First, it is necessary to determine the quality of the existing network. When the quality of the existing network is poor, obtain the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device, that is, the actual delay for transmitting the image to be rendered. Then, the actual delay is compared with the preset delay. When it is determined that the actual delay for transmitting the image to be rendered is less than the preset delay, the target rendering resolution of the image to be rendered can be determined based on the actual delay, the preset delay and the preset rendering resolution. Among them, the preset delay is the maximum time set in advance, and the preset delay is determined comprehensively based on the acceptable cloud GPU cloud resources, image rendering time, etc.; the preset rendering resolution is the maximum acceptable rendering resolution set in advance, that is, the preset rendering resolution is the rendering resolution corresponding to the preset delay.
[0049] 102. Render the image to be rendered according to a target rendering resolution to obtain a target image; wherein a size of the target image is larger than a size of the image to be rendered.
[0050] Exemplarily, by rendering the image to be rendered according to the target rendering resolution, a target image of the target rendering resolution can be obtained. In this case, the size of the target image after rendering is larger than the size before rendering.
[0051] In an embodiment of the present application, the image to be rendered is rendered according to the target rendering resolution, and the target image is obtained and displayed. When it is determined that the actual delay in transmitting the image to be rendered is less than the preset delay, the target rendering resolution of the image to be rendered is determined according to the actual delay, the preset delay and the preset rendering resolution; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device. The image to be rendered is rendered according to the target rendering resolution to obtain the target image. In this scheme, the actual delay of transmitting the image to be rendered over the existing network can be obtained first, and then it can be determined whether the actual delay is less than the preset delay. When it is determined that the actual delay in transmitting the image to be rendered is less than the preset delay, the target rendering resolution of the image to be rendered is calculated and determined according to the actual delay, the preset delay and the preset rendering resolution. Finally, the image to be rendered is rendered according to the target rendering resolution to obtain the target image. At this time, the size of the target image is larger than the size of the image to be rendered. Therefore, the cloud device can transmit the target image to the user terminal, and the user terminal displays the target image through the time warping method. In the process of displaying the target image, when the position of the target image in the display area is greatly changed by the time warping method, since the size of the target image has increased, a larger area of the target image can be retained in the display area, thereby reducing the black border area in the display area. Therefore, the minimum size of the target image is determined by the actual delay of the image to be rendered, which greatly saves cloud resources and reduces the black border of the display area, solving the technical problem of large black border area of Cloud VR caused by poor network.
[0052] Figure 2 A flowchart of another image rendering method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:
[0053] 201. When it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, obtain the original rendering resolution of the image to be rendered.
[0054] Exemplarily, the electronic device obtains the actual delay of transmitting the image to be rendered over the existing network, and when it is determined that the actual delay of transmitting the image to be rendered is less than a preset delay, obtains the original rendering resolution of the image to be rendered.
[0055] 202. Determine a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, the preset rendering resolution, and the original rendering resolution.
[0056] In an example, the target rendering resolution is:
[0057]
[0058] Among them, T max is the preset delay, t is the actual delay, Wmax is the default rendering resolution, W original is the native rendering resolution.
[0059] Exemplarily, the electronic device may calculate and determine the target rendering resolution of the image to be rendered based on the preset formula (1) according to the actual delay, the preset delay, the preset rendering resolution, and the original rendering resolution. The preset formula (1) is as follows:
[0060]
[0061] Among them, T max is the preset delay, t is the actual delay, W max is the default rendering resolution, W original is the original rendering resolution, k is the preset adjustment coefficient, so according to the preset formula (1), the preset formula (2) can be obtained, and the target rendering resolution w can be determined according to the preset formula (2). The preset formula (2) is as follows:
[0062]
[0063] Therefore, according to the above formula, when the quality of the existing network is extremely good, that is, when the network delay approaches 0, the target rendering resolution w approaches W original ; When the actual delay of the existing network approaches the preset delay T max When the target rendering resolution w approaches W max ; When 0<t<T max When , the target rendering resolution w has a certain linear relationship with the network delay t.
[0064] 203. Render the image to be rendered according to the target rendering resolution to obtain a target image.
[0065] For example, this step can be referred to Figure 1 Step 102 in the above is not described in detail.
[0066] 204. When it is determined that the actual delay for transmitting the image to be rendered is greater than or equal to the preset delay, the preset delay is determined as the actual delay, and the step of determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution is repeatedly executed.
[0067] Exemplarily, when it is determined that the actual delay of transmitting the image to be rendered is greater than or equal to the preset delay, in order to avoid excessive waste of cloud resources, the preset delay is directly determined as the actual delay. At this time, the value of the actual delay is equal to the value of the preset delay. Then, the actual delay, preset delay and other values are substituted into the preset formula (2), and the above step 202 is repeated.
[0068] 205. If it is determined that the rendering fails, a prompt message is generated and displayed.
[0069] For example, if it is determined that the rendering fails, an image containing the target rendering resolution cannot be generated, and a prompt message can be directly displayed on the cloud device to remind the user of the rendering failure. Alternatively, the generated prompt message can be sent to the user terminal to remind the user of the rendering failure.
[0070] In an embodiment of the present application, when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, the original rendering resolution of the image to be rendered is obtained. According to the actual delay, the preset delay, the preset rendering resolution and the original rendering resolution, the target rendering resolution of the image to be rendered is determined. The image to be rendered is rendered according to the target rendering resolution to obtain the target image. When it is determined that the actual delay of transmitting the image to be rendered is greater than or equal to the preset delay, the preset delay is determined as the actual delay, and the step of determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution is repeated. If it is determined that the rendering fails, a prompt message is generated and displayed. Therefore, the cloud device can transmit the target image to the user terminal, and the user terminal displays the target image through the time warping method. In the process of displaying the target image, when the position of the target image in the display area is greatly changed by the time warping method, since the size of the target image has increased, a larger area of the target image can be retained in the display area, thereby reducing the black border area in the display area. Therefore, the minimum size of the target image is determined by the actual delay of the image to be rendered, which greatly saves cloud resources and reduces the black border of the display area, and solves the technical problem of large black border area of Cloud VR caused by poor network.
[0071] Figure 3 A schematic diagram of the structure of an image rendering device provided in an embodiment of the present application, which is applied to a cloud device; Figure 3 As shown, the device comprises:
[0072] The determination unit 31 is used to determine the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device.
[0073] The rendering unit 32 is used to render the image to be rendered according to a target rendering resolution to obtain a target image; wherein the size of the target image is larger than the size of the image to be rendered.
[0074] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0075] Figure 4 A schematic diagram of the structure of another image rendering device provided in an embodiment of the present application, in Figure 3 Based on the embodiment shown, Figure 4 As shown, the determination unit 31 includes:
[0076] The acquisition module 311 is configured to acquire the original rendering resolution of the image to be rendered when it is determined that the actual delay of transmitting the image to be rendered is less than a preset delay.
[0077] The determination module 312 is used to determine the target rendering resolution of the image to be rendered according to the actual delay, the preset delay, the preset rendering resolution and the original rendering resolution.
[0078] In an example, the target rendering resolution is:
[0079]
[0080] Among them, T max is the preset delay, t is the actual delay, W max is the default rendering resolution, W original is the original rendering resolution, and k is the preset adjustment coefficient.
[0081] In one example, the device further includes:
[0082] The execution unit 41 is configured to determine the preset delay as the actual delay when determining that the actual delay of transmitting the image to be rendered is greater than or equal to the preset delay, and repeatedly execute the determination unit.
[0083] In one example, the device further includes:
[0084] The prompt unit 42 is used to generate and display prompt information if it is determined that the rendering fails.
[0085] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0086] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52.
[0087] The memory 51 stores a computer program that can be executed on the processor 52 .
[0088] The processor 52 is configured to execute the method provided in the above embodiment.
[0089] The electronic device further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.
[0090] Figure 6 This is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0091] The device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0092] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0093] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0094] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0095] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0096] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0097] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0098] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0099] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0100] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0101] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 620 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0102] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method provided by the above embodiment.
[0103] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0104] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0105] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image rendering method, characterized in that: Applied to cloud devices; the method comprises: When it is determined that the actual delay for transmitting the image to be rendered is less than the preset delay, determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device; Rendering the image to be rendered according to the target rendering resolution to obtain a target image; wherein the size of the target image is larger than the size of the image to be rendered; When it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, determining a target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution, including: When it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay, obtaining the original rendering resolution of the image to be rendered; Determining a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, the preset rendering resolution, and the original rendering resolution; The target rendering resolution is ; in, is the preset time delay, is the actual delay, for the preset rendering resolution, is the original rendering resolution, is the preset adjustment factor.
2. The method according to claim 1, characterized in that The method further comprises: When it is determined that the actual delay for transmitting the image to be rendered is greater than or equal to the preset delay, the preset delay is determined as the actual delay, and the step of determining the target rendering resolution of the image to be rendered according to the actual delay, the preset delay and the preset rendering resolution is repeatedly performed.
3. The method according to claim 1, characterized in that The method further comprises: If it is determined that the rendering fails, a prompt message is generated and displayed.
4. An image rendering device, characterized in that: Applied to cloud devices; the device comprises: A determination unit, configured to determine a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, and the preset rendering resolution when it is determined that the actual delay of transmitting the image to be rendered is less than the preset delay; wherein the actual delay represents the transmission time required for transmitting the image to be rendered between the user terminal and the cloud device; A rendering unit, configured to render the image to be rendered according to the target rendering resolution to obtain a target image; wherein the size of the target image is larger than the size of the image to be rendered; The determining unit comprises: An acquisition module, configured to acquire an original rendering resolution of the image to be rendered when it is determined that the actual delay of transmitting the image to be rendered is less than a preset delay; A determination module is used to determine a target rendering resolution of the image to be rendered according to the actual delay, the preset delay, the preset rendering resolution and the original rendering resolution; the target rendering resolution is ; in, is the preset time delay, is the actual delay, for the preset rendering resolution, is the native rendering resolution, is the preset adjustment factor.
5. The device according to claim 4, characterized in that The device also includes: The execution unit is configured to, when it is determined that the actual delay of transmitting the image to be rendered is greater than or equal to the preset delay, determine the preset delay as the actual delay, and repeatedly execute the determination unit.
6. The device according to claim 4, characterized in that The device also includes: The prompt unit is used to generate and display prompt information if it is determined that the rendering fails.
7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
9. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 3 when being executed by a processor.
Citation Information
Patent Citations
Image processing method and device
CN110930307A
Cloud game implementation method and device, medium and electronic equipment
CN113015021A