A lock detection method and system based on intelligent internet-of-things technology
By using smart IoT technology to detect the lock assembly process and obtain a series of comparisons between the lock and the key, the problem of key mismatch caused by assembly errors during lock manufacturing is solved, thus achieving lock and key matching and cost savings.
Patent Information
- Application Number
- CN202511535683.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-27
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2045-10-27
AI Technical Summary
The existing technology does not inspect the lock manufacturing process, which makes it impossible to know whether the lock has been assembled incorrectly before the key is manufactured, resulting in a mismatch between the lock and the key. This is especially true for high-end locks, which have a higher assembly error rate.
By using smart IoT technology, the image of each codon during the lock assembly process is obtained and input into a trained codon discrimination model to obtain the codon type number. This is then compared with the key tooth type number to output an error signal and correct the key drawing, ensuring that the lock and key match.
Before key manufacturing, errors in lock assembly can be detected, production costs can be saved, and keys can be corrected to ensure they can open locks, thus improving the accuracy of the lock manufacturing process.
Smart Images

Figure CN121033966B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of lock testing technology, and in particular relates to a lock testing method and system based on smart Internet of Things technology. Background Technology
[0002] Lock testing technology is an important technology to ensure the safety and reliability of locks, including lock closing force testing, mutual opening rate testing, life testing, impact testing, etc.
[0003] Existing lock testing technologies only inspect assembled finished locks, lacking methods to inspect the lock manufacturing process. Before the key is manufactured, it's impossible to know if the lock has been assembled incorrectly, leading to a mismatch with the key (assembly errors are mainly caused by extracting incorrect lock code words during assembly, which the assembly equipment cannot detect). Furthermore, it's impossible to pinpoint the errors in the lock assembly process. For higher-grade locks (C level and above), the interoperability rate is very low, and the assembly steps for each C-level and above lock are essentially different. Therefore, the probability of errors during lock assembly increases. Thus, a lock testing method that detects the lock assembly process is needed. Summary of the Invention
[0004] This application provides a lock detection method and system based on smart IoT technology, which can solve the problem that there is no method in the prior art to detect the lock manufacturing process, and that it is impossible to know whether the lock is assembled incorrectly before the key is manufactured, resulting in mismatch with the key.
[0005] In a first aspect, embodiments of this application provide a lock detection method based on Internet of Things (IoT) technology, applied to a lock manufacturing system where locks are manufactured before keys are manufactured. The method includes:
[0006] The first graphic of each codon during the lock assembly process is sequentially obtained and input into the codon resolution model to obtain the codon type number of all codons in the lock; wherein, the first graphic of the codon refers to the pin graphic of the pin tumbler lock or the blade graphic of the leaf lock, and the codon resolution model is a trained machine learning model.
[0007] Determine the assembly order of the codons in the lock;
[0008] A first sequence is obtained based on the assembly order of all codons in the lock and the codon type number; wherein, the items of the first sequence are the codon type numbers, and the codon type numbers are arranged in the order of the codons in the lock.
[0009] Obtain the first blueprint of the key, and obtain the tooth type number of each tooth of the key based on the first blueprint; wherein, the tooth type number corresponds one-to-one with the code subtype number;
[0010] obtaining a second series according to the tooth type number of all teeth of the key;
[0011] comparing the first series with the second series, when the first series and the second series do not correspond completely, sending an error signal and the second series to a key manufacturing device, saving the bit number of the items in the first series and the second series that do not correspond, and generating prompt information according to the bit number of the items that do not correspond; after the key manufacturing device receives the error signal and the second series, the key manufacturing device changes the first drawing so that the first series and the second series correspond completely; the prompt information is used to prompt an operator of an error point in a lock assembly process.
[0012] The technical scheme described above in the embodiments of the present application has at least the following technical effects:
[0013] The lock detection method based on intelligent Internet of Things technology provided in the application first obtains the first pattern of each codon in the lock assembly process in sequence, and inputs the first pattern into a pre-trained codon discrimination model to obtain the codon type number of all codons in the lock. In this step, the type of the codon of the lock is discriminated by intelligent technology, and the codon type number is used for representation, which is equivalent to digitizing the entity codon, and data processing can be more convenient. Second, the assembly sequence of the codons in the lock is obtained. In this step, the codon assembly sequence of the lock assembly process is obtained, which is beneficial to obtaining the first sequence subsequently. Then, the first sequence is obtained according to the assembly sequence and the codon type number of all codons in the lock. In this step, an entity lock is digitized into the first sequence, and the item of the first sequence is the codon type number of the codon in the lock, which can facilitate data processing and error tracing. Then, the first drawing of the key is obtained, and the tooth type number of each tooth of the key is obtained according to the first drawing. In this step, the type of the key tooth in the key drawing is discriminated by intelligent technology, and the tooth type number is one-to-one corresponding to the codon type number, which can convert the relationship between the lock codon and the key tooth into a comparison relationship between the two type numbers. Subsequently, the second sequence is obtained according to the tooth type number of all teeth of the key. In this step, the key drawing is digitized into the second sequence. Finally, the first sequence and the second sequence are compared, when the first sequence and the second sequence do not correspond completely, an error signal is output, and the first drawing of the key is changed so that the first sequence and the second sequence correspond completely, and the number of bits of the items that do not correspond in the first sequence and the second sequence is saved, and prompt information is generated according to the number of bits of the items that do not correspond. In this step, whether the lock and the key are aligned is converted into whether the first sequence and the second sequence are equal, and an error signal can be output when they are not equal, and the first drawing of the key can be corrected reversely, and the corrected key can still open the lock assembled incorrectly, which saves the production cost. The number of bits of the items that do not correspond in the first sequence and the second sequence is saved, and prompt information is generated according to the number of bits of the items that do not correspond, so that the error step in the assembly process can be found. In the method, the problem that the lock manufacturing process is not detected in the prior art, and whether the lock is assembled incorrectly cannot be known before the key is manufactured, which leads to the problem that the lock does not match the key.
[0014] In a second aspect, the embodiments of the application provide another lock detection method based on intelligent Internet of Things technology, which is applied to a composite lock manufacturing system that manufactures a lock first and then manufactures a key. The method comprises:
[0015] n codon sequences are obtained according to n rows of codons of the composite lock; wherein the composite lock refers to a lock with two or more independent codons, and n is the number of rows of independent codons;
[0016] n key tooth sequences are obtained according to n rows of key teeth of the key drawing of the composite key.
[0017] The first of the n codon sequences is sequentially compared with the n key tooth sequences, and when there is a completely corresponding sequence, the two completely corresponding sequences are removed from the 2n sequences; then the second of the n codon sequences is sequentially operated in the same way until the n codon sequences are all operated in the same way; wherein the 2n sequences refer to the n codon sequences and the n key tooth sequences;
[0018] If there is a remaining codon sequence that cannot be completely aligned, there is also a corresponding same number of remaining key tooth sequences, and the remaining codon sequence and the remaining key tooth sequence are paired according to the principle of maximum sequence alignment, and an error signal, a pairing relationship, the codon sequence that cannot be completely aligned and the remaining key tooth sequence are sent to a key manufacturing device; after the key manufacturing device receives the error signal, the pairing relationship, the remaining codon sequence that cannot be completely aligned and the remaining key tooth sequence, the key drawing of the composite key is changed to make the paired remaining codon sequence and the remaining key tooth sequence completely correspond;
[0019] The number of bits of the non-corresponding items in the paired remaining codon sequence and the remaining key tooth sequence is saved, and prompt information is generated according to the number of bits of the non-corresponding items; wherein the prompt information is used to prompt the error point in the lock assembly process to the operator.
[0020] In a third aspect, an embodiment of the present application provides a lock detection system based on intelligent Internet of Things technology, applied to a lock manufacturing system that first manufactures a lock and then manufactures a key, and the lock detection system comprises:
[0021] A codon type distinguishing unit is configured to sequentially obtain a first pattern of each codon in a lock assembly process and input the first pattern into a codon distinguishing model to obtain a codon type number of all codons in the lock; wherein the first pattern of the codon refers to a pin pattern of a pin tumbler lock or a leaf pattern of a leaf tumbler lock, and the codon distinguishing model is a trained machine learning model;
[0022] A codon sequence acquisition unit is configured to acquire an assembly sequence of the codons in the lock;
[0023] A first sequence generation unit is configured to obtain a first sequence according to the assembly sequence and the codon type number of all codons in the lock; wherein an item of the first sequence is the codon type number, and the codon type numbers are sequentially arranged into the first sequence in the order of the codons in the lock;
[0024] The key tooth type distinguishing unit is configured to obtain a first drawing of the key and to obtain a tooth type number of each tooth of the key according to the first drawing; the tooth type number is in one-to-one correspondence with the code type number;
[0025] The second sequence generating unit is configured to obtain a second sequence according to the tooth type numbers of all the teeth of the key.
[0026] The post-processing unit is configured to compare the first sequence with the second sequence, to send an error signal and the second sequence to a key manufacturing device when the first sequence does not completely correspond to the second sequence, and to save the bit number of the items that do not correspond in the first sequence and the second sequence and to generate prompt information according to the bit number of the items that do not correspond; the key manufacturing device, after receiving the error signal and the second sequence, changes the first drawing so that the first sequence completely corresponds to the second sequence; and the prompt information is used to prompt an operator of an error point in a lock assembly process.
[0027] In a fourth aspect, an embodiment of the present application provides a lock detection device based on intelligent Internet of Things technology, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method in any one of the first aspect when executing the computer program.
[0028] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the method in any one of the first aspect.
[0029] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on a lock detection device based on intelligent Internet of Things technology, causes the lock detection device based on intelligent Internet of Things technology to perform the lock detection method based on intelligent Internet of Things technology in any one of the first aspect.
[0030] It can be understood that the beneficial effects of the second aspect to the sixth aspect can be referred to the related description in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0032] Figure 1is a flowchart of a lock detection method based on intelligent Internet of Things technology provided by an embodiment of the present application;
[0033] Figure 2 is a flowchart of another lock detection method based on intelligent Internet of Things technology provided by an embodiment of the present application;
[0034] Figure 3 is a structural diagram of a lock detection system based on intelligent Internet of Things technology provided by an embodiment of the present application;
[0035] Figure 4 is a structural diagram of a lock detection device based on intelligent Internet of Things technology provided by an embodiment of the present application. DETAILED DESCRIPTION
[0036] In the following description, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, persons skilled in the art will understand that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
[0037] It should be understood that the term "comprises" as used in the specification and the appended claims indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0038] It should also be understood that the term "and / or" as used herein refers to any combination of associated items, including all possible combinations, and includes one or more of the associated items.
[0039] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if determined" or "if detected [the described condition or event]" can be interpreted as meaning "once determined" or "in response to a determination" or "once detected [the described condition or event]" or "in response to a detection [the described condition or event]" depending on the context.
[0040] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for differentiation in description, and cannot be understood as indicating or implying relative importance.
[0041] Reference throughout this application to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places in the specification are not necessarily all referring to the same embodiment, however, but can refer to one or more but not all embodiments. The terms "including," "comprising," "having" and variations thereof are meant to encompass the items listed thereafter and equivalents thereof as well as additional items. Although the terms "comprise," "comprises," "comprising," "include," "includes," "including," and / or "contain," "contains," or "containing," are open-ended linking verbs of inclusion, the terms "consist of," "consists of," "consisting of," "consists," "consisting only of," "consist only of," and / or "consist only," are closed- ended open-ended linking verbs of inclusion. As used herein, the indefinite articles "a" and "an" mean "one or more" unless otherwise indicated.
[0042] In the related art, the existing lock detection technology is to detect the assembled finished lock, there is no method to detect the lock manufacturing process, and it is impossible to know whether the lock is misassembled to cause mismatch with the key before the key is manufactured. It is also impossible to know the error point in the lock assembly process. For the C-level and above locks with higher level, the mutual opening rate is very low, and basically each C-level and above lock has different assembly steps, so the probability of error in the lock assembly process will increase. Therefore, a lock detection method for detecting the lock assembly process is needed.
[0043] To solve the above problems, the embodiment of the present application provides a lock detection method based on intelligent Internet of Things technology. In the method, first, the first pattern of each codon in the lock assembly process is obtained in turn and input into a pre-trained codon discrimination model to obtain the codon type number of all codons in the lock. In this step, the codon type of the lock is discriminated by intelligent technology, and the codon type number is used for representation, which is equivalent to digitizing the entity codon, and data processing can be more convenient. Second, the assembly sequence of the codons in the lock is obtained. In this step, the codon assembly sequence of the lock assembly process is obtained, which is beneficial to obtaining the first sequence subsequently. Then, the first sequence is obtained according to the assembly sequence and the codon type number of all codons in the lock. In this step, an entity lock is digitized into the first sequence, and the item of the first sequence is the codon type number of the codon in the lock, which can facilitate data processing and error tracing. Then, the first drawing of the key is obtained, and the tooth type number of each tooth of the key is obtained according to the first drawing. In this step, the type of the key tooth in the key drawing is discriminated by intelligent technology, and the tooth type number is one-to-one corresponding to the codon type number, which can convert the relationship between the lock codon and the key tooth into a comparison relationship between the two type numbers. Subsequently, the second sequence is obtained according to the tooth type number of all teeth of the key. In this step, the key drawing is digitized into the second sequence. Finally, the first sequence and the second sequence are compared, and when the first sequence and the second sequence do not correspond completely, an error signal is output, and the first drawing of the key is changed so that the first sequence and the second sequence correspond completely, and the number of bits of the items that do not correspond in the first sequence and the second sequence is saved, and prompt information is generated according to the number of bits of the items that do not correspond. In this step, whether the lock and the key are aligned is converted into whether the first sequence and the second sequence are equal, and an error signal can be output when they are not equal, and the first drawing of the key can be corrected reversely, and the corrected key can still open the lock assembled incorrectly, saving production cost. The number of bits of the items that do not correspond in the first sequence and the second sequence can be saved, and prompt information can be generated according to the number of bits of the items that do not correspond to find the error step in the assembly process. In the method, the problem that the lock manufacturing process is not detected in the prior art, and whether the lock is assembled incorrectly before the key is manufactured cannot be known to cause the problem that the lock does not match the key can be solved, and the first drawing of the key can be corrected reversely, so that the corrected key can still open the lock assembled incorrectly.
[0044] The lock detection method based on intelligent Internet of Things technology provided by the embodiment of the present application can be applied to a lock detection device based on intelligent Internet of Things technology. At this time, the lock detection device based on intelligent Internet of Things technology is the execution subject of the lock detection method based on intelligent Internet of Things technology provided by the embodiment of the present application, and the specific type of the lock detection device based on intelligent Internet of Things technology is not limited in the embodiment of the present application.
[0045] For example, the lock detection device based on the intelligent Internet of Things technology can include a collection device, a signal sending device and a control device. The control device is in communication connection with the collection device and the signal sending device. The collection device can be a camera and a laser sensor. The signal sending device can be a bus or a wireless module. The key manufacturing device is in communication connection with the lock detection device based on the intelligent Internet of Things technology through the signal sending device. The control device can control the collection device to collect the first pattern of the code. The control device can also control the signal sending device to send the error signal and the second sequence to the key manufacturing device. The control device can also calculate the first sequence and the second sequence. The control device can also compare the first sequence and the second sequence. The control device can also save the bit number of the items that do not correspond in the first sequence and the second sequence. The control device can also generate the prompt information according to the bit number of the items that do not correspond.
[0046] The control device can be a single-chip microcomputer, a microprocessor, a mobile phone, a tablet computer, a notebook computer, a computer, a laptop computer, etc.
[0047] The lock manufacturing system that first manufactures the lock and then manufactures the key is a system in parallel relationship with the lock detection device. The lock manufacturing system includes a lock assembly device and a key manufacturing device (the lock assembly device and the key manufacturing device can adopt various types of lock assembly devices and key manufacturing devices in the prior art, and the embodiments of the present application do not limit this). The lock assembly device and the key manufacturing device are respectively used for assembling the lock and manufacturing the key. The collection device of the lock detection device is located in the lock assembly area of the lock assembly device, can shoot the image of the code and does not hinder the assembly process. The key manufacturing device is in communication connection with the signal sending device and can receive the information sent by the signal sending device.
[0048] In order to better understand the lock detection method based on the intelligent Internet of Things technology provided by the embodiments of the present application, the specific implementation process of the lock detection method based on the intelligent Internet of Things technology provided by the embodiments of the present application is exemplarily introduced below.
[0049] Figure 1 A schematic flowchart of the lock detection method based on the intelligent Internet of Things technology provided by the embodiments of the present application is shown. The lock detection method based on the intelligent Internet of Things technology includes:
[0050] S100, the first pattern of each code in the lock assembly process is obtained in sequence and input to a pre-trained code distinguishing model to obtain the code type number of all codes in the lock. The first pattern of the code refers to the pin pattern of the pin tumbler lock or the blade pattern of the leaf tumbler lock. The code distinguishing model is used to distinguish different lock codes. The input is the first pattern of the code. The output is the code type number of the code.
[0051] It can be understood that the common lock has a pin tumbler lock and a leaf lock, the pin tumbler lock adopts a pin with three segment structures, different pins have different lengths of the three segment structures, thereby forming differences, and the leaf lock adopts a circular leaf with a concave point and a convex point, different leaves have different concave points, circle centers and central angles of the convex points, thereby forming differences, the pin of the pin tumbler lock or the leaf of the leaf lock is collectively referred to as a codon in the present application. To encode the codons of different types of locks, a codon type number is obtained, one codon type number corresponds to one codon, the first digit of the codon type number can be a number for distinguishing the type of the lock, for example, A represents a pin tumbler lock and B represents a leaf lock, and the last several digits of the codon type number can be numbers for describing the differences of the codon, for example, for the pin tumbler lock, the pin includes three segment structures, the second digit number can be the length of the first segment structure of the pin, the third digit number can be the length of the second segment structure of the pin, and the fourth digit number can be the length of the third segment structure of the pin.
[0052] Exemplarily, the first pattern of the codon in the assembly process of the lock can be collected by a camera plus a laser sensor, in the assembly process of the lock, the lock codon is first stopped in the shooting area and maintained for 0.1-0.5s, and then the lock codon is assembled to the lock, when the laser sensor detects the lock codon in the shooting area (the laser sensor is used to detect whether there is an object in one direction, and can be used to detect whether the lock codon is located in the shooting area), the camera is controlled to shoot the first pattern of the codon, and then the first pattern is input into a pre-trained codon distinguishing model, the codon distinguishing model can output the codon type number of the codon in the first pattern, and the codon type number is a unique sequence of numbers.
[0053] In this way, the lock codon of the entity can be converted into a digital codon type number.
[0054] Optionally, the collection device further includes a storage and a processor, the storage is in communication connection with the laser sensor and the camera, is used to store the image frames shot by the camera, and the laser sensor determines whether the storage stores; the processor is in communication connection with the storage, and is used to process the image frames in the storage.
[0055] It can be understood that the camera focuses on the shooting area, and the laser sensor is used to detect whether there is an object in the shooting area, and the difference between the first pattern collection method in S100 step is that the camera is always in the recording mode, and when the laser sensor detects the object, the multiple image frames collected by the camera are all stored in the storage, until the laser sensor cannot detect the object, the storage stops storing, and then the processor retains the middle frame of the multiple stored image frames as the first pattern, and deletes the remaining image frames. Other frames in the multiple image frames can also be retained as the first pattern, the key is which frame can completely and clearly present the lock codon.
[0056] In this way, the lock password can be stopped in the shooting area and maintained every time without waiting for the start time of the camera (the start time includes sensor delay, communication delay, camera start delay, etc.), which can save multiple start times for each lock and increase assembly efficiency.
[0057] In one possible implementation, in S100, the training process of the password recognition model includes:
[0058] S110, shooting a lock password image.
[0059] It can be understood that multiple different lock password images are shot as training data sets, and the training data sets include lock password images of all types of passwords, and the number of lock password images of each type of password is the same.
[0060] Optionally, the data in the training data set is preprocessed, and the password in the lock password image is manually marked first. The marking method can be to add an edge line on the password, and the edge line is the password. Then, a second marking is performed on the marked password, which will mark the first feature quantity. For example, the first feature quantity of the pin tumbler lock is the length of the three-segment structure of the pin (the three-segment structure is the spring, the first cylinder, and the second cylinder).
[0061] In this way, an effective training data set can be obtained.
[0062] S120, determining the password type number corresponding to the password in the lock password image.
[0063] It can be understood that the password type number corresponding to the password in each lock password image can be determined manually or determined by AI first and then corrected manually, and each corresponding password type number is saved to participate in the subsequent password training process in a supervised learning manner.
[0064] In this way, the training is performed in a supervised learning manner, and the accuracy of the trained model is improved.
[0065] S130, training the initial model with the lock password image as the input and the corresponding password type number as the expected output, and performing model detection after the training is completed. If the detection is successful, the password recognition model is obtained.
[0066] It can be understood that the lock code image is taken as the input, and the corresponding code type number is taken as the expected output to supervise the training of the initial model, which can be various classification algorithm models such as decision tree model, support vector machine and the like. After multiple training, the accuracy of the initial model is detected, and the code discrimination model is obtained when the success rate reaches the standard.
[0067] The lock code image and the corresponding code type number are taken as the learning object, and after the training process, the machine learning model can establish the mapping relationship between the lock code image and the code type number, so that the lock code image can be classified according to the mapping relationship when facing a new lock code image.
[0068] In this way, the code discrimination model for discriminating the type of the code in the picture can be obtained.
[0069] S200, obtaining the assembly sequence of the codes in the lock.
[0070] It can be understood that the assembly sequence of the code refers to the sorting of the code in the direction from inside to outside or from outside to inside of the lock after assembly. In the assembly process of the lock, the assembly sequence of the code is not necessarily equal to the assembly sequence of the code. For example, the first step of assembling the pin tumbler lock has 5 spaces, and the pin assembled is not necessarily placed in the first space, but can be placed in the other four spaces. The misplacement method is very common in the assembly process of the pin tumbler lock. Therefore, the assembly sequence of the code is not necessarily equal to the assembly sequence of the code, so the assembly sequence of the code is obtained first. The sequence An can be read from the register of the lock assembly device, n is the number of codes in the lock, the sequence An=(A1, A2,... An), A1 is equal to the sequence position of the code assembled in the first assembly in the lock, and the sequence An is the assembly sequence of the code.
[0071] In this way, the meaning and purpose of the assembly sequence are clear.
[0072] S300, obtaining a first sequence according to the assembly sequence of all the codes in the lock and the code type number. The term of the first sequence is the code type number, and the code type number is arranged in the first sequence in the order of the sorting of the code in the lock.
[0073] It can be understood that the n code type numbers form a sequence Bn, n is the number of codes in the lock, the sequence Bn=(B1, B2,... Bn), B1 is equal to the code type number of the code assembled in the first assembly, and the sequence An and Bn are overlapped to obtain a two-dimensional array C[2][n]= , and the second row is always corresponding to the first row, and C2[2][n]= , Xn=(X1, X2,...Xn) is the first sequence, and X1 is equal to the codon type number of the first position of the lock.
[0074] In this way, the first sequence Xn is obtained through a series of transformations, and the first sequence Xn is equivalent to the digital lock.
[0075] S400, obtaining the first drawing of the key, and obtaining the tooth type number of each tooth of the key according to the first drawing. The tooth type number is one-to-one corresponding to the codon type number.
[0076] It can be understood that the first drawing of the key corresponding to the above-mentioned lock is obtained from the key manufacturing equipment, and then the first drawing is split into individual key tooth drawings, and one key tooth can open the corresponding lock codon. The tooth type number of a key tooth is uniquely corresponding to the codon type number of the corresponding lock codon, and the tooth type number is one-to-one corresponding to the codon type number, or can be directly equal, for example, the codon type number is A1234, and the corresponding tooth type number is YA1234.
[0077] In this way, each tooth of the key is corresponding to the lock codon.
[0078] S500, obtaining the second sequence according to the tooth type number of all teeth of the key.
[0079] It can be understood that the tooth type number is arranged in the order of the teeth on the key to obtain the second sequence, but it should be noted that the arrangement direction of the key teeth in the second sequence should be consistent with the arrangement direction of the codons in the first sequence, that is, the second sequence of a key should be completely corresponding to the first sequence of the lock which can be opened by the key.
[0080] In this way, the key drawing is digitized into the second sequence, which can more conveniently analyze the corresponding relationship between the key and the lock.
[0081] S600, comparing the first sequence with the second sequence, when the first sequence and the second sequence do not completely correspond, sending an error signal and the second sequence to the key manufacturing equipment, saving the bit number of the items in the first sequence and the second sequence which do not correspond, and generating prompt information according to the bit number of the items which do not correspond; the key manufacturing equipment receives the error signal and the second sequence, and changes the first drawing to make the first sequence completely correspond to the second sequence; the prompt information is used to prompt the error point in the lock assembly process to the operator.
[0082] It can be understood that the first item of the first sequence is compared with the first item of the second sequence to determine whether they are in a corresponding relationship. If they are in a corresponding relationship, subsequent items are sequentially determined. When all items in the first sequence and the second sequence are in a corresponding relationship, the first sequence and the second sequence are completely corresponding, which means that the key produced according to the first drawing can open the lock to which the first sequence belongs. When the first sequence and the second sequence are not completely corresponding, it means that the key produced according to the first drawing cannot open the lock, so an error signal and the second sequence are output to the key manufacturing device. After receiving the error signal and the second sequence, the key manufacturing device changes the first drawing so that the first sequence and the second sequence are completely corresponding, that is, the first drawing of the key is corrected, so that the corrected key can open the incorrectly assembled lock. Meanwhile, the number of bits of the non-corresponding items in the first sequence and the second sequence is saved, and prompt information is generated according to the number of bits of the non-corresponding items. The prompt information is used to prompt the operator of the error step in the lock assembly process. For example, the third item in the first sequence and the second sequence is not corresponding, and the prompt information is to prompt the operator that the third codon in the lock is incorrectly assembled.
[0083] In this way, the drawing of the key is corrected according to the incorrectly assembled step, so that the generated corrected key can open the incorrectly assembled lock, and the operator can know the error point in the lock assembly process, which can solve the problem that the prior art cannot know whether the lock is incorrectly assembled before the key is manufactured, resulting in a mismatch between the key and the lock.
[0084] Optionally, the lock is a non-composite mechanical lock, which has only one row of lock codons.
[0085] It can be understood that the above steps do not consider the multiple rows of lock codons in the composite mechanical lock, so the lock in the above steps is a non-composite mechanical lock, which has only one row of lock codons.
[0086] The lock also includes a composite mechanical lock, which refers to a lock having two or more independent codons, such as a double-row pin lock, a pin-leaf composite lock, etc. The composite lock has multiple rows of codons, and the corresponding key has multiple rows of key teeth. Based on this, the embodiments of the present application also provide the following solutions.
[0087] Please refer to Figure 2 , Figure 2 The method provided by the embodiments of the present application is shown in the schematic flowchart of the lock detection method based on intelligent Internet of Things technology. The method is applied to a composite lock manufacturing system in which the lock is manufactured first and then the key is manufactured. The method includes the following steps.
[0088] S710, obtaining n codon sequences according to n rows of codons of the composite lock. The composite lock refers to a lock having two or more independent codons, and n is the number of rows of independent codons.
[0089] It can be understood that steps S100, S200 and S300 are steps of obtaining the digitalized codons from the entity codons, and n sets of codon sequences of the composite lock can be obtained by sequentially and independently operating on the n rows of codons through the steps. Details are not described herein. N is the number of rows of independent codons of the composite lock.
[0090] In this way, the n rows of codons of the composite lock are digitalized into n sets of codon sequences.
[0091] In a possible implementation, in S710, n sets of codon sequences are obtained according to the n rows of codons of the composite lock, including:
[0092] S711, sequentially obtaining the first graph of each codon in the n rows of codons in the assembly process of the composite lock, and inputting the first graph into a codon distinguishing model to obtain the codon type number of the n rows of codons in the composite lock; wherein the first graph of the codon refers to the pin graph of the pin tumbler lock or the blade graph of the blade tumbler lock, and the codon distinguishing model is a trained machine learning model.
[0093] It can be understood that, similar to the S100 step, the difference is that the n rows of codons of the composite lock are independently processed separately to obtain the codon type number of the n rows of codons.
[0094] In this way, the advantages are the same as those of the S100 step.
[0095] S712, obtaining the assembly sequence of the n rows of codons in the composite lock.
[0096] It can be understood that, similar to the S200 step, the difference is that the independent assembly sequence of the n rows of codons of the composite lock is obtained.
[0097] In this way, the advantages are the same as those of the S200 step.
[0098] S713, obtaining n sets of codon sequences according to the assembly sequence and the codon type number of the n rows of codons in the composite lock; wherein the item of the n sets of codon sequences is the codon type number, and the codon type number is arranged into a codon sequence in order of the order of the codon in the composite lock.
[0099] It can be understood that, similar to the S300 step, the difference is that the assembly sequence and the codon type number of the n rows of codons of the composite lock are independently processed separately to obtain n sets of codon sequences.
[0100] In this way, the advantages are the same as those of the S300 step.
[0101] S720, obtaining n sets of key tooth sequences according to the n rows of key teeth of the key drawing of the composite key.
[0102] It can be understood that steps S400 and S500 are steps of obtaining digitized key teeth from the key drawing, and through these steps, n rows of key teeth are operated independently in sequence, and n key tooth sequences of the composite key can be obtained, and the specific steps are not described here.
[0103] In this way, n rows of key teeth of the composite key are digitized into n key tooth sequences.
[0104] S721, obtain the first drawing of the composite key, and obtain the tooth type number of n rows of key teeth of the key according to the first drawing; wherein the tooth type number is one-to-one corresponding to the codon type number.
[0105] It can be understood that, similar to step S400, the difference is that n rows of key teeth of the composite lock are processed independently, and the tooth type number of n rows of key teeth is obtained.
[0106] In this way, the advantages are the same as step S400.
[0107] S722, obtaining n key tooth sequences according to the tooth type number of n rows of key teeth of the key.
[0108] It can be understood that, similar to step S500, the difference is that the tooth type number of n rows of key teeth of the composite lock is processed independently, and n key tooth sequences are obtained.
[0109] In this way, the advantages are the same as step S500.
[0110] S730, the first codon sequence in the n codon sequences is compared with the n key tooth sequences in sequence, and when there is a complete corresponding sequence, the two completely corresponding sequences are removed from the 2n sequences; then the second codon sequence in the n codon sequences is sequentially operated in the same way, until the same operation is performed on the n codon sequences. Wherein, 2n sequences refer to n codon sequences and n key tooth sequences.
[0111] It can be understood that the difference between the composite lock and the ordinary lock is only that the composite lock has multiple independent codons, and there is no sequence, position or causal relationship between the n rows of codons, so the n rows of codons are equivalent, which means that it is impossible to give a sequence to the n rows of codons by a certain rule, and without a sequence, it is also impossible to find the corresponding row of key teeth from the n rows of key teeth by the method of corresponding in sequence, so the biggest problem of this method applied to the composite lock is: how to find the corresponding row of key teeth for each of the n rows of codons (of course, the n rows of key teeth have left and right sequences on the key).
[0112] The first codon sequence H1 in the n codon sequences is compared with G1, G2...Gn in turn, when H1 corresponds to Gi completely, it means that the codon row to which H1 belongs can find a complete corresponding row of key teeth on the key drawing paper, and because the probability of two rows of codon sequences on the composite lock being the same is almost 0, it means that this case represents that the row of lock codons is not assembled incorrectly, then H1 and Gi are removed from the 2n sequences, the remaining codon sequences include H2, H3...Hn, and the same operation is performed with H2, and so on, until the same operation is performed on the n codon sequences, then the remaining sequences in the 2n sequences are the sequences that cannot be completely corresponded, and the number of remaining sequences must be even, and the codon sequence and the key tooth sequence each occupy half (if there is no remaining sequence, it means that all the codons of the composite lock are assembled correctly).
[0113] In this way, considering that it is impossible for two of the n codon sequences to be completely the same in actual production (this situation will be artificially prohibited), one H1 is directly ignored, which can correspond to multiple G sequences completely, and thus the above problem of how to find a row of key teeth corresponding to each of the n rows of codons is solved by traversal.
[0114] S740, if there are remaining codon sequences that cannot be completely aligned, there are also the same number of remaining key tooth sequences corresponding to them, the remaining codon sequences and the remaining key tooth sequences are paired according to the principle of maximum sequence alignment, and an error signal, a pairing relationship, a codon sequence that cannot be completely aligned, and a remaining key tooth sequence are sent to a key manufacturing device; after the key manufacturing device receives the error signal, the pairing relationship, the codon sequence that cannot be completely aligned, and the remaining key tooth sequence, the key drawing paper of the composite key is changed so that the paired remaining codon sequence and the remaining key tooth sequence correspond completely.
[0115] It can be understood that there are half of the remaining codon sequences and half of the remaining key tooth sequences in the remaining sequence. Then, the remaining codon sequences and the remaining key tooth sequences are paired according to the principle of maximum sequence alignment. The principle of maximum sequence alignment means that the sequence alignment of a remaining codon sequence and m remaining key tooth sequences is J1, J2...Jm (the sequence alignment refers to the number of corresponding items in two sequences), where Ji is the maximum value of J1, J2...Jm, and then the remaining codon sequence is paired with the mth remaining key tooth sequence. Then, the error signal, the pairing relationship, the codon sequence that cannot be completely aligned, and the remaining key tooth sequence are sent to the key manufacturing device. After the key manufacturing device receives this information, the key drawing of the composite key is corrected, so that the paired remaining codon sequence and the remaining key tooth sequence can completely correspond. Similar to step S600, the corrected key can open the assembled error lock.
[0116] In this way, the method can also play the same role in the composite lock, and solve some special problems in the application of the composite lock.
[0117] S750, save the number of bits of the items that do not correspond in the paired remaining codon sequence and the remaining key tooth sequence, and generate prompt information according to the number of bits of the items that do not correspond. The prompt information is used to prompt the error point in the lock assembly process to the operator.
[0118] It can be understood that although the codon sequence has no sequence, the n rows of key teeth on the key are arranged in left and right rows, which can be arranged in left-to-right order or right-to-left order. After determining the sequence of the n rows of key teeth, the arrangement number of the key tooth row to which each remaining key tooth sequence belongs is found, which is used to locate the key tooth row to which the remaining key tooth sequence belongs on the key. Then, according to the number of bits of the items that do not correspond in the paired remaining codon sequence and the remaining key tooth sequence, the prompt information is generated to prompt the operator of the error point in the composite lock assembly. The error point can be (arrangement number, number of bits of items that do not correspond).
[0119] In this way, the operator can be prompted about the error point in the assembly of the composite lock.
[0120] Optionally, before sequentially obtaining the first pattern of each codon in the lock assembly process, the method further comprises:
[0121] S810, obtaining the first drawing of the key to be manufactured.
[0122] It can be understood that the method is executed before the assembly of the lockset begins, and the steps are different when the method is applied to the non-composite lockset and the composite lockset, so it is necessary to determine whether the lockset is a non-composite lockset or a composite lockset before the method is executed, and different steps are executed accordingly.
[0123] The type of the lockset can be determined from the first drawing of the key.
[0124] In this way, considering that the steps are different when the method is applied to the non-composite lockset and the composite lockset, the type of the lockset is determined from the first drawing of the key.
[0125] S820, determining the number of key tooth rows according to the first drawing.
[0126] It can be understood that the number of key tooth rows can be counted on the first drawing, and because the key is axisymmetric about the center axis, the number of key tooth rows is obtained by dividing by 2.
[0127] In this way, the number of key tooth rows of the key is determined.
[0128] S830, when the number of key tooth rows is greater than 1, the lockset is a composite lockset, otherwise the lockset is a non-composite lockset.
[0129] It can be understood that the number of key tooth rows greater than 1 means that the number of codons in the lockset is also greater than 1, and the lockset is a composite lockset, and the number of key tooth rows equal to 1 means that the number of codons in the lockset is also equal to 1, and the lockset is a non-composite lockset.
[0130] In this way, the type of the lockset is determined before the method is executed, so that the method steps in different scenarios are used.
[0131] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0132] Corresponding to the lockset detection method based on intelligent Internet of Things technology described in the above embodiment, the present embodiment also provides a lockset detection system based on intelligent Internet of Things technology. Each unit of the system can realize each step of the lockset detection method based on intelligent Internet of Things technology. Figure 3 The structure block diagram of the lockset detection system based on intelligent Internet of Things technology provided by the present embodiment is shown, and only the parts related to the present embodiment are shown for the convenience of description.
[0133] Referring to Figure 3 The system comprises:
[0134] The codon type distinguishing unit is configured to sequentially obtain a first pattern of each codon in the lock assembly process and input the first pattern into a codon distinguishing model to obtain codon type numbers of all codons in the lock; wherein the first pattern of the codon refers to a pin pattern of the pin tumbler lock or a blade pattern of the blade tumbler lock, and the codon distinguishing model is a trained machine learning model.
[0135] The codon order obtaining unit is configured to obtain an assembly order of the codons in the lock.
[0136] The first sequence generating unit is configured to obtain a first sequence according to the assembly order of all the codons in the lock and the codon type numbers; wherein an item of the first sequence is a codon type number, and the codon type numbers are arranged in the first sequence according to the order of the codons in the lock.
[0137] The key tooth type distinguishing unit is configured to obtain a first drawing of the key and obtain tooth type numbers of all the teeth of the key according to the first drawing; wherein the tooth type numbers correspond to the codon type numbers one by one.
[0138] The second sequence generating unit is configured to obtain a second sequence according to the tooth type numbers of all the teeth of the key.
[0139] The post-processing unit is configured to compare the first sequence with the second sequence, send an error signal and the second sequence to a key manufacturing device when the first sequence does not completely correspond to the second sequence, save bit numbers of the items that do not correspond in the first sequence and the second sequence, and generate prompt information according to the bit numbers of the items that do not correspond; the key manufacturing device receives the error signal and the second sequence, and changes the first drawing so that the first sequence completely corresponds to the second sequence; and the prompt information is used to prompt an operator of an error point in the lock assembly process.
[0140] It should be noted that the information interaction and execution process between the above-mentioned units, since the same concept as the method embodiment of the present application, its specific functions and the resulting technical effects, specific can refer to the method embodiment part, this will not be repeated here.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units is taken as an example, and in actual application, the above functions can be completed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to complete all or part of the above described functions. Each functional unit in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific name of each functional unit is only for easy distinction, and does not limit the protection scope of the present application. The specific working process of the unit in the above system can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
[0142] The embodiment of the present application also provides a lock detection device based on intelligent Internet of Things technology, comprising a collection device, a signal sending device and a control device, Figure 4 For an embodiment of the present application, a structural schematic diagram of a lock detection device based on intelligent Internet of Things technology is provided. As Figure 4 shown, the control device 4 of the lock detection device based on intelligent Internet of Things technology of this embodiment comprises at least one processor 40 (only one is shown in the figure), at least one memory 41 (only one is shown in the figure) and a computer program 42 stored in the at least one memory 41 and executable on the at least one processor 40. When the processor 40 executes the computer program 42, the control device 4 of the lock detection device based on intelligent Internet of Things technology realizes the steps in any of the above-mentioned various lock detection method embodiments based on intelligent Internet of Things technology, or the control device 4 of the lock detection device based on intelligent Internet of Things technology realizes the functions of each unit in the above-mentioned device embodiments. Figure 4 Figure 4 Exemplarily, the computer program 42 can be divided into one or more units, which are stored in the memory 41 and executed by the processor 40 to complete the present application. The one or more units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program 42 in the control device 4 of the lock detection device based on intelligent Internet of Things technology.
[0143] Exemplarily, the computer program 42 can be divided into one or more units, which are stored in the memory 41 and executed by the processor 40 to complete the present application. The one or more units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program 42 in the control device 4 of the lock detection device based on intelligent Internet of Things technology.
[0144] The control device 4 of the lock detection equipment based on intelligent Internet of Things technology can be a single-chip microcomputer, a microprocessor, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a desktop computer, a smart large screen, a smart television, a handheld device with wireless communication function. The control device 4 of the lock detection equipment based on intelligent Internet of Things technology can include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art can understand that Figure 4 The control device 4 of the lock detection equipment based on intelligent Internet of Things technology is only an example and does not constitute a limitation on the control device 4 of the lock detection equipment based on intelligent Internet of Things technology, and can include more or fewer components than those shown, or combine certain components, or different components, for example, can also include an input / output device, a network access device, a bus, etc.
[0145] The processor 40 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or can also be any conventional processor.
[0146] The memory 41 may, in some embodiments, be an internal storage unit of the control device 4 of the smart Internet of Things based lock detection apparatus, such as a hard disk or a memory of the control device 4 of the smart Internet of Things based lock detection apparatus. The memory 41 may, in other embodiments, also be an external storage device of the control device 4 of the smart Internet of Things based lock detection apparatus, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, and the like equipped on the control device 4 of the smart Internet of Things based lock detection apparatus. Further, the memory 41 may also include both the internal storage unit and the external storage device of the control device 4 of the smart Internet of Things based lock detection apparatus. The memory 41 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of the computer program, and the like. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0147] The embodiments of the present application further provide a computer readable storage medium storing a computer program, and the computer program is executed by a processor to implement the steps in any of the method embodiments described above.
[0148] The embodiments of the present application provide a computer program product, and when the computer program product is run on the smart Internet of Things based lock detection apparatus, the smart Internet of Things based lock detection apparatus implements the steps in any of the method embodiments described above.
[0149] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above-mentioned embodiment methods through a computer program to instruct relevant hardware to complete, and the computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the lock detection device based on intelligent Internet-of-Things technology, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal and a software distribution medium. For example, a U disk, a mobile hard disk, a magnetic disk or an optical disk.
[0150] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0151] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0152] In the embodiments provided in the present application, it should be understood that the disclosed lock detection method based on intelligent Internet-of-Things technology, lock detection system based on intelligent Internet-of-Things technology and lock detection device based on intelligent Internet-of-Things technology can be implemented in other ways. For example, the above-described lock detection method based on intelligent Internet-of-Things technology, lock detection system based on intelligent Internet-of-Things technology and lock detection device based on intelligent Internet-of-Things technology embodiments are merely illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, device or unit indirect coupling or communication connection, which can be electrical, mechanical or other forms.
[0153] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected to achieve the purpose of the embodiment scheme according to actual needs.
[0154] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A lock detection method based on smart IoT technology, characterized in that, A lock manufacturing system that manufactures the lock first and then the key, the method comprising: The first graphic of each codon during the lock assembly process is sequentially obtained and input into the codon resolution model to obtain the codon type number of all codons in the lock; wherein, the first graphic of the codon refers to the pin graphic of the pin tumbler lock or the blade graphic of the leaf lock, and the codon resolution model is a trained machine learning model. Determine the assembly order of the codons in the lock; A first sequence is obtained based on the assembly order of all codons in the lock and the codon type number; wherein, the items of the first sequence are the codon type numbers, and the codon type numbers are arranged in the order of the codons in the lock. Obtain the first blueprint of the key, and obtain the tooth type number of each tooth of the key based on the first blueprint; wherein, the tooth type number corresponds one-to-one with the code subtype number; The second sequence is obtained based on the tooth type number of all the teeth of the key; The first sequence is compared with the second sequence. When the first sequence and the second sequence do not correspond completely, an error signal and the second sequence are sent to the key manufacturing equipment. The number of digits of the non-corresponding items in the first sequence and the second sequence are saved, and a prompt message is generated based on the number of digits of the non-corresponding items. After receiving the error signal and the second sequence, the key manufacturing equipment modifies the first drawing so that the first sequence and the second sequence correspond completely. The prompt message is used to indicate the error points in the lock assembly process to the operator.
2. The lock detection method based on smart IoT technology as described in claim 1, characterized in that, The training process of the codon-discriminative model includes: Capture images of the lock's code words; Determine the codon type number corresponding to the codon in the lock codon image; Using the lock codon image as input and the corresponding codon type number as the expected output, the initial model is trained. After training, the model is detected. If the detection is successful, the codon resolution model is obtained.
3. The lock detection method based on smart IoT technology as described in claim 1, characterized in that, The lock is a non-composite mechanical lock with only one row of lock combination tokens.
4. The lock detection method based on smart IoT technology as described in claim 1, characterized in that, Before sequentially acquiring the first pattern of each codon during the lock assembly process, the method further includes: Obtain the first drawing of the key to be manufactured; Determine the number of key teeth rows based on the first drawing; If the number of key teeth is greater than 1, the lock is a composite lock; otherwise, the lock is a non-composite lock.
5. A lock detection method based on smart IoT technology, characterized in that, A composite lock manufacturing system applied to which the lock is manufactured first and the key is then manufactured, the method comprising: Based on the n rows of codons of the composite lock, n codon sequences are obtained; where the composite lock refers to a lock with two or more rows of independent codons, and n is the number of rows of independent codons; Based on the key drawing of the composite key, n key teeth sequence can be obtained from n rows of key teeth; The first codon sequence from the n codon sequences is compared sequentially with the n key tooth sequences. When a sequence completely corresponds, the two completely corresponding sequences are removed from the 2n sequences. The same operation is then performed on the second codon sequence from the n codon sequences, and so on, until the same operation has been performed on all n codon sequences. Here, the 2n sequences refer to the n codon sequences and the n key tooth sequences. If there are legacy codon sequences that cannot be perfectly aligned, there are also the same number of legacy key tooth sequences. The legacy codon sequences and legacy key tooth sequences are paired according to the principle of maximizing the alignment amount. An error signal, the pairing relationship, and the sequence of codon sequences and legacy key tooth sequences that cannot be perfectly aligned are sent to the key manufacturing equipment. Upon receiving the error signal, the pairing relationship, and the sequence of codon sequences and legacy key tooth sequences that cannot be perfectly aligned, the key manufacturing equipment modifies the key design of the composite key to ensure that the paired legacy codon sequences and legacy key tooth sequences correspond perfectly. The system saves the number of digits of non-corresponding items in the paired legacy codon sequence and legacy key tooth sequence, and generates prompt information based on the number of digits of non-corresponding items; wherein, the prompt information is used to indicate the error points in the lock assembly process to the operator.
6. The lock detection method based on smart IoT technology as described in claim 5, characterized in that, The process of obtaining n codon sequences based on n rows of codons of the composite lock includes: The first graphic of each codon in the n rows of codons during the assembly of the composite lock is obtained sequentially and input into the codon resolution model to obtain the codon type number of the n rows of codons in the composite lock; wherein, the first graphic of the codon refers to the pin tumbler graphic of the pin tumbler lock or the leaf graphic of the leaf lock, and the codon resolution model is a trained machine learning model. Obtain the assembly order of n rows of codons in a composite lock; Based on the assembly order of the n rows of codons in the composite lock and the codon type number, n codon sequences are obtained; wherein, the items of the n codon sequences are the codon type numbers, and the codon type numbers are arranged in the order of the codons in the composite lock to form the codon sequences.
7. The lock detection method based on smart IoT technology as described in claim 6, characterized in that, The process of obtaining n key tooth sequences based on n rows of key teeth from the key blueprint of the composite key includes: Obtain the first drawing of the composite key, and obtain the tooth type number of the n rows of key teeth according to the first drawing; wherein, the tooth type number corresponds one-to-one with the code subtype number; Based on the tooth type number of the n rows of key teeth, n key tooth sequences are obtained.
8. A lock detection system based on smart IoT technology, characterized in that, A lock manufacturing system applied to a system where locks are manufactured before keys are manufactured, the lock testing system comprising: The codon type discrimination unit is used to sequentially acquire the first image of each codon during the lock assembly process and input it into the codon discrimination model to obtain the codon type number of all codons in the lock; wherein, the first image of the codon refers to the pin tumbler image of the pin tumbler lock or the leaf image of the leaf lock, and the codon discrimination model is a trained machine learning model. The codon sequence acquisition unit is used to acquire the assembly order of the codons in the lock; The first sequence generation unit is used to generate a first sequence according to the assembly order of all codons in the lock and the codon type number; wherein, the items of the first sequence are the codon type numbers, and the codon type numbers are arranged in the order of the codons in the lock to form the first sequence; A key tooth type discrimination unit is used to acquire a first key drawing, split the first key drawing into multiple key tooth drawings, and then input them sequentially into a pre-trained key tooth discrimination model, outputting the tooth type number of each tooth of the key; wherein, the key tooth discrimination model is used to distinguish different key teeth, the input is a single key tooth drawing, and the output is the tooth type number of the key tooth; the tooth type number corresponds one-to-one with the codon type number; The second sequence generation unit is used to generate a second sequence based on the tooth type number of all the teeth of the key; The post-processing unit is used to compare the first sequence with the second sequence. When the first sequence and the second sequence do not correspond completely, an error signal and the second sequence are sent to the key manufacturing equipment. The unit also saves the number of digits of the non-corresponding items in the first and second sequences and generates a prompt message based on the number of digits of the non-corresponding items. After receiving the error signal and the second sequence, the key manufacturing equipment modifies the first drawing to make the first sequence and the second sequence correspond completely. The prompt message is used to indicate the error points in the lock assembly process to the operator.
9. A lock detection device based on smart IoT technology, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Pin tumbler lock key and automatic detection method of pin tumbler code
CN103470102A
Numerical control system of bilateral internal tooth blade key and processing method of key
CN103878421A