Method and device for detecting misplaced screws
By constructing a set of calibration patterns for screw positions for automatic detection, the high cost and low efficiency problems caused by manual inspection are solved, and automated screw position detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, screw location detection relies on manual inspection, resulting in high labor and management costs, as well as low inspection efficiency.
By acquiring a reference pattern set of all screw positions on the processed sheet metal, a verification pattern corresponding to each screw position is constructed, and automatic detection is performed using the verification pattern and the reference pattern set, reducing manual intervention.
It reduced testing costs, improved testing efficiency, and enabled automated detection of misplaced or missing screws.
Smart Images

Figure CN116952983B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of tooling detection, and in particular to a method and device for detecting missed or misplaced screw positions. BACKGROUND
[0002] Currently, screws are widely used as fasteners, such as in the fixation of parts or devices on a processed plate, and the screwing work is usually completed manually.
[0003] In actual production, after a worker screws the screw positions on a plate, a manual detection method is usually used to detect missed or misplaced screw positions on the processed plate, i.e., to detect whether the screw positions on the plate are missed or misplaced, which not only increases the labor cost and management cost of a factory, but also has low detection efficiency. SUMMARY
[0004] The present application provides a method and device for detecting missed or misplaced screw positions, which can reduce the detection cost and improve the detection efficiency.
[0005] In a first aspect, the present application provides a method for detecting missed or misplaced screw positions, comprising:
[0006] providing a processed plate provided with a plurality of screw positions;
[0007] obtaining a reference pattern set of all screw positions of the processed plate;
[0008] constructing a verification pattern corresponding to each screw position;
[0009] detecting all screw positions of the processed plate according to the verification pattern corresponding to each screw position and the reference pattern set.
[0010] Optionally, in some embodiments of the present application, the step of constructing a verification pattern corresponding to each screw position comprises:
[0011] detecting whether the number of installed screw positions on the processed plate is greater than a first preset value;
[0012] when it is detected that the number of installed screw positions on the processed plate is greater than the first preset value, constructing a verification pattern corresponding to each screw position based on the last installed screw position.
[0013] Optionally, in some embodiments of the present application, when it is detected that the number of installed screw positions on the processed plate is greater than the first preset value, constructing a verification pattern corresponding to each screw position based on the last installed screw position comprises:
[0014] determining the last installed screw position as a current processing object;
[0015] acquire two screw positions installed last time based on the current processing object, and construct a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions;
[0016] update the second last installed screw position as the current processing object, and return to execute the step of taking the current processing object as the reference until the verification pattern corresponding to each screw position is constructed.
[0017] Optionally, in some embodiments of the present application, further comprising:
[0018] determine the first installed screw position as a first screw position, and;
[0019] determine the second installed screw position as a second screw position;
[0020] acquire two screw positions except the second screw position in the processing plate based on the first screw position, and construct a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw positions, and;
[0021] acquire two screw positions except the first screw position in the processing plate based on the second screw position, and construct a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw positions.
[0022] Optionally, in some embodiments of the present application, further comprising:
[0023] detect whether the number of installed screw positions on the processing plate is greater than a second preset value, the second preset value being greater than the first preset value;
[0024] when it is detected that the number of installed screw positions on the processing plate is greater than the second preset value, construct a random verification pattern corresponding to each screw position in the processing plate;
[0025] the detection of all screw positions on the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set comprises: detection of all screw positions on the processing plate according to the reference pattern set, the verification pattern corresponding to each screw position and the random verification pattern.
[0026] Optionally, in some embodiments of the present application, the detection of all screw positions on the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set comprises:
[0027] select a target pattern corresponding to the currently detected screw position from the reference pattern set;
[0028] Detect the current detected screw position based on the target pattern and the verification pattern corresponding to the current detected screw position.
[0029] Optionally, in some embodiments of the present application, the detecting the current detected screw position based on the target pattern and the verification pattern corresponding to the current detected screw position comprises:
[0030] Matching the verification pattern corresponding to the current detected screw position with each of the target patterns;
[0031] If the verification pattern corresponding to the current detected screw position matches any of the target patterns, it is determined that the current detected screw position is installed correctly.
[0032] Optionally, in some embodiments of the present application, it further comprises:
[0033] If the verification pattern corresponding to the current detected screw position does not match any of the target patterns, a detection area adjacent to the detection area is obtained, and the target patterns are updated based on the obtained detection area;
[0034] Detecting the current detected screw position based on the updated target pattern and the verification pattern corresponding to the current detected screw position.
[0035] Optionally, in some embodiments of the present application, the selecting a target pattern for detecting the current detected screw position from the reference pattern set comprises:
[0036] Determining a historical reference screw position corresponding to the current detected screw position;
[0037] Obtaining an associated screw position associated with the detection of the historical reference screw position;
[0038] Determining a detection area corresponding to the current detected screw position in the processed plate based on the historical reference screw position and the associated screw position;
[0039] Selecting a target pattern for detecting the current detected screw position from the reference pattern set according to the detection area.
[0040] In a second aspect, the present application further provides a wrong and missing screw position detection device, characterized in that it comprises:
[0041] A providing module is configured to provide a processed plate with a plurality of screw positions installed thereon;
[0042] An obtaining module is configured to obtain a preset reference pattern set;
[0043] A constructing module is configured to construct a verification pattern corresponding to each screw position;
[0044] The detection module is configured to detect all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set.
[0045] The present application provides a wrong and missing screw position detection method and device. Firstly, a processing plate provided with a plurality of screw positions is provided. Then, a reference pattern set of all screw positions of the processing plate is obtained. Next, a verification pattern corresponding to each screw position is constructed. Finally, all screw positions of the processing plate are detected according to the verification pattern corresponding to each screw position and the reference pattern set. In the wrong and missing screw position detection scheme provided by the present application, the verification pattern corresponding to each screw position is constructed, and all screw positions of the processing plate are detected by using the verification pattern corresponding to each screw position and the reference pattern set. Therefore, the wrong and missing screw position detection of the processing plate can be performed during processing, and manual wrong and missing screw position detection is not required. Thus, the detection cost can be reduced, and the detection efficiency can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments will be briefly introduced as follows. The drawings in the following description are only corresponding to some embodiments of the present application. Those skilled in the art can obtain drawings of other embodiments according to these drawings without any creative effort.
[0047] Figure 1 A flowchart of the wrong and missing screw position detection method provided by the present application is shown in the figure.
[0048] Figure 2 A schematic diagram of the wrong and missing screw position detection method provided by the present application for constructing a random verification pattern is shown in the figure.
[0049] Figure 3 A schematic diagram of the wrong and missing screw position detection method provided by the present application for expanding the detection area is shown in the figure.
[0050] Figure 4 A structural schematic diagram of the wrong and missing screw position detection device provided by the present application is shown in the figure. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort are within the protection scope of the present application.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0053] Referring to Figure 1 The present application is a screw position detection method for detecting the screw positions of a currently processed board, which comprises the following steps:
[0054] 101. A processing board provided with a plurality of screw positions is provided.
[0055] The processing board can be a printed circuit board (PCB) or a flexible printed circuit (FPC), which is determined according to actual conditions.
[0056] 102. A reference pattern set of all screw positions of the processing board is obtained.
[0057] The reference pattern set comprises a plurality of reference patterns, wherein each reference pattern is composed of at least three screw positions. Taking three screw positions as an example, assuming that the processing board comprises screw position a, screw position b, screw position c, screw position d, and screw position e, the reference pattern set corresponding to all screw positions of the processing board is: pattern abc composed of screw position a, screw position b, and screw c, pattern abd composed of screw position a, screw position b, and screw d, pattern abe composed of screw position a, screw position b, and screw e, pattern acd composed of screw position a, screw position c, and screw d, pattern ace composed of screw position a, screw position c, and screw e, pattern ade composed of screw position a, screw position d, and screw e, pattern bcd composed of screw position b, screw position c, and screw d, pattern bce composed of screw position b, screw position c, and screw e, pattern bde composed of screw position b, screw position d, and screw e, and pattern cde composed of screw position c, screw position d, and screw e, that is, a triangular pattern corresponding to the combination of five screw positions, so as to subsequently detect the missed screw positions.
[0058] Of course, the reference pattern can also be a rectangular pattern, a rhombus pattern, or other polygonal patterns, which is set according to actual conditions, and will not be described here.
[0059] 103. A verification pattern corresponding to each screw position is constructed.
[0060] The pattern type corresponding to the verification pattern is consistent with the pattern type corresponding to the reference pattern, that is, if the reference pattern is a triangular pattern, then the verification pattern is also a triangular pattern. It can be understood that if the reference pattern is a rectangular pattern, then the verification pattern is a rectangular pattern.
[0061] For example, specifically, taking the construction of a triangular pattern as an example, when constructing the verification pattern corresponding to each screw bit, the number of installed screw bits on the processing plate needs to be greater than 2, otherwise, the corresponding triangular pattern cannot be constructed; if the constructed pattern is a rectangular pattern, then the number of installed screw bits on the processing plate needs to be greater than 3, that is, optionally, in some embodiments, the step of “constructing the verification pattern corresponding to each screw bit” can specifically include:
[0062] (11) detecting whether the number of installed screw bits on the processing plate is greater than a first preset value;
[0063] (12) when it is detected that the number of installed screw bits on the processing plate is greater than the first preset value, then taking the last installed screw bit as a reference, constructing the verification pattern corresponding to each screw bit.
[0064] The first preset value can be 3 or 4, which is determined according to the type of the reference pattern. When the type of the reference pattern is a triangle, the first preset value is 2; when the type of the reference pattern is a rectangle, the first preset value is 4.
[0065] Taking the construction of a triangular pattern as an example, when the number of installed screw bits on the processing plate is 3, that is, the number of installed screw bits on the processing plate is greater than 2, then taking the third installed screw bit as a reference, the verification pattern (i.e. the triangular pattern) is constructed, and the constructed triangular pattern is the verification pattern corresponding to the three installed screw bits on the processing plate.
[0066] Further, when the number of installed screw bits on the processing plate is 10, then taking three screw bits as a group, the verification pattern corresponding to each screw bit is constructed, for example, when the installed screw bits on the processing plate are a1, a2,..., a10, then the verification pattern S1 including the screw bit a1, the screw bit a2 and the screw bit a3 is constructed, the verification pattern S2 including the screw bit a2, the screw bit a3 and the screw bit a4 is constructed,..., and the verification pattern S8 including the screw bit a8, the screw bit a9 and the screw bit a10 is constructed. It can be understood that in this scheme, with the installation of each screw bit, the last installed screw bit is taken as a reference, the two previously installed screw bits are obtained, and the verification pattern is constructed based on this, that is, optionally, in some embodiments, the step of “when it is detected that the number of installed screw bits on the processing plate is greater than the first preset value, then taking the last installed screw bit as a reference, constructing the verification pattern corresponding to each screw bit” can specifically include:
[0067] (21) determining the last installed screw bit as the current processing object;
[0068] (22) Based on the current processing object, obtain the screw positions of the first two installations, and construct the verification pattern corresponding to the current processing object based on the current processing object and the obtained screw positions.
[0069] (23) Update the second-to-last installed screw position to the current processing object, and return to execute the steps based on the current processing object until the verification pattern corresponding to each screw position is constructed.
[0070] In the detection logic of this scheme, the detection is based on the order of the installed screw positions. For example, the installed screw positions include screw position 1, screw position 2, screw position 3, screw position 4, screw position 5, screw position 6, and screw position 7. The currently installed screw position is screw position 8. The verification triangle pattern corresponding to screw position 8 is the triangle pattern formed by screw positions 6, 7, and 8. To reduce computation and improve detection efficiency, the verification triangle pattern is matched with the reference triangle pattern in each region. That is, the system checks whether the reference triangle pattern in the area containing screw positions 1 to 8 matches the verification triangle pattern corresponding to screw position 8.
[0071] It should be noted that for the triangular verification pattern, side leakage detection cannot be performed on the first and second screw positions of the processed board when only two screw positions are present. Detection can only be performed on all three screw positions after the third screw position is installed. However, in this case, it is possible that all three screw positions may be faulty, yet all may be detected correctly. Figure 2 As shown, in Figure 2 In this process, the processed sheet metal includes two types of screw positions: screw position a and screw position b. The triangular pattern formed by screw positions a1, a2, and a3 is the same as the triangular pattern formed by screw positions b1, b2, and b3. The generated process instructs the worker to install screws at screw positions a1, a2, and a3. Because screw positions a1, a2, and a3 are close to screw positions b1, b2, and b3, the worker may mistakenly install screws at screw positions b1, b2, and b3. Therefore, screw positions b1, b2, and b3 may be detected as correct. Thus, in this invention, detection can be performed using other screw positions. Optionally, in some embodiments, the method for detecting incorrect screw positions may further include:
[0072] (31) Determine the first screw position to be installed as the first screw position, and determine the second screw position to be installed as the second screw position;
[0073] (32) taking the first screw position as a reference, randomly obtaining two screw positions other than the second screw position in the processed plate, and constructing a verification pattern corresponding to the first screw position based on the first screw position and the obtained screw positions, and taking the second screw position as a reference, randomly obtaining two screw positions other than the first screw position in the processed plate, and constructing a verification pattern corresponding to the first screw position based on the first screw position and the obtained screw positions.
[0074] Please continue to refer to Figure 2 , if the first installed screw position of the worker is screw position b1, the second installed screw position is screw position b2, the third installed screw position is screw position b3, the fourth installed screw position is screw position a4, and the fifth installed screw position is screw position a5, a triangular pattern corresponding to screw position b1, screw position b3 and screw position a4 can be constructed, and a triangular pattern corresponding to screw position b1, screw position b3 and screw position a5 can also be constructed. Similarly, for screw position b2, a triangular pattern corresponding to screw position b2, screw position b3 and screw position a4 can be constructed, and a triangular pattern corresponding to screw position b2, screw position b3 and screw position a5 can also be constructed. Thus, it can be avoided that the verification pattern constructed at the wrong installed screw position appears correct in detection. It should be noted that in this way, the number of screws to be installed on the processed plate is greater than the set number, which is determined by the pattern type of the verification pattern, for example, the set number corresponding to the triangular verification pattern can be set to 5 or 7; the set number corresponding to the rectangular pattern can be set to 7 or 9.
[0075] Further, in order to improve the accuracy of the error detection result, when the number of screw positions of the processed plate reaches a certain number, the corresponding random verification pattern can be constructed by randomly extracting the screw position, so as to detect according to the verification pattern constructed in step 103 and the random verification pattern constructed by randomly extracting the screw position, that is, optionally, in some embodiments, the error and missing screw position detection method of the application can further include:
[0076] (41) detecting whether the number of installed screw positions on the processed plate is greater than a second preset value;
[0077] (42) when it is detected that the number of installed screw positions on the processed plate is greater than the second preset value, constructing a random verification pattern corresponding to each screw position of the processed plate.
[0078] Wherein, the second preset value is greater than the first preset value. Optionally, the second preset value can be set according to the number of screw positions of the processed plate. For example, if the number of screw positions of the processed plate is 100, the second preset value can be set to 50 or 30.
[0079] It can be understood that in the present scheme, the second preset value can be set according to the number of screw positions of the processed plate and the actual detection requirement. For example, for some processed plates prone to errors, the number of screw positions is 100, in order to improve the detection accuracy, the second preset value can be set to 10, that is, every 10 screw positions are installed, a random verification pattern is generated, so that when the last screw position is installed, it can be ensured that the previously installed screw positions have been detected multiple times. For example, for some processed plates not prone to errors, such as processed plates with single screw positions, the number of screw positions is 100, in order to reduce the calculation amount, the second preset value can be set to 50, that is, 50 screw positions are installed, a random verification pattern is generated. For a processed plate with 100 screw positions, only two random verification patterns are generated during the entire installation process, thereby reducing the calculation amount.
[0080] 104. detecting all screw positions of the processed plate according to the verification pattern corresponding to each screw position and the reference pattern set.
[0081] For example, specifically, the verification pattern corresponding to each screw position is matched with the reference pattern in the reference pattern set; when the verification pattern matches any reference pattern, it is determined that the screw position corresponding to the verification pattern is installed correctly; when the verification pattern does not match all reference patterns, a prompt of incorrect screw installation is output, such as a prompt sound, so that the worker installing the screw knows.
[0082] Further, as described above, when it is detected that the number of installed screw positions on the processed plate is greater than the second preset value, the random verification pattern corresponding to each screw position of the processed plate is constructed, therefore, the step of "detecting all screw positions of the processed plate according to the verification pattern corresponding to each screw position and the reference pattern set" can specifically include: detecting all screw positions of the processed plate according to the reference pattern set, the verification pattern corresponding to each screw position and the random verification pattern.
[0083] For example, specifically, the verification pattern corresponding to each screw position is matched with the reference pattern in the reference pattern set, and the random verification pattern corresponding to each screw position is matched with the reference pattern in the reference pattern set. When the verification pattern matches any reference pattern and the random verification pattern matches any reference pattern, it is determined that the screw position corresponding to the verification pattern is installed correctly. When the verification pattern matches any reference pattern and / or the random verification pattern matches any reference pattern, a prompt of incorrect screw installation is output.
[0084] In addition, in order to reduce the amount of calculation in pattern matching, in the application, the patterns in the reference pattern set can be selected for detection of the missing screw position, that is, in some embodiments, the step of "detecting all screw positions of the processed plate according to the verification pattern corresponding to each screw position and the reference pattern set" can specifically include:
[0085] (51) selecting a target pattern corresponding to the currently detected screw position in the reference pattern set for detection;
[0086] (52) detecting the currently detected screw position based on the target pattern and the verification pattern corresponding to the currently detected screw position.
[0087] For example, 50% of the reference patterns in the reference pattern set are selected as target patterns, and then the verification pattern is matched with the selected target patterns; when the verification pattern matches any target pattern, it is determined that the screw position corresponding to the verification pattern is correctly installed; when the verification pattern does not match any target pattern, the verification pattern is matched with the remaining reference patterns (i.e., reference patterns other than target patterns); when the verification pattern matches any remaining reference pattern, it is determined that the screw position corresponding to the verification pattern is correctly installed; when the verification pattern does not match any remaining reference pattern, a prompt of incorrect screw installation is output. However, in this way, if the verification pattern does not match the target pattern, it needs to be matched again, therefore, in some embodiments of the application, the historical installation data corresponding to the processed plate is used to select a target pattern corresponding to the currently detected screw position in the reference pattern set for detection, that is, in some embodiments, the step of "selecting a target pattern corresponding to the currently detected screw position in the reference pattern set for detection" can specifically include:
[0088] (61) determining a historical reference screw position corresponding to the currently detected screw position;
[0089] (62) obtaining an associated screw position associated with the detection of the historical reference screw position;
[0090] (63) determining a detection area of the currently detected screw position in the processed plate based on the historical reference screw position and the associated screw position;
[0091] (64) selecting a target pattern corresponding to the currently detected screw position in the reference pattern set for detection according to the detection area.
[0092] For example, specifically, the historical installation data corresponding to the processed plate is acquired, and the historical installation data includes the historical punching condition of the historical reference screw position. For example, when the historical reference screw position i is installed, the last installed screw position is the historical reference screw position h. At this time, the historical reference screw position i is recorded in association with the historical reference screw position h, indicating that the worker will install the historical reference screw position h before installing the historical reference screw position i. When subsequent detection is performed, if the historical reference screw position corresponding to the currently detected screw position is the historical reference screw position i, then the historical reference screw position i and the historical reference screw position h can be used to determine the detection area of the currently detected screw position on the processed plate. The detection area is an area on the processed plate including the historical reference screw position i and the historical reference screw position h. The size of the area can be set according to actual conditions. For example, if the size of the processed plate is 30 cm*10 cm, the size of the detection area can be set to 5 cm*10 cm or 10 cm*10 cm. Subsequently, the candidate screw position covered by the detection area is determined, and then the reference pattern corresponding to the candidate screw position in the reference pattern set is selected as the target pattern.
[0093] In addition, it should be noted that the target pattern for detecting the currently detected screw position is selected from the reference pattern set according to the detection area. If the verification pattern corresponding to the currently detected screw position does not match each target pattern, the following situations may exist: 1) the worker installs the screw position incorrectly; 2) the detection area of the screw position is different from that of the last screw position.
[0094] For case 1), a prompt is output. For case 2), the detection area can be updated, and the target pattern corresponding to the updated detection area is acquired. Then, the screw position is detected based on the acquired target pattern. In some embodiments, the screw position detection method provided by the present application can further include the following steps.
[0095] (71) If the verification pattern corresponding to the currently detected screw position does not match each target pattern, a detection area adjacent to the detection area is acquired, and the target pattern is updated based on the acquired detection area;
[0096] (72) The currently detected screw position is detected according to the updated target pattern and the verification pattern corresponding to the currently detected screw position.
[0097] For example, specifically, please refer to Figure 3, the current detected screw position is screw position 7, the historical reference screw position corresponding to the screw position 7 is determined, and the associated screw position associated with the reference screw position is determined, then the monitoring area s1 corresponding to the processing plate is determined according to the historical reference screw position and the associated screw position, when the screw position 7 is detected, the verification triangle pattern corresponding to the screw position 7 is detected by acquiring all reference triangle patterns corresponding to the detection area s1. When the verification triangle pattern corresponding to the screw position 7 matches any reference triangle pattern corresponding to the detection area s1, the installation is correct; when the verification triangle pattern corresponding to the screw position 7 does not match all reference triangle patterns corresponding to the detection area s1, then the detection area s2 and the detection area s3 adjacent to the current detection area s1 are acquired, then the acquired detection area is connected with the detection area s1 to obtain a connected area S. If a reference triangle pattern matching the verification triangle pattern is detected in the reference triangle pattern corresponding to the connected area S, it is determined that the screw position 7 is installed correctly. If no reference triangle pattern matching the verification triangle pattern is detected in the reference triangle pattern corresponding to the connected area S, an error prompt is output.
[0098] In addition, after the area is expanded, the installed screw positions are re-detected, that is, the installed screw positions are re-verified by using the reference patterns corresponding to the connected area S; when the re-verification times of the screw positions are greater than the preset times, the screw positions are not re-verified next time.
[0099] Further, when the patterns corresponding to the screw position 9 and the screw position 10 in the connected area S all fall in the detection area s2, the detection area s2 is updated as a new detection area, thereby reducing the calculation amount. And the detection area s1 is marked, and the re-verification of the installed screw position is performed subsequently.
[0100] The screw position detection method provided in the embodiment provides a processing plate provided with a plurality of screw positions, acquires a reference pattern set of all screw positions of the processing plate, then constructs a verification pattern corresponding to each screw position, and finally detects all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set. In the screw position detection scheme provided in the application, the verification pattern corresponding to each screw position is constructed, and all screw positions of the processing plate are detected by using the verification pattern corresponding to each screw position and the reference pattern set. During processing, the screw position detection of the processing plate can be performed, and manual screw position detection is not required, thereby reducing detection cost and improving detection efficiency.
[0101] Correspondingly, please refer to Figure 4 The embodiment of the application provides a multi-camera screw position detection device (hereinafter referred to as a detection device) for detecting missing screw positions, comprising:
[0102] The providing module 201 is configured to provide a processing plate provided with a plurality of screw positions.
[0103] The obtaining module 202 is configured to obtain a preset reference pattern set.
[0104] The constructing module 203 is configured to construct a verification pattern corresponding to each screw position.
[0105] The detecting module 204 is configured to detect all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set.
[0106] Optionally, in some embodiments, the constructing module 203 can specifically include:
[0107] The first detecting unit is configured to detect whether the number of the installed screw positions on the processing plate is greater than a first preset value.
[0108] The constructing unit is configured to, when it is detected that the number of the installed screw positions on the processing plate is greater than the first preset value, construct the verification pattern corresponding to each screw position based on the last installed screw position.
[0109] Optionally, in some embodiments, the constructing unit can be specifically configured to:
[0110] determine the last installed screw position as a current processing object;
[0111] obtain the first two installed screw positions based on the current processing object, and construct the verification pattern corresponding to the current processing object based on the current processing object and the obtained screw positions;
[0112] update the second last installed screw position as the current processing object, and return to execute the step based on the current processing object until the verification pattern corresponding to each screw position is constructed.
[0113] Optionally, in some embodiments, the constructing unit can be specifically configured to:
[0114] determine the first installed screw position as a first screw position, and determine the second installed screw position as a second screw position;
[0115] obtain two screw positions other than the second screw position in the processing plate based on the first screw position, and construct the verification pattern corresponding to the first screw position based on the first screw position and the obtained screw positions, and obtain two screw positions other than the first screw position in the processing plate based on the second screw position, and construct the verification pattern corresponding to the first screw position based on the first screw position and the obtained screw positions.
[0116] Optionally, in some embodiments, the first detecting unit can be specifically configured to:
[0117] detecting whether the number of installed screw positions on the processing board is greater than a second preset value, wherein the second preset value is greater than the first preset value;
[0118] when it is detected that the number of installed screw positions on the processing board is greater than the second preset value, constructing a random check pattern corresponding to each screw position in the processing board.
[0119] Optionally, in some embodiments, the detection module 204 can be specifically further configured to: detect all screw positions of the processing board according to the reference pattern set, the check pattern corresponding to each screw position, and the random check pattern.
[0120] Optionally, in some embodiments, the detection module 204 can specifically include:
[0121] a selection unit configured to select a target pattern corresponding to the currently detected screw position from the reference pattern set;
[0122] a second detection unit configured to detect the currently detected screw position based on the target pattern and the check pattern corresponding to the currently detected screw position.
[0123] Optionally, in some embodiments, the second detection unit can be specifically configured to:
[0124] match the check pattern corresponding to the currently detected screw position with each target pattern;
[0125] if the check pattern corresponding to the currently detected screw position matches any of the target patterns, it is determined that the currently detected screw position is installed correctly.
[0126] Optionally, in some embodiments, the second detection unit can be specifically further configured to:
[0127] if the check pattern corresponding to the currently detected screw position does not match any of the target patterns, a detection area adjacent to the detection area is obtained, and the target patterns are updated based on the obtained detection area;
[0128] detect the currently detected screw position based on the updated target patterns and the check pattern corresponding to the currently detected screw position.
[0129] Optionally, in some embodiments, the selection unit can be specifically configured to:
[0130] determine a historical reference screw position corresponding to the currently detected screw position;
[0131] obtain an associated screw position associated with the detection of the historical reference screw position;
[0132] Based on the historical reference screw position and the associated screw position, the current detected screw position is determined in the detection area corresponding to the processed plate;
[0133] According to the detection area, a target pattern corresponding to the current detected screw position is selected from the reference pattern set.
[0134] As can be seen from the above, after the providing module 201 provides a processed plate provided with a plurality of screw positions, the acquiring module 202 acquires the reference pattern set of all screw positions of the processed plate, then the constructing module 203 constructs the verification pattern corresponding to each screw position, and finally the detecting module 204 detects all screw positions of the processed plate according to the verification pattern corresponding to each screw position and the reference pattern set. In the wrong and missing screw position detection scheme provided by the present application, the verification pattern corresponding to each screw position is constructed, and all screw positions of the processed plate are detected by using the verification pattern corresponding to each screw position and the reference pattern set. During processing, the wrong and missing screw position detection of the processed plate can be performed, and manual wrong and missing screw position detection is not required, thereby reducing the detection cost and improving the detection efficiency.
[0135] In conclusion, although the present application has been disclosed with preferred embodiments as above, the protection scope of the present application is not limited thereto, and any skilled person in the art can make equivalent replacement or change according to the technical concept of the technical solution of the present application within the technical range disclosed by the present application, which should be covered within the protection scope of the present application.
[0136] The technical features of the above-described embodiments can be combined arbitrarily, and in order to make the description concise, all possible combinations of the technical features in the above-described embodiments are not described, however, as long as the combinations of the technical features do not exist contradictory, they should be considered as the scope disclosed in the present application.
Claims
1. A method for detecting a missed screw position, characterized by, The method comprises the following steps: providing a processing plate provided with a plurality of screw positions; acquiring a reference pattern set of all screw positions of the processing plate; constructing a verification pattern corresponding to each screw position; detecting all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set; wherein the step of constructing a verification pattern corresponding to each screw position comprises: detecting whether the number of installed screw positions on the processing plate is greater than a first preset value; when it is detected that the number of installed screw positions on the processing plate is greater than the first preset value, taking the last installed screw position as a reference to construct a verification pattern corresponding to each screw position; wherein the step of taking the last installed screw position as a reference to construct a verification pattern corresponding to each screw position when it is detected that the number of installed screw positions on the processing plate is greater than the first preset value comprises: determining the last installed screw position as a current processing object; taking the current processing object as a reference to acquire the two previously installed screw positions, and constructing a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions; updating the second last installed screw position as a current processing object, and returning to execute the step of taking the current processing object as a reference until a verification pattern corresponding to each screw position is constructed.
2. The method of claim 1, wherein, Further comprising: determining the first installed screw position as a first screw position, and determining the second installed screw position as a second screw position; taking the first screw position as a reference to randomly acquire two screw positions except the second screw position in the processing plate, and constructing a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw positions, and taking the second screw position as a reference to randomly acquire two screw positions except the first screw position in the processing plate, and constructing a verification pattern corresponding to the second screw position based on the second screw position and the acquired screw positions.
3. The method of claim 1, wherein, Further comprising: detecting whether the number of installed screw positions on the processing plate is greater than a second preset value, the second preset value being greater than the first preset value; when it is detected that the number of installed screw positions on the processing plate is greater than the second preset value, constructing a random verification pattern corresponding to each screw position in the processing plate; the step of detecting all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set comprises: detecting all screw positions of the processing plate according to the reference pattern set, the verification pattern corresponding to each screw position and the random verification pattern.
4. The method according to any one of claims 1 to 2, characterized in that, the step of detecting all screw positions of the processing plate according to the verification pattern corresponding to each screw position and the reference pattern set comprises: selecting a target pattern corresponding to a currently detected screw position in the reference pattern set for detection; detecting the currently detected screw position based on the target pattern and the verification pattern corresponding to the currently detected screw position.
5. The method of claim 4, wherein, the step of detecting the currently detected screw position based on the target pattern and the verification pattern corresponding to the currently detected screw position comprises: matching the verification pattern corresponding to the currently detected screw position with each target pattern; If the check pattern corresponding to the currently detected screw position matches any of the target patterns, it is determined that the currently detected screw position is installed correctly.
6. The method of claim 5, wherein, Also includes: If the check pattern corresponding to the currently detected screw position does not match any of the target patterns, the adjacent detection area of the detection area of the target pattern is obtained, and the target pattern is updated based on the obtained adjacent detection area; According to the updated target pattern and the check pattern corresponding to the currently detected screw position, the currently detected screw position is detected.
7. The method of claim 4, wherein, The selection of the target pattern corresponding to the currently detected screw position from the reference pattern set includes: Determine the historical reference screw position corresponding to the currently detected screw position; Obtain the associated screw position associated with the detection of the historical reference screw position; Based on the historical reference screw position and the associated screw position, determine the detection area corresponding to the currently detected screw position on the processed plate material; According to the detection area in the reference pattern set, select a target pattern for detecting the currently detected screw position.
8. A device for detecting a misaligned screw position, characterized in that Includes: A providing module is configured to provide a processed plate material installed with a plurality of screw positions; An obtaining module is configured to obtain a preset reference pattern set; A constructing module is configured to construct a check pattern corresponding to each screw position; A detection module is configured to detect all screw positions of the processed plate material according to the check pattern corresponding to each screw position and the reference pattern set; The constructing module is specifically configured to detect whether the number of installed screw positions on the processed plate material is greater than a first preset value; when it is detected that the number of installed screw positions on the processed plate material is greater than the first preset value, the check pattern corresponding to each screw position is constructed based on the last installed screw position; When it is detected that the number of installed screw positions on the processed plate material is greater than the first preset value, the check pattern corresponding to each screw position is constructed based on the last installed screw position, which includes: Determine the last installed screw position as the current processing object; Based on the current processing object, obtain the first two installed screw positions, and based on the current processing object and the obtained screw positions, construct the check pattern corresponding to the current processing object; The second last installed screw position is updated as the current processing object, and the step of taking the current processing object as the reference is returned to be executed until the check pattern corresponding to each screw position is constructed.
Citation Information
Patent Citations
Abnormality detection method and apparatus for mounting screw by automatic screw machine
CN107328775A