Defective product detection method, device, equipment and computer readable storage medium
By detecting whether the target frequency response curve of the device to be inspected can fall within the preset frequency response curve range, the problem of defective product detection in ANC gain calibration is solved, ensuring product quality and user experience.
Patent Information
- Application Number
- CN202211040943.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-08-29
AI Technical Summary
During the product production process, due to differences in incoming materials and production processes, some products cannot be put into the market. How to detect and eliminate defective products during the ANC gain calibration process to avoid affecting the user experience.
By obtaining the target frequency response curve measured when the active noise reduction gain value of the device to be inspected is set to the optimal gain value, it is detected whether it can fall into the preset upper limit frequency response curve and the preset lower frequency limit through upward and downward translation. If it cannot fall within the sound curve, it is determined to be a defective product.
It realizes the detection of defective products during the ANC gain calibration process of the equipment to be inspected on the production line, avoiding the flow of defective products into the market and improving the user experience.
Smart Images

Figure CN115394279B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of product detection, and in particular to a defective product detection method, device, equipment and computer-readable storage medium. Background Art
[0002] In order to ensure the noise reduction effect of products with active noise reduction function, in the process of product production, considering the differences in incoming materials and assembly, it is necessary to perform ANC (active noise reduction) gain calibration for each product separately, and adjust the gain value (Gain) used by the product in the noise reduction process to achieve the individual optimal noise reduction effect. However, due to problems such as incoming materials and production processes, some defective products that cannot be put on the market will appear. In the process of ANC gain calibration, how to detect and eliminate defective products is a problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the present invention is to provide a defective product detection method, device, equipment and computer-readable storage medium, aiming to provide a defective product detection solution for detecting defective products during the ANC gain calibration process on the production line to prevent defective products from entering the market and affecting user experience.
[0004] To achieve the above object, the present invention provides a defective product detection method, which comprises the following steps:
[0005] Obtaining a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement;
[0006] Detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0007] If it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by translating upward and downward, the device to be inspected is determined to be a defective product.
[0008] Optionally, the step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward includes:
[0009] Subtract the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference value corresponding to each frequency point;
[0010] Subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point;
[0011] When each of the second frequency response difference values is greater than or equal to 0, and there is a first frequency response difference value greater than 0 and also a first frequency response difference value less than 0, compare the first maximum value with the first minimum value, wherein the first maximum value is the maximum value of each of the first frequency response difference values greater than 0, and the first minimum value is the minimum value of each of the second frequency response differences;
[0012] When the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0013] Optionally, the step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward further includes:
[0014] When each of the second frequency response difference values is greater than or equal to 0, and each of the first frequency response difference values is less than or equal to 0, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward;
[0015] When there is the first frequency response difference value greater than 0 and the first frequency response difference value less than 0, and there is the second frequency response difference value greater than 0 and the second frequency response difference value less than 0, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation.
[0016] Optionally, the step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward further includes:
[0017] When all the first frequency response difference values are less than or equal to 0, and there is a second frequency response difference value greater than 0 and there is also a second frequency response difference value less than 0, comparing the second maximum value with the second minimum value, wherein the second maximum value is the maximum value of all the second frequency response difference values less than 0, and the second minimum value is the minimum value of the absolute values of all the first frequency response difference values;
[0018] When the second minimum value is less than the second maximum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0019] Optionally, the step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward further includes:
[0020] When the first maximum value is less than or equal to the first minimum value, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0021] When the second minimum value is greater than or equal to the second maximum value, it is determined that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward.
[0022] Optionally, before the step of obtaining a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, the method further includes:
[0023] Acquire first test noise reduction curves respectively measured when the active noise reduction gain value of the device to be tested is set to various set gain values;
[0024] Calculating test noise reduction amount data corresponding to each of the first test noise reduction curves, wherein the test noise reduction amount data is an average noise reduction amount of the corresponding first test noise reduction curve in the preset frequency band or a noise reduction depth at the preset frequency point;
[0025] Fitting the test noise reduction amount data corresponding to various set gain values to obtain a noise reduction amount data curve;
[0026] An optimal gain value is determined from candidate gain values, wherein the candidate gain value is a gain value corresponding to preset standard noise reduction data in the noise reduction data curve.
[0027] Optionally, the step of determining the optimal gain value from the candidate gain values comprises:
[0028] Acquire a second test noise reduction curve measured when the active noise reduction gain value of the device to be tested is set to the candidate gain value;
[0029] Detecting whether the noise reduction amount data of the second test noise reduction curve meets the noise reduction amount requirement;
[0030] If the second test noise reduction curve meets the noise reduction amount requirement, the candidate gain value corresponding to the second test noise reduction curve is determined as the optimal gain value.
[0031] To achieve the above object, the present invention further provides a defective product detection device, the device comprising:
[0032] An acquisition module, used to acquire a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement;
[0033] A detection module, used to detect whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0034] The determination module is used to determine that the device to be inspected is a defective product if it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
[0035] To achieve the above objectives, the present invention also provides a defective product detection device, which includes: a memory, a processor, and a defective product detection program stored in the memory and executable on the processor. When the defective product detection program is executed by the processor, the steps of the above defective product detection method are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a defective product detection program is stored, and when the defective product detection program is executed by a processor, the steps of the above-mentioned defective product detection method are implemented.
[0037] In the present invention, by calibrating the active noise reduction gain value of the device to be inspected, the target frequency response curve measured when the active noise reduction gain value of the device to be inspected is set to the optimal gain value is obtained, wherein the noise reduction amount data in the preset frequency band or preset frequency point when the active noise reduction gain value of the device to be inspected is set to the optimal gain value meets the preset noise reduction amount requirement; if it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, the device to be inspected is determined to be a defective product. The present invention realizes a defective product detection scheme in the process of ANC gain calibration of the device to be inspected on the production line, which avoids defective products from entering the market and affecting the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the process of the first embodiment of the defective product detection method of the present invention;
[0040] Figure 3 A schematic diagram of a curve according to an embodiment of the present invention falling between a preset upper limit frequency response curve and a preset lower limit frequency response curve;
[0041] Figure 4 Schematic diagram of functional modules of a preferred embodiment of the defective product detection device of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0045] It should be noted that the defective product detection device in the embodiment of the present invention may be a headset, a smart phone, a personal computer, etc., and no specific limitation is made here. A brick recovery firmware area is set in the storage area of the embedded device.
[0046] like Figure 1 As shown, the defective product detection equipment may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0047] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the defective product detection device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0048] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a defective product detection program. The operating system is a program that manages and controls the hardware and software resources of the device and supports the operation of the defective product detection program and other software or programs. Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the defective product detection program stored in the memory 1005 and perform the following operations:
[0049] Obtaining a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement;
[0050] Detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0051] If it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by translating upward and downward, the device to be inspected is determined to be a defective product.
[0052] Further, the operation of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward includes:
[0053] Subtract the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference value corresponding to each frequency point;
[0054] Subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point;
[0055] When each of the second frequency response difference values is greater than or equal to 0, and there is a first frequency response difference value greater than 0 and also a first frequency response difference value less than 0, compare the first maximum value with the first minimum value, wherein the first maximum value is the maximum value of each of the first frequency response difference values greater than 0, and the first minimum value is the minimum value of each of the second frequency response differences;
[0056] When the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0057] Furthermore, the operation of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward may be performed by the processor 1001 to call a defective product detection program stored in the memory 1005 and perform the following operations:
[0058] When each of the second frequency response difference values is greater than or equal to 0, and each of the first frequency response difference values is less than or equal to 0, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward;
[0059] When there is the first frequency response difference value greater than 0 and the first frequency response difference value less than 0, and there is the second frequency response difference value greater than 0 and the second frequency response difference value less than 0, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation.
[0060] Furthermore, the operation of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward may be performed by the processor 1001 to call a defective product detection program stored in the memory 1005 and perform the following operations:
[0061] When all the first frequency response difference values are less than or equal to 0, and there is a second frequency response difference value greater than 0 and there is also a second frequency response difference value less than 0, comparing the second maximum value with the second minimum value, wherein the second maximum value is the maximum value of all the second frequency response difference values less than 0, and the second minimum value is the minimum value of the absolute values of all the first frequency response difference values;
[0062] When the second minimum value is less than the second maximum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0063] Furthermore, the operation of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward may be performed by the processor 1001 to call a defective product detection program stored in the memory 1005 and perform the following operations:
[0064] When the first maximum value is less than or equal to the first minimum value, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0065] When the second minimum value is greater than or equal to the second maximum value, it is determined that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward.
[0066] Furthermore, before the operation of obtaining the target frequency response curve measured when the active noise reduction gain value of the device to be inspected is set to the optimal gain value, the processor 1001 can also be used to call the defective product detection program stored in the memory 1005 to perform the following operations:
[0067] Acquire first test noise reduction curves respectively measured when the active noise reduction gain value of the device to be tested is set to various set gain values;
[0068] Calculating test noise reduction amount data corresponding to each of the first test noise reduction curves, wherein the test noise reduction amount data is an average noise reduction amount of the corresponding first test noise reduction curve in the preset frequency band or a noise reduction depth at the preset frequency point;
[0069] Fitting the test noise reduction amount data corresponding to various set gain values to obtain a noise reduction amount data curve;
[0070] An optimal gain value is determined from candidate gain values, wherein the candidate gain value is a gain value corresponding to preset standard noise reduction data in the noise reduction data curve.
[0071] Further, the operation of determining the optimal gain value from the candidate gain values includes:
[0072] Acquire a second test noise reduction curve measured when the active noise reduction gain value of the device to be tested is set to the candidate gain value;
[0073] Detecting whether the noise reduction amount data of the second test noise reduction curve meets the noise reduction amount requirement;
[0074] If the second test noise reduction curve meets the noise reduction amount requirement, the candidate gain value corresponding to the second test noise reduction curve is determined as the optimal gain value.
[0075] Based on the above structure, various embodiments of the defective product detection method are proposed.
[0076] Reference Figure 2 , Figure 2 Schematic diagram of the process of the first embodiment of the defective product detection method of the present invention.
[0077] The embodiments of the present invention provide an embodiment of a defective product detection method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that here. In this embodiment, the execution subject of the defective product detection method may be a personal computer, a smart phone, a server or other device, which is not limited in this embodiment. In this embodiment, the defective product detection method includes:
[0078] Step S10, obtaining a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement;
[0079] The device to be inspected may be a device configured with an active noise reduction function, such as a headphone device. The active noise reduction gain value is the gain value used by the device to be inspected when processing the sound signal during active noise reduction. On the production line, it is necessary to calibrate the active noise reduction gain value of the device to be inspected, find the optimal gain value, and burn it into the device to be inspected in advance. In this embodiment, by performing defective inspection on the device to be inspected when calibrating the active noise reduction gain value of the device to be inspected, it is possible to prevent defective products from entering the market and affecting the user experience.
[0080] Specifically, after the active noise reduction gain value of the device to be inspected is calibrated and the optimal gain value is determined, the active noise reduction gain value of the device to be inspected can be set to the optimal gain value, and then the frequency response curve of the active noise reduction can be tested (hereinafter, the frequency response curve measured at the optimal gain value will be referred to as the target frequency response curve for distinction). The condition that the optimal gain value satisfies is that when the active noise reduction gain value of the device to be inspected is set to the optimal gain value, the noise reduction amount data of the device to be inspected in a preset frequency band or a preset frequency point meets the preset noise reduction amount requirement. In specific application scenarios, different noise reduction amount requirements are set according to different noise reduction performance requirements of the device to be inspected. For example, it can be set to an average noise reduction amount within a preset frequency band within a certain range, or to a noise reduction depth at a preset frequency point within a certain range. In this embodiment, there is no restriction on the method of determining the optimal gain value by calibrating the active noise reduction gain value for the device to be inspected, and there is no restriction on the method of testing the frequency response curve of the device to be inspected.
[0081] Step S20, detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0082] When the active noise reduction gain value of the device to be tested is set to the optimal gain value so that the noise reduction performance of the device to be tested meets the requirements, the frequency response curve of the device to be tested at the optimal gain value may not meet the actual requirements, that is, it is a defective product. In this embodiment, after obtaining the target frequency response curve, it can be detected whether the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, so as to detect whether the frequency response curve of the device to be tested at the optimal gain value meets the actual requirements. Among them, the preset upper limit frequency response curve and the preset lower limit frequency response curve are set in advance according to the needs.
[0083] It should be noted that the horizontal axis of the frequency response curve is frequency, and the vertical axis is loudness. Shifting the frequency response curve upward is to shift the curve in the positive direction of the vertical axis, and shifting the frequency response curve downward is to shift the curve in the negative direction of the vertical axis. In this embodiment, there is no limitation on the specific method of detecting whether the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting upward and downward. The method of directly shifting the curve can also be used. Indirect calculation method can also be used. For example, in one embodiment, the method of directly translating the curve may specifically be to translate the target frequency response curve upward and downward for a limited number of times, respectively, the step size of each translation is pre-set according to the needs, and after each translation, it is detected whether the target frequency response curve falls between a preset upper limit frequency response curve and a preset lower limit frequency response curve; if so, the translation is terminated, and it is determined that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve through upward and downward translation; if after each translation, the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve, it can be determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve through upward and downward translation.
[0084] It should be noted that a curve falling between the preset upper frequency response curve and the preset lower frequency response curve means that the loudness of each frequency point of the curve is within the range formed by the loudness of the corresponding frequency points in the preset upper frequency response curve and the preset lower frequency response curve. For example, the loudness of the i-th frequency point of curve A is expressed as D1 i , the loudness of the i-th frequency point in the preset upper limit frequency response curve is expressed as D2 i , the loudness of the i-th frequency point in the preset lower limit frequency response curve is expressed as D3 i , then, curve A falls between the preset upper frequency response curve and the preset lower frequency response curve means: for any frequency point i in curve A, there is D3 i ≤D1 i ≤D2 i .like Figure 3 As shown, assuming that the top curve is the preset upper limit frequency response curve and the bottom curve is the preset lower limit frequency response curve, the middle curve is considered to fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve.
[0085] Step S30: If it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by translating upward and downward, then the device to be inspected is determined to be a defective product.
[0086] If it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, it can be explained that the device under test cannot ensure that the frequency response curve meets the actual needs when the noise reduction amount meets the requirements. At this time, it can be determined that the device under test is a defective product, thereby preventing defective products from entering the market and affecting user experience.
[0087] Furthermore, if it is determined that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, it can be explained that the frequency response curve of the device to be tested also meets the actual needs when the noise reduction amount meets the requirements. At this time, the device to be tested can be directly determined to be a good product, or other tests can be further performed on the device to be tested as needed, and the device to be tested can be determined to be a good product when other tests are also qualified.
[0088] In this embodiment, during the process of calibrating the active noise reduction gain value of the device to be inspected, the target frequency response curve measured when the active noise reduction gain value of the device to be inspected is set to the optimal gain value is obtained, wherein the noise reduction amount data in the preset frequency band or preset frequency point when the active noise reduction gain value of the device to be inspected is set to the optimal gain value meets the preset noise reduction amount requirement; if it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, the device to be inspected is determined to be a defective product. This embodiment implements a defective product detection solution in the process of ANC gain calibration of the device to be inspected on the production line, which prevents defective products from entering the market and affecting the user experience.
[0089] Further, in one embodiment, based on the above-mentioned first embodiment, a second embodiment of the defective product detection method of the present invention is proposed. In this embodiment, the step S20 includes:
[0090] Step S201, subtracting the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference corresponding to each frequency point;
[0091] In this embodiment, in order to improve the efficiency of defective product detection, a specific implementation method is proposed to indirectly detect whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by upward and downward translation.
[0092] Specifically, the loudness of each frequency point in the target frequency response curve can be subtracted from the loudness of the corresponding frequency point in the preset upper limit frequency response curve to obtain a difference value corresponding to each frequency point (hereinafter referred to as the first frequency response difference value for distinction). That is, assuming that the loudness of the i-th frequency point in the target frequency response curve is expressed as D1 i , the loudness of the i-th frequency point in the preset upper limit frequency response curve is expressed as D2 i , then, the first frequency response difference corresponding to the i-th frequency point is P12i =D1 i -D2 i .
[0093] Step S202, subtracting the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point;
[0094] Subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a difference value corresponding to each frequency point (hereinafter referred to as the second frequency response difference value for distinction). That is, assuming that the loudness of the i-th frequency point in the target frequency response curve is expressed as D1 i , the loudness of the i-th frequency point in the preset lower limit frequency response curve is expressed as D3 i , then, the second frequency response difference corresponding to the i-th frequency point is P13 i =D1 i -D3 i .
[0095] Step S203: when all the second frequency response difference values are greater than or equal to 0, and there are first frequency response difference values greater than 0 and there are first frequency response difference values less than 0, compare a first maximum value with a first minimum value, wherein the first maximum value is the maximum value of all the first frequency response difference values greater than 0, and the first minimum value is the minimum value of all the second frequency response difference values;
[0096] It may be detected whether each second frequency response difference value is greater than or equal to 0, and it may be detected whether each first frequency response difference value is less than or equal to 0.
[0097] When each second frequency response difference is greater than or equal to 0, and there is a first frequency response difference greater than 0 and a first frequency response difference less than 0, it means that the target frequency response curve is above the preset lower limit frequency response curve, but intersects with the preset upper limit frequency response curve, and the target frequency response curve itself is not between the preset upper limit frequency response curve and the preset lower limit frequency response curve. At this time, a maximum value (hereinafter referred to as the first maximum value for distinction) can be determined from each first frequency response difference greater than 0, and a minimum value (hereinafter referred to as the first minimum value for distinction) can be determined from each second frequency response difference. Compare the first maximum value with the first minimum value.
[0098] Step S204: when the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
[0099] When the first maximum value is greater than the first minimum value, it means that when the target frequency response curve is shifted downward, either the lowest point in the curve will move below the preset lower limit frequency response curve, or the highest point in the curve will move above the preset upper limit frequency response curve. That is, it can be determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting upward and downward, and thus the equipment to be inspected can be determined to be defective.
[0100] Furthermore, in one embodiment, step S20 further includes:
[0101] Step S205, when each of the second frequency response difference values is greater than or equal to 0, and each of the first frequency response difference values is less than or equal to 0, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward;
[0102] When each second frequency response difference is greater than or equal to 0, and each first frequency response difference is less than or equal to 0, it means that the target frequency response curve itself is between the preset upper limit frequency response curve and the preset lower limit frequency response curve. At this time, it can be determined that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting upward and downward.
[0103] Step S206: when there is the first frequency response difference value greater than 0 and the first frequency response difference value less than 0, and there is the second frequency response difference value greater than 0 and the second frequency response difference value less than 0, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by translating upward and downward.
[0104] When there is a first frequency response difference value greater than 0 and a first frequency response difference value less than 0, and there is a second frequency response difference value greater than 0 and a second frequency response difference value less than 0, it means that the target frequency response curve intersects with both the preset upper limit frequency response curve and the preset lower limit frequency response curve. At this time, whether by moving up or down, the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve, that is, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation, and then it can be determined that the equipment to be inspected is defective.
[0105] Furthermore, in one embodiment, step S20 further includes:
[0106] Step S207: when all the first frequency response difference values are less than or equal to 0, and there is a second frequency response difference value greater than 0 and there is also a second frequency response difference value less than 0, compare the second maximum value with the second minimum value, wherein the second maximum value is the maximum value of the second frequency response difference values less than 0, and the second minimum value is the minimum value of the absolute values of the first frequency response difference values;
[0107] When all first frequency response differences are less than or equal to 0, and there are second frequency response differences greater than 0 and less than 0, it means that the target frequency response curve is below the preset upper frequency response curve, but intersects with the preset lower frequency response curve, and the target frequency response curve itself is not between the preset upper frequency response curve and the preset lower frequency response curve. At this time, the maximum value (hereinafter referred to as the second maximum value for distinction) can be determined from the second frequency response differences less than 0, and the minimum value (hereinafter referred to as the second minimum value for distinction) can be determined from the absolute values of the first frequency response differences. The second maximum value is compared with the second minimum value.
[0108] Step S208: when the second minimum value is less than the second maximum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
[0109] When the second minimum value is less than the second maximum value, it means that when the target frequency response curve is shifted upward, either the highest point in the curve will move above the preset upper limit frequency response curve, or the lowest point in the curve will move below the preset lower limit frequency response curve. That is, it can be determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting upward and downward, and thus the equipment to be inspected can be determined to be defective.
[0110] Furthermore, in one embodiment, step S20 further includes:
[0111] Step S209, when the first maximum value is less than or equal to the first minimum value, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0112] When the first maximum value is less than or equal to the first minimum value, it indicates that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting downward, that is, it can be determined that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by shifting upward and downward.
[0113] Step S210: when the second minimum value is greater than or equal to the second maximum value, it is determined that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
[0114] When the second minimum value is greater than or equal to the second maximum value, it indicates that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward translation, that is, it can be determined that the target frequency response curve can fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation.
[0115] Further, based on the above-mentioned first and / or second embodiments, a second embodiment of the defective product detection method of the present invention is proposed. In this embodiment, before step S10, the method further includes:
[0116] Step S40, obtaining first test noise reduction curves respectively measured when the active noise reduction gain value of the device to be tested is set to various set gain values;
[0117] In this embodiment, a method for detecting an optimal gain value before defective product detection is proposed. Specifically, multiple gain values (hereinafter referred to as set gain values for distinction) can be set in advance as needed, and each set gain value is sequentially written into the device to be inspected, and each time a set gain value is written, the noise reduction curve of the device to be inspected is tested once (hereinafter referred to as the first test noise reduction curve for distinction).
[0118] There are many ways to test the noise reduction curve of the device to be tested, which are not limited in this embodiment. For example, in one embodiment, the active noise reduction function of the device to be tested can be started. When the active noise reduction function is turned on, a standard test sound signal is played through a speaker set in the test environment; the device to be tested performs the active noise reduction function and outputs the noise reduction sound signal through the speaker; the sound signal is collected by an artificial ear set for the device to be tested in the test environment, and a frequency response curve (called an active frequency response curve for distinction) is calculated by the collected sound signal; the active noise reduction function of the device to be tested is turned off. When the active noise reduction function is turned off, a standard test sound signal is played through a speaker set in the test environment; the device to be tested does not perform active noise reduction processing; the sound signal is collected by an artificial ear set for the point device in the test environment, and a frequency response curve (called a passive frequency response curve for distinction) is calculated by the collected sound signal; the loudness of each frequency point in the active frequency response curve is subtracted from the loudness of the corresponding frequency point in the passive frequency response curve, and a noise reduction curve composed of the loudness difference of each frequency point can be obtained.
[0119] Step S50, calculating the test noise reduction amount data corresponding to each of the first test noise reduction curves, wherein the test noise reduction amount data is the average noise reduction amount of the corresponding first test noise reduction curve in the preset frequency band or the noise reduction depth at the preset frequency point;
[0120] After obtaining each first test noise reduction curve, the test noise reduction amount data of each first test noise reduction curve can be calculated respectively. The test noise reduction amount data can specifically be the average noise reduction amount of the corresponding first test noise reduction curve in a preset frequency band, or the noise reduction depth at a preset frequency point, which can be set according to the different active noise reduction performance requirements of the device to be tested in the actual application scenario, and is not limited here.
[0121] Step S60, fitting the test noise reduction amount data corresponding to various set gain values to obtain a noise reduction amount data curve;
[0122] It can be understood that each set gain value corresponds to a first test noise reduction curve, and each first test noise reduction curve corresponds to a test noise reduction amount data, so each set gain value corresponds to a test noise reduction amount data. The test noise reduction amount data corresponding to various set gain values are fitted to obtain a curve (hereinafter referred to as the noise reduction amount data curve), and the noise reduction amount data curve is a curve in which the noise reduction amount data changes with the gain value. There are many ways to fit the data points into a curve, which is not limited in this embodiment.
[0123] Step S70, determining an optimal gain value from candidate gain values, wherein the candidate gain value is a gain value corresponding to a preset standard noise reduction amount data in the noise reduction amount data curve.
[0124] The standard noise reduction data may be set in advance according to the noise reduction performance requirements of the device to be tested. When the test noise reduction data is the average noise reduction of the corresponding first test noise reduction curve within a preset frequency band, the standard noise reduction data may be set to the standard average noise reduction within the preset frequency band; when the test noise reduction data is the noise reduction depth of the corresponding first test noise reduction curve at a preset frequency point, the standard noise reduction data may be set to the standard noise reduction depth at the preset frequency point.
[0125] A gain value corresponding to the preset standard noise reduction amount data is found from the noise reduction amount data curve, and the gain value is used as an alternative gain value. There may be one or more alternative gain values. When the number of alternative gain values is 1, the alternative gain value can be used as the optimal gain value. When the number of alternative gain values is multiple, the optimal gain value can be determined from each alternative gain value.
[0126] Further, in one embodiment, step S70 includes:
[0127] Step S701, obtaining a second test noise reduction curve measured when the active noise reduction gain value of the device to be tested is set to the candidate gain value;
[0128] Step S702, detecting whether the noise reduction amount data of the second test noise reduction curve meets the noise reduction amount requirement;
[0129] Step S703: If the second test noise reduction curve meets the noise reduction requirement, the candidate gain value corresponding to the second test noise reduction curve is determined as the optimal gain value.
[0130] Determining the optimal gain value from each candidate gain value can specifically be to write each candidate gain value into the device to be tested in turn, measure the noise reduction curve of the device to be tested under each candidate gain value (hereinafter referred to as the second test noise reduction curve), and calculate the noise reduction data volume corresponding to the second test noise reduction curve, determine whether the noise reduction data volume meets the noise reduction volume requirement, and use the candidate gain value corresponding to the noise reduction data volume that meets the noise reduction volume requirement as the optimal gain value. It should be noted that there is generally only one candidate gain value corresponding to the noise reduction data volume that meets the noise reduction volume requirement.
[0131] In order to further improve the detection efficiency of the optimal gain value, in one embodiment, the order in which the various alternative gain values of the device to be detected are written into the device to be detected can be determined according to the selection rule of the optimal gain value of the device (the detected device) that has been detected before the device to be detected in the corresponding various alternative gain values; and after the alternative gain value is written into the device to be detected, when it is detected that the noise reduction amount data corresponding to the alternative gain value meets the noise reduction amount requirement, the alternative gain value can be determined to be the optimal gain value, and no other alternative gain values are written. For example, when the optimal gain values of the detected devices exceeding a preset ratio are all the maximum values among the corresponding various alternative gain values, the maximum value among the various alternative gain values of the device to be detected can be written into the device to be detected first. If the amount of noise reduction data corresponding to the maximum value is confirmed to meet the noise reduction amount requirement, the maximum value can be directly used as the optimal gain value, and no other alternative gain values are written, thereby saving detection time.
[0132] In addition, the embodiment of the present invention also provides a defective product detection device, referring to Figure 4 , the defective product detection device includes:
[0133] An acquisition module 10 is used to acquire a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement;
[0134] A detection module 20, used to detect whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0135] The determination module 30 is configured to determine that the device to be inspected is a defective product if it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
[0136] Furthermore, the detection module 20 is also used for:
[0137] Subtract the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference value corresponding to each frequency point;
[0138] Subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point;
[0139] When each of the second frequency response difference values is greater than or equal to 0, and there is a first frequency response difference value greater than 0 and also a first frequency response difference value less than 0, compare the first maximum value with the first minimum value, wherein the first maximum value is the maximum value of each of the first frequency response difference values greater than 0, and the first minimum value is the minimum value of each of the second frequency response differences;
[0140] When the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0141] Furthermore, the detection module 20 is also used for:
[0142] When each of the second frequency response difference values is greater than or equal to 0, and each of the first frequency response difference values is less than or equal to 0, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward;
[0143] When there is the first frequency response difference value greater than 0 and the first frequency response difference value less than 0, and there is the second frequency response difference value greater than 0 and the second frequency response difference value less than 0, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation.
[0144] Furthermore, the detection module 20 is also used for:
[0145] When all the first frequency response difference values are less than or equal to 0, and there is a second frequency response difference value greater than 0 and there is also a second frequency response difference value less than 0, comparing the second maximum value with the second minimum value, wherein the second maximum value is the maximum value of all the second frequency response difference values less than 0, and the second minimum value is the minimum value of the absolute values of all the first frequency response difference values;
[0146] When the second minimum value is less than the second maximum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
[0147] Furthermore, the detection module 20 is also used for:
[0148] When the first maximum value is less than or equal to the first minimum value, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward;
[0149] When the second minimum value is greater than or equal to the second maximum value, it is determined that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward.
[0150] Furthermore, the acquisition module 10 is also used for:
[0151] Acquire first test noise reduction curves respectively measured when the active noise reduction gain value of the device to be tested is set to various set gain values;
[0152] The defective product detection device also includes:
[0153] a calculation module, configured to calculate test noise reduction amount data corresponding to each of the first test noise reduction curves, wherein the test noise reduction amount data is an average noise reduction amount of the corresponding first test noise reduction curve within the preset frequency band or a noise reduction depth at the preset frequency point;
[0154] A fitting module, used for fitting the test noise reduction amount data corresponding to various set gain values to obtain a noise reduction amount data curve;
[0155] The determination module 30 is further configured to determine an optimal gain value from candidate gain values, wherein the candidate gain value is a gain value corresponding to a preset standard noise reduction amount data in the noise reduction amount data curve.
[0156] Furthermore, the determining module 30 is further configured to:
[0157] Acquire a second test noise reduction curve measured when the active noise reduction gain value of the device to be tested is set to the candidate gain value;
[0158] Detecting whether the noise reduction amount data of the second test noise reduction curve meets the noise reduction amount requirement;
[0159] If the second test noise reduction curve meets the noise reduction amount requirement, the candidate gain value corresponding to the second test noise reduction curve is determined as the optimal gain value.
[0160] The various embodiments of the defective product detection device of the present invention can refer to the various embodiments of the defective product detection method of the present invention, and will not be described in detail here.
[0161] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a defective product detection program is stored. When the defective product detection program is executed by a processor, the following steps of the defective product detection method are implemented.
[0162] The various embodiments of the defective product detection device and the computer-readable storage medium of the present invention can all refer to the various embodiments of the defective product detection method of the present invention, and will not be described in detail here.
[0163] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0164] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0165] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0166] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A defective product detection method, characterized in that: The method comprises the following steps: Obtaining a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement; Detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward; If it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by translating upward and downward, then the device to be inspected is determined to be a defective product; The step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward includes: Subtract the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference value corresponding to each frequency point; Subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point; When each of the second frequency response difference values is greater than or equal to 0, and there is a first frequency response difference value greater than 0 and also a first frequency response difference value less than 0, compare the first maximum value with the first minimum value, wherein the first maximum value is the maximum value of each of the first frequency response difference values greater than 0, and the first minimum value is the minimum value of each of the second frequency response differences; When the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
2. The defective product detection method according to claim 1, characterized in that: The step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward also includes: When each of the second frequency response difference values is greater than or equal to 0, and each of the first frequency response difference values is less than or equal to 0, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward; When there is the first frequency response difference value greater than 0 and the first frequency response difference value less than 0, and there is the second frequency response difference value greater than 0 and the second frequency response difference value less than 0, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation.
3. The defective product detection method according to claim 1, characterized in that: The step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward also includes: When all the first frequency response difference values are less than or equal to 0, and there is a second frequency response difference value greater than 0 and there is also a second frequency response difference value less than 0, comparing the second maximum value with the second minimum value, wherein the second maximum value is the maximum value of all the second frequency response difference values less than 0, and the second minimum value is the minimum value of the absolute values of all the first frequency response difference values; When the second minimum value is less than the second maximum value, it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve through upward and downward translation.
4. The defective product detection method according to claim 3, characterized in that: The step of detecting whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward also includes: When the first maximum value is less than or equal to the first minimum value, determining that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward; When the second minimum value is greater than or equal to the second maximum value, it is determined that the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by shifting upward and downward.
5. The defective product detection method according to any one of claims 1 to 4, characterized in that: Before the step of obtaining the target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to the optimal gain value, the method further includes: Acquire first test noise reduction curves respectively measured when the active noise reduction gain value of the device to be tested is set to various set gain values; Calculating test noise reduction amount data corresponding to each of the first test noise reduction curves, wherein the test noise reduction amount data is an average noise reduction amount of the corresponding first test noise reduction curve in the preset frequency band or a noise reduction depth at the preset frequency point; Fitting the test noise reduction amount data corresponding to various set gain values to obtain a noise reduction amount data curve; An optimal gain value is determined from candidate gain values, wherein the candidate gain value is a gain value corresponding to preset standard noise reduction amount data in the noise reduction amount data curve.
6. The defective product detection method according to claim 5, characterized in that: The step of determining the optimal gain value from the candidate gain values comprises: Acquire a second test noise reduction curve measured when the active noise reduction gain value of the device to be tested is set to the candidate gain value; Detecting whether the noise reduction amount data of the second test noise reduction curve meets the noise reduction amount requirement; If the second test noise reduction curve meets the noise reduction amount requirement, the candidate gain value corresponding to the second test noise reduction curve is determined as the optimal gain value.
7. A defective product detection device, characterized in that: The device comprises: An acquisition module, used to acquire a target frequency response curve measured when the active noise reduction gain value of the device to be tested is set to an optimal gain value, wherein the noise reduction amount data in a preset frequency band or a preset frequency point when the active noise reduction gain value of the device to be tested is set to the optimal gain value meets the preset noise reduction amount requirement; a detection module, configured to detect whether the target frequency response curve can fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by upward and downward translation; the detection module is further configured to subtract the loudness of the corresponding frequency point in the preset upper limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a first frequency response difference value corresponding to each frequency point; subtract the loudness of the corresponding frequency point in the preset lower limit frequency response curve from the loudness of each frequency point in the target frequency response curve to obtain a second frequency response difference value corresponding to each frequency point; when each of the second frequency response difference values is greater than or equal to 0, and there is a first frequency response difference value greater than 0 and a first frequency response difference value less than 0, compare a first maximum value with a first minimum value, wherein the first maximum value is a maximum value among each of the first frequency response difference values greater than 0, and the first minimum value is a minimum value among each of the second frequency response difference values; when the first maximum value is greater than the first minimum value, it is determined that the target frequency response curve cannot fall between the preset upper limit frequency response curve and the preset lower limit frequency response curve by upward and downward translation; The determination module is used to determine that the device to be inspected is a defective product if it is determined that the target frequency response curve cannot fall between a preset upper limit frequency response curve and a preset lower limit frequency response curve by translating upward and downward.
8. A defective product detection device, characterized in that: The defective product detection device comprises: a memory, a processor, and a defective product detection program stored in the memory and executable on the processor, wherein the defective product detection program implements the steps of the defective product detection method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a defective product detection program, and when the defective product detection program is executed by the processor, the steps of the defective product detection method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Wireless earphone anomaly detection method and structure
CN112822623A
Testing method of noise reduction equipment and noise reduction testing device
CN113423036A
