Rod defect detection method, device, electronic device and readable storage medium
By obtaining the two-dimensional texture and three-dimensional geometric information of the sticks, the defects of the ice cream sticks are automatically detected, which solves the problem of low quality inspection efficiency in the existing technology, achieves efficient and accurate detection of the sticks, and improves production efficiency.
Patent Information
- Application Number
- CN202010836211.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-08-18
AI Technical Summary
In the existing technology, during the production process of ice cream, lollipops and other stick objects, the quality inspection efficiency is low and manual inspection is relied on, resulting in low production efficiency.
By obtaining the two-dimensional texture information and/or three-dimensional geometric information of the rod, the defects on the rod body are detected, including posture detection, identification of reverse insertion, posture deviation and posture skew, using a three-dimensional profiler and Neural network model realizes automated detection.
It greatly improves the detection efficiency and accuracy, reduces the dependence on manual detection, and improves the processing quality of objects to be rodded.
Smart Images

Figure CN111968094B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular, to a rod defect detection method, device, electronic device and readable storage medium. Background Art
[0002] At present, in the manufacturing process of some objects to be made into sticks, such as ice cream and lollipops, automated assembly line production has been basically realized, which has high production efficiency and large shipment volume. However, in the production quality inspection link, it still relies on manual inspection. For example, in the stick insertion environment of ice cream production, two or three inspectors are required to be placed on each production line to observe the quality of the stick of each ice cream in real time and manually remove defective products. This quality inspection method is inefficient. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a rod defect detection method, device, electronic device and readable storage medium to improve the problem of low quality inspection efficiency in the prior art.
[0004] In a first aspect, an embodiment of the present application provides a rod defect detection method, the method comprising: after the rod is inserted into the body of an object to be rodded, obtaining two-dimensional texture information and / or three-dimensional geometric information of the rod; and detecting defects of the rod on the body based on the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0005] In the above implementation process, the defects on the rod body are detected based on the two-dimensional texture information and / or three-dimensional geometric information of the rod. Compared with the existing manual detection method, the defect detection method of this scheme greatly improves the detection efficiency.
[0006] Optionally, the detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod includes:
[0007] Defect detection is performed on the posture of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0008] In the above implementation process, by detecting the position and posture of the rod on the main body, the quality of the rod insertion can be detected in the rod insertion link.
[0009] Optionally, the posture includes inversion, and defect detection is performed on the posture of the rod on the body according to the two-dimensional texture information of the rod, including:
[0010] identifying whether there is identification information on the rod according to the two-dimensional texture information of the rod;
[0011] If not, it is determined that the position of the rod on the body is reversely inserted.
[0012] Optionally, the posture includes at least one of posture offset and posture skew, and defect detection is performed on the posture of the rod on the body according to the three-dimensional geometric information of the rod, including:
[0013] According to the three-dimensional geometric information of the rod, it is identified whether the rod has a posture deviation and / or a posture skewness on the body.
[0014] In the above implementation process, by performing defect detection on the posture of the rod based on the two-dimensional texture information and / or three-dimensional geometric information of the rod, it is possible to accurately detect whether the posture of the rod on the body is correct.
[0015] Optionally, the acquiring of the two-dimensional texture information and / or three-dimensional geometric information of the rod includes:
[0016] Acquiring image information of the object to be processed by a three-dimensional profilometer, wherein the image information includes two-dimensional texture information and / or three-dimensional geometric information;
[0017] The two-dimensional texture information of the rod is extracted from the two-dimensional texture information of the object to be processed, and / or the three-dimensional geometric information of the rod is extracted from the three-dimensional geometric information of the object to be processed.
[0018] In the above implementation process, the two-dimensional texture information and / or three-dimensional geometric information of the object to be processed can be quickly obtained through the three-dimensional profilometer.
[0019] Optionally, the step of obtaining image information of the object to be processed by a three-dimensional profilometer includes:
[0020] Obtaining the production line speed during the processing of the object to be processed;
[0021] A corresponding control signal is output to the three-dimensional profiler according to the production line speed, and the image information of the object to be processed is acquired by the three-dimensional profiler according to the control signal.
[0022] In the above implementation process, the image acquisition speed of the three-dimensional profiler is controlled based on the production line speed, so that the synchronous acquisition of images can be achieved, which is convenient for acquiring images of all objects to be processed on the production line.
[0023] Optionally, after detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod, the method further comprises:
[0024] According to the detection results obtained after the defect detection, the sorting equipment is controlled to sort the objects to be rod-formed.
[0025] In the above implementation process, the sorting device is controlled by the detection result to sort the objects to be processed, so that the objects to be processed that do not meet the quality standards can be removed, thereby improving the processing quality of the objects to be processed.
[0026] In a second aspect, an embodiment of the present application provides a rod defect detection device, the device comprising:
[0027] An information acquisition module, used to acquire two-dimensional texture information and / or three-dimensional geometric information of the rod after the rod is inserted into the body of the object to be rodded;
[0028] A defect detection module is used to detect defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0029] Optionally, the defect detection module is used to perform defect detection on the posture of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0030] Optionally, the posture includes reverse insertion, and the defect detection module is used to identify whether there is identification information on the rod according to the two-dimensional texture information of the rod; if not, it is determined that the posture of the rod on the body is reverse insertion;.
[0031] Optionally, the posture includes at least one of posture offset and posture skew, and the defect detection module is used to identify whether the rod has posture offset and / or posture skew on the body according to the three-dimensional geometric information of the rod.
[0032] Optionally, the information acquisition module is used to obtain image information of the object to be processed by a three-dimensional profilometer, wherein the image information includes two-dimensional texture information and / or three-dimensional geometric information; extract the two-dimensional texture information of the rod from the two-dimensional texture information of the object to be processed, and / or extract the three-dimensional geometric information of the rod from the three-dimensional geometric information of the object to be processed.
[0033] Optionally, the information acquisition module is used to obtain the production line speed of the object to be processed during processing; output a corresponding control signal to the three-dimensional profiler according to the production line speed, and obtain image information of the object to be processed through the three-dimensional profiler according to the control signal.
[0034] Optionally, the device further comprises:
[0035] The sorting module is used to control the sorting equipment to sort the objects to be rod-formed according to the detection results obtained after the defect detection.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.
[0037] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.
[0038] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of an electronic device for executing a rod defect detection method provided in an embodiment of the present application;
[0041] Figure 2 A flowchart of a rod defect detection method provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of an ice cream stick processing process provided in an embodiment of the present application;
[0043] Figure 4 This is a structural block diagram of a rod defect detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application.
[0045] An embodiment of the present application provides a rod defect detection method, which detects defects on the rod body based on the two-dimensional texture information and / or three-dimensional geometric information of the rod. Compared with the existing manual detection method, this solution has high detection efficiency and accuracy.
[0046] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of an electronic device for executing a rod defect detection method provided in an embodiment of the present application, the electronic device may include: at least one processor 110, such as a CPU, at least one communication interface 120, at least one memory 130 and at least one communication bus 140. Among them, the communication bus 140 is used to realize direct connection and communication between these components. Among them, the communication interface 120 of the device in the embodiment of the present application is used to communicate signals or data with other node devices. The memory 130 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 130 can optionally also be at least one storage device located away from the aforementioned processor. Computer-readable instructions are stored in the memory 130. When the computer-readable instructions are executed by the processor 110, the electronic device executes the following Figure 2 In the method process shown, for example, the memory 130 can be used to store two-dimensional texture information and three-dimensional geometric information of the rod. When the processor 110 performs defect detection on the rod, it can obtain the two-dimensional texture information and three-dimensional geometric information from the memory 130, and then use the two-dimensional texture information and three-dimensional geometric information to perform defect detection on the rod.
[0047] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0048] Please refer to Figure 2 , Figure 2 A flow chart of a rod defect detection method provided in an embodiment of the present application, the method comprising the following steps:
[0049] Step S110: After the rod is inserted into the body of the object to be rodded, the two-dimensional texture information and / or three-dimensional geometric information of the rod is obtained.
[0050] The object to be stuck in the embodiment of the present application may refer to any object with a stick part such as ice cream, lollipop, etc. For the convenience of description, ice cream is used as an example in the subsequent embodiments. Thus, the stick part mentioned in the embodiment of the present application is an ice cream stick, the object to be stuck is ice cream, and the main body is the ice cream body.
[0051] In the process of ice cream processing, after the ice cream body is produced by the previous process, the body is placed in the assembly line tray and enters the stick inserting machine. After the stick inserting machine inserts the wooden stick into the body, the assembly line tray continues to drive the body to the next process. Before entering the next process, there is a long assembly line vacancy, which is used to detect the quality of the ice cream stick. For example, the camera installed above the assembly line can collect images of the ice cream processing process in real time, and then the camera can send the collected images to the electronic device, which can detect the relevant defects of the ice cream stick based on the image.
[0052] Among them, the electronic device can send an image acquisition instruction to the camera after determining that the popsicle stick is inserted into the popsicle body. After receiving the image acquisition instruction, the camera collects the image of the popsicle, so that the image collected at this time is the image after the popsicle stick is inserted into the popsicle. Among them, after the popsicle body is processed, the popsicle stick enters the stage of inserting the popsicle body, and the popsicle stick is inserted into the popsicle body through relevant processing equipment. At this time, the processing equipment can send corresponding instruction information to the electronic device to indicate that the popsicle enters the popsicle stick processing stage, and the electronic device can send the image acquisition instruction to the camera after receiving the instruction information. Of course, it is also possible to trigger the corresponding instruction in the electronic device manually after the popsicle enters the popsicle stick processing stage so that the electronic device sends the image acquisition instruction to the camera, or it is also possible to control the camera to collect images through the processing equipment after the popsicle enters the popsicle stick processing stage, or to collect images through the camera manually.
[0053] It can be understood that the image captured by the camera is sent to the electronic device in real time, and the electronic device can analyze the image to obtain the two-dimensional texture information and / or three-dimensional geometric information of the popsicle stick.
[0054] Among them, the methods for extracting the two-dimensional texture information of the popsicle stick from the image can include: the texture analysis method of the grayscale co-occurrence matrix, the method of extracting image texture using Fourier transform, the texture feature extraction method based on the image grayscale histogram, etc. The specific implementation process of extracting the two-dimensional texture information using each method can refer to the relevant implementation process in the prior art, which is not described in detail here. The methods for extracting the three-dimensional geometric information of the popsicle stick can include: perspective scaling, perspective shortening, texture gradient and other methods, and the specific implementation process can also refer to the relevant implementation process in the prior art, which is not described in detail here.
[0055] In addition, three-dimensional geometric information can also be obtained through stereoscopic vision imaging. The principle of stereoscopic vision imaging is to first shoot the ice cream from different viewing angles, and then reconstruct the three-dimensional model based on the relevant visual super-viewing, and then the three-dimensional geometric information can be obtained. Among them, stereoscopic vision imaging methods include binocular vision method, multi-eye stereo vision method, etc.
[0056] It should be noted that, since the captured image may also include other information, such as the processing environment of the entire ice cream, in order to extract the two-dimensional texture information and / or three-dimensional geometric information of the ice cream stick, the image area of the ice cream stick can be segmented from the image, wherein the relevant image segmentation algorithm can be used to segment the ice cream stick area, and the segmentation process is not described in detail here. Then, the image correction and enhancement algorithm can be used to extract the two-dimensional texture information of the ice cream stick, and the image correction and enhancement algorithm can also be used to extract the three-dimensional geometric information of the ice cream stick. The detailed process of this extraction method can refer to the relevant implementation process in the prior art, and it will not be described in detail here. This method can accurately extract the two-dimensional texture information and / or three-dimensional geometric information of the ice cream stick area.
[0057] Step S120: detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0058] After obtaining the two-dimensional texture information and / or three-dimensional geometric information of the popsicle stick as described above, defects of the popsicle stick on the cake body can be detected based on the two-dimensional texture information and / or three-dimensional geometric information, such as whether the insertion position of the popsicle stick on the cake body is correct.
[0059] In the above implementation process, the defects on the rod body are detected based on the two-dimensional texture information and / or three-dimensional geometric information of the rod. Compared with the existing manual detection method, the defect detection method of this scheme greatly improves the detection efficiency.
[0060] As an implementation mode, the defect of the rod on the body includes the posture of the rod on the body, that is, the posture of the rod on the body can be inspected for defects based on the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0061] For example, whether the position of the popsicle stick on the cake body is correct, such as whether it is skewed, etc., can be determined based on the two-dimensional texture information and / or three-dimensional geometric information of the popsicle stick.
[0062] In the specific implementation process, the posture includes reverse insertion. When the posture defect detection of the rod is performed as mentioned above, it can be identified whether there is identification information on the rod based on the two-dimensional texture information of the rod. If not, it is determined that the posture of the rod on the body is reversed.
[0063] Taking the popsicle stick as an example, based on the two-dimensional texture information of the popsicle stick, it can be identified whether there is any identification information on the popsicle stick. The identification information may be a manufacturer's logo, etc. For example, during the processing of the popsicle stick, a manufacturer's logo is marked at a preset position of each popsicle stick (such as near the tail of the popsicle stick). When inserting the popsicle stick into the cake body, the correct approach should be to insert the side without the manufacturer's logo into the cake body, so that the side with the popsicle stick is exposed outside the cake body. Therefore, if it is identified that there is no manufacturer's logo on the popsicle stick, it is determined that the popsicle stick may have been inserted upside down.
[0064] As an implementation mode, the posture may also include at least one of posture offset and posture skew. Then, when performing the above-mentioned posture defect detection of the rod, it is also possible to identify whether there is posture offset and / or posture skew on the rod body based on the three-dimensional geometric information of the rod.
[0065] Since the three-dimensional geometric information carries the three-dimensional coordinates of the popsicle stick, it is possible to determine whether there is a deviation in the preset position of the popsicle stick relative to the cake body (such as the center position of one side of the cake body) based on the three-dimensional coordinates of the popsicle stick. If there is no deviation, it is determined that the insertion position of the popsicle stick is accurate. If there is a deviation, it is determined that the insertion position of the popsicle stick is inaccurate, that is, it is determined that the popsicle stick has a posture offset. Posture skew means that the popsicle stick may not be inserted vertically into the cake body, but inserted obliquely into the cake body, which makes the popsicle stick form a certain inclination angle relative to the cake body. Therefore, it is possible to determine whether the popsicle stick forms a certain inclination angle relative to the cake body based on the three-dimensional geometric information. If so, it is determined that the popsicle stick has a posture skew. If not, it is determined that the popsicle stick does not have a posture skew.
[0066] Through the above-mentioned inspection, the popsicle stick may have at least one of the following defects: reverse insertion, displacement and skew. Of course, the popsicle stick may not have any of the above-mentioned defects. If the popsicle stick has defects, it means that the processing quality of the ice cream is unqualified. At this time, the staff can be notified to remove the unqualified ice cream, so as to ensure the processing quality of the ice cream.
[0067] In the above implementation process, by detecting the position and posture of the rod on the main body, the quality of the rod insertion can be detected in the rod insertion link.
[0068] As an implementation mode, when detecting defects of the rod as described above, a neural network model may be used to identify whether there is posture deviation and / or posture distortion of the rod on the body based on the three-dimensional geometric information of the rod.
[0069] Among them, the neural network model can be pre-trained with a large number of training images. For example, the training images can be images of popsicle sticks collected during the processing process. Then the posture of the popsicle stick in the training images can be manually annotated, and then the training images with annotated information can be input into the neural network model. The three-dimensional geometric information of the popsicle stick is extracted by the neural network model, and the posture state of the popsicle stick on the cake body is determined based on the three-dimensional geometric information. In this way, the neural network model is trained. The training process of the neural network model can refer to the relevant implementation process in the prior art, which will not be described in detail here. After the training of the neural network model is completed, the trained neural network model can be used to identify whether the popsicle stick has posture offset and / or posture skew.
[0070] Of course, it is also possible to use a neural network model to identify whether there is identification information on the stick based on the two-dimensional texture information of the stick. For example, the identification information on the popsicle stick in the training image can be labeled, and then the training image with the labeled information can be input into the neural network model to train the neural network model. In this way, the trained neural network model can be used to identify whether there is identification information on the stick.
[0071] The above-mentioned neural network model can be a convolutional neural network model, a recurrent neural network model, a long short-term memory network model, etc.
[0072] In the above implementation process, the position and posture of the rod can be detected quickly and accurately through the neural network model.
[0073] As an implementation manner, the method of obtaining the two-dimensional texture information and / or three-dimensional geometric information of the rod in the above embodiment can also be obtained in the following manner: obtaining image information of the object to be rodded by a three-dimensional profilometer, the image information including two-dimensional texture information and / or three-dimensional geometric information, and then extracting the two-dimensional texture information of the rod from the two-dimensional texture information of the object to be rodded, and / or extracting the three-dimensional geometric information of the rod from the three-dimensional geometric information of the object to be rodded.
[0074] For example, Figure 3 As shown, during the ice cream processing, the ice cream stick is inserted into the cake body by a stick inserting machine, wherein a three-dimensional profilometer can be installed above the processing production line where the ice cream stick is inserted into the cake body, and the three-dimensional profilometer can communicate with a computer, and the computer is the above-mentioned electronic device, so that the three-dimensional profilometer can send the collected image information to the computer, and the image information is processed accordingly by the computer.
[0075] Among them, the three-dimensional profiler includes industrial cameras, laser light sources, fixed brackets and other devices. To ensure the quality of optical imaging, the fixed bracket can be placed above the central position of the production line, with the industrial camera fixed on one side of the fixed bracket and the laser light source fixed on the other side of the fixed bracket. The industrial camera looks down from above to image the ice cream on the production line, and the imaging results include two-dimensional texture information and three-dimensional geometric information, that is, the image information of the ice cream. In each imaging, the industrial camera can obtain a contour projected by the laser light source on the ice cream. The three-dimensional geometric information of this contour can be calculated using the structural parameters of the industrial camera and the laser light source. At the same time, at different points on this contour, the corresponding object surface reflectivity information, that is, the two-dimensional texture information, can be restored according to the different light intensities. Then, as the ice cream production line drives the ice cream to translate, the entire ice cream can be scanned, thereby obtaining the two-dimensional texture information and / or three-dimensional geometric information of the ice cream.
[0076] Since the relevant defects of the stick are detected, the two-dimensional texture information of the ice cream stick can be extracted from the two-dimensional texture information of the ice cream and / or the three-dimensional geometric information of the ice cream stick can be extracted from the three-dimensional geometric information of the ice cream, wherein the two-dimensional texture information and / or three-dimensional geometric information of the ice cream stick can be extracted through the corresponding neural network model.
[0077] In the above implementation process, the two-dimensional texture information and / or three-dimensional geometric information of the object to be processed can be quickly obtained through the three-dimensional profilometer.
[0078] As an implementation method, since the processing speed of ice cream may be uneven, in order to enable the three-dimensional profiler to capture images of all the ice cream, the speed at which the three-dimensional profiler captures images can be controlled. The specific implementation process can be: obtaining the production line speed during the processing of the object to be processed, outputting a corresponding control signal to the three-dimensional profiler according to the production line speed, and obtaining image information of the object to be processed through the three-dimensional profiler according to the control signal.
[0079] Among them, the production line speed refers to the production line speed during the processing of popsicle sticks, such as Figure 3 After the popsicle sticks are inserted into the cake body by the stick inserter, the popsicle is transported to the next process through the popsicle production line, that is, the production line speed is the speed of the popsicle production line in this process. The control signal corresponding to the production line speed output can be understood as follows: if the production line speed is 1 meter per second, the speed of the control signal output can be one control signal per second, and if the production line speed is 2 meters per second, the speed of the control signal output can be two control signals per second. The three-dimensional profiler can perform an image acquisition after receiving a control signal each time, thereby realizing synchronous shooting.
[0080] In the above implementation process, the image acquisition speed of the three-dimensional profiler is controlled based on the production line speed, so that the synchronous acquisition of images can be achieved, which is convenient for acquiring images of all objects to be processed on the production line.
[0081] After the defect detection of the rods is performed as described above, the sorting device can be controlled to sort the rod objects according to the detection results obtained after the defect detection.
[0082] For example, after the popsicle stick is inserted into the cake body, the next process may be to sort the popsicle, the purpose of which is to screen out the popsicles of unqualified quality, and the popsicles of qualified quality can continue to enter the next process for processing, such as packaging the popsicles. For example, after defect detection, if the test result shows that the popsicle stick has at least any one of the above-mentioned defects (such as at least one of reverse insertion, position displacement and skewed position), the popsicle is considered to be of unqualified quality, and the sorting equipment can be controlled to sort out the popsicle, that is, to prevent the popsicle from entering the subsequent processing steps. If the test result shows that the popsicle stick does not have any of the above-mentioned defects, the popsicle is considered to be of qualified quality, and the sorting equipment can be controlled to transport the popsicle to the next process.
[0083] Since the electronic equipment can identify each ice cream on the ice cream production line in real time, it can promptly identify the defects of the ice cream according to the production line speed, so that the sorting equipment can be controlled in time to sort out the unqualified ice cream to prevent the unqualified ice cream from entering the subsequent process, thereby ensuring the processing quality of the ice cream.
[0084] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a rod defect detection device 200 provided in an embodiment of the present application. The device 200 may be a module, program segment or code on an electronic device. It should be understood that the device 200 is similar to the above-mentioned Figure 2 The method embodiment corresponds to and can be executed Figure 2 The various steps involved in the method embodiment and the specific functions of the device 200 can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here.
[0085] Optionally, the device 200 includes:
[0086] The information acquisition module 210 is used to acquire the two-dimensional texture information and / or three-dimensional geometric information of the rod after the rod is inserted into the body of the object to be rodded;
[0087] The defect detection module 220 is used to detect defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0088] Optionally, the defect detection module 220 is used to perform defect detection on the posture of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0089] Optionally, the posture includes reverse insertion, and the defect detection module 220 is used to identify whether there is identification information on the rod according to the two-dimensional texture information of the rod; if not, it is determined that the posture of the rod on the body is reverse insertion.
[0090] Optionally, the posture includes at least one of posture offset and posture skew, and the defect detection module 220 is used to identify whether the rod has posture offset and / or posture skew on the body according to the three-dimensional geometric information of the rod.
[0091] Optionally, the information acquisition module 210 is used to obtain image information of the object to be processed by a three-dimensional profilometer, wherein the image information includes two-dimensional texture information and / or three-dimensional geometric information; extract the two-dimensional texture information of the rod from the two-dimensional texture information of the object to be processed, and / or extract the three-dimensional geometric information of the rod from the three-dimensional geometric information of the object to be processed.
[0092] Optionally, the information acquisition module 210 is used to obtain the production line speed of the object to be processed; output a corresponding control signal to the three-dimensional profiler according to the production line speed, and obtain image information of the object to be processed according to the control signal through the three-dimensional profiler.
[0093] Optionally, the device 200 further includes:
[0094] The sorting module is used to control the sorting equipment to sort the objects to be rod-formed according to the detection results obtained after the defect detection.
[0095] The present application provides a readable storage medium, wherein when the computer program is executed by a processor, the computer program is executed as follows: Figure 2 The method process in the method embodiment shown is executed by the electronic device.
[0096] The present embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: after the rod is inserted into the body of the object to be rodded, obtaining the two-dimensional texture information and / or three-dimensional geometric information of the rod; and detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod.
[0097] In summary, the embodiments of the present application provide a rod defect detection method, device, electronic device and readable storage medium, which detect defects on the rod body based on the two-dimensional texture information and / or three-dimensional geometric information of the rod. Compared with the existing manual detection method, the defect detection method of this scheme greatly improves the detection efficiency.
[0098] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0099] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0101] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0102] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A rod defect detection method, It is characterized in that The method comprises: After the rod is inserted into the body of the object to be rodded, two-dimensional texture information and / or three-dimensional geometric information of the rod is obtained; Detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod; The detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod comprises: Performing defect detection on the posture of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod; The obtaining of the two-dimensional texture information and / or three-dimensional geometric information of the rod comprises: Acquiring image information of the object to be processed by a three-dimensional profilometer, wherein the image information includes two-dimensional texture information and / or three-dimensional geometric information; Extracting the two-dimensional texture information of the rod from the two-dimensional texture information of the object to be rodded, and / or extracting the three-dimensional geometric information of the rod from the three-dimensional geometric information of the object to be rodded; The three-dimensional profiler includes an industrial camera, a laser light source and a fixed bracket; the fixed bracket is installed above the central position of the production line during the processing, the industrial camera is fixed on one side of the fixed bracket, and the laser light source is fixed on the other side of the fixed bracket; The object to be fixed on the production line is imaged by the industrial camera to obtain image information; the industrial camera is used to obtain the contour of the object to be fixed projected by the laser light source, and the three-dimensional geometric information of the contour is calculated using the structural parameters of the industrial camera and the laser light source; at different points of the contour, the corresponding surface reflectivity information of the object to be fixed is restored according to the different light intensities, and the surface reflectivity information includes two-dimensional texture information; The posture includes insertion inversion, and defect detection is performed on the posture of the rod on the body according to the two-dimensional texture information of the rod, including: identifying whether there is identification information on the rod according to the two-dimensional texture information of the rod; If not, determining that the position of the rod on the body is reverse insertion; The step of obtaining the image information of the object to be processed by a three-dimensional profilometer includes: Obtaining the production line speed during the processing of the object to be processed; A corresponding control signal is output to the three-dimensional profiler according to the production line speed, and the image information of the object to be processed is acquired by the three-dimensional profiler according to the control signal.
2. The method according to claim 1, It is characterized in that The posture includes at least one of posture offset and posture skew, and defect detection is performed on the posture of the rod on the body according to the three-dimensional geometric information of the rod, including: According to the three-dimensional geometric information of the rod, it is identified whether the rod has a posture deviation and / or a posture skewness on the body.
3. The method according to any one of claims 1-2, It is characterized in that After detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod, the method further includes: According to the detection results obtained after the defect detection, the sorting equipment is controlled to sort the objects to be rod-formed.
4. A rod defect detection device, It is characterized in that The device comprises: An information acquisition module, used to acquire two-dimensional texture information and / or three-dimensional geometric information of the rod after the rod is inserted into the body of the object to be rodded; A defect detection module, used for detecting defects of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod; The defect detection module is used to perform defect detection on the posture of the rod on the body according to the two-dimensional texture information and / or three-dimensional geometric information of the rod; The information acquisition module is used to acquire image information of the object to be processed by a three-dimensional profilometer, wherein the image information includes two-dimensional texture information and / or three-dimensional geometric information; extract the two-dimensional texture information of the rod from the two-dimensional texture information of the object to be processed, and / or extract the three-dimensional geometric information of the rod from the three-dimensional geometric information of the object to be processed; The three-dimensional profiler includes an industrial camera, a laser light source and a fixed bracket; the fixed bracket is installed above the central position of the production line during the processing, the industrial camera is fixed on one side of the fixed bracket, and the laser light source is fixed on the other side of the fixed bracket; the information acquisition module is used to image the object to be processed on the production line through the industrial camera to obtain image information; the industrial camera is used to obtain the contour of the object to be processed projected by the laser light source, and the three-dimensional geometric information of the contour is calculated using the structural parameters of the industrial camera and the laser light source; according to different points of the contour, the corresponding surface reflectivity information of the object to be processed is restored according to the different light intensities, and the surface reflectivity information includes two-dimensional texture information; The posture includes reverse insertion, and the defect detection module is used to identify whether there is identification information on the rod according to the two-dimensional texture information of the rod; if not, it is determined that the posture of the rod on the body is reverse insertion; The information acquisition module is used to obtain the production line speed of the object to be processed; output a corresponding control signal to the three-dimensional profiler according to the production line speed, and obtain image information of the object to be processed through the three-dimensional profiler according to the control signal.
5. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 3 is executed.
6. A readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is executed.
Citation Information
Patent Citations
Device and method for detecting pin defects of industrial parts
CN109765240A
