Abnormal sound repairing method, abnormal sound repairing device, electronic equipment and storage medium

By calculating the locking current of the lens based on the loudness and abnormal loudness of the external environment when the electronic device is moving, and passing the current into the driver to lock the lens, it solves the abnormal noise problem caused by shaking of the shooting module and improves the user experience And avoid lens set damage.

CN119450181APending Publication Date: 2025-02-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310954535.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the electronic device moves, the lens set of the shooting module hits other components due to shaking, causing abnormal noise and affecting the user experience.

Method used

When starting the lens locking logic of the shooting module, the locking current I of the lens is obtained and the driver is passed through the driver according to the external environment loudness value H1, the abnormal loudness value H2 caused by motion and the preset driver drive current function. , to lock the lens.

Benefits of technology

Effectively reduce or avoid abnormal noise caused by movement of the lens set, improve the user experience, and avoid damage caused by impact of the lens set and other components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450181A_ABST
    Figure CN119450181A_ABST
Patent Text Reader

Abstract

The invention discloses an abnormal sound repairing method, an abnormal sound repairing device, electronic equipment and a computer readable storage medium, and the abnormal sound repairing method comprises the steps: starting a locking logic of a lens of a shooting module in the electronic equipment under the condition of starting the locking logic of the lens of the shooting module in the electronic equipment; according to the loudness value H1 of the external environment of the electronic equipment, the loudness value H2 of abnormal sound caused by movement of the electronic equipment and a preset driving current function of a driver, acquiring a locking current I of the lens; and locking current is supplied to a driver of the lens so as to lock the lens. According to the abnormal sound repairing method, the locking current I of the lens is obtained according to the loudness value H1 of the external environment of the electronic equipment, the loudness value H2 of the abnormal sound and the preset driving current function of the driver, then the locking current I is supplied to the driver of the lens to lock the lens, the locking current I is obtained very accurately, and the lens repairing efficiency is improved. After the driver is powered on, the lens group can be driven not to collide with other elements, or even if the lens group collides with other elements, abnormal sound generated by collision is small and cannot be felt by 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 control of a shooting module, and in particular to a method for repairing abnormal sound of a shooting module, an abnormal sound repairing device of a shooting module, an electronic device and a computer-readable storage medium. Background Art

[0002] Currently, most electronic devices with shooting functions are equipped with an anti-shake (OIS) function and / or an auto focus (AF) function. Accordingly, the shooting module in the electronic device is equipped with a driver to drive the lens to move to compensate for the shake to achieve the anti-shake function, or to drive the lens to move to achieve the auto focus function. When the shooting module is not turned on, the driver is not powered on, and the lens group in the lens is in a freely movable state. Once the electronic device moves, such as shaking, the lens group will move and hit other components to produce abnormal noise. The abnormal noise is usually loud and people will feel it, resulting in a poor experience. Summary of the invention

[0003] Embodiments of the present application provide a method for repairing abnormal noise of a shooting module, an apparatus for repairing abnormal noise of a shooting module, an electronic device, and a computer-readable storage medium.

[0004] In a first aspect, a method for repairing abnormal noise of a shooting module according to an embodiment of the present application comprises: when starting the locking logic of a lens of a shooting module in an electronic device, obtaining a locking current I of the lens according to a loudness value H1 of an external environment of the electronic device, a loudness value H2 of an abnormal noise caused by movement of the electronic device, and a preset driving current function of a driver; and passing the locking current through the driver of the lens to lock the lens.

[0005] In a second aspect, the abnormal noise repair device of the shooting module of the embodiment of the present application includes a current acquisition module and a locking module. When the locking logic of the lens of the shooting module in the electronic device is activated, the current acquisition module is used to obtain the locking current I of the lens according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal noise caused by the movement of the electronic device, and the preset driving current function of the driver. The locking module is used to pass the locking current to the driver of the lens to lock the lens.

[0006] In a third aspect, an electronic device of an embodiment of the present application includes: a shooting module, a microphone assembly, a memory and a processor. The shooting module is used to shoot images. The microphone assembly is used to obtain sound information. A computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes a method for repairing abnormal noises in the shooting module. The method for repairing abnormal noises in the shooting module includes: when the locking logic of the lens in the shooting module is started, according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal noise caused by the movement of the electronic device, and the preset driving current function of the driver, the locking current I of the lens is obtained; and the locking current is passed to the driver of the lens to lock the lens.

[0007] In a fourth aspect, a computer-readable storage medium of an embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, a method for repairing abnormal noise of a shooting module is implemented. The method for repairing abnormal noise of a shooting module comprises: when the locking logic of the lens in the shooting module is activated, according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal noise caused by the movement of the electronic device, and a preset driving current function of the driver, obtaining the locking current I of the lens; and passing the locking current to the driver of the lens to lock the lens.

[0008] The abnormal noise repair method of the shooting module, the abnormal noise repair device of the shooting module, the electronic device and the computer-readable storage medium of the present application obtain the locking current I of the lens based on the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal noise caused by the movement of the electronic device, and the driving current function of the preset driver, and then pass the locking current I to the driver of the lens to lock the lens. The acquisition of the locking current I is very accurate. After the driver is powered on, it can drive the lens group so that it does not collide with other components, or even if it collides with other components, the abnormal noise caused by the collision is small and will not be felt by people, thereby ensuring a better user experience.

[0009] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0011] Figure 1 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0012] Figure 2It is a schematic diagram of the structure of an abnormal sound repair device for a shooting module in certain embodiments of the present application;

[0013] Figure 3 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0014] Figure 4 It is a schematic diagram of the structure of an abnormal sound repair device for a shooting module in certain embodiments of the present application;

[0015] Figure 5 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0016] Figure 6 It is a schematic diagram of the principle of processing the angular velocity and angular acceleration of an electronic device to obtain the vibration frequency and vibration amplitude of the electronic device in the abnormal noise repair method of certain embodiments of the present application;

[0017] Figure 7 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0018] Figure 8 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0019] Fig. 9 It is a flowchart of a method for repairing abnormal noise of a shooting module in certain embodiments of the present application;

[0020] Fig.10 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;

[0021] Fig.11 is a schematic diagram of the structure of a shooting module and a second microphone in an electronic device according to certain embodiments of the present application;

[0022] Fig.12 It is a schematic diagram of the structure of an electronic device of certain embodiments of the present application.

[0023] Description of main component symbols:

[0024] Electronic device 100, abnormal sound repair device 10, shooting module 20, first acquisition module 11, second acquisition module 12, third acquisition module 13, fourth acquisition module 14, determination module 15, current acquisition module 16, locking module 17, update module 18, microphone assembly 30, first microphone 31, second microphone 33, third microphone 35, first sound outlet 41, second sound outlet 43, third sound outlet 45, main body 50, memory 60, processor 70. DETAILED DESCRIPTION

[0025] The following is a further description of the embodiments of the present application in conjunction with the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements or elements with the same or similar functions from beginning to end. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the present application.

[0026] Currently, most electronic devices with shooting functions are equipped with an anti-shake (OIS) function and / or an autofocus (AF) function. Accordingly, the shooting module in the electronic device is equipped with a driver to drive the lens to move to compensate for the shake to achieve the anti-shake function, or to drive the lens to move to achieve the autofocus function. When the shooting module is not turned on, the drivers are not powered on, and the lens group in the lens is in a freely movable state. Once the electronic device moves, such as shaking, the lens group will move and hit other components to produce abnormal noise, and will also cause damage to the lens group or other components. In order to solve this problem, the present application provides a method for repairing abnormal noise of a shooting module ( Figure 1 , Figure 3 , Figure 5 , Figures 7 to 9 As shown), the abnormal noise repair device 10 ( Figure 2 and Figure 4 As shown), electronic device 100 ( Fig.10 and Fig.11 ) and a computer readable storage medium ( Fig.12 shown).

[0027] See also Figure 1 and Fig.10 The abnormal sound repair method of the shooting module of the embodiment of the present application includes:

[0028] 06: When the lens locking logic in the shooting module 20 is activated, the lens locking current I is obtained according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound caused by the movement of the electronic device 100, and the preset driving current function of the driver; and

[0029] 07: Pass a locking current I to the lens driver to lock the lens.

[0030] Please combine Figure 2, the abnormal noise repair method of the shooting module of the embodiment of the present application can be applied to the abnormal noise repair device 10 of the shooting module. Specifically, the abnormal noise repair device 10 of the shooting module includes a current acquisition module 16 and a locking module 17. When the locking logic of the lens of the shooting module 20 in the electronic device 100 is started, the current acquisition module 16 is used to obtain the locking current I of the lens according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal noise caused by the movement of the electronic device 100, and the preset driving current function of the driver. The locking module 17 is used to control the locking current to be passed to the driver of the lens to lock the lens.

[0031] Please combine Fig.10 and Fig.12 , the abnormal sound repair method of the shooting module of the embodiment of the present application can also be applied to the electronic device 100. Specifically, in some embodiments, the electronic device 100 includes an abnormal sound repair device 10. In other embodiments, the electronic device 100 includes a body 50, a shooting module 20, a microphone assembly 30, a memory 60 and a processor 70. The shooting module 20, the microphone assembly 30, the memory 60 and the processor 70 are all installed on the body 50. The shooting module 20 is used to shoot images. The microphone assembly 30 is used to obtain sound information. The memory 60 stores a computer program, and when the computer program is executed by the processor 70, the processor 70 executes the abnormal sound repair method in 06 and 07. That is, when the locking logic of the lens in the shooting module 20 is started, the processor 70 obtains the locking current I of the lens according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound caused by the movement of the electronic device 100, and the preset driving current function of the driver. The processor 70 is also used to control the locking current to be passed to the driver of the lens to lock the lens.

[0032] The electronic device 100 of the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a camera, a video camera, a personal digital assistant, a wearable device, an intelligent robot, an intelligent vehicle, and other devices with a shooting function. The wearable device includes a smart bracelet, a smart watch, and smart glasses.

[0033] The shooting module 20 may be, but is not limited to, a camera module for visible light imaging, an infrared light imaging camera module, an ultraviolet light imaging camera module, etc. The shooting module 20 in the embodiment of the present application may be a camera module used in consumer electronic products, such as a mobile phone, a tablet, or a laptop computer, or a camera used in aerospace detection, medical imaging detection, industrial detection, or a vehicle-mounted camera.

[0034] See also Fig.10Specifically, in some embodiments, the microphone assembly 30 includes a first microphone 31 and a second microphone 33. The first microphone 31 is used to detect the loudness value H1 of the external environment of the electronic device 100. The second microphone 33 is used to detect the loudness value H2 of the abnormal sound of the electronic device 100. In other embodiments, the microphone assembly 30 may also include a third microphone 35, and the third microphone 35 is used for stereo synthesis. Correspondingly, the body 50 is provided with a first sound outlet 41, a second sound outlet 43 and a third sound outlet 45. The first sound outlet 41 corresponds to the first microphone 31, and is used for sound signals to enter and be detected by the first microphone 31. The second sound outlet 43 corresponds to the second microphone 33, and is used for sound signals to enter and be detected by the second microphone 33. The third sound outlet 45 corresponds to the third microphone 35, and is used for sound signals to enter and be detected by the third microphone 35.

[0035] More specifically, the body 50 includes a first end and a second end relative to each other. Taking the electronic device 100 as a mobile phone as an example, the first end of the body 50 is the bottom of the electronic device 100 when the electronic device 100 is in normal use; the second end of the body 50 is the top of the electronic device 100 when the electronic device 100 is in normal use. The first microphone 31 is arranged at the first end of the body 50, and is the main microphone, which is the main channel for external environmental sound detection. The second microphone 33 is arranged at the second end of the body 50, and is the main channel for abnormal sound detection, that is, the second microphone 33 is used to detect the loudness value H2 of the abnormal sound of the electronic device 100. The third microphone 35 is only used when stereo synthesis is performed.

[0036] The "locking current" is the current value applied to the driver of the lens, wherein the driver of the lens includes but is not limited to a driver for driving the lens to move to compensate for the shake to realize the anti-shake function, and a driver for driving the lens to move to realize the auto-focus function. When the shooting module 20 is not turned on, the driver is not powered on. At this time, the lens group in the lens is in a freely movable state. Once the electronic device 100 moves, such as shaking, the lens group will move and hit other components to produce abnormal noise. Once the locking current is applied to the driver of the lens, the driver will work. When the electronic device 100 is in a state of shaking or other movements, the driver will drive the lens group to have a movement trend in the direction opposite to the movement direction of the electronic device 100. This movement trend can reduce or even prevent the lens group from moving to hit other components and causing abnormal noise. However, if the locking current value is not accurately determined, the driver may not be able to drive the lens group to prevent it from colliding with other components, and the electronic device 100 will still produce abnormal noise that affects people's use experience. The abnormal noise repair method of the shooting module of the embodiment of the present application is to obtain the locking current I of the lens based on the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal noise caused by the movement of the electronic device 100, and the driving current function of the preset driver, and then pass the locking current I to the driver of the lens to lock the lens. The acquisition of the locking current I is very accurate. After the driver is powered on, it can drive the lens group to prevent it from colliding with other components, or even if it collides with other components, the abnormal noise caused by the collision is small and will not be felt by people, thereby ensuring a better user experience, while also avoiding damage to the lens group itself and other components.

[0037] To determine whether the camera's lock logic is enabled, see Figure 3 , the abnormal noise repair method also includes:

[0038] 01: Detect the movement of the electronic device 100;

[0039] 02: When the electronic device 100 is in motion, detecting the external environment of the electronic device 100;

[0040] 03: When the external environment indicates that the electronic device 100 is being used, detecting the impact of abnormal noise caused by the movement of the electronic device 100 on the user;

[0041] 04: In the case where the abnormal sound affects the user, the loudness value H2 of the abnormal sound is detected; and

[0042] 05: Determine whether to activate the lens locking logic according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound, the preset first loudness threshold a1, and the preset first difference threshold b1.

[0043] Please combine Figure 4Correspondingly, the abnormal sound repair device 10 also includes a first acquisition module 11, a second acquisition module 12, a third acquisition module 13, a fourth acquisition module 14 and a determination module 15. The first acquisition module 11 is used to obtain the movement of the electronic device 100. When the electronic device 100 is in motion, the second acquisition module 12 is used to obtain the external environment of the electronic device 100. When the external environment indicates that the electronic device 100 is being used, the third acquisition module 13 is used to obtain the impact of the abnormal sound caused by the movement of the electronic device 100 on the user. When the abnormal sound affects the user, the fourth acquisition module 14 is used to obtain the loudness value H2 of the abnormal sound. The determination module 15 is used to determine whether to start the locking logic of the lens according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound, the preset first loudness threshold a1, and the preset first difference threshold b1.

[0044] Please combine Fig.10 The processor 70 in the electronic device 100 is also used to execute the methods in 01 to 05. Specifically, the processor 70 is also used to obtain the movement of the electronic device 100; when the electronic device 100 is moving, obtain the external environment of the electronic device 100; when the external environment indicates that the electronic device 100 is being used, obtain the impact of the abnormal sound caused by the movement of the electronic device 100 on the user; when the abnormal sound affects the user, obtain the loudness value H2 of the abnormal sound; and determine whether to start the lens locking logic according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound, the preset first loudness threshold a1, and the preset first difference threshold b1.

[0045] When determining whether to start the locking logic of the lens, the movement of the electronic device 100 can be determined first. The movement of the electronic device 100 can be detected by a gyroscope (gyro), or by gyroscope detection plus analysis by the processor 70 or the first acquisition module 11. The detection result of the movement situation can be "the electronic device 100 is moving" or "the electronic device 100 is not moving". If the detection result is "the electronic device 100 is not moving", the electronic device 100 does not need to start the locking logic of the lens. If the detection result is "the electronic device 100 is moving", the electronic device 100 will consider starting the locking logic of the lens. Compared with the current abnormal sound repair method, which does not detect the movement of the electronic device 100, directly starts the locking logic of the lens, and passes the locking current to the driver, the power consumption is relatively large. The abnormal sound repair method of the embodiment of the present application can only start the locking logic of the lens when "the electronic device 100 is moving", and the execution of the locking logic is more targeted and can save more power consumption.

[0046] Specifically, see Figure 3 and Figure 5In some embodiments, 01: detecting the movement of the electronic device 100 includes:

[0047] 011: Obtaining the angular velocity and angular acceleration of the electronic device 100;

[0048] 013: Processing the angular velocity and angular acceleration of the electronic device 100 to obtain the vibration frequency f and the vibration amplitude A of the electronic device 100;

[0049] 014: Determine whether the vibration frequency f is greater than the preset frequency f0, and whether the vibration amplitude A is greater than the preset amplitude A0;

[0050] 015: When the vibration frequency f is greater than the preset frequency f0 and the vibration amplitude A is greater than the preset amplitude A0, confirming that the electronic device 100 is moving; and

[0051] Correspondingly, please combine Figure 4 and Fig.10 The first acquisition module 11 and the processor 70 in the electronic device 100 are also used to obtain the angular velocity and angular acceleration of the electronic device 100; process the angular velocity and angular acceleration of the electronic device 100 to obtain the vibration frequency f and vibration amplitude A of the electronic device 100; determine whether the vibration frequency f is greater than the preset frequency f0, and whether the vibration amplitude A is greater than the preset amplitude A0; when the vibration frequency f is greater than the preset frequency f0, and the vibration amplitude A is greater than the preset amplitude A0, confirm that the electronic device 100 is in motion; and when the vibration frequency f is less than or equal to the preset frequency f0, or the vibration amplitude A is less than or equal to the preset amplitude A0, confirm that the electronic device 100 is not in motion.

[0052] After the gyroscope detects the angular velocity and angular acceleration of the electronic device 100, the first acquisition module 11 and the processor 70 in the electronic device 100 can process and draw out the angular velocity and angular acceleration according to the angular velocity and angular acceleration. Figure 6 The angular velocity diagram shown in Figure 1, where the vibration frequency f is Figure 6 The number of peaks and troughs in the angular velocity diagram shown, the vibration amplitude A is Figure 6 The maximum peak value or the maximum trough value in the angular velocity graph shown.

[0053] Among them, the preset frequency f0 is used to describe the critical frequency of the vibration of the electronic device 100. Once the vibration frequency f is greater than the preset frequency f0, it indicates that the number of vibrations is large, the possibility of the electronic device 100 moving is high, or the probability of the electronic device 100 moving and causing abnormal sounds that affect the user is high; and when the vibration frequency f is less than or equal to the preset frequency f0, it indicates that the number of vibrations is small, the possibility of the electronic device 100 moving is low, or the probability of the electronic device 100 moving and causing abnormal sounds that affect the user is low. In some embodiments, the preset frequency f0 can be a known empirical value set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory. During the use of the abnormal sound repair device 10 or the electronic device 100, the preset frequency f0 can be fixed or can be reset by manual input. In other embodiments, the preset frequency f0 can be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0054] Similarly, the preset amplitude A0 is a critical amplitude used to describe the vibration of the electronic device 100. Once the vibration amplitude A is greater than the preset amplitude A0, it indicates that the vibration amplitude is large, the possibility of the electronic device 100 moving is high, or the probability of the electronic device 100 moving and causing abnormal sounds that affect the user is high; and when the vibration amplitude A is less than or equal to the preset amplitude A0, it indicates that the vibration amplitude is small, the possibility of the electronic device 100 moving is low, or the probability of the electronic device 100 moving and causing abnormal sounds that affect the user is low. In some embodiments, the preset amplitude A0 can be a known empirical value set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory. During the use of the abnormal sound repair device 10 or the electronic device 100, the preset amplitude A0 can be a fixed empirical value or can be reset by manual input. In other embodiments, the preset amplitude A0 can be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0055] In order to accurately detect the movement of the electronic device 100, only when the vibration frequency f is greater than the preset frequency f0 and the vibration amplitude A is greater than the preset amplitude A0, it is confirmed that the electronic device 100 is in motion. On the contrary, when the vibration frequency f is less than or equal to the preset frequency f0, or the vibration amplitude A is less than or equal to the preset amplitude A0, it is confirmed that the electronic device 100 is not in motion, and the method in 011 can be executed again.

[0056] When the electronic device 100 is in motion, the electronic device 100 will consider starting the lens lock logic, but it does not necessarily need to start the lens lock logic, and the external environment of the electronic device 100 must also be considered. The external environment of the electronic device 100 can be identified by another camera (non-shooting module 20) being always on (Always ON, AON), or it can be obtained by the camera AON detection plus the processor 70 or the second acquisition module 12 analysis. The detection result of the external environment of the electronic device 100 can be "the electronic device 100 is being used" or "the electronic device 100 is not being used". If the detection result is "the electronic device 100 is not being used", the electronic device 100 does not need to start the lens locking logic. If the detection result is "the electronic device 100 is being used", the electronic device 100 will consider starting the lens locking logic. Compared with the current abnormal noise repair method, which does not detect the external environment of the electronic device 100, directly starts the lens locking logic, and passes the locking current to the driver, the power consumption is relatively large. The abnormal noise repair method of the embodiment of the present application can only start the lens locking logic when the "electronic device 100 is being used". The execution of the locking logic is more targeted and can save more power. At the same time, the external environment of the electronic device 100 is identified through the AON technology, and the identification accuracy is high, thereby improving the locking accuracy of the lens.

[0057] Specifically, see Figure 3 and Figure 5 In some embodiments, 02: detecting the external environment of the electronic device 100 includes:

[0058] 021: Enable the AON function of another camera to capture images;

[0059] 023: Identify whether there is a face in the captured image; and

[0060] 025: When a human face is present in the captured image, it is confirmed that the electronic device 100 is being used.

[0061] Correspondingly, please combine Figure 4 and Fig.10 The second acquisition module 12 and the processor 70 in the electronic device 100 are also used to control the activation of the AON function of another camera to execute image capture; identify whether there is a face in the captured image; and if there is a face in the captured image, confirm that the electronic device 100 is being used.

[0062] Although the "electronic device 100 is in motion" and "the electronic device 100 is being used", it is very likely that the lens locking logic needs to be activated. However, it is also possible that "the electronic device 100 is in motion" and "the electronic device 100 is being used", but the abnormal sound caused by the movement of the electronic device 100 will not affect the people who are using the electronic device 100. In other words, the abnormal sound is too small and will not cause a bad user experience. At this time, there is no need to activate the lens locking logic. Therefore, the embodiment of the present application adds a step of "detecting the impact of the abnormal sound caused by the movement of the electronic device 100 on the user".

[0063] The "influence of the abnormal sound caused by the movement of the electronic device 100 on the user" can be detected by the second microphone 33, or detected by the second microphone 33 and obtained by analysis by the processor 70 or the third acquisition module 13. The detection result of "the influence of the abnormal sound caused by the movement of the electronic device 100 on the user" can be "the abnormal sound caused by the movement of the electronic device 100 affects the user" or "the abnormal sound caused by the movement of the electronic device 100 does not affect the user". If the detection result is "the abnormal sound caused by the movement of the electronic device 100 does not affect the user", the electronic device 100 does not need to start the locking logic of the lens. If the detection result is "the abnormal sound caused by the movement of the electronic device 100 affects the user", the electronic device 100 may start the locking logic of the lens. Compared with the current abnormal sound repair method, which does not detect the influence of the abnormal sound caused by the movement of the electronic device 100 on the user, directly starts the locking logic of the lens, and passes the locking current to the driver, the power consumption is relatively large. The abnormal sound repair method of the embodiment of the present application can only start the locking logic of the lens when "the abnormal sound caused by the movement of the electronic device 100 affects the user". The execution of the locking logic is more targeted and can save more power consumption.

[0064] Specifically, see Figure 5 In some embodiments, 03: detecting the influence of abnormal noise caused by the movement of the electronic device 100 on the user, including:

[0065] 031: Detecting the loudness value H1 of the external environment of the electronic device 100;

[0066] 032: Compare the size of H1 and H0+b2;

[0067] 033: In the case of H1≥H0+b2, it is determined that the abnormal sound does not affect the user; and

[0068] 035: When H1<H0+b2, it is determined that the abnormal sound affects the user, wherein H0 is the maximum value of the abnormal sound that may be caused by the movement of the electronic device 100, and b2 is a preset second difference threshold.

[0069] Correspondingly, please combine Figure 4 and Fig.10 The third acquisition module 13 and the processor 70 in the electronic device 100 are also used to obtain the loudness value H1 of the external environment of the electronic device 100; compare the sizes of H1 and H0+b2; when H1≥H0+b2, determine that the abnormal sound does not affect the user; when H1<H0+b2, determine that the abnormal sound affects the user, wherein H0 is the maximum value of the abnormal sound that may be caused by the movement of the electronic device 100, and b2 is a preset second difference threshold, both of which are known values.

[0070] The loudness value H1 of the external environment of the electronic device 100 can be detected by the first microphone 31, and the second difference threshold b2 is the critical value of the difference between the loudness value H1 of the external environment and the maximum value H0 of the abnormal sound that may be caused by the movement of the electronic device 100. If the actual difference is greater than or equal to the critical value, it indicates that the loudness of the external environment exceeds the loudness value H0 of the maximum abnormal sound that may be caused by the movement of the electronic device 100, and the sound of the external environment can cover up the maximum abnormal sound. Even if the actual abnormal sound reaches the maximum abnormal sound, the actual abnormal sound will not bring a bad experience to the user, so it can be determined that the abnormal sound does not affect the user; if the actual difference is less than the critical value, it indicates that the loudness of the external environment is close to the loudness of the maximum abnormal sound that may be caused by the movement of the electronic device 100, and the sound of the external environment may not be able to cover up the abnormal sound. The actual abnormal sound may bring a bad experience to the user, so it can be determined that the actual abnormal sound affects the user. In some embodiments, the critical value of the second difference threshold b2 may be a known empirical value set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory, for example, b2 is 20db. During the use of the abnormal sound repair device 10 or the electronic device 100, the empirical value of the second difference threshold b2 may be fixed or reset by manual input. In other embodiments, the second difference threshold b2 may be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0071] See also Fig.10 The loudness value H2 of the abnormal sound of the electronic device 100 is detected by the second microphone 33. The fourth acquisition module 14 and the processor 70 can both acquire the loudness value H2 of the abnormal sound of the electronic device 100 from the second microphone 33. The second microphone 33 is located within a preset distance range of the shooting module 20. Fig.11, the second microphone 33 is located within the preset distance range of the shooting module 20 means that the distance between the second microphone 33 and the shooting module 20 is within the preset distance range. In some embodiments, the preset distance range is [3mm, 5mm], that is, the distance D between the second microphone 33 and the shooting module 20 can be any value between greater than or equal to 3mm and less than or equal to 5mm, for example, the distance D is 3.0mm, 3.2mm, 3.5mm, 3.7mm, 3.9mm, 4.0mm, 4.1mm, 4.3mm, 4.5mm, 4.7mm, 4.9mm, or 5.0mm, etc. On the one hand, the audio function of the second microphone 33 needs to be directional and follow the wind noise, that is, it needs to help filter out the background noise, and cannot be too close to the abnormal sound source. If it is too close to the abnormal sound source, it will affect the audio function. The actual measurement requires more than 3mm. On the other hand, the second microphone 33 needs to capture the sound of the lens movement, and cannot be too far away from the abnormal sound source, otherwise the loudness value of the abnormal sound detected is insufficient and the detection is unreliable. After a large amount of measured data, the maximum distance cannot exceed 5mm. In other words, the preset distance range is [3mm, 5mm], which will not affect the audio function of the second microphone 33 itself, and can detect the accurate loudness value H2 of the abnormal sound.

[0072] In some embodiments, in the thickness direction Z of the electronic device 100, the second microphone 33 may be located on the upper side of the shooting module 20. In other embodiments, in the length direction Y of the electronic device 100, the second microphone 33 may be located on any one of the two opposite sides of the shooting module 20. In yet other embodiments, in the width direction X of the electronic device 100, the second microphone 33 may be located on any one of the two opposite sides of the shooting module 20. It should be noted that no matter which side of the shooting module 20 the second microphone 33 is located, the second microphone 33 must be staggered from the light entrance of the shooting module 20 in the light entrance direction of the shooting module 20 to avoid the second microphone 33 affecting the incident light entering the shooting module 20 and causing imaging failure, thereby ensuring normal imaging of the shooting module 20. The distance between the second microphone 33 and the shooting module 20 can be: the distance between any set point on the second microphone 33 and any set point on the shooting module 20. For example, in the thickness direction Z of the electronic device 100, when the second microphone 33 can be located on the upper side of the shooting module 20, the distance D in the thickness direction Z of the electronic device 100 is from the center O1 of the second microphone 33 to the center O2 of the shooting module 20.

[0073] See also Figure 3 and Figure 5 In some embodiments, 05: determining whether to start the lens locking logic according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound, the preset first loudness threshold a1, and the preset first difference threshold b1, includes:

[0074] 051: Determine whether the loudness value H2 of the abnormal sound is greater than the first loudness threshold a1, and whether the difference between the loudness value H1 of the external environment and the loudness value H2 of the abnormal sound is greater than the first difference threshold b1;

[0075] 053: In the case of H2>a1, and H2>H1-b1, determining the locking logic of the start lens; and

[0076] 055: When H2≤a1, or H2≤H1-b1, it is determined that there is no need to activate the lens locking logic.

[0077] Correspondingly, please combine Figure 4 and Fig.10 The determination module 15 and the processor 70 in the electronic device 100 are also used to determine whether the loudness value H2 of the abnormal sound is greater than the first loudness threshold a1, and whether the difference between the loudness value H1 of the external environment and the loudness value H2 of the abnormal sound is greater than the first difference threshold b1; when H2>a1, and H2>H1-b1, determine to start the locking logic of the lens; and when H2≤a1, or H2≤H1-b1, determine that there is no need to start the locking logic of the lens.

[0078] Among them, the first loudness threshold a1 is the critical value of the loudness value of the actual abnormal sound. If the loudness value of the actual abnormal sound is less than or equal to the critical value, it indicates that the loudness of the actual abnormal sound is small, and the actual abnormal sound will not bring a bad experience to the user, and it can be determined that there is no need to start the locking logic of the lens; if the loudness value of the actual abnormal sound is greater than the critical value, it indicates that the loudness of the actual abnormal sound is large, and the actual abnormal sound will bring a bad experience to the user. In some embodiments, the critical value of the first loudness threshold a1 can be a known empirical value set by the abnormal sound repair device 10 or the electronic device 100 before leaving the factory, for example, a1 is 80db. During the use of the abnormal sound repair device 10 or the electronic device 100, the first loudness threshold a1 can be a fixed empirical value or can be reset by manual input. In other embodiments, the first loudness threshold a1 can be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0079] The first difference threshold b1 is the critical value of the difference between the loudness value H1 of the external environment and the loudness value H2 of the abnormal sound. If the actual difference is greater than or equal to the critical value, it indicates that the loudness of the external environment exceeds the loudness of the actual abnormal sound, and the sound of the external environment can cover up the actual abnormal sound. The actual abnormal sound will not bring a bad experience to the user, and it can be determined that there is no need to start the locking logic of the lens; if the actual difference is less than the critical value, it indicates that the loudness of the external environment is close to the loudness of the actual abnormal sound, and the sound of the external environment may not be able to cover up the actual abnormal sound, and the actual abnormal sound will bring a bad experience to the user. In some embodiments, the critical value of the first difference threshold b1 can be a known empirical value set by the abnormal sound repair device 10 or the electronic device 100 before leaving the factory, for example, b1 is 20db. During the use of the abnormal sound repair device 10 or the electronic device 100, the empirical value of the first difference threshold b1 can be fixed or can be reset by human input. In other embodiments, the first difference threshold value b1 may be an optimal empirical value automatically formed by the abnormal noise repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0080] See also Figure 7 and Figure 8 In some embodiments, 06: according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound caused by the movement of the electronic device 100, and the driving current function of the preset driver, obtaining the locking current I of the lens includes:

[0081] 061: Obtain a first intermediate difference H5 according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound, and the third difference threshold b3;

[0082] 063: Obtain a second intermediate difference H6 according to the loudness value H2 of the abnormal sound and a preset second loudness threshold a2;

[0083] 065: Obtaining a suppressed loudness H according to the first middle difference H5 and the second middle difference H6; and

[0084] 067: Calculate the locking current I of the lens according to the suppressed loudness H and the driving current function of the driver.

[0085] Correspondingly, please combine Figure 4The current acquisition module 16 and the processor 70 in the electronic device 100 are also used to obtain a first intermediate difference H5 according to the loudness value H1 of the external environment of the electronic device 100, the loudness value H2 of the abnormal sound and the third difference threshold b3; obtain a second intermediate difference H6 according to the loudness value H2 of the abnormal sound and the preset second loudness threshold a2; obtain a suppressed loudness H according to the first intermediate difference H5 and the second intermediate difference H6; and calculate the locking current I of the lens according to the suppressed loudness H and the driving current function of the driver.

[0086] The third difference threshold b3 is the critical value of the difference between the loudness value H1 of the external environment and the loudness value H2 of the abnormal sound of the electronic device 100. In some embodiments, the third difference threshold b3 may be a known empirical value set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory, for example, b3 is 20db. During the use of the abnormal sound repair device 10 or the electronic device 100, the empirical value of the third difference threshold b3 may be fixed or reset by manual input. In other embodiments, the third difference threshold b3 may be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0087] The second loudness threshold a2 is a critical value of the loudness value of the actual abnormal sound. In some embodiments, the critical value of the second loudness threshold a2 may be a known empirical value set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory, for example, a2 is 80db. During the use of the abnormal sound repair device 10 or the electronic device 100, the empirical value of the second loudness threshold a2 may be fixed or reset by manual input. In other embodiments, the second loudness threshold a2 may be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0088] The suppressed loudness H is obtained according to the first intermediate difference H5 and the second intermediate difference H6. Specifically, the suppressed loudness H is the smaller of the first intermediate difference H5 and the second intermediate difference H6. After the suppressed loudness H is calculated, the locking current I of the lens can be calculated according to the suppressed loudness H and the driving current function of the driver. The driving current function of the driver is: H = 0.01I 3 +0.05I 2 +0.2I. After the locking current I is obtained, the locking current I can be passed to the driver of the lens to lock the lens.

[0089] See also Figure 8 In some embodiments, the abnormal noise repair method further comprises:

[0090] After the lens is locked, the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound are monitored;

[0091] When the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2

[0092] Otherwise, return to the step of obtaining the locking current I of the lens until the locking operation meets expectations.

[0093] Please combine Figure 4 and Fig.10 , after the lens is locked, the first microphone 31 monitors the loudness value H1 of the external environment of the electronic device 100, and the second microphone 33 monitors the loudness value H2 of the abnormal sound. Correspondingly, in the abnormal sound repair device 10, any one of the first acquisition module 11 to the fourth acquisition module 14 acquires the loudness value H1 of the external environment monitored by the first microphone 31 and the loudness value H2 of the abnormal sound monitored by the second microphone 33. In the electronic device 100, the processor 70 is used to acquire the loudness value H1 of the external environment monitored by the first microphone 31 and the loudness value H2 of the abnormal sound monitored by the second microphone 33.

[0094] When the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2b5, the confirmation module 15 and the processor 70 confirm that it is necessary to return to the step of obtaining the locking current I of the lens until the locking operation meets expectations.<h1>

[0095] Among them, a3 is the preset third loudness threshold, a4 is the preset fourth loudness threshold, b4 is the preset fourth difference threshold, and b5 is the preset fifth difference threshold, which are all known values. These known values ​​can be known empirical values ​​set before the abnormal sound repair device 10 or the electronic device 100 leaves the factory, for example, a3 is 70db, a4 is 80db, b4 is 30db, and b5 is 20db. During the use of the abnormal sound repair device 10 or the electronic device 100, these empirical values ​​can be fixed or can be reset by manual input. In other embodiments, these known values ​​can be an optimal empirical value automatically formed by the abnormal sound repair device 10 or the electronic device 100 according to historical data after leaving the factory and during use.

[0096] ​See also Fig. 9 In some embodiments, the abnormal noise repair method further comprises:

[0097] When the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2

[0098] When the difference between the abnormal sound vector H1 and the abnormal sound vector H1 already in the memory 60 is greater than the first preset threshold value Δ1, or the difference between the abnormal sound vector H2 and the abnormal sound vector H2 already in the memory 60 is greater than the second preset threshold value Δ2, the name of the abnormal sound vector is noted and stored in the memory 60.

[0099] Please combine Figure 4 The abnormal sound repair device 10 may further include an updating module 18. When the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2

[0100] Please combine Fig.10 In the case where the loudness value H1 of the external environment of the electronic device 100 and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2

[0101] When the difference between the abnormal sound vector H1 and the abnormal sound vector H1 already in the memory 60 is less than or equal to the first preset threshold value Δ1, or the difference between the abnormal sound vector H2 and the abnormal sound vector H2 already in the memory 60 is less than or equal to the second preset threshold value Δ2, the update module 18 does not update the storage module 19 of the abnormal sound repair device 10, and the processor 70 does not update the memory 60 of the electronic device 100. ​​​

[0102] Since the abnormal sound vector includes the locking current I, the loudness value H2 of the abnormal sound when the locking current I is not loaded, and the loudness value H1 of the external environment of the electronic device 100 when the locking current I is not loaded, then when the abnormal sound repair method is executed next time, the first microphone 31 detects the loudness value H1 of the external environment of the electronic device 100 when the locking current I is not loaded, and the second microphone 33 detects the loudness value H2 of the abnormal sound when the locking current I is not loaded, which are respectively the same as the existing H1 and the existing H2 stored in the storage module 19. The locking module 17 can immediately read the locking current I corresponding to the existing H1 and the existing H2 in the storage module 19, and use the locking current I to perform the locking operation to complete the abnormal sound repair method without other steps, so that the locking logic of the entire abnormal sound repair method is simple and fast, which can save power consumption and improve the repair efficiency.

[0103] Similarly, for the electronic device 100, when the first microphone 31 detects that the loudness value H1 of the external environment of the electronic device 100 is not loaded with the locking current I, and the loudness value H2 of the abnormal sound when the second microphone 33 detects that the locking current I is not loaded is respectively the same as the existing H1 and the existing H2 stored in the memory 60, the processor 70 can immediately read the locking current I corresponding to the existing H1 and the existing H2 in the memory 60, and use the locking current I to perform the locking operation to complete the abnormal sound repair method without the need for other steps, making the locking logic of the entire abnormal sound repair method simple and fast, which can save power consumption and improve the repair efficiency.

[0104] In addition, the electronic device 100 of the embodiment of the present application may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The electronic device 100 includes a processor 70, a memory 60, an input / output interface, a communication interface, a display unit and an input device. The processor 70, the memory 60 and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor 70 of the electronic device 100 is used to provide computing and control capabilities. The memory 60 of the electronic device 100 includes a non-volatile storage medium and an internal memory 60.

[0105] The non-volatile storage medium stores an operating system and a computer program. The internal memory 60 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device 100 is used to exchange information between the processor 70 and an external device. The communication interface of the electronic device 100 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The display unit of the electronic device 100 is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device 100 can be a touch layer covered on the display screen, or a key, a trackball or a touch pad provided on the housing of the electronic device 100, or an external keyboard, touch pad or mouse, etc.

[0106] See also Fig.12 The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the computer program is executed by the processor 70, the abnormal sound repair method of the shooting module of any of the above-mentioned embodiments is implemented.

[0107] Those skilled in the art will understand that the structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device 100 to which the scheme of the present application is applied. The specific electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0109] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0110] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor 7050, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory 60 (RAM), a read-only memory 60 (ROM), an erasable and editable read-only memory 60 (EPROM or flash memory 60), a fiber optic device, and a portable compact disk read-only memory 60 (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then stored in the computer memory 60.

[0111] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, multiple steps or methods can be implemented by software or firmware stored in the memory 60 and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0112] A person of ordinary skill in the art will appreciate that all or part of the steps carried by the method for implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment. In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory 60, a disk or an optical disk, etc.

[0113] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. The scope of the present application is defined by the claims and their equivalents.

Claims

1. A method for repairing abnormal noise of a shooting module, characterized in that: include: When the locking logic of the lens of the shooting module in the electronic device is activated, the locking current I of the lens is obtained according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound caused by the movement of the electronic device, and the driving current function of the preset driver; and The locking current is supplied to the driver of the lens to lock the lens.

2. The abnormal noise repair method according to claim 1, characterized in that: Also includes: Detecting the movement of the electronic device; When the electronic device is in motion, detecting an external environment of the electronic device; When the external environment indicates that the electronic device is being used, detecting the influence of abnormal noise caused by the movement of the electronic device on the user; In the case where the abnormal sound affects the user, detecting a loudness value H2 of the abnormal sound; and Whether to start the lens locking logic is determined according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound, a preset first loudness threshold a1, and a preset first difference threshold b1.

3. The abnormal noise repair method according to claim 2, characterized in that: The detecting the movement of the electronic device comprises: Acquiring the angular velocity and angular acceleration of the electronic device; Processing the angular velocity and angular acceleration of the electronic device to obtain the vibration frequency f and vibration amplitude A of the electronic device; and When the vibration frequency f is greater than the preset frequency f0 and the vibration amplitude A is greater than the preset amplitude A0, it is confirmed that the electronic device is moving.

4. The abnormal noise repair method according to claim 2, characterized in that: The detecting of the influence of the abnormal sound caused by the movement of the electronic device on the user includes: Detecting a loudness value H1 of an external environment of the electronic device; In the case of H1≥H0+b2, it is determined that the abnormal sound does not affect the user; In the case of H1<H0+b2, it is determined that the abnormal sound affects the user, wherein H0 is the maximum value of the abnormal sound that may be caused by the movement of the electronic device, and b2 is a preset second difference threshold.

5. The abnormal noise repair method according to claim 1, characterized in that: The determining whether to start the lens locking logic according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound, a preset first loudness threshold a1, and a preset first difference threshold b1 includes: In the case that H2>a1 and H2>H1-b1, it is determined that the locking logic of the lens is started.

6. The abnormal noise repair method according to any one of claims 1 to 5, characterized in that: The step of obtaining the locking current I of the lens according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound caused by the movement of the electronic device, and a preset driving current function of the driver includes: Obtaining a first intermediate difference value H5 according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound, and a third difference threshold value b3; Obtaining a second intermediate difference H6 according to the loudness value H2 of the abnormal sound and a preset second loudness threshold a2; Obtaining a suppressed loudness H according to the first middle difference H5 and the second middle difference H6; and The locking current I of the lens is calculated according to the suppressed loudness H and the driving current function of the driver.

7. The abnormal noise repair method according to any one of claims 1 to 5, characterized in that: Also includes: After the lens is locked, monitoring the loudness value H1 of the external environment of the electronic device and the loudness value H2 of the abnormal sound; When the loudness value H1 of the external environment of the electronic device and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2<H1-b5, confirming that the locking operation is as expected, wherein a3 is a preset third loudness threshold, a4 is a preset fourth loudness threshold, b4 is a preset fourth difference threshold, and b5 is a preset fifth difference threshold; Otherwise, return to the step of obtaining the locking current I of the lens until the locking operation meets expectations.

8. The abnormal noise repair method according to claim 7, characterized in that: Also includes: When the loudness value H1 of the external environment of the electronic device and the loudness value H2 of the abnormal sound satisfy: a3<H2<a4 or H1-b4<H2<H1-b5, an abnormal sound vector is established, wherein the abnormal sound vector includes the locking current I, the loudness value H2 of the abnormal sound when the locking current I is not loaded, and the loudness value H1 of the external environment of the electronic device when the locking current I is not loaded; and When the difference between H1 in the abnormal sound vector and H1 in the abnormal sound vector already in the memory is greater than the first preset threshold value Δ1, or the difference between H2 in the abnormal sound vector and H2 in the abnormal sound vector already in the memory is greater than the second preset threshold value Δ2, the name of the abnormal sound vector is noted and stored in the memory.

9. A device for repairing abnormal noise of a shooting module, characterized in that: include: A current acquisition module, when the locking logic of the lens of the shooting module in the electronic device is started, the current acquisition module is used to obtain the locking current I of the lens according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound caused by the movement of the electronic device, and the preset driving current function of the driver; and A locking module is used to pass the locking current to the driver of the lens to lock the lens.

10. The abnormal noise repair device according to claim 9, characterized in that: Also includes: A first acquisition module, the first acquisition module is used to acquire the movement status of the electronic device; a second acquisition module, wherein when the electronic device is in motion, the second acquisition module is used to acquire the external environment of the electronic device; a third acquisition module, for acquiring, when the external environment indicates that the electronic device is being used, the influence of the abnormal sound caused by the movement of the electronic device on the user; A fourth acquisition module, when the abnormal sound affects the user, the fourth acquisition module is used to obtain the loudness value H2 of the abnormal sound; and A determination module is used to determine whether to start the lens locking logic according to the loudness value H1 of the external environment of the electronic device, the loudness value H2 of the abnormal sound, a preset first loudness threshold a1, and a preset first difference threshold b1.

11. An electronic device, characterized in that: include: A shooting module, wherein the shooting module is used to shoot images; A microphone assembly, wherein the microphone assembly is used to obtain sound information; and A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the abnormal noise repair method according to any one of claims 1 to 8.

12. The electronic device according to claim 11, characterized in that: The microphone assembly comprises: A first microphone, the first microphone is used to detect a loudness value H1 of an external environment of the electronic device; and A second microphone is disposed within a preset distance range of the shooting module, and is used to detect a loudness value H2 of an abnormal sound of the electronic device.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the abnormal noise repair method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Method and device for eliminating abnormal sound of camera motor, electronic equipment and storage medium

    CN120415234A