Particle emission method and apparatus, device, computer-readable storage medium, and product

By pre-setting particle emission conditions and image recognition technology, the particle emitter is automatically controlled, solving the cumbersome problem of manual triggering in the existing technology, achieving automated particle emission and improving user experience.

WO2024198979A1PCT designated stage expired Publication Date: 2024-10-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082104
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-18
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The existing particle emission operation requires users to manually trigger it and the operation is cumbersome, resulting in poor user experience.

Method used

By pre-setting particle emission conditions, including matching gestures with target gestures, matching body movements with target movements, movement amplitude, etc., image recognition technology is used to automatically control the particle emitter for particle emission.

Benefits of technology

It realizes automated particle emission operations, enriches the interaction method of particle emission, improves the user experience, and is suitable for particle emission in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082104_03102024_PF_FP_ABST
    Figure CN2024082104_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a particle emission method and apparatus, a device, a computer-readable storage medium, and a product. The method comprises: in response to a trigger operation of a user on preset special effect content, acquiring at least one image frame to be detected (101); performing a recognition operation on a target object in the at least one image frame to be detected to obtain a recognition result (102); and if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation (103).
Need to check novelty before this filing date? Find Prior Art

Description

Particle emission method, device, equipment, computer-readable storage medium and product

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

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

[0003] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a particle emission method, apparatus, device, computer-readable storage medium, and product. Background Art

[0004] Particles can be emitted by particle systems. A particle system is a technique used in 3D computer graphics to simulate specific fuzzy phenomena. Particle systems can simulate fire, explosions, smoke, water, sparks, falling leaves, clouds, fog, snow, dust, meteor trails, or abstract visual effects like glowing trails.

[0005] Currently, many special effects contents can realize the effect of particle emission. In response to a user triggering operation on the screen, or in response to a user triggering operation on a special effects content capable of particle emission, the visual effect of particle emission can be displayed on the screen.

[0006] Summary of the Invention

[0007] Embodiments of the present disclosure provide a particle emission method, apparatus, device, computer-readable storage medium, and product.

[0008] In a first aspect, an embodiment of the present disclosure provides a particle emission method, comprising:

[0009] In response to a user triggering operation on a preset special effect content, acquiring at least one image frame to be tested;

[0010] Performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result;

[0011] If the recognition result meets the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation.

[0012] In a second aspect, an embodiment of the present disclosure provides a particle emission device, comprising:

[0013] An acquisition module, configured to acquire at least one image frame to be tested in response to a user triggering operation on a preset special effect content;

[0014] an identification module, configured to perform an identification operation on the target object in the at least one image frame to be tested to obtain an identification result;

[0015] The control module is used to control a preset particle emitter to perform a particle emission operation if the recognition result meets a preset particle emission condition.

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

[0017] The memory stores computer-executable instructions;

[0018] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the particle emission method as described in the first aspect and various possible designs of the first aspect.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the particle emission method described in the first aspect and various possible designs of the first aspect is implemented.

[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the particle emission method described in the first aspect and various possible designs of the first aspect.

[0021] The particle emission method, apparatus, device, computer-readable storage medium, and product provided in this embodiment obtain at least one image frame to be tested and identify the target object in at least one image frame to be tested in response to the user's triggering operation on preset special effect content, thereby automatically controlling the particle emitter to perform particle emission operations when the identification result of the target object meets the preset particle emission conditions. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] FIG1 is a schematic flow chart of a particle emission method according to an embodiment of the present disclosure;

[0024] FIG2 is a schematic diagram of skeleton key points provided by an embodiment of the present disclosure;

[0025] FIG3 is a schematic flow chart of a particle emission method provided in yet another embodiment of the present disclosure;

[0026] FIG4 is a schematic diagram of a material map provided by an embodiment of the present disclosure;

[0027] FIG5 is a schematic structural diagram of a particle emission device provided in an embodiment of the present disclosure;

[0028] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0030] In order to solve the technical problem that the current particle emission operation requires manual triggering by the user and the operation is relatively cumbersome, the present disclosure provides a particle emission method, device, equipment, computer-readable storage medium and product.

[0031] It should be noted that the particle emission method, apparatus, device, computer-readable storage medium and product provided by the present disclosure can be applied in any particle emission scenario.

[0032] When users select special effects content that can achieve particle emission for media content capture, they generally need to manually trigger the particle emission. As a result, the control method of particle emission is relatively simple and the operation is relatively cumbersome, resulting in a poor user experience.

[0033] In the process of solving the above technical problems, the inventors discovered through research that in order to enrich the control methods of particle emission and achieve automatic particle emission effects, particle emission conditions can be pre-set. The particle emission conditions can be set by the user according to actual needs, including but not limited to matching the collected gesture with a preset target gesture, matching the collected user body movement with a preset target body movement, and the collected user movement amplitude exceeding a preset amplitude threshold.

[0034] Therefore, after setting the particle emission conditions and receiving a user trigger operation on the preset special effect content, at least one image frame to be tested can be obtained, and a target object in the at least one image frame to be tested can be recognized to obtain a recognition result, wherein the target object can be a user's gesture, body movement, movement amplitude, etc. When it is detected that the recognition result meets the preset particle emission conditions, the preset particle emitter is controlled to perform the particle emission operation.

[0035] The system architecture underlying the present disclosure includes at least a terminal device and a server. The terminal device is capable of communicating with the server. This allows the terminal device to acquire at least one image frame to be tested and transmit the at least one image frame to the server. The server then identifies the target object in the at least one image frame to be tested and, based on the identification result, determines whether a preset particle emission condition is currently met. If the condition is met, the server controls a preset particle emitter to emit particles, and displays the visual effects of the particle emission on the terminal device.

[0036] Alternatively, the system architecture underlying the present disclosure includes at least a terminal device. Thus, the terminal device can, in response to a user triggering a preset special effect content, acquire at least one image frame to be tested. It can also perform an identification operation on a target object in the at least one image frame to be tested, obtaining an identification result. If the identification result satisfies a preset particle emission condition, it can control a preset particle emitter to perform a particle emission operation and display the visual effect of the particle emission.

[0037] FIG1 is a flow chart of a particle emission method according to an embodiment of the present disclosure. As shown in FIG1 , the method includes:

[0038] Step 101: In response to a user triggering operation on a preset special effect content, obtaining at least one image frame to be tested.

[0039] In this embodiment, the user can select preset special effects content on the terminal device and collect media content based on the preset special effects content. Alternatively, the user can also select preset special effects content on the terminal device, and the preset special effects content can be a preset decoration, such as a head ornament, a virtual costume, etc. After selecting the preset special effects content, the effect of the user wearing or wearing the preset special effects content can be displayed.

[0040] To enrich the display of preset special effects, particle emission can be performed while displaying the preset special effects. For example, the preset special effects can be a virtual garment, such as a dress. After the user triggers the virtual garment, the user can be shown wearing the virtual garment. When the user's current action meets the preset particle emission conditions, particles can be emitted outward from the hem of the virtual garment. For example, in response to the user's rotation, petals can be scattered from the hem of the dress, enriching the display effect of wearing the virtual garment.

[0041] Therefore, in order to implement the particle emission operation, in response to the user triggering the preset special effect content, at least one image frame to be tested can be acquired, wherein the image frame to be tested can be acquired by an image acquisition device preset in the user's handheld terminal device.

[0042] Step 102: performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result.

[0043] In this embodiment, after acquiring at least one image frame to be tested, a recognition operation can be performed on the target object in the at least one image frame to be tested to obtain a recognition result. The target object can have different contents for different application scenarios.

[0044] For example, the target object may be a gesture of the user, or the target object may be a body movement of the user, or the target object may be the range of movement of the user.

[0045] Different recognition algorithms can be used for different target objects. For example, if the target object is a user's gesture, a preset gesture recognition algorithm can be used to recognize the target object. If the target object is the user's movement amplitude, a preset skeletal key point recognition algorithm can be used to recognize the user's movement amplitude.

[0046] Step 103: If the recognition result meets the preset particle emission condition, control the preset particle emitter to perform a particle emission operation.

[0047] In this embodiment, users can pre-set particle emission conditions based on actual needs. When the conditions are met, particle emission is performed. Therefore, after obtaining a recognition result, it can be checked whether the recognition result meets the preset particle emission conditions. If so, a preset particle emitter can be controlled to perform particle emission. The particle emitter can perform particle emission according to preset particle parameters. These particle parameters include one or more of the number of particles to be emitted, trajectory, speed, emission area, and particle material.

[0048] It should be noted that the particle emitter can achieve the effect of particle emission during the image rendering process. When the preset particle emission conditions are met, it can control the displacement movement of particles in three-dimensional space according to preset particle parameters.

[0049] The particle emission method provided in this embodiment, in response to a user triggering a preset special effect, acquires at least one image frame to be tested, identifies a target object in the at least one image frame to be tested, and automatically controls a particle emitter to perform particle emission when the target object identification result meets the preset particle emission conditions. This method eliminates the need for manual user triggering and enables particle emission according to the preset particle emission conditions, thus achieving automated particle emission. Furthermore, by setting different particle emission conditions, particle emission can be achieved in different scenarios, providing greater applicability.

[0050] Optionally, based on any of the above embodiments, step 102 includes:

[0051] A recognition operation is performed on the user's gesture information in the at least one image frame to be tested to obtain the recognition result.

[0052] Alternatively, step 102 includes:

[0053] A recognition operation is performed on the user's body movement in the at least one image frame to be tested to obtain the recognition result.

[0054] Alternatively, step 102 includes:

[0055] An identification operation is performed on the target skeleton key points of the user in the at least one image frame to be tested.

[0056] The user's current motion amplitude is determined according to the target skeleton key points to obtain the recognition result.

[0057] In this embodiment, the target object may be a user's gesture. Therefore, a recognition operation may be performed on the user's gesture information in at least one image frame to be tested to obtain a recognition result. For example, a preset gesture recognition algorithm may be used to recognize the user's gesture and obtain a recognition result.

[0058] Optionally, the target object may be a user's body movement. Therefore, a recognition operation is performed on the user's body movement in at least one image frame to be tested to obtain a recognition result. For example, a recognition operation may be performed on the user's body movement using a preset body movement recognition algorithm to obtain a recognition result.

[0059] Optionally, the target object can be the user's motion amplitude. Therefore, a recognition operation can be performed on the user's target skeletal key points in at least one image frame to be tested. The user's current motion amplitude is determined based on the target skeletal key points to obtain a recognition result. For example, if the target object is the user's motion amplitude, the user's motion amplitude can be recognized using a preset skeletal key point recognition algorithm.

[0060] The particle emission method provided in this embodiment recognizes a user's gesture information, body movements, or movement amplitude, and can determine whether preset particle emission conditions are currently met based on the gesture information, body movements, or movement amplitude. This enables particle emission in various scenarios, providing greater applicability.

[0061] Optionally, based on any of the above embodiments, step 103 includes:

[0062] If the user's gesture information in the recognition result is consistent with a preset target gesture, a preset particle emitter is controlled to perform a particle emission operation.

[0063] or,

[0064] If the user's body movement in the recognition result is consistent with the preset target body movement, the preset particle emitter is controlled to perform a particle emission operation.

[0065] or,

[0066] If the current movement amplitude of the user in the recognition result is greater than a preset amplitude threshold, the preset particle emitter is controlled to perform a particle emission operation.

[0067] In this embodiment, the user can pre-set the particle emission conditions according to actual needs, and perform the particle emission operation when the particle emission conditions are met.

[0068] Optionally, the particle emission condition can be that the user's gesture information in the image frame to be tested is consistent with a preset target gesture. Therefore, after performing a recognition operation on the image frame to be tested and obtaining a recognition result, it can be detected whether the user's gesture information in the recognition result is consistent with the preset target gesture. If so, a preset particle emitter can be controlled to perform a particle emission operation.

[0069] Optionally, the particle emission condition can be that the user's body movement in the image frame to be tested is consistent with a preset target body movement. Therefore, after performing a recognition operation on the image frame to be tested and obtaining a recognition result, it can be determined whether the user's body movement in the recognition result is consistent with the preset target body movement. If so, the preset particle emitter can be controlled to perform the particle emission operation.

[0070] Optionally, the particle emission condition can be whether the amplitude of the user's motion in the image frame to be tested is greater than a preset amplitude threshold. Therefore, after performing a recognition operation on the image frame to be tested and obtaining a recognition result, it can be detected whether the amplitude of the user's current motion in the recognition result is greater than the preset amplitude threshold. If so, the preset particle emitter can be controlled to perform particle emission.

[0071] The particle emission method provided in this embodiment determines whether the preset particle emission conditions are currently met based on gesture information, body movements, or movement amplitude. When the particle emission conditions are met, the particle emission operation is performed, thereby enabling particle emission in different scenarios, enriching the interactive mode of particle emission, and improving the user experience.

[0072] Furthermore, based on any of the above embodiments, the recognition operation of the target skeleton key points of the user in the at least one image frame to be tested includes:

[0073] Determine target bone key points that match the preset special effect content.

[0074] The target skeleton key points of the user in the at least one image frame to be tested are identified using a preset skeleton key point recognition algorithm.

[0075] In this embodiment, when the target object is the user's motion amplitude, the user's motion amplitude can be recognized using a preset skeleton key point recognition algorithm.

[0076] Optionally, different preset special effects may have different corresponding particle emission conditions. For example, a first special effect may emit particles when the user rotates. A second special effect may emit particles when the user raises their hand.

[0077] Therefore, in order to accurately implement the particle emission operation, the target skeleton key points that match the preset special effect content can be determined first. After the target skeleton key points are determined, the target skeleton key points of the user in at least one image frame to be tested can be identified using a preset skeleton key point recognition algorithm.

[0078] FIG2 is a schematic diagram of skeletal key points provided by an embodiment of the present disclosure. As shown in FIG2 , a human body 21 may include multiple skeletal key points 22. Different preset special effects can be triggered by large-scale movements of different target skeletal key points. For example, the skeletal key points of the spine can be used as target skeletal key points 23. When the rotation of the user is detected based on the target skeletal key points 23, petals can be emitted from the virtual skirt displayed on the user, presenting a visual effect of petals falling from the skirt.

[0079] The particle emission method provided in this embodiment determines the target bone key points that match the preset special effect content, and uses the preset bone key point recognition algorithm to identify the target bone key points of the user in at least one image frame to be tested, so that different target bone key points can be identified for different preset special effect contents, and then the particle emission operation corresponding to different preset special effect contents can be realized.

[0080] Furthermore, based on any of the above embodiments, the number of the image frames to be tested is at least two. The determining the current motion amplitude of the user based on the target skeleton key points to obtain the recognition result includes:

[0081] The rotation angles of the corresponding skeleton key points in the at least two image frames to be tested are determined according to the positions of the target skeleton key points in the at least two image frames to be tested and the preset positions.

[0082] A first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition are selected from the corresponding rotation angles of the skeleton key points in at least two image frames to be tested.

[0083] The user's current motion amplitude is determined according to the first rotation angle and the second rotation angle to obtain the recognition result.

[0084] In this embodiment, the number of image frames to be tested is at least two. The rotation angles of the corresponding skeletal key points in the at least two image frames to be tested can be determined based on the positions of the target skeletal key points in the at least two image frames to be tested and the preset positions. The preset positions can be the initial positions of the target skeletal key points, and the rotation angles of the corresponding skeletal key points in the image frames to be tested can be determined based on the positions of the target skeletal key points in the image frames to be tested and the initial positions.

[0085] Furthermore, a first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition can be selected from the corresponding rotation angles of the skeletal key points in at least two image frames to be tested. For example, the first rotation angle with the largest rotation angle and the second rotation angle with the smallest rotation angle can be selected. Thus, after determining the first rotation angle and the second rotation angle, the user's current motion amplitude can be determined based on the first rotation angle and the second rotation angle to obtain a recognition result.

[0086] For example, the user's current motion amplitude may be determined and the recognition result may be obtained by calculating the difference between a first rotation angle with a maximum rotation angle and a second rotation angle with a minimum rotation angle.

[0087] As an implementable method, the user's motion amplitude can also be identified based on the position of the user's skeletal key points. After obtaining the position of the user's skeletal key points, the position of the target skeletal key points in at least two frames of the image to be tested can be determined. The movement distance of the target skeletal key points can be determined based on the position of the target skeletal key points. If the movement distance exceeds a preset distance threshold, it can be determined as a large-amplitude motion.

[0088] It should be noted that the position-based motion amplitude determination method and the angle-based motion amplitude determination method can be implemented separately or in combination. When implemented in combination, the rotation angle and movement distance of the target skeletal key point can be determined separately, and whether the target skeletal key point has performed a large-scale motion can be determined based on the rotation angle and movement distance.

[0089] The particle emission method provided in this embodiment determines the rotation angles of corresponding skeletal key points in at least two image frames to be tested based on the positions of the target skeletal key points in the at least two image frames to be tested and a preset position. A first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition are selected from the corresponding skeletal key point rotation angles in the at least two image frames to be tested, thereby accurately calculating the user's current motion amplitude.

[0090] Furthermore, based on any of the above embodiments, determining the current motion amplitude of the user according to the first rotation angle and the second rotation angle to obtain the recognition result includes:

[0091] The first rotation angle and the second rotation angle are respectively compared with a preset angle threshold to obtain a comparison result.

[0092] A target angle algorithm is determined that matches the comparison result.

[0093] The user's current motion amplitude is determined according to the target angle algorithm and the absolute value of the difference between the first rotation angle and the second rotation angle to obtain the recognition result.

[0094] In this embodiment, if the difference between the first and second rotation angles is directly used as the motion amplitude when calculating the user's motion amplitude, the recognition result may be inaccurate. For example, the angle value is [0, 360]. The actual difference between 0 degrees and 359 degrees is 359. Directly using the difference between the first and second rotation angles as the motion amplitude will result in the recognition result being calculated as 0 degrees.

[0095] Therefore, an angle threshold can be predetermined, where the angle threshold can be 180 degrees. The first rotation angle and the second rotation angle are each compared to the preset angle threshold to obtain a comparison result. A target angle algorithm that matches the comparison result is determined. Based on the target angle algorithm and the absolute value of the difference between the first and second rotation angles, the user's current motion amplitude is determined to obtain a recognition result.

[0096] Taking a practical application as an example, if the first rotation angle is greater than 180 degrees and the second rotation angle is less than 180 degrees, the first calculation amplitude can be calculated using Formula 1:

[0097] First calculation amplitude = second rotation angle + 180 degrees - first rotation angle (1)

[0098] The absolute value of the difference between the first rotation angle and the second rotation angle is calculated, and the smaller value between the first calculated amplitude and the absolute value of the difference is used as the user's motion amplitude to obtain the user's motion amplitude.

[0099] If the first rotation angle is less than 180 degrees and the second rotation angle is greater than 180 degrees, the second calculation amplitude can be calculated using Formula 2:

[0100] Second calculation amplitude = first rotation angle + 180 degrees - second rotation angle (2)

[0101] The absolute value of the difference between the first rotation angle and the second rotation angle is calculated, and the smaller value between the second calculated amplitude and the absolute value of the difference is used as the user's motion amplitude to obtain the user's motion amplitude.

[0102] The particle emission method provided in this embodiment compares the first rotation angle and the second rotation angle with a preset angle threshold, calculates the angle based on the comparison results using different target angle algorithms, and determines the user's current motion amplitude based on the absolute value of the difference between the first rotation angle and the second rotation angle, thereby further improving the accuracy of the motion amplitude calculation.

[0103] Furthermore, based on any of the above embodiments, step 103 includes:

[0104] If the recognition result satisfies the preset particle emission condition, the state of the particle to be emitted is switched to a survival state and / or a life cycle parameter corresponding to the particle to be emitted is set.

[0105] In this embodiment, in order to realize the particle emission operation, when it is detected that the recognition result meets the preset particle emission condition, the state of the particle to be emitted can be switched to the alive state, so that the particle emitter can emit particles.

[0106] Optionally, to enrich the display effect of the particles, a life cycle parameter corresponding to the particle to be emitted may be determined. For example, the life cycle parameter corresponding to the particle to be emitted may be two seconds. Then, after being emitted, the particle to be emitted can survive for two seconds and disappear after two seconds.

[0107] It should be noted that the above two implementations can be implemented separately or in combination. When implemented in combination, the state of the particles to be emitted can be switched to a survival state, and life cycle parameters can be set for them.

[0108] Optionally, based on any of the above embodiments, switching the state of the particle to be emitted to the survival state and setting the life cycle parameters corresponding to the particle to be emitted include:

[0109] In the generation module corresponding to each particle to be emitted, the state of the particle to be emitted is switched to the survival state, and the life cycle parameters corresponding to the particle to be emitted are set.

[0110] In this embodiment, in order to set the survival parameters of particles, the state of the particles to be emitted is switched to the survival state in the generation module corresponding to each particle to be emitted, and the life cycle parameters corresponding to the particles to be emitted are set.

[0111] Optionally, in a non-clear screen scenario, if you need to stop particle generation, you can set the particle life cycle to 0 in the generation module, or adjust the particle survival state to non-survival, so as not to affect the already generated particles.

[0112] The particle emission method provided in this embodiment switches the state of the particle to be emitted to the survival state when the recognition result meets the preset particle emission condition, and sets the life cycle parameters corresponding to the particle to be emitted, thereby realizing the particle emission operation and controlling the survival time of the particle, thereby enriching the display effect of the particle emission.

[0113] Furthermore, based on any of the above embodiments, after step 103, the method further includes:

[0114] In response to the preset trigger operation of the user, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to an off state.

[0115] The updating module is used to store the real-time status of the particles to be emitted.

[0116] In this embodiment, when a user triggers preset special effects content but does not trigger content capture, the currently captured image content can be displayed in the framing area. When the currently captured image content meets the preset particle emission conditions, the particle emitter is controlled to emit particles. However, when the user triggers content capture, to ensure the content capture effect, all particles currently displayed on the control display page must disappear.

[0117] Therefore, if a preset user trigger operation is detected, all particles currently displayed on the display page can be controlled to disappear, achieving a clear screen effect. Optionally, each particle to be emitted has a corresponding update module. The update module is used to store the real-time status of the particle to be emitted. In response to the user's preset trigger operation, the update module corresponding to the particle to be emitted switches the status of the particle to be emitted to the off state.

[0118] The particle emission method provided in this embodiment can quickly achieve a "clear screen" effect and optimize the display effect within the display interface by switching the state of the particle to be emitted to a closed state in the update module corresponding to the particle to be emitted when the user triggers a preset trigger operation.

[0119] Further, based on any of the above embodiments, the updating module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to the closed state, including:

[0120] For each particle to be emitted, it is detected whether the life cycle corresponding to the particle to be emitted has ended.

[0121] If not, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state.

[0122] In this embodiment, when switching the survival state of a particle to be emitted in the update module, if the survival time of any particle to be emitted has exceeded its life cycle, the particle to be emitted will disappear from the current display interface. Switching the survival state of the particle to the off state again may cause display errors.

[0123] Therefore, for each particle to be emitted, before switching its life state in the update module, it is necessary to first check whether the corresponding life cycle of the particle to be emitted has ended. If the life cycle of the particle to be emitted has not ended, the update module for that particle can switch the corresponding state to the closed state. Otherwise, the life state switching operation for the particle to be emitted is not performed.

[0124] The particle emission method provided in this embodiment first determines whether the life cycle of the to-be-emitted particle has ended when performing an adjustment operation on the particle survival state in the update module corresponding to the to-be-emitted particle. This avoids adjusting the survival state of the to-be-emitted particle whose life cycle has ended, avoids display failures during the particle emission process, and optimizes the display effect of particle emission.

[0125] Furthermore, based on any of the above embodiments, step 103 includes:

[0126] If the recognition result meets the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation according to the preset particle parameters.

[0127] The particle parameters include one or more of the number of particles to be emitted, motion trajectory, motion speed, particle emission area, and particle material.

[0128] In this embodiment, in order to make the emitted particles more in line with the user's personalized needs, the user can pre-set the particle parameters, where the particle parameters include one or more of the number of particles to be emitted, motion trajectory, motion speed, particle emission area, and particle material.

[0129] Therefore, when it is detected that the recognition result meets the preset particle emission condition, the preset particle emitter can be controlled to perform the particle emission operation according to the preset particle parameters.

[0130] The particle emission method provided in this embodiment pre-sets particle parameters and performs particle emission operations according to the particle parameters, thereby ensuring that the emitted particles are more in line with the user's personalized needs and improving the user experience.

[0131] FIG3 is a flow chart of a particle emission method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG3 , the method includes:

[0132] Step 301: If the recognition result meets the preset particle emission condition, the current time information is determined.

[0133] Step 302: Determine target particle material that matches the current time information.

[0134] Step 303: Control the particle emitter to emit particles to be emitted corresponding to the target particle material.

[0135] In this embodiment, to enrich the display effects of particle emission, particles of different materials can be emitted at different times. For example, when a user triggers a preset virtual costume, petal-shaped particles can be scattered when the user rotates it during the day, while star-shaped particles can be scattered when the user rotates it at night.

[0136] Therefore, when it is detected that the recognition result meets the preset particle emission conditions, the current time information can be determined. The target particle material that matches the current time information is determined. The particle emitter is controlled to emit the to-be-emitted particles corresponding to the target particle material, thereby achieving the emission operation of particles of different materials.

[0137] The particle emission method provided in this embodiment can enrich the display effect of particle emission and improve user experience by emitting particles of different target particle materials at different times.

[0138] Furthermore, based on any of the above embodiments, the particle emitter includes a preset random material node.

[0139] Step 303 includes:

[0140] A target material reference range corresponding to the target particle material is determined in a preset material map.

[0141] The reference range corresponding to the random material node is adjusted to the target material reference range.

[0142] The target particle material is called in the material map through the adjusted random material node to generate particles to be emitted.

[0143] Emit particles corresponding to the target particle material.

[0144] In this embodiment, in order to quickly switch between particle materials, a material map can be pre-set. The material map includes a variety of different materials, each corresponding to a different material reference range. Alternatively, the material map can be generated using a flipbook node. The flipbook node can place multiple material images in a map to form a material map. Furthermore, after generating the material map using the flipbook node, the Set Texture Index node (random material node) can be used to switch between materials in different scenarios.

[0145] Optionally, after determining the target particle material that matches the current time information, a target material reference range corresponding to the target particle material can be determined in a preset material map. The reference range corresponding to the random material node is adjusted to the target material reference range. The target particle material is then called from the material map using the adjusted random material node to generate particles to be emitted.

[0146] Emit particles to be emitted corresponding to the target particle material. Figure 4 is a schematic diagram of a material map provided in an embodiment of the present disclosure. As shown in Figure 4, the material map 41 may include a first material 42 in the form of petals and a second material 43 in the form of starlight. The first material 42 and the second material 43 each have a different index range. The index range of the first material 42 can be 1-15, and the index range of the second material 43 can be 16. Therefore, based on the material map 41, the emission of particles corresponding to different materials can be achieved.

[0147] Optionally, if the current target particle material is the first material in the form of petals, the Index range can be set to 1-15, so that only the contents in the first 1-15 grids in the material map will be used as particle sampling targets, thereby realizing the emission operation of particles in the form of petals.

[0148] The particle emission method provided in this embodiment pre-sets a material map, thereby enabling rapid switching of particle materials based on the material map and random material nodes, thereby improving the efficiency of material switching.

[0149] FIG5 is a schematic diagram of the structure of a particle emission device provided in an embodiment of the present disclosure. As shown in FIG5 , the device includes: an acquisition module 51, an identification module 52, and a control module 53. The acquisition module 51 is configured to acquire at least one image frame to be tested in response to a user triggering a preset special effect content. The identification module 52 is configured to identify the target object in the at least one image frame to be tested and obtain an identification result. The control module 53 is configured to control a preset particle emitter to perform a particle emission operation if the identification result satisfies a preset particle emission condition.

[0150] Furthermore, based on any of the above embodiments, the recognition module is configured to: perform a recognition operation on the user's gesture information in the at least one image frame to be tested to obtain the recognition result. Alternatively, the recognition module is configured to: perform a recognition operation on the user's body movements in the at least one image frame to be tested to obtain the recognition result. Alternatively, the recognition module is configured to: perform a recognition operation on the user's target skeletal key points in the at least one image frame to be tested, and determine the user's current motion amplitude based on the target skeletal key points to obtain the recognition result.

[0151] Furthermore, based on any of the above embodiments, the recognition module is configured to: determine target skeleton key points that match the preset special effect content and perform recognition operations on the target skeleton key points of the user in the at least one image frame to be tested using a preset skeleton key point recognition algorithm.

[0152] Furthermore, based on any of the above embodiments, the number of the image frames to be tested is at least two. The recognition module is used to determine the corresponding rotation angles of the skeleton key points in at least two image frames to be tested based on the positions of the target skeleton key points in the at least two image frames to be tested and the preset positions. A first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition are selected from the corresponding rotation angles of the skeleton key points in the at least two image frames to be tested. The current movement amplitude of the user is determined based on the first rotation angle and the second rotation angle to obtain the recognition result.

[0153] Furthermore, based on any of the above embodiments, the recognition module is configured to: compare the first rotation angle and the second rotation angle with a preset angle threshold to obtain a comparison result; determine a target angle algorithm that matches the comparison result; and determine the user's current motion amplitude based on the target angle algorithm and the absolute value of the difference between the first rotation angle and the second rotation angle to obtain the recognition result.

[0154] Furthermore, based on any of the above embodiments, the control module is configured to: if the user's gesture information in the recognition result is consistent with a preset target gesture, control a preset particle emitter to perform a particle emission operation; or if the user's body movement in the recognition result is consistent with a preset target body movement, control a preset particle emitter to perform a particle emission operation; or if the user's current movement amplitude in the recognition result is greater than a preset amplitude threshold, control a preset particle emitter to perform a particle emission operation.

[0155] Furthermore, based on any of the above embodiments, the control module is used to: if the recognition result meets the preset particle emission conditions, switch the state of the particle to be emitted to a survival state and / or set the life cycle parameters corresponding to the particle to be emitted.

[0156] Furthermore, based on any of the above embodiments, the control module is used to: switch the state of the particle to be emitted to a survival state in the generation module corresponding to each particle to be emitted, and set the life cycle parameters corresponding to the particle to be emitted.

[0157] Furthermore, based on any of the above embodiments, the apparatus further includes: a switching module configured to, in response to a preset trigger operation by the user, switch the state corresponding to the to-be-emitted particle to an off state in the update module corresponding to the to-be-emitted particle. The update module is configured to store the real-time state corresponding to the to-be-emitted particle.

[0158] Furthermore, based on any of the above embodiments, the switching module is configured to: for each particle to be emitted, detect whether the life cycle of the particle to be emitted has ended. If not, the update module corresponding to the particle to be emitted switches the state of the particle to be emitted to the off state.

[0159] Furthermore, based on any of the above embodiments, the control module is configured to: if the recognition result satisfies a preset particle emission condition, control a preset particle emitter to perform a particle emission operation according to preset particle parameters. The particle parameters include one or more of the number of particles to be emitted, motion trajectory, motion speed, particle emission area, and particle material.

[0160] Furthermore, based on any of the above embodiments, the control module is configured to: if the recognition result satisfies a preset particle emission condition, determine current time information, determine a target particle material that matches the current time information, and control the particle emitter to emit particles to be emitted corresponding to the target particle material.

[0161] Furthermore, based on any of the above embodiments, the particle emitter includes a preset random material node. The control module is configured to: determine a target material reference range corresponding to the target particle material in a preset material map; adjust the reference range corresponding to the random material node to the target material reference range; call the target particle material in the material map using the adjusted random material node to generate particles to be emitted; and emit the particles to be emitted corresponding to the target particle material.

[0162] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0163] In order to implement the above embodiment, the present disclosure further provides an electronic device, including: a processor and a memory;

[0164] The memory stores computer-executable instructions;

[0165] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the particle emission method as described in any of the above embodiments.

[0166] FIG6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG6 , the electronic device 600 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0167] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

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

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

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

[0171] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the particle emission method described in any of the above embodiments is implemented.

[0172] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, which implements the particle emission method as described in any of the above embodiments when executed by a processor.

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

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

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

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

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

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

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

[0180] In a first aspect, according to one or more embodiments of the present disclosure, a particle emission method is provided, comprising:

[0181] In response to a user triggering operation on a preset special effect content, acquiring at least one image frame to be tested;

[0182] Performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result;

[0183] If the recognition result meets the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation.

[0184] According to one or more embodiments of the present disclosure, performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result includes:

[0185] performing a recognition operation on the user's gesture information in the at least one image frame to be tested to obtain the recognition result;

[0186] Alternatively, performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result includes:

[0187] Performing a recognition operation on the user's body movement in the at least one image frame to be tested to obtain the recognition result;

[0188] Alternatively, performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result includes:

[0189] Performing an identification operation on target skeleton key points of the user in the at least one image frame to be tested;

[0190] The user's current motion amplitude is determined according to the target skeleton key points to obtain the recognition result.

[0191] According to one or more embodiments of the present disclosure, the step of identifying target skeleton key points of the user in the at least one image frame to be tested includes:

[0192] Determining target skeleton key points that match the preset special effect content;

[0193] The target skeleton key points of the user in the at least one image frame to be tested are identified using a preset skeleton key point recognition algorithm.

[0194] According to one or more embodiments of the present disclosure, the number of the image frames to be tested is at least two;

[0195] The determining the user's current motion amplitude according to the target skeleton key points to obtain the recognition result includes:

[0196] Determining the rotation angles of the corresponding skeleton key points in at least two image frames to be tested according to the positions of the target skeleton key points in at least two image frames to be tested and the preset positions;

[0197] Selecting a first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition from the corresponding rotation angles of the skeleton key points in at least two image frames to be tested;

[0198] The user's current motion amplitude is determined according to the first rotation angle and the second rotation angle to obtain the recognition result.

[0199] According to one or more embodiments of the present disclosure, determining the user's current motion amplitude based on the first rotation angle and the second rotation angle to obtain the recognition result includes:

[0200] Comparing the first rotation angle and the second rotation angle with a preset angle threshold respectively to obtain a comparison result;

[0201] determining a target angle algorithm that matches the comparison result;

[0202] The user's current motion amplitude is determined according to the target angle algorithm and the absolute value of the difference between the first rotation angle and the second rotation angle to obtain the recognition result.

[0203] According to one or more embodiments of the present disclosure, if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation includes:

[0204] If the user's gesture information in the recognition result is consistent with a preset target gesture, controlling a preset particle emitter to perform a particle emission operation;

[0205] or,

[0206] If the user's body movement in the recognition result is consistent with a preset target body movement, controlling a preset particle emitter to perform a particle emission operation;

[0207] or,

[0208] If the current movement amplitude of the user in the recognition result is greater than a preset amplitude threshold, the preset particle emitter is controlled to perform a particle emission operation.

[0209] According to one or more embodiments of the present disclosure, if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation includes:

[0210] If the recognition result satisfies the preset particle emission condition, the state of the particle to be emitted is switched to a survival state and / or a life cycle parameter corresponding to the particle to be emitted is set.

[0211] According to one or more embodiments of the present disclosure, switching the state of the to-be-emitted particle to the survival state and setting the life cycle parameters corresponding to the to-be-emitted particle includes:

[0212] In the generation module corresponding to each particle to be emitted, the state of the particle to be emitted is switched to the survival state, and the life cycle parameters corresponding to the particle to be emitted are set.

[0213] According to one or more embodiments of the present disclosure, if the recognition result satisfies a preset particle emission condition, after controlling a preset particle emitter to perform a particle emission operation, the method further includes:

[0214] In response to a preset trigger operation by the user, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to an off state;

[0215] The updating module is used to store the real-time status of the particles to be emitted.

[0216] According to one or more embodiments of the present disclosure, the updating module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to the closed state, including:

[0217] For each particle to be emitted, detecting whether the life cycle corresponding to the particle to be emitted has ended;

[0218] If not, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state.

[0219] According to one or more embodiments of the present disclosure, if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation includes:

[0220] If the recognition result satisfies the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation according to the preset particle parameters;

[0221] The particle parameters include one or more of the number of particles to be emitted, motion trajectory, motion speed, particle emission area, and particle material.

[0222] According to one or more embodiments of the present disclosure, if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation includes:

[0223] If the recognition result satisfies the preset particle emission condition, then determining the current time information;

[0224] Determining a target particle material that matches the current time information;

[0225] The particle emitter is controlled to emit particles to be emitted corresponding to the target particle material.

[0226] According to one or more embodiments of the present disclosure, the particle emitter includes a preset random material node;

[0227] The controlling the particle emitter to emit particles to be emitted corresponding to the target particle material includes:

[0228] Determine a target material reference range corresponding to the target particle material in a preset material map;

[0229] Adjusting the reference range corresponding to the random material node to the target material reference range;

[0230] The target particle material is called in the material map through the adjusted random material node to generate particles to be emitted;

[0231] Emit particles corresponding to the target particle material.

[0232] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a particle emission device, comprising:

[0233] An acquisition module, configured to acquire at least one image frame to be tested in response to a user triggering operation on a preset special effect content;

[0234] an identification module, configured to perform an identification operation on the target object in the at least one image frame to be tested to obtain an identification result;

[0235] The control module is used to control a preset particle emitter to perform a particle emission operation if the recognition result meets a preset particle emission condition.

[0236] According to one or more embodiments of the present disclosure, the identification module is configured to:

[0237] performing a recognition operation on the user's gesture information in the at least one image frame to be tested to obtain the recognition result;

[0238] Alternatively, the identification module is used to:

[0239] Performing a recognition operation on the user's body movement in the at least one image frame to be tested to obtain the recognition result;

[0240] Alternatively, the identification module is used to:

[0241] Performing an identification operation on target skeleton key points of the user in the at least one image frame to be tested;

[0242] The user's current motion amplitude is determined according to the target skeleton key points to obtain the recognition result.

[0243] According to one or more embodiments of the present disclosure, the identification module is configured to:

[0244] Determining target skeleton key points that match the preset special effect content;

[0245] The target skeleton key points of the user in the at least one image frame to be tested are identified using a preset skeleton key point recognition algorithm.

[0246] According to one or more embodiments of the present disclosure, the number of the image frames to be tested is at least two;

[0247] The identification module is used to:

[0248] Determining the rotation angles of the corresponding skeleton key points in at least two image frames to be tested according to the positions of the target skeleton key points in at least two image frames to be tested and the preset positions;

[0249] Selecting a first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition from the corresponding rotation angles of the skeleton key points in at least two image frames to be tested;

[0250] The user's current motion amplitude is determined according to the first rotation angle and the second rotation angle to obtain the recognition result.

[0251] According to one or more embodiments of the present disclosure, the identification module is configured to:

[0252] Comparing the first rotation angle and the second rotation angle with a preset angle threshold respectively to obtain a comparison result;

[0253] determining a target angle algorithm that matches the comparison result;

[0254] The user's current motion amplitude is determined according to the target angle algorithm and the absolute value of the difference between the first rotation angle and the second rotation angle to obtain the recognition result.

[0255] According to one or more embodiments of the present disclosure, the control module is configured to:

[0256] If the user's gesture information in the recognition result is consistent with a preset target gesture, controlling a preset particle emitter to perform a particle emission operation;

[0257] or,

[0258] If the user's body movement in the recognition result is consistent with a preset target body movement, controlling a preset particle emitter to perform a particle emission operation;

[0259] or,

[0260] If the current movement amplitude of the user in the recognition result is greater than a preset amplitude threshold, the preset particle emitter is controlled to perform a particle emission operation.

[0261] According to one or more embodiments of the present disclosure, the control module is configured to:

[0262] If the recognition result satisfies the preset particle emission condition, the state of the particle to be emitted is switched to a survival state and / or a life cycle parameter corresponding to the particle to be emitted is set.

[0263] According to one or more embodiments of the present disclosure, the control module is configured to:

[0264] In the generation module corresponding to each particle to be emitted, the state of the particle to be emitted is switched to the survival state, and the life cycle parameters corresponding to the particle to be emitted are set.

[0265] According to one or more embodiments of the present disclosure, the apparatus further includes:

[0266] A switching module, configured to switch the state corresponding to the to-be-emitted particle to an off state in the update module corresponding to the to-be-emitted particle in response to a preset trigger operation by the user;

[0267] The updating module is used to store the real-time status of the particles to be emitted.

[0268] According to one or more embodiments of the present disclosure, the switching module is configured to:

[0269] For each particle to be emitted, detecting whether the life cycle corresponding to the particle to be emitted has ended;

[0270] If not, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state.

[0271] According to one or more embodiments of the present disclosure, the control module is configured to:

[0272] If the recognition result satisfies the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation according to the preset particle parameters;

[0273] The particle parameters include one or more of the number of particles to be emitted, motion trajectory, motion speed, particle emission area, and particle material.

[0274] According to one or more embodiments of the present disclosure, the control module is configured to:

[0275] If the recognition result satisfies the preset particle emission condition, then determining the current time information;

[0276] Determining a target particle material that matches the current time information;

[0277] The particle emitter is controlled to emit particles to be emitted corresponding to the target particle material.

[0278] According to one or more embodiments of the present disclosure, the particle emitter includes a preset random material node;

[0279] The control module is used to:

[0280] Determine a target material reference range corresponding to the target particle material in a preset material map;

[0281] Adjusting the reference range corresponding to the random material node to the target material reference range;

[0282] The target particle material is called in the material map through the adjusted random material node to generate particles to be emitted;

[0283] Emit particles corresponding to the target particle material.

[0284] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0285] The memory stores computer-executable instructions;

[0286] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the particle emission method as described in the first aspect and various possible designs of the first aspect.

[0287] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the particle emission method described in the first aspect and various possible designs of the first aspect is implemented.

[0288] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the particle emission method as described in the first aspect and various possible designs of the first aspect.

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

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

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

Claims

1. A particle emission method, comprising: In response to a user triggering operation on a preset special effect content, acquiring at least one image frame to be tested; Performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result; If the recognition result meets the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation.

2. The method according to claim 1, wherein the step of performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result comprises: Performing a recognition operation on the user's gesture information in the at least one image frame to be tested to obtain the recognition result; Alternatively, performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result includes: Performing a recognition operation on the user's body movement in the at least one image frame to be tested to obtain the recognition result; Alternatively, performing a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result includes: Performing an identification operation on a target skeleton key point of a user in the at least one image frame to be tested; The current movement amplitude of the user is determined according to the target skeleton key points to obtain the recognition result.

3. The method according to claim 2, wherein the step of identifying the target skeleton key points of the user in the at least one image frame to be tested comprises: Determine target bone key points that match the preset special effect content; The target skeleton key points of the user in the at least one image frame to be tested are identified using a preset skeleton key point identification algorithm.

4. The method according to claim 2 or 3, wherein the number of the image frames to be tested is at least two; The step of determining the current movement amplitude of the user according to the target skeleton key points to obtain the recognition result includes: Determine the rotation angle of the corresponding skeleton key point in at least two image frames to be tested according to the position of the target skeleton key point in at least two image frames to be tested and the preset position; Selecting a first rotation angle that meets a preset first selection condition and a second rotation angle that meets a preset second selection condition from the corresponding rotation angles of the skeleton key points in at least two image frames to be tested; The current movement amplitude of the user is determined according to the first rotation angle and the second rotation angle to obtain the recognition result.

5. The method according to claim 4, wherein determining the current movement amplitude of the user according to the first rotation angle and the second rotation angle to obtain the recognition result comprises: Comparing the first rotation angle and the second rotation angle with a preset angle threshold respectively to obtain a comparison result; Determining a target angle algorithm that matches the comparison result; The current movement amplitude of the user is determined according to the target angle algorithm and the absolute value of the difference between the first rotation angle and the second rotation angle to obtain the recognition result.

6. The method according to any one of claims 1 to 5, wherein if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation comprises: If the user's gesture information in the recognition result is consistent with a preset target gesture, controlling a preset particle emitter to perform a particle emission operation; or, If the user's body movement in the recognition result is consistent with the preset target body movement, controlling the preset particle emitter to perform a particle emission operation; or, If the current movement amplitude of the user in the recognition result is greater than a preset amplitude threshold, the preset particle emitter is controlled to perform a particle emission operation.

7. The method according to any one of claims 1 to 6, wherein if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation comprises: If the recognition result satisfies the preset particle emission condition, then determining the current time information; Determine a target particle material that matches the current time information; The particle emitter is controlled to emit particles to be emitted corresponding to the target particle material.

8. The method according to claim 7, wherein the particle emitter comprises a preset random material node; The controlling the particle emitter to emit particles to be emitted corresponding to the target particle material comprises: Determine a target material reference range corresponding to the target particle material in a preset material map; Adjusting the reference range corresponding to the random material node to the target material reference range; The target particle material is called in the material map through the adjusted random material node to generate particles to be emitted; The particles to be emitted corresponding to the target particle material are emitted.

9. The method according to any one of claims 1 to 6, wherein if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation comprises: If the recognition result meets the preset particle emission condition, the state of the particle to be emitted is switched to a survival state and / or the life cycle parameter corresponding to the particle to be emitted is set.

10. The method according to claim 9, wherein switching the state of the particle to be emitted to the survival state and setting the life cycle parameters corresponding to the particle to be emitted comprises: In the generation module corresponding to each particle to be emitted, the state of the particle to be emitted is switched to a survival state, and the life cycle parameters corresponding to the particle to be emitted are set.

11. The method according to claim 9, wherein if the recognition result satisfies a preset particle emission condition, after controlling a preset particle emitter to perform a particle emission operation, the method further comprises: In response to a preset trigger operation of the user, in an update module corresponding to the to-be-emitted particle, switching the state corresponding to the to-be-emitted particle to a closed state; The updating module is used to store the real-time status of the particles to be emitted.

12. The method according to claim 11, wherein the updating module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state, comprising: For each particle to be emitted, detecting whether the life cycle corresponding to the particle to be emitted has ended; If not, the update module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state.

13. The method according to any one of claims 1 to 6, wherein if the recognition result satisfies a preset particle emission condition, controlling a preset particle emitter to perform a particle emission operation comprises: If the recognition result meets the preset particle emission condition, the preset particle emitter is controlled to perform a particle emission operation according to the preset particle parameters; The particle parameters include one or more of the number of particles to be emitted, movement trajectory, movement speed, particle emission area, and particle material.

14. A particle emission device comprising: An acquisition module, configured to acquire at least one image frame to be tested in response to a user's triggering operation on a preset special effect content; A recognition module, used to perform a recognition operation on the target object in the at least one image frame to be tested to obtain a recognition result; The control module is used to control a preset particle emitter to perform a particle emission operation if the recognition result meets a preset particle emission condition.

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

16. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the particle emission method according to any one of claims 1 to 13 is implemented.

17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for emitting particles according to any one of claims 1 to 13 is implemented.

18. A computer program, wherein when the computer program is executed by a processor, the method for emitting particles according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Video processing method and video processing device

    CN106385591A

  • Dynamic image generation method and device, terminal and storage medium

    CN108874136A

  • Special effect generation method and device, storage medium and electronic equipment

    CN113538696A

  • Particle effect processing method and device, electronic equipment and medium

    CN115718590A

  • Spectrum algorithm with trail renderer

    US20220405982A1