Sound detection method, device, electronic equipment and computer medium

Through the use of audio detection methods and transparent exhaust hoods, the problem of complicated waterproof audio air tightness detection steps is solved, the detection efficiency is improved and the process is simplified.

CN118338234BActive Publication Date: 2024-10-18SHENZHEN MTN ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410756975.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-18
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

In the existing technology, the air tightness test of waterproof speakers requires direct immersion in water for testing, which results in cumbersome steps and low efficiency.

Method used

Using the audio detection method, by generating the audio appearance detection result set and test status type, using the transparent exhaust hood and air pressure signal to perform air tightness verification, generating an air tightness verification mark to determine whether the audio meets the air tightness conditions, and Transfer it to the area to be packed.

Benefits of technology

It improves the efficiency of audio air tightness testing, simplifies testing steps, and reduces the need for water treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118338234B_ABST
    Figure CN118338234B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose an audio detection method, device, electronic device and computer medium. A specific implementation of the method includes: generating an audio appearance detection result set according to a speaker image set corresponding to the speaker; generating a test state type for the speaker according to the speaker image set, wherein the speaker image set is a monitoring image of the speaker at multiple angles, and the test state type includes: a test start type, a test in progress type and a test end type; in response to the test state type being a test end type and receiving an airtightness verification signal, performing an air extraction operation on the transparent exhaust hood corresponding to the speaker, and obtaining a transparent exhaust hood image set, wherein the transparent exhaust hood image set is a monitoring image of the inside of the transparent exhaust hood under a positive viewing angle; generating an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal. This implementation improves the efficiency of audio airtightness detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of sound detection, and in particular to a sound detection method, device, electronic device, and computer medium. Background Art

[0002] Speakers specifically refer to an audio system that produces sound through a combination of electrical equipment. In order to ensure that the speakers (magnetically charged Bluetooth speakers) can still be used after being exposed to water, speakers with waterproof functions are designed. At present, the airtightness test of waterproof speakers is usually carried out by directly immersing the speakers in water for testing.

[0003] However, when the above method is used to test the air tightness of waterproof speakers, the following technical problems often occur: since the speakers are mass-produced and directly immersed in water for testing, the water on the tested speakers needs to be processed, and the testing steps are relatively cumbersome.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0006] Some embodiments of the present disclosure provide a sound detection method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a sound detection method, the method comprising: for each speaker in a speaker test area, executing the following processing steps: generating a sound appearance detection result set based on a speaker image set corresponding to the above-mentioned speaker; generating a test status type for the above-mentioned speaker based on the above-mentioned speaker image set, wherein the above-mentioned speaker image set is a monitoring image of the above-mentioned speaker from multiple angles, and the above-mentioned test status type includes: a test start type, a test in progress type and a test end type, the above-mentioned speaker test area is used to place the speaker, the above-mentioned speaker test area is located in a speaker test operation cabin, and each speaker is placed in a transparent exhaust hood in the operation cabin. Each speaker has been vacuum treated; in response to the test state type being the test end type and receiving an airtightness verification signal, performing an air extraction operation on the transparent exhaust hood corresponding to the speaker, and obtaining a transparent exhaust hood image set, wherein the transparent exhaust hood image set is a monitoring image of the transparent exhaust hood under a front viewing angle; generating an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal; in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification conditions, and determining that the audio appearance detection result set meets the appearance detection conditions, the speaker is transferred to the area to be packaged.

[0008] In a second aspect, some embodiments of the present disclosure provide an audio detection device, including: an audio detection unit, configured to perform the following processing steps for each speaker in a speaker test area: generating an audio appearance detection result set based on a speaker image set corresponding to the above-mentioned speaker; generating a test status type for the above-mentioned speaker based on the above-mentioned speaker image set, wherein the above-mentioned speaker image set is a monitoring image of multiple angles for the above-mentioned speaker, and the above-mentioned test status type includes: a test start type, a test in progress type, and a test end type; the above-mentioned speaker test area is used to place speakers, and the above-mentioned speaker test area is located in a speaker test operation cabin, and each speaker is placed in a transparent In the transparent exhaust hood, each speaker has been vacuum treated; in response to the test state type being the test end type and receiving an airtightness verification signal, an air extraction operation is performed on the transparent exhaust hood corresponding to the speaker, and a transparent exhaust hood image set is obtained, wherein the transparent exhaust hood image set is a monitoring image of the transparent exhaust hood under a front viewing angle; an airtightness verification mark is generated according to the transparent exhaust hood image set and the air pressure signal; in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification condition, and determining that the audio appearance detection result set meets the appearance detection condition, the speaker is transferred to the area to be packaged.

[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0011] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the sound detection method of some embodiments of the present disclosure, the efficiency of the sound airtightness detection is improved. Specifically, the reason why the test steps are relatively cumbersome is that: since the sound will be mass-produced, it is directly immersed in water for testing, and the water on the sound after the test needs to be processed, and the test steps are relatively cumbersome. Based on this, the sound detection method of some embodiments of the present disclosure, first, generates a sound appearance detection result set according to the sound box image set corresponding to the above-mentioned sound box. In this way, it can be detected whether the appearance of the sound box is abnormal. Secondly, according to the above-mentioned sound box image set, a test state type for the above-mentioned sound box is generated. Among them, the above-mentioned sound box image set is a monitoring image of multiple angles for the above-mentioned sound box, and the above-mentioned test state type includes: test start type, test type and test end type, the above-mentioned sound box test area is used to place the sound box, and the above-mentioned sound box test area is located in the sound box test operation cabin, each sound box is placed in a transparent exhaust hood in the operation cabin, and each sound box has been vacuumed. In this way, it can be determined whether the sound box test is completed. Next, in response to the test state type being the test end type and receiving an airtightness verification signal, an air extraction operation is performed on the transparent exhaust hood corresponding to the speaker, and a transparent exhaust hood image set is obtained. The transparent exhaust hood image set is a monitoring image of the transparent exhaust hood under a frontal viewing angle. In this way, an airtightness test can be performed on the speaker. Then, an airtightness verification mark is generated based on the transparent exhaust hood image set and the air pressure signal. In this way, it can be determined whether the speaker meets the airtightness condition. Finally, in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification condition, and determining that the appearance inspection result set of the speaker meets the appearance inspection condition, the speaker is transferred to the area to be packaged. In this way, the efficiency of the airtightness detection of the speaker is improved, and the steps of the airtightness detection are simplified. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flow chart of some embodiments of the sound detection method according to the present disclosure;

[0014] Figure 2 is a schematic diagram of the structure of some embodiments of the sound detection device according to the present disclosure;

[0015] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0021] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0022] Figure 11 is a flow chart of some embodiments of the sound detection method according to the present disclosure. 100 of some embodiments of the sound detection method according to the present disclosure is shown. The sound detection method comprises the following steps:

[0023] Step 101: for each speaker in the speaker test area, perform the following processing steps:

[0024] Step 1011: Generate a sound appearance detection result set based on the speaker image set corresponding to the above-mentioned speaker.

[0025] In some embodiments, the execution subject of the audio detection method (such as a computing device) can generate an audio appearance detection result set based on the audio image set corresponding to the above-mentioned audio box. The above-mentioned audio image set is a monitoring image of the above-mentioned audio box from multiple angles, the above-mentioned audio box test area is used to place the audio box, the above-mentioned audio box test area is located in the audio box test operation cabin, each audio box is placed in a transparent exhaust hood in the operation cabin, and each audio box has been vacuum-treated. That is, the audio box can be a waterproof Bluetooth speaker, so an airtightness test is required. The camera for collecting the audio box image set can be set in the transparent exhaust hood to collect the audio image in the transparent exhaust hood. The audio appearance detection result can indicate whether the surface of the audio box is abnormal (for example, deformed / damaged / scratched).

[0026] In practice, the above execution entity can generate a sound appearance detection result set through the following steps:

[0027] In the first step, feature extraction is performed on each speaker image in the above speaker image set to generate speaker image features and obtain a speaker image feature set. Feature extraction can be performed on each speaker image in the above speaker image set through an image feature extraction model to generate speaker image features and obtain a speaker image feature set. For example, the image feature extraction model can be a LeNet model, an AlexNet model, a VGGNet model, a convolutional neural network (CNN), a residual network (ResNet), etc.

[0028] In the second step, the above-mentioned speaker image feature set is input into a pre-trained sound appearance detection model to obtain a sound appearance detection result set, wherein one speaker image feature corresponds to one sound appearance detection result. The sound appearance detection model can be a pre-trained neural network model that takes the speaker image feature as input and takes the sound appearance detection result as output. For example, the sound appearance detection model can be a YOLOv7 model or a convolutional neural network model.

[0029] Optionally, the sound appearance detection model can be trained by the following steps:

[0030] The first step is to obtain a speaker image training sample set. The speaker image training sample includes: a similar speaker image set, a speaker sample image, and a sample label. The sample label may refer to a label corresponding to the speaker sample image. A similar speaker image set may refer to a sample image set that belongs to the same speaker appearance as the speaker sample image. For example, a similar speaker image set may refer to each speaker appearance image with an abnormal speaker surface.

[0031] The second step is to select a target speaker image training sample from the speaker image training sample set. A speaker image training sample can be randomly selected from the speaker image training sample set as the target speaker image training sample.

[0032] In the third step, the similar speaker image set and the speaker sample image included in the speaker image training sample are respectively input into the first initial feature extraction network based on the first attention mechanism included in the initial appearance detection model to generate a similar speaker image feature information set and a speaker sample image feature information. Among them, the initial appearance detection model can be an appearance detection model whose model has not been trained yet. The appearance detection model can be a model that generates the sound appearance detection result. The first initial feature extraction model can be a first feature extraction model whose model has not been trained yet. The first feature extraction model can be a model that extracts image feature information. In practice, the first feature extraction model based on the first attention mechanism can be a Transformer layer. That is, the first feature extraction model can include: a multi-head attention mechanism (Multi-HeadAttention, MultiHead) model and a feedforward neural network (Feedforward Neural Network, FNN) model. The vector dimension corresponding to the Transformer layer is 1024, and the number of multi-head attention is 8. The similar speaker images in the similar speaker image set correspond one-to-one to the similar speaker image feature information in the similar speaker image feature information set. The similar speaker image feature information can characterize the feature information of the abnormal appearance of the similar speaker image. The speaker sample image feature information may represent abnormal appearance feature information of the speaker sample image.

[0033] The fourth step is to generate attention feature information based on the similar speaker image feature information set and the speaker sample image feature information using the second initial feature extraction network based on the second attention mechanism included in the initial appearance detection model. Among them, the second initial feature extraction model can be a second feature extraction model whose model has not yet been trained. The attention feature information includes fused feature information that characterizes the similar speaker image feature information set and the speaker sample image feature information. In practice, the second initial feature extraction model based on the second attention mechanism can be a Transformer layer. The vector dimension corresponding to the Transformer layer is 512, and the number of multi-head attention is 2. The similar speaker image feature information set and the speaker sample image feature information can be directly input into the second initial feature extraction model based on the second attention mechanism to obtain the attention feature information.

[0034] In the fifth step, the attention feature information is input into the initial sound appearance detection layer included in the initial sound appearance detection model to generate the sound appearance detection result. The initial sound appearance detection layer may be an output layer of the sound appearance detection result before the model training is completed. The output layer of the sound appearance detection result may be a network layer that outputs the image appearance detection result. For example, the sound appearance detection layer may include a linear layer and an activation function layer. The activation function corresponding to the activation function layer may be a Sigmoid function.

[0035] Step 6: Determine the loss information between the sound appearance detection result and the corresponding sample label. The loss information between the sound appearance detection result and the corresponding sample label can be determined by a preset loss function. For example, the preset loss function can be a CrossEntropy Loss calculation loss function or a cross entropy loss function.

[0036] Step 7: Determine whether the model training is completed based on the loss information. In response to determining that the loss information is less than a preset value, determine that the model training is completed. In response to determining that the loss information is greater than or equal to the preset value, determine that the model training is not completed.

[0037] In step 8, in response to determining that the model training is completed, the initial sound appearance detection model is determined as the trained sound appearance detection model.

[0038] In the ninth step, in response to determining that the model training is not completed, the network parameters of the initial sound appearance detection model are adjusted, and new target speaker image training samples are selected from each unselected speaker image training sample, and the adjusted initial sound appearance detection model is trained again.

[0039] Therefore, through the first initial feature extraction model based on the first attention mechanism and the second initial feature extraction model based on the second attention mechanism, accurate extraction and accurate fusion of feature information of similar speaker image sets and speaker images can be achieved, thereby improving the accuracy of abnormal sound appearance detection.

[0040] Step 1012: Generate a test state type for the speaker according to the speaker image set.

[0041] In some embodiments, the execution subject may generate a test status type for the speaker according to the speaker image set. In which, the speaker image set is a monitoring image of the speaker from multiple angles, the test status type includes: test start type, test in progress type and test end type, the speaker test area is used to place the speaker, the speaker test area is located in the speaker test operation cabin, each speaker is placed in a transparent exhaust hood in the operation cabin, and each speaker has been vacuum treated.

[0042] In practice, the execution subject may generate the test status type for the speaker through the following steps:

[0043] In the first step, for each speaker image in the above speaker image set, the following processing steps are performed:

[0044] The first sub-step is to grayscale the above-mentioned speaker image to generate a grayscale speaker image. The grayscale processing of the above-mentioned speaker image can be achieved by using the average value method, that is, taking the average value of the pixel values ​​of the RGB three channels corresponding to the pixel point as the pixel value corresponding to the pixel point, so as to generate a grayscale speaker image.

[0045] The second sub-step is to flip the brightness value corresponding to each pixel in the grayscale speaker image to generate a first flipped grayscale speaker image. That is, the brightness value corresponding to each pixel in the grayscale speaker image can be negatively processed.

[0046] The third sub-step is to perform image feature extraction processing on the first flipped grayscale speaker image through a speaker image feature extraction model to generate a first speaker image feature. The speaker image feature extraction model includes: a downsampling network and an upsampling network, and the network structures of the downsampling network and the upsampling network are symmetrical. The downsampling network may include 5 layers of fully connected layers connected in series. For example, the speaker image feature extraction model may adopt a U-Net model.

[0047] The fourth sub-step is to input the first speaker image feature into a fully connected layer network to generate a test type vector. The fully connected layer network is serially connected to the image feature extraction model, and the fully connected layer network includes: 3 layers of serially connected fully connected layers, the vector dimension of the test type vector is 1×3, the vector value of the first dimension in the test type vector corresponds to the test start type, the vector value of the second dimension in the test type vector corresponds to the test in progress type, and the vector value of the third dimension in the test type vector corresponds to the test end type.

[0048] The second step is to perform weighted summation on each test type vector in the obtained test type vector set to generate a weighted sum test type vector. For example, the test type vector set may be [0.0, 0.0, 0.79], [0.0, 0.0, 0.8], [0.0, 0.0, 0.81], and the obtained weighted sum test type vector may be [0.0, 0.0, 0.8].

[0049] The third step is to determine the test state type corresponding to the largest vector value in the weighted sum test type vector. For example, the weighted sum test type vector may be [0.0, 0.0, 0.8], where the largest vector value is 0.8, and 0.8 is the vector value of the third dimension in the test type vector. Therefore, the test state type may be a test end type.

[0050] Step 1013, in response to the test state type being the test end type and receiving an airtightness verification signal, performing an air extraction operation on the transparent exhaust hood corresponding to the sound box, and acquiring a transparent exhaust hood image set.

[0051] In some embodiments, the above-mentioned execution subject may perform an air extraction operation on the transparent exhaust hood corresponding to the above-mentioned speaker in response to the above-mentioned test state type being the above-mentioned test end type and receiving an airtightness check signal, and obtain a transparent exhaust hood image set. Among them, the above-mentioned transparent exhaust hood image set is a monitoring image of the inside of the above-mentioned transparent exhaust hood under a positive viewing angle. The airtightness check signal may be a signal generated by an operator outside the speaker test operation cabin by pressing an airtightness check button. In practice, the airtightness check button may be a physical hardware button or a virtual software button. The above-mentioned execution subject may perform an air extraction operation on the transparent exhaust hood in the speaker test operation cabin by controlling the exhaust pump. In practice, the exhaust pump may be a micro exhaust pump. The transparent exhaust hood image may be an image of the transparent exhaust hood captured by a camera when the exhaust pump starts to exhaust air. In practice, the above-mentioned executing entity can use a vacuum pump to extract air from the transparent vacuum hood for N seconds so that there is a pressure difference between the air pressure in the speaker and the air pressure in the transparent vacuum hood. Due to the pressure difference, it is possible to observe whether the speaker is leaking, that is, whether there is an airtightness problem.

[0052] Step 1014: Generate an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal.

[0053] In some embodiments, the execution entity may generate an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal.

[0054] In practice, the above-mentioned execution entity can generate an airtightness verification mark through the following steps:

[0055] The first step is to perform signal segmentation processing on the air pressure signal to generate a first air pressure signal and a second air pressure signal. The first air pressure signal is the air pressure signal when the transparent vacuum hood is subjected to air extraction operation, and the second air pressure signal is the air pressure signal after the air extraction operation on the transparent vacuum hood is stopped. When the air pressure value in the transparent vacuum hood reaches the preset air pressure value, the vacuum pump can be controlled to stop pumping. The air pressure signal between the start of the vacuum pump and the stop of the vacuum pump is the first air pressure signal.

[0056] The second step is to determine the pressure signal mean of the second pressure signal. The ratio of the function integral value of the simulation equation corresponding to the second pressure signal in the signal interval corresponding to the second pressure signal to the length of the signal interval can be used as the pressure signal mean.

[0057] The third step is to generate an air pressure change trend based on the above-mentioned air pressure signal mean and the end signal value of the above-mentioned first air pressure signal. The above-mentioned air pressure change trend includes: no change trend and change trend. No change trend indicates that the air pressure in the transparent exhaust hood has no change, or the air pressure change is less than the threshold. The change trend indicates that the air pressure change in the transparent exhaust hood is greater than or equal to the threshold. The relationship between the signal difference between the air pressure signal mean and the end point signal value and the threshold can be determined to determine the air pressure change trend. The end point signal value is the air pressure signal value of the end point of the first air pressure signal.

[0058] In the fourth step, in response to the above-mentioned air pressure change trend being no change trend, an airtightness verification mark is generated to indicate that the audio system meets the above-mentioned airtightness verification conditions.

[0059] Step 5: In response to the above-mentioned pressure change trend being a change trend, perform the following air tightness verification steps:

[0060] The first verification step is to perform image negative processing on each transparent exhaust hood image in the transparent exhaust hood image set to generate a negative transparent exhaust hood image, thereby obtaining a negative transparent exhaust hood image set.

[0061] In the second verification step, a bubble detection process is performed on each negative transparent hood image in the negative transparent hood image set using a pre-trained bubble detection model to generate an image bubble confidence and obtain an image bubble confidence set. The bubble detection model is a detection model used to detect whether bubbles appear in the sound system due to airtightness problems when there is a pressure difference between the transparent hood and the sound system. In practice, the bubble detection model can use the Faster R-CNN model.

[0062] The third verification step is to generate an airtightness verification mark indicating that the sound does not meet the above-mentioned airtightness verification conditions in response to the presence of an image bubble confidence in the above-mentioned image bubble confidence set that is greater than or equal to a preset bubble confidence, and the average bubble confidence corresponding to the above-mentioned image bubble confidence set is greater than or equal to the image bubble confidence.

[0063] The fourth verification step is to generate an airtightness verification mark indicating that the sound satisfies the above-mentioned airtightness verification conditions in response to the presence of an image bubble confidence in the above-mentioned image bubble confidence set that is greater than or equal to a preset bubble confidence and the average bubble confidence corresponding to the above-mentioned image bubble confidence set is less than the image bubble confidence.

[0064] A fifth verification step, in response to the presence of an image bubble confidence level less than a preset bubble confidence level in the image bubble confidence level set, generates an airtightness verification mark indicating that the sound system satisfies the airtightness verification condition.

[0065] Step 1015, in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification conditions, and determining that the audio appearance inspection result set meets the appearance inspection conditions, the speaker is transferred to the area to be packaged.

[0066] In some embodiments, the execution subject may transfer the speaker to the area to be packaged in response to the airtightness verification mark indicating that the speaker placed in the transparent hood meets the airtightness verification condition, and determining that the sound appearance inspection result set meets the appearance inspection condition. The airtightness verification condition may be that the airtightness verification mark indicates that the speaker is not leaking. The area to be packaged may refer to the area where the speakers are packaged. The speakers may be transported by a transport robot. The appearance inspection condition may refer to that each sound appearance inspection result in the sound appearance inspection result set indicates that there is no abnormality.

[0067] Optionally, in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification conditions, and the audio appearance inspection result set does not meet the appearance inspection conditions, the speaker is transferred to the appearance inspection area.

[0068] In some embodiments, the execution subject may transfer the speaker to an appearance inspection area in response to the airtightness inspection mark indicating that the speaker placed in the transparent hood meets the airtightness inspection condition and the sound appearance inspection result set does not meet the appearance inspection condition. The appearance inspection area may be an area for storing abnormal sound appearances for technicians to view.

[0069] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a sound detection device, and these embodiments of the sound detection device are Figure 1 Corresponding to the method embodiments shown, the sound detection device can be specifically applied to various electronic devices.

[0070] like Figure 2 As shown, the audio detection device 200 of some embodiments includes: an audio detection unit 201. The audio detection unit 201 is configured to perform the following processing steps for each speaker in the speaker test area: generate an audio appearance detection result set according to the speaker image set corresponding to the above speaker; generate a test state type for the above speaker according to the above speaker image set, wherein the above speaker image set is a monitoring image of multiple angles for the above speaker, and the above test state type includes: test start type, test in progress type and test end type, the above speaker test area is used to place the speaker, the above speaker test area is located in the speaker test operation cabin, each speaker is placed in a transparent exhaust hood in the operation cabin, and each speaker has been tested. Perform vacuum treatment; in response to the test state type being the test end type and receiving an airtightness verification signal, perform air extraction operation on the transparent exhaust hood corresponding to the speaker, and obtain a transparent exhaust hood image set, wherein the transparent exhaust hood image set is a monitoring image of the inside of the transparent exhaust hood under a front viewing angle; generate an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal; in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification conditions, and determining that the audio appearance detection result set meets the appearance detection conditions, transfer the speaker to the area to be packaged.

[0071] It is understood that the units described in the sound detection device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the sound detection device 200 and the units included therein, and will not be described in detail here.

[0072] Reference below Figure 3, which shows a schematic diagram of the structure of an electronic device (e.g., a computing device) 300 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0073] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In the RAM 303, various programs and task data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0074] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange task data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0075] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0076] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a mission data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such a propagated mission data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0077] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital task data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0078] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: performs the following processing steps for each speaker in the speaker test area: generates an audio appearance detection result set based on the speaker image set corresponding to the speaker; generates a test status type for the speaker based on the speaker image set, wherein the speaker image set is a monitoring image of multiple angles for the speaker, and the test status type includes: a test start type, a test in progress type, and a test end type. The speaker test area is used to place speakers. The speaker test area is located in a speaker test operating cabin, and each speaker is placed in an operating cabin. In the transparent exhaust hood in the working cabin, each speaker has been vacuum treated; in response to the test state type being the test end type and receiving an airtightness verification signal, an air extraction operation is performed on the transparent exhaust hood corresponding to the speaker, and a transparent exhaust hood image set is obtained, wherein the transparent exhaust hood image set is a monitoring image of the transparent exhaust hood under a frontal viewing angle; an airtightness verification mark is generated according to the transparent exhaust hood image set and the air pressure signal; in response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification conditions, and determining that the audio appearance inspection result set meets the appearance inspection conditions, the speaker is transferred to the area to be packaged.

[0079] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including product-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0081] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0082] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A sound detection method, include: For each speaker in the speaker test area, perform the following processing steps: Generating a sound appearance detection result set according to a sound box image set corresponding to the sound box; According to the speaker image set, a test state type for the speaker is generated, wherein the speaker image set is a monitoring image of the speaker from multiple angles, and the test state type includes: a test start type, a test in progress type, and a test end type. The speaker test area is used to place the speaker, and the speaker test area is located in a speaker test operation cabin. Each speaker is placed in a transparent exhaust hood in the operation cabin, and each speaker has been vacuum treated. In response to the test state type being the test end type and receiving an airtightness verification signal, performing an air extraction operation on the transparent exhaust hood corresponding to the sound box, and acquiring a transparent exhaust hood image set, wherein the transparent exhaust hood image set is a monitoring image of the inside of the transparent exhaust hood under a normal viewing angle; Generating an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal; In response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification condition, and determining that the sound appearance inspection result set meets the appearance inspection condition, the speaker is transferred to the area to be packaged; The step of generating an airtightness verification mark according to the transparent exhaust hood image set and the air pressure signal includes: Performing signal segmentation processing on the air pressure signal to generate a first air pressure signal and a second air pressure signal, wherein the first air pressure signal is an air pressure signal when the transparent exhaust hood is subjected to an air extraction operation, and the second air pressure signal is an air pressure signal after the air extraction operation on the transparent exhaust hood is stopped; determining an air pressure signal mean value of the second air pressure signal; Generate an air pressure change trend according to the air pressure signal mean value and the terminal signal value of the first air pressure signal, wherein the air pressure change trend includes: no change trend and change trend; In response to the air pressure change trend being no change trend, generating an air tightness verification mark indicating that the sound system meets the air tightness verification condition; In response to the air pressure change trend being a change trend, the following air tightness verification steps are performed: Performing image negative processing on each transparent exhaust hood image in the transparent exhaust hood image set to generate a negative transparent exhaust hood image, thereby obtaining a negative transparent exhaust hood image set; Using a pre-trained bubble detection model, bubble detection is performed on each negative transparent vacuum hood image in the negative transparent vacuum hood image set to generate an image bubble confidence, thereby obtaining an image bubble confidence set; In response to the presence of an image bubble confidence greater than or equal to a preset bubble confidence in the image bubble confidence set, and an average bubble confidence corresponding to the image bubble confidence set greater than or equal to the image bubble confidence, generating an airtightness verification mark indicating that the sound does not meet the airtightness verification condition; In response to the presence of an image bubble confidence greater than or equal to a preset bubble confidence in the image bubble confidence set, and the average bubble confidence corresponding to the image bubble confidence set is less than the image bubble confidence, generating an airtightness verification mark indicating that the sound meets the airtightness verification condition; In response to the image bubble confidence set having an image bubble confidence less than a preset bubble confidence, an airtightness verification mark is generated, indicating that the sound meets the airtightness verification condition.

2. The method according to claim 1, in, The method further comprises: In response to the airtightness verification mark indicating that the speaker placed in the transparent exhaust hood meets the airtightness verification condition, and the audio appearance inspection result set does not meet the appearance inspection condition, the speaker is transferred to the appearance inspection area.

3. The method according to claim 1, in, The step of generating a sound appearance detection result set according to the sound box image set corresponding to the sound box includes: Extracting features from each speaker image in the speaker image set to generate speaker image features, thereby obtaining a speaker image feature set; The speaker image feature set is input into a pre-trained sound appearance detection model to obtain a sound appearance detection result set, wherein one speaker image feature corresponds to one sound appearance detection result.

4. The method according to claim 3, in, Before inputting the sound box image feature set into a pre-trained sound appearance detection model to obtain a sound appearance detection result set, the method further includes: Acquire a speaker image training sample set, wherein the speaker image training sample includes: a speaker image set of the same type, a speaker sample image, and a sample label; Selecting a target speaker image training sample from the speaker image training sample set; Inputting the similar speaker image set and the speaker sample image included in the speaker image training sample into the first initial feature extraction network based on the first attention mechanism included in the initial appearance detection model respectively, so as to generate the similar speaker image feature information set and the speaker sample image feature information; Generate attention feature information using a second initial feature extraction network based on a second attention mechanism included in the initial appearance detection model according to a feature information set of similar speaker images and feature information of speaker sample images; Inputting the attention feature information into an initial sound appearance detection layer included in the initial sound appearance detection model to generate a sound appearance detection result; Determine loss information between the sound appearance detection result and the corresponding sample label; Determine whether the model training is complete based on the loss information; In response to determining that model training is complete, the initial audio appearance detection model is determined as a trained audio appearance detection model.

5. The method according to claim 4, in, The method further comprises: In response to determining that model training is not completed, network parameters of the initial sound appearance detection model are adjusted, and new target speaker image training samples are selected from each unselected speaker image training sample, and the adjusted initial sound appearance detection model is trained again.

6. An acoustic detection device, include: The sound detection unit is configured to perform the method steps of claim 1 for each speaker in a speaker test area.

7. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

8. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Device and method for inspecting outward appearance

    JP2001099628A

  • Leak detection in composite tools

    US20100170326A1