Camera motor control circuit, electronic equipment, noise filtering method and device

By using the closed-loop control circuit of the camera motor and collecting current values, the filtering frequency is determined, which solves the problem of background noise in audio data caused by the noise of the camera motor movement and improves the recording effect.

CN121585909APending Publication Date: 2026-02-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511807548.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-03
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

The noise generated by the camera motor during operation is picked up by the microphone, resulting in background noise in the video and audio data, which affects the recording quality.

Method used

A closed-loop control circuit is formed by a camera motor, a drive module, and a detection module. The motor position is detected in real time, and the current value is obtained through the acquisition module to determine the filtering frequency and filter the audio data.

Benefits of technology

It effectively eliminates background noise in video and audio data, improving recording quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121585909A_ABST
    Figure CN121585909A_ABST
Patent Text Reader

Abstract

The invention discloses a camera motor control circuit, electronic equipment, and a noise filtering method and device. The camera motor control circuit comprises a camera motor; the driving module is connected with the camera motor and is used for driving the camera motor to move; the detection module is connected between the driving module and the camera motor, and is used for detecting the position information of the camera motor and sending the position information to the driving module; the acquisition module is connected between the driving module and the camera motor, or the acquisition module is connected between the camera motor and the detection module, and the acquisition module is used for acquiring a current value of the camera motor; wherein the current value is used for determining the filtering frequency for filtering the audio data in the shot video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electrical technology, specifically relating to a camera motor control circuit, electronic equipment, noise filtering method and device. Background Technology

[0002] Currently, camera modules in electronic devices typically incorporate camera motors for image stabilization and focusing. Specifically, the camera motor's control circuit outputs a control signal of a certain frequency to the motor, causing it to move at the corresponding frequency to achieve image stabilization and focusing. However, the camera motor may generate noise during its movement. If this noise is picked up by the electronic device's microphone during video recording, it will introduce background noise into the audio data of the captured video, affecting the recording quality. Summary of the Invention

[0003] The purpose of this application is to provide a camera motor control circuit, electronic device, noise filtering method and apparatus that can solve the problem of background noise in the audio data of the captured video caused by the noise generated by the camera motor during its movement.

[0004] In a first aspect, embodiments of this application provide a camera motor control circuit, including:

[0005] Camera motor;

[0006] A drive module, which is connected to the camera motor, is used to drive the camera motor to move;

[0007] A detection module is connected between the drive module and the camera motor, and is used to detect the position information of the camera motor and send the position information to the drive module;

[0008] A data acquisition module is connected between the drive module and the camera motor, or between the camera motor and the detection module, for acquiring the current value of the camera motor; wherein the current value is used to determine the filtering frequency for filtering the audio data in the captured video.

[0009] Secondly, embodiments of this application provide an electronic device, including the camera motor control circuit described above.

[0010] Thirdly, embodiments of this application provide a noise filtering method, including:

[0011] Acquire the current value of the camera motor during video recording;

[0012] Determine the filtering frequency based on the current value;

[0013] The audio data in the captured video is filtered according to the filtering frequency.

[0014] Fourthly, embodiments of this application provide a noise filtering device, comprising:

[0015] The acquisition module is used to acquire the current value of the camera motor during video recording;

[0016] The determining module is used to determine the filtering frequency based on the current value;

[0017] The filtering module is used to filter the audio data in the captured video according to the filtering frequency.

[0018] Fifthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the noise filtering method as described in the third aspect.

[0019] In a sixth aspect, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the noise filtering method as described in the third aspect.

[0020] In a seventh aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the noise filtering method as described in the third aspect.

[0021] Eighthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the noise filtering method as described in the third aspect.

[0022] In this embodiment, a closed-loop control circuit for the camera motor position can be constructed using a camera motor, a drive module, and a detection module, enabling precise control of the camera motor position. Furthermore, by placing the acquisition module between the drive module and the camera motor, or between the camera motor and the detection module, the acquisition module collects the current value of the camera motor to determine the filtering frequency for filtering the audio data in the captured video. In other words, the acquisition module provides the basis for determining the filtering frequency for the audio data in the captured video, thereby solving the problem of background noise in the audio data of the captured video caused by noise generated during the movement of the camera motor. Attached Figure Description

[0023] Figure 1 This is one of the schematic diagrams of the camera motor control circuit in an embodiment of this application;

[0024] Figure 2 This is a second schematic diagram of the camera motor control circuit according to an embodiment of this application;

[0025] Figure 3 This is a schematic diagram of the drive control unit according to an embodiment of this application;

[0026] Figure 4 This is one of the circuit diagrams of the acquisition module in the embodiments of this application;

[0027] Figure 5 This is the second circuit diagram of the acquisition module in this application embodiment;

[0028] Figure 6 This is a flowchart of a noise filtering method according to an embodiment of this application;

[0029] Figure 7 This is a block diagram of the noise filtering process in an embodiment of this application;

[0030] Figure 8 This is a block diagram of a noise filtering device according to an embodiment of this application;

[0031] Figure 9 This is a block diagram of an electronic device according to an embodiment of this application;

[0032] Figure 10 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0033] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0034] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0035] like Figure 1 The present application provides a camera motor control circuit, including:

[0036] Camera motor 1;

[0037] A drive module 2 is connected to the camera motor 1 and is used to drive the camera motor 1 to move.

[0038] The detection module 3 is connected between the drive module 2 and the camera motor 1, and is used to detect the position information of the camera motor 1 and send the position information to the drive module 2.

[0039] Acquisition module 4 is connected between drive module 2 and camera motor 1, or between camera motor 1 and detection module 3, for acquiring the current value of camera motor 1; wherein the current value is used to determine the filtering frequency for filtering audio data in the captured video.

[0040] Optionally, the position information may be the actual position of the camera motor 1, or it may be the error value between the actual position of the camera motor 1 and the target position (i.e., the target that the drive module drives the camera motor 1 to move). The detection module 3 transmits the position information to the drive module 2, so that the drive module 2 can further adjust the position of the camera motor 1 based on the position information. That is, the detection module 3 can provide real-time position feedback of the camera motor 1 to achieve closed-loop control of the position of the camera motor 1.

[0041] In this embodiment, a closed-loop control circuit for the position of the camera motor 1 can be constructed using the camera motor 1, the drive module 2, and the detection module 3, enabling precise control of the camera motor 1's position. Furthermore, by placing the acquisition module 4 between the drive module 2 and the camera motor 1 (or at the high end of the camera motor 1), or between the camera motor 1 and the detection module 3 (or at the low end of the camera motor 1), the acquisition module 4 collects the current value of the camera motor 1. This data is used to determine the filtering frequency for filtering the audio data in the captured video. In other words, the acquisition module 4 provides the basis for determining the filtering frequency for the audio data in the captured video, thereby solving the problem of background noise in the audio data of the captured video caused by noise generated during the movement of the camera motor.

[0042] For example, the detection module 3 may use a Hall sensor, or it may use other position detection devices, such as optical position sensors, inductive or capacitive position sensors, mechanical position sensors, etc. The embodiments of this application are not limited thereto.

[0043] Optionally, such as Figure 2 As shown, the drive module 2 includes a proportional-integral-derivative (PID) controller 21 and a drive control unit 22. The PID controller 21 is connected to the camera motor 1 through the drive control unit 22.

[0044] In this embodiment, the deviation between the target position and the actual position of the camera motor 1 is used as the core control signal for the drive module 2 to drive the camera motor 1 to move, thereby driving the subsequent adjustment links and realizing closed-loop control of the position of the camera motor 1.

[0045] The drive module 2, also known as the motor drive chip, is used to execute PID control commands. The PID controller 21 in the drive module 2 includes proportional, integral, and derivative control stages, used to calculate the current or voltage required to compensate for the deviation between the target position and the actual position. The drive control unit 22 drives the camera motor 1 based on the current or voltage calculated by the PID controller 21. The camera motor 1 is the PID driven object. The Hall sensor, also known as a Hall effect sensor, is used to detect the position of the camera motor 1 and provide feedback on the PID control accuracy. When the system issues a PID control command, the drive module 2 converts it into a current or voltage of the corresponding frequency according to the PID control frequency response, thereby driving the displacement of the camera motor 1. The Hall sensor detects the position of the camera motor 1, providing feedback on the displacement deviation, which is then fed back to the drive module 2 to adjust the current or voltage required to compensate for the deviation between the target position and the actual position until the required position (i.e., the target position) of the PID is met.

[0046] Specifically, after the front-end attitude calculation provides the corresponding compensation target position, the PID controller 21 can calculate the corresponding compensation current or voltage, and use this current or voltage to control the drive control unit 22 to control the camera motor 1. Furthermore, the detection module 3 provides real-time position feedback for the camera motor 1, enabling the drive module 2 to further control the position adjustment of the camera motor 1.

[0047] Optionally, the drive control unit 22 may employ an H-bridge circuit, such as... Figure 3As shown. The H-bridge circuit consists of four power switches Q1, Q2, Q3, Q4 and four clamping diodes D1, D2, D3, D4, which realize the direction control and speed regulation of the load (i.e., camera motor 1).

[0048] Specifically, the positive terminal Vbat of the power supply is connected to the collectors of power switches Q1 and Q3, while the emitters of power switches Q2 and Q4 are grounded. The emitters of power switches Q1 and Q3 are connected to the two ends of the load (i.e., camera motor 1) through clamping diodes D1 and D3, respectively, and the collectors of power switches Q2 and Q4 are connected to the two ends of the load (i.e., camera motor 1) through clamping diodes D2 and D4, respectively. In this way, the H-bridge circuit changes the voltage polarity across the load (i.e., camera motor 1) by controlling the combination of turning power switches Q1, Q2, Q3, and Q4 on and off, thereby achieving functions such as direction control and speed adjustment.

[0049] Optionally, the acquisition module 4 includes:

[0050] Sensing element 41, the sensing element 41 being connected between the drive module 2 and the camera motor 1, such as... Figure 4 As shown, or the sensing element 41 is connected between the camera motor 1 and the detection module 3, such as... Figure 5 As shown;

[0051] The acquisition unit 42 has a first input terminal connected to the first terminal of the sensing element 41 and a second input terminal connected to the second terminal of the sensing element 41, and is used to acquire the electrical parameters of the sensing element 41; wherein the electrical parameters are used to determine the current value of the camera motor 1.

[0052] In this embodiment, a sensing element 41 is provided on the circuit side of the camera motor 1, that is, between the drive module 2 and the camera motor 1, or between the camera motor 1 and the detection module 3. The current value of the camera motor 1 is determined by detecting the electrical parameters of the sensing element 41. For example, since the sensing element 41 is connected in series with the camera motor 1, the current value of the camera motor 1 can be obtained by detecting the current value of the sensing element 41 (i.e., the electrical parameter is the current value); or, the current value of the camera motor 1 can be measured by detecting the voltage drop across the sensing element 41, that is, the voltage value output by the acquisition unit 42 can be the voltage drop across the sensing element 41 (i.e., the voltage value between the first and second terminals of the sensing element 41), and the current value of the sensing element 41 can be determined based on the voltage value, which is the current value of the camera motor 1, etc. This embodiment is not limited to these methods.

[0053] Optionally, taking the measurement of the current value of the camera motor 1 by detecting the voltage drop across the sensing element 41 as an example, the sensing element 41 can be a current sensing resistor, and the resistance value can be selected between several hundred mΩ and several Ω. This embodiment of the application does not make a specific limitation. In this way, when the voltage drop (i.e., voltage value) across the sensing element 41 is measured, the current value of the camera motor 1 can be obtained based on Ohm's law.

[0054] Optionally, see further. Figure 4 and Figure 5 As shown, the acquisition unit 42 includes: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, and an operational amplifier OP;

[0055] The first end of the first resistor R1 is connected to the first input terminal of the operational amplifier OP, and the second end of the first resistor R1 is grounded.

[0056] The first end of the second resistor R2 is connected to the first end of the sensing element 41, and the second end of the second resistor R2 is connected to the first input end of the operational amplifier OP.

[0057] The first end of the third resistor R3 is connected to the second end of the sensing element 41, and the second end of the third resistor R3 is connected to the second input terminal of the operational amplifier OP.

[0058] The first end of the fourth resistor R4 is connected to the second input terminal of the operational amplifier OP, and the second end of the fourth resistor R4 is connected to the output terminal of the operational amplifier OP.

[0059] The operational amplifier OP outputs the electrical parameter values ​​of the sensing element 41.

[0060] Optionally, the operational amplifier OP further includes a power supply terminal and a ground terminal, wherein the power supply terminal is connected to the power supply VCC, and the ground terminal is grounded.

[0061] Optionally, taking the output of the operational amplifier OP as an example where the electrical parameter value of the sensing element 41 is a voltage value, the resistance values ​​of the first resistor R1, the second resistor R2, the third resistor R3, and the fourth resistor R4 are equal, i.e., R1=R2=R3=R4.

[0062] Specifically, a sensing element 41 (e.g., a current sensing resistor) is added to the output or input terminal of the camera motor 1. The voltages V1 and V2 across the sensing element 41 are respectively input to the two input terminals of the operational amplifier OP. Based on the virtual short and virtual open characteristics of the operational amplifier OP (where virtual short means that under negative feedback conditions, the voltages at the non-inverting and inverting terminals of the operational amplifier OP are approximately equal, approximating a "short circuit," but no current actually flows; virtual open means that the non-inverting and inverting terminals of the operational amplifier OP draw almost no current, approximating an "open circuit"), the output voltage Vout can be derived according to the node current law as follows:

[0063]

[0064] Where R1=R2=R3=R4, the above formula can be simplified to:

[0065]

[0066] That is, Vout is the voltage Vrs across the sensing element 41, which is calculated according to the formulas I=U / R and Vrs=Irs. Rrs, we know that Vout = Irs Rrs; where Irs is the current value of sensing element 41 and Rrs is the resistance value of sensing element 41.

[0067] Since the camera motor 1 is connected in series with the sensing element 41, the calculated Irs is the current value of the camera motor 1 at this moment. Based on this current value, the filtering frequency for filtering the audio data in the captured video can be determined. In other words, the acquisition module 4 provides the basis for determining the filtering frequency for filtering the audio data in the captured video, thereby solving the problem of background noise in the audio data of the captured video caused by the noise generated by the camera motor during its movement.

[0068] This application also provides an electronic device, including the camera motor control circuit described above.

[0069] The electronic devices in this application embodiment can implement the various embodiments of the above-described camera motor control circuit and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0070] The noise filtering method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0071] like Figure 6 As shown in the figure, this application provides a noise filtering method, including the following steps:

[0072] Step 61: Obtain the current value of the camera motor during video recording;

[0073] Step 62: Determine the filtering frequency based on the current value;

[0074] Step 63: Filter the audio data in the captured video according to the filtering frequency.

[0075] Optionally, the noise filtering method can employ the camera motor control circuit described above to filter the audio data in the captured video, thereby eliminating the background noise in the audio data of the captured video caused by the noise generated during the movement of the camera motor.

[0076] For example, during video recording, the camera motor control circuit in the above embodiment can acquire the current value of the camera motor. Specifically, during video recording, the system can send PID control commands to the drive module in the camera motor control circuit, which then drives the displacement movement of the camera motor. At this time, the acquisition module in the camera motor control circuit can synchronously acquire the current value of the camera motor.

[0077] Optionally, the filtering frequency can be determined based on the frequency of change of the current value of the camera motor, thus ensuring that the background noise generated by the movement of the camera motor during video recording can be eliminated.

[0078] For example, in this embodiment of the application, PID commands can be used to control the movement of the camera motor. The PID commands mainly include the stroke and angle that the camera motor needs to move. They are mainly controlled by the registers of the drive module to output the corresponding voltage and current. The frequency of the change in the current value of the camera motor refers to the number of times these commands change per unit time.

[0079] In this embodiment, by acquiring the current value of the camera motor during video recording, determining the filtering frequency based on the current value, and filtering the audio data in the recorded video according to the filtering frequency, the background noise in the audio data of the recorded video is eliminated, thus solving the problem of background noise in the audio data of the recorded video caused by the noise generated by the camera motor during its movement.

[0080] Optionally, acquiring the current value of the camera motor during video recording includes:

[0081] During video recording, the electrical parameters output by the acquisition module in the camera motor control circuit are obtained;

[0082] The current value of the camera motor is determined based on the electrical parameters.

[0083] For example, during video recording, electrical parameters output by the acquisition module in the control circuit of the camera motor can be read. These electrical parameters could be the current or voltage value of a sensing element in the acquisition module. Based on the above embodiment, the sensing element is connected in series with the camera motor; that is, the current value of the camera motor can be determined based on the electrical parameters output by the acquisition module. For example, if the acquisition module outputs a current value, that current value is the current value of the camera motor; as another example, if the acquisition module outputs a voltage value, the current value of the camera motor can be determined based on that voltage value using Ohm's law.

[0084] Optionally, determining the filter frequency based on the current value includes:

[0085] A first spectrum is determined based on the current values ​​at multiple sampling points; wherein the current values ​​at the multiple sampling points are obtained by sampling at a first sampling frequency.

[0086] Based on the first spectrum, determine the maximum frequency of the current value change;

[0087] If a preset condition is met between the maximum frequency and the first sampling frequency, the maximum frequency is determined as the filtering frequency.

[0088] Optionally, the preset condition is: the first sampling frequency > 2. Maximum frequency.

[0089] For example, sampling 2 to the power of 2 (i.e., the current value of the camera motor) is performed continuously at the first sampling frequency f. The number of sampling points can be 256, 512, 1024, etc. Considering that the more sampling points there are, the more refined the calculation results will be, 1024 sampling points can be selected as one implementation method. Of course, the embodiments of this application are not limited to this.

[0090] Furthermore, after continuously sampling 1024 sampling points at the first sampling frequency f, a discrete Fourier transform is performed on these sampling points, that is, these sampling points are converted from the time domain to the first spectrum in the frequency domain. In this way, the maximum frequency F1 can be determined from the first spectrum in the frequency domain, and the maximum frequency F1 determines the first sampling frequency f.

[0091] It should be noted that the number of sampling points here refers to the number of samplings during the Fourier transform process.

[0092] like Figure 7As shown, the acquisition module in the control circuit of the camera motor outputs a voltage value to the CPU5. The CPU5 determines the current value of the camera motor based on this voltage value and the resistance value of the sensing element in the acquisition module. In this way, the acquisition module in the control circuit of the camera motor can sample (i.e., sample electrical signals) based on the number of sampling points in the Discrete Fourier Transform. The CPU further calculates the current value of the camera motor based on the current value calculated from multiple samples and performs a Discrete Fourier Transform, that is, converting these sampling points from the time domain to the first spectrum in the frequency domain. Thus, the maximum frequency F1 can be determined from the first spectrum in the frequency domain.

[0093] According to the sampling theorem, the following preset condition must be met: the first sampling frequency > 2. Only the maximum frequency can be used to recover the signal's spectrum. Therefore, after obtaining the maximum frequency F1, it is necessary to determine whether the first sampling frequency f needs to be adjusted based on the aforementioned preset conditions. If the obtained maximum frequency F1 satisfies f > 2... F1, meaning the first sampling frequency > 2 If the maximum frequency is found, then it is determined that the first sampling frequency f does not need to be adjusted, that is, the maximum frequency F1 is determined to be the filtering frequency F.

[0094] See also Figure 7 As shown, after obtaining the filter frequency F from these sampling points based on the above steps, the CPU 5 outputs the filter frequency F to the codec 6. By controlling the codec 6 to filter the background noise in the audio data of the captured video, the noise generated by the camera motor 5 during the movement can be reduced when the audio data is played by the power amplifier (i.e., the speaker 7).

[0095] Optionally, the noise filtering method further includes:

[0096] If the preset condition is not met between the maximum frequency and the first sampling frequency, the first sampling frequency is adjusted until the preset condition is met between the maximum frequency and the first sampling frequency.

[0097] In this embodiment, the frequency of current change during PID adjustment (i.e., the noise frequency generated during image stabilization) is collected and fed back to the audio processing system of the whole machine. The noise frequency is filtered at specific points (i.e., the noise of specific frequencies of the image stabilization system is filtered by the audio processing IC, such as the codec), so that the camera will not record the current noise generated when the camera motor makes PID control changes during normal video shooting, thereby reducing the current noise in the camera motor control, improving the quietness of the control mechanism, and improving the user experience.

[0098] In current electronic devices, the camera motor, as a moving part, has a greater weight and greater friction during movement, which generally leads to control noise problems due to the significant increase in friction. By applying the above-mentioned solution of the embodiments of this application, a balance can be achieved between ensuring the performance of the camera motor and controlling noise.

[0099] The noise filtering method provided in this application can be executed by a noise filtering device. This application uses a noise filtering device to perform the noise filtering method as an example to illustrate the noise filtering device provided in this application.

[0100] like Figure 8 As shown, this application embodiment provides a noise filtering device 800, including:

[0101] The acquisition module 810 is used to acquire the current value of the camera motor during video recording;

[0102] The determining module 820 is used to determine the filtering frequency based on the current value;

[0103] The filtering module 830 is used to filter the audio data in the captured video according to the filtering frequency.

[0104] Optionally, the determining module 820 includes:

[0105] The second determining unit is used to determine a first spectrum based on the current values ​​of multiple sampling points; wherein the current values ​​of the multiple sampling points are obtained by sampling at a first sampling frequency;

[0106] The second determining unit is configured to determine the maximum frequency of the current value change based on the first spectrum.

[0107] The third determining unit is used to determine the maximum frequency as the filtering frequency when a preset condition is met between the maximum frequency and the first sampling frequency.

[0108] Optionally, the determining module 820 further includes:

[0109] An adjustment unit is configured to adjust the first sampling frequency until the preset conditions are met when the maximum frequency and the first sampling frequency do not satisfy the preset conditions.

[0110] The device in this application embodiment acquires the current value of the camera motor during video recording, determines the filtering frequency based on the current value, and filters the audio data in the recorded video according to the filtering frequency, thereby eliminating the background noise in the audio data of the recorded video. This solves the problem that background noise is generated in the audio data of the recorded video due to the noise generated by the camera motor during its movement.

[0111] The noise filtering device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0112] The noise filtering device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0113] The noise filtering device provided in this application embodiment can achieve... Figures 1 to 7 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0114] Optionally, such as Figure 9 As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above-described noise filtering method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0115] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0116] Figure 10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0117] The electronic device 1000 includes, but is not limited to, the following components: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.

[0118] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0119] The processor 1010 is used for:

[0120] Acquire the current value of the camera motor during video recording;

[0121] Determine the filtering frequency based on the current value;

[0122] The audio data in the captured video is filtered according to the filtering frequency.

[0123] Optionally, the processor 1010 is further configured to:

[0124] A first spectrum is determined based on the current values ​​at multiple sampling points; wherein the current values ​​at the multiple sampling points are obtained by sampling at a first sampling frequency.

[0125] Based on the first spectrum, determine the maximum frequency of the current value change;

[0126] If a preset condition is met between the maximum frequency and the first sampling frequency, the maximum frequency is determined as the filtering frequency.

[0127] Optionally, the processor 1010 is further configured to:

[0128] If the preset condition is not met between the maximum frequency and the first sampling frequency, the first sampling frequency is adjusted until the preset condition is met between the maximum frequency and the first sampling frequency.

[0129] The electronic device in this embodiment acquires the current value of the camera motor during video recording, determines the filtering frequency based on the current value, and filters the audio data in the recorded video according to the filtering frequency, thereby eliminating the background noise in the audio data of the recorded video. This solves the problem that background noise is generated in the audio data of the recorded video due to the noise generated by the camera motor during its movement.

[0130] In this embodiment, when the acquisition module is connected between the drive module and the camera motor, i.e., the camera motor current is measured at the low end of the camera motor, one advantage is that the common-mode voltage, i.e., the average voltage at the measurement input terminal, is close to zero. This makes it easier to design application circuits and select suitable devices for this measurement. Furthermore, the method of implementing the camera motor current sensing circuit at the low end of the camera motor can resist high-voltage spike interference and monitor the current in high-voltage systems. Therefore, this method is preferred for current measurement when dealing with very high voltages or in applications where the power supply voltage may be prone to spikes or surges.

[0131] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0132] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0133] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.

[0134] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described noise filtering method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0135] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0136] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described noise filtering method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0137] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0138] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the noise filtering method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0139] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0140] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0141] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A camera motor control circuit, characterized in that, include: Camera motor; A drive module, which is connected to the camera motor, is used to drive the camera motor to move; A detection module is connected between the drive module and the camera motor, and is used to detect the position information of the camera motor and send the position information to the drive module; A data acquisition module is connected between the drive module and the camera motor, or between the camera motor and the detection module, for acquiring the current value of the camera motor; wherein the current value is used to determine the filtering frequency for filtering the audio data in the captured video.

2. The camera motor control circuit according to claim 1, characterized in that, The acquisition module includes: A sensing element, wherein the sensing element is connected between the driving module and the camera motor, or the sensing element is connected between the camera motor and the detection module; A data acquisition unit, wherein a first input terminal of the data acquisition unit is connected to a first terminal of the sensing element, and a second input terminal of the data acquisition unit is connected to a second terminal of the sensing element, for acquiring electrical parameters of the sensing element; The electrical parameters are used to determine the current value of the camera motor.

3. The camera motor control circuit according to claim 2, characterized in that, The acquisition unit includes: a first resistor, a second resistor, a third resistor, a fourth resistor, and an operational amplifier; The first end of the first resistor is connected to the first input terminal of the operational amplifier, and the second end of the first resistor is grounded. The first end of the second resistor is connected to the first end of the sensing element, and the second end of the second resistor is connected to the first input end of the operational amplifier. The first end of the third resistor is connected to the second end of the sensing element, and the second end of the third resistor is connected to the second input end of the operational amplifier. The first end of the fourth resistor is connected to the second input terminal of the operational amplifier, and the second end of the fourth resistor is connected to the output terminal of the operational amplifier. The operational amplifier outputs the electrical parameter values ​​of the sensing element.

4. An electronic device, characterized in that, Includes the camera motor control circuit as described in any one of claims 1 to 3.

5. A noise filtering method, characterized in that, include: Acquire the current value of the camera motor during video recording; Determine the filtering frequency based on the current value; The audio data in the captured video is filtered according to the filtering frequency.

6. The noise filtering method according to claim 5, characterized in that, Determining the filter frequency based on the current value includes: A first spectrum is determined based on the current values ​​at multiple sampling points; wherein the current values ​​at the multiple sampling points are obtained by sampling at a first sampling frequency. Based on the first spectrum, determine the maximum frequency of the current value change; If a preset condition is met between the maximum frequency and the first sampling frequency, the maximum frequency is determined as the filtering frequency.

7. The noise filtering method according to claim 6, characterized in that, Also includes: If the preset condition is not met between the maximum frequency and the first sampling frequency, the first sampling frequency is adjusted until the preset condition is met between the maximum frequency and the first sampling frequency.

8. A noise filtering device, characterized in that, include: The acquisition module is used to acquire the current value of the camera motor during video recording; The determining module is used to determine the filtering frequency based on the current value; The filtering module is used to filter the audio data in the captured video according to the filtering frequency.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the noise filtering method as described in any one of claims 5 to 7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the noise filtering method as described in any one of claims 5 to 7.