Sound production position determination method and device, computer equipment and storage medium
By acquiring and adjusting the vocal information of video frames, especially the character's vocal status and face deflection angle, the problem of vocal recognition delay in the existing technology is solved, and the accuracy and real-time performance of the vocal position are improved.
Patent Information
- Application Number
- CN202410718254.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing sound objectification process, it takes a while for the neural network to identify whether the object in the current picture makes a sound, resulting in a mismatch between the sound location and the picture, causing a delay in the effect.
By obtaining the vocal information of the video frame, including object identification information, vocal confidence information and object location information, the initial vocal position is determined, and adjusted based on the vocal confidence and flag information to obtain the target vocal position, giving priority to the character's vocal status. and face deflection angle to improve the accuracy of voicing position.
It achieves sound position information that better matches the picture, alleviates the effect delay caused by the sound recognition time, and improves the accuracy and real-time nature of audio data.
Smart Images

Figure CN118691672A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for determining a sound source location. Background Art
[0002] Sound objectification refers to the use of a specific method to analyze the motion coordinates and trajectories of different sound-emitting objects from the image, and then matching the marked sounds with corresponding image objects through sound separation and sound labeling, thereby converting their stereo sounds into several audio metadata with motion trajectories and audio data.
[0003] In the existing sound objectification process, a neural network is usually used to identify whether the object in the current picture makes a sound. After identifying that the object in the current picture makes a sound, the sound position of the picture is adjusted. Since it takes a while for the neural network to identify whether the object in the current picture makes a sound, the sound position and the picture do not match during this period of time. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, computer device and storage medium for determining a sound position, which can obtain sound position information that better matches the picture and can alleviate the effect delay caused by the sound recognition time.
[0005] The technical solution adopted by the present invention to solve the problem is as follows:
[0006] In one aspect, the present application provides a method for determining a sound source location, comprising:
[0007] Acquire the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame;
[0008] Based on the object identification information, determining the number of objects in the current video frame;
[0009] If the number of objects is greater than or equal to the first number threshold and less than the second number threshold, determining initial sound position information of the current video frame based on the object position information;
[0010] The initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
[0011] In some embodiments of the present application, the initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame, including:
[0012] Based on the utterance confidence information and the utterance flag information, utterance recognition is performed to obtain the utterance state information of the target object; the target object is the object with the highest priority among the objects contained in the current video frame;
[0013] If the sound state information is a first sound state and the target object is a person, comparing the object position information of the target object with a first position threshold and a second position threshold; the first sound state indicates that the target object is making a sound;
[0014] If the object position information of the target object is greater than the first position threshold and less than the second position threshold, adjusting the initial sound position information based on the face deflection angle of the target object to obtain candidate sound position information;
[0015] Based on the candidate sound position information, target sound position information of the current video frame is determined.
[0016] In some embodiments of the present application, the initial sound position information is adjusted based on the face deflection angle of the target object to obtain candidate sound position information, including:
[0017] Compare the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold and the fourth angle threshold;
[0018] If the face deflection angle is greater than or equal to the first angle threshold and less than the second angle threshold, determining the first position information based on the face deflection angle and the first angle threshold;
[0019] Adding the first location information to the preset location information to obtain second location information;
[0020] The initial utterance position information and the second position information are subtracted to obtain candidate utterance position information.
[0021] In some embodiments of the present application, after comparing the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold and the fourth angle threshold, the method further includes:
[0022] If the face deflection angle is greater than the third angle threshold and less than or equal to the fourth angle threshold, determining the first position information based on the face deflection angle and the first angle threshold;
[0023] Subtracting the first position information from the preset position information to obtain third position information;
[0024] The initial utterance position information and the third position information are subtracted to obtain candidate utterance position information.
[0025] In some embodiments of the present application, voice recognition is performed based on voice confidence information and voice flag information to obtain the voice state information of the target object, including:
[0026] Acquire scene switching identification information, a preset confidence threshold, a first reference value, and a second reference value;
[0027] If the utterance confidence information is less than a preset confidence threshold, the utterance flag information is not the first reference value, and the scene switching identification information is the second reference value, it is determined that the utterance state information of the target object is the second utterance state; the second utterance state indicates that the target object has no utterance;
[0028] If the voice confidence information is greater than or equal to a preset confidence threshold, and / or the voice flag information is a first reference value, and / or the scene switching identification information is not a second reference value, it is determined that the voice state information of the target object is a first voice state.
[0029] In some embodiments of the present application, after performing speech recognition based on speech confidence information and speech flag information to obtain speech state information of the target object, the method further includes:
[0030] If the utterance state information is the second utterance state, the post-utterance judgment queue value is updated;
[0031] Determine whether the updated post-voice judgment queue value is greater than the queue upper limit value;
[0032] If the updated post-voice judgment queue value is less than or equal to the queue upper limit value, the target sound position information of the historical video frame is obtained, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information;
[0033] If the updated post-sound judgment queue value is greater than the queue upper limit value, the preset sound position information is determined as the initial sound position information, and the target sound position information of the current video frame is determined based on the target sound position information and the initial sound position information of the historical video frame.
[0034] In some embodiments of the present application, determining the number of objects in the current video frame based on the object identification information includes:
[0035] Based on the object identification information and the preset object priority information, determine the target object and the identification quantity of the target object; the target object is the object with the highest priority among the objects contained in the current video frame;
[0036] Determine the number of target objects based on the number of identifications of the target objects;
[0037] The number of target objects is determined as the number of objects in the current video frame.
[0038] In some embodiments of the present application, after determining the number of objects in the current video frame based on the object identification information, the method further includes:
[0039] If the number of objects is less than the first number threshold or greater than or equal to the second number threshold, determining the preset sound position information as the initial sound position information of the current video frame;
[0040] The target sound position information of the historical video frame is obtained, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information.
[0041] In some implementation schemes of the present application, obtaining the sound information of the current video frame includes:
[0042] Performing image recognition on the current video frame using an image recognition model to obtain object information of the object contained in the current video frame;
[0043] The object information is converted to obtain the sound information of the current video frame.
[0044] In a second aspect, an embodiment of the present invention further provides a device for determining a sound source position, comprising:
[0045] An information acquisition module is used to acquire the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame;
[0046] A quantity determination module, used to determine the number of objects in the current video frame based on the object identification information;
[0047] A position determination module, configured to determine initial sound position information of a current video frame based on the object position information if the number of objects is greater than or equal to a first number threshold and less than a second number threshold;
[0048] The position adjustment module is used to adjust the initial sound position information based on the sound confidence information and the sound flag information to obtain the target sound position information of the current video frame.
[0049] In a third aspect, the present application further provides a computer device, the computer device comprising:
[0050] one or more processors;
[0051] Memory; and
[0052] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement any one of the methods for determining the sound source position in the first aspect.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is loaded by a processor to execute the steps in any one of the methods for determining a sound source position in the first aspect.
[0054] The beneficial effects of the present invention are as follows: based on the object identification information, the number of objects in the current video frame is determined; if the number of objects is greater than or equal to a first number threshold and less than a second number threshold, the initial sound position information of the current video frame is determined based on the object position information; based on the sound confidence information and the sound flag information, the initial sound position information is adjusted to obtain the target sound position information of the current video frame; when it is not recognized whether the object in the picture makes a sound, the sound position is first determined based on the object position information, and then the sound recognition and the initial sound position adjustment are performed based on the sound confidence information and the sound flag information; not only can the sound position information that better matches the picture be obtained, but also the effect delay caused by the sound recognition time can be alleviated. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention 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 only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 is a schematic diagram of the flow of a system for determining a sound source position provided by an embodiment of the present invention;
[0057] Figure 2 is a flow chart of a method for determining a sound source position provided by an embodiment of the present invention;
[0058] Figure 3 is a schematic diagram of the structure of screen division provided by an embodiment of the present invention;
[0059] Figure 4 is a schematic diagram of a specific process of obtaining voice information provided by an embodiment of the present invention;
[0060] Figure 5 is a schematic diagram of a specific process for determining the number of objects provided by an embodiment of the present invention;
[0061] Figure 6 is a schematic diagram of a specific process of adjusting initial sound position information provided by an embodiment of the present invention;
[0062] Figure 7 is a principle block diagram of a device for determining a sound source position provided by an embodiment of the present invention;
[0063] Figure 8It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0065] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first", "second", "third" and the like may explicitly or implicitly include one or more of the said features.
[0066] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0067] It should be noted that since the method of the embodiment of the present application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, time is actually time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data for processing by the computer device. The details will not be repeated here.
[0068] The embodiments of the present application provide a method, apparatus, computer device, and storage medium for determining a sound source location, which are described in detail below.
[0069] See also Figure 1 , Figure 1 Schematic diagram of a scenario of a sound source location determination system provided in an embodiment of the present application. The sound source location determination system may include a computer device 100, in which a sound source location determination device is integrated, such as Figure 1 Computer equipment in.
[0070] In the embodiment of the present application, the computer device 100 is mainly used to obtain the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the objects contained in the current video frame; based on the object identification information, the number of objects in the current video frame is determined; if the number of objects is greater than or equal to a first number threshold and less than a second number threshold, the initial sound position information of the current video frame is determined based on the object position information; based on the sound confidence information and the sound flag information, the initial sound position information is adjusted to obtain the target sound position information of the current video frame, which can improve the picture contrast of the display terminal from both the signal dimension and the backlight dimension.
[0071] In the embodiment of the present application, the computer device 100 may be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0072] It is understandable that the computer device 100 used in the embodiments of the present application may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific computer device 100 may be a desktop terminal or a mobile terminal, and the computer device 100 may also be one of a smart TV, a mobile phone, a tablet computer, a laptop computer, etc.
[0073] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or less computer equipment as shown in Figure 1Only one computer device is shown. It can be understood that the sound location determination system can also include one or more other services, which are not specifically limited here.
[0074] In addition, if Figure 1 As shown, the sound location determination system may also include a memory 200 for storing data, such as sound information, such as object identification information, sound confidence information, sound flag information, etc., such as sound location information, such as initial sound location information, target sound location information, preset sound location information, etc.
[0075] It should be noted that Figure 1 The scenario diagram of the sound location determination system shown is merely an example. The sound location determination system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the sound location determination system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.
[0076] First, a method for determining a sound position is provided in an embodiment of the present application. The executor of the method for determining a sound position is a sound position determining device, and the sound position determining device is applied to a computer device. The method for determining a sound position includes: obtaining sound information of a current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of an object contained in the current video frame; based on the object identification information, determining the number of objects in the current video frame; if the number of objects is greater than or equal to a first number threshold and less than a second number threshold, determining the initial sound position information of the current video frame based on the object position information; adjusting the initial sound position information based on the sound confidence information and the sound flag information to obtain the target sound position information of the current video frame.
[0077] like Figure 2 As shown, it is a flow chart of an embodiment of a method for determining a sound source position in an embodiment of the present application. The method for determining a sound source position may include the following steps S201 to S204, which are specifically as follows:
[0078] Step S201, obtaining the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame.
[0079] Specifically, the current video frame is the video frame for which the sound position needs to be determined, the sound information is the information related to the sound in the current video frame, and the object contained in the current video frame is the target object in the current video frame, including but not limited to people, machinery, musical instruments, animals, etc.
[0080] The sound information includes object identification information, sound confidence information, sound flag information and object position information of the objects contained in the current video frame, wherein the object identification information represents the object category and the number of objects contained in the current video frame, for example, object identification 00:1 represents a person, object identification 00:2 represents a machine, object identification 00:3 represents a musical instrument, and object identification 00:4 represents an animal. If the object identification information of the objects contained in the current video frame is 00:1, 00:1, 00:2, 00:4, it means that the current video frame contains two people, one machine and one animal.
[0081] Furthermore, the utterance confidence information characterizes the possibility of the object uttering. The larger the utterance confidence information, the higher the possibility of the object uttering, and the smaller the utterance confidence information, the lower the possibility of the object uttering. The utterance flag information is determined based on the utterance confidence information. If the utterance confidence information is greater than the preset first threshold, the utterance flag information is the first reference value. If the utterance confidence information is less than or equal to the preset first threshold, the utterance flag information is the third reference value. Among them, the first reference value, the second reference value and the preset first threshold can be set according to actual needs. For example, if the utterance confidence information is greater than the preset 0.5, the utterance flag information is 1. If the utterance confidence information is less than or equal to 0.5, the utterance flag information is 0.
[0082] Specifically, the object position information includes the x-coordinate value and the y-coordinate value of the object on the screen. In order to determine the position of the object on the screen, this embodiment divides the screen according to the preset size. Figure 3 As shown, the screen is divided into 28*8 parts, the x-coordinate value of the object close to the left side of the screen is 0, the x-coordinate value of the object close to the right side of the screen is 1, the y-coordinate value of the object close to the bottom of the screen is 0, and the y-coordinate value of the object close to the top of the screen is 1.
[0083] Step S202: Determine the number of objects in the current video frame based on the object identification information.
[0084] The number of objects is the number of target objects in the current video frame, and the target object is the object with the highest priority in the current video frame. For example, based on the object identification information, it is determined that the current video frame includes two people, one machine and one animal, and the order of priority of each object from high to low is: person>machine>animal, then the target object is determined to be a person, and the number of objects in the current video frame is 2.
[0085] Step S203: If the number of objects is greater than or equal to the first number threshold and less than the second number threshold, determine the initial sound position information of the current video frame based on the object position information.
[0086] Specifically, the first quantity threshold and the second quantity threshold are pre-set thresholds, and the first quantity threshold and the second quantity threshold can be set according to actual needs. For example, the first quantity threshold is set to 1 and the second quantity threshold is set to 2. If the number of objects is greater than or equal to 1 and less than 2, that is, the number of objects is 1, the initial sound position information of the current video frame is determined based on the object position information.
[0087] The step of determining the initial sound position information of the current video frame based on the object position information specifically includes: determining the object position information of the target object from the object position information; and determining the initial sound position information of the current video frame based on the object position information of the target object. When determining the initial sound position information of the current video frame based on the object position information of the target object, the x-coordinate value in the object position information of the target object can be directly determined as the initial sound position information of the current video frame, or the initial sound position information of the current video frame can be determined based on the x-coordinate value in the object position information of the target object, and this application does not limit this.
[0088] Step S204: adjust the initial utterance position information based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
[0089] The target sound position information of the current video frame is the screen sound position determined based on the sound confidence information and the sound flag information. In this embodiment, the initial sound position information of the current video frame is determined based on the object position information, and then the sound recognition and the initial sound position information are adjusted based on the sound confidence information and the sound flag. Compared with the existing technical solution of fully recognizing the sound of the object and then adjusting the sound position, the delay problem caused by the time required for sound recognition can be reduced, and the obtained target sound position information is more matched with the current video frame.
[0090] In a specific implementation, referring to Figure 4 As shown, the acquisition of the sound information of the current video frame in the above step S201 may include the following steps S301 to S302, which are specifically as follows:
[0091] Step S301: Perform image recognition on the current video frame using an image recognition model to obtain object information of the object contained in the current video frame.
[0092] The object information is information related to the object contained in the current video frame, for example, the object information includes the landmarks of the object, the landmarks of the mouth, etc. The image recognition model is a pre-trained neural network model for identifying the object information of the current video frame. The image recognition model can be obtained by training a preset network model based on the sample video frame and the real object information of the sample video frame.
[0093] The training process of the image recognition model is as follows: input the sample video frame into the preset network model, and output the predicted object information of the sample video frame through the preset network model; determine the loss value based on the predicted object information, the real object information and the loss function of the preset network model; if the loss value does not meet the preset conditions, train the preset network model based on the preset parameter learning rate, and continue to input the sample video frame into the preset network model, and output the predicted object information of the sample video frame through the preset network model, until the loss value meets the preset conditions, and the trained preset network model is the image recognition model. The loss value meeting the preset conditions can be that the loss value is less than the preset second threshold value or the difference between the loss values obtained twice before and after is less than the preset third threshold value.
[0094] Step S302: convert the object information to obtain the sound information of the current video frame.
[0095] Specifically, the object information includes the object category, the object's position information in the image and the object's landmark information. The object identification information can be determined by the object category, and the object's position information in the screen can be determined based on the object's position information in the image, thereby obtaining the object's position information.
[0096] Furthermore, the utterance confidence information in the utterance information can be obtained through the following steps: based on the object's landmark information, determining the time sequence information of the object's landmark points; based on the time sequence information, determining the class variance data; based on the class variance data, determining the utterance confidence information.
[0097] The utterance flag information in the utterance information can be obtained by the following steps: comparing the utterance confidence information with the preset first threshold; if the utterance confidence information is greater than the preset first threshold, determining the utterance flag information as the first reference value; if the utterance confidence information is less than or equal to the preset first threshold, determining the utterance flag information as the third reference value. Among them, the first reference value, the third reference value and the preset first threshold can be set according to actual needs. For example, the first reference value is set to 1, the third reference value is set to 0, and the preset first threshold is set to 0.5. If the utterance confidence information is greater than 0.5, the utterance flag information is determined to be 1, and if the utterance confidence information is less than or equal to 0.5, the utterance flag information is determined to be 0.
[0098] In a specific implementation, referring to Figure 5 As shown, the above step S202, based on the object identification information, determines the number of objects in the current video frame, which may include the following steps S401 to S403, which are specifically as follows:
[0099] Step S401: Determine a target object and the number of target object identifiers based on object identifier information and preset object priority information; the target object is the object with the highest priority among the objects included in the current video frame.
[0100] The aforementioned steps mentioned that the number of objects in the current video frame is the number of objects with the highest priority in the current video frame. In order to determine the number of objects in the current video frame, the present embodiment presets the object priority information. For example, the object priority information is people>machines>musical instruments>animals. The target object is the object with the highest priority among the objects contained in the current video frame. The target object and the number of identifications of the target object can be determined based on the object identification information and the object priority information. For example, the object identification information is 00:1, 00:1, 00:2, 00:4, and the object priority information has the highest priority of 00:1 people. Based on the object identification information and the preset object priority information, it can be determined that the target object is a person, and the number of identifications of the target object is 2.
[0101] Step S402: Determine the number of target objects based on the number of identifications of the target objects.
[0102] The number of target objects may be determined based on the number of identifications of the target objects. For example, if the number of identifications of the target objects is 2, then the number of target objects is determined to be 2.
[0103] Step S403: determine the number of target objects as the number of objects in the current video frame.
[0104] Specifically, after determining the number of target objects included in the current video frame, the number of target objects can be determined as the number of objects in the current video frame. For example, if the number of target objects is determined to be 2, then the number of objects in the current video frame is 2.
[0105] In a specific implementation, after determining the number of objects in the current video frame based on the object identification information in the above step S202, it also includes: if the number of objects is less than a first number threshold or is greater than or equal to a second number threshold, determining the preset sound position information as the initial sound position information of the current video frame; obtaining the target sound position information of the historical video frame, and determining the target sound position information of the current video frame based on the target sound position information and the initial sound position information of the historical video frame.
[0106] Specifically, the preset sound position information can be set according to actual needs, for example, Figure 3As shown, the sound effects are consistent when the sound position is 13 / 14, both are centered, and 14 is set as the preset sound position information. The historical video frame is the z-1 video frames before the current video frame, and z can be set according to actual needs. For example, z is 3. Of course, z can also be 1. When z is 1, it means that the initial sound position information is directly determined as the target sound position information of the current video frame.
[0107] Furthermore, when determining the target sound position information of the current video frame based on the target sound position information and the initial sound position information of the historical video frame, the average of the target sound position information and the initial sound position information of the historical video frame can be determined as the target sound position information of the current video frame. For example, the average of the initial sound position information and the target sound position information of the two video frames before the current video frame can be determined as the target sound position information of the current video frame.
[0108] In a specific implementation, referring to Figure 6 As shown, in the above step S204, the initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame, which may include the following steps S501 to S504, which are specifically as follows:
[0109] Step S501: perform voice recognition based on voice confidence information and voice flag information to obtain voice status information of a target object; the target object is the object with the highest priority among the objects contained in the current video frame.
[0110] Specifically, the utterance state information of the target object indicates whether the target object is uttering a sound, and the utterance state information includes first state information and second state information, wherein the first state information indicates that the target object is uttering a sound, and the second state information indicates that the target object is not uttering a sound. This embodiment performs utterance recognition based on utterance confidence information and utterance flag information, which can improve the speed of utterance recognition and reduce the delay problem caused by utterance recognition time.
[0111] In a specific embodiment, the above-mentioned step of performing speech recognition based on speech confidence information and speech flag information to obtain the speech status information of the target object may specifically include: obtaining scene switching identification information, a preset confidence threshold, a first reference value and a second reference value; if the speech confidence information is less than the preset confidence threshold, the speech flag information is not the first reference value and the scene switching identification information is the second reference value, determining that the speech status information of the target object is the second speech state; if the speech confidence information is greater than or equal to the preset confidence threshold, and / or the speech flag information is the first reference value, and / or the scene switching identification information is not the second reference value, determining that the speech status information of the target object is the first speech state.
[0112] Among them, the scene switching identification information is used to indicate whether the current video frame is in the process of scene switching. If the scene switching identification information is the second reference value, it indicates that the current video frame is in the process of scene switching. If the scene switching identification information is not the second reference value, it indicates that the current video frame is not in the process of scene switching. For example, the second reference value is 0. If the scene switching identification information is 0, it indicates that the current video frame is in the process of scene switching. If the scene switching identification information is 1, it indicates that the current video frame is not in the process of scene switching.
[0113] From the above process of voice recognition based on voice confidence information and voice flag information, it can be known that determining that the voice state information of the target object is the second voice state requires the following three conditions to be met at the same time: ① the voice confidence information is less than the preset confidence threshold; ② the voice flag information is not the first reference value; ③ the scene switching identification information is the second reference value. If any one of the above three conditions is not met, the voice state information of the target object is determined to be the first voice state. For example, ① the voice confidence information is less than 0.05; ② the voice flag is not 1; ③ the scene switching flag information is 0. If these three conditions are met at the same time, the voice state information of the target object is determined to be the second voice state.
[0114] Step S502: If the sound state information is the first sound state and the target object is a person, compare the object position information of the target object with the first position threshold and the second position threshold; the first sound state indicates that the target object is making a sound.
[0115] The first position threshold and the second position threshold are pre-set position thresholds for measuring whether the target object is in the middle of the screen. The first position threshold and the second position threshold can be set according to actual needs. For example, the first position threshold is set to 10 and the second position threshold is set to 17. If the sound state information is the first sound state and the target object is a person, the object position information of the target object is compared with the first position threshold and the second position threshold; conversely, if the sound state information is the first sound state but the target object is not a person, the target sound position information of the current video frame is determined based on the initial sound position information.
[0116] It should be noted that when determining the target sound position information of the current video frame based on the initial sound position information, the initial sound position information can be directly determined as the target sound position information of the current video frame, or the average of the initial sound position information and the target sound position information of the historical video frame can be determined as the target sound position information of the current video frame. This application does not limit this.
[0117] Step S503: If the object position information of the target object is greater than the first position threshold and less than the second position threshold, adjust the initial voice position information based on the face deflection angle of the target object to obtain candidate voice position information.
[0118] Specifically, if a person is included in the current video frame, the voice information further includes the face deflection angle, which represents the horizontal rotation angle of the face facing the audience. If the face is directly facing the audience, the face deflection angle is 0. If the face faces the left side of the audience, the face deflection angle is a positive value. If the face faces the right side of the audience, the face deflection angle is a negative value.
[0119] If the object position information of the target object is greater than the first position threshold and less than the second position threshold, it indicates that the target object is in the middle of the screen. Then, adjust the initial voice position information based on the face deflection angle of the target object to obtain candidate voice position information. For example, if the x coordinate value in the object position information of the target object satisfies 10 < x < 17, adjust the initial voice position information based on the face deflection angle of the target object to obtain candidate voice position information.
[0120] On the contrary, if the object position information of the target object is less than or equal to the first position threshold or greater than or equal to the second position threshold, it indicates that the target object is not in the middle of the screen. Then, do not adjust the initial voice position information and directly determine the initial voice position information as the candidate voice position information. For example, if the x coordinate value in the object position information of the target object satisfies x ≥ 17 or x ≤ 10, do not adjust the initial voice position information and directly determine the initial voice position information as the candidate voice position information.
[0121] In a specific embodiment, the step of adjusting the initial voice position information based on the face deflection angle of the target object to obtain candidate voice position information specifically includes: comparing the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold, and the fourth angle threshold; if the face deflection angle is greater than or equal to the first angle threshold and less than the second angle threshold, determine the first position information based on the face deflection angle and the first angle threshold; perform an addition process on the first position information and the preset position information to obtain the second position information; perform a subtraction process on the initial voice position information and the second position information to obtain the candidate voice position information. In this case, the calculation process of the candidate voice position information can be expressed as: where pos2 represents the candidate voice position information, pos1 represents the initial voice position information, A represents the first angle threshold, B represents the preset position information, and CEILING() represents returning the smallest integer greater than or equal to the given numerical expression
[0122] Among them, the first angle threshold, the second angle threshold, the third angle threshold, the fourth angle threshold, and the preset position information can be set according to actual needs. For example, the first angle threshold is set to 15°, the second angle threshold is set to 60°, the third angle threshold is set to -60°, the fourth angle threshold is set to -15°, and the preset position information is set to 1. Then the calculation process of the candidate sound source position information can be expressed as:
[0123]
[0124] In a specific embodiment, after comparing the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold, and the fourth angle threshold, it further includes: if the face deflection angle is greater than the third angle threshold and less than or equal to the fourth angle threshold, determining the first position information based on the face deflection angle and the first angle threshold; performing a subtraction process on the first position information and the preset position information to obtain the third position information; performing a subtraction process on the initial sound source position information and the third position information to obtain the candidate sound source position information. In this case, the calculation process of the candidate sound source position information can be expressed as: For example, the first angle threshold is 15° and the preset position information is 1. If the face deflection angle angle of the target object satisfies -60° < angle < -15°, the calculation process of the candidate sound source position information can be expressed as:
[0125] In a specific embodiment, if the face deflection angle is greater than the fourth angle threshold and less than the first angle threshold, the initial sound source position information is determined as the candidate sound source position information. For example, if the face deflection angle angle satisfies -15° < angle < 15°, the determination process of the candidate sound source position information can be expressed as: pos2 = pos1, where pos2 represents the candidate sound source position information and pos1 represents the initial sound source position information.
[0126] Step S504: Determine the target sound source position information of the current video frame based on the candidate sound source position information.
[0127] Specifically, when determining the target sound source position information of the current video frame based on the candidate sound source position information, the candidate sound source position information can be directly determined as the target sound source position information of the current video frame, or the average value of the candidate sound source position information and the target sound source position information of the historical video frame can be determined as the target sound source position information of the current video frame. This application does not limit this.
[0128] The historical video frame is the z-1 video frames before the current video frame, and z can be set according to actual needs. For example, if z is 3, the average of the candidate sound position information and the target sound position information of the two video frames before the current video frame is determined as the target sound position information of the current video frame. Of course, z can also be 1. When z is 1, it means that the candidate sound position information is directly determined as the target sound position information of the current video frame.
[0129] In a specific embodiment, after performing voice recognition based on voice confidence information and voice flag information to obtain the voice state information of the target object in the above step S501, it also includes: if the voice state information is the second voice state, updating the post-voice judgment queue value; judging whether the updated post-voice judgment queue value is greater than the queue upper limit value; if the updated post-voice judgment queue value is less than or equal to the queue upper limit value, obtaining the target voice position information of the historical video frame, and determining the target voice position information of the current video frame based on the target voice position information and the initial voice position information of the historical video frame; if the updated post-voice judgment queue value is greater than the queue upper limit value, determining the preset voice position information as the initial voice position information, and determining the target voice position information of the current video frame based on the target voice position information and the initial voice position information of the historical video frame. Among them, the preset voice position information can be set according to actual needs, for example, referring to Figure 3 As shown, when the sound position is 13 / 14, the sound effects are consistent and are centered, and 14 is set as the preset sound position information.
[0130] Furthermore, the queue upper limit value can be set according to actual needs. For example, the queue upper limit value is set to 9, and the post-sound judgment queue value can be updated by increasing the post-sound judgment queue value by 1. For example, if the updated post-sound judgment queue value is less than or equal to 9, the average of the target sound position information and the initial sound position information of the historical video frame is determined as the target sound position information of the current video frame; if the updated post-sound judgment queue value is greater than 9, the preset sound position information is determined as the initial sound position information, and the average of the target sound position information and the initial sound position information of the historical video frame is determined as the target sound position information of the current video frame.
[0131] In a specific embodiment, if the updated post-speech judgment queue value is greater than the queue upper limit value, the post-speech judgment queue value is also included: setting the post-speech judgment queue value to the sum of the queue upper limit and a preset fourth threshold value. For example, the preset fourth threshold value is 1, and the queue upper limit is 9. If the updated post-speech judgment queue value is greater than 9, the post-speech judgment queue value is set to 10. This setting can prevent queue overflow caused by a long period of no speech.
[0132] In a specific embodiment, if the sound state information is the first sound state in the above step S502, it also includes: a post-sound judgment queue value, and making the scene switching identification information the fourth reference value. This setting can make the scene switching identification information the second reference value only during the scene switching process.
[0133] In a specific embodiment, if the number of objects in the above step S202 is greater than or equal to the first number threshold and less than the second number threshold, it also includes: obtaining the difference between the initial sound position information and the target sound position information of the previous video frame; if the difference is greater than the preset fifth threshold, setting the scene switching identification information to the second reference value, so as to identify whether the objects contained in the current video frame have abnormal jumps, and then determine whether the scene switching occurs in the current video frame.
[0134] In order to better implement the method for determining the sound position in the embodiment of the present application, based on the method for determining the sound position, a device for determining the sound position is also provided in the embodiment of the present application, such as Figure 7 As shown, the device 600 for determining the sound position includes:
[0135] The information acquisition module 610 is used to acquire the sound information of the current video frame; the sound information includes the object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame;
[0136] A quantity determination module 620 is used to determine the number of objects in the current video frame based on the object identification information;
[0137] A position determination module 630, configured to determine initial sound position information of a current video frame based on the object position information if the number of objects is greater than or equal to a first number threshold and less than a second number threshold;
[0138] The position adjustment module 640 is used to adjust the initial utterance position information based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
[0139] In an embodiment of the present application, when it is not recognized whether the object in the picture makes a sound, the sound position is first determined based on the object position information, and then the sound recognition and the initial sound position adjustment are performed based on the sound confidence information and the sound flag information. This not only can obtain sound position information that better matches the picture, but also can alleviate the effect delay caused by the sound recognition time.
[0140] In some embodiments of the present application, the information acquisition module 610 is specifically used to:
[0141] Performing image recognition on the current video frame using an image recognition model to obtain object information of the object contained in the current video frame;
[0142] The object information is converted to obtain the sound information of the current video frame.
[0143] In some embodiments of the present application, the quantity determination module 620 is specifically used to:
[0144] Based on the object identification information and the preset object priority information, determine the target object and the identification quantity of the target object; the target object is the object with the highest priority among the objects contained in the current video frame;
[0145] Determine the number of target objects based on the number of identifications of the target objects;
[0146] The number of target objects is determined as the number of objects in the current video frame.
[0147] In some embodiments of the present application, after the quantity determination module 620 determines the number of objects in the current video frame based on the object identification information, the quantity determination module 620 is further configured to:
[0148] If the number of objects is less than the first number threshold or greater than or equal to the second number threshold, determining the preset sound position information as the initial sound position information of the current video frame;
[0149] The target sound position information of the historical video frame is obtained, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information.
[0150] In some embodiments of the present application, the position adjustment module 640 is specifically used to:
[0151] Based on the utterance confidence information and the utterance flag information, utterance recognition is performed to obtain the utterance state information of the target object; the target object is the object with the highest priority among the objects contained in the current video frame;
[0152] If the sound state information is a first sound state and the target object is a person, comparing the object position information of the target object with a first position threshold and a second position threshold; the first sound state indicates that the target object is making a sound;
[0153] If the object position information of the target object is greater than the first position threshold and less than the second position threshold, adjusting the initial sound position information based on the face deflection angle of the target object to obtain candidate sound position information;
[0154] Based on the candidate sound position information, target sound position information of the current video frame is determined.
[0155] In some embodiments of the present application, the position adjustment module 640 is further used to:
[0156] Compare the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold and the fourth angle threshold;
[0157] If the face deflection angle is greater than or equal to the first angle threshold and less than the second angle threshold, determining the first position information based on the face deflection angle and the first angle threshold;
[0158] Adding the first location information to the preset location information to obtain second location information;
[0159] The initial utterance position information and the second position information are subtracted to obtain candidate utterance position information.
[0160] In some embodiments of the present application, the position adjustment module 640 is further used to:
[0161] If the face deflection angle is greater than the third angle threshold and less than or equal to the fourth angle threshold, determining the first position information based on the face deflection angle and the first angle threshold;
[0162] Subtracting the first position information from the preset position information to obtain third position information;
[0163] The initial utterance position information and the third position information are subtracted to obtain candidate utterance position information.
[0164] In some embodiments of the present application, the position adjustment module 640 is further used to:
[0165] Acquire scene switching identification information, a preset confidence threshold, a first reference value, and a second reference value;
[0166] If the utterance confidence information is less than a preset confidence threshold, the utterance flag information is not the first reference value, and the scene switching identification information is the second reference value, it is determined that the utterance state information of the target object is the second utterance state; the second utterance state indicates that the target object has no utterance;
[0167] If the voice confidence information is greater than or equal to a preset confidence threshold, and / or the voice flag information is a first reference value, and / or the scene switching identification information is not a second reference value, it is determined that the voice state information of the target object is a first voice state.
[0168] In some embodiments of the present application, after the position adjustment module 640 performs voice recognition based on the voice confidence information and the voice flag information and obtains the voice state information of the target object, the position adjustment module 640 is further used to:
[0169] If the utterance state information is the second utterance state, the post-utterance judgment queue value is updated;
[0170] Determine whether the updated post-voice judgment queue value is greater than the queue upper limit value;
[0171] If the updated post-voice judgment queue value is less than or equal to the queue upper limit value, the target sound position information of the historical video frame is obtained, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information;
[0172] If the updated post-sound judgment queue value is greater than the queue upper limit value, the preset sound position information is determined as the initial sound position information, and the target sound position information of the current video frame is determined based on the target sound position information and the initial sound position information of the historical video frame.
[0173] The embodiment of the present application further provides a computer device, which integrates any one of the sound position determination devices provided in the embodiment of the present application, and the computer device includes:
[0174] one or more processors;
[0175] Memory; and
[0176] One or more applications, wherein the one or more applications are stored in the memory and are configured to execute, by the processor, the steps of the method for determining the sound source location in any of the above-mentioned embodiments of the method for determining the sound source location.
[0177] The present application also provides a computer device that integrates any of the sound location determination devices provided in the present application. Figure 8 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0178] The computer device may include one or more processing core processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804 and other components. Those skilled in the art will appreciate that Figure 8 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0179] The processor 801 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.
[0180] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0181] The computer device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 803 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0182] The computer device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0183] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:
[0184] Acquire the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame;
[0185] Based on the object identification information, determining the number of objects in the current video frame;
[0186] If the number of objects is greater than or equal to the first number threshold and less than the second number threshold, determining initial sound position information of the current video frame based on the object position information;
[0187] The initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
[0188] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0189] To this end, the embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the methods for determining the sound position provided in the embodiment of the present application. For example, the computer program may be loaded by a processor to execute the following steps:
[0190] Acquire the sound information of the current video frame; the sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame;
[0191] Based on the object identification information, determining the number of objects in the current video frame;
[0192] If the number of objects is greater than or equal to the first number threshold and less than the second number threshold, determining initial sound position information of the current video frame based on the object position information;
[0193] The initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
[0194] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0195] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0196] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0197] The above is a detailed introduction to a method, device, computer equipment and storage medium for determining the sound position provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for determining a sound source position, characterized in that: include: Get the sound information of the current video frame; The sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame; Based on the object identification information, determining the number of objects in the current video frame; If the number of objects is greater than or equal to a first number threshold and less than a second number threshold, determining initial sound position information of the current video frame based on the object position information; The initial utterance position information is adjusted based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame.
2. The method according to claim 1, characterized in that The adjusting the initial utterance position information based on the utterance confidence information and the utterance flag information to obtain the target utterance position information of the current video frame includes: Performing voice recognition based on the voice confidence information and the voice flag information to obtain voice state information of a target object; the target object is an object with the highest priority among the objects contained in the current video frame; If the sound state information is a first sound state and the target object is a person, comparing the object position information of the target object with a first position threshold and a second position threshold; the first sound state indicates that the target object is making a sound; If the object position information of the target object is greater than the first position threshold and less than the second position threshold, adjusting the initial sound position information based on the face deflection angle of the target object to obtain candidate sound position information; Based on the candidate sounding position information, target sounding position information of the current video frame is determined.
3. The method according to claim 2, characterized in that The adjusting the initial sound position information based on the face deflection angle of the target object to obtain candidate sound position information includes: Compare the face deflection angle of the target object with a first angle threshold, a second angle threshold, a third angle threshold, and a fourth angle threshold; If the face deflection angle is greater than or equal to the first angle threshold and less than the second angle threshold, determining first position information based on the face deflection angle and the first angle threshold; Adding the first location information to the preset location information to obtain second location information; Subtract the initial utterance position information from the second position information to obtain candidate utterance position information.
4. The method according to claim 3, characterized in that After comparing the face deflection angle of the target object with the first angle threshold, the second angle threshold, the third angle threshold and the fourth angle threshold, the method further includes: If the face deflection angle is greater than the third angle threshold and less than or equal to the fourth angle threshold, determining the first position information based on the face deflection angle and the first angle threshold; Subtracting the first location information from the preset location information to obtain third location information; Subtract the initial utterance position information from the third position information to obtain candidate utterance position information.
5. The method according to claim 2, characterized in that: The performing of speech recognition based on the speech confidence information and the speech flag information to obtain the speech state information of the target object includes: Acquire scene switching identification information, a preset confidence threshold, a first reference value, and a second reference value; If the utterance confidence information is less than the preset confidence threshold, the utterance flag information is not the first reference value, and the scene switching identification information is the second reference value, it is determined that the utterance state information of the target object is the second utterance state; the second utterance state indicates that the target object has not uttered a sound; If the voice confidence information is greater than or equal to the preset confidence threshold, and / or the voice flag information is the first reference value, and / or the scene switching identification information is not the second reference value, it is determined that the voice state information of the target object is the first voice state.
6. The method according to claim 5, characterized in that After performing speech recognition based on the speech confidence information and the speech flag information to obtain the speech state information of the target object, the method further includes: If the utterance state information is the second utterance state, updating the post-utterance judgment queue value; Determine whether the updated post-voice determination queue value is greater than a queue upper limit value; If the updated post-voice determination queue value is less than or equal to the queue upper limit value, obtaining target sound position information of the historical video frame, and determining the target sound position information of the current video frame based on the target sound position information of the historical video frame and the initial sound position information; If the updated post-sound judgment queue value is greater than the queue upper limit value, the preset sound position information is determined as the initial sound position information, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information.
7. The method according to claim 1, characterized in that The determining the number of objects in the current video frame based on the object identification information includes: Based on the object identification information and the preset object priority information, determining a target object and the identification quantity of the target object; the target object is the object with the highest priority among the objects contained in the current video frame; Determining the number of the target objects based on the number of identifications of the target objects; The number of the target objects is determined as the number of objects in the current video frame.
8. The method according to claim 1, characterized in that After determining the number of objects in the current video frame based on the object identification information, the method further includes: If the number of objects is less than the first number threshold or greater than or equal to the second number threshold, determining the preset sound position information as the initial sound position information of the current video frame; The target sound position information of the historical video frame is obtained, and the target sound position information of the current video frame is determined based on the target sound position information of the historical video frame and the initial sound position information.
9. The method according to any one of claims 1 to 8, characterized in that: The obtaining of the sound information of the current video frame includes: Performing image recognition on the current video frame using an image recognition model to obtain object information of an object contained in the current video frame; The object information is converted to obtain the sound information of the current video frame.
10. A device for determining a sound source position, characterized in that: include: An information acquisition module, used to acquire the sound information of the current video frame; The sound information includes object identification information, sound confidence information, sound flag information and object position information of the object contained in the current video frame; A quantity determination module, used to determine the number of objects in the current video frame based on the object identification information; A position determination module, configured to determine the initial sound position information of the current video frame based on the object position information if the number of objects is greater than or equal to a first number threshold and less than a second number threshold; The position adjustment module is used to adjust the initial sound position information based on the sound confidence information and the sound flag information to obtain the target sound position information of the current video frame.
11. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the method for determining a sound source position according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the method for determining a sound source position according to any one of claims 1 to 9.
Citation Information
Patent Citations
Audio and video playing method, device and equipment and storage medium
CN110248233A
Synchronous sound production control method of display device and related equipment
CN113810837A
Audio processing method and device and storage medium
CN117581566A
Video / voice output device
JP2010041485A
Cited By
Sound production position determination method and apparatus, and computer device
WO2025251770A1
