CN109855551B - Automatic detection method for Bluetooth headset production, electronic equipment and storage medium - Google Patents

Automatic detection method for Bluetooth headset production, electronic equipment and storage medium Download PDF

Info

Publication number
CN109855551B
CN109855551B CN201910048067.5A CN201910048067A CN109855551B CN 109855551 B CN109855551 B CN 109855551B CN 201910048067 A CN201910048067 A CN 201910048067A CN 109855551 B CN109855551 B CN 109855551B
Authority
CN
China
Prior art keywords
diaphragm
pole piece
area
circle
bluetooth headset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910048067.5A
Other languages
Chinese (zh)
Other versions
CN109855551A (en
Inventor
张立
张俊峰
叶长春
胡朋朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Supersonic Artificial Intelligence Technology Co ltd
Original Assignee
Guangzhou Supersonic Automation Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Supersonic Automation Technology Co Ltd filed Critical Guangzhou Supersonic Automation Technology Co Ltd
Priority to CN201910048067.5A priority Critical patent/CN109855551B/en
Publication of CN109855551A publication Critical patent/CN109855551A/en
Application granted granted Critical
Publication of CN109855551B publication Critical patent/CN109855551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses an automatic detection method for the production of a Bluetooth headset, which comprises the following steps: an image acquisition step: acquiring an image of a Bluetooth headset film, and preprocessing the image; and a region extraction step: performing image processing on the image to extract a diaphragm area and a pole piece area; a calculation step: respectively processing the diaphragm area and/or the pole piece area according to a circle finding algorithm or an edge finding algorithm to obtain a measured value of corresponding detection data of the Bluetooth headset production; a judging step: and judging whether the Bluetooth headset production meets the system requirements or not according to the measured value of each detection data and obtaining a detection result. The invention can not only detect the concentricity of the Bluetooth headset slide, but also detect other sizes of the Bluetooth headset slide. The invention also provides electronic equipment and a storage medium.

Description

Automatic detection method for Bluetooth headset production, electronic equipment and storage medium
Technical Field
The invention relates to a film production detection system, in particular to an automatic detection method for Bluetooth headset film production, electronic equipment and a storage medium.
Background
The film-making to bluetooth headset is in the production process, a series of operations such as coating, cutting equally need be carried out, in order to guarantee that the bluetooth headset film-making after the production accords with the customer requirement, generally all need detect the bluetooth headset film-making of producing, when detecting, generally carry out artifical the measurement to the photo of shooting out through the manual work, then convert and obtain corresponding dimensional data again, but not only consuming time during artifical the measurement, again hard, testing result is also inaccurate simultaneously.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide an automatic detection method for a bluetooth headset production, which can solve the problems of complex operation, inaccurate detection result and the like in the prior art that the size of the bluetooth headset production is measured manually.
The second objective of the present invention is to provide an electronic device, which can solve the problems of complicated operation, inaccurate detection result, etc. in the prior art, in which the size of a bluetooth headset piece is manually measured.
The invention also aims to provide a computer-readable storage medium, which can solve the problems of complex operation, inaccurate detection result and the like of manually measuring the size of a bluetooth headset slice in the prior art.
One of the purposes of the invention is realized by adopting the following technical scheme:
the automatic detection method for the production of the Bluetooth headset comprises the following steps:
an image acquisition step: acquiring an image produced by a Bluetooth headset, and preprocessing the image;
a region extraction step: performing image processing on the image to extract a diaphragm area and a pole piece area;
and (3) calculating: respectively processing the diaphragm area and/or the pole piece area according to a circle finding algorithm or an edge finding algorithm to obtain a measured value of corresponding detection data of the Bluetooth headset production;
a judging step: and judging whether the Bluetooth headset film production meets the system requirements or not according to the measured value of each detection data and obtaining a detection result.
Further, the detection data is any one of the radius of the diaphragm, the total height of the diaphragm, the integrity of the lug, the radius of the pole piece, the offset quadrant, the parallelism, the minimum width of the ironing edge and the concentricity.
Further, when the detected data is parallelism:
the region extraction step specifically comprises: extracting a circular area of the pole piece according to the pole piece area, and obtaining a gap position area;
the calculation steps are specifically as follows: and finding a notch line from the notch position area by using an edge finding algorithm, and further solving the parallelism.
Further, the region extracting step specifically includes: extracting the image by adopting a gap position inclination angle to obtain a diaphragm area and/or a pole piece area; the inclination angle of the notch position is the parallelism.
Further, when the test data is the total height of the diaphragm: the calculation steps are as follows: processing the diaphragm area according to an edge finding algorithm to obtain a shoulder width top line and a diaphragm bottom line, and further obtaining a measured value of the total height of the diaphragm according to the distance between the shoulder width top line and the diaphragm bottom line;
or when the detection data is the integrity of the electrode lug, the calculation step is as follows: processing the pole piece area according to a circle finding algorithm to obtain the circle center coordinate of the pole piece area, and further extracting a pole lug area;
or when the detected data is the deviation limit, the calculation step is as follows: processing and extracting the pole piece area and the diaphragm area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining an offset quadrant;
or when the detection data is the minimum width of the hot edge: the calculation steps are as follows: processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, then obtaining intersection points with the diaphragm area and the pole piece area according to the diaphragm center coordinate and the pole piece center coordinate, and obtaining the minimum width of a hot edge according to the distance between the two intersection points;
or when the detected data is concentricity, the calculation step is as follows: and processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and obtaining concentricity according to the diaphragm center coordinate and the pole piece center coordinate.
Further, the method also comprises a result storage step: and generating a report according to the detection result and storing the report in the system.
Further, the method also comprises a diagram generating step: and identifying the measured value of each detection data at the corresponding position of the image, binding the identified image with the report, and storing the bound image in the system.
The second purpose of the invention is realized by adopting the following technical scheme:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program performing the steps of the bluetooth headset production automatic detection method as one of the objects of the present invention.
The third purpose of the invention is realized by adopting the following technical scheme:
a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of a bluetooth headset production automatic detection method employed in one of the objects of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the Bluetooth headset film making is subjected to image acquisition, and then the image is subjected to region extraction, so that corresponding lines, points or surfaces can be extracted through a corresponding circle finding algorithm or an edge finding algorithm, the detection of the sizes of all parts of the Bluetooth headset film making is completed, and the problems of complex operation, inaccurate detection result and the like in the prior art for manually detecting the Bluetooth headset film making are solved.
Drawings
Fig. 1 is a flowchart of an automatic detection method for bluetooth headset production provided by the present invention;
FIG. 2 is a flow chart of the diaphragm radius detection provided by the present invention;
FIG. 3 is a flow chart of the overall height of the diaphragm provided by the present invention;
fig. 4 is a flow chart of the tab integrity detection provided by the present invention;
FIG. 5 is a flow chart of the radius detection of the pole piece according to the present invention;
FIG. 6 is a flow chart of the detection of an offset quadrant provided by the present invention;
FIG. 7 is a flow chart of parallelism detection provided by the present invention;
FIG. 8 is a flow chart of the detection of the minimum width of the edge iron provided by the present invention;
FIG. 9 is a flow chart of concentricity detection provided by the present invention;
FIG. 10 shows a schematic diagram of an offset quadrant.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
The first embodiment is as follows:
to the detection of current bluetooth headset film-making, generally detect the concentricity, whether the centre of a circle coordinate difference that detects pole piece circle and diaphragm circle in the bluetooth headset film-making promptly accords with the system and will go, and then reachs whether qualified. However, because the bluetooth headset comprises a pole piece and a diaphragm, and because of the existence of the diaphragm, when a picture is taken during detection, burrs easily extend out of the edge of the diaphragm. For the traditional detection, for example, the shot picture is manually measured by an amplifying ruler, wherein the detection of the concentricity is to judge the coordinate difference of the centers of the outer circle and the inner circle, so that the phenomenon that the edge burr extends out has little influence on the detection result of the concentricity, but has great influence on the detection precision of other sizes. Therefore, the automatic detection system for the production of the Bluetooth headset provided by the invention not only can ensure the concentricity detection of the production of the Bluetooth headset, but also can realize the detection of the sizes of other parts, and realizes the detection automatically through software, thereby solving the problems of inconvenient operation, inaccurate detection result, low accuracy and the like in the prior art through manual measurement.
The system can detect the concentricity of the Bluetooth headset production, can also realize the detection of other sizes, such as the sizes of parallelism, diaphragm radius, pole piece radius, diaphragm total height, minimum width of a hot edge and the like, can detect the presence or absence of a lug and an offset quadrant of the Bluetooth headset production, and can perform statistical analysis on the integral offset quadrant ratio, the concentricity mean value, the concentricity standard deviation, the concentricity CPK (Process capability index) and the like.
According to the invention, firstly, a complete image of a Bluetooth headset sheet is acquired, then, a corresponding detection result is obtained by performing image processing on the image of the Bluetooth headset sheet, then, each detection result is compared with a specification preset by a system, so that whether the Bluetooth headset sheet is qualified is judged, meanwhile, specific data of each detection result is identified in the image, a corresponding picture is generated, and a report is generated according to the detection result, so that the user can check the image more clearly.
Additionally, when an image is acquired: after the machine tool equipment moves and is started, the optical fiber sensor is triggered when the Bluetooth earphone pole piece reaches the corresponding position, then the image acquisition equipment in the detection system is triggered to acquire an image of the Bluetooth earphone pole piece, the image is sent to the processing equipment of the system, then the image is processed to obtain a detection result, finally the detection result is compared with the preset specification parameters of the system to obtain a judgment result, namely whether the detection result meets the system requirements or not and whether the product is qualified or not are judged. If the product is qualified, an OK signal is sent to the equipment through the NG processing module; and if the device is unqualified, sending an NG signal to the device through NG processing equipment, and simultaneously sending an alarm signal to inform related workers.
When the acquired image is processed to obtain a detection result, the invention specifically relates to the following algorithm:
firstly, the method comprises the following steps: circle finding algorithm
(1) Firstly, determining the central coordinates of the region according to the extracted region;
(2) setting the step length of a vertical part of the boundary line of the region, the step length of a horizontal part of the boundary line of the region, a Gaussian smooth sigma value, an edge finding threshold value, the number of measurable models, a score, the number of measurement frames and the polarity by taking the central coordinate of the region as a reference, further detecting all edge points of the region, and storing the coordinates;
(3) the coordinates of the edge points of all the found regions are accumulated within a reasonable range and fitted into a circle.
II, secondly: edge finding algorithm
(1) Determining a starting coordinate and an ending coordinate of the area line according to the extracted area;
(2) setting the step length of a vertical part of a regional boundary line, the step length of a horizontal part of the regional boundary line, a smooth-Gaussian sigma value, an edge finding threshold, the number of measurable models, a score, the number of measurement frames and the polarity by taking the initial coordinate and the final coordinate as the reference, detecting all edge points of the region, and storing the coordinates;
(3) and accumulating the edge point coordinates of all the found areas within a reasonable range by utilizing the edge point coordinates, and fitting the edge point coordinates into a straight line.
When the Bluetooth headset pole piece is detected, firstly, the areas of the image are extracted, and then corresponding processing methods, such as an edge finding algorithm, a circle finding algorithm and the like, are respectively adopted for different extracted areas to obtain corresponding detection results. For region extraction, a gray contrast map is generally obtained by performing gray processing on an image, and then a corresponding region may be distinguished from the gray contrast map.
Example two:
the invention also provides an automatic detection method for the production of the Bluetooth headset, which comprises the following steps as shown in figure 1:
step S1: and acquiring an image produced by the Bluetooth headset, and preprocessing the image. Wherein the preprocessing is realized by the following algorithm: morphological processing of the binarized image, such as erosion dilation, opening and closing operations, and the like, also includes image segmentation operations, such as threshold segmentation, and the like.
Step S2: and extracting the region of the image, and processing the region through a corresponding algorithm to further obtain a measured value corresponding to the detection data. And carrying out gray scale processing on the image to obtain a gray scale contrast map, and further distinguishing to obtain corresponding areas.
Step S3: and judging whether the Bluetooth headset film production meets the system requirements or not according to the measured value of each detection data, and obtaining a detection result.
Because the detection data are different, the areas required to be extracted and the involved algorithms are different, the invention provides a specific processing procedure:
as shown in fig. 2, for the detection process of the diaphragm radius:
firstly, carrying out region extraction on an image to obtain a diaphragm region, then further extracting the diaphragm region by utilizing the inclined angle of the notch position, and finally processing the diaphragm region by utilizing a circle finding algorithm to obtain the radius of the diaphragm; and comparing the obtained diaphragm radius with a specified value preset by a system, when the diaphragm radius is smaller than the specified value, considering that the diaphragm radius of the Bluetooth headset sheet meets the system requirement, if the diaphragm radius meets the requirement, sending an OK signal, and if the diaphragm radius does not meet the requirement, sending an NG signal and the like. The notch position inclination angle algorithm is that a notch area is firstly positioned, then an edge finding algorithm is used for finding a notch line at the notch, and then the notch position inclination angle is recorded according to the included angle between the notch line and the movement direction. When the region is extracted by using the notch position inclination angle, for example, the diaphragm region may be further extracted by using the notch position inclination angle as a boundary.
As shown in fig. 3, the process for detecting the total height of the diaphragm is as follows:
firstly, extracting an image to obtain a diaphragm area, then further extracting the diaphragm area by utilizing the inclined angle of the notch position, then obtaining a diaphragm shoulder width top area and a diaphragm bottom area according to the diaphragm area, processing the diaphragm shoulder width top area and the diaphragm bottom area by utilizing an edge finding algorithm to obtain a shoulder width top line and a diaphragm bottom line, and finally obtaining the distance between the shoulder width top line and the diaphragm bottom line, namely the total height of the diaphragm.
And comparing the total height of the diaphragm with a preset designated value of the system to judge whether the total height meets the system requirements.
As shown in fig. 4, the process of testing the integrity of the tab is as follows:
firstly, carrying out region extraction on an image to obtain a pole piece region, then further extracting the pole piece region by utilizing the gap position inclination angle, processing the pole piece region by utilizing a circle finding algorithm to obtain the circle center coordinate of the pole piece region, and further obtaining a pole lug region.
And comparing the tab area with a tab image in the system, and judging whether the tab area is complete. The judgment of the completeness of the lug is also the judgment of whether the Bluetooth headset produces no polar ear.
As shown in fig. 5, for the detection process of the radius of the pole piece:
firstly, extracting the area of an image to obtain a pole piece area, then further extracting the pole piece area by utilizing the inclined angle of the notch position, and processing the pole piece area by utilizing a circle finding algorithm to obtain the radius of the pole piece.
And comparing the radius of the pole piece with a preset specified value, and judging whether the radius of the pole piece meets the system requirement.
As shown in fig. 6, the detection process for the offset quadrant is as follows:
firstly, extracting an image to obtain a diaphragm area and a pole piece area, then further extracting the diaphragm area and the pole piece area respectively by utilizing a gap position inclination angle, then respectively processing the diaphragm area and the pole piece area by utilizing a circle finding algorithm to determine a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining an offset quadrant according to the diaphragm center coordinate and the pole piece center coordinate.
When a plurality of offset quadrants are continuously counted in the system, whether the equipment is stable and whether an operator is reminded to turn the machine or not are judged according to the percentage of the offset quadrants in the counting result. As shown in fig. 10, the offset quadrant specifically refers to taking the center of the pole piece as an origin and the center of the diaphragm as coordinates, and then the offset coordinates of the center of the diaphragm with respect to the center of the pole piece can be obtained through calculation.
As shown in fig. 7, the detection process for parallelism is as follows:
firstly, extracting the area of an image to obtain a pole piece area and a pole piece circular area, then obtaining a notch position area according to the pole piece area and the pole piece circular area, and finally finding a notch line from the notch position area by using an edge finding algorithm to further obtain the parallelism. The parallelism is also the included angle between the notch line and the moving direction, and is also the inclined angle of the notch position.
And comparing the parallelism with a preset specified value, and judging whether the parallelism is qualified or not.
As shown in fig. 8, the detection process for the minimum width of the edge iron is as follows:
firstly, extracting an image to obtain a diaphragm area and a pole piece area, further extracting the diaphragm area and the pole piece area by utilizing a gap position inclination angle, then respectively processing the diaphragm area and the pole piece area by utilizing a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, obtaining intersection points with the diaphragm area and the pole piece area according to the diaphragm center coordinate and the pole piece center coordinate, and finally obtaining the minimum width of a hot edge according to the distance between the two intersection points. The minimum width of the edge ironing is obtained through the following specific process: the center of the inner circle and the center of the outer circle are found out, then the centers of the inner circle and the outer circle are connected to form a straight line, then the center of the inner circle is taken as a reference point, the intersection points of the straight line formed by the inner circle center and the outer circle center, the pole piece area and the diaphragm area are found out, and then the minimum distance value, namely the minimum width of the hot edge, is obtained according to the distance between the two intersection points. And comparing the minimum width of the edge ironing with a preset specified value of the system, and judging whether the minimum width of the edge ironing meets the system requirement.
As shown in fig. 9, the process for detecting concentricity is as follows:
firstly, extracting an image to obtain a diaphragm area and a pole piece area, further extracting the diaphragm area and the pole piece area by utilizing a gap position inclination angle, then respectively processing the diaphragm area and the pole piece area by utilizing a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining the concentricity according to the diaphragm center coordinate and the pole piece center coordinate.
And comparing the concentricity with a preset designated value of the system, and judging whether the concentricity meets the system requirement.
In addition, the invention can obtain the qualification rate of the products in the same batch by detecting the concentricity of each product in the batch, then calculating the mean value, the standard deviation and the CPK of the concentricity of all the products, and then comparing the mean value, the standard deviation and the CPK with the specified value preset by the system.
In addition, in order to ensure that the user can clearly and clearly view the result, the method also comprises the following steps:
step S4: and generating a report according to the detection result and storing the report in the system. The detection result is stored through the report, and the user can conveniently check the detection result.
Step S5: and identifying the measured value of each detection data at the corresponding position of the image, binding the identified image with the report, and storing the bound image in the system. The invention also identifies the detection data in the image in a mode of illustration, and displays the detection data to the user for the user to check.
Example three:
the invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
an image acquisition step: acquiring an image produced by a Bluetooth headset, and preprocessing the image;
a region extraction step: performing image processing on the image to extract a diaphragm area and a pole piece area;
and (3) calculating: respectively processing the diaphragm area and/or the pole piece area according to a circle finding algorithm or an edge finding algorithm to obtain a measured value of corresponding detection data of the Bluetooth headset production;
a judging step: and judging whether the Bluetooth headset film production meets the system requirements or not according to the measured value of each detection data and obtaining a detection result.
Further, the detection data is any one of the radius of the diaphragm, the total height of the diaphragm, the integrity of the lug, the radius of the pole piece, the offset quadrant, the parallelism, the minimum width of the ironing edge and the concentricity.
Further, when the detected data is parallelism:
the region extraction step specifically comprises: extracting a circular area of the pole piece according to the pole piece area, and obtaining a gap position area;
the calculation steps are specifically as follows: and finding a notch line from the notch position area by using an edge finding algorithm, and further solving the parallelism.
Further, the region extracting step specifically includes: extracting the image by adopting a gap position inclination angle to obtain a diaphragm area and/or a pole piece area; the inclination angle of the notch position is the parallelism.
Further, when the measured data is the total height of the diaphragm: the calculation steps are as follows: processing the diaphragm area according to an edge finding algorithm to obtain a shoulder width top line and a diaphragm bottom line, and further obtaining a measured value of the total height of the diaphragm according to the distance between the shoulder width top line and the diaphragm bottom line;
or when the detection data is the integrity of the electrode lug, the calculation step is as follows: processing the pole piece area according to a circle finding algorithm to obtain the circle center coordinate of the pole piece area, and further extracting a pole lug area;
or when the detected data is the deviation limit, the calculation step is as follows: processing and extracting the pole piece area and the diaphragm area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining an offset quadrant;
or when the detection data is the minimum width of the hot edge: the calculation steps are as follows: processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, then obtaining intersection points with the diaphragm area and the pole piece area according to the diaphragm center coordinate and the pole piece center coordinate, and obtaining the minimum width of a hot edge according to the distance between the two intersection points;
or when the detected data is concentricity, the calculation step is as follows: and processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and obtaining concentricity according to the diaphragm center coordinate and the pole piece center coordinate.
Further, the processor implements the following steps when executing the program: and a result storage step: and generating a report according to the detection result and storing the report in the system.
Further, the processor implements the following steps when executing the program: a diagram generation step: and identifying the measured value of each detection data at the corresponding position of the image, binding the identified image with the report, and storing the bound image in the system.
Example four:
the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
an image acquisition step: acquiring an image produced by a Bluetooth headset, and preprocessing the image;
a region extraction step: performing image processing on the image to extract a diaphragm area and a pole piece area;
a calculation step: respectively processing the diaphragm area and/or the pole piece area according to a circle finding algorithm or an edge finding algorithm to obtain a measured value of corresponding detection data of the Bluetooth headset production;
a judging step: and judging whether the Bluetooth headset film production meets the system requirements or not according to the measured value of each detection data and obtaining a detection result.
Further, the detection data is any one of the radius of the diaphragm, the total height of the diaphragm, the integrity of the lug, the radius of the pole piece, the offset quadrant, the parallelism, the minimum width of the ironing edge and the concentricity.
Further, when the detected data is parallelism:
the region extraction step specifically comprises: extracting a circular area of the pole piece according to the pole piece area, and obtaining a gap position area;
the calculation steps are specifically as follows: and finding a notch line from the notch position area by using an edge finding algorithm, and further solving the parallelism.
Further, the region extracting step specifically includes: extracting the image by adopting a gap position inclination angle to obtain a diaphragm area and/or a pole piece area; the inclination angle of the notch position is the parallelism.
Further, when the measured data is the total height of the diaphragm: the calculation steps are as follows: processing the diaphragm area according to an edge finding algorithm to obtain a shoulder width top line and a diaphragm bottom line, and further obtaining a measured value of the total height of the diaphragm according to the distance between the shoulder width top line and the diaphragm bottom line;
or when the detection data is the integrity of the electrode lug, the calculation step is as follows: processing the pole piece area according to a circle finding algorithm to obtain the circle center coordinate of the pole piece area, and further extracting a pole lug area;
or when the detected data is the deviation limit, the calculation step is as follows: processing and extracting the pole piece area and the diaphragm area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining an offset quadrant;
or when the detection data is the minimum width of the hot edge: the calculation steps are as follows: processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, then obtaining intersection points with the diaphragm area and the pole piece area according to the diaphragm center coordinate and the pole piece center coordinate, and obtaining the minimum width of the hot edge according to the distance between the two intersection points;
or when the detected data is concentricity, the calculation step is as follows: and processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and obtaining concentricity according to the diaphragm center coordinate and the pole piece center coordinate.
Further, the computer program when executed by the processor realizes the steps of: and a result storage step: and generating a report according to the detection result and storing the report in the system.
Further, the computer program when executed by the processor realizes the steps of: a diagram generation step: and identifying the measured value of each detection data at the corresponding position of the image, binding the identified image with the report, and storing the bound image in the system.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (5)

1. The automatic detection method for the Bluetooth headset production is characterized by comprising the following steps:
an image acquisition step: acquiring an image produced by a Bluetooth headset, and preprocessing the image;
a region extraction step: performing image processing on the image to extract a diaphragm area and a pole piece area;
a calculation step: respectively processing the diaphragm area and/or the pole piece area according to a circle finding algorithm or an edge finding algorithm to obtain a measured value of corresponding detection data of the Bluetooth headset production;
a judging step: judging whether the Bluetooth headset film production meets the system requirements or not according to the measured value of each detection data and obtaining a detection result; further comprising a result storage step: generating a report according to the detection result and storing the report in the system; further comprising the step of generating: identifying the measured value of each detection data at the corresponding position of the image, binding the identified image with a report and storing the bound image in a system; the detection data is any one of the radius of the diaphragm, the total height of the diaphragm, the integrity of the lug, the radius of the pole piece, the offset quadrant, the parallelism, the minimum width of the ironing edge and the concentricity;
calculating a mean value, a standard deviation and a CPK according to the concentricity of all the products in the same batch, and comparing the mean value, the standard deviation and the CPK with a specified value preset by a system to obtain the qualification rate of the products in the same batch;
when the measured data is the total height of the diaphragm: the calculation steps are as follows: processing the diaphragm area according to an edge finding algorithm to obtain a shoulder width top line and a diaphragm bottom line, and further obtaining a measured value of the total height of the diaphragm according to the distance between the shoulder width top line and the diaphragm bottom line;
or when the detection data is the integrity of the electrode lug, the calculation step is as follows: processing the pole piece area according to a circle finding algorithm to obtain the circle center coordinate of the pole piece area, and further extracting a pole lug area;
or when the detected data is the deviation limit, the calculation step is as follows: processing and extracting the pole piece area and the diaphragm area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and finally obtaining an offset quadrant;
or when the detection data is the minimum width of the hot edge: the calculation steps are as follows: processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, then obtaining intersection points with the diaphragm area and the pole piece area according to the diaphragm center coordinate and the pole piece center coordinate, and obtaining the minimum width of the hot edge according to the distance between the two intersection points;
or when the detected data is concentricity, the calculation step is as follows: and processing and extracting the diaphragm area and the pole piece area by using a circle finding algorithm to obtain a diaphragm circle and a pole piece circle, obtaining a diaphragm center coordinate and a pole piece center coordinate, and obtaining concentricity according to the diaphragm center coordinate and the pole piece center coordinate.
2. The automatic detection method for bluetooth headset production according to claim 1, wherein when the detection data is parallelism:
the region extraction step specifically comprises: extracting a circular area of the pole piece according to the pole piece area, and obtaining a gap position area;
the calculation steps are specifically as follows: and finding a notch line from the notch position area by using an edge finding algorithm, and further solving the parallelism.
3. The automatic detection method for bluetooth headset production according to claim 2, wherein the region extraction step specifically comprises: extracting the image by adopting a gap position inclination angle to obtain a diaphragm area and/or a pole piece area; the inclination angle of the notch position is the parallelism.
4. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the processor when executing the program realizes the steps of the bluetooth headset production automatic detection method according to any one of claims 1 to 3.
5. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the bluetooth headset production automatic detection method according to any one of claims 1 to 3.
CN201910048067.5A 2019-01-18 2019-01-18 Automatic detection method for Bluetooth headset production, electronic equipment and storage medium Active CN109855551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910048067.5A CN109855551B (en) 2019-01-18 2019-01-18 Automatic detection method for Bluetooth headset production, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910048067.5A CN109855551B (en) 2019-01-18 2019-01-18 Automatic detection method for Bluetooth headset production, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109855551A CN109855551A (en) 2019-06-07
CN109855551B true CN109855551B (en) 2022-07-01

Family

ID=66895173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910048067.5A Active CN109855551B (en) 2019-01-18 2019-01-18 Automatic detection method for Bluetooth headset production, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109855551B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114061482A (en) * 2021-10-19 2022-02-18 嘉善宇达电子有限公司 Rapid and accurate detection system for sound film size

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104197841A (en) * 2014-09-09 2014-12-10 深圳市斯尔顿科技有限公司 Method for detecting boundaries of lithium battery winding layer
CN104215182A (en) * 2014-09-09 2014-12-17 深圳市斯尔顿科技有限公司 Lithium battery winding layer border offset detecting method
CN104964652A (en) * 2015-06-25 2015-10-07 惠州时代电池有限公司 Cell winding production detection method and device based on machine vision
JP2018116488A (en) * 2017-01-18 2018-07-26 株式会社豊田自動織機 Recognition device and recognition method
JP2019002888A (en) * 2017-06-20 2019-01-10 名古屋電機工業株式会社 Electrode extraction device, method for extracting electrode, and electrode extraction program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104197841A (en) * 2014-09-09 2014-12-10 深圳市斯尔顿科技有限公司 Method for detecting boundaries of lithium battery winding layer
CN104215182A (en) * 2014-09-09 2014-12-17 深圳市斯尔顿科技有限公司 Lithium battery winding layer border offset detecting method
CN104964652A (en) * 2015-06-25 2015-10-07 惠州时代电池有限公司 Cell winding production detection method and device based on machine vision
JP2018116488A (en) * 2017-01-18 2018-07-26 株式会社豊田自動織機 Recognition device and recognition method
JP2019002888A (en) * 2017-06-20 2019-01-10 名古屋電機工業株式会社 Electrode extraction device, method for extracting electrode, and electrode extraction program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于机器视觉的锂离子电池极片检测系统的研究与设计;刘学山;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20110415(第4期);论文正文第20-55页 *

Also Published As

Publication number Publication date
CN109855551A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109141232B (en) Online detection method for disc castings based on machine vision
CN107064170B (en) Method for detecting profile defect of mobile phone shell
CN102589435B (en) Efficient and accurate detection method of laser beam center under noise environment
CN109900711A (en) Workpiece, defect detection method based on machine vision
CN109115800B (en) Method for rapidly detecting burrs of product and accurately measuring length
CN110672007A (en) Workpiece surface quality detection method and system based on machine vision
CN113763350B (en) Glue line detection method and device, glue line detection equipment and storage medium
WO2022105676A1 (en) Method and system for measuring wear of workpiece plane
CN105139384B (en) The method and apparatus of defect capsule detection
CN109990711B (en) Appearance quality detection method for punched nickel-plated steel strip
CN105478363A (en) Defective product detection and classification method and system based on three-dimensional figures
CN116740060B (en) Method for detecting size of prefabricated part based on point cloud geometric feature extraction
CN103245667A (en) Method and system for automatically detecting mechanical scratches
CN115035092A (en) Image-based bottle detection method, device, equipment and storage medium
CN109855551B (en) Automatic detection method for Bluetooth headset production, electronic equipment and storage medium
CN113513991A (en) Battery pole piece burr height detection method and device
CN108844469B (en) Method and system for testing workpiece step height based on laser
CN101696876B (en) Visual detection method for VCM magnetic steel
CN110673125B (en) Sound source positioning method, device, equipment and storage medium based on millimeter wave radar
JP2012037488A (en) Shape inspection device and shape inspection method
CN112284983A (en) Method for measuring contact angle by image processing
CN115615992B (en) Fireproof brick size measurement and defect detection method
CN114240928B (en) Partition detection method, device and equipment for board quality and readable storage medium
CN114577816A (en) Hydrogen fuel bipolar plate detection method
JP6397292B2 (en) Item identification and image discrimination method by image processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 511400 building B10, Huachuang Animation Industrial Park, Jinshan Village, Shiji Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: Supersonic Artificial Intelligence Technology Co.,Ltd.

Address before: 511400 building B10, Huachuang Animation Industrial Park, Jinshan Village, Shiji Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU SUPERSONIC AUTOMATION TECHNOLOGY Co.,Ltd.