CN103470102A - Pin tumbler lock key and automatic detection method of pin tumbler code - Google Patents

Pin tumbler lock key and automatic detection method of pin tumbler code Download PDF

Info

Publication number
CN103470102A
CN103470102A CN2013104444878A CN201310444487A CN103470102A CN 103470102 A CN103470102 A CN 103470102A CN 2013104444878 A CN2013104444878 A CN 2013104444878A CN 201310444487 A CN201310444487 A CN 201310444487A CN 103470102 A CN103470102 A CN 103470102A
Authority
CN
China
Prior art keywords
key
sequence number
pellet
tooth depth
computer
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.)
Granted
Application number
CN2013104444878A
Other languages
Chinese (zh)
Other versions
CN103470102B (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201310444487.8A priority Critical patent/CN103470102B/en
Publication of CN103470102A publication Critical patent/CN103470102A/en
Application granted granted Critical
Publication of CN103470102B publication Critical patent/CN103470102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a pin tumbler lock key and an automatic detection method of a pin tumbler code. The method comprises the following steps: numbering all lower pin tumblers of different height in a batch of pin tumbler locks to be detected by 1 to n from largest height to smallest height; finding the tooth height of a key which corresponds to the lower pin tumbler of each number, and numbering from 1 to n; inputting the numeric value of the tooth height of each key and a corresponding number into a computer for serving as a matching library; acquiring key images via machine vision, measuring the height value of the tooth height part of each key, matching with the matching library respectively, acquiring the corresponding number of the tooth height part of each key, and sequentially arranging these numbers from the top to the tail of the key into key tooth codes; and taking pin tumblers of corresponding numbers by taking the key tooth codes as corresponding pin tumbler codes of the pin tumbler lock key, and sequentially arranging pin tumblers into the lock cylinder of a pin tumbler lock according to a sequence formed by the pin tumbler codes. The method is completed by means of a machine vision technology, has high accuracy and high detection speed, and is suitable for industrial automatic mass production.

Description

The automatic testing method of marble lock key and pellet coding
Technical field
The present invention relates to mechanical vision inspection technology, especially utilize machine vision automatically to detect the key tooth depth of cylinder lock, thereby obtain the method for pellet installation sequence pellet code in key bit shape code and corresponding lock core.
Background technology
Cylinder lock also claims cylinder lock with balls, pearl lock, snap lock or pin tumbler locks, is a kind of modal lock structure, and it inserts lock core with key and rotarily drives mechanism and realize switch motion.Several holes that radially distributing on the cylinder-type lock wicking surface of cylinder lock, these holes are corresponding with the hole on lock body, and guarantee necessary concentricity.Pack in these holes cylinder-shaped marble of two rows differing heights, go up pellet and lower pellet.Generally, the upper pellet in lock body opening inserts in lock core hole, or, in the lower pellet insertion lock body opening in lock core, lock core can not be rotated arbitrarily.After inserting correct key, because shaped as key bit is corresponding one by one with marble hole, tooth depth is corresponding with lower spring length, each pellet is pushed to identical height, thereby the contact surface of pellet and lower pellet is just in time coincided with the contact surface of lock core and lock body, lock core is just decontroled and can be rotated freely, thereby lead agency is realized switch motion.
The principle of cylinder lock can be referring to Fig. 1 to Fig. 3.As shown in Figure 1, lock body M fixes, and lock core N is movable.In the time of in upper pellet A and lower pellet B are playing groove 1 to n, blocked the rotation of lock core N under the effect of spring C, now this lockset is in locking state.As shown in Figure 2, when using correct key K, play upper pellet A in groove 1 to n and the seam between lower pellet B, just in time and the seam between lock body M and lock core N neat, at this moment lock core N can rotate, this lockset is just in open mode.As shown in Figure 3, if the key K of mistake in using, upper pellet A or lower pellet B likely block lock body M and lock core N.Even if there is once in a while a bullet groove to meet, as long as playing in grooves, other have a pellet not put in place, lock core N still can not rotate.
The head of pellet is taper seat or sphere, and its length is divided into several grades, and differential equating.In certain length category, differential less, the progression divided is more.High-precision pellet lathe can process the pellet of 10 progression.Lockset when assembling, by the key lock core of packing into, the pellet of the corresponding progression of packing on key bit, the afterbody of pellet is just just neat with the lock core circumference.The variation of shaped as key bit is relevant with the progression of pellet, and the progression of pellet is more, and shaped as key bit is also more, can be obtained by following mathematical equation.If: pellet progression is m, and the pellet hole count is n, and each pellet can repeat to choose.In the assembling pellet, following the example of of pellet is as follows: in first marble hole, have the m kind to follow the example of; Because can repeatedly choose, in second marble hole, also there is the m kind to follow the example of; Total number of permutations in like manner in n marble hole, still have the m kind to follow the example of, so should be m 1* m 2* m 3* ... .. * m n=mn.Therefore, because quantity and the progression of pellet are a lot, the variation of shaped as key bit is also a lot, when the pellet of cylinder lock is installed, needs the profile of tooth of fast detecting key, thereby according to the pellet of profile of tooth different progression of corresponding installation in lock core of key.
Detection for shaped as key bit at present mainly relies on manually, and the shortcoming that manual detection exists mainly contains: the Test Field environment is severe, testing staff's non-stop run for a long time; The required precision that shaped as key bit detects is high, the differential and differential 0.5mm that is generally of tooth depth of pellet, and human eye is difficult to accurately judgement, and the chance of makeing mistakes is a lot, can't guarantee to detect quality; Artificial macroscopic speed is limited, and detection efficiency is low.
Summary of the invention
For the problems referred to above, the invention provides a kind of rely on machine vision technique to complete there is high accuracy, high detection speed, be applicable to the marble lock key of the large production of industrial automation and the automatic testing method of pellet coding.
Technical scheme of the present invention is as follows:
The automatic testing method of a kind of marble lock key and pellet coding comprises the following steps:
1) get the lower pellet of all differing heights of to be detected batch of cylinder lock, described each time pellet pressed highly from high to low and arranged, and lower pellet that will be the highest is highly compiled as sequence number 1, the lower pellet highly taken second place is compiled as sequence number 2, by that analogy, until lower pellet that will be highly minimum is compiled as sequence number n, n>=2;
2) find out the key tooth depth corresponding with the lower pellet of each sequence number in step 1, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, each key bit that will meet above-mentioned corresponding relation is numbered respectively, and wherein, the key tooth depth that the lower pellet that is 1 with sequence number is corresponding is compiled as sequence number 1, the key tooth depth that the lower pellet that is 2 with sequence number is corresponding is compiled as sequence number 2, by that analogy, until key tooth depth corresponding to the lower pellet that will be n with sequence number compiled, be sequence number n, n>=2;
3) measure and to obtain or the direct numerical value of the key tooth depth of each sequence number in read step 2 from the order handbook, by the numerical value of above-mentioned each key tooth depth and corresponding sequence number input computer, using the numerical value of this key tooth depth and corresponding sequence number as the coupling storehouse, be stored in computer, for follow-up;
4) each marble lock key to be detected is fixed on the detection line of on-line operation, the shooting camera is fixed on to detection line one side of on-line operation; According to the size of marble lock key to be detected and towards, select the focal length of camera lens, adjust shooting angle, shooting distance, aperture size, the time for exposure of taking camera, in order to obtain photographic images clearly; Computer is obtained triggering and the control signal that camera is synchronizeed with production process, by external trigger and control signal, starts the image that described camera is taken the marble lock key side of on-line operation in real time, and by the image transmitting taken to computer; Computer is processed by image algorithm, obtains the side image of marble lock key;
5) belong to the each several part of key tooth depth in Computer Automatic Recognition marble lock key side image, and the height value of each key tooth depth part is measured, then by the height value of each key tooth depth respectively with step 3 in the coupling storehouse mated, obtain the corresponding sequence number of each key tooth depth part, and these sequence numbers are lined up to one group of data according to the order from the key top to afterbody, by this group data markers, be that the key bit shape code is stored in computer; By that analogy, be each its key bit shape code of detected object marble lock key mark;
6) the key bit shape code in read step 5 from computer, using this key bit shape code as the pellet code corresponding with this marble lock key, get the pellet of corresponding sequence number, and the sequence provided according to the pellet code is fit into cylinder of spring lock by the pellet order.
Useful technique effect of the present invention is:
The present invention adopts machine vision automatically to detect the key bit shape code, and further obtains corresponding pellet code, replaces manual detection, reduces hand labor intensity.The present invention is 10 times of artificial left and right to the detection speed of key and pellet coding, has improved production efficiency.Manual detection, due to environment and physiological reason, can't round-the-clockly uninterruptedly be carried out the product detection, adopts the present invention to make it become possibility, and the production time can extend to greatest extent, has improved the utilization rate of equipment.The qualification rate of manual detection is difficult to assurance, and the lockset defect rate is high, has caused the significant wastage of the resources of production and cost; Accuracy of detection of the present invention is high, can greatly improve the lockset qualification rate.
The accompanying drawing explanation
Fig. 1 is the schematic diagram of cylinder lock in locking state.
Fig. 2 is the schematic diagram of cylinder lock while using correct key.
Schematic diagram when Fig. 3 is cylinder lock mistake in using key.
Fig. 4 is the numbering schematic diagram of pellet sequence number and the high sequence number of key bit.
Fig. 5 is the key bit shape code signal of obtaining in certain embodiment.
The specific embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further.
As shown in Figure 4, at first get the lower pellet of all differing heights of to be detected batch of cylinder lock, described each time pellet pressed highly from high to low and arranged, and the highest highly lower pellet is compiled as sequence number 1, the lower pellet volume of highly taking second place is sequence number 2, by that analogy; The cylinder lock of this in embodiment illustrated in fig. 4 batch has 5 kinds of lower pellets that difference is differential, and therefore highly minimum lower pellet is compiled as sequence number 5; The corresponding sequence number of each time pellet is respectively 1,2,3,4,5.
Then, find out the key tooth depth corresponding with the lower pellet 1,2,3,4,5 of above-mentioned each sequence number, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, and each key bit that will meet above-mentioned corresponding relation is numbered respectively, wherein, the key tooth depth that the lower pellet that is 1 with sequence number is corresponding is compiled as sequence number 1, the key tooth depth that the lower pellet that is 2 with sequence number is corresponding is compiled as sequence number 2, by that analogy, until key tooth depth corresponding to the lower pellet that will be 5 with sequence number compiled as sequence number 5; As shown in Figure 4, the corresponding sequence number of each key tooth depth is respectively 1,2,3,4,5.
Next, to measure obtain manner or directly from the order handbook, to read the numerical value of the key tooth depth of above-mentioned each sequence number, the key tooth depth that the key tooth depth that the key tooth depth that the key tooth depth that for example the key tooth depth of sequence number 1 is 2.0mm, sequence number 2 is 2.5mm, sequence number 3 is 3.0mm, sequence number 4 is 3.5mm, sequence number 5 is 4.0mm.By the numerical value of above-mentioned each key tooth depth and corresponding sequence number input computer, using the numerical value of this key tooth depth and corresponding sequence number as the coupling storehouse, be stored in computer, for follow-up.
Next start to detect, each marble lock key to be detected is fixed on the detection line of on-line operation, the shooting camera is fixed on to detection line one side of on-line operation; According to the size of marble lock key to be detected and towards, select the focal length of camera lens, adjust shooting angle, shooting distance, aperture size, the time for exposure of taking camera, in order to obtain photographic images clearly; Computer is obtained triggering and the control signal that camera is synchronizeed with production process, by external trigger and control signal, starts the image that described camera is taken the marble lock key side of on-line operation in real time, and by the image transmitting taken to computer; Computer is processed by image algorithm, obtains the side image of marble lock key.
The each several part that belongs to the key tooth depth in Computer Automatic Recognition marble lock key side image, and the height value of each key tooth depth part is measured, then by the height value of each key tooth depth respectively with computer the coupling storehouse mated, obtain the corresponding sequence number of each key tooth depth part, and these sequence numbers are lined up to one group of data according to the order from the key top to afterbody, by this group data markers, be that the key bit shape code is stored in computer; By that analogy, be each its key bit shape code of detected object marble lock key mark.Take Fig. 5 as example, and each key tooth depth that this marble lock key measures from left to right is respectively 3.0mm, 2.0mm, 2.5mm, 4.0mm, 3.5mm, through overmatching, can know, the key bit shape code of this marble lock key is " 31254 ".
Read above-mentioned key bit shape code " 31254 " from computer, using this key bit shape code as the pellet code corresponding with this marble lock key, the pellet code of this cylinder lock is also " 31254 ".Finally get the pellet of corresponding sequence number, the sequence provided according to the pellet code is fit into cylinder of spring lock by pellet according to the order of No. 3, No. 1, No. 2, No. 5, No. 4, completes assembling.
The control system (hardware and software) that the image capture device used in above all embodiment (camera, radiation source, power supply, image pick-up card etc.) and storage device (hard disk, CD, floppy disk etc.), image processing equipment (hardware of image processor and software), image display (hardware and software) are stated each several part all adopts prior art to design and produce or directly adopts relevant commercially available prod.
Above-described is only the preferred embodiment of the present invention, the invention is not restricted to above embodiment.Be appreciated that other improvement and variation that those skilled in the art directly derive without departing from the spirit and concept in the present invention or associate, within all should thinking and being included in protection scope of the present invention.

Claims (1)

1. the automatic testing method of a marble lock key and pellet coding is characterized in that comprising the following steps:
1) get the lower pellet of all differing heights of to be detected batch of cylinder lock, described each time pellet pressed highly from high to low and arranged, and lower pellet that will be the highest is highly compiled as sequence number 1, the lower pellet highly taken second place is compiled as sequence number 2, by that analogy, until lower pellet that will be highly minimum is compiled as sequence number n, n>=2;
2) find out the key tooth depth corresponding with the lower pellet of each sequence number in step 1, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, each key bit that will meet above-mentioned corresponding relation is numbered respectively, and wherein, the key tooth depth that the lower pellet that is 1 with sequence number is corresponding is compiled as sequence number 1, the key tooth depth that the lower pellet that is 2 with sequence number is corresponding is compiled as sequence number 2, by that analogy, until key tooth depth corresponding to the lower pellet that will be n with sequence number compiled, be sequence number n, n>=2;
3) measure and to obtain or the direct numerical value of the key tooth depth of each sequence number in read step 2 from the order handbook, by the numerical value of above-mentioned each key tooth depth and corresponding sequence number input computer, using the numerical value of this key tooth depth and corresponding sequence number as the coupling storehouse, be stored in computer, for follow-up;
4) each marble lock key to be detected is fixed on the detection line of on-line operation, the shooting camera is fixed on to detection line one side of on-line operation; According to the size of marble lock key to be detected and towards, select the focal length of camera lens, adjust shooting angle, shooting distance, aperture size, the time for exposure of taking camera, in order to obtain photographic images clearly; Computer is obtained triggering and the control signal that camera is synchronizeed with production process, by external trigger and control signal, starts the image that described camera is taken the marble lock key side of on-line operation in real time, and by the image transmitting taken to computer; Computer is processed by image algorithm, obtains the side image of marble lock key;
5) belong to the each several part of key tooth depth in Computer Automatic Recognition marble lock key side image, and the height value of each key tooth depth part is measured, then by the height value of each key tooth depth respectively with step 3 in the coupling storehouse mated, obtain the corresponding sequence number of each key tooth depth part, and these sequence numbers are lined up to one group of data according to the order from the key top to afterbody, by this group data markers, be that the key bit shape code is stored in computer; By that analogy, be each its key bit shape code of detected object marble lock key mark;
6) the key bit shape code in read step 5 from computer, using this key bit shape code as the pellet code corresponding with this marble lock key, get the pellet of corresponding sequence number, and the sequence provided according to the pellet code is fit into cylinder of spring lock by the pellet order.
CN201310444487.8A 2013-09-23 2013-09-23 Pin tumbler lock key and automatic detection method of pin tumbler code Active CN103470102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310444487.8A CN103470102B (en) 2013-09-23 2013-09-23 Pin tumbler lock key and automatic detection method of pin tumbler code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310444487.8A CN103470102B (en) 2013-09-23 2013-09-23 Pin tumbler lock key and automatic detection method of pin tumbler code

Publications (2)

Publication Number Publication Date
CN103470102A true CN103470102A (en) 2013-12-25
CN103470102B CN103470102B (en) 2015-04-29

Family

ID=49795129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310444487.8A Active CN103470102B (en) 2013-09-23 2013-09-23 Pin tumbler lock key and automatic detection method of pin tumbler code

Country Status (1)

Country Link
CN (1) CN103470102B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106836984A (en) * 2017-03-24 2017-06-13 张锴铮 The method and system of the door lock burglar alarm based on lock core vernier circuit structure
CN110465815A (en) * 2019-08-07 2019-11-19 无锡凯扬电子科技有限公司 The recognition methods of tooth form code name, device and terminal device
US20220180621A1 (en) * 2019-06-28 2022-06-09 Shenzhen Xhorse Electronics Co., Ltd Article identification method and device, and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020059090A (en) * 2000-12-30 2002-07-12 이문원 Pin height code number discrimination device of key-box and control method thereof
CN2528836Y (en) * 2002-01-30 2003-01-01 沈明德 Instant simultaneous detection type steel-ball lock
WO2010130994A1 (en) * 2009-05-14 2010-11-18 Uap Limited Improvements to key-operated pin tumbler locks
CN201772857U (en) * 2010-08-20 2011-03-23 杭州新智远数控设备有限公司 Key crescent flower detection device for pin tumbler lock
CN102022028A (en) * 2009-09-16 2011-04-20 李海婴 Fabricated key for mechanical lock and production process thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020059090A (en) * 2000-12-30 2002-07-12 이문원 Pin height code number discrimination device of key-box and control method thereof
CN2528836Y (en) * 2002-01-30 2003-01-01 沈明德 Instant simultaneous detection type steel-ball lock
WO2010130994A1 (en) * 2009-05-14 2010-11-18 Uap Limited Improvements to key-operated pin tumbler locks
CN102022028A (en) * 2009-09-16 2011-04-20 李海婴 Fabricated key for mechanical lock and production process thereof
CN201772857U (en) * 2010-08-20 2011-03-23 杭州新智远数控设备有限公司 Key crescent flower detection device for pin tumbler lock

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106836984A (en) * 2017-03-24 2017-06-13 张锴铮 The method and system of the door lock burglar alarm based on lock core vernier circuit structure
US20220180621A1 (en) * 2019-06-28 2022-06-09 Shenzhen Xhorse Electronics Co., Ltd Article identification method and device, and computer readable storage medium
CN110465815A (en) * 2019-08-07 2019-11-19 无锡凯扬电子科技有限公司 The recognition methods of tooth form code name, device and terminal device

Also Published As

Publication number Publication date
CN103470102B (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN100559131C (en) A kind of method for automatically detecting pointer instrument
CN103470102B (en) Pin tumbler lock key and automatic detection method of pin tumbler code
CN104335053B (en) Method for estimating the rotational speed of a tool mounted on a rotating spindle of a machine tool and such a machine tool
US20230167737A1 (en) Method and system for enabling at surface core orientation data transfer
CN205999875U (en) Standard penetration test (SPT) recording equipment
CN111858980A (en) Method for identifying and recording rock core in rock core disc
CN106886989A (en) The automatic optical detection method of keyboard
CN105545284A (en) While-drilling gamma imaging data processing method
CN102545847B (en) Intelligent initiating explosive device equivalent device and pulse timing sequence signal measurement method
CN206369789U (en) A kind of multifunctional digital wafer prober
CN105014369B (en) The accurate tool component for installing crankshaft timing gear
CN106643793A (en) Virtual reality helmet and device and method for detecting calibration effect of gyroscope sensor in virtual reality helmet
CN105807330A (en) Method for rapidly recognizing mineral volume content of shale formation
CN111366968B (en) Heavy ion beam uniformity testing system and method
CN104279956B (en) Determination method for rock structural surface reference plane
JP2015085437A (en) Determination device, determination method, and determination program
CN203203537U (en) Apparatus for simultaneous detection of diameter and depth of central aperture of automobile camshaft
CN106468762A (en) A kind of circuit breaker adjustment screw vision positioning system
CN104567630A (en) Taper detection method and taper detection device
CN110462363A (en) Tire testing method and tyre testing apparatus
CN108195533A (en) A kind of system and method for being accurately positioned the data acquisition moment
CN109753982A (en) Obstacle point detecting method, device and computer readable storage medium
CN209910539U (en) Micropore detection device
CN115620042B (en) Gear model determination method and system based on target detection and clustering
CN105241929B (en) A kind of method based on the sense of taste information Rapid identification Pu'er tea storage time

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant