Collision sound level determination method and device, equipment and storage medium
By calculating the total motion speed and kinetic energy of an object and determining the sound level during collision, the problem of low accuracy of sound level in the prior art is solved, and the user's immersion and interactive experience are improved.
Patent Information
- Application Number
- CN202310757834.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2024-12-27
AI Technical Summary
The prior art has low accuracy in determining the sound level of object collision, resulting in poor immersion and interactive experience for users.
By obtaining static data and motion data before an object collides, calculate the total motion speed and kinetic energy of the object, and then determine the sound level during the collision. The specific steps include obtaining the volume, density, weight and three-dimensional vector velocity of the object, calculating the sound level in combination with the kinetic energy calculation formula, and adjusting the scene if necessary to recalculate the sound level.
Improves the accuracy of the sound level of object collision and enhances the user's immersion and interactive experience.
Smart Images

Figure CN119202445A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent devices, and in particular to a method, device, equipment and storage medium for determining a collision sound level. Background Art
[0002] In the application process of smart devices, object collision is a very common scenario, for example, the collision of props, and when objects collide, they will emit sounds of a level suitable for the scene. At present, the sound level is usually simulated through pre-defined sound effects, but there is still a difference between the simulated sound level and the scene, that is, the sound effect is not real enough, and it is difficult for users to have an immersive feeling. Therefore, the accuracy of determining the sound level of object collision by the above method is low, resulting in poor user immersion and interactive experience.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, device, equipment and storage medium for determining the collision sound level, aiming to solve the technical problem that the accuracy of determining the sound level of object collision in the prior art is low, resulting in poor user immersion and interactive experience.
[0005] To achieve the above object, the present invention provides a method for determining a collision sound level, the method comprising the following steps:
[0006] Obtain static data and motion data of objects before collision;
[0007] Determine the total moving speed of the object according to the static data and the dynamic data;
[0008] determining the kinetic energy of the object based on the total motion velocity;
[0009] A sound level when the objects collide is calculated based on the kinetic energy.
[0010] Optionally, determining the total moving speed of the object according to the static data and the dynamic data includes:
[0011] determining the volume and density of each object based on the static data;
[0012] Calculate the weight of each object based on the volume and density;
[0013] Calculating the total weight according to the weights of the objects;
[0014] The total movement speed of the object is calculated according to the weight, total weight and dynamic data of each object through the target movement calculation formula.
[0015] Optionally, determining the kinetic energy of the object according to the total motion speed includes:
[0016] Determine the formula for calculating the kinetic energy of objects when they collide;
[0017] The kinetic energy of the object is calculated according to the total movement speed and the total weight using the kinetic energy calculation formula.
[0018] Optionally, before acquiring static data of the objects before the collision, the method further includes:
[0019] The texture of the object is identified through the target visual recognition strategy to obtain the material data of the object;
[0020] determining the density of the object according to the material data;
[0021] The contour of the object is identified through the target shape recognition strategy to obtain the shape data of the object;
[0022] The static data of the object before the collision is obtained according to the density and shape data.
[0023] Optionally, obtaining static data of the object before the collision according to the density and shape data includes:
[0024] Determining a formula and parameters for calculating the volume of the object according to the shape data;
[0025] Calculating the volume of the object according to the formula and parameters;
[0026] The static data of the objects before the collision is obtained according to the density and volume.
[0027] Optionally, before acquiring the dynamic data of the objects before the collision, the method further includes:
[0028] Determine the three-dimensional vector velocity of the objects before the collision;
[0029] The dynamic data of the object before the collision is obtained according to the three-dimensional vector velocity.
[0030] Optionally, after calculating the sound level of the objects when they collide according to the kinetic energy, the method further includes:
[0031] When the objects collide, playing the sound corresponding to the sound level;
[0032] Get the scene after playing the sound;
[0033] When the scene after the sound is played is inconsistent with the scene when the object collides, determining whether there is a collision risk in the scene after the sound is played;
[0034] When it is determined that there is a collision risk in the scene after the sound is played, a sound level of the target object colliding in the scene after the sound is played is calculated.
[0035] In addition, to achieve the above object, the present invention also provides a collision sound level determination device, the collision sound level determination device comprising:
[0036] An acquisition module is used to acquire static data and motion data of objects before collision;
[0037] A determination module, configured to determine the total motion speed of the object according to the static data and the dynamic data;
[0038] The determination module is further used to determine the kinetic energy of the object according to the total motion speed;
[0039] A calculation module is used to calculate the sound level when the objects collide according to the kinetic energy.
[0040] In addition, to achieve the above-mentioned purpose, the present invention also proposes a collision sound level determination device, which includes: a memory, a processor, and a collision sound level determination program stored in the memory and executable on the processor, and the collision sound level determination program is configured to implement the collision sound level determination method described above.
[0041] In addition, to achieve the above objective, the present invention further proposes a storage medium, on which a collision sound level determination program is stored, and when the collision sound level determination program is executed by a processor, the collision sound level determination method as described above is implemented.
[0042] The method for determining the collision sound level proposed in the present invention obtains static data and motion data of an object before a collision; determines the total motion speed of the object based on the static data and dynamic data; determines the kinetic energy of the object based on the total motion speed; and calculates the sound level of the object when a collision occurs based on the kinetic energy. In the above manner, the total motion speed is determined based on the static data and motion data of the object before the collision, and then the kinetic energy of the object is determined based on the total motion speed and combined with the total weight, and then the sound level of the object when the collision occurs is calculated based on the kinetic energy, thereby effectively improving the accuracy of determining the sound level of the collision of objects, thereby improving the user's immersion and interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a structural diagram of a device for determining a collision sound level in a hardware operating environment according to an embodiment of the present invention;
[0044] Figure 2It is a flow chart of a first embodiment of a method for determining a collision sound level according to the present invention;
[0045] Figure 3 It is a flow chart of a second embodiment of the method for determining the collision sound level of the present invention;
[0046] Figure 4 It is a schematic diagram of the overall flow of an embodiment of a method for determining a collision sound level of the present invention;
[0047] Figure 5 It is a schematic diagram of functional modules of the first embodiment of the device for determining the collision sound level of the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of a device structure for determining a collision sound level in a hardware operating environment according to an embodiment of the present invention.
[0051] like Figure 1 As shown, the collision sound level determination device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the impact sound level determination device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a collision sound level determination program.
[0054] exist Figure 1 In the collision sound level determination device shown, the network interface 1004 is mainly used for data communication with the network integration platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the collision sound level determination device of the present invention can be set in the collision sound level determination device, and the collision sound level determination device calls the collision sound level determination program stored in the memory 1005 through the processor 1001, and executes the collision sound level determination method provided by the embodiment of the present invention.
[0055] Based on the above hardware structure, an embodiment of a method for determining a collision sound level of the present invention is proposed.
[0056] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a method for determining a collision sound level according to the present invention.
[0057] In a first embodiment, the collision sound level determination method comprises the following steps:
[0058] Step S10, acquiring static data and motion data of the objects before the collision.
[0059] It should be noted that the executor of this embodiment is a collision sound level determination device, and may also be other devices that can achieve the same or similar functions, such as a sound level determination controller, etc. This embodiment does not limit this. In this embodiment, the sound level determination controller is taken as an example for explanation.
[0060] It should be understood that static data refers to the attribute data of the object before the collision, which includes but is not limited to volume and density, and motion data refers to the data of the object's movement, which may be speed.
[0061] Furthermore, before step S10, it also includes: identifying the texture of the object through a target visual recognition strategy to obtain material data of the object; determining the density of the object based on the material data; identifying the contour of the object through a target shape recognition strategy to obtain shape data of the object; and obtaining static data of the object before collision based on the density and shape data.
[0062] It can be understood that the target visual recognition strategy refers to a strategy for identifying the material data of an object using a visual algorithm, that is, the texture of the object is identified through the target visual recognition strategy, and then the density of the object is determined according to the material data. For example, if the material data is aluminum, the density corresponding to aluminum is found through the material-density mapping table, and then the density is used as the density of the object. The material-density mapping table can refer to Table 1, which is specifically expressed as follows:
[0063] Table 1:
[0064]
[0065]
[0066] It should be understood that the target shape recognition strategy refers to a strategy for identifying the shape of an object, that is, the outline of the object is identified through the target shape recognition strategy to obtain the shape data of the object. For example, the shape of the object is a rectangular parallelepiped, and then the static data of the object before the collision is obtained based on the density and shape data.
[0067] Furthermore, obtaining static data of the object before the collision based on the density and shape data includes: determining a formula and parameters for calculating the volume of the object based on the shape data; calculating the volume of the object based on the formula and parameters; and obtaining static data of the object before the collision based on the density and volume.
[0068] It should be understood that the formula and parameters refer to the formula and parameters used to calculate the volume of an object. For example, when the shape of the object is a rectangle, the formula and parameters for calculating the object are v=a*b*c, where v represents the volume of the object, a represents the length of the object, b represents the width of the object, and c represents the height of the object. Then, the static data of the object before the collision is obtained based on the density and volume of the object.
[0069] Furthermore, before step S10, the method further includes: determining a three-dimensional vector velocity of the object before the collision; and obtaining dynamic data of the object before the collision according to the three-dimensional vector velocity.
[0070] It can be understood that the three-dimensional vector velocity refers to the vector velocity of the object moving before the collision. The three-dimensional vector velocity can be the velocity three-dimensional vector velocity, specifically including the component velocity in the X-axis direction, the Y-axis direction and the Z-axis direction, and then the dynamic data of the object before the collision is obtained according to the three-dimensional vector velocity.
[0071] Step S20: determining the total moving speed of the object according to the static data and the dynamic data.
[0072] It can be understood that the number of objects that collide is at least greater than or equal to 2, and the total movement speed refers to the total speed of at least two objects when they move, and the total movement speed is determined by static data and dynamic data.
[0073] Step S30: determining the kinetic energy of the object according to the total motion speed.
[0074] It should be understood that the kinetic energy of an object refers to the energy possessed by at least two objects when they collide. The greater the kinetic energy, the greater the impact force when the objects collide. After obtaining the total movement speed, the corresponding kinetic energy is determined in combination with the total weight of the objects.
[0075] Further, step S30 includes: determining a kinetic energy calculation formula for an object when it collides; and calculating the kinetic energy of the object according to the total movement speed and total weight using the kinetic energy calculation formula.
[0076] It can be understood that the kinetic energy calculation formula refers to a formula for calculating the kinetic energy of an object when it collides, and then the kinetic energy of the object is calculated according to the total movement speed and total weight through the kinetic energy calculation formula, specifically:
[0077] kinetic_energy=0.5*m_total*v_total 2 ;
[0078] Among them, kinetic_energy represents the kinetic energy of the object, m_total represents the total weight, and v_total represents the total speed of movement.
[0079] It should be understood that, when the m_total of the object is determined to be 0.5 kg and the v_total is 10 m / s, the calculated kinetic_energy = 0.5*0.5*10 2 =25j, that is, the kinetic energy of the objects colliding is 25 joules.
[0080] Step S40: Calculate the sound level when the objects collide according to the kinetic energy.
[0081] It can be understood that the sound level refers to the level of sound generated when at least two objects collide. The unit of the sound level is decibel, and the sound level can reflect the size of the collision sound, that is, the higher the sound level, the louder the collision sound, and vice versa. The sound level when the objects collide is calculated by the kinetic energy of the objects and calling the objective function, that is, the parameter input to the objective function is the kinetic energy, and the parameter output by the objective function is the sound level, specifically:
[0082] calculate_sound_level(kinetic_energy){
[0083] sound_level=20*math.log10(math.sqrt(kinetic_energy) / 20e-6);
[0084] return sound_level;
[0085] }
[0086] Among them, sound_level represents the sound level when objects collide, kinetic_energy represents the kinetic energy of the objects, and math represents the function call character.
[0087] Furthermore, after step S40, it also includes: when the object collides, playing the sound corresponding to the sound level; obtaining the scene after the sound is played; when the scene after the sound is played is inconsistent with the scene when the object collides, determining whether there is a collision risk in the scene after the sound is played; when it is determined that there is a collision risk in the scene after the sound is played, calculating the sound level of the target object colliding in the scene after the sound is played.
[0088] It should be understood that at the moment when at least two objects collide, the sound corresponding to the sound level is played, and then it is determined whether the scene after the sound is played is consistent with the scene when the objects collide. If not, it indicates that the referenced scene has changed. At this time, it is necessary to determine whether there is a collision risk in the scene after the sound is played. If so, it indicates that there will be a collision between objects in the scene after the sound is played. At this time, it is necessary to continue to calculate the sound level of the target object collision in the scene after the sound is played in the above manner, that is, determine the total motion speed and kinetic energy and other parameters respectively, and then calculate the sound level of the target object collision. It should be noted that the scheme of this embodiment can adapt the material data of the collision object according to the application scenario, and dynamically determine the sound level when at least two objects collide according to the material data, that is, objects of other materials can be replaced to calculate different collision sound levels and experience different collision sound effects. For example, the material of the object that collides for the first time is aluminum, and the material of the object that collides for the second time is iron. When other parameters are the same, due to the different densities of iron and aluminum, the sound level of the collision between iron and iron and the sound level of the collision between aluminum and aluminum are different.
[0089] This embodiment obtains static data and motion data of objects before a collision; determines the total motion speed of the objects based on the static data and dynamic data; determines the kinetic energy of the objects based on the total motion speed; and calculates the sound level of the objects when a collision occurs based on the kinetic energy. In the above manner, the total motion speed is determined based on the static data and motion data of the objects before a collision, and then the kinetic energy of the objects is determined based on the total motion speed and combined with the total weight, and then the sound level of the objects when a collision occurs is calculated based on the kinetic energy, thereby effectively improving the accuracy of determining the sound level of the collision of objects, thereby improving the user's immersion and interactive experience.
[0090] In one embodiment, if Figure 3 Based on the first embodiment, a second embodiment of the method for determining the collision sound level of the present invention is proposed. Step S20 includes:
[0091] Step S201, determining the volume and density of each object according to the static data.
[0092] It should be understood that the volume and density of at least two objects colliding may be the same or different. After obtaining the static data of each object, the corresponding volume and density of each object are extracted from the static data. For example, the volume v1 and density ρ are extracted from the static data of object a, and the volume v2 and density ρ2 are extracted from the static data of object b. When object a and object b are of the same material, density ρ = density ρ2.
[0093] Step S202, calculating the weight of each object according to the volume and density.
[0094] It can be understood that after obtaining the volume and density, the weight of each object is calculated. For example, the volume of object a is v1 and the density is ρ, then the weight of object a is m1=v1*ρ. When object b and object a are made of the same material, the density of object b is also ρ. When the volume of object b is v2, the weight of object b is m2=v2*ρ. When object b and object a are made of different materials, it is necessary to use the target visual recognition strategy to identify the material data of object b, and then use the material-density mapping table to match the density of object b, that is, ρ2. At this time, the weight of object b is m2=v2*ρ2.
[0095] Step S203, calculating the total weight according to the weight of each object.
[0096] It should be understood that after obtaining the weight of each object, the weight of each object is accumulated to obtain the total weight, specifically:
[0097] m_total=m1+...mp...+mn;
[0098] Among them, m_total represents the total weight, and m1...mp...mn represent the weight of each object respectively.
[0099] It should be noted that when there is a stationary object among the multiple objects that collide, the calculated mass is the mass of the moving object, and the calculated total speed is the speed of the moving object. That is to say, the mass and speed of the moving object are directly calculated when calculating the kinetic energy of the colliding object.
[0100] Step S204, calculating the total movement speed of the objects according to the weight, total weight and dynamic data of each object using a target movement calculation formula.
[0101] It can be understood that after obtaining the total weight, the total movement speed of the object is calculated by combining the weight and dynamic data of each object, specifically:
[0102] v_total=(m1*v1+...mp*vp+mn*vn) / m_total;
[0103] Among them, v_total represents the total movement speed, m1...mp...mn represent the weight of each object respectively, v1...vp...vn represent the dynamic data of each object respectively, and m_total represents the total weight.
[0104] It should be understood that, taking object a and object b as an example, the v1 of object a is 0.05m 3 , m1 is 0.5kg, v2 of object b is 0.05m 3 , m2 is 0.5kg, then the total movement speed = (0.5*0.05+0.5*0.05) / (0.5+0.5) = 0.05m / s.
[0105] Understandably, reference Figure 4 , Figure 4 This is a schematic diagram of the overall process, which is explained by taking two objects as an example, specifically object a and object b, where object a is located on the left side of the scene, object b is located on the right side of the scene, object a moves from left to right, and object b moves from right to left. In the scenario where the smart device is used, when object a and object b move to the dotted area, object a and object b will collide. Before object a and object b collide, the static data and motion data of object a and object b are obtained, and then the total movement speed of the two is determined based on the static data and the motion data, and then the kinetic energy of the collision is calculated based on the total movement speed and the total weight of object a and object b, and finally the sound level of the collision between object a and object b is calculated based on the kinetic energy.
[0106] This embodiment determines the volume and density of each object according to the static data; calculates the weight of each object according to the volume and density; calculates the total weight according to the weight of each object; calculates the total movement speed of the object according to the weight of each object, the total weight and the dynamic data through the target motion calculation formula; through the above method, the volume and density of each object are extracted from the static data, and then the weight of each object is calculated according to the volume and density, and then the total weight is calculated based on the weight of each object, and then the total movement speed of the object is calculated in combination with the dynamic data, thereby effectively improving the accuracy of calculating the total movement speed.
[0107] In addition, an embodiment of the present invention further provides a storage medium, on which a collision sound level determination program is stored. When the collision sound level determination program is executed by a processor, the steps of the collision sound level determination method described above are implemented.
[0108] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0109] In addition, refer to Figure 5 The embodiment of the present invention further provides a collision sound level determination device, the collision sound level determination device comprising:
[0110] The acquisition module 10 is used to acquire static data and motion data of the objects before the collision.
[0111] The determination module 20 is used to determine the total moving speed of the object according to the static data and the dynamic data.
[0112] The determination module 20 is further configured to determine the kinetic energy of the object according to the total motion speed.
[0113] The calculation module 30 is used to calculate the sound level when the objects collide according to the kinetic energy.
[0114] This embodiment obtains static data and motion data of objects before a collision; determines the total motion speed of the objects based on the static data and dynamic data; determines the kinetic energy of the objects based on the total motion speed; and calculates the sound level of the objects when a collision occurs based on the kinetic energy. In the above manner, the total motion speed is determined based on the static data and motion data of the objects before a collision, and then the kinetic energy of the objects is determined based on the total motion speed and combined with the total weight, and then the sound level of the objects when a collision occurs is calculated based on the kinetic energy, thereby effectively improving the accuracy of determining the sound level of the collision of objects, thereby improving the user's immersion and interactive experience.
[0115] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0116] In addition, for technical details not fully described in this embodiment, reference may be made to the method for determining the collision sound level provided in any embodiment of the present invention, and will not be repeated here.
[0117] In one embodiment, the acquisition module 10 is also used to identify the texture of the object through a target visual recognition strategy to obtain material data of the object; determine the density of the object based on the material data; identify the contour of the object through a target shape recognition strategy to obtain shape data of the object; and obtain static data of the object before a collision based on the density and shape data.
[0118] In one embodiment, the acquisition module 10 is further used to determine a formula and parameters for calculating the volume of the object based on the shape data; calculate the volume of the object based on the formula and parameters; and obtain static data of the object before a collision based on the density and volume.
[0119] In one embodiment, the acquisition module 10 is further used to determine the three-dimensional vector velocity of the object before the collision; and obtain the dynamic data of the object before the collision according to the three-dimensional vector velocity.
[0120] In one embodiment, the determination module 20 is also used to determine the volume and density of each object based on the static data; calculate the weight of each object based on the volume and density; calculate the total weight based on the weight of each object; and calculate the total movement speed of the object based on the weight of each object, the total weight and the dynamic data through a target motion calculation formula.
[0121] In one embodiment, the determination module 20 is further used to determine a kinetic energy calculation formula for an object when it collides; the kinetic energy of the object is calculated according to the total movement speed and the total weight through the kinetic energy calculation formula.
[0122] In one embodiment, the calculation module 30 is also used to play the sound corresponding to the sound level when the objects collide; obtain the scene after the sound is played; when the scene after the sound is played is inconsistent with the scene when the objects collide, determine whether there is a collision risk in the scene after the sound is played; when it is determined that there is a collision risk in the scene after the sound is played, calculate the sound level of the target object in the scene after the sound is played.
[0123] Other embodiments or implementation methods of the device for determining the collision sound level of the present invention may refer to the above-mentioned method embodiments, which will not be repeated here.
[0124] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0125] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0126] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0128] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for determining a collision sound level, characterized in that: The collision sound level determination method comprises the following steps: Obtain static data and motion data of objects before collision; Determine the total moving speed of the object according to the static data and the dynamic data; determining the kinetic energy of the object based on the total motion velocity; A sound level when the objects collide is calculated based on the kinetic energy.
2. The method for determining the collision sound level according to claim 1, characterized in that: Determining the total moving speed of the object according to the static data and the dynamic data includes: determining the volume and density of each object based on the static data; Calculate the weight of each object based on the volume and density; Calculating the total weight according to the weights of the objects; The total movement speed of the object is calculated according to the weight, total weight and dynamic data of each object through the target movement calculation formula.
3. The method for determining the collision sound level according to claim 1, characterized in that: Determining the kinetic energy of the object according to the total motion speed includes: Determine the formula for calculating the kinetic energy of objects when they collide; The kinetic energy of the object is calculated according to the total movement speed and the total weight using the kinetic energy calculation formula.
4. The method for determining the collision sound level according to claim 1, characterized in that: Before acquiring static data of the objects before the collision, the method further includes: The texture of the object is identified through the target visual recognition strategy to obtain the material data of the object; determining the density of the object according to the material data; The contour of the object is identified through the target shape recognition strategy to obtain the shape data of the object; The static data of the object before the collision is obtained according to the density and shape data.
5. The method for determining the collision sound level according to claim 4, characterized in that: The step of obtaining static data of the object before the collision according to the density and shape data includes: Determining a formula and parameters for calculating the volume of the object according to the shape data; Calculating the volume of the object according to the formula and parameters; The static data of the objects before the collision is obtained according to the density and volume.
6. The method for determining the collision sound level according to claim 1, characterized in that: Before obtaining the dynamic data of the objects before the collision, the method further includes: Determine the three-dimensional vector velocity of the objects before the collision; The dynamic data of the object before the collision is obtained according to the three-dimensional vector velocity.
7. The method for determining the collision sound level according to any one of claims 1 to 6, characterized in that: After calculating the sound level of the objects when they collide according to the kinetic energy, the method further includes: When the objects collide, playing the sound corresponding to the sound level; Get the scene after playing the sound; When the scene after the sound is played is inconsistent with the scene when the object collides, determining whether there is a collision risk in the scene after the sound is played; When it is determined that there is a collision risk in the scene after the sound is played, a sound level of the target object colliding in the scene after the sound is played is calculated.
8. A device for determining a collision sound level, characterized in that: The collision sound level determination device comprises: An acquisition module is used to acquire static data and motion data of objects before collision; A determination module, configured to determine the total motion speed of the object according to the static data and the dynamic data; The determination module is further used to determine the kinetic energy of the object according to the total motion speed; A calculation module is used to calculate the sound level when the objects collide according to the kinetic energy.
9. An impact sound level determination device, characterized in that: The collision sound level determination device includes: a memory, a processor, and a collision sound level determination program stored in the memory and executable on the processor, wherein the collision sound level determination program is configured to implement the collision sound level determination method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a collision sound level determination program, and when the collision sound level determination program is executed by the processor, the collision sound level determination method according to any one of claims 1 to 7 is implemented.
