Noise elimination method and device, electronic device and computer medium

By detecting facial images and ambient sounds, noise reduction signals with opposite phases are generated, solving the problem of inaccurate noise cancellation and achieving a highly efficient noise cancellation effect.

CN121366566APending Publication Date: 2026-01-20FUTAIJING PRECISION ELECTRONICS (YANTAI) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410976121.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

Existing technologies for noise cancellation suffer from inaccurate detection and poor cancellation effects, failing to effectively prevent noise from impacting daily life and work.

Method used

By detecting negative emotional expressions in facial images and the decibel or frequency values ​​of ambient sounds, a noise reduction signal with the same amplitude but opposite phase to the noise signal is generated, thus accurately canceling out the noise.

Benefits of technology

It enables accurate detection and timely elimination of noise, avoiding noise interference with daily life and work, and improving the efficiency and accuracy of noise elimination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121366566A_ABST
    Figure CN121366566A_ABST
Patent Text Reader

Abstract

The invention provides a noise elimination method and device, an electronic device and a computer medium, the noise elimination method is applied to the noise elimination device, and the method comprises the following steps: acquiring environmental data of a position where the noise elimination device is located, the environment data at least comprises environment sound and a face image of a person at the position within a preset range; performing image analysis on the face image, and detecting whether the person is in a negative emotion or not; if it is detected that the person is in the negative emotion, detecting whether noise appears in the environment sound; if detecting that the noise appears in the environment sound, processing the noise to obtain a noise signal and a noise direction; generating a noise reduction signal with the same amplitude and opposite phase as the noise signal; and playing the noise reduction signal to the noise direction. The noise reduction signal can be played to eliminate noise, and the noise is prevented from affecting life or work of people.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of noise elimination, and in particular to a noise elimination method, device, electronic device and computer medium. BACKGROUND

[0002] Noise refers to a kind of sound that causes people to be annoyed or harmful to human health due to excessive volume. With the development of economy, people's living standards are improving, and more and more people are constantly improving their environmental requirements for themselves and their families, and noise is becoming the focus of people's attention. Exemplarily, the sound of cars on the street, the sound of machines on the construction site, and the sound of electric drills next door, etc. all belong to noise. If noise is not eliminated, noise will seriously affect people's life and work. SUMMARY

[0003] The present application provides a noise elimination method, device, electronic device and computer medium, which can play a noise reduction signal to eliminate noise and avoid the influence of noise on people's life or work.

[0004] The technical solution of the present application is a noise elimination method applied to a noise elimination device, which comprises: acquiring environmental data of a position where the noise elimination device is located, wherein the environmental data at least includes environmental sound and a face image of a person within a preset range at the position; performing image analysis on the face image to detect whether the person is in a negative emotion; if it is detected that the person is in the negative emotion, detecting whether noise appears in the environmental sound; if it is detected that the noise appears in the environmental sound, processing the noise to obtain a noise signal and a noise direction; generating a noise reduction signal with the same amplitude and opposite phase as the noise signal; and playing the noise reduction signal to the noise direction.

[0005] The noise elimination method of the present application can accurately determine whether noise is contained in the environmental sound according to whether the person is in a negative emotion when hearing noise, when the person is in a negative emotion. Then, the noise direction and the noise signal are analyzed to emit a noise reduction signal to the noise direction to offset the noise signal, thereby avoiding the influence of noise on people's life or work.

[0006] In some embodiments, the image analysis of the face image to detect whether the person is in a negative emotion and the processing of the noise to obtain a noise signal and a noise direction comprise: extracting facial feature information in the face image; analyzing a facial expression in the facial feature information, wherein the facial expression includes a negative emotion expression; and detecting whether the facial expression of the person is the negative emotion expression.

[0007] In some embodiments, if the noise is detected in the ambient sound, processing the noise to obtain a noise signal and a noise direction comprises: obtaining a maximum decibel value in the ambient sound; detecting whether the maximum decibel value is greater than a preset decibel threshold; and if the maximum decibel value is detected to be greater than the preset decibel threshold, processing the noise to obtain a noise signal and a noise direction.

[0008] In some embodiments, if the noise is detected in the ambient sound, processing the noise to obtain a noise signal and a noise direction comprises: obtaining a maximum frequency in the ambient sound; detecting whether the maximum frequency is greater than a preset frequency threshold; and if the maximum frequency is detected to be greater than the preset frequency threshold, processing the noise to obtain a noise signal and a noise direction.

[0009] An embodiment of the present application further provides a noise elimination device, comprising: a noise elimination apparatus, wherein the noise elimination apparatus comprises a sound receiving apparatus, a sound emitting apparatus, a collecting apparatus and a control apparatus, the control apparatus is in communication connection with the sound receiving apparatus, the sound emitting apparatus and the collecting apparatus respectively, the sound receiving apparatus is used for receiving ambient sound at a position where the noise elimination apparatus is located, and the collecting apparatus is used for collecting a face image of a person within a preset range at the position; the control apparatus is used for performing image analysis on the face image, detecting whether the person is in a negative emotion, if the person is detected to be in the negative emotion, the control apparatus detects whether noise occurs in the ambient sound, if the noise is detected in the ambient sound, the control apparatus is used for processing the noise to obtain a noise signal and a noise direction and generating a noise reduction signal with the same amplitude and opposite phase as the noise signal; and the sound emitting apparatus is used for playing the noise reduction signal to the noise direction.

[0010] In some embodiments, the number of the noise elimination apparatuses is multiple, and the multiple noise elimination apparatuses are in communication connection.

[0011] In some embodiments, the number of the noise elimination apparatuses is one, the number of the sound receiving apparatuses, the number of the collecting apparatuses and the number of the sound emitting apparatuses are multiple, one sound receiving apparatus is matched with one collecting apparatus and one sound emitting apparatus, the number of the control apparatuses is one, and the control apparatus is in communication connection with the multiple sound receiving apparatuses, the multiple collecting apparatuses and the multiple sound emitting apparatuses; each sound receiving apparatus is used for collecting ambient sound at a position where the sound receiving apparatus is located, each collecting apparatus is used for collecting a face image of a person within a preset range at a position where the collecting apparatus is located, and the sound emitting apparatus is used for playing the noise reduction signal to the noise direction.

[0012] In some embodiments, the noise elimination device further comprises that each of the sound receiving devices is further configured to receive ambient sound from the same sound source, and the control device is further configured to: analyze the ambient sound received by the plurality of sound receiving devices to obtain sound receiving time of the ambient sound when the ambient sound reaches each of the sound receiving devices; and calculate the distance between each of the sound emitting devices and the sound source and the noise direction according to the plurality of sound receiving times.

[0013] An electronic device is also provided in an embodiment of the present application, and the electronic device comprises a processor and a memory. The memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory so that the electronic device performs the noise elimination method described above.

[0014] A computer readable storage medium is also provided in an embodiment of the present application, and the computer readable storage medium stores computer instructions. When the computer instructions are run on an electronic device, the electronic device performs the noise elimination method described above.

[0015] Compared with the prior art, the noise elimination method, device, electronic device and computer medium described above have the following advantages. First, whether a facial expression in a facial image is a negative emotional expression is detected. When the facial expression is a negative emotional expression, the maximum decibel value or the maximum sound frequency is used to determine whether noise appears in ambient sound. When noise appears in the ambient sound, a noise reduction signal with the same amplitude and opposite phase as the noise signal is played to the noise direction, so as to cancel the noise. This method can accurately determine whether noise appears in the ambient sound by simultaneously detecting the facial expression in the facial image and the ambient sound. When noise appears in the ambient sound, the noise is processed to avoid the problem of inaccurate detection of whether noise appears in the ambient sound. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 FIG. 1 is a schematic diagram of a noise elimination device according to an embodiment of the present application.

[0017] Figure 2 FIG. 2 is a schematic diagram of noise elimination according to an embodiment of the present application.

[0018] Figure 3 FIG. 3 is a schematic diagram of a structure of a plurality of noise elimination devices according to an embodiment of the present application.

[0019] Figure 4 FIG. 4 is another schematic diagram of a structure of a plurality of noise elimination devices according to an embodiment of the present application.

[0020] Figure 5 FIG. 5 is still another schematic diagram of a structure of a plurality of noise elimination devices according to an embodiment of the present application.

[0021] Figure 6 is a structural schematic diagram of a noise elimination device according to an embodiment of the present application.

[0022] Figure 7 is a flow chart of steps of a noise elimination method according to an embodiment of the present application.

[0023] Figure 8 is a structural schematic diagram of an electronic device according to an embodiment of the present application.

[0024] Main component symbol explanation

[0025] Electronic device 1000

[0026] Processor 1001

[0027] Memory 1002

[0028] Computer program 1003

[0029] Noise elimination device 200

[0030] Noise elimination apparatus 210

[0031] Sound receiving apparatus 220

[0032] Sound emitting apparatus 230

[0033] Collecting apparatus 240

[0034] Control apparatus 250 DETAILED DESCRIPTION

[0035] In order to more clearly understand the above objectives, features and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0036] In the following description, a lot of specific details are set forth in order to facilitate a thorough understanding of the present application. The described embodiments are merely some of the embodiments of the present application, but not all the embodiments.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used in the specification of the present application are only for the purpose of describing the specific embodiments of the present application, and are not intended to limit the present application.

[0038] It is further noted that the terms "comprise", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0039] "at least one" means one or more, "multiple" means two or more than two. "And / or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist together, B exists alone, where A, B can be singular or plural. The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0040] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0041] The noise elimination method of the present application can be applied in one or more electronic devices. The electronic device is a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to processor, microprogrammed control unit (MCU), application specific integrated circuit (ASIC), field programmable gate array (FPGA), digital signal processor (DSP), embedded device, etc. The electronic device can be a portable electronic device (such as a mobile phone, a tablet computer), a personal computer, a server, etc.

[0042] In daily life, the sound of cars on the street, the sound of machines on the construction site, and the sound of the electric drill for decoration next door are all noise. If the noise is not eliminated, the noise will seriously affect people's life and work.

[0043] Current methods can reduce the source of noise generation through sign reminders, additional sound insulation equipment, government legislation control, etc., but the effect is limited and additional living costs are required. Therefore, the present application provides a noise elimination device to eliminate noise.

[0044] Embodiment one

[0045] As shown in Figure 1 and Figure 2 , the present application discloses a noise elimination device 200. The noise elimination device 200 includes a noise elimination device 210, which includes a sound receiving device 220, a sound emitting device 230, a collection device 240, and a control device 250. The control device 250 is in communication connection with the sound receiving device 220, the sound emitting device 230, and the collection device 240, respectively.

[0046] Further, the sound receiving device 220 is used to receive the environmental sound at the location of the noise elimination device 210. The sound receiving device 220 is used to receive the sound emitted by the sound source. The collection device 240 is used to collect the facial image of the personnel within a predetermined range at the location of the noise elimination device 210. The control device 250 is used to analyze the facial image and detect whether the personnel is in a negative emotion. If it is detected that the personnel is in a negative emotion, the control device 250 detects whether noise appears in the environmental sound. If it is detected that noise appears in the environmental sound, the control device 250 is used to process the noise to obtain a noise signal and a noise direction, and generate a noise reduction signal with the same amplitude and opposite phase as the noise signal. The sound emitting device 230 is used to play the noise reduction signal to the noise direction. Please also refer to Figure 2 , the noise signal and the noise reduction signal cancel each other out, so that the noise can be eliminated.

[0047] In this embodiment, the sound receiving device 220 can be a microphone, which receives the environmental sound at the location of the noise elimination device 210. The collection device 240 can be a camera, which collects the facial image of the personnel within a predetermined range at the location of the noise elimination device 210. The control device 250 can be a control chip, which is used to detect the facial image and the environmental sound, and generate a noise reduction signal according to the detection result. The sound emitting device 230 can be a loudspeaker, which plays the noise reduction signal to the noise direction. In this way, the noise is eliminated, avoiding the problem that the noise is not eliminated in time and affects people's life or work.

[0048] When the sound collecting device 220 is a microphone, in order to make the ambient sound collected by the microphone more accurate, a microphone that is convenient for collecting ambient sound can be used. For example, an omnidirectional microphone or a gun-shaped directional microphone. The preset range can be set as a circular area with a radius of 5 m, a circular area with a radius of 10 m, or a square area with a length of 5 m and a width of 8 m. The preset range can be set according to actual conditions, and the preset range can also be an irregular area. The size of the preset range or the shape of the area is not limited in the present application, and can be set according to actual conditions.

[0049] The present application does not limit that the sound collecting device 220 must be a microphone, the collecting device 240 must be a camera, the control device 250 must be a control chip, or the sound emitting device 230 must be a speaker. According to actual design needs, the sound collecting device 220 can also be other sound collecting components other than a microphone, the collecting device 240 can also be a camera and other collecting components, the control device 250 can also be a processor and other control components, and the sound emitting device 230 can also be other sound emitting components other than a speaker, which is not limited in the present application.

[0050] In some embodiments, the noise elimination device 200 can include one or more noise elimination devices 210. When the noise elimination device 200 includes one noise elimination device 210, and the noise elimination device 210 includes a sound collecting device 220, a sound emitting device 230, a collecting device 240, and a control device 250. Multiple noise elimination devices 200 can be installed in the same area or multiple noise elimination devices 200 can be installed in different areas.

[0051] When the noise elimination device 200 includes multiple noise elimination devices 210, and multiple noise elimination devices 210 are installed in the same area, the multiple noise elimination devices 210 are connected in communication with each other. That is, the control devices 250 in the multiple noise elimination devices 210 are connected in communication with each other.

[0052] Referring to Figure 3 , the multiple noise elimination devices 210 are connected in a ring shape. Alternatively, referring to Figure 4 , with one noise elimination device 210 as the center, the other noise elimination devices 210 are connected to the noise elimination device 210 at the center. Alternatively, referring to Figure 5 , the multiple noise elimination devices 210 are connected in a network shape.

[0053] The multiple noise cancellation devices 210 in the same area can simultaneously receive the environmental sound in the area. When there is only one sound source of the environmental sound, each noise cancellation device 210 detects the occurrence of noise in the received environmental noise, processes the noise to obtain a noise signal and a noise direction. Since each noise cancellation device 210 is located at a different position, the sound source receiving direction is different, and thus the noise direction generated by each noise cancellation device 210 is also different. Then, each noise cancellation device 210 generates a noise reduction signal with the same amplitude as the noise signal and opposite phase. Finally, the sound emitting device 230 in each noise cancellation device 200 plays the noise reduction signal to the noise direction.

[0054] The multiple noise cancellation devices 210 in the same area can simultaneously receive the environmental sound in the area. When there is only one sound source of the environmental sound, each noise cancellation device 210 detects the occurrence of noise in the received environmental noise, processes the noise to obtain a noise signal and a noise direction. Since each noise cancellation device 210 is located at a different position, the sound source receiving direction is different, and thus the noise direction generated by each noise cancellation device 210 is also different. Then, each noise cancellation device 210 generates a noise reduction signal with the same amplitude as the noise signal and opposite phase. Finally, the sound emitting device 230 in each noise cancellation device 200 plays the noise reduction signal to the noise direction.

[0055] Alternatively, multiple noise cancellation devices 200 are installed in different areas respectively. Each noise cancellation device 200 is used to cancel the noise in the area where it is located.

[0056] In some embodiments, the noise cancellation device 200 can be a charging device, which has not only a charging function but also a noise cancellation function. With the continuous development of new energy technology field, charging devices are widely distributed in various areas. For example, charging devices are installed in shopping malls, roadside, schools, communities, etc. Therefore, directly adding a noise cancellation function to the charging device can cancel the noise that often occurs in daily life without increasing additional equipment and without considering the installation location and area of the additional equipment. On the one hand, it avoids the impact of noise on people's life or work. On the other hand, it also reduces the cost of noise cancellation.

[0057] It should be noted that the noise cancellation device 200 as a charging device is only an exemplary representation, and the noise cancellation device 200 does not have to be a charging device. According to the actual noise cancellation demand, the noise cancellation device 200 can also be a component of another device. For example, the noise cancellation device 200 can be installed in an air conditioner to cancel the noise generated by the air conditioner when it is working or the noise at the location of the air conditioner. Alternatively, the noise cancellation device 200 can be installed in a cooling device in a workshop or directly installed in a vehicle to cancel the noise in the workshop and avoid the problem that the noise in the workshop affects the hearing of workers for a long time.

[0058] Embodiment Two

[0059] The present application discloses a noise cancellation device 200. As shown in Figure 6As shown, the noise elimination device 200 comprises a plurality of noise elimination apparatuses 210, each of which comprises a plurality of sound collecting apparatuses 220, a plurality of sound playing apparatuses 230, a plurality of face image collecting apparatuses 240 and a control apparatus 250. One sound collecting apparatus 220 is matched with one face image collecting apparatus 240 and one sound playing apparatus 230. The control apparatus 250 is communicatively connected with the plurality of sound collecting apparatuses 220, the plurality of sound playing apparatuses 230 and the plurality of face image collecting apparatuses 240 respectively. In this embodiment, the number of the sound collecting apparatuses 220 is the same as the number of the sound playing apparatuses 230 and the number of the face image collecting apparatuses 240.

[0060] Each of the sound collecting apparatuses 220 is configured to collect ambient sound at a location where the sound collecting apparatus 220 is located. Each of the face image collecting apparatuses 240 is configured to collect a face image of a person within a preset range at a location where the face image collecting apparatus 240 is located. Each of the sound playing apparatuses 230 is configured to play a noise reduction sound signal to a noise source.

[0061] Specifically, each of the sound collecting apparatus 220, the sound playing apparatus 230 and the face image collecting apparatus 240 is referred to as a sound collecting, sound playing and face image collecting apparatus. The sound collecting, sound playing and face image collecting apparatus can be arranged at different locations according to actual needs.

[0062] In some embodiments, when the sound source is one, the plurality of sound collecting, sound playing and face image collecting apparatuses can collect information of the sound source, and the plurality of sound collecting apparatuses 220 in the plurality of sound collecting, sound playing and face image collecting apparatuses can receive ambient sound emitted by the sound source. Since the plurality of sound collecting apparatuses 220 are located at different positions, the positions and orientations between each of the sound collecting apparatuses 220 and the sound source are also different.

[0063] Further, the control apparatus 250 processes the ambient sound received by the plurality of sound collecting apparatuses 220 to obtain sound collecting time when the ambient sound reaches each of the sound collecting apparatuses 220. The control apparatus 250 calculates the plurality of sound collecting times to obtain the distance between each of the sound playing apparatuses 230 and the sound source and the noise orientation. Finally, based on the distance between each of the sound playing apparatuses 230 and the sound source and the noise orientation, the control apparatus 250 controls the sound playing apparatus 230 to play the noise reduction sound signal.

[0064] When it is inconvenient to install a plurality of noise elimination apparatuses 210 in a certain area, a plurality of sound collecting, sound playing and face image collecting apparatuses can be installed at different positions in the area. The sound collecting apparatuses 220 located at different positions receive ambient sound, and after the control apparatus 250 analyzes the ambient sound and the face images collected by the plurality of face image collecting apparatuses 240 located at different positions, the plurality of sound playing apparatuses 230 play noise reduction sound signals to one or more noise sources. Thus, the efficiency of noise elimination is improved, and the installation cost of the noise elimination apparatus 210 is reduced.

[0065] Embodiment Three

[0066] Figure 7is a step flow chart of an embodiment of the noise elimination method of the present application. The order of the steps in the flow chart can be changed according to different needs, and some steps can be omitted. The noise elimination method is applied to the noise elimination device 200.

[0067] Referring to Figure 7 As shown in the figure, the noise elimination method can include the following steps.

[0068] S100, obtaining environmental data of a location where the noise elimination device is located, wherein the environmental data at least includes environmental sound and a face image of a person within a preset range at the location.

[0069] In some embodiments, the noise elimination device 200 includes a noise elimination apparatus 210, which includes a sound receiving apparatus 220, a sound emitting apparatus 230, a collecting apparatus 240, and a control apparatus 250. The control apparatus 250 is communicatively connected with the sound receiving apparatus 220, the sound emitting apparatus 230, and the collecting apparatus 240, respectively.

[0070] In this embodiment, the sound receiving apparatus 220 receives environmental sound at the location, and the collecting apparatus 240 collects a face image of a person within a preset range at the current location. The setting of the preset range is the same as that in the foregoing embodiments, which will not be described herein again.

[0071] S200, performing image analysis on the face image to detect whether the person is in a negative emotion.

[0072] In some embodiments, the control apparatus 250 detecting whether the person in the face image is in a negative emotion includes the following steps:

[0073] The control apparatus 250 extracts facial feature information in the face image and analyzes a facial expression in the facial feature information, wherein the facial expression includes a negative emotion expression and a positive emotion expression. The control apparatus 250 detects whether the facial expression is a negative emotion expression.

[0074] In this embodiment, the negative emotion expression is a facial expression such as terror, disgust, and pain expressed by people. The positive emotion expression is a facial expression such as happiness, joy, and calmness expressed by people. The way of recognizing the facial expression to determine whether the facial expression is a negative emotion expression or a positive emotion expression is the prior art, which will not be described herein again.

[0075] S300, if it is detected that the facial expression of the person is a negative emotion expression, detecting whether noise appears in the environmental sound.

[0076] S400, if it is detected that noise appears in the environmental sound, processing the noise to obtain a noise signal and a noise direction.

[0077] In some embodiments, a maximum decibel value in the ambient sound is obtained, and it is detected whether the maximum decibel value is greater than a preset decibel threshold. If it is detected that the maximum decibel value is greater than the preset decibel threshold, the noise is processed to obtain a noise signal and a noise direction.

[0078] In other embodiments, a maximum frequency value in the ambient sound is obtained, and it is detected whether the maximum frequency value is greater than a preset frequency threshold. If it is detected that the maximum frequency value is greater than the preset frequency threshold, the noise is processed to obtain a noise signal and a noise direction.

[0079] The specific values of the preset decibel threshold and the preset frequency threshold can be set according to the actual need of eliminating noise, and the application does not limit the values of the preset decibel threshold and the preset frequency threshold.

[0080] S500, a noise reduction signal with the same amplitude and opposite phase as the noise signal is generated.

[0081] S600, the noise reduction signal is played to the noise direction.

[0082] The noise elimination method of the application first detects whether the facial expression in the facial image is a negative emotional expression. When the facial expression is a negative emotional expression, the maximum decibel value or the maximum frequency value is used to determine whether noise appears in the ambient sound. When noise appears in the ambient sound, a noise reduction signal with the same amplitude and opposite phase as the noise signal is played to the noise direction, so as to cancel the noise. This method can accurately determine whether noise appears in the ambient sound by simultaneously detecting the facial expression in the facial image and the ambient sound. When noise appears in the ambient sound, the noise is processed in time to avoid the problem of inaccurate detection of whether noise appears in the ambient sound and poor noise elimination effect.

[0083] In some embodiments, the application also discloses an electronic device 1000, as shown in the figure. Figure 8 The electronic device 1000 includes a memory 1002, a processor 1001, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. The processor 1001 executes the computer program 1003 to implement the steps in the above-mentioned noise elimination method embodiments.

[0084] For example, the computer program 1003 can also be divided into one or more modules / units, which are stored in the memory 1002 and executed by the processor 1001. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program 1003 in the electronic device 1000.

[0085] Those skilled in the art can understand that the schematic diagram is only an example of the electronic device 1000, and does not constitute a limitation on the electronic device 1000, and can include more or fewer components than the diagram, or combine certain components, or different components, for example, the electronic device 1000 can also include an input / output device, a network access device, a bus, etc.

[0086] The processor 1001 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, a microcontroller or the processor 1001 can also be any conventional processor.

[0087] The memory 1002 can be used to store the computer program 1003 and / or modules / units, and the processor 1001 realizes various functions of the electronic device 1000 by running or executing the computer program and / or modules / units stored in the memory 1002, and calling the data stored in the memory 1002. The memory 1002 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 1000, etc. In addition, the memory 1002 can include a high-speed random access memory, and can also include a non-volatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device.

[0088] The modules / units integrated in the electronic device 1000, if implemented in the form of software function units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiments can also be implemented by a computer program instructing related hardware, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms. The computer-readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the computer-readable medium can include appropriate additions or subtractions according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0089] In several embodiments provided in the present application, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the above-described electronic device embodiments are only illustrative, for example, the division of the units is only a logical function division, and another division mode can be used in actual implementation.

[0090] In addition, each functional unit in each embodiment of the present application can be integrated in the same processing unit, or each unit can be physically present alone, or two or more units can be integrated in the same unit. The integrated unit can be realized in the form of hardware or hardware plus software function module.

[0091] It is obvious for those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the embodiments should be regarded as exemplary and non-limiting in any respect. In addition, it is obvious that the word "comprise" does not exclude other units or steps, and the singular does not exclude the plural. The plurality of units or electronic devices stated in the electronic device claims can also be implemented by the same unit or electronic device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

[0092] Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the above examples, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A noise canceling method applied to a noise canceling device, characterized by, The method comprises: obtaining environmental data of a position where the noise elimination device is located, wherein the environmental data at least includes environmental sound and a face image of a person within a preset range at the position; performing image analysis on the face image to detect whether the person is in a negative emotion; if it is detected that the person is in the negative emotion, detecting whether noise appears in the environmental sound; if it is detected that the noise appears in the environmental sound, processing the noise to obtain a noise signal and a noise direction; generating a noise reduction signal with the same amplitude and opposite phase of the noise signal; playing the noise reduction signal to the noise direction.

2. The noise canceling method of claim 1, wherein, The image analysis on the face image to detect whether the person is in a negative emotion comprises: extracting facial feature information in the face image; analyzing a facial expression in the facial feature information, wherein the facial expression includes a negative emotion expression; detecting whether the facial expression of the person is the negative emotion expression.

3. The noise canceling method of claim 1, wherein, The processing of the noise to obtain a noise signal and a noise direction if it is detected that the noise appears in the environmental sound comprises: obtaining a maximum decibel value in the environmental sound; detecting whether the maximum decibel value is greater than a preset decibel threshold; if it is detected that the maximum decibel value is greater than the preset decibel threshold, processing the noise to obtain a noise signal and a noise direction.

4. The noise canceling method of claim 1, wherein, The processing of the noise if it is detected that the noise appears in the environmental sound comprises: obtaining a maximum frequency in the environmental sound; detecting whether the maximum frequency is greater than a preset frequency threshold; if it is detected that the maximum frequency is greater than the preset frequency threshold, processing the noise to obtain a noise signal and a noise direction.

5. A noise cancelling device, characterized by The noise elimination device comprises a sound receiving device, a sound playing device, a collecting device and a control device, the control device is in communication connection with the sound receiving device, the sound playing device and the collecting device, the sound receiving device is used to receive environmental sound at a position where the noise elimination device is located, and the collecting device is used to collect a face image of a person within a preset range at the position; the control device is used to perform image analysis on the face image to detect whether the person is in a negative emotion, and if it is detected that the person is in the negative emotion, the control device detects whether noise appears in the environmental sound; if it is detected that the noise appears in the environmental sound, the control device is used to process the noise to obtain a noise signal and a noise direction, and generate a noise reduction signal with the same amplitude and opposite phase of the noise signal; and the sound playing device is used to play the noise reduction signal to the noise direction.

6. The noise cancelling device of claim 5, wherein, The number of the noise elimination devices is multiple, and the multiple noise elimination devices are in communication connection.

7. The noise cancellation device of claim 5, wherein, The number of the noise elimination device is one, the number of the sound receiving device, the number of the collecting device and the number of the sound playing device are all multiple, one sound receiving device matches one collecting device and one sound playing device, the number of the control device is one, and the control device is in communication connection with the multiple sound receiving devices, the multiple collecting devices and the multiple sound playing devices. Each of the sound collecting devices is configured to collect ambient sound at a location where the sound collecting device is located, each of the image collecting devices is configured to collect a face image of a person within a preset range at a location where the image collecting device is located, and the sound playing device is configured to play the noise reduction sound to the noise direction.

8. The noise cancelling device of claim 7, wherein, The control device is further configured to: analyze the ambient sound received by each of the sound collecting devices to obtain a sound collecting time when the ambient sound reaches each of the sound collecting devices; calculate a distance between each of the sound playing devices and the sound source and the noise direction according to the sound collecting times. 9.An electronic device comprising a processor and a memory, wherein The memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory to cause the electronic device to perform the noise elimination method according to any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and when the computer instructions are executed on the electronic device, the electronic device is caused to perform the noise elimination method according to any one of claims 1 to 4.