CN116952983A - Method and device for detecting position of missed screw - Google Patents

Method and device for detecting position of missed screw Download PDF

Info

Publication number
CN116952983A
CN116952983A CN202310961595.6A CN202310961595A CN116952983A CN 116952983 A CN116952983 A CN 116952983A CN 202310961595 A CN202310961595 A CN 202310961595A CN 116952983 A CN116952983 A CN 116952983A
Authority
CN
China
Prior art keywords
screw
pattern
screw position
positions
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310961595.6A
Other languages
Chinese (zh)
Inventor
刘营
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shensiwei Intelligent Technology Co ltd
Original Assignee
Shenzhen Shensiwei Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shensiwei Intelligent Technology Co ltd filed Critical Shenzhen Shensiwei Intelligent Technology Co ltd
Priority to CN202310961595.6A priority Critical patent/CN116952983A/en
Publication of CN116952983A publication Critical patent/CN116952983A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • G01N21/95607Inspecting patterns on the surface of objects using a comparative method
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The present invention provides a method and device for detecting the position of a missing screw, providing a processing plate provided with a plurality of screw positions; acquiring a reference pattern set of all screw positions of the processed plate; constructing a check pattern corresponding to each screw position; and detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set. The scheme can improve and reduce the detection cost and improve the detection efficiency.

Description

Method and device for detecting position of missed screw
Technical Field
The invention relates to the technical field of tool detection, in particular to a method and a device for detecting a missing screw position.
Background
Screws are currently widely used as fasteners, such as for fixing parts or devices on work sheets, which usually require manual work.
In actual production, after the workers screw the screw positions on the plates, the screw positions of the processed plates are usually detected in a missed manner by adopting a manual detection mode, namely, whether the screw positions on the plates are missed to be screwed or wrong to be screwed is detected, and the detection efficiency is low while huge labor cost and management cost are increased for factories in the mode.
Disclosure of Invention
The invention provides a method and a device for detecting a missing screw position, which can improve and reduce detection cost and improve detection efficiency.
In a first aspect, the present invention provides a method for detecting a missing screw position, including:
providing a processing plate provided with a plurality of screw positions;
acquiring a reference pattern set of all screw positions of the processed plate;
constructing a check pattern corresponding to each screw position;
and detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set.
Optionally, in some embodiments of the present invention, the constructing a verification pattern corresponding to each screw bit includes:
detecting whether the number of the installed screw positions on the processed plate is larger than a first preset value or not;
when the number of the installed screw positions on the processed plate is detected to be larger than a first preset value, constructing a verification pattern corresponding to each screw position by taking the last installed screw position as a reference.
Optionally, in some embodiments of the present invention, when it is detected that the number of installed screw positions on the processed board is greater than a first preset value, a verification pattern corresponding to each screw position is constructed based on the last installed screw position, including:
determining the screw position which is finally installed as a current processing object;
acquiring screw positions installed in the previous two times by taking the current processing object as a reference, and constructing a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions;
updating the screw bit installed at the last one as the current processing object, and returning to execute the step taking the current processing object as the reference until the verification pattern corresponding to each screw bit is constructed.
Optionally, in some embodiments of the present invention, further includes:
determining a first installed screw position as a first screw position, and;
determining a second installed screw position as a second screw position;
randomly acquiring two screw positions except a second screw position in the processed plate by taking the first screw position as a reference, constructing a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw position, and;
and taking the second screw position as a reference, randomly acquiring two screw positions except 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 acquired screw position.
Optionally, in some embodiments of the present invention, further includes:
detecting whether the number of the installed screw positions on the processed plate is larger than a second preset value or not, wherein the second preset value is larger than the first preset value;
when the number of the installed screw positions on the processing plate is detected to be larger than a second preset value, constructing a random check pattern corresponding to each screw position in the processing plate;
detecting all screw positions of the processed plate according to the check pattern and the reference pattern set corresponding to each screw position, including: and detecting all screw positions of the processed plate according to the reference pattern set, the check pattern corresponding to each screw position and the random check pattern.
Optionally, in some embodiments of the present invention, the detecting all screw positions of the processed board according to the verification pattern corresponding to each screw position and the reference pattern set includes:
selecting a target pattern corresponding to the screw bit for detecting current detection from the reference pattern set;
and detecting the currently detected screw bit based on the target pattern and a verification pattern corresponding to the currently detected screw bit.
Optionally, in some embodiments of the present invention, the detecting the currently detected screw bit based on the target pattern and the verification pattern corresponding to the currently detected screw bit includes:
matching a verification pattern corresponding to the currently detected screw position with each target pattern;
and if the verification pattern corresponding to the currently detected screw bit is matched with any target pattern, determining that the currently detected screw bit is correctly installed.
Optionally, in some embodiments of the present invention, further includes:
if the check pattern corresponding to the currently detected screw bit is not matched with each target pattern, acquiring a detection area adjacent to the detection area, and updating the target pattern based on the acquired detection area;
and detecting the currently detected screw bit according to the updated target pattern and the verification pattern corresponding to the currently detected screw bit.
Optionally, in some embodiments of the present invention, selecting a target pattern corresponding to a currently detected screw bit in the reference pattern set includes:
determining a historical reference screw position corresponding to the currently detected screw position;
acquiring associated screw positions associated when detecting the historical reference screw positions;
determining that the currently detected screw position is in a detection area corresponding to the processed plate based on the historical reference screw position and the related screw position;
and selecting a target pattern corresponding to the screw bit for detecting current detection in the reference pattern set according to the detection area.
In a second aspect, the present invention further provides a device for detecting a missing screw position, which is characterized by comprising:
the module is used for providing a processing plate provided with a plurality of screw positions;
the acquisition module is used for acquiring a preset reference pattern set;
the construction module is used for constructing a check pattern corresponding to each screw position;
and the detection module is used for detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set.
The invention provides a method and a device for detecting missing screw positions, wherein 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, then a verification pattern corresponding to each screw position is constructed, and 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 missing screw position detection scheme provided by the invention, the verification pattern corresponding to each screw position is constructed, all screw positions of the processed plate are detected by utilizing the verification pattern corresponding to each screw position and the reference pattern set, the missing screw position detection can be carried out on the processed plate during processing, and the missing screw position detection is not needed to be carried out manually, so that the detection cost can be reduced, and the detection efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required in the embodiments are briefly described below, and the drawings in the following description are only drawings corresponding to some embodiments of the present invention, and it is possible for a person skilled in the art to obtain drawings of other embodiments according to these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method for detecting a missing screw position according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a random verification pattern constructed by the method for detecting missing screw bits according to the embodiment of the present invention;
FIG. 3 is a schematic diagram of expanding a detection area of a method for detecting a missing screw position according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for detecting a missing screw position according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Unless defined otherwise, 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 belongs.
Referring to fig. 1, the method for detecting the missing screw position is used for detecting the missing screw position of a plate which is currently being processed, and specifically comprises the following steps:
101. a processed plate provided with a plurality of screw positions is provided.
The processing board can be a printed circuit board (Printed Circuit Board, PCB) or a flexible circuit board (Flexible Printed Circuit, FPC), and the processing board is specific to practical situations.
102. A reference pattern set of all screw positions of the processed plate is obtained.
The reference pattern set comprises a plurality of reference patterns, wherein each reference pattern is composed of at least three screw positions in the processing plate, taking three screw positions as an example, the processing plate is assumed to comprise screw position a, screw position b, screw position c, screw position d and screw position e, and the reference pattern set corresponding to all screw positions of the processing plate is as follows: the pattern abc composed of the screw bit a, the screw bit b and the screw c, the pattern abd composed of the screw bit a, the screw bit b and the screw d, the pattern abe composed of the screw bit a, the screw bit b and the screw e, the pattern acd composed of the screw bit a, the screw bit c and the screw d, the pattern ace composed of the screw bit a, the screw bit c and the screw e, the pattern ade composed of the screw bit a, the screw bit d and the screw e, the pattern bcd composed of the screw bit b, the screw bit c and the screw d, the pattern bce composed of the screw bit b, the screw bit d and the screw e, and the pattern cde composed of the screw bit c, the screw bit d and the screw e are combined, that is, triangular patterns corresponding to 5 screw bits are combined so as to perform the subsequent error bit detection.
Of course, the reference pattern may also be a rectangular pattern, a diamond pattern or other polygonal patterns, which are specifically set according to actual situations, and will not be described herein.
103. And constructing a check pattern corresponding to each screw bit.
The pattern type corresponding to the check pattern is consistent with the pattern type corresponding to the reference pattern, namely, the reference pattern is a triangle pattern, and then the check pattern is also a triangle pattern. It will be appreciated that if the reference pattern is a rectangular pattern, the verification pattern is a rectangular pattern.
For example, taking a triangle pattern construction as an example, when a check pattern corresponding to each screw position is constructed, the number of installed screw positions on the plate needs to be processed to be greater than 2, otherwise, the corresponding triangle pattern cannot be constructed; if the constructed pattern is a rectangular pattern, then the number of installed screw bits on the processed sheet is required to be greater than 3, that is, optionally, in some embodiments, the step of "constructing a verification pattern corresponding to each screw bit" may specifically include:
(11) Detecting whether the number of the installed screw positions on the processed plate is larger than a first preset value;
(12) When the number of the screw positions installed on the processed plate is detected to be larger than a first preset value, constructing a verification pattern corresponding to each screw position by taking the last installed screw position as a reference.
The first preset value may be 3 or 4, which is specifically determined according to the pattern type of the reference pattern. When the pattern type of the reference pattern is triangle, the first preset value is 2; when the pattern type of the reference pattern is rectangular, the first preset value is 4.
Taking the triangle pattern as an example, when the number of installed screw positions on the processing plate is 3, that is, the number of installed screw positions on the processing plate is greater than 2, at this time, a check pattern (that is, a triangle pattern) is constructed based on the third installed screw position, and the constructed triangle pattern is a check pattern corresponding to the three installed screw positions on the processing plate.
Further, when the number of installed screw positions on the processing board is 10, three screw positions are set to construct a verification pattern corresponding to each screw position, for example, when the number of installed screw positions on the processing board is a1, a2, a10, then a verification pattern S1 including screw position a1, screw position a2 and screw position a3, a verification pattern S2 including screw position a2, screw position a3 and screw position a4, a verification pattern S8 including screw position a8, screw position a9 and screw position a10 is constructed. It may be appreciated that in this embodiment, each of the installed screw positions is used as a reference, the first two installed screw positions are obtained, and the verification pattern is constructed based on the first two installed screw positions, that is, optionally, in some embodiments, the step of "when the number of installed screw positions on the processing board is detected to be greater than the first preset value, constructing the verification pattern corresponding to each screw position based on the last installed screw position" may specifically include:
(21) Determining the screw position which is finally installed as a current processing object;
(22) Acquiring screw positions installed in the previous two times by taking a current processing object as a reference, and constructing a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions;
(23) Updating the screw bit of the last-to-last installation to the current processing object, and returning to execute the step taking the current processing object as a reference until the verification pattern corresponding to each screw bit is constructed.
In the detection logic of the present embodiment, the detection is performed based on the sequence of installed screw bits, for example, the installed screw bits include screw bit 1, screw bit 2, screw bit 3, screw bit 4, screw bit 5, screw bit 6 and screw bit 7, the currently installed screw bit is screw bit 8, and the check triangle pattern corresponding to screw bit 8 is a triangle pattern formed by screw bit 6, screw bit 7 and screw bit 8. In order to reduce the calculation and improve the detection efficiency, the subarea matches the check triangle pattern with the reference triangle pattern. That is, it is detected whether the reference triangle pattern of the region where the screw bit 1 to the screw bit 8 are located matches the check triangle pattern corresponding to the screw bit 8.
It should be noted that, for the triangle check pattern, the first installed screw position and the second installed screw position of the processed plate cannot complete the side leakage detection of the screw positions in the case of only two screw positions, and only when the third screw position is installed, the three screw positions can be detected. However, in this case, it may happen that all three screw positions are wrong and that the correct situation can be detected. As shown in fig. 2, the processed plate includes two types of screw positions, namely screw position a and screw position b. The triangular pattern formed by the screw bit a1, the screw bit a2 and the screw bit a3 is the same as the triangular pattern formed by the screw bit b1, the screw bit b2 and the screw bit b 3. The screw positions of the generation engineering indication worker, which need to install the screw this time, are screw position a1, screw position a2 and screw position a3. Since the distances between the screw bit a1, the screw bit a2 and the screw bit a3 and the screw bit b1, the screw bit b2 and the screw bit b3 are close, when a worker installs the screws, the worker installs the screws on the screw bit b1, the screw bit b2 and the screw bit b3 by mistake, so that the situation that the screw bit b1, the screw bit b2 and the screw bit b3 are detected correctly can occur, and in the present invention, the detection can be performed by other screw bits, that is, optionally, in some embodiments, the error and leakage screw bit detection method of the present invention specifically can further include:
(31) Determining a first installed screw position as a first screw position and a second installed screw position as a second screw position;
(32) And randomly acquiring two screw positions except the first screw position in the processed plate based on the second screw position, and constructing a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw position.
With continued reference to fig. 2, if the first installed screw position is the screw position b1, the second installed screw position is the screw position b2, the third installed screw position is the screw position b3, the fourth installed screw position is the screw position a4, and the fifth installed screw position is the screw position a5, the triangular patterns corresponding to the screw position b1, the screw position b3 and the screw position a4 may be constructed, and the triangular patterns corresponding to the screw position b1, the screw position b3 and the screw position a5 may also be constructed. Similarly, a triangular pattern corresponding to the screw bit b2, the screw bit b3, and the screw bit a4 may be constructed for the screw bit b2, or a triangular pattern corresponding to the screw bit b2, the screw bit b3, and the screw bit a5 may be constructed. Therefore, the condition that the detection is correct in the check pattern constructed by the wrongly installed screw positions can be avoided. In this manner, the number of screws to be mounted on the processed plate is larger than the set number, and is specifically determined by the pattern type of the verification pattern, for example, the set number corresponding to the triangular verification pattern may be set to 5 or 7; the number of settings corresponding to the rectangular pattern may be 7 or 9.
Further, in order to improve accuracy of the error detection result, when the number of screw bits of the mounting screws of the processing board reaches a certain number, the screw bits can be randomly extracted to construct a corresponding random verification pattern, so that the corresponding random verification pattern can be constructed according to the verification pattern constructed in step 103 and the random extracted screw bits to detect, that is, optionally, in some embodiments, the error screw bit detection method of the present invention specifically further includes:
(41) Detecting whether the number of the installed screw positions on the processed plate is larger than a second preset value;
(42) When the number of the installed screw positions on the processing plate is detected to be larger than a second preset value, constructing a random check pattern corresponding to each screw position in the processing plate.
Wherein the second preset value is greater than the first preset value. Alternatively, the second preset value may be set according to the number of screw positions of the processed plate. For example, the number of screw positions of the processed plate may be 100, the second preset value may be 50, or the second preset value may be 30.
It can be appreciated that in this embodiment, the second preset value may be set according to the number of screw positions of the processed board and the actual detection requirement. For example, for some processed boards prone to error, the number of screw positions is 100, so in order to improve the detection precision, the second preset value can be set to 10, that is, each time 10 screw positions are installed, a random check pattern is generated, thereby ensuring that the screw positions installed before have been detected for a plurality of times when the last screw position is installed. For another example, for some processed boards which are not easy to make mistakes, such as a processed board with single screw positions, the number of the screw positions is 100, in order to reduce the calculation amount, the second preset value can be set to be 50, that is, 50 screw positions are installed, and then a random check pattern is generated. For a processed plate material with 100 screw positions, only two random check patterns are generated in the whole installation process, so that the calculated amount can be reduced.
104. And detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set.
For example, specifically, matching the check pattern corresponding to each screw bit with a reference pattern in the reference pattern set; when the check pattern is matched with any reference pattern, determining that the screw position corresponding to the check pattern is correctly installed; when the verification pattern is not matched with all the reference patterns, a prompt of screw installation errors is output, such as a prompt tone is broadcasted, so that workers installing the screws can know.
Further, as described above, when the number of installed screw positions on the processed board is detected to be greater than the second preset value, a random verification pattern corresponding to each screw position in the processed board is constructed, so the step of detecting all screw positions of the processed board according to the verification pattern corresponding to each screw position and the reference pattern set may specifically include: and detecting all screw positions of the processed plate according to the reference pattern set, the check pattern corresponding to each screw position and the random check pattern.
For example, specifically, the check pattern corresponding to each screw bit is matched with the reference pattern in the reference pattern set, and the random check pattern corresponding to each screw bit is matched with the reference pattern in the reference pattern set. When the check pattern is matched with any reference pattern and the random check pattern is matched with any reference pattern, the screw positions corresponding to the check pattern are determined to be correctly installed. And outputting a prompt of screw installation error when the check pattern is matched with any reference pattern and/or the random check pattern is matched with any reference pattern.
In addition, in order to reduce the calculation amount during pattern matching, in the invention, the pattern for detection may be selected in the reference pattern set to perform missing screw bit detection, that is, optionally, in some embodiments, the step of "detecting all screw bits of the processed plate according to the verification pattern corresponding to each screw bit and the reference pattern set" may specifically include:
(51) Selecting a target pattern corresponding to the screw bit for detecting current detection from the reference pattern set;
(52) And detecting the currently detected screw bit based on the target pattern and the verification pattern corresponding to the currently detected screw bit.
For example, 50% of the reference patterns are selected in the reference pattern set to be determined as target patterns, and then the check pattern is matched with the selected target patterns; when the check pattern is matched with any target pattern, determining that the screw position corresponding to the check pattern is correctly installed; when the check pattern is not matched with all the target patterns, matching the check pattern with the rest of the reference patterns (namely, the reference patterns except the target patterns); when the check pattern and any remaining reference pattern are detected, determining that the screw position corresponding to the check pattern is correctly installed; and outputting a prompt of screw installation error when the check pattern is not matched with all the rest reference patterns. However, in this way, if the verification pattern does not match the target pattern, it is necessary to perform matching again, so, in order to avoid this, in some embodiments of the present invention, the target pattern corresponding to the screw bit for detecting the current detection is selected in the reference pattern set by using the history installation data corresponding to the processed plate, that is, alternatively, in some embodiments, the step of "selecting the target pattern corresponding to the screw bit for detecting the current detection in the reference pattern set" may specifically include:
(61) Determining a historical reference screw position corresponding to the currently detected screw position;
(62) Acquiring an associated screw position associated with detecting a historical reference screw position;
(63) Determining that the currently detected screw position is in a detection area corresponding to the processed plate based on the historical reference screw position and the related screw position;
(64) And selecting a target pattern corresponding to the screw bit for detecting current detection in the reference pattern set according to the detection area.
For example, specifically, the history installation data corresponding to the processed board is obtained, where the history installation data includes a history punching condition of a history reference screw position, for example, when the history reference screw position i is installed, a screw position installed last is the history reference screw position h, at this time, the history reference screw position i and the history reference screw position h may be recorded, which indicates that the worker installs the history reference screw position h before installing the history reference screw position i, and when the worker detects the worker subsequently, if the history reference screw position corresponding to the currently detected screw position is the history reference screw position i, the currently detected screw position may be determined to be located in the detection area corresponding to the processed board based on the history reference screw position i and the history reference screw position h. The detection area is an area including a history reference screw position i and a history reference screw position h on the processed plate, wherein the size of the area can be set according to practical situations, for example, the size of the processed plate is 30cm x 10cm, and then the size of the detection area can be set to 5cm x 10cm or 10cm x 10cm. Then, the candidate screw positions covered by the detection area are determined, and then, the reference pattern corresponding to the candidate screw positions is selected from the reference pattern set as the target pattern.
In addition, it should be noted that, according to the detection area, a target pattern corresponding to the currently detected screw bit is selected in the reference pattern set, and if the verification pattern corresponding to the currently detected screw bit does not match each target pattern, at this time, the following situations may exist: 1) The screw position installed by workers is wrong; 2) The detection area of the screw position is different from the detection area of the last screw position.
For case 1), outputting a prompt; for case 2), the detection area may be updated, a target pattern corresponding to the updated detection area may be acquired, and then the screw bit may be detected based on the acquired target pattern, that is, optionally, in some embodiments, the method for detecting the missed screw bit provided by the present invention may specifically further include:
(71) If the check pattern corresponding to the currently detected screw bit is not matched with each target pattern, acquiring a detection area adjacent to the detection area, and updating the target pattern based on the acquired detection area;
(72) And detecting the currently detected screw bit according to the updated target pattern and the verification pattern corresponding to the currently detected screw bit.
For example, referring to fig. 3, the currently detected screw bit is screw bit 7, a historical reference screw bit corresponding to the screw bit 7 and an associated screw bit associated with the reference screw bit are determined, then, a monitoring area s1 corresponding to the processed plate is determined by the screw bit 7 according to the historical reference screw bit and the associated screw bit, and when the screw bit 7 is detected, all the reference triangle patterns corresponding to the detection area s1 are obtained to detect the check triangle patterns corresponding to the screw bit 7. When the check triangle pattern corresponding to the screw position 7 is matched with any reference triangle pattern corresponding to the detection area s1, the installation is correct; when the check triangle pattern corresponding to the screw position 7 is not matched with all the reference triangle patterns corresponding to the detection area S1, a detection area S2 and a detection area S3 adjacent to the current detection area S1 are obtained, and then the obtained detection area is communicated with the detection area S1 to obtain a communication area S. If a reference triangle pattern matching the check triangle pattern is detected in the reference triangle pattern corresponding to the communication area S, it is determined that the screw position 7 is correctly installed. If a reference triangle pattern which does not match the check triangle pattern is detected in the reference triangle pattern corresponding to the communication area S, an error prompt is output.
In addition, after the area is enlarged, the installed screw position is re-detected, namely, the installed screw position is re-checked by utilizing the reference pattern corresponding to the communication area S; when the rechecking times of the screw bits are larger than the preset times, the screw bits are not rechecked next time.
Further, when the corresponding patterns of the screw bits 9 and 10 in the communication area S fall on the area detection area S2, the detection area S2 is updated to a new detection area, thereby reducing the calculation amount. And the detection area s1 is marked, and the installed screw position is subsequently rechecked.
According to the missing screw position detection method provided by the embodiment, after a processing plate provided with a plurality of screw positions is provided, a reference pattern set of all screw positions of the processing plate is obtained, then a verification pattern corresponding to each screw position is constructed, and 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 missing screw position detection scheme provided by the invention, the verification pattern corresponding to each screw position is constructed, all screw positions of the processed plate are detected by utilizing the verification pattern corresponding to each screw position and the reference pattern set, the missing screw position detection can be carried out on the processed plate during processing, and the missing screw position detection is not needed to be carried out manually, so that the detection cost can be reduced, and the detection efficiency is improved.
Accordingly, referring to fig. 4, an embodiment of the present invention provides a device for detecting positions of missed screws (hereinafter referred to as a detection device) of multiple cameras, including:
a module 201 is provided for providing a processed sheet material with a plurality of screw locations mounted thereon.
An obtaining module 202, configured to obtain a preset reference pattern set.
And the construction module 203 is configured to construct a verification pattern corresponding to each screw bit.
The detection module 204 is configured to detect all screw positions of the processed plate according to the verification pattern and the reference pattern set corresponding to each screw position.
Optionally, in some embodiments, the building module 203 may specifically include:
the first detection unit is used for detecting whether the number of the installed screw positions on the processed plate is larger than a first preset value or not;
and the construction unit is used for constructing a verification pattern corresponding to each screw position by taking the last installed screw position as a reference when the number of the screw positions installed on the processing plate is detected to be larger than a first preset value.
Alternatively, in some embodiments, the building element may specifically be configured to:
determining the screw position which is finally installed as a current processing object;
acquiring screw positions installed in the previous two times by taking a current processing object as a reference, and constructing a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions;
updating the screw bit installed at the last one as the current processing object, and returning to execute the step taking the current processing object as the reference until the verification pattern corresponding to each screw bit is constructed.
Optionally, in some embodiments, the building element may be further specifically configured to:
determining a first installed screw position as a first screw position and a second installed screw position as a second screw position;
and randomly acquiring two screw positions except the first screw position in the processed plate based on the second screw position, and constructing a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw position.
Optionally, in some embodiments, the first detection unit may be further specifically configured to:
detecting whether the number of the installed screw positions on the processed plate is larger than a second preset value, wherein the second preset value is larger than the first preset value;
when the number of the installed screw positions on the processing plate is detected to be larger than a second preset value, constructing a random check pattern corresponding to each screw position in the processing plate.
Optionally, in some embodiments, the detection module 204 may be further specifically configured to: and detecting all screw positions of the processed plate according to the reference pattern set, the check pattern corresponding to each screw position and the random check pattern.
Optionally, in some embodiments, the detection module 204 may specifically include:
a selection unit for selecting a target pattern corresponding to the screw bit for detecting current detection from the reference pattern set;
and the second detection unit is used for detecting the currently detected screw bit based on the target pattern and the verification pattern corresponding to the currently detected screw bit.
Alternatively, in some embodiments, the second detection unit may specifically be configured to:
matching the check pattern corresponding to the currently detected screw position with each target pattern;
and if the verification pattern corresponding to the currently detected screw bit is matched with any target pattern, determining that the currently detected screw bit is correctly installed.
Optionally, in some embodiments, the second detection unit may be further specifically configured to:
if the check pattern corresponding to the currently detected screw bit is not matched with each target pattern, acquiring a detection area adjacent to the detection area, and updating the target pattern based on the acquired detection area;
and detecting the currently detected screw bit according to the updated target pattern and the verification pattern corresponding to the currently detected screw bit.
Alternatively, in some embodiments, the selection unit may specifically be configured to:
determining a historical reference screw position corresponding to the currently detected screw position;
acquiring an associated screw position associated with detecting a historical reference screw position;
determining that the currently detected screw position is in a detection area corresponding to the processed plate based on the historical reference screw position and the related screw position;
and selecting a target pattern corresponding to the screw bit for detecting current detection in the reference pattern set according to the detection area.
As can be seen from the above, in the missing screw position detecting device of the present embodiment, after the providing module 201 provides a processed board with a plurality of screw positions, the obtaining module 202 obtains the reference pattern set of all screw positions of the processed board, 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 board according to the verification pattern corresponding to each screw position and the reference pattern set. In the missing screw position detection scheme provided by the invention, the verification pattern corresponding to each screw position is constructed, all screw positions of the processed plate are detected by utilizing the verification pattern corresponding to each screw position and the reference pattern set, the missing screw position detection can be carried out on the processed plate during processing, and the missing screw position detection is not needed to be carried out manually, so that the detection cost can be reduced, and the detection efficiency is improved.
In summary, although the present invention has been described with reference to the preferred embodiments, the scope of the invention is not limited thereto, and any person skilled in the art who is skilled in the art should make equivalent substitutions or modifications according to the technical scheme of the present invention within the scope of the present invention.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.

Claims (10)

1. The method for detecting the position of the missed screw is characterized by comprising 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 processed plate;
constructing a check pattern corresponding to each screw position;
and detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set.
2. The method of claim 1, wherein constructing the verification pattern for each screw bit comprises:
detecting whether the number of the installed screw positions on the processed plate is larger than a first preset value or not;
when the number of the installed screw positions on the processed plate is detected to be larger than a first preset value, constructing a verification pattern corresponding to each screw position by taking the last installed screw position as a reference.
3. The method according to claim 2, wherein when the number of installed screw positions on the processed board is detected to be greater than a first preset value, constructing a verification pattern corresponding to each screw position based on the last installed screw position, includes:
determining the screw position which is finally installed as a current processing object;
acquiring screw positions installed in the previous two times by taking the current processing object as a reference, and constructing a verification pattern corresponding to the current processing object based on the current processing object and the acquired screw positions;
updating the screw bit installed at the last one as the current processing object, and returning to execute the step taking the current processing object as the reference until the verification pattern corresponding to each screw bit is constructed.
4. A method according to claim 3, further comprising:
determining a first installed screw position as a first screw position, and;
determining a second installed screw position as a second screw position;
randomly acquiring two screw positions except a second screw position in the processed plate by taking the first screw position as a reference, constructing a verification pattern corresponding to the first screw position based on the first screw position and the acquired screw position, and;
and taking the second screw position as a reference, randomly acquiring two screw positions except 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 acquired screw position.
5. The method as recited in claim 2, further comprising:
detecting whether the number of the installed screw positions on the processed plate is larger than a second preset value or not, wherein the second preset value is larger than the first preset value;
when the number of the installed screw positions on the processing plate is detected to be larger than a second preset value, constructing a random check pattern corresponding to each screw position in the processing plate;
detecting all screw positions of the processed plate according to the check pattern and the reference pattern set corresponding to each screw position, including: and detecting all screw positions of the processed plate according to the reference pattern set, the check pattern corresponding to each screw position and the random check pattern.
6. The method according to any one of claims 1 to 4, wherein the detecting all screw positions of the processed plate according to the verification pattern and the reference pattern set corresponding to each screw position comprises:
selecting a target pattern corresponding to the screw bit for detecting current detection from the reference pattern set;
and detecting the currently detected screw bit based on the target pattern and a verification pattern corresponding to the currently detected screw bit.
7. The method of claim 6, wherein detecting the currently detected screw bit based on the target pattern and a verification pattern corresponding to the currently detected screw bit comprises:
matching a verification pattern corresponding to the currently detected screw position with each target pattern;
and if the verification pattern corresponding to the currently detected screw bit is matched with any target pattern, determining that the currently detected screw bit is correctly installed.
8. The method as recited in claim 7, further comprising:
if the check pattern corresponding to the currently detected screw bit is not matched with each target pattern, acquiring a detection area adjacent to the detection area, and updating the target pattern based on the acquired detection area;
and detecting the currently detected screw bit according to the updated target pattern and the verification pattern corresponding to the currently detected screw bit.
9. The method of claim 6, wherein selecting a target pattern for detecting a currently detected screw bit in the reference pattern set comprises:
determining a historical reference screw position corresponding to the currently detected screw position;
acquiring associated screw positions associated when detecting the historical reference screw positions;
determining that the currently detected screw position is in a detection area corresponding to the processed plate based on the historical reference screw position and the related screw position;
and selecting a target pattern corresponding to the screw bit for detecting current detection in the reference pattern set according to the detection area.
10. The utility model provides a dislocation screw position detection device which characterized in that includes:
the module is used for providing a processing plate provided with a plurality of screw positions;
the acquisition module is used for acquiring a preset reference pattern set;
the construction module is used for constructing a check pattern corresponding to each screw position;
and the detection module is used for detecting all screw positions of the processed plate according to the check pattern corresponding to each screw position and the reference pattern set.
CN202310961595.6A 2023-08-01 2023-08-01 Method and device for detecting position of missed screw Pending CN116952983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310961595.6A CN116952983A (en) 2023-08-01 2023-08-01 Method and device for detecting position of missed screw

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310961595.6A CN116952983A (en) 2023-08-01 2023-08-01 Method and device for detecting position of missed screw

Publications (1)

Publication Number Publication Date
CN116952983A true CN116952983A (en) 2023-10-27

Family

ID=88458170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310961595.6A Pending CN116952983A (en) 2023-08-01 2023-08-01 Method and device for detecting position of missed screw

Country Status (1)

Country Link
CN (1) CN116952983A (en)

Similar Documents

Publication Publication Date Title
CN109669844B (en) Equipment fault processing method, device, equipment and storage medium
WO2007144936A1 (en) Peripheral device of programmable logic controller and automatic program verification method
CN110069279B (en) Method, device and storage medium for checking direct current control protection program
CN103428333A (en) Mobile terminal, server and error restoration method
CN106871378B (en) Method and device for judging poor heat exchange of air conditioner
CN107205063A (en) A kind of device conflict solution of Intelligent housing bus
JP2007003528A5 (en)
CN108304963B (en) Expansion and shrinkage prediction method for multilayer circuit board
US8769337B2 (en) Detection method for configuration of power supply units and detection system using the same
CN106814479B (en) A kind of offset compensating method of panel defect location, apparatus and system
CN116952983A (en) Method and device for detecting position of missed screw
CN111664543B (en) Air conditioner and control method thereof
WO2020255272A1 (en) Electronic apparatus and method
CN111475188A (en) Power module firmware updating method, device, equipment and storage medium
JP4870441B2 (en) Situation analysis system and situation analysis method
CN115437264A (en) Intelligent closestool control method and device and intelligent closestool
CN113065674B (en) Method, system and electronic equipment for determining availability of use
JP2009110285A (en) Workpiece management method and workpiece management system
CN109531730B (en) Terminal nailing method, device and storage medium
JP6265767B2 (en) Communication diagnostic device, communication diagnostic system, communication diagnostic method, and program
CN101819532B (en) Method and device for updating data
CN108254720B (en) Article position information detection device and method
CN110658194A (en) Keyboard detection method and keyboard detection equipment
JP4697585B2 (en) Information processing system and method for checking connection state in information processing system
CN106407095B (en) Fault handling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination