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

By identifying the user's image frames and actions, the particle emitter is automatically controlled for particle emission, which solves the problem of cumbersome manual triggering operations in the existing technology, and achieves more efficient particle emission automation and user experience improvement.

CN118736455APending Publication Date: 2024-10-01BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310341236.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing particle emission technology requires users to manually trigger it, which is cumbersome and leads to poor user experience.

Method used

By acquiring the user's image frame, the user's gestures or body movements are recognized, and if the preset conditions are met, the particle emitter is automatically controlled to emit particles, realizing automated operations without manual triggering.

Benefits of technology

It improves the automation and applicability of particle emission, enriches the interaction methods of particle emission, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736455A_ABST
    Figure CN118736455A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a particle emission method, device and equipment, a computer readable storage medium and a product, and the method comprises the steps: obtaining at least one to-be-tested image frame in response to a triggering operation of a user on preset special effect content; performing identification operation on a target object in the at least one to-be-detected image frame to obtain an identification result; and if the identification result satisfies a preset particle emission condition, controlling a preset particle emitter to carry out particle emission operation. The particle emission operation can be realized according to the preset particle emission condition without manual triggering of a user, and the automatic particle emission operation is realized. In addition, by setting different example emission conditions, particle emission in different scenes can be realized, and the applicability is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Particles can be emitted by particle systems. The so-called particle system refers to the technology of simulating some specific fuzzy phenomena in 3D computer graphics. The phenomena simulated by the particle system include fire, explosion, smoke, water flow, sparks, fallen leaves, clouds, fog, snow, dust, meteor trails or abstract visual effects such as glowing trails, etc.

[0003] Currently, many special effects content can achieve the effect of particle emission. In response to the user's trigger operation on the screen, or in response to the user's trigger operation on the special effects content that can emit particles, the visual effect of particle emission can be displayed on the screen. However, it often requires the user to manually trigger it, which is cumbersome and leads to poor user experience. Summary of the invention

[0004] The embodiments of the present disclosure provide a particle emission method, device, equipment, computer-readable storage medium and product, which are used to solve the technical problem that the current particle emission operation requires manual triggering by the user and the operation is relatively cumbersome.

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

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

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

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

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

[0010] 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;

[0011] 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;

[0012] 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.

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

[0014] The memory stores computer-executable instructions;

[0015] 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.

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

[0017] 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 as described in the first aspect and various possible designs of the first aspect.

[0018] The particle emission method, device, equipment, 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 the preset special effect content, so that when the identification result of the target object meets the preset particle emission condition, the particle emitter can be automatically controlled to perform the particle emission operation. There is no need for manual triggering by the user, that is, the particle emission operation can be realized according to the preset particle emission condition, realizing an automated particle emission operation. In addition, by setting different particle emission conditions, particle emission in different scenarios can be realized, which is more applicable. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative labor.

[0020] Figure 1 A schematic diagram of a flow chart of a particle emission method provided in an embodiment of the present disclosure;

[0021] Figure 2 A schematic diagram of skeleton key points provided in an embodiment of the present disclosure;

[0022] Figure 3 A schematic flow chart of a particle emission method provided in yet another embodiment of the present disclosure;

[0023] Figure 4 A schematic diagram of a material map provided in an embodiment of the present disclosure;

[0024] Figure 5 A schematic diagram of the structure of a particle emission device provided in an embodiment of the present disclosure;

[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution 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 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 this field without creative work are within the scope of protection of the present disclosure.

[0027] In order to solve the technical problem that the current particle emission operation needs to be manually triggered 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.

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

[0029] When a user selects special effects content that can realize particle emission for media content collection, the particle emission generally needs to be controlled by manual triggering. Therefore, the control method of particle emission is relatively single, resulting in poor user experience.

[0030] In the process of solving the above technical problems, the inventors found 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 the collected gestures matching the preset target gestures, the collected user body movements matching the preset target body movements, the collected user movement amplitude being greater than the preset amplitude threshold, etc.

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

[0032] The system architecture on which the present disclosure is based includes at least a terminal device and a server. The terminal device can be connected to the server in communication. Thus, at least one image frame to be tested can be acquired, and at least one image frame to be tested can be sent to the server. The server can perform an identification operation on the target object in at least one image frame to be tested, and determine whether the preset particle emission condition is currently met according to the identification result, and when the particle emission condition is met, control the preset particle emitter to perform the particle emission operation, and display the visual effect of the particle emission on the terminal device.

[0033] Alternatively, the system architecture on which the present disclosure is based includes at least a terminal device. Thus, the terminal device can obtain at least one image frame to be tested in response to the user's triggering operation on the preset special effect content. And perform 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 and display the visual effect of the particle emission.

[0034] Figure 1 A schematic diagram of a particle emission method according to an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method includes:

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

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

[0037] Among them, in order to enrich the display effect of the preset special effect content, a particle emission operation can also be performed when the preset special effect content is displayed. For example, the preset special effect content can be a virtual costume, and the virtual costume can be a dress. After the user triggers the virtual costume, the display effect of the user wearing the virtual costume can be displayed. When the user's current action meets the preset particle emission conditions, particles can be emitted outward from the hem of the virtual costume. For example, in response to the user's rotation operation, petals can be scattered from the hem to enrich the display effect of wearing the virtual costume.

[0038] Therefore, in order to realize the particle emission operation, in response to the user's triggering operation on 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 a preset image acquisition device in the user's handheld terminal device.

[0039] 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.

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

[0041] 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 a movement amplitude of the user.

[0042] Different recognition algorithms can be used to perform recognition operations 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 motion amplitude, a preset skeleton key point recognition algorithm can be used to recognize the user's motion amplitude.

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

[0044] 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. Therefore, after obtaining the recognition result, it can be detected whether the recognition result meets the preset particle emission conditions. If it is satisfied, the preset particle emitter can be controlled to perform the particle emission operation. Among them, the particle emitter can perform the particle emission operation according to the preset particle parameters. The particle parameters include one or more of the number of particles to be emitted, the motion trajectory, the motion speed, the particle emission area, and the particle material.

[0045] 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, the particle can be controlled to move in three-dimensional space according to the preset particle parameters.

[0046] The particle emission method provided in this embodiment obtains at least one image frame to be tested and identifies the target object in at least one image frame to be tested in response to the user's triggering operation on the preset special effect content, so that when the identification result of the target object meets the preset particle emission condition, the particle emitter can be automatically controlled to perform the particle emission operation. There is no need for manual triggering by the user, that is, the particle emission operation can be realized according to the preset particle emission condition, thereby realizing an automated particle emission operation. In addition, by setting different particle emission conditions, particle emission in different scenarios can be realized, which is more applicable.

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

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

[0049] Alternatively, step 102 includes:

[0050] 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.

[0051] Alternatively, step 102 includes:

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

[0053] The current movement amplitude of the user is determined according to the target skeleton key points to obtain the recognition result.

[0054] In this embodiment, the target object may be a user's gesture, and thus, 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 to obtain a recognition result.

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

[0056] Optionally, the target object may be the user's motion amplitude. Therefore, the target skeletal key points of the user in at least one image frame to be tested may be identified. 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 may be identified using a preset skeletal key point recognition algorithm.

[0057] The particle emission method provided in this embodiment can identify the user's gesture information or body movements or movement amplitude, thereby determining whether the preset particle emission conditions are currently met based on the gesture information or body movements or movement amplitude. Particle emission can be achieved in different scenarios, and the applicability is stronger.

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

[0059] 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.

[0060] or,

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

[0062] or,

[0063] 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.

[0064] 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.

[0065] Optionally, the particle emission condition may 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 may be detected whether the user's gesture information in the recognition result is consistent with a preset target gesture. If so, a preset particle emitter may be controlled to perform a particle emission operation.

[0066] Optionally, the particle emission condition may 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 may be detected whether the user's body movement in the recognition result is consistent with a preset target body movement. If so, the preset particle emitter may be controlled to perform a particle emission operation.

[0067] Optionally, the particle emission condition may be whether the user's motion amplitude 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 may be detected whether the user's current motion amplitude in the recognition result is greater than a preset amplitude threshold. If so, the preset particle emitter may be controlled to perform a particle emission operation.

[0068] The particle emission method provided in this embodiment determines whether a preset particle emission condition is currently met based on gesture information or body movement or movement amplitude, and performs a particle emission operation when the particle emission condition is met, thereby realizing particle emission in different scenarios, enriching the interactive mode of particle emission and improving user experience.

[0069] Further, 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:

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

[0071] 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.

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

[0073] Optionally, for different preset special effect contents, the corresponding particle emission conditions may be different. For example, the first special effect content may perform a particle emission operation when the user performs a rotation action. The second special effect content may perform a particle emission operation when the user raises his hand.

[0074] 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 by a preset skeleton key point recognition algorithm.

[0075] Figure 2 A schematic diagram of skeleton key points provided in an embodiment of the present disclosure, such as Figure 2 As shown, the human body 21 may include a plurality of skeletal key points 22. For different preset special effect contents, large-scale movements of different target skeletal key points may be used to trigger. For example, the skeletal key points of the spine may be used as the target skeletal key points 23. When the rotation of the user is detected based on the target skeletal key points 23, petals may be emitted from the virtual skirt displayed on the user, presenting a visual effect of petals falling from the skirt.

[0076] The particle emission method provided in this embodiment determines the target bone key points that match the preset special effect content, and identifies the target bone key points of the user in at least one image frame to be tested through a preset bone key point recognition algorithm, thereby being able to identify different target bone key points for different preset special effect contents, and then being able to implement particle emission operations corresponding to different preset special effect contents.

[0077] Further, based on any of the above embodiments, 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:

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

[0079] 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.

[0080] 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.

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

[0082] 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 skeleton 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 according to the first rotation angle and the second rotation angle to obtain a recognition result.

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

[0084] 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 image frames to be tested can be determined, and the moving distance of the target skeletal key points can be determined based on the target skeletal key points. If the moving distance exceeds a preset distance threshold, it can be determined as a large-amplitude motion.

[0085] 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 the moving distance of the target skeleton key point can be determined respectively, and whether the target skeleton key point performs a large-scale motion can be determined based on the rotation angle and the moving distance.

[0086] The particle emission method provided in this embodiment determines the corresponding rotation angles of the 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. A first rotation angle that meets the preset first selection condition and a second rotation angle that meets the 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, so that the current movement amplitude of the user can be accurately calculated.

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

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

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

[0090] 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.

[0091] In this embodiment, if the difference between the first rotation angle and the second rotation angle is directly used as the action amplitude when calculating the user's action 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. If the difference between the first rotation angle and the second rotation angle is directly used as the action amplitude, the recognition result will be calculated as 0 degrees.

[0092] Therefore, an angle threshold may be predetermined, wherein the angle threshold may be 180 degrees. The first rotation angle and the second rotation angle are respectively compared with the preset angle threshold to obtain a comparison result. A target angle algorithm matching the comparison result is determined. 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 a recognition result.

[0093] 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 by formula 1:

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

[0095] 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.

[0096] 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 by formula 2:

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

[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 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.

[0099] 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 result using different target angle algorithms, and determines the user's current motion amplitude according to 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.

[0100] Further, based on any of the above embodiments, step 103 includes:

[0101] 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.

[0102] 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 survival state, so that the particle emitter can emit particles.

[0103] Optionally, in order to enrich the display effect of particles, the life cycle parameters corresponding to the particles to be emitted may be determined. For example, the life cycle parameters corresponding to the particles to be emitted may be two seconds, and the particles to be emitted may survive for two seconds after being emitted and disappear after two seconds.

[0104] It should be noted that the above two implementations can be implemented separately or in combination. When they are 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.

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

[0106] 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.

[0107] 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.

[0108] 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.

[0109] 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.

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

[0111] 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 a closed state.

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

[0113] In this embodiment, when the user triggers the preset special effect content but does not trigger the content collection operation, the currently collected image content can be displayed in the framing area. When the currently collected image content meets the preset particle emission conditions, the particle emitter is controlled to perform the particle emission operation. When the user triggers the content collection operation, in order to ensure the effect of content collection, all particles currently displayed in the control display page need to disappear.

[0114] Therefore, if a preset trigger operation triggered by a user is detected, all particles currently displayed in the display page can be controlled to disappear, achieving a clear screen effect. Optionally, each particle to be emitted corresponds to an update module. The update module is used to store the real-time state corresponding to the particle to be emitted. In response to the preset trigger operation of the user, the update module corresponding to the particle to be emitted switches the state corresponding to the particle to be emitted to a closed state.

[0115] The particle emission method provided in this embodiment can quickly achieve the effect of "clearing the screen" and optimize the display effect in 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.

[0116] 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 a closed state, including:

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

[0118] 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.

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

[0120] Therefore, for each particle to be emitted, before switching the survival state of the particle to be emitted in the update module, it is first necessary to detect whether the life cycle of the particle to be emitted has ended. If the life cycle of the particle to be emitted has not ended, the state of the particle to be emitted can be switched to the closed state in the update module corresponding to the particle to be emitted. Otherwise, the survival state switching operation of the particle to be emitted may not be performed.

[0121] The particle emission method provided in this embodiment first determines whether the life cycle of the particle to be emitted has ended when the update module corresponding to the particle to be emitted adjusts the particle survival state, thereby avoiding adjusting the survival state of the particle to be emitted whose life cycle has ended, avoiding display failures during the particle emission process, and optimizing the display effect of particle emission.

[0122] Further, based on any of the above embodiments, step 103 includes:

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

[0124] 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.

[0125] In this embodiment, in order to make the emitted particles more in line with the user's personalized needs, the user can pre-set 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.

[0126] 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.

[0127] The particle emission method provided in this embodiment can ensure that the emitted particles are more in line with the personalized needs of the user and improve the user experience by presetting particle parameters and performing particle emission operations according to the particle parameters.

[0128] Figure 3 A schematic flow chart of a particle emission method provided by another embodiment of the present disclosure, based on any of the above embodiments, as Figure 3 As shown, the method includes:

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

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

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

[0132] In this embodiment, in order to enrich the display effect of particle emission, particles of different materials can be emitted at different times. For example, when the user triggers the preset virtual clothing, petal-shaped particles can be scattered when the user rotates during the day, and star-shaped particles can be scattered when the user rotates at night.

[0133] Therefore, when it is detected that the recognition result meets the preset particle emission condition, the current time information can be determined, the target particle material matching the current time information can be determined, and the particle emitter can be controlled to emit the to-be-emitted particles corresponding to the target particle material to realize the emission operation of particles of different materials.

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

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

[0136] Step 303 includes:

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

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

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

[0140] The particles to be emitted corresponding to the target particle material are emitted.

[0141] In this embodiment, in order to quickly switch the particle material, a material map can be pre-set. The material map includes a variety of different materials, each of which corresponds to a different material reference range. Optionally, the generation of the material map can be achieved through a flipbook node. The flipbook node can place multiple material images in a map to form a material map. Further, after the material map is generated through the flipbook node, the Set Texture Index node (random material node) can be used to switch the material in different scenes.

[0142] Optionally, after determining the target particle material that matches the current time information, the 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 called in the material map through the adjusted random material node to generate particles to be emitted.

[0143] The particles to be emitted corresponding to the target particle material are emitted. Figure 4 A schematic diagram of a material map provided in an embodiment of the present disclosure, such as Figure 4 As shown, 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 respectively correspond to different index ranges, the first material 42 index range may be 1-15, and the second material 43 index range may be 16. Therefore, based on the material map 41, the emission of particles corresponding to different materials can be realized.

[0144] 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 enabling the emission operation of particles in the form of petals to be realized.

[0145] The particle emission method provided in this embodiment can quickly switch particle materials based on the material map and random material nodes by presetting the material map, thereby improving the efficiency of material switching.

[0146] Figure 5 A schematic diagram of the structure of a particle emission device provided in an embodiment of the present disclosure, such as Figure 5 As shown, the device includes: an acquisition module 51, an identification module 52 and a control module 53. The acquisition module 51 is used to acquire at least one image frame to be tested in response to a user's triggering operation on a preset special effect content. The identification module 52 is used to perform an identification operation on the target object in the at least one image frame to be tested to obtain an identification result. The control module 53 is used to control a preset particle emitter to perform a particle emission operation if the identification result meets a preset particle emission condition.

[0147] Further, based on any of the above embodiments, the recognition module is used to: perform recognition operation on the gesture information of the user in the at least one image frame to be tested to obtain the recognition result. Alternatively, the recognition module is used to: perform recognition operation on the body movement of the user in the at least one image frame to be tested to obtain the recognition result. Alternatively, the recognition module is used to: perform recognition operation on the target bone key points of the user in the at least one image frame to be tested. Determine the current movement amplitude of the user according to the target bone key points to obtain the recognition result.

[0148] Further, based on any of the above embodiments, the recognition module is used to: determine the 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.

[0149] Further, 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 according to the positions of the target skeleton key points in at least two image frames to be tested and the preset positions. Select 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. Determine the current movement amplitude of the user according to the first rotation angle and the second rotation angle to obtain the recognition result.

[0150] Further, based on any of the above embodiments, the recognition module is used to: respectively 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. Determine the current movement amplitude of the user 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.

[0151] Further, based on any of the above embodiments, the control module is used to: if the gesture information of the user in the recognition result is consistent with the preset target gesture, then control the preset particle emitter to perform a particle emission operation. Alternatively, if the body movement of the user in the recognition result is consistent with the preset target body movement, then control the preset particle emitter to perform a particle emission operation. Alternatively, if the current movement amplitude of the user in the recognition result is greater than a preset amplitude threshold, then control the preset particle emitter to perform a particle emission operation.

[0152] Further, based on any of the above embodiments, the control module is used to: if the recognition result meets the preset particle emission condition, 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.

[0153] Further, 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.

[0154] Further, based on any of the above embodiments, the device further comprises: a switching module, which is used to switch the state corresponding to the particle to be emitted to a closed state in the update module corresponding to the particle to be emitted in response to the preset trigger operation of the user. The update module is used to store the real-time state corresponding to the particle to be emitted.

[0155] Further, based on any of the above embodiments, the switching module is used to: for each particle to be emitted, detect whether the life cycle corresponding to the particle to be emitted has ended. If not, the update module corresponding to the particle to be emitted switches the state corresponding to the particle to be emitted to a closed state.

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

[0157] Further, based on any of the above embodiments, the control module is used to: if the recognition result satisfies the preset particle emission condition, determine the current time information, determine the target particle material matching the current time information, and control the particle emitter to emit the to-be-emitted particles corresponding to the target particle material.

[0158] Further, based on any of the above embodiments, the particle emitter includes a preset random material node. The control module is used to: determine the 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 through the adjusted random material node to generate particles to be emitted. Emit the particles to be emitted corresponding to the target particle material.

[0159] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

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

[0161] The memory stores computer-executable instructions;

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

[0163] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 6 As shown, the electronic device 600 may be a terminal device or a server. The terminal device may 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 (Portable Media Players, PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0164] like Figure 6 As shown, 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 to 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.

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

[0166] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a 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 executed.

[0167] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0168] 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.

[0169] 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.

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

[0171] 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.

[0172] 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 an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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).

[0173] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

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

[0175] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0176] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.

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

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

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

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

[0181] 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:

[0182] 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;

[0183] 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:

[0184] 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;

[0185] 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:

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

[0187] The current movement amplitude of the user is determined according to the target skeleton key points to obtain the recognition result.

[0188] 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:

[0189] Determine target bone key points that match the preset special effect content;

[0190] 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.

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

[0192] The step of determining the current movement amplitude of the user according to the target skeleton key points to obtain the recognition result includes:

[0193] 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;

[0194] 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;

[0195] 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.

[0196] According to one or more embodiments of the present disclosure, 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:

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

[0198] Determining a target angle algorithm that matches the comparison result;

[0199] 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.

[0200] 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:

[0201] 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;

[0202] or,

[0203] 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;

[0204] or,

[0205] 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.

[0206] 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:

[0207] 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.

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

[0209] 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.

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

[0211] 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;

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

[0213] 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 a closed state, including:

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

[0215] 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.

[0216] 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:

[0217] 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;

[0218] 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.

[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, then determining the current time information;

[0221] Determine a target particle material that matches the current time information;

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

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

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

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

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

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

[0228] The particles to be emitted corresponding to the target particle material are emitted.

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

[0230] 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;

[0231] 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;

[0232] 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.

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

[0234] 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;

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

[0236] 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;

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

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

[0239] The current movement amplitude of the user is determined according to the target skeleton key points to obtain the recognition result.

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

[0241] Determine target bone key points that match the preset special effect content;

[0242] 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.

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

[0244] The identification module is used to:

[0245] 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;

[0246] 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;

[0247] 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.

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

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

[0250] Determining a target angle algorithm that matches the comparison result;

[0251] 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.

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

[0253] 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;

[0254] or,

[0255] 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;

[0256] or,

[0257] 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.

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

[0259] 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.

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

[0261] 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.

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

[0263] A switching module, configured to switch the state corresponding to the to-be-emitted particle to a closed state in the update module corresponding to the to-be-emitted particle in response to a preset trigger operation of the user;

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

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

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

[0267] 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.

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

[0269] 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;

[0270] 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.

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

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

[0273] Determine a target particle material that matches the current time information;

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

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

[0276] The control module is used for:

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

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

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

[0280] The particles to be emitted corresponding to the target particle material are emitted.

[0281] 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;

[0282] The memory stores computer-executable instructions;

[0283] 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 described in the first aspect and various possible designs of the first aspect.

[0284] 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 execution instructions. When a processor executes the computer execution instructions, the particle emission method described in the first aspect and various possible designs of the first aspect is implemented.

[0285] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including 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.

[0286] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0287] 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 are 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.

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

Claims

1. A particle emission method, characterized in that: include: 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, characterized in that 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 includes: 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, characterized in that The identifying operation of the target skeleton key points of the user in the at least one image frame to be tested includes: 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, characterized in that: 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, characterized in that The determining the current movement amplitude of the user according to the first rotation angle and the second rotation angle to obtain the recognition result includes: 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 claim 1, characterized in that If the recognition result satisfies the preset particle emission condition, controlling the preset particle emitter to perform a particle emission operation includes: 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, characterized in that: If the recognition result satisfies the preset particle emission condition, controlling the preset particle emitter to perform a particle emission operation includes: 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, characterized in that The particle emitter includes 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, characterized in that: If the recognition result satisfies the preset particle emission condition, controlling the preset particle emitter to perform a particle emission operation includes: 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, characterized in that The step of 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 includes: 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, characterized in that If the recognition result satisfies the preset particle emission condition, after controlling the preset particle emitter to perform the particle emission operation, the method further includes: 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, characterized in that The updating module corresponding to the to-be-emitted particle switches the state corresponding to the to-be-emitted particle to a closed state, including: 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, characterized in that: If the recognition result satisfies the preset particle emission condition, controlling the preset particle emitter to perform a particle emission operation includes: 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, characterized in that: include: 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, characterized in that: include: 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, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the 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, characterized in that When the computer program is executed by a processor, the particle emission method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Gesture recognition method and system

    CN101976330A

  • Method and device for realizing particle effect

    CN110415326A

  • Animation generation method, animation playing method and related devices

    CN112037311A

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

    CN113538696A

  • Method, electronic device and storage medium for image generation

    US20200402321A1