Method and device for detecting missed screw positions based on connected regions

By using a method and device for detecting missing screw positions based on connected regions, the detection of screw positions is automated, solving the problems of high cost and low efficiency of manual inspection, and achieving cost reduction and efficiency improvement.

CN122109140APending Publication Date: 2026-05-29SHENZHEN SHENSI MICRO INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN SHENSI MICRO INTELLIGENT TECH CO LTD
Filing Date
2023-08-01
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, screw position detection relies on manual inspection, which leads to high costs and low efficiency.

Method used

A method and apparatus for detecting missing screw positions based on connected regions are adopted. By acquiring a reference pattern set and a verification pattern for the screw positions, the target pattern is updated using connected regions for automatic detection.

Benefits of technology

It reduced testing costs, improved testing efficiency, and reduced human intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122109140A_ABST
    Figure CN122109140A_ABST
Patent Text Reader

Abstract

The application provides a missing screw position detection method and device based on a connected region, provides a processing plate provided with a plurality of screw positions; acquires a reference pattern set of all screw positions of the processing plate; constructs a verification pattern corresponding to each screw position; selects a target pattern corresponding to a currently detected screw position in the reference pattern set; and matches the verification pattern corresponding to the currently detected screw position with each target pattern based on a connected region of a current detection region and an adjacent detection region. The scheme can reduce detection cost and improve detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number "202310961595.6", the application date "August 1, 2023", and the invention title "Method and Apparatus for Detecting Misplaced Screws". Technical Field

[0002] This invention relates to the field of tooling inspection technology, and in particular to a method and apparatus for detecting misplaced screws based on connected regions. Background Technology

[0003] Currently, screws are widely used as fasteners, such as for fixing parts or devices on machined sheet metal. The tightening work usually needs to be done manually.

[0004] In actual production, after workers tighten the screws on the board, manual inspection is usually used to check for omissions or errors in the screw positions. This method increases the factory's labor and management costs significantly while also being inefficient. Summary of the Invention

[0005] This invention provides a method and apparatus for detecting missing screw positions based on connected regions, which can reduce detection costs and improve detection efficiency.

[0006] In a first aspect, the present invention proposes a method for detecting misplaced screw positions based on connected regions, comprising: Provide a processing plate with multiple screw positions; Obtain a reference pattern set for all screw positions on the processed sheet metal; Construct a verification pattern for each screw position; Select the target pattern corresponding to the screw position being detected in the reference pattern set; Match the verification pattern corresponding to the currently detected screw position with each of the target patterns; If the verification pattern corresponding to the currently detected screw position matches any of the target patterns, then the currently detected screw position is determined to be installed correctly. If the verification pattern corresponding to the currently detected screw position does not match any of the target patterns, then the detection area adjacent to the detection area is obtained, and the obtained adjacent detection areas are connected to the detection area to obtain a connected area; the target pattern is updated based on the connected area. Based on the updated target pattern and the verification pattern corresponding to the currently detected screw position, the screw position is detected.

[0007] Secondly, the present invention also proposes a misaligned screw position detection device based on a connected region, which includes: Provide a module for providing a machined sheet metal with multiple screw positions; The acquisition module is used to acquire a preset reference pattern set; The module is used to build the verification pattern for each screw position; The detection module is configured to: select a target pattern from the reference pattern set for detecting the screw position currently being detected; match the verification pattern corresponding to the currently detected screw position with each of the target patterns; if the verification pattern corresponding to the currently detected screw position matches any of the target patterns, then the screw position is determined to be correctly installed; if the verification pattern corresponding to the currently detected screw position does not match any of the target patterns, then obtain a detection area adjacent to the detection area, connect the obtained adjacent detection areas with the detection area to obtain a connected area; update the target pattern based on the connected area; and detect the screw position currently being detected based on the updated target pattern and the verification pattern corresponding to the currently detected screw position.

[0008] The present invention discloses a method and apparatus for detecting missing screw positions based on connected regions. First, a processing plate with multiple screw positions is provided. Then, a reference pattern set for all screw positions on the processing plate is acquired. Next, a verification pattern corresponding to each screw position is constructed. Finally, a target pattern for detecting the currently detected screw position is selected from the reference pattern set. The verification pattern corresponding to the currently detected screw position is matched with each target pattern based on the connected regions of the current detection area and adjacent detection areas. In the missing screw position detection scheme provided by the present invention, a verification pattern corresponding to each screw position is constructed, and all screw positions on the processing plate are detected based on the connected regions using the verification pattern corresponding to each screw position and the reference pattern set. During processing, missing screw positions can be detected on the processing plate without manual inspection, thereby reducing detection costs and improving detection efficiency. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments are briefly introduced below. The drawings described below are only the corresponding drawings of some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained from these drawings without creative effort.

[0010] Figure 1 This is a flowchart illustrating the method for detecting misplaced screws provided in an embodiment of the present invention. Figure 2A schematic diagram illustrating the construction of a random verification pattern for the misaligned screw position detection method provided in this embodiment of the invention; Figure 3 This is a schematic diagram illustrating the expanded detection area of ​​the misplaced screw position detection method provided in this embodiment of the invention. Figure 4 This is a schematic diagram of the structure of the misplaced screw detection device provided in an embodiment of the present invention. Detailed Implementation

[0011] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0012] 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 invention pertains.

[0013] See Figure 1 This invention discloses a method for detecting misplaced screw positions. This method is used to detect misplaced screw positions on a sheet material currently being processed, and specifically includes the following steps: 101. Provide a processing plate with multiple screw positions.

[0014] The processing material can be a printed circuit board (PCB) or a flexible printed circuit (FPC), depending on the specific circumstances.

[0015] 102. Obtain a reference pattern set for all screw positions on the processed sheet metal.

[0016] This reference pattern set includes multiple reference patterns, each of which consists of at least three screw positions in the processed material. Taking three screw positions as an example, assuming the processed material includes screw positions a, b, c, d, and e, the reference pattern set corresponding to all screw positions of the processed material is as follows: pattern abc composed of screw positions a, b, and c; pattern abd composed of screw positions a, b, and d; pattern abe composed of screw positions a, b, and e; pattern acd composed of screw positions a, c, and d; pattern ace composed of screw positions a, c, and e; pattern ade composed of screw positions a, d, and e; pattern bcd composed of screw positions b, c, and d; pattern bce composed of screw positions b, c, and e; pattern bde composed of screw positions b, d, and e; and pattern cde composed of screw positions c, d, and e. That is, combining the triangular patterns corresponding to the five screw positions for subsequent detection of missing screw positions.

[0017] Of course, the reference pattern can also be a rectangular pattern, a rhombus pattern, or other polygonal patterns. The specific settings should be made according to the actual situation, which will not be elaborated here.

[0018] 103. Construct a verification pattern for each screw position.

[0019] The verification pattern must match the reference pattern; that is, if the reference pattern is a triangle, then the verification pattern must also be a triangle. Similarly, if the reference pattern is a rectangle, then the verification pattern must also be a rectangle.

[0020] For example, specifically, taking the construction of a triangular pattern as an example, when constructing the verification pattern corresponding to each screw position, the number of screw positions already installed on the board 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 screw positions already installed on the board needs to be greater than 3. That is, optionally, in some embodiments, the step "constructing the verification pattern corresponding to each screw position" may specifically include: (11) Check whether the number of screw positions installed on the processed plate is greater than the first preset value; (12) When the number of screw positions installed on the processed plate is greater than the first preset value, a verification pattern corresponding to each screw position is constructed based on the last installed screw position.

[0021] The first preset value can be either 3 or 4, depending on the graphic type of the reference pattern. When the graphic type of the reference pattern is a triangle, the first preset value is 2; when the graphic type of the reference pattern is a rectangle, the first preset value is 4.

[0022] Taking the construction of a triangular pattern as an example, when the number of screw positions installed on the processed board is 3, that is, the number of screw positions installed on the processed board is greater than 2, then the verification pattern (i.e., the triangular pattern) is constructed based on the third screw position installed. The constructed triangular pattern is the verification pattern corresponding to the three screw positions installed on the processed board.

[0023] Furthermore, when the number of screw positions installed on the processed board is 10, a verification pattern is constructed for each screw position in groups of three. For example, if the number of screw positions installed on the processed board is a1, a2, ..., a10, then a verification pattern S1 is constructed including screw positions a1, a2, and a3; a verification pattern S2 is constructed including screw positions a2, a3, and a4; ...; and a verification pattern S8 is constructed including screw positions a8, a9, and a10. It can be understood that in this solution, for each screw position installed, the first two installed screw positions are obtained as a reference, and a verification pattern is constructed based on this. That is, optionally, in some embodiments, the step "when the number of screw positions installed on the processed board is detected to be greater than a first preset value, then a verification pattern is constructed for each screw position based on the last installed screw position" may specifically include: (21) Determine the last screw position to be installed as the current processing object; (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; (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.

[0024] 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.

[0025] 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: (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; (32) Based on the first screw position, two screw positions other than the second screw position are randomly obtained in the processed plate, and based on the first screw position and the obtained screw positions, a verification pattern corresponding to the first screw position is constructed. Based on the second screw position, two screw positions other than the first screw position are randomly obtained in the processed plate, and based on the first screw position and the obtained screw positions, a verification pattern corresponding to the first screw position is constructed.

[0026] Please continue reading. Figure 2If the worker installs screw position b1 the first time, b2 the second time, b3 the third time, a4 the fourth time, and a5 the fifth time, triangular patterns can be constructed corresponding to screw positions b1, b3, and a4, or vice versa. Similarly, for screw position b2, triangular patterns can be constructed corresponding to screw positions b2, b3, and a4, or vice versa. This avoids the situation where the verification pattern constructed for incorrectly installed screw positions appears to be correct. It should be noted that in this method, the number of screws installed on the processed material needs to be greater than the set number, which is determined by the pattern type of the verification pattern. For example, the set number for a triangular verification pattern can be set to 5 or 7; the set number for a rectangular pattern can be set to 7 or 9.

[0027] Furthermore, to improve the accuracy of error detection results, when the number of screw positions for mounting screws on the processed sheet metal reaches a certain number, corresponding random verification patterns can be constructed by randomly selecting screw positions. This allows for subsequent detection based on the verification patterns constructed in step 103 and the corresponding random verification patterns constructed by randomly selecting screw positions. Optionally, in some embodiments, the error screw position detection method of the present invention may further include: (41) Check whether the number of screw positions installed on the processed plate is greater than the second preset value; (42) When the number of screw positions installed on the processing plate is greater than the second preset value, a random verification pattern corresponding to each screw position in the processing plate is constructed.

[0028] 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 on the processed material. For example, if the number of screw positions on the processed material is 100, the second preset value can be set to 50 or 30.

[0029] Understandably, in this solution, a second preset value can be set based on the number of screw positions on the processed board and the actual testing requirements. For example, for some error-prone processed boards with 100 screw positions, to improve testing accuracy, the second preset value can be set to 10. That is, a random verification pattern is generated every 10 screw positions installed. Thus, when the last screw position is installed, it can be ensured that the previously installed screw positions have been tested multiple times. Alternatively, for some error-prone processed boards, such as those with a single screw position and 100 screw positions, to reduce computational load, the second preset value can be set to 50. That is, a random verification pattern is generated every 50 screw positions installed. For a processed board with 100 screw positions, only two random verification patterns are generated during the entire installation process, thereby reducing computational load.

[0030] 104. Inspect all screw positions on the processed sheet metal according to the verification pattern corresponding to each screw position and the reference pattern set.

[0031] 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 any reference pattern, a prompt message of screw installation error is output, such as a prompt sound, so that the worker installing the screw is aware of it.

[0032] Furthermore, as mentioned above, when the number of screw positions installed on the processed board is greater than the second preset value, a random verification pattern corresponding to each screw position in the processed board is constructed. Therefore, the step "detecting all screw positions of the processed board 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 board according to the reference pattern set, the verification pattern corresponding to each screw position and the random verification pattern.

[0033] For example, specifically, the verification pattern corresponding to each screw position is matched with a reference pattern in the reference pattern set, and the random verification pattern corresponding to each screw position is matched with a reference pattern in the reference pattern set. When a verification pattern matches any reference pattern and a random verification pattern matches any reference pattern, the screw position corresponding to that verification pattern is determined to be installed correctly. When a verification pattern matches any reference pattern and / or a random verification pattern matches any reference pattern, a screw installation error message is output.

[0034] Furthermore, to reduce the computational load during pattern matching, the invention allows for the selection of patterns from a reference pattern set for detecting missing screw positions. Specifically, in some embodiments, the step "detecting all screw positions on the processed sheet metal based on the verification pattern corresponding to each screw position and the reference pattern set" may include: (51) Select the target pattern from the reference pattern set to detect the screw position currently being detected; (52) Based on the target pattern and the verification pattern corresponding to the currently detected screw position, the currently detected screw position is detected.

[0035] For example, 50% of the reference patterns in the reference pattern set are selected as target patterns. Then, the verification pattern is matched with the selected target patterns. When the verification pattern matches any target pattern, the screw position corresponding to that verification pattern is determined to be 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 the target patterns). When the verification pattern matches any of the remaining reference patterns, the screw position corresponding to that verification pattern is determined to be correctly installed. When the verification pattern does not match any of the remaining reference patterns, a screw installation error message is output. However, in this method, if the verification pattern does not match the target pattern, a matching process needs to be performed again. Therefore, to avoid this situation, in some embodiments of the present invention, historical installation data corresponding to the processed sheet material is used to select the target pattern corresponding to the currently detected screw position from the reference pattern set. That is, optionally, in some embodiments, the step "selecting the target pattern corresponding to the currently detected screw position from the reference pattern set" may specifically include: (61) Determine the historical reference screw position corresponding to the currently detected screw position; (62) The associated screw position when obtaining the historical reference screw position for detection; (63) Based on historical reference screw positions and associated screw positions, determine the detection area of ​​the screw position currently being detected in the corresponding processing plate; (64) Select the target pattern corresponding to the screw position being detected in the reference pattern set according to the detection area.

[0036] For example, specifically, historical installation data corresponding to the processed material is obtained. This historical installation data includes the historical drilling situation of historical reference screw positions. For instance, if historical reference screw position i was installed when the previous installed screw position was historical reference screw position h, then the association between historical reference screw position i and historical reference screw position h can be recorded. This indicates that the worker will install historical reference screw position h before installing historical reference screw position i. During subsequent inspection, if the historical reference screw position corresponding to the currently inspected screw position is historical reference screw position i, then the inspection area corresponding to the currently inspected screw position on the processed material can be determined based on historical reference screw position i and historical reference screw position h. This inspection area is the area on the processed material that includes historical reference screw positions i and h. The size of the area can be set according to the actual situation. For example, if the size of the processed material is 30cm*10cm, then the size of the inspection area can be set to 5cm*10cm or 10cm*10cm. Subsequently, the candidate screw positions covered by this inspection area are determined. Then, the reference pattern corresponding to the candidate screw position is selected as the target pattern from the reference pattern set.

[0037] In addition, it should be noted that, according to the detection area, the target pattern corresponding to the screw position being detected is selected from the reference pattern set. If the verification pattern corresponding to the screw position being detected does not match any of the target patterns, the following situations may occur: 1) The worker installed the screw position incorrectly; 2) The detection area of ​​the screw position is different from the detection area of ​​the previous screw position.

[0038] For case 1), a prompt is output; for case 2), the detection area is updated, and the target pattern corresponding to the updated detection area is obtained. Then, the screw position is detected based on the obtained target pattern. That is, optionally, in some embodiments, the method for detecting missing screw positions provided by the present invention may further include: (71) If the verification pattern corresponding to the currently detected screw position does not match each of the target patterns, then obtain the detection area adjacent to the detection area, and update the target pattern based on the obtained detection area; (72) Based on the updated target pattern and the verification pattern corresponding to the currently detected screw position, the screw position is detected.

[0039] For example, please refer to the specific details. Figure 3The currently detected screw position is screw position 7. The historical reference screw position and its associated screw positions are determined. Then, based on the historical reference screw position and associated screw positions, the monitoring area s1 corresponding to screw position 7 on the processed material is determined. When detecting screw position 7, all reference triangle patterns corresponding to the detection area s1 are acquired and the verification triangle pattern corresponding to screw position 7 is detected. If the verification triangle pattern corresponding to screw position 7 matches any reference triangle pattern corresponding to the detection area s1, the installation is correct. If the verification triangle pattern corresponding to screw position 7 does not match any of the reference triangle patterns corresponding to the detection area s1, the adjacent detection areas s2 and s3 are acquired. Then, the acquired detection areas are connected to the detection area s1 to obtain a connected region S. If a reference triangle pattern matching the verification triangle pattern is detected in the connected region S, the screw position 7 is determined to be installed correctly. If no reference triangle pattern matching the verification triangle pattern is detected in the connected region S, an error message is output.

[0040] In addition, after the area is expanded, the installed screw positions are re-inspected, that is, the installed screw positions are re-verified using the reference pattern corresponding to the connected region S; if the number of re-verifications of the screw positions is greater than the preset number, these screw positions will not be re-verified again.

[0041] Furthermore, when the patterns corresponding to screw positions 9 and 10 in the connected region S both fall within the detection region s2, the detection region s2 is updated to a new detection region, thereby reducing the computational load. The detection region s1 is then marked for subsequent re-verification of the installed screw positions.

[0042] The method for detecting missing or incorrect screw positions provided in this embodiment involves, after providing a processing board with multiple screw positions, obtaining a reference pattern set for all screw positions on the processing board, then constructing a verification pattern corresponding to each screw position, and finally, detecting all screw positions on the processing board based on the verification pattern corresponding to each screw position and the reference pattern set. In the missing or incorrect screw position detection scheme provided by this invention, a verification pattern corresponding to each screw position is constructed, and all screw positions on the processing board are detected using the verification pattern corresponding to each screw position and the reference pattern set. This allows for the detection of missing or incorrect screw positions on the processing board during processing, eliminating the need for manual detection, thereby reducing detection costs and improving detection efficiency.

[0043] Accordingly, please refer to Figure 4 This invention provides a multi-camera misaligned screw detection device (hereinafter referred to as the detection device), comprising: Module 201 is provided for providing a processing plate with multiple screw positions.

[0044] The acquisition module 202 is used to acquire a preset reference pattern set.

[0045] Module 203 is used to construct the verification pattern corresponding to each screw position.

[0046] The detection module 204 is used to detect all screw positions on the processed sheet metal according to the verification pattern corresponding to each screw position and the reference pattern set.

[0047] Optionally, in some embodiments, the construction module 203 may specifically include: The first detection unit is used to detect whether the number of screw positions installed on the processed plate is greater than a first preset value; The construction unit is used to construct a verification pattern corresponding to each screw position based on the last installed screw position when the number of screw positions installed on the processed plate is greater than a first preset value.

[0048] Optionally, in some embodiments, the building unit may specifically be used for: Identify the last screw position to be installed as the current processing target; Based on the current object being processed, obtain the screw positions from the previous two installations, and construct the verification pattern corresponding to the current object being processed based on the current object being processed and the obtained screw positions. 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 a verification pattern for each screw position is constructed.

[0049] Optionally, in some embodiments, the building unit may also be used for: The first screw position to be installed is designated as the first screw position, and the second screw position to be installed is designated as the second screw position; Using the first screw position as a reference, two screw positions other than the second screw position are randomly selected from the processed material. Based on the first screw position and the selected screw positions, a verification pattern corresponding to the first screw position is constructed. Similarly, using the second screw position as a reference, two screw positions other than the first screw position are randomly selected from the processed material. Based on the first screw position and the selected screw positions, a verification pattern corresponding to the first screw position is constructed.

[0050] Optionally, in some embodiments, the first detection unit may further be used for: Check whether the number of screw positions installed on the processed plate is greater than a second preset value, wherein the second preset value is greater than a first preset value; When the number of screw positions installed on the processing board is detected to be greater than the second preset value, a random verification pattern corresponding to each screw position in the processing board is constructed.

[0051] Optionally, in some embodiments, the detection module 204 may also be used to: detect all screw positions of the processed sheet metal according to a reference pattern set, a verification pattern corresponding to each screw position, and a random verification pattern.

[0052] Optionally, in some embodiments, the detection module 204 may specifically include: The selection unit is used to select the target pattern corresponding to the screw position being detected in the reference pattern set. The second detection unit is used to detect the screw position being detected based on the target pattern and the verification pattern corresponding to the screw position being detected.

[0053] Optionally, in some embodiments, the second detection unit may specifically be used for: Match the verification pattern corresponding to the currently detected screw position with each target pattern; If the verification pattern corresponding to the currently detected screw position matches any of the target patterns, then the currently detected screw position is determined to be installed correctly.

[0054] Optionally, in some embodiments, the second detection unit may further be used for: If the verification pattern corresponding to the currently detected screw position does not match any of the target patterns, then the detection area adjacent to the detection area is obtained, and the target pattern is updated based on the obtained detection area. Based on the updated target pattern and the verification pattern corresponding to the currently detected screw position, the screw position is detected.

[0055] Optionally, in some embodiments, the selection unit may specifically be used for: Determine the historical reference screw position corresponding to the currently detected screw position; When obtaining the reference screw position for the detection history, the associated screw position is selected. Based on historical reference screw positions and associated screw positions, determine the detection area of ​​the screw position currently being detected in the corresponding processing material. Select the target pattern corresponding to the screw position being inspected from the reference pattern set based on the inspection area.

[0056] As can be seen from the above, in this embodiment of the misaligned screw position detection device, after the providing module 201 provides a processing plate with multiple screw positions, the acquiring module 202 acquires a reference pattern set for all screw positions on the processing plate. Next, the constructing module 203 constructs a verification pattern corresponding to each screw position. Finally, the detection module 204 detects all screw positions on the processing plate based on the verification pattern corresponding to each screw position and the reference pattern set. In the misaligned screw position detection scheme provided by this invention, a verification pattern corresponding to each screw position is constructed, and all screw positions on the processing plate are detected using the verification pattern corresponding to each screw position and the reference pattern set. During processing, misaligned screw positions can be detected on the processing plate without manual inspection, thereby reducing detection costs and improving detection efficiency.

[0057] In summary, although the present invention has been disclosed above with reference to preferred embodiments, the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the concept of the technical solution of the present invention, should be covered within the scope of protection of the present invention.

[0058] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A method for detecting misplaced screws based on connected regions, characterized in that, include: Provide a processing plate with multiple screw positions; Obtain a reference pattern set for all screw positions on the processed sheet metal; Construct a verification pattern for each screw position; Select the target pattern corresponding to the screw position being detected in the reference pattern set; Match the verification pattern corresponding to the currently detected screw position with each of the target patterns; If the verification pattern corresponding to the currently detected screw position matches any of the target patterns, then the currently detected screw position is determined to be installed correctly. If the verification pattern corresponding to the currently detected screw position does not match any of the target patterns, then the detection area adjacent to the detection area is obtained, and the obtained adjacent detection areas are connected to the detection area to obtain a connected area; the target pattern is updated based on the connected area. Based on the updated target pattern and the verification pattern corresponding to the currently detected screw position, the screw position is detected.

2. The method according to claim 1, characterized in that, The construction of the verification pattern corresponding to each screw position includes: Detect whether the number of screw positions installed on the processed plate is greater than a first preset value; When the number of screw positions installed on the processed plate is detected to be greater than the first preset value, a verification pattern corresponding to each screw position is constructed based on the last installed screw position.

3. The method according to claim 2, characterized in that, When the number of screw positions already installed on the processed plate is detected to be greater than a first preset value, a verification pattern is constructed for each screw position based on the last installed screw position, including: Identify the last screw position to be installed as the current processing target; 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. 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 a verification pattern corresponding to each screw position is constructed.

4. The method according to claim 3, characterized in that, Also includes: Determine the first screw position to be installed as the first screw position, and; Identify the second screw position as the second screw position; Using the first screw position as a reference, two screw positions other than the second screw position are randomly selected from the processed material, and based on the first screw position and the selected screw positions, a verification pattern corresponding to the first screw position is constructed. Using the second screw position as a reference, two screw positions other than the first screw position are randomly selected from the processed material, and a verification pattern corresponding to the first screw position is constructed based on the first screw position and the selected screw positions.

5. The method according to claim 2, characterized in that, Also includes: Detect whether the number of screw positions installed on the processed plate is greater than a second preset value, where the second preset value is greater than the first preset value; When the number of screw positions installed on the processing plate is detected to be greater than the second preset value, a random verification pattern corresponding to each screw position in the processing plate is constructed. The step of detecting all screw positions on the processed board material according to the verification pattern corresponding to each screw position and the reference pattern set includes: detecting all screw positions on the processed board material according to the reference pattern set, the verification pattern corresponding to each screw position and the random verification pattern.

6. The method according to claim 1, characterized in that, The step of selecting 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 when detecting the historical reference screw position; Based on the historical reference screw positions and associated screw positions, the currently detected screw position is determined to be in the detection area corresponding to the processed material. Based on the detection area, a target pattern corresponding to the screw position being detected is selected from the reference pattern set.

7. A device for detecting misplaced screws based on connected regions, characterized in that, include: Provide a module for providing a machined sheet metal with multiple screw positions; The acquisition module is used to acquire a preset reference pattern set; The module is used to build the verification pattern for each screw position; The detection module is configured to select a target pattern from the reference pattern set for detecting the screw position currently being detected; match the verification pattern corresponding to the currently detected screw position with each of the target patterns; if the verification pattern corresponding to the currently detected screw position matches any of the target patterns, then the screw position is determined to be installed correctly; if the verification pattern corresponding to the currently detected screw position does not match any of the target patterns, then the module acquires a detection area adjacent to the detection area, connects the acquired adjacent detection areas with the detection area to obtain a connected area; and updates the target pattern based on the connected area. Based on the updated target pattern and the verification pattern corresponding to the currently detected screw position, the screw position is detected.