Information processing method and device, storage medium and electronic device

By mixing the color information in the scene picture frame during the motion of the object to be processed, the problem of lack of real-time and flexibility of fuzzy expression results in the prior art is solved, and efficient information processing and flexible fuzzing effects are achieved.

CN119963665AActive Publication Date: 2025-05-09NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411978583.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-09
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

The prior art lacks real-time and flexibility when simulating fuzzy performance results, resulting in low efficiency in processing object information.

Method used

During the motion of the object to be processed, the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame is determined, the color information is mixed, and the mixed color information and the initial color information are mixed based on the motion parameters to determine the second target color information to display the blurred expression result.

Benefits of technology

Flexible fuzzy performance results are achieved, the efficiency of processing object information is improved, and the problem of low efficiency in the prior art is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119963665A_ABST
    Figure CN119963665A_ABST
Patent Text Reader

Abstract

The invention discloses an information processing method and device, a storage medium and an electronic device. The method comprises the steps of determining initial color information of a current scene picture frame where a to-be-processed object is located in a moving process of the to-be-processed object; based on the initial color information and the motion parameters of the to-be-processed object, determining first target color information of a historical scene picture frame where the to-be-processed object is located; determining difference color information between the first target color information and the initial color information; on the basis of the difference color information and the motion parameters, color information sampled at multiple sampling positions in the historical scene picture frame is mixed, and mixed color information is obtained; determining second target color information of the current scene picture frame based on the mixed color information, the initial color information and the motion parameters; and displaying a fuzzy representation result of the to-be-processed object in the current scene picture frame by using the second target color information. The problem that the efficiency of processing the information of the object is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular, to an information processing method, device, storage medium and electronic device. Background Art

[0002] At present, blur rendering results, as a common visual enhancement technology, can improve the smoothness and realism of scene images to enhance user experience.

[0003] In the related art, blur performance results are usually simulated in the form of pure animation, for example, using methods such as sequential frame animation. Although the above methods can achieve blur performance results to a certain extent, they are not true dynamic blur, and rely on pre-generated animation frames or interpolation calculations of animation tools, lacking real-time performance and flexibility, and thus there is a technical problem of low efficiency in processing object information.

[0004] Currently, no effective solution has been proposed to the above-mentioned problem of low efficiency in processing object information. Summary of the invention

[0005] At least some embodiments of the present disclosure provide an information processing method, apparatus, storage medium, and electronic device to at least solve the technical problem of low efficiency in processing information of an object.

[0006] According to one embodiment of the present disclosure, an information processing method is provided. The method may include: determining the initial color information of the current scene picture frame where the object to be processed is located during the motion of the object to be processed; determining the first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent the parameters associated with the motion state of the object to be processed; determining the difference color information between the first target color information and the initial color information; based on the difference color information and the motion parameters, mixing the color information sampled at multiple sampling positions in the historical scene picture frame to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, determining the second target color information of the current scene picture frame; using the second target color information, displaying the blurred performance result of the object to be processed in the current scene picture frame.

[0007] According to one embodiment of the present disclosure, an information processing device is also provided. The device may include: a first determination unit, used to determine the initial color information of the current scene picture frame where the object to be processed is located during the movement of the object to be processed; a second determination unit, used to determine the first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent the parameters associated with the motion state of the object to be processed; a third determination unit, used to determine the difference color information between the first target color information and the initial color information; a mixing unit, used to mix the color information sampled at multiple sampling positions in the historical scene picture frame based on the difference color information and the motion parameters to obtain the mixed color information; a fourth determination unit, used to determine the second target color information of the current scene picture frame based on the mixed color information, the initial color information and the motion parameters; a display unit, used to display the blur performance result of the object to be processed in the current scene picture frame using the second target color information.

[0008] According to one embodiment of the present disclosure, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the above-mentioned information processing methods when executed.

[0009] According to one embodiment of the present disclosure, an electronic device is also provided. The electronic device may include a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above information processing methods.

[0010] According to one embodiment of the present disclosure, a computer program product is also provided. The computer program product may include a computer program, wherein the computer program is configured to execute any of the above information processing methods when running.

[0011] According to one embodiment of the present disclosure, a computer program product is also provided. The computer program product may include a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program is configured to execute any of the above information processing methods when running.

[0012] According to one embodiment of the present disclosure, a computer program is further provided, wherein the computer program is configured to execute any of the above information processing methods when running.

[0013] In at least some embodiments of the present disclosure, during the movement of the object to be processed, the initial color information of the current scene picture frame where the object to be processed is located is determined; based on the initial color information and the motion parameters of the object to be processed, the first target color information of the historical scene picture frame where the object to be processed is located is determined, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; the difference color information between the first target color information and the initial color information is determined; based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, the second target color information of the current scene picture frame is determined; and the blurred representation result of the object to be processed in the current scene picture frame is displayed using the second target color information. That is to say, the embodiment of the present disclosure mixes multiple color information sampled in the historical scene picture frame through motion parameters and the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information and the initial color information based on the motion parameters to obtain second target color information, so as to use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame, thereby achieving the purpose of realizing flexible blurred representation results, and further realizing the technical effect of improving the efficiency of processing the information of the object, and solving the technical problem of low efficiency in processing the information of the object. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0015] Figure 1 is a hardware structure block diagram of a mobile terminal according to an information processing method of an embodiment of the present disclosure;

[0016] Figure 2 is a flow chart of an information processing method according to one embodiment of the present disclosure;

[0017] Figure 3 is a flow chart of a method for realizing a dynamic blur effect based on an H5 game according to one embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram of a dynamic blur effect achieved according to one embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram of another implementation of a dynamic blur effect according to one embodiment of the present disclosure;

[0020] Figure 6 is a structural block diagram of an information processing system according to one embodiment of the present disclosure;

[0021] Figure 7 is a structural block diagram of an information processing device according to one embodiment of the present disclosure;

[0022] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0025] In a possible implementation, when it is necessary to simulate the blur performance result, the blur performance result can usually be simulated in the form of pure animation, for example, using methods such as sequence frame animation. However, after practice and careful research, the inventors found that if the above method is used to simulate the blur performance result, since the method is not a true dynamic blur and relies on the interpolation calculation of pre-generated animation frames or animation tools, it lacks real-time performance and flexibility, and thus there is a technical problem of low efficiency in processing the object information.

[0026] Based on the above, an embodiment of the present disclosure proposes an information processing method, which determines the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame, mixes multiple color information sampled in the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information with the initial color information to obtain second target color information, so as to use the second target color information to display the blurred expression result of the object to be processed in the current scene picture frame. At the same time, the degree of the blurred expression result can be adjusted by motion parameters, thereby achieving the purpose of realizing flexible blurred expression results, and further achieving the technical effect of improving the efficiency of processing object information.

[0027] Considering that in the related art, when the fuzzy expression result is simulated in the form of pure animation, there is a technical problem of low efficiency in processing the information of the object. However, in the embodiment of the present disclosure, during the movement of the object to be processed, the initial color information of the current scene picture frame where the object to be processed is located is determined; based on the initial color information and the motion parameters of the object to be processed, the first target color information of the historical scene picture frame where the object to be processed is located is determined, wherein the motion parameters are used to represent the parameters associated with the motion state of the object to be processed; the difference color information between the first target color information and the initial color information is determined; based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain the mixed color information; based on the mixed color information, the initial color information and the motion parameters, the second target color information of the current scene picture frame is determined; using the second target color information, the fuzzy expression result of the object to be processed in the current scene picture frame is displayed, thereby achieving the technical effect of improving the efficiency of processing the information of the object and solving the technical problem of low efficiency in processing the information of the object.

[0028] According to one embodiment of the present disclosure, an embodiment of an information processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The method embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID for short), a tablet computer (PAD), a game console and other terminal devices. Figure 1FIG. 1 is a hardware structure block diagram of a mobile terminal according to an information processing method of an embodiment of the present disclosure. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (the processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a programmable logic device (Field Programmable Gate Array, FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input and output device 108, and a display device 110 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the information processing method in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned information processing method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0032] The inputs in the input / output device 108 may come from a plurality of human interface devices (HIDs), such as keyboards and mice, game controllers, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, remote controls, etc.). In addition to providing input functions, some human interface devices may also provide output functions, such as force feedback and vibration of game controllers, audio output of controllers, etc.

[0033] The display device 110 may be, for example, a Heads Up Display (HUD), a touch screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The LCD display enables the user to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and the user can interact with the GUI by finger contacts and / or gestures on the touch-sensitive surface. The human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.

[0034] Those skilled in the art will understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0035] In a possible implementation, the present disclosure provides an information processing method. Figure 2is a flow chart of an information processing method according to one embodiment of the present disclosure, such as Figure 2 As shown, the method may include the following steps:

[0036] Step S202: during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located.

[0037] In the technical solution provided in the above step S202 of the present disclosure, during the movement of the object to be processed, the initial color information of the current scene picture frame where the object to be processed is located can be determined. The object to be processed can be a target object or a dynamic element to be blurred. The current scene picture frame can be the current frame of the scene picture where the object to be processed is located. The initial color information can be the color information of the current scene picture frame, which can be called the color value of the current frame.

[0038] In this embodiment, during the movement of the object to be processed, the initial color information of the current scene picture frame where the object to be processed is located can be determined according to the texture of the current scene picture frame where the object to be processed is located.

[0039] Step S204, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed.

[0040] In the technical solution provided in the above step S204 of the present disclosure, after determining the initial color information of the current scene picture frame where the object to be processed is located, based on the motion parameters of the object to be processed and the determined initial color information, the first target color information of the historical scene picture frame where the object to be processed is located can be determined. Among them, the motion parameters can be used to represent the parameters associated with the motion state of the object to be processed, the motion parameters can be called shader uniform variables (uniforms) parameters, and can also be called uniforms objects. The motion parameters can at least include motion factors (Motion Factor), occlusion factors (Occlusion Factor), blur factors (Blur Factor) and blending factors (Blend Factor), etc. The motion state of the object to be processed can be the motion of the object to be processed. The historical scene picture frame can be a historical frame of the historical scene picture where the object to be processed is located. For example, the historical scene picture frame can be the previous scene picture frame of the current scene picture frame, which can be referred to as the previous frame. This is only for example explanation, and no specific limitation is made to the historical scene picture frame. The first target color information can be the color information of the historical scene picture frame, for example, it can be called the color value of the previous frame.

[0041] In this embodiment, after determining the initial color information of the current scene picture frame where the object to be processed is located, the first target color information of the historical scene picture frame where the object to be processed is located can be determined based on the motion parameters of the object to be processed and the determined initial color information. For example, when the determined initial color information is less than or equal to the occlusion factor, the first target color information of the historical scene picture frame where the object to be processed is located can be determined based on the texture of the historical scene picture frame where the object to be processed is located. The occlusion factor can be a threshold value of the degree of occlusion of the phantom part of the object to be processed when the object to be processed is in motion, which can be used to avoid unnecessary blur calculations.

[0042] Step S206: determining the difference color information between the first target color information and the initial color information.

[0043] In the technical solution provided in the above step S206 of the present disclosure, after determining the first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, the difference color information between the first target color information and the initial color information can be determined. The difference color information can be the color difference value information between the color value information of the current scene picture frame and the color value information of the historical scene picture frame.

[0044] In this embodiment, after determining the initial color information of the current scene picture frame where the object to be processed is located, and the first target color information of the historical scene picture frame where the object to be processed is located, the color difference value between the color value of the initial color information and the color value of the first target color information can be determined, thereby obtaining the difference color information between the first target color information and the initial color information.

[0045] Step S208 , based on the difference color information and the motion parameter, the color information sampled at multiple sampling positions in the historical scene frame is mixed to obtain mixed color information.

[0046] In the technical solution provided in the above step S208 of the present disclosure, after determining the difference color information between the first target color information and the initial color information, based on the determined difference color information and motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame can be mixed to obtain mixed color information. The sampling position can be a sampling coordinate in the historical scene picture frame. The mixed color information can be the color information of the previous frame after blurring obtained by mixing the color information obtained by multiple samplings, which can be called average blurred color information.

[0047] In this embodiment, after determining the difference color information between the first target color information and the initial color information, based on the motion parameter and the determined difference color information, the color information sampled at multiple sampling positions in the historical scene picture frame can be mixed to obtain mixed color information. For example, when the determined difference color information is greater than or equal to the motion factor, the color information sampled at multiple sampling positions in the historical scene picture frame can be determined, and the sampling coordinates in the historical scene picture frame can be traversed through a double loop to obtain multiple color information. The multiple sampled color information is further mixed to obtain mixed color information. Among them, the motion factor can be a threshold value of the motion amplitude of the object to be processed, which can be used to avoid applying blur to small-amplitude motion to save computing resources.

[0048] Optionally, when sampling is performed at multiple sampling positions in the historical scene picture frame, the sampling times can be recorded. Further, when the color information sampled at multiple sampling positions in the historical scene picture frame is mixed, the multiple color information obtained by multiple samplings can be divided by the sampling times to obtain mixed color information, that is, to obtain average fuzzy color information.

[0049] Step S210, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter.

[0050] In the technical solution provided in the above step S210 of the present disclosure, after the color information sampled at multiple sampling positions in the historical scene picture frame is mixed based on the difference color information and the motion parameter to obtain the mixed color information, the second target color information of the current scene picture frame can be determined based on the obtained mixed color information, the initial color information and the motion parameter. The second target color information can be the color information of the final output obtained by mixing the initial color information and the mixed color information, which can be called the final color value information.

[0051] In this embodiment, after obtaining the mixed color information, a mixing (mix) function can be used to linearly interpolate the mixed color information and the initial color information according to the mixing factor to obtain the second target color information. The mix function is an operation of linearly interpolating two colors or data in a certain proportion in a shader, and a mix function in the OpenGL Shading Language (GLSL) is commonly used. GLSL is a high-level programming language for writing shader programs on a graphics processing unit (GPU), which supports efficient parallel computing and complex visual effects. The mixing factor can be used to control the degree of mixing between the phantom of the object to be processed and the main body color value when the object to be processed moves. The larger the value of the mixing factor, the more the color of the phantom of the object to be processed is mixed with the main body color, and the phantom of the object to be processed can be a phantom performance result of the object to be processed.

[0052] Step S212, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0053] In the technical solution provided in the above step S212 of the present disclosure, after determining the second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter, the blurred expression result of the object to be processed in the current scene frame can be displayed using the determined second target color information. The blurred expression result can be a dynamic blur effect displayed by the object to be processed when it moves.

[0054] In this embodiment, after determining the initial color information and the difference color information between the first target color information and the initial color information, when the color value of the initial color information is greater than the occlusion factor, it indicates that the main body of the object to be processed should occlude the phantom; when the color value of the difference color information is less than the motion factor, it indicates that the motion amplitude of the object to be processed is too small, so that the initial color information can be directly displayed, reducing the calculation complexity, and improving the efficiency of processing the object information while achieving the fuzzy expression result.

[0055] Through the above steps S202 to S212, in the process of movement of the object to be processed, the initial color information of the current scene picture frame where the object to be processed is located is determined; based on the initial color information and the motion parameters of the object to be processed, the first target color information of the historical scene picture frame where the object to be processed is located is determined, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; the difference color information between the first target color information and the initial color information is determined; based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, the second target color information of the current scene picture frame is determined; and the blurred representation result of the object to be processed in the current scene picture frame is displayed using the second target color information. That is to say, the embodiment of the present disclosure mixes multiple color information sampled in the historical scene picture frame through motion parameters and the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information and the initial color information based on the motion parameters to obtain second target color information, so as to use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame, thereby achieving the purpose of realizing flexible blurred representation results, and further realizing the technical effect of improving the efficiency of processing the information of the object, and solving the technical problem of low efficiency in processing the information of the object.

[0056] The above method of the embodiment of the present disclosure is further introduced below.

[0057] As an optional embodiment, the object to be processed has a phantom performance result, the motion parameters include an occlusion factor, the occlusion factor is used to represent the object to be processed in motion, and a threshold value of the degree of occlusion of the phantom performance result. Step S204 determines the first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, including: in response to the color value of the initial color information being less than or equal to the threshold value corresponding to the occlusion factor, obtaining the first target color information.

[0058] In this embodiment, the object to be processed has a phantom performance result, the motion parameters may include an occlusion factor, the occlusion factor may be used to represent the object to be processed in motion, and a threshold value of the degree of occlusion of the phantom performance result. After determining the initial color information of the current scene picture frame where the object to be processed is located, when the color value of the determined initial color information is less than or equal to the threshold value corresponding to the occlusion factor, in response to the color value of the initial color information being less than or equal to the threshold value corresponding to the occlusion factor, the first target color information may be acquired.

[0059] Optionally, after determining the initial color information of the current scene picture frame where the object to be processed is located, when the color value of the determined initial color information is less than or equal to the threshold corresponding to the occlusion factor, the first target color information can be determined according to the texture of the historical scene picture frame where the object to be processed is located.

[0060] As an optional embodiment, the method further includes: in response to a color value of the initial color information being greater than a threshold value corresponding to the occlusion factor, determining the initial color information as second target color information of the current scene picture frame.

[0061] In this embodiment, after determining the initial color information of the current scene picture frame where the object to be processed is located, when the color value of the determined initial color information is greater than the threshold corresponding to the occlusion factor, the determined initial color information can be determined as the second target color information of the current scene picture frame.

[0062] Optionally, when the color value of the initial color information is greater than the threshold corresponding to the occlusion factor, it means that the main body of the object to be processed should occlude the phantom. At this time, the initial color information can be determined as the second target color information of the current scene frame, that is, the color information of the current frame is directly output.

[0063] As an optional embodiment, the motion parameters include a motion factor and a fuzzy factor, the motion factor is used to represent a threshold value of a motion amplitude of an object to be processed in motion, and the fuzzy factor is used to represent a degree of blur of an object to be processed in motion. Step S208, based on the difference color information and the motion parameters, performs a mixing process on the color information sampled at multiple sampling positions in the historical scene picture frame to obtain mixed color information, including: in response to a color value of the difference color information being greater than or equal to a threshold value corresponding to the motion factor, performs a mixing process on the color information sampled at different sampling positions based on the fuzzy factor to obtain mixed color information.

[0064] In this embodiment, the motion parameter may include a motion factor and a fuzzy factor, the motion factor may be used to represent a threshold value of a motion amplitude of an object to be processed in motion, and the fuzzy factor may be used to represent a degree of fuzziness of an object to be processed in motion. After determining the difference color information between the first target color information and the initial color information, when the color value of the determined difference color information is greater than or equal to the threshold value corresponding to the motion factor, in response to the color value of the difference color information being greater than or equal to the threshold value corresponding to the motion factor, based on the fuzzy factor, the color information sampled at different sampling positions may be mixed to obtain mixed color information.

[0065] Optionally, when the color value of the determined difference color information is greater than or equal to the threshold value corresponding to the motion factor, a motion blur effect can be performed, that is, the color information sampled at different sampling positions is blurred using the fuzzy factor to obtain blurred color information. Further, the obtained multiple blurred color information can be mixed to obtain mixed color information. The fuzzy factor can be used to control the degree of blur when the object to be processed moves. The larger the value of the fuzzy factor, the more obvious the blur effect of the object to be processed.

[0066] As an optional embodiment, in response to the color value of the difference color information being greater than or equal to the threshold value corresponding to the motion factor, the color information sampled at different sampling positions is mixed based on a fuzzy factor to obtain mixed color information, including: in response to the color value of the difference color information being greater than or equal to the threshold value corresponding to the motion factor, the color information sampled at different sampling positions is fuzzy processed using the fuzzy factor to obtain blurred color information; the blurred color information corresponding to different sampling positions is accumulated to obtain an accumulated result, and the sampling number corresponding to the color information is obtained; and the accumulated result is normalized using the sampling number to obtain mixed color information.

[0067] In this embodiment, after determining the difference color information between the first target color information and the initial color information, when the color value of the determined difference color information is greater than or equal to the threshold value corresponding to the motion factor, in response to the color value of the difference color information being greater than or equal to the threshold value corresponding to the motion factor, the color information sampled at different sampling positions can be blurred using the fuzzy factor to obtain blurred color information. After obtaining the blurred color information, the blurred color information corresponding to the different sampling positions can be accumulated to obtain an accumulated result, and the sampling times (Sampling Times) corresponding to the color information can be obtained. Further, using the sampling times, the accumulated result can be normalized to obtain mixed color information. Among them, the blurred color information (Blur Color) can be the color information obtained by blurring the sampled color information using the fuzzy factor. The accumulated result can be the result obtained by accumulating multiple blurred color information.

[0068] Optionally, after using the fuzzy factor to perform fuzzy processing on the color information sampled at different sampling positions to obtain the blurred color information, multiple blurred color information can be accumulated to obtain an accumulated result, and the sampling number corresponding to the color information can be obtained. The accumulated result can be further normalized using the sampling number, that is, the accumulated result can be divided by the sampling number to obtain mixed color information, that is, the average fuzzy color information.

[0069] As an optional embodiment, the method further includes: in response to a color value of the difference color information being smaller than a threshold value corresponding to the motion factor, determining the initial color information as second target color information of the current scene frame.

[0070] In this embodiment, after determining the difference color information between the first target color information and the initial color information, when the color value of the determined difference color information is less than the threshold corresponding to the motion factor, in response to the color value of the difference color information being less than the threshold corresponding to the motion factor, the initial color information can be determined as the second target color information of the current scene picture frame.

[0071] Optionally, when the color value of the difference color information is less than the threshold corresponding to the motion factor, it means that the motion amplitude of the object to be processed is too small. At this time, the initial color information can be determined as the second target color information of the current scene picture frame, that is, the color information of the current frame is directly output.

[0072] As an optional embodiment, the object to be processed has a phantom representation result, the motion parameters include a mixing factor, the mixing factor is used to represent the degree of mixing between the color value of the object to be processed in motion in the initial color information and the color value of the phantom representation result in the mixed color information, step S210, based on the mixed color information, the initial color information and the motion parameters, determining the second target color information of the current scene picture frame, including: according to the mixing factor, mixing the mixed color information and the initial color information to obtain the second target color information.

[0073] In this embodiment, the object to be processed has a phantom performance result, and the motion parameter may include a mixing factor, which may be used to indicate the degree of mixing between the color value of the object to be processed in motion in the initial color information and the color value of the phantom performance result in the mixed color information. After the color information sampled at multiple sampling positions in the historical scene frame is mixed based on the difference color information and the motion parameter to obtain the mixed color information, the mixed color information and the initial color information are mixed according to the mixing factor to obtain the second target color information.

[0074] Optionally, after the mixed color information is obtained, a mix function may be used to mix the obtained mixed color information and the initial color information according to a mixing factor to obtain the second target color information.

[0075] As an optional embodiment, the mixed color information and the initial color information are mixed according to the mixing factor to obtain the second target color information, including: according to the mixing factor, the mixed color information and the initial color information are linearly interpolated to obtain the second target color information.

[0076] In this embodiment, after the mixed color information is obtained, the mixed color information and the initial color information are linearly interpolated according to the mixing factor to obtain the second target color information. Optionally, after the mixed color information is obtained, a mix function can be used, and the obtained mixed color information and the initial color information are linearly interpolated according to the mixing factor to obtain the second target color information.

[0077] As an optional embodiment, step S204 determines the first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, including: obtaining the first target color information from the texture of the historical scene picture frame based on the initial color information and the motion parameters.

[0078] In this embodiment, after determining the initial color information of the current scene picture frame where the object to be processed is located, the first target color information can be acquired from the texture of the historical scene picture frame based on the determined initial color information and motion parameters.

[0079] Optionally, after determining the initial color information, when the color value of the determined initial color information is less than or equal to a threshold value corresponding to the occlusion factor, the first target color information may be determined according to the texture of the historical scene frame where the object to be processed is located.

[0080] As an optional embodiment, the method also includes: in response to removing the initial image filter of the object to be processed, creating a target image filter for the object to be processed; in response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold, and the rendering target of the historical scene picture frame being in a valid state, passing the rendering target of the historical scene picture frame to the texture attribute of the target image filter to obtain the texture of the historical scene picture frame, wherein the rendering target is used to represent the image of the object to be processed in the historical scene picture frame.

[0081] In this embodiment, in response to removing the initial image filter of the object to be processed, a target image filter can be created for the object to be processed. After creating the target image filter for the object to be processed, in response to the current frame number (curFrame) corresponding to the current scene picture frame being greater than or equal to the frame number threshold, and the rendering target of the historical scene picture frame being in a valid state, the rendering target of the historical scene picture frame can be passed to the texture attribute of the target image filter to obtain the texture of the historical scene picture frame. Among them, the initial image filter can be an image filter already existing on the object to be processed. The target image filter can be a newly created custom filter (Custom Filter) applied to the object to be processed. The frame number threshold can be a threshold preset through an interface. For example, the frame number threshold can be 1, indicating that each frame is captured. Figure 1The interval frame number can be used to set the number of frames after which the render target of the previous frame is passed to the fragment shader to control the frequency of dynamic blur effect updates. The render target can be used to represent the image of the object to be processed in the historical scene frame, that is, it can be used to represent the image drawn by the object to be processed in the previous frame.

[0082] Optionally, before creating a target image filter for the object to be processed, the initial image filter of the object to be processed can be removed, that is, the existing filter on the object to be processed is removed to ensure that the initial image filter does not conflict with the target image filter. The current frame number can be preset to 0, and the current frame number can be reset by increasing the current frame number in response to the current frame number being greater than or equal to a frame number threshold. Further, when it is determined that the rendering target of the historical scene picture frame is in a valid state, that is, the rendering target of the historical scene picture frame exists, the rendering target can be passed to the texture attribute of the newly created target image filter to obtain the texture of the historical scene picture frame.

[0083] As an optional embodiment, the method also includes: in response to the rendering target of the historical scene picture frame being in an invalid state, deleting the rendering target of the historical scene picture frame, and creating an initial instance object corresponding to the texture of the historical scene picture frame; drawing the object to be processed onto the initial instance object to obtain a target instance object; and determining the target instance object as the rendering target of the historical scene picture frame.

[0084] In this embodiment, when the rendering target of the historical scene picture frame is in an invalid state, in response to the rendering target of the historical scene picture frame being in an invalid state, the rendering target of the historical scene picture frame can be deleted, and an initial instance object corresponding to the texture of the historical scene picture frame is created. After the initial instance object corresponding to the texture of the historical scene picture frame is created, the object to be processed can be drawn onto the initial instance object to obtain a target instance object. The target instance object can further be determined as the rendering target of the historical scene picture frame.

[0085] Optionally, when it is determined that the rendering target of the historical scene picture frame is in an invalid state, that is, the rendering target of the historical scene picture frame does not exist, the rendering target of the historical scene picture frame can be deleted, and an initial instance object corresponding to the texture of the historical scene picture frame is created. After the initial instance object is created, the object to be processed can be drawn onto the initial instance object to obtain a target instance object. The obtained target instance object can be further determined as the rendering target of the historical scene picture frame, that is, the rendering target of the target image filter is updated.

[0086] As an optional embodiment, the method also includes: a first determination step, determining that the current frame number corresponding to the current scene picture frame is greater than or equal to a frame number threshold, or determining that the current frame number corresponding to the current scene picture frame is less than the frame number threshold; a counting step, in response to the current frame number corresponding to the current scene picture frame being less than the frame number threshold, performing a self-increment operation on the current frame number, determining the current frame number after self-increment as the current frame number, and determining the next scene picture frame of the current scene picture frame as the current scene picture frame, and returning to the first determination step; a second determination step, in response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold, resetting the current frame number to an initial value, determining the next scene picture frame of the current scene picture frame in the scene picture as the current scene picture frame, and returning to the first determination step until the current scene picture frame has no next scene picture frame in the scene picture.

[0087] In this embodiment, the magnitude relationship between the current frame number corresponding to the current scene picture frame and the frame number threshold can be determined, that is, the current frame number corresponding to the current scene picture frame is greater than or equal to the frame number threshold, or the current frame number corresponding to the current scene picture frame is less than the frame number threshold. In response to the current frame number corresponding to the current scene picture frame being less than the frame number threshold, the current frame number can be self-added, the current frame number after self-addition is determined as the current frame number, and the next scene picture frame of the current scene picture frame is determined as the current scene picture frame, and the above step of determining the magnitude relationship between the current frame number and the frame number threshold is returned. In response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold, the current frame number can be reset to the initial value, the next scene picture frame of the current scene picture frame in the scene picture is determined as the current scene picture frame, and the above step of determining the magnitude relationship between the current frame number and the frame number threshold is returned until the current scene picture frame has no next scene picture frame in the scene picture. Among them, the initial value of the current frame number can be 0, which is only for example, and the value of the initial value is not specifically limited.

[0088] Optionally, this embodiment achieves a smooth transition between consecutive frames by updating the rendering target of the object to be processed every several frames, simulating the dynamic blur effect of the object to be processed when it moves. The degree of dynamic blur and other effect parameters can be adjusted by passing different motion parameters, thereby achieving a flexible dynamic blur effect.

[0089] As an optional embodiment, the method further includes: in response to not acquiring the texture of the historical scene picture frame, determining the initial color information as the second target color information of the current scene picture frame.

[0090] In this embodiment, when the texture of the historical scene picture frame is not acquired, in response to the fact that the texture of the historical scene picture frame is not acquired, the initial color information may be determined as the second target color information of the current scene picture frame.

[0091] Optionally, after obtaining the initial color information, it can be determined whether to use the texture of the historical scene frame. When the texture of the historical scene frame is not obtained, it means that there is no color information of the previous frame, and the initial color information can be determined as the second target color information of the current scene frame, that is, the color information of the current frame is directly output.

[0092] As an optional embodiment, step S202, determining the initial color information of the current scene picture frame where the object to be processed is located, includes: acquiring the initial color information from the texture of the current scene picture frame.

[0093] In this embodiment, the initial color information may be determined according to the texture of the current scene frame.

[0094] In an embodiment of the present disclosure, during the movement of an object to be processed, the initial color information of a current scene picture frame where the object to be processed is located is determined; based on the initial color information and the motion parameters of the object to be processed, the first target color information of a historical scene picture frame where the object to be processed is located is determined, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; the difference color information between the first target color information and the initial color information is determined; based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, the second target color information of the current scene picture frame is determined; and using the second target color information, the blurred representation result of the object to be processed in the current scene picture frame is displayed. That is to say, the embodiment of the present disclosure mixes multiple color information sampled in the historical scene picture frame through motion parameters and the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information and the initial color information based on the motion parameters to obtain second target color information, so as to use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame, thereby achieving the purpose of realizing flexible blurred representation results, and further realizing the technical effect of improving the efficiency of processing the information of the object, and solving the technical problem of low efficiency in processing the information of the object.

[0095] The technical solution of the embodiment of the present disclosure is further introduced below with examples in combination with preferred implementation modes.

[0096] At present, in the field of Hypertext Markup Language 5 (HTML5 or H5) game development, the improvement of visual effects is crucial to user experience. As a common visual enhancement technology, dynamic blur effect can improve the smoothness and realism of the picture, especially in high-speed motion scenes. However, in H5 games, there are still significant technical limitations in achieving dynamic blur effect. Current H5 games usually simulate dynamic blur effect in the form of pure animation, for example, using sequence frame animation, skeletal animation, interpolation animation and other methods. Although these methods can achieve blur effect to a certain extent, they are not dynamic blur in the true sense. The above methods rely on pre-generated animation frames or interpolation calculations of animation tools, lack real-time performance and flexibility, and cannot be dynamically adjusted according to actual scenes and object motion.

[0097] It should be noted that H5 games refer to games developed using HTML5 technology, which have cross-platform features and can be run on different devices and browsers without installing plug-ins. H5 games are usually developed using HTML, Cascading Style Sheets (CSS) and JavaScript, and use HTML5-related technologies such as the Canvas Application Programming Interface (Canvas API), Web Graphics Library (WebGL), and Audio API to achieve complex graphics and sound effects. This type of game can be accessed directly through a web link, and is very suitable for interactive entertainment on mobile devices and desktop browsers. Among them, WebGL is a JavaScript API for rendering high-performance two-dimensional (2D) and three-dimensional (3D) graphics in web pages.

[0098] Sprite Sheet Animation is a technique for creating animation effects by continuously playing a series of pre-drawn image frames. Developers can use image editing software to create a series of frames with blur effects and arrange these frames in order into an animation sequence. In the game, playing these sprite sheet animations can achieve dynamic blur effects. The advantage of this method is that it is simple to implement and can directly play pre-generated frames without complex real-time calculations. However, sprite sheet animation may increase resource usage, especially in high-resolution and long animations.

[0099] Spine Animation is a technology that uses bone control and skin deformation to create complex and flexible 2D animations. Developers can create bone animations with blur effects for characters or objects in Spine, and then play these animations in the game. The advantage of Spine animation is that it can achieve delicate blur effects by adjusting bones and keyframes, and it takes up fewer resources because only bone data and a small amount of keyframe information need to be saved. However, its implementation process is complex and has poor real-time performance because the blur effect is pre-set and cannot be dynamically adjusted according to real-time motion conditions.

[0100] Tweening Animation (Tween animation for short) is an animation technique that achieves a smooth transition by automatically generating intermediate frames between two key frames. Developers can achieve dynamic blur effects by adding key frames for blur effects to Tween animations, or by dynamically adjusting blur parameters during Tween animations. For example, you can adjust parameters such as transparency and position offset in each frame of Tween animations to simulate blur effects. The advantage of Tween animations is that they are flexible to implement and can dynamically adjust blur effects as needed, but they require precise control of the interpolation calculations for each frame, which may increase the complexity of implementation.

[0101] In order to solve the above problems, the present application provides a method for realizing a dynamic blur effect based on an H5 game, that is, realizing an efficient and real-time dynamic blur effect in an H5 game. Since the prior art usually relies on pre-generated animation frames or calculations on the CPU, it results in large resource consumption and poor real-time performance. The present disclosure can realize an efficient dynamic blur effect without significantly increasing resource usage by utilizing the fragment shader of the GPU.

[0102] This embodiment uses a fragment shader based on WebGL to achieve dynamic blur effects. By sampling the color information of the current frame and the previous frame, according to the set parameters such as motion factor, blur factor, occlusion factor, blending factor, interval frame number, and using a unique method to calculate the occlusion relationship and motion amplitude, real-time motion blur processing is performed on the dynamic elements in the picture. This method does not rely on pre-generated animation frames, can be dynamically adjusted according to the actual scene and object movement, and has high real-time and flexibility. Among them, motion blur (Motion Blur) is an image processing technology used to simulate the visual blur effect produced when a fast-moving object moves, making the image look more natural and realistic.

[0103] Figure 3 is a flow chart of a method for implementing a dynamic blur effect based on an H5 game according to one embodiment of the present disclosure, such as Figure 3As shown, the flowchart may include three parts: initialization processing, frame loop processing and fragment shader processing. The process of the method for implementing the dynamic blur effect based on H5 games may include at least the following steps:

[0104] Step S301, clearing the motion blur filter.

[0105] In the above steps, for motion blur, first, clear the motion blur filter. Call the clearShader method to remove the existing filter on the target object to ensure that it will not conflict with the new filter.

[0106] Step S302, initialize the dynamic blur filter and start the fragment shader processing.

[0107] In the above steps, the motion blur filter is initialized. A uniforms object containing multiple parameters (Motion Factor, Oocclusion Factor, Blur Factor, Blend Factor) is created. These parameters control different aspects of the motion blur effect. A custom filter Custom Filter is created using the Egret engine class (egret.CustomFilter). The filter is based on vertex shaders and fragment shaders to implement motion blur. The name of the filter is motionBlur, and the uniforms parameters are initialized. The texture (textures) property of the Custom Filter is initialized, and the previous frame's rendering target (previous Render Target) is set to null. Among them, the shader uniform variable uniforms is a global variable used in the shader, which is passed from the CPU to the GPU and is usually used to pass matrices, lighting parameters, material properties, etc. The custom filter Custom Filter is the egret.CustomFilter class of the Egret engine (Egret Engine), which is used to create a custom image filter and achieve complex image effects by setting vertex shaders and fragment shaders. Texture (Texture) is an image or color data applied to geometric figures to increase the details and realism of the graphics.

[0108] Furthermore, the filter of the target object is set, and the created Custom Filter is applied to the target object target so that it starts to use the filter with the motion blur effect.

[0109] Step S303, start frame loop processing.

[0110] Step S304, accumulating the current frame number.

[0111] In the above steps, the frame update logic is defined: declare and initialize the current frame counter curFrame to 0. Define the update render target (tryUpdateRenderTarget) function, which is responsible for updating the filter's render target after each interval frame: increase the curFrame count, that is, accumulate curFrame (curFrame++).

[0112] Step S305: whether the current frame number is greater than or equal to the interval frame number.

[0113] In the above steps, it is determined whether the current frame number curFrame is greater than or equal to the interval frame number (IntervalFrame). If the current frame number reaches the set interval frame number (Interval Frame), then proceed to the next step, otherwise, return to the previous step.

[0114] Step S306, reset the current frame number.

[0115] In the above steps, if the current frame number reaches the set interval frame number, the current frame number is reset, that is, curFrame is reset to 0.

[0116] Step S307, passing the texture of the previous frame to the fragment shader.

[0117] In the above steps, check whether the previous frame's rendering target previous Render Target exists: if it exists, set the Custom Filter's flag (uniforms.usePrevious) to true to indicate whether to use the previous frame's texture, and pass the previous Render Target to the Custom Filter's textures property. If it does not exist, set the Custom Filter's uniforms.usePrevious to false.

[0118] Step S308, destroying the old previous frame texture.

[0119] In the above steps, the previous Render Target of the previous frame is destroyed.

[0120] Step S309, drawing and caching a new previous frame texture.

[0121] In the above steps, a new render texture (RenderTexture) instance object currentRender Target is created, and the current target object is drawn to the render target. The previous Render Target is updated to the current Render Target.

[0122] It should be noted that uniforms.usePrevious represents a Boolean uniform variable, which is used to control whether the custom filter uses the data of the previous frame. When set to true, the custom filter will use the data of the previous frame for processing. Render Texture is used to create a temporary frame buffer in memory. Graphics can be rendered to this texture for the realization of complex graphics effects.

[0123] Finally, the tryUpdateRenderTarget function is called every frame: a frame event listener is added to the target object, and the tryUpdateRenderTarget function is called once every frame to ensure that the dynamic blur effect is updated over time. In game development, a frame loop refers to a continuously executed loop process used to update and render each frame of the scene. Each loop cycle usually includes steps such as processing input, updating game status, performing physical calculations, and rendering images.

[0124] This embodiment achieves a smooth transition between consecutive frames by updating the rendering target of the target object every several frames, simulating the dynamic blur effect when the object moves. The degree of dynamic blur and other effect parameters can be adjusted by passing different Motion Factor, Occlusion Factor, Blur Factor and Blend Factor to achieve a flexible dynamic blur effect.

[0125] Step S310, sampling the current frame color.

[0126] In the above steps, the current frame color is sampled based on the current frame texture.

[0127] GLSL for fragment shaders. First, declare variables related to samplers and parameters: specify the precision of floating-point numbers as low precision, texture coordinates, texture samplers for the current frame, texture samplers for the previous frame, a flag to indicate whether to use the texture of the previous frame, motion factor (controls the sensitivity of motion blur), occlusion factor (determines whether occlusion processing is required), blur factor (controls the intensity of the blur effect), blend factor (controls the blending ratio between the current frame and the previous frame after blurring). Secondly, auxiliary functions for calculating color differences and color values ​​can be used to calculate the difference between two colors, as well as to calculate the total value of a color. Among them, Precision defines the accuracy level of the data type of the variable in the shader, including high precision, medium precision, and low precision.

[0128] Finally, the execution process of the main function may at least include: sampling the color of the current frame: obtaining the color value of the current pixel from the texture of the current frame.

[0129] Step S311, whether the previous frame texture has been transferred during the frame loop processing.

[0130] In the above steps, it is determined whether the previous frame texture has been transferred during the frame loop processing. If the previous frame texture has been transferred during the frame loop processing, the next step is entered, otherwise, the step S313 is entered.

[0131] Step S312: whether the current frame color is less than or equal to the occlusion factor.

[0132] In the above steps, it is determined whether the current frame color is less than or equal to the occlusion factor. If the current frame color is greater than the occlusion factor, the next step is entered, otherwise the step is entered into step S314.

[0133] Step S313, directly display the current frame color.

[0134] In the above steps, if the current frame color is greater than the occlusion factor, the current frame color is directly displayed.

[0135] Optionally, determine whether to use the color of the previous frame: if the flag (usePrevious) of whether to use the previous frame texture is false, it means that there is no color information of the previous frame, and the color of the current frame is directly output, and the execution of the fragment shader ends.

[0136] Optionally, occlusion processing: if the color value of the current frame is greater than the occlusion factor, it means that occlusion processing is required, and the color of the current frame is directly output, ending the execution of the fragment shader.

[0137] Optionally, if the color difference is less than the motion factor, it means that the motion amplitude is too small, and the color of the current frame is directly output, ending the execution of the fragment shader.

[0138] Step S314, sampling the color of the previous frame based on the texture of the previous frame.

[0139] In the above steps, if the current frame color is less than or equal to the occlusion factor, the previous frame color is sampled based on the previous frame texture.

[0140] Optionally, sample the color of the previous frame: get the color value of the pixel in the previous frame from the texture of the previous frame.

[0141] Step S315, calculating the color difference value between the current frame and the previous frame.

[0142] In the above steps, the color difference value between the current frame and the previous frame is calculated.

[0143] Optionally, calculate color difference and perform motion magnitude judgment: Calculate the color difference between the current frame and the previous frame.

[0144] Step S316: whether the color difference value is greater than or equal to the motion factor.

[0145] In the above steps, it is determined whether the color difference value is greater than or equal to the motion factor. When the color difference value is greater than or equal to the motion factor, the process proceeds to step S317, otherwise it returns to step S313.

[0146] Step S317, performing a dynamic blur effect.

[0147] In the above steps, the dynamic blur effect is performed. To perform the motion blur effect: initialize the blur color and sampling times, and define the blur sampling offset value.

[0148] Step S318, sampling and mixing the texture of the previous frame multiple times, and then performing normalization processing to obtain a blurred color.

[0149] In the above steps, the texture of the previous frame is sampled multiple times and mixed, and then normalized to obtain the blurred color. Multiple sampling and color mixing: The sampling coordinates are traversed through a double loop, the color values ​​of multiple offset positions are calculated, and accumulated into the Blur Color. At the same time, the sampling times are recorded. The blurred colors of multiple samples are normalized: the average blurred color is obtained by dividing by the sampling times.

[0150] Step S319: linearly mix the current frame color and the blurred color based on the mixing factor, and display the final color value.

[0151] In the above steps, the current frame color and the blurred color are linearly mixed based on the blending factor, and the final color value is displayed. Mix the blurred color and the current frame color: Use the mix function to linearly interpolate the blurred color and the current frame color according to the blending factor Blend Factor to obtain the final output color.

[0152] It should be noted that sampling is the process of obtaining data from a texture or other data source, which is used to calculate color and other attributes in the shader. Interpolation variables are used to transfer data between the vertex shader and the fragment shader. The data calculated by the vertex shader will be interpolated in the graphics hardware and passed to the fragment shader. Mixing is the operation of linearly interpolating two colors or data in a certain proportion in the shader, and the mix function in GLSL is often used. Texture coordinates define the mapping method of textures on geometric models, usually represented by (u, v) coordinates, from (0, 0) to (1, 1). Interpolation is a mathematical method used in computer graphics to generate intermediate values ​​between known data points, which is often used in the calculation of texture, color and lighting effects. Normalization in Shaders is the process of converting vectors into unit vectors (i.e. vectors with a length of 1) in shaders.

[0153] Figure 4 is a schematic diagram of a dynamic blur effect achieved according to one embodiment of the present disclosure, Figure 5 is a schematic diagram of another implementation of a dynamic blur effect according to one embodiment of the present disclosure, such as Figure 4 and Figure 5 The blurred performance results marked in the figure are shown. This embodiment is based on the fragment shader processing of WebGL, and can generate high-quality dynamic blur effects in real time with strong real-time performance. It uses GPU parallel computing to significantly reduce resource consumption, which is more efficient and has low resource consumption than the method of pre-generating animation frames. It is suitable for various H5 games without the need for additional hardware support, and has broad application prospects and wide applicability.

[0154] In terms of real-time generation of dynamic blur effects, this embodiment uses fragment shaders for parallel calculations on the GPU to achieve real-time generation of dynamic blur effects. In terms of efficient resource utilization, this embodiment makes full use of the parallel computing capabilities of the GPU, reduces the burden on the CPU, and significantly reduces system resource consumption, so that this embodiment can run smoothly on mobile devices and resource-limited environments. For the integration and expansion of H5 games, this embodiment uses standard WebGL interfaces and shader codes, which can be easily integrated into existing H5 games, has good scalability, and adapts to different application requirements. For parameterized configuration, parameterized configuration is provided through the Motion Blur interface, and users can adjust the intensity and other parameters of the blur effect according to their needs, providing a flexible way of use.

[0155] This embodiment optimizes the computational complexity by sampling the color information of the current frame and the previous frame and using a unique method to calculate the occlusion relationship and motion amplitude, thereby improving efficiency while ensuring the effect. Occlusion relationship calculation: If the color value of the current frame is greater than the occlusion factor, it means that the subject should block the phantom, and the color of the current frame is directly displayed. Motion amplitude calculation: If the color difference is less than the motion factor, it means that the motion amplitude is too small, and the color of the current frame is directly displayed.

[0156] In an embodiment of the present disclosure, during the movement of an object to be processed, the initial color information of a current scene picture frame where the object to be processed is located is determined; based on the initial color information and the motion parameters of the object to be processed, the first target color information of a historical scene picture frame where the object to be processed is located is determined, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; the difference color information between the first target color information and the initial color information is determined; based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, the second target color information of the current scene picture frame is determined; and using the second target color information, the blurred representation result of the object to be processed in the current scene picture frame is displayed. That is to say, the embodiment of the present disclosure mixes multiple color information sampled in the historical scene picture frame through motion parameters and the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information and the initial color information based on the motion parameters to obtain second target color information, so as to use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame, thereby achieving the purpose of realizing flexible blurred representation results, and further realizing the technical effect of improving the efficiency of processing the information of the object, and solving the technical problem of low efficiency in processing the information of the object.

[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present disclosure.

[0158] Figure 6 is a structural block diagram of an information processing system according to one embodiment of the present disclosure, such as Figure 6 As shown, the information processing system 600 may include: an engine 602 and a shader (Shader) 604 .

[0159] The engine 602 is used to output the texture of the historical scene frame where the object to be processed is located during the movement of the object to be processed.

[0160] Optionally, the engine 602 can be used to output the texture of the historical scene frame where the object to be processed is located during the movement of the object to be processed. The engine can be the Egret engine, which is an efficient, cross-platform HTML5 game development engine that supports 2D game development and provides rich APIs and tools.

[0161] Shader 604 is used to determine the initial color information of the current scene picture frame where the object to be processed is located; based on the initial color information and the motion parameters of the object to be processed, determine the first target color information from the texture of the historical scene picture frame where the object to be processed is located, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; determine the difference color information between the first target color information and the initial color information; based on the difference color information and the motion parameters, mix the color information sampled at multiple sampling positions in the historical scene picture frame to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, determine the second target color information of the current scene picture frame; and use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame.

[0162] Optionally, the shader 604 can be used to determine the initial color information of the current scene picture frame where the object to be processed is located. After determining the initial color information, the shader 604 can be used to determine the first target color information from the texture of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent the parameters associated with the motion state of the object to be processed. After determining the first target color information, the shader 604 can be used to determine the difference color information between the first target color information and the initial color information. After determining the difference color information between the first target color information and the initial color information, the shader 604 can also be used to perform a mixed process on the color information sampled at multiple sampling positions in the historical scene picture frame based on the difference color information and the motion parameters to obtain the mixed color information. After obtaining the mixed color information, the shader 604 can also be used to determine the second target color information of the current scene picture frame based on the mixed color information, the initial color information and the motion parameters. After determining the second target color information, the shader 604 can also be used to use the second target color information to display the blurred performance result of the object to be processed in the current scene picture frame.

[0163] Optionally, a shader is a small program running on the GPU, which is used to calculate the color and other visual effects of an image pixel by pixel or vertex by vertex, and mainly includes a vertex shader and a fragment shader. A vertex shader is a program running on the GPU, which is used to process the vertex data of a graphic. A fragment shader is a program running on the GPU, which is used to process the pixel data of a graphic.

[0164] In the present embodiment, an information processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0165] Figure 7 is a structural block diagram of an information processing device according to one embodiment of the present disclosure, such as Figure 7 As shown, the information processing device 700 may include: a first determining unit 702 , a second determining unit 704 , a third determining unit 706 , a mixing unit 708 , a fourth determining unit 710 and a display unit 712 .

[0166] The first determining unit 702 is used to determine the initial color information of the current scene frame where the object to be processed is located during the movement of the object to be processed.

[0167] The second determination unit 704 is used to determine the first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed.

[0168] The third determining unit 706 is configured to determine the difference color information between the first target color information and the initial color information.

[0169] The mixing unit 708 is used to mix the color information sampled at multiple sampling positions in the historical scene frame based on the difference color information and the motion parameter to obtain mixed color information.

[0170] The fourth determining unit 710 is used to determine the second target color information of the current scene picture frame based on the mixed color information, the initial color information and the motion parameter.

[0171] The display unit 712 is used to display the blur expression result of the object to be processed in the current scene frame by using the second target color information.

[0172] Optionally, the object to be processed has a phantom performance result, the motion parameters include an occlusion factor, the occlusion factor is used to represent the object to be processed in motion, and a threshold value of the degree of occlusion of the phantom performance result. The second determination unit 704 includes: a first acquisition module, which is used to acquire the first target color information in response to the color value of the initial color information being less than or equal to the threshold value corresponding to the occlusion factor.

[0173] Optionally, the device further includes: a fifth determination unit, configured to determine the initial color information as second target color information of the current scene picture frame in response to a color value of the initial color information being greater than a threshold value corresponding to the occlusion factor.

[0174] Optionally, the motion parameters include a motion factor and a fuzzy factor, the motion factor is used to represent a threshold value of a motion amplitude of an object to be processed in motion, and the fuzzy factor is used to represent a degree of blur of an object to be processed in motion, and the mixing unit 708 includes: a first mixing module, used to mix the color information sampled at different sampling positions based on the fuzzy factor to obtain mixed color information in response to a color value of the difference color information being greater than or equal to a threshold value corresponding to the motion factor.

[0175] Optionally, the first mixing module includes: a fuzzy submodule, which is used to, in response to the color value of the difference color information being greater than or equal to the threshold value corresponding to the motion factor, use the fuzzy factor to blur the color information sampled at different sampling positions to obtain blurred color information; an accumulation submodule, which is used to accumulate the blurred color information corresponding to different sampling positions to obtain an accumulation result, and obtain the sampling number corresponding to the color information; and a normalization submodule, which is used to normalize the accumulation result using the sampling number to obtain mixed color information.

[0176] Optionally, the device further includes: a sixth determination unit, configured to determine the initial color information as second target color information of the current scene picture frame in response to a color value of the difference color information being less than a threshold corresponding to the motion factor.

[0177] Optionally, the object to be processed has a phantom representation result, the motion parameters include a mixing factor, the mixing factor is used to represent the degree of mixing between the color value of the object to be processed in motion in the initial color information and the color value of the phantom representation result in the mixed color information, the fourth determination unit 710 includes: a second mixing module, used to mix the mixed color information and the initial color information according to the mixing factor to obtain second target color information.

[0178] Optionally, the second mixing module includes: a linear interpolation submodule, used to perform linear interpolation on the mixed color information and the initial color information according to the mixing factor to obtain the second target color information.

[0179] Optionally, the second determining unit 704 includes: a second acquiring module, configured to acquire first target color information from a texture of a historical scene picture frame based on initial color information and motion parameters.

[0180] Optionally, the device also includes: a creation unit, used to create a target image filter for the object to be processed in response to removing the initial image filter of the object to be processed; a transfer unit, used to transfer the rendering target of the historical scene picture frame to the texture attribute of the target image filter in response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold and the rendering target of the historical scene picture frame being in a valid state, so as to obtain the texture of the historical scene picture frame, wherein the rendering target is used to represent the image of the object to be processed in the historical scene picture frame.

[0181] Optionally, the device also includes: a deleting unit, used to delete the rendering target of the historical scene picture frame in response to the rendering target of the historical scene picture frame being in an invalid state, and create an initial instance object corresponding to the texture of the historical scene picture frame; a drawing unit, used to draw the object to be processed onto the initial instance object to obtain a target instance object; and a seventh determination unit, used to determine the target instance object as the rendering target of the historical scene picture frame.

[0182] Optionally, the device also includes: a first determination step, determining that the current frame number corresponding to the current scene picture frame is greater than or equal to a frame number threshold, or determining that the current frame number corresponding to the current scene picture frame is less than the frame number threshold; a counting step, in response to the current frame number corresponding to the current scene picture frame being less than the frame number threshold, performing a self-increment operation on the current frame number, determining the current frame number after self-increment as the current frame number, and determining the next scene picture frame of the current scene picture frame as the current scene picture frame, and returning to the first determination step; a second determination step, in response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold, resetting the current frame number to an initial value, determining the next scene picture frame of the current scene picture frame in the scene picture as the current scene picture frame, and returning to the first determination step until the current scene picture frame has no next scene picture frame in the scene picture.

[0183] Optionally, the device further includes: an eighth determination unit, configured to determine the initial color information as the second target color information of the current scene frame in response to failure to obtain the texture of the historical scene frame.

[0184] Optionally, the first determining unit 702 includes: a third acquiring module, configured to acquire initial color information from a texture of a current scene picture frame.

[0185] Optionally, the historical scene picture frame is a previous scene picture frame of the current scene picture frame.

[0186] In this embodiment, the initial color information of the current scene picture frame where the object to be processed is located is determined by the first determining unit 702 during the motion of the object to be processed. The first target color information of the historical scene picture frame where the object to be processed is located is determined by the second determining unit 704 based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent the parameters associated with the motion state of the object to be processed. The difference color information between the first target color information and the initial color information is determined by the third determining unit 706. The color information sampled at multiple sampling positions in the historical scene picture frame is mixed by the mixing unit 708 based on the difference color information and the motion parameters to obtain the mixed color information. The second target color information of the current scene picture frame is determined by the fourth determining unit 710 based on the mixed color information, the initial color information and the motion parameters. The blur expression result of the object to be processed in the current scene picture frame is displayed by the display unit 712 using the second target color information. That is to say, the embodiment of the present disclosure mixes multiple color information sampled in the historical scene picture frame through motion parameters and the difference color information between the initial color information of the current scene picture frame and the first target color information of the historical scene picture frame to obtain mixed color information, and further mixes the mixed color information and the initial color information based on the motion parameters to obtain second target color information, so as to use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame, thereby achieving the purpose of realizing flexible blurred representation results, and further realizing the technical effect of improving the efficiency of processing the information of the object, and solving the technical problem of low efficiency in processing the information of the object.

[0187] It should be noted that the above-mentioned units can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned units are all located in the same processor; or the above-mentioned units are located in different processors in any combination.

[0188] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0189] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0190] S1, during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located;

[0191] S2, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed;

[0192] S3, determining difference color information between the first target color information and the initial color information;

[0193] S4, based on the difference color information and the motion parameter, mixing the color information sampled at multiple sampling positions in the historical scene frame to obtain mixed color information;

[0194] S5, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter;

[0195] S6, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0196] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0197] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0198] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0199] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0200] S1, during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located;

[0201] S2, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed;

[0202] S3, determining difference color information between the first target color information and the initial color information;

[0203] S4, based on the difference color information and the motion parameter, mixing the color information sampled at multiple sampling positions in the historical scene frame to obtain mixed color information;

[0204] S5, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter;

[0205] S6, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0206] An embodiment of the present disclosure further provides a computer program product, which may include a computer program, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0207] Optionally, in this embodiment, the computer program product may be configured to include a computer program for performing the following steps:

[0208] S1, during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located;

[0209] S2, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed;

[0210] S3, determining difference color information between the first target color information and the initial color information;

[0211] S4, based on the difference color information and the motion parameter, mixing the color information sampled at multiple sampling positions in the historical scene frame to obtain mixed color information;

[0212] S5, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter;

[0213] S6, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0214] An embodiment of the present disclosure further provides a computer program product, which may include a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program is configured to execute the steps of any of the above method embodiments when running.

[0215] Optionally, in this embodiment, the computer program product may be configured to include a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0216] S1, during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located;

[0217] S2, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed;

[0218] S3, determining difference color information between the first target color information and the initial color information;

[0219] S4, based on the difference color information and the motion parameter, mixing the color information sampled at multiple sampling positions in the historical scene frame to obtain mixed color information;

[0220] S5, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter;

[0221] S6, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0222] An embodiment of the present disclosure further provides a computer program, which is configured to execute the steps of any of the above method embodiments when running.

[0223] Optionally, in this embodiment, the computer program is configured to perform the following steps:

[0224] S1, during the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located;

[0225] S2, determining first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed;

[0226] S3, determining difference color information between the first target color information and the initial color information;

[0227] S4, based on the difference color information and the motion parameter, mixing the color information sampled at multiple sampling positions in the historical scene frame to obtain mixed color information;

[0228] S5, determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter;

[0229] S6, using the second target color information, displaying the blurring result of the object to be processed in the current scene frame.

[0230] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0231] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Figure 8 As shown, the electronic device 800 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0232] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processor 810, at least one memory 820, a bus 830 connecting different system components (including the memory 820 and the processor 810), and a display 840.

[0233] The memory 820 stores program codes, which can be executed by the processor 810, so that the processor 810 executes the steps described in the method part of the embodiment of the present disclosure according to various exemplary embodiments of the present disclosure.

[0234] The memory 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202, and may further include a read-only memory unit (ROM) 8203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0235] In some examples, the memory 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. The memory 820 may further include a memory remotely disposed relative to the processor 810, and these remote memories may be connected to the electronic device 800 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0236] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a local bus of processor 810, or a bus using any of a variety of bus architectures.

[0237] The display 840 may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 800 .

[0238] Optionally, the electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 800, and / or any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. Figure 8 As shown, the network adapter 860 communicates with other modules of the electronic device 800 via the bus 830. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, redundant array of independent disks (RAID) systems, tape drives, and data backup storage systems.

[0239] The electronic device 800 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.

[0240] It can be understood by those skilled in the art that Figure 8 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 8 More or fewer components as shown, or with Figure 1The memory 820 may be used to store computer programs and corresponding data, such as the computer programs and corresponding data corresponding to the information processing method in the embodiment of the present disclosure. The processor 810 executes various functional applications and data processing by running the computer programs stored in the memory 820, that is, implements the above-mentioned information processing method.

[0241] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0242] In the above embodiments of the present disclosure, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0243] In the several embodiments provided in the present disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0244] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0245] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0246] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., which can store program code.

[0247] The above are only preferred embodiments of the present disclosure. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications should also be regarded as the protection scope of the present disclosure.

Claims

1. An information processing method, characterized in that: include: During the movement of the object to be processed, determining the initial color information of the current scene frame where the object to be processed is located; Determine first target color information of the historical scene frame where the object to be processed is located based on the initial color information and the motion parameters of the object to be processed, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; Determine difference color information between the first target color information and the initial color information; Based on the difference color information and the motion parameter, color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information; Determining second target color information of the current scene frame based on the mixed color information, the initial color information and the motion parameter; The second target color information is used to display the blurred representation result of the object to be processed in the current scene frame.

2. The method according to claim 1, characterized in that The object to be processed has a phantom performance result, the motion parameters include an occlusion factor, the occlusion factor is used to represent the threshold value of the degree of occluding the phantom performance result of the object to be processed in the motion state, and based on the initial color information and the motion parameters of the object to be processed, determining the first target color information of the historical scene picture frame where the object to be processed is located, including: In response to a color value of the initial color information being less than or equal to a threshold corresponding to the occlusion factor, the first target color information is acquired.

3. The method according to claim 2, characterized in that The method further comprises: In response to a color value of the initial color information being greater than a threshold value corresponding to the occlusion factor, the initial color information is determined as the second target color information of the current scene picture frame.

4. The method according to claim 1, characterized in that: The motion parameters include a motion factor and a fuzzy factor, wherein the motion factor is used to represent a threshold value of a motion amplitude of the object to be processed in the motion state, and the fuzzy factor is used to represent a degree of fuzziness of the object to be processed in the motion state. Based on the difference color information and the motion parameters, the color information sampled at multiple sampling positions in the historical scene picture frame is mixed to obtain mixed color information, including: In response to the color value of the difference color information being greater than or equal to the threshold corresponding to the motion factor, the color information sampled at different sampling positions is mixed based on the fuzzy factor to obtain the mixed color information.

5. The method according to claim 4, characterized in that In response to the color value of the difference color information being greater than or equal to the threshold corresponding to the motion factor, the color information sampled at different sampling positions is mixed based on the fuzzy factor to obtain the mixed color information, including: In response to the color value of the difference color information being greater than or equal to the threshold corresponding to the motion factor, using the fuzzy factor, fuzzy processing is performed on the color information sampled at different sampling positions to obtain blurred color information; Accumulate the blurred color information corresponding to different sampling positions to obtain an accumulation result, and obtain the number of sampling times corresponding to the color information; The accumulated result is normalized by using the sampling times to obtain the mixed color information.

6. The method according to claim 4, characterized in that The method further comprises: In response to a color value of the difference color information being less than a threshold value corresponding to the motion factor, the initial color information is determined as the second target color information of the current scene picture frame.

7. The method according to claim 1, characterized in that The object to be processed has a phantom representation result, the motion parameter includes a mixing factor, the mixing factor is used to represent the degree of mixing between the color value of the object to be processed in the motion state in the initial color information and the color value of the phantom representation result in the mixed color information, and based on the mixed color information, the initial color information and the motion parameter, determining the second target color information of the current scene picture frame, including: The mixed color information and the initial color information are mixed according to the mixing factor to obtain the second target color information.

8. The method according to claim 7, characterized in that The mixed color information and the initial color information are mixed according to the mixing factor to obtain the second target color information, including: According to the mixing factor, linear interpolation is performed on the mixed color information and the initial color information to obtain the second target color information.

9. The method according to claim 1, characterized in that: Determining first target color information of a historical scene frame where the object to be processed is located based on the initial color information and the motion parameter of the object to be processed includes: Based on the initial color information and the motion parameter, the first target color information is acquired from the texture of the historical scene picture frame.

10. The method according to claim 9, characterized in that The method further comprises: In response to removing the initial image filter of the object to be processed, creating a target image filter for the object to be processed; In response to the current frame number corresponding to the current scene picture frame being greater than or equal to a frame number threshold, and the rendering target of the historical scene picture frame being in a valid state, the rendering target of the historical scene picture frame is passed to the texture attribute of the target image filter to obtain the texture of the historical scene picture frame, wherein the rendering target is used to represent the image of the object to be processed in the historical scene picture frame.

11. The method according to claim 10, characterized in that The method further comprises: In response to the rendering target of the historical scene picture frame being in an invalid state, deleting the rendering target of the historical scene picture frame, and creating an initial instance object corresponding to the texture of the historical scene picture frame; Drawing the object to be processed onto the initial instance object to obtain a target instance object; The target instance object is determined as a rendering target of the historical scene frame.

12. The method according to claim 10, characterized in that The method further comprises: A first determination step is to determine whether the current frame number corresponding to the current scene picture frame is greater than or equal to the frame number threshold, or to determine whether the current frame number corresponding to the current scene picture frame is less than the frame number threshold; a counting step, in response to the current frame number corresponding to the current scene picture frame being less than the frame number threshold, performing a self-increment operation on the current frame number, determining the current frame number after the self-increment as the current frame number, and determining the next scene picture frame of the current scene picture frame as the current scene picture frame, and returning to the first determining step; The second determination step, in response to the current frame number corresponding to the current scene picture frame being greater than or equal to the frame number threshold, resets the current frame number to an initial value, determines the next scene picture frame of the current scene picture frame in the scene picture as the current scene picture frame, and returns to the first determination step until the current scene picture frame has no next scene picture frame in the scene picture.

13. The method according to claim 9, characterized in that The method further comprises: In response to the texture of the historical scene picture frame not being acquired, the initial color information is determined as the second target color information of the current scene picture frame.

14. The method according to any one of claims 1 to 13, characterized in that Determining the initial color information of the current scene frame where the object to be processed is located includes: The initial color information is obtained from the texture of the current scene frame.

15. The method according to any one of claims 1 to 13, characterized in that The historical scene picture frame is a previous scene picture frame of the current scene picture frame.

16. An information processing system, characterized in that: include: The engine is used to output the texture of the historical scene frame where the object to be processed is located during the movement of the object to be processed; A shader, used to determine the initial color information of the current scene picture frame where the object to be processed is located; based on the initial color information and the motion parameters of the object to be processed, determine the first target color information from the texture of the historical scene picture frame where the object to be processed is located, wherein the motion parameters are used to represent parameters associated with the motion state of the object to be processed; determine the difference color information between the first target color information and the initial color information; based on the difference color information and the motion parameters, mix the color information sampled at multiple sampling positions in the historical scene picture frame to obtain mixed color information; based on the mixed color information, the initial color information and the motion parameters, determine the second target color information of the current scene picture frame; and use the second target color information to display the blurred representation result of the object to be processed in the current scene picture frame.

17. An information processing device, characterized in that: include: A first determining unit, used to determine the initial color information of the current scene picture frame where the object to be processed is located during the movement of the object to be processed; A second determining unit is used to determine first target color information of the historical scene picture frame where the object to be processed is located based on the initial color information and the motion parameter of the object to be processed, wherein the motion parameter is used to represent a parameter associated with the motion state of the object to be processed; a third determining unit, configured to determine difference color information between the first target color information and the initial color information; A mixing unit, configured to mix the color information sampled at a plurality of sampling positions in the historical scene frame based on the difference color information and the motion parameter to obtain mixed color information; a fourth determining unit, configured to determine second target color information of the current scene picture frame based on the mixed color information, the initial color information and the motion parameter; A display unit is used to display the blur expression result of the object to be processed in the current scene frame by using the second target color information.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 15 when executed by a processor.

19. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 15.

20. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Residual shadow rendering method and device, storage medium and electronic device

    CN111738935A

  • Image blurring degree determination method, data set construction method and deblurring method

    CN113409203A

  • Motion fuzzy processing method and device for window animation of in-vehicle infotainment device, in-vehicle infotainment device and vehicle

    CN118628621A

  • Moving image generation device

    JP2023042667A

  • Image motion blurring

    US20120293538A1