Defect detection method and defect detection system
1. A defect detection method, comprising:
shooting a terminal to be tested to obtain a target picture of each surface of the terminal to be tested;
analyzing the target picture of each surface, and marking the defect position of each surface;
backtracking the target picture marked with the defect position into a three-dimensional image;
and sending the three-dimensional image to a holding person of the terminal to be detected so that the holding person can rotate the three-dimensional image to determine the defect position of the terminal to be detected.
2. The defect detection method of claim 1, wherein the defect detection method comprises: and acquiring reference pictures of each surface of the terminal to be detected at a plurality of angles in advance, wherein the reference pictures are images without defects.
3. The defect detection method of claim 1, wherein the analyzing of the image of each face marks the defect location of each face;
acquiring a reference picture corresponding to the terminal to be tested according to the model of the terminal to be tested;
and comparing the target picture with the reference picture for each surface, determining the difference between the target picture and the reference picture, and marking the target picture to mark the defect position of each surface.
4. The method of claim 1, wherein the tracing back the target picture marked with the defect position into a three-dimensional image comprises:
and adjusting the size of the target pictures with the marked defect positions of all the surfaces, the distance between the target pictures and the relative positions of the target pictures, and splicing and synthesizing the target pictures of all the surfaces, so as to trace back the target pictures with the marked defect positions into a three-dimensional image.
5. The defect detection method according to claim 1, wherein before the step of shooting the terminal to be detected and obtaining the target picture of each surface of the terminal to be detected, the method further comprises:
determining whether the terminal to be tested is placed at a preset position;
and if the terminal is not placed at the preset position, outputting prompt information to adjust the position of the terminal to be detected.
6. The defect detection method of claim 5, wherein the determining whether the terminal under test is placed at a preset position comprises:
triggering a laser transmitter to transmit a laser signal towards the terminal to be detected so as to form a projection image;
acquiring the size of the projected image, and judging whether the size of the projected image is the same as the reference size of the terminal to be detected;
if the terminal to be tested is the same as the terminal to be tested, the terminal to be tested is placed at a preset position;
and if not, the terminal to be tested is not placed at a preset position.
7. The defect detection method of claim 1, further comprising:
and analyzing the defect position, determining the defect type and the defect grade corresponding to the defect position, and grading the terminal to be detected.
8. The defect detection method of claim 1, wherein the target picture is a color image or a grayscale image.
9. The defect detection method of claim 1, wherein the terminal under test comprises a mobile phone or a tablet computer.
10. A defect detection system, wherein the defect detection system is used for implementing the defect detection method according to any one of claims 1 to 9.
Background
The existing recovery mobile phone carries out appearance detection by photographing through equipment, then submitting a photo to an engineer for defect searching, and finally outputting the defective photo to a consumer. The defect detection is carried out by off-line physical stores, because the detection equipment has no popularity, and many customers needing on-line detection cannot carry out the defect detection due to the limitation of the off-line physical stores, so that the defect detection causes troubles.
In view of this, overcoming the deficiencies of the prior art products is an urgent problem to be solved in the art.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a defect detection method and a defect detection system, wherein target pictures of all sides of a terminal to be detected are collected, the target pictures are compared with reference pictures, defect positions are marked, then the marked pictures are subjected to 3D recombination to obtain three-dimensional images, the three-dimensional images are sent to holding personnel, and the holding personnel can determine the defect positions through rotation to realize online detection.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a defect detection method including:
shooting a terminal to be tested to obtain a target picture of each surface of the terminal to be tested;
analyzing the target picture of each surface, and marking the defect position of each surface;
backtracking the target picture marked with the defect position into a three-dimensional image;
and sending the three-dimensional image to a holding person of the terminal to be detected so that the holding person can rotate the three-dimensional image to determine the defect position of the terminal to be detected.
Preferably, the defect detection method includes: and acquiring reference pictures of each surface of the terminal to be detected at a plurality of angles in advance, wherein the reference pictures are images without defects.
Preferably, the images of the surfaces are analyzed, and the defect positions of the surfaces are marked;
acquiring a reference picture corresponding to the terminal to be tested according to the model of the terminal to be tested;
and comparing the target picture with the reference picture for each surface, determining the difference between the target picture and the reference picture, and marking the target picture to mark the defect position of each surface.
Preferably, the backtracking of the target picture marked with the defect position into a three-dimensional image comprises:
and adjusting the size of the target pictures with the marked defect positions of all the surfaces, the distance between the target pictures and the relative positions of the target pictures, and splicing and synthesizing the target pictures of all the surfaces, so as to trace back the target pictures with the marked defect positions into a three-dimensional image.
Preferably, the shooting of the terminal to be tested and the obtaining of the target picture of each side of the terminal to be tested further include:
determining whether the terminal to be tested is placed at a preset position;
and if the terminal is not placed at the preset position, outputting prompt information to adjust the position of the terminal to be detected.
Preferably, the determining whether the terminal to be tested is placed at a preset position includes:
triggering a laser transmitter to transmit a laser signal towards the terminal to be detected so as to form a projection image;
acquiring the size of the projected image, and judging whether the size of the projected image is the same as the reference size of the terminal to be detected;
if the terminal to be tested is the same as the terminal to be tested, the terminal to be tested is placed at a preset position;
and if not, the terminal to be tested is not placed at a preset position.
Preferably, the defect method further comprises:
and analyzing the defect position, determining the defect type and the defect grade corresponding to the defect position, and grading the terminal to be detected.
Preferably, the target picture is a color image or a grayscale image.
Preferably, the terminal to be tested comprises a mobile phone or a tablet computer.
In order to solve the above technical problem, another technical solution adopted by the present application is: a defect detection system is provided for implementing the defect detection method described herein.
The beneficial effect of this application is: the application provides a defect detection method and a defect detection system, wherein the defect detection method comprises the following steps: shooting a terminal to be tested to obtain a target picture of each surface of the terminal to be tested; analyzing the target picture of each surface, and marking the defect position of each surface; backtracking the target picture marked with the defect position into a three-dimensional image; and sending the three-dimensional image to a holding person of the terminal to be detected so that the holding person can rotate the three-dimensional image to determine the defect position of the terminal to be detected.
In the method, the target pictures of all sides of the terminal to be detected are collected, the target pictures are compared with the reference pictures, the defect positions are marked, then the marked pictures are subjected to 3D recombination to obtain three-dimensional images, the three-dimensional images are sent to holding personnel, and the holding personnel can determine the defect positions through rotation to realize online detection.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below. It is obvious that the drawings described below are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a defect detection method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of another defect detection method provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Example 1:
referring to fig. 1 and 2, the present embodiment provides a defect detection method, including:
step 101: shooting a terminal to be tested, and acquiring a target picture of each surface of the terminal to be tested.
The terminal to be tested is a mobile phone or a tablet computer.
And the target picture is a color image or a gray image.
Step 102: and analyzing the target pictures of all the surfaces, and marking the defect positions of all the surfaces.
Specifically, a reference picture corresponding to the terminal to be tested is obtained according to the model of the terminal to be tested;
and comparing the target picture with the reference picture for each surface, determining the difference between the target picture and the reference picture, and marking the target picture to mark the defect position of each surface.
Step 103: and backtracking the target picture marked with the defect position into a three-dimensional image.
Specifically, the size of the target pictures with the marked defect positions of each surface, the distance between the target pictures and the relative positions of the target pictures are adjusted, and the target pictures of each surface are spliced and synthesized, so that the target pictures with the marked defect positions are traced back to a three-dimensional image.
Step 104: and sending the three-dimensional image to a holding person of the terminal to be detected so that the holding person can rotate the three-dimensional image to determine the defect position of the terminal to be detected.
In this embodiment, the three-dimensional image is sent to the terminal, and the holding person can rotate and zoom in through touch, so that the holding person can visually watch the three-dimensional image.
Further, reference pictures of each surface of the terminal to be tested at a plurality of angles are obtained in advance, wherein the reference pictures are images without defects.
In an optional embodiment, the corresponding terminal model is prestored in the upper computer, and at least every angle shooting picture, one picture at every angle and at least 360 pictures are stored. And the upper computer receives the target picture back picture and matches the pre-stored picture. For example, the front picture matches the front picture and all pictures of ± 5 °, and the upper computer marks the defect such as scratch, chip, etc. differently from the pre-stored picture. The + -5 deg. is chosen because there is a deviation when the camera under test is held by hand, so that the multiple-picture comparison performed ensures accuracy. And after the comparison of the shot pictures is completed and the marks are different, marking the defective positions with striking marks and storing the marks. The pictures marked with the marks are gathered and subjected to three-D recombination. And sending the recombined data to an upper computer and a user mobile phone, and amplifying, rotating and observing the mark position.
In other embodiments, the target image may be corrected, and then whether a defect exists is detected, where the specific correction method is as follows:
the upper computer analyzes the target picture, obtains four vertexes of the target picture, and obtains a target intersection point of diagonal lines formed by the four vertexes; the upper computer determines the model of the terminal to be detected according to input information, acquires a reference image according to the model of the terminal to be detected, and further acquires four vertexes of the reference image and a reference intersection point of a diagonal line formed by the four vertexes; and coinciding the target intersection point of the target picture with the reference intersection point, and rotating the target picture by taking the target intersection point as a rotation center until four top points of the target picture coincide with four top points of the reference image.
The corrected image is then compared to a reference image to mark defects.
The mode needs an image acquisition device (such as a mobile phone), does not need to be taken to a specific place for detection, and is simple.
In the method, the target pictures of all sides of the terminal to be detected are collected, the target pictures are compared with the reference pictures, the defect positions are marked, then the marked pictures are subjected to 3D recombination to obtain three-dimensional images, the three-dimensional images are sent to holding personnel, and the holding personnel can determine the defect positions through rotation to realize online detection.
Example 2:
in an actual application scenario, for a self-service detection scenario, the method is used for shooting the terminal to be detected of the terminal to be detected through a self-service detection system, and before obtaining a target picture of each surface of the terminal to be detected, the method further includes: determining whether the terminal to be tested is placed at a preset position; and if the terminal is not placed at the preset position, outputting prompt information to adjust the position of the terminal to be detected.
In this embodiment, the defect method further includes:
and analyzing the defect position, determining the defect type and the defect grade corresponding to the defect position, and grading the terminal to be detected.
Determining whether the terminal to be tested is placed at a preset position or not according to the following mode: triggering a laser transmitter to transmit a laser signal towards the terminal to be detected so as to form a projection image; acquiring the size of the projected image, and judging whether the size of the projected image is the same as the reference size of the terminal to be detected; if the terminal to be tested is the same as the terminal to be tested, the terminal to be tested is placed at a preset position; and if not, the terminal to be tested is not placed at a preset position.
Specifically, the defect detecting system provided in this embodiment further includes a carrier plate, a first laser emitter, a second laser emitter, a first image capturing device, a second image capturing device, a camera, and an upper computer (not shown in the figure), where the camera is a CCD camera.
Specifically, the first laser emitter and the first image acquisition equipment are arranged on two opposite sides of the carrier plate, the second laser emitter and the second image acquisition equipment are arranged on two opposite sides of the carrier plate, the first laser emitter and the second laser emitter are arranged on two adjacent sides of the carrier plate, and the camera is arranged above the carrier plate.
Under the practical application scene, first laser emitter with first image acquisition equipment can place respectively the both sides portion of terminal that awaits measuring, second laser emitter with second image acquisition equipment can place respectively the both ends at terminal that awaits measuring, first laser emitter with second laser emitter transmission is greater than the light of terminal end surface area that awaits measuring, and terminal that awaits measuring blocks laser ray, forms the projection image, and the projection image is set up the acquisition equipment collection at the opposite side, can obtain the projection image of terminal end surface and the side that awaits measuring, also be exactly terminal length, the wide projection that awaits measuring.
Further, the first image acquisition device and the second image acquisition device are connected in a wired manner, wherein the wired manner includes a network cable connection, or the first image acquisition device and the second image acquisition device are connected in a wireless manner, and the wireless manner includes bluetooth, WiFi, a local area network and zigbee.
In this embodiment, the carrier plate is used for bearing a terminal to be tested, and a mark is arranged on the carrier plate to assist a holding person to place the terminal to be tested at a preset position, so as to reduce the placement offset of the terminal to be tested.
Specifically, the first laser transmitter is used for transmitting a laser signal towards the terminal to be tested so as to form a first projection image; the second laser transmitter is used for transmitting a laser signal to the terminal to be tested so as to form a second projection image; the first image acquisition device is used for acquiring the first projection image and sending the first projection image to the upper computer; the second image acquisition device is used for acquiring the second projection image and sending the second projection image to the upper computer; the camera is used for acquiring a target picture of the terminal to be tested, wherein the target picture can show the position of the terminal to be tested relative to the carrier plate.
The upper computer is used for judging whether the target picture needs to be corrected or not according to the size of the first projection image and the size of the second projection image, and if the target picture needs to be corrected, the target picture is corrected based on the model of the terminal to be corrected, the size of the first projection image and the size of the second projection image. The upper machine tool is used for acquiring the length of the first projection image and the length of the second projection image; judging whether the length of the first projection image is the same as that of the first side edge of the terminal to be detected or not, and whether the length of the second projection image is the same as that of the second side edge of the terminal to be detected or not; if the terminal to be detected is the same as the terminal to be detected, the terminal to be detected is placed at a preset position; if not, the terminal to be detected is not placed at the preset position, and the holding personnel is prompted to adjust the position of the terminal to be detected. After the terminal to be tested is placed at the preset position, step 101 is started.
Example 3:
the present embodiment further provides a defect detection system, which is used for implementing the defect detection method described in the foregoing embodiments.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种光转换紫外光束分析仪的制备方法