CN103470102B - 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
CN103470102B
CN103470102B CN201310444487.8A CN201310444487A CN103470102B CN 103470102 B CN103470102 B CN 103470102B CN 201310444487 A CN201310444487 A CN 201310444487A CN 103470102 B CN103470102 B CN 103470102B
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.)
Active
Application number
CN201310444487.8A
Other languages
Chinese (zh)
Other versions
CN103470102A (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

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 the key tooth depth of machine vision to spring lock automatically to detect, thus obtain the method for pellet installation sequence pellet code in key bit shape code and corresponding lock core.
Background technology
Spring lock, also known as 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.The lock cylinder of spring lock is radially dispersed with several holes on the surface, and this some holes is corresponding with the hole on lock body, and ensures necessary concentricity.Load the cylinder-shaped marble of two rows differing heights in this some holes, namely go up pellet and lower pellet.Generally, the upper pellet in lock body opening inserts in lock core hole, or the lower pellet in lock core inserts in lock body opening, and lock core can not be rotated arbitrarily.After inserting correct key, because shaped as key bit and marble hole are corresponding one by one, tooth depth is corresponding with lower spring length, each pellet is pushed to identical height, thus the contact surface of pellet and lower pellet is made just in time to coincide with the contact surface of lock core and lock body, lock core just can be rotated freely by relieving, thus lead agency realizes switch motion.
The principle of spring lock can see Fig. 1 to Fig. 3.As shown in Figure 1, lock body M is fixing, and lock core N is movable.When upper pellet A and lower pellet B is when playing in groove 1 to n, under the effect of spring C, be seized the rotation of lock core N, now this lockset is in locking state.As shown in Figure 2, when using correct key K, the seam between the upper pellet A in bullet groove 1 to n and lower pellet B, the seam just in time and between lock body M and lock core N is neat, and at this moment lock core N can rotate, and this lockset is just in open mode.As shown in Figure 3, if the key K of mistake in, upper pellet A or lower pellet B likely blocks lock body M and lock core N.Even if having one to play groove once in a while to have met, have a pellet not put in place as long as other play in groove, lock core N still can not rotate.
The head of pellet is taper seat or sphere, and its length is divided into several grade, and differential equal.In certain length category, differential less, the progression that divides more.High-precision pellet lathe can process the pellet of 10 progression.During lockset assembling, key is loaded lock core, key bit loads the pellet of corresponding progression, the afterbody of pellet is just just neat with lock core circumference.The change 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 pellet hole count is n, and each pellet can repeat to choose.In assembling pellet, following the example of of pellet is as follows: in first marble hole, have m kind to follow the example of; Because can repeatedly choose, in second marble hole, m kind is also had to follow the example of; In the n-th marble hole, m kind is in like manner still had to follow the example of, so total number of permutations should be m 1× m 2× m 3× ... .. × m n=mn.Therefore, due to the quantity of pellet and progression a lot, the change of shaped as key bit is also a lot, when installing the pellet of spring lock, needs the profile of tooth detecting key fast, thus the pellet of profile of tooth different progression of corresponding installation in lock core according to key.
Detection at present for shaped as key bit mainly relies on manually, and the shortcoming of manual detection existence mainly contains: Test Field bad environments, and testing staff cannot non-stop run for a long time; The required precision that shaped as key bit detects is high, and pellet is differential and tooth depth is differential is generally 0.5mm, and human eye is difficult to accurately judge, chance of makeing mistakes is a lot, cannot ensure Detection job; Artificial macroscopic finite rate, 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 automatic testing method of the marble lock key of the large production of industrial automation and pellet coding.
Technical scheme of the present invention is as follows:
An automatic testing method for marble lock key and pellet coding, comprises the following steps:
1) the lower pellet of all differing heights of to be detected batch of spring lock is got, by described each lower pellet by arranging highly from high to low, and lower pellet the highest highly is compiled as sequence number 1, the lower pellet highly taken second place is compiled as sequence number 2, by that analogy, until highly minimum lower pellet is compiled as sequence number n, n≤2;
2) the key tooth depth corresponding with the lower pellet of sequence number each in step 1 is found out, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, then numbered respectively by each key bit meeting above-mentioned corresponding relation, wherein, key tooth depth corresponding to lower pellet being 1 with sequence number is compiled as sequence number 1, key tooth depth corresponding to lower pellet being 2 with sequence number is compiled as sequence number 2, by that analogy, until will be that the key tooth depth that the lower pellet of n is corresponding is compiled as sequence number n, n≤2 with sequence number;
3) numerical value of acquisition or the direct key tooth depth of each sequence number from read step 2 order handbook is measured, 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 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, shooting camera is fixed on the detection line 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, the shooting angle of adjustment shooting camera, shooting distance, aperture size, time for exposure, take image clearly to obtain; Computer obtains the camera triggering synchronous with production process and control signal, is started the image of the marble lock key side of described camera captured in real-time on-line operation by external trigger and control signal, and by the image transmitting of shooting to computer; Computer, by image algorithm process, obtains the side image of marble lock key;
5) each several part of key tooth depth is belonged in Computer Automatic Recognition marble lock key side image, and the height value of each key tooth depth part is measured, then the height value of each key tooth depth is mated with the storehouse of mating in step 3 respectively, obtain the sequence number corresponding to each key tooth depth part, and these sequence numbers are lined up one group of data according to from key top to the order of afterbody, be that key bit shape code is stored in computer by this group data markers; By that analogy, for each detected object marble lock key marks its key bit shape code;
6) the key bit shape code from computer in read step 5, using this key bit shape code as the pellet code corresponding with this marble lock key, get the pellet of corresponding sequence number, pellet order is fit into cylinder of spring lock by the sequence provided according to pellet code.
Advantageous Effects of the present invention is:
The present invention adopts machine vision automatically to detect key bit shape code, and obtains corresponding pellet code further, replaces manual detection, reduces hand labor intensity.The detection speed of the present invention to key and pellet coding is artificial about 10 times, improves production efficiency.Manual detection is due to environment and physiological reason, and round-the-clockly uninterruptedly cannot carry out Product checking, adopt the present invention then to become possibility, the production time can extend to greatest extent, improves the utilization rate of equipment.The qualification rate of manual detection is difficult to ensure, lockset defect rate remains high, and causes the significant wastage of the resources of production and cost; Accuracy of detection of the present invention is high, can greatly improve lockset qualification rate.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that spring lock is in locking state.
Fig. 2 is the schematic diagram of spring lock when using correct key.
Schematic diagram when Fig. 3 is spring lock mistake in key.
Fig. 4 is the numbering schematic diagram of pellet sequence number and key bit high sequence number.
Fig. 5 is the key bit shape code signal obtained in certain embodiment.
Detailed description of the invention
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further.
As shown in Figure 4, first getting the lower pellet of all differing heights of to be detected batch of spring lock, by described each lower pellet by arranging highly from high to low, and compiling lower pellet the highest highly for sequence number 1, the lower pellet highly taken second place is compiled as sequence number 2, by that analogy; The spring lock of this batch in embodiment illustrated in fig. 4 has the differential lower pellet of 5 kinds of differences, and therefore highly minimum lower pellet is compiled as sequence number 5; The corresponding sequence number of each lower pellet is respectively 1,2,3,4,5.
Then, find out with the lower pellet 1 of above-mentioned each sequence number, 2,3,4,5 corresponding key tooth depths, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, then numbered respectively by each key bit meeting above-mentioned corresponding relation, wherein, key tooth depth corresponding to lower pellet being 1 with sequence number is compiled as sequence number 1, key tooth depth corresponding to lower pellet being 2 with sequence number is compiled as sequence number 2, by that analogy, until be sequence number 5 by compiling with sequence number key tooth depth corresponding to lower pellet that be 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 the direct numerical value reading the key tooth depth of above-mentioned each sequence number from order handbook, the key tooth depth of such as sequence number 1 is 2.0mm, the key tooth depth of sequence number 2 is 2.5mm, the key tooth depth of sequence number 3 is 3.0mm, the key tooth depth of sequence number 4 is 3.5mm, the key tooth depth of 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 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, shooting camera is fixed on the detection line 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, the shooting angle of adjustment shooting camera, shooting distance, aperture size, time for exposure, take image clearly to obtain; Computer obtains the camera triggering synchronous with production process and control signal, is started the image of the marble lock key side of described camera captured in real-time on-line operation by external trigger and control signal, and by the image transmitting of shooting to computer; Computer, by image algorithm process, obtains the side image of marble lock key.
The each several part of key tooth depth is belonged 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 storehouse of mating mate, obtain the sequence number corresponding to each key tooth depth part, and these sequence numbers are lined up one group of data according to from key top to the order of afterbody, be that key bit shape code is stored in computer by this group data markers; By that analogy, for each detected object marble lock key marks its key bit shape code.For Fig. 5, each key tooth depth that this marble lock key measurement obtains from left to right is respectively 3.0mm, 2.0mm, 2.5mm, 4.0mm, 3.5mm, then can know through overmatching, and the key bit shape code of this marble lock key is " 31254 ".
From computer, read above-mentioned key bit shape code " 31254 ", using this key bit shape code as the pellet code corresponding with this marble lock key, then the pellet code of this spring lock is also " 31254 ".Finally get the pellet of corresponding sequence number, pellet is fit into cylinder of spring lock according to the order of No. 3, No. 1, No. 2, No. 5, No. 4 by the sequence provided according to pellet code, completes assembling.
The control system (hardware and software) that the image capture device (camera, radiation source, power supply, image pick-up card etc.) used in all embodiments above and storage device (hard disk, CD, floppy disk etc.), image processing equipment (hardware of image processor and software), image display (hardware and software) state 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 the oher improvements and changes that those skilled in the art directly derive without departing from the spirit and concept in the present invention or associate, all should think and be included within protection scope of the present invention.

Claims (1)

1. an automatic testing method for marble lock key and pellet coding, is characterized in that comprising the following steps:
1) the lower pellet of all differing heights of to be detected batch of spring lock is got, by described each lower pellet by arranging highly from high to low, and lower pellet the highest highly is compiled as sequence number 1, the lower pellet highly taken second place is compiled as sequence number 2, by that analogy, until highly minimum lower pellet is compiled as sequence number n, n≤2;
2) the key tooth depth corresponding with the lower pellet of sequence number each in step 1 is found out, its corresponding relation is, key tooth depth and lower pellet height add up to same definite value, then numbered respectively by each key bit meeting above-mentioned corresponding relation, wherein, key tooth depth corresponding to lower pellet being 1 with sequence number is compiled as sequence number 1, key tooth depth corresponding to lower pellet being 2 with sequence number is compiled as sequence number 2, by that analogy, until will be that the key tooth depth that the lower pellet of n is corresponding is compiled as sequence number n, n≤2 with sequence number;
3) numerical value of acquisition or the direct key tooth depth of each sequence number from read step 2 order handbook is measured, 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 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, shooting camera is fixed on the detection line 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, the shooting angle of adjustment shooting camera, shooting distance, aperture size, time for exposure, take image clearly to obtain; Computer obtains the camera triggering synchronous with production process and control signal, is started the image of the marble lock key side of described camera captured in real-time on-line operation by external trigger and control signal, and by the image transmitting of shooting to computer; Computer, by image algorithm process, obtains the side image of marble lock key;
5) each several part of key tooth depth is belonged in Computer Automatic Recognition marble lock key side image, and the height value of each key tooth depth part is measured, then the height value of each key tooth depth is mated with the storehouse of mating in step 3 respectively, obtain the sequence number corresponding to each key tooth depth part, and these sequence numbers are lined up one group of data according to from key top to the order of afterbody, be that key bit shape code is stored in computer by this group data markers; By that analogy, for each detected object marble lock key marks its key bit shape code;
6) the key bit shape code from computer in read step 5, using this key bit shape code as the pellet code corresponding with this marble lock key, gets the lower pellet of corresponding sequence number, and lower pellet order is fit into cylinder of spring lock by the sequence provided according to pellet code.
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 CN103470102A (en) 2013-12-25
CN103470102B true 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)

Families Citing this family (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
CN110472480A (en) * 2019-06-28 2019-11-19 深圳数马电子技术有限公司 Item identification method, device and computer readable storage medium
CN110465815B (en) * 2019-08-07 2021-04-20 无锡凯扬电子科技有限公司 Tooth form code identification method and device and terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100378616B1 (en) * 2000-12-30 2003-04-03 이문원 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
GB0908260D0 (en) * 2009-05-14 2009-06-24 Pink Martin Improvements to key-operated pin tumbler locks
CN102022028B (en) * 2009-09-16 2013-06-05 李海婴 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

Also Published As

Publication number Publication date
CN103470102A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103714338B (en) Image processing apparatus and image processing method
CN103470102B (en) Pin tumbler lock key and automatic detection method of pin tumbler code
CN104969124B (en) Matrix test chart
CN103140872B (en) Image processing apparatus and image processing method
CN101571410B (en) Intelligent opto-electrical direct reader
JP2014029343A (en) Method and apparatus for hole diameter profile measurement
CN106067427B (en) Partial exposure exception defect automatic testing method
CN105571614B (en) magnetic sensor calibration method and device
CN104374324B (en) Displacement measuring device based on image recognition
AU2022209230A1 (en) Method and system for enabling at surface core orientation data transfer
US10045840B2 (en) Blank with coding for the production of tooth-technical shaped parts and procedures for the identification of a blank
CN110688955A (en) Building construction target detection method based on YOLO neural network
CN106782671B (en) A kind of safety chip enters the method and apparatus of test pattern
CN101701792B (en) Gauge block automatic verification system and verification method
CN109425457A (en) Lock operation analysis apparatus, locking job analysis system, locking job analysis program, locking job analysis method and locking tool
CN103453840B (en) The automatic testing method of lock core precision of cylinder lock
Menke et al. Development of a combined measurement system for torque and angular position
CN104279956B (en) Determination method for rock structural surface reference plane
CN104567630B (en) A kind of taper detection method and device
CN102128638A (en) Method for detecting optical fiber gyroscope semifinished product detection board
CN110462363A (en) Tire testing method and tyre testing apparatus
CN206230527U (en) A kind of vision guide robot automatic thread detecting system
CN106896309B (en) Signal processing apparatus and method, signal offset detection system and method
CN108195533A (en) A kind of system and method for being accurately positioned the data acquisition moment
CN208984364U (en) A kind of detector gate test macro with full-automatic discrimination function

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