CN103727883B - Utilize method and the device thereof of button clearance measurement relative height of keyboard - Google Patents

Utilize method and the device thereof of button clearance measurement relative height of keyboard Download PDF

Info

Publication number
CN103727883B
CN103727883B CN201410003261.9A CN201410003261A CN103727883B CN 103727883 B CN103727883 B CN 103727883B CN 201410003261 A CN201410003261 A CN 201410003261A CN 103727883 B CN103727883 B CN 103727883B
Authority
CN
China
Prior art keywords
keyboard
key
pixel count
button
line
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
CN201410003261.9A
Other languages
Chinese (zh)
Other versions
CN103727883A (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.)
Suzhou Jujia Electronic Technology Co., LTD.
Original Assignee
GFOCUS TECHNOLOGIES Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GFOCUS TECHNOLOGIES Co Ltd filed Critical GFOCUS TECHNOLOGIES Co Ltd
Priority to CN201410003261.9A priority Critical patent/CN103727883B/en
Publication of CN103727883A publication Critical patent/CN103727883A/en
Application granted granted Critical
Publication of CN103727883B publication Critical patent/CN103727883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The present invention relates to a kind of method utilizing button clearance measurement relative height of keyboard and device thereof, it uses machine vision technique based on line-scan digital camera, have low cost, accuracy of detection is high, detection speed is fast, easy to use, system run all right, advantage easy to maintenance, thus reduces artificial demand in process of production and improve yields.Detailed process is: step one, by keyboard along its axial direction uniform motion;Step 2, utilizes imaging device to gather each button image of keyboard with the horizontal oblique angle mode;Step 3, according to the change of the pixel count in gap between adjacent two buttons of same a line, detects the relative altitude of each button: if the pixel count recorded is identical with the pixel count of known gap, then button is contour;If the pixel count recorded increases, then rear key is higher than front key;If the pixel count recorded reduces, the most front key is higher than rear key.

Description

Utilize method and the device thereof of button clearance measurement relative height of keyboard
Technical field
The present invention relates to measuring method and the device thereof of a kind of computor-keyboard height, particularly relate to a kind of utilize by The method of key clearance measurement relative height of keyboard and device thereof.
Background technology
Keyboard is a kind of conventional computer part, all can use in notebook computer, desktop computer.At key In the production process of dish, need keyboard is carried out quality testing.The important Testing index of one of which is keyboard Relative altitude between upper adjacent key, i.e. difference in height.Prescription typically difference in height is less than a few milli of zero point Rice, if with manually detecting, its error is big, efficiency is low.At present, there are three kinds of modes can be to relatively high Degree carries out accurate measurement, and a kind of is the method using three-D, and another kind is to use probe mode, and the third is to adopt By the Machine Vision Detection mode of area array cameras.
The advantage carrying out detecting by three-D method is that precision is high, but the shortcoming of its maximum is detection, and speed is slow, All keyboards cannot be detected, can only inspect by random samples.And the price of three-D equipment is the highest.Another kind of spy The advantage of pin type detection is that cost reduces much than three-D equipment, and detects speed and can improve a lot, But its shortcoming is system instability, troublesome maintenance, maintenance cost height.And by the detection mode of area array cameras Advantage be low cost, be easily maintained, but accuracy of detection is the lowest.
Summary of the invention
The purpose of this patent is exactly for solving the problems referred to above, it is provided that one utilizes button clearance measurement keyboard relative The method of height and device thereof, it uses machine vision technique based on line-scan digital camera, has low cost, inspection Survey precision is high, detection speed is fast, easy to use, system run all right, advantage easy to maintenance, thus Production process reduces artificial demand and improves yields.
For achieving the above object, the present invention adopts the following technical scheme that
A kind of relative height of keyboard measuring method, detailed process is:
Step one, by keyboard along its axial direction uniform motion;
Step 2, utilizes imaging device to gather each button image of keyboard with the horizontal oblique angle mode;
Step 3, according to the change of the pixel count in gap between adjacent two buttons of same a line, detects each button Relative altitude:
If the pixel count recorded is identical with the pixel count of known gap, then button is contour;
If the pixel count recorded increases, then rear key is higher than front key;
If the pixel count recorded reduces, the most front key is higher than rear key.
In described step 3, when button is contour, pixel count x=p* (d/v), wherein, p is the frame per second of camera, Unit row/second;D is adjacent two button lateral separations;V is the speed of keyboard uniform motion.
In described step 3, when rear key is higher than front key, the pixel count x1=h1/tg (Θ) of rear key, the pixel of front key Number is x=p* ((d+x1)/v), and wherein h1 is the Partial Height that rear key exceeds front key, and Θ is for obtaining keyboard image Oblique angle, d is adjacent two key lateral separations, and v is the speed of keyboard uniform motion, and p is the frame per second of camera, Unit row/second, then h1=(x*v/p-d) * tg (Θ).
In described step 3, when front key is higher than rear key, front key pixel is x=p* ((d-x2)/v), rear key pixel For x2=h2/tg (Θ), wherein, wherein h2 is the Partial Height that rear key exceeds front key, and Θ is for obtaining keyboard layout The oblique angle of picture, d is adjacent two key lateral separations, and v is the speed of keyboard uniform motion, and p is the frame per second of camera, Unit row/second, then h2=(d-x*v/p) * tg (Θ).
The collection of described keyboard image and Treatment Analysis are Tong Bu carried out.
The collection of described keyboard image and Treatment Analysis use the mode of buffer circle to process.
Described known gap is d, and obtain from keyboard Designing drawing or take pictures from the keyboard sample that quality is intact measurement Obtain or use vertical mode to take pictures acquisition.
A kind of relative height of keyboard measuring method device, it includes:
One linear motion platform, drives keyboard to travel at the uniform speed;
At least one line-scan digital camera, with the horizontal oblique angle, obtains the image of each row button on keyboard;
One light source, coordinates with line-scan digital camera, it is provided that required light;
One processor module, is connected with line-scan digital camera and linear motion platform, controls both work, with Time processor module according between adjacent key gap pixel count change, it is judged that each button is the most contour, survey The most contour identical with known pixel count of pixel count;The pixel count recorded increases, then rear key is than front key High;The pixel count recorded reduces, and the most front key is higher than rear key.
Described line-scan digital camera also includes a line-scan digital camera vertical with keyboard traffic direction, obtains adjacent key Spacing, and be connected with processor module.
Described light source is LED light source or fluorescent light;Light source is connected with line-scan digital camera or processor module; Light source uses the illumination of long lit, i.e. light source keeps state kept burning day and night from start to finish;Or use Tong Bu with line-scan digital camera Formula illuminates, and takes pictures or its imageing sensor is when photosensitive at line-scan digital camera, and light source is just opened, At All Other Times light Source is turned off.
The operation principle of the present invention is:
An index critically important in the quality testing of keyboard is the relative altitude between adjacent key.
The quality testing of conventional keyboard manually completes, but manual detection has many shortcomings, as manually Cost height, examination criteria disunity are so concordance is poor, human eye detection is limited in one's ability, detection efficiency is low. And use Automatic Measurement Technique based on machine vision technique, then can overcome disadvantages mentioned above.
The ultimate principle of detection is to be taken pictures by camera, and then the image of gained is processed by processor, comes It is qualified whether automatic decision part has, and mainly easily identifies according to keyboard top sides edge when it judges, And the top margin distance of the opposite side of adjacent case is exactly the distance between button, if so button is contour, Then the distance of two adjacent top margins is identical with known;If rear key is higher than front key, then exceed one due to rear key Block, then the distance of the most adjacent two top margins will strengthen, say, that between being equivalent between case Gap increases, and reaction is exactly that the pixel count of spacing increases on image;If front key is higher than rear key, the most adjacent The distance of two button deckles is less than known distance, and reaction is exactly that the pixel count of spacing reduces on image, The present invention is exactly by the change to button gap pixel count according to this phenomenon, it is achieved the identification of button height.
The line-scan digital camera used in device, camera maintains static, by the motion of keyboard, the wire that will obtain Image is accumulated, and has just obtained the image of whole keyboard.Device employing one or two cameras, wherein one The plane of camera and keyboard is placed at a certain angle, and this angle is not equal to 90 degree.Second camera and keyboard Plane becomes 90 degree of placements, for measuring the distance between adjacent two keys.Second camera is optional.
Assume:
1. the frame per second of camera is p (row/second)
2. keyboard axis is parallel with the direction of motion
3. keyboard uniform motion, speed is v
4. camera perspective and horizontal plane angle: Θ
The most adjacent two key lateral separations are d
Pixel count between the most adjacent two keys is x
If before and after adjacent, two key height are identical, then: x=p* (d/v)
If rear key is higher than front key, then,
X1=h1/tg (Θ)
X=p* ((d+x1)/v)
So, h1=(x*v/p-d) * tg (Θ)
If Θ=45 °, then h1=x*v/p-d
If front key is higher than rear key, then,
X2=h2/tg (Θ)
X=p* ((d-x2)/v)
So, h2=(d-x*v/p) * tg (Θ)
If Θ=45 °, then h2=d-x*v/p
If using second line-scan digital camera, this camera can share a light source with First camera, it is possible to With with independent light source.
Wherein d can be obtained by three kinds of modes,
1. keyboard drawing
2. second vertical camera is taken pictures calculating
3. the keyboard sample that pair quality is intact is taken pictures measurement.
If using second camera to take pictures to be calculated, its schematic diagram is as shown in Figure 4.
Adjacent two key differences in height can be detected by above method.
Using line-scan digital camera, the image of keyboard gathers line by line and transmits, and therefore processor can be adopted Collection image is while carrying out image procossing, i.e. image acquisition and can synchronizing to carry out with processing.Such as, when collecting N Start during row image N row image is processed.So image processing efficiency is high.Can adopt time actually used Process by the mode of buffer circle.
Lighting system can be divided into long lit and synchronous mode.So-called long lit, it is simply that after start, prepare detection Before, illumination is opened, even if taking pictures or detecting complete, illumination is not closed, and illumination remains opens. So-called synchronous mode, it is simply that only when taking pictures or the imageing sensor of photographing unit is integration (or photosensitive) Time, illumination is just opened, and illuminates At All Other Times and is turned off.This mode can save electric energy, and can extend photograph The life-span of bright module.
The invention has the beneficial effects as follows:
1. the scheme of this patent can realize automatic on-line detection and offline inspection.
2. non-cpntact measurement, will not damage detected part
3. using line-scan digital camera, accuracy of detection is high, can reach 0.05 millimeter the highest
4. using line-scan digital camera, detection speed is fast
5. using line-scan digital camera, gather image and process, image processing efficiency is high, i.e. image acquisition Can synchronize to carry out with processing
6. use the quality testing scheme of automatization, can substitute for artificial, reduce labour cost
7. use the quality testing scheme of automatization, can significantly promote production capacity, manually cannot complete The detection realized.
8. use the quality testing scheme of automatization, the erroneous judgement that anthropic factor causes can be avoided, thus improve Yields.
9. detection Stringency can be manually adjusted by user interface of software, flexible and convenient to use.
10. system maintenance easy, maintenance cost are low.
Accompanying drawing explanation
Fig. 1 is that one line-scan digital camera of the present invention places schematic diagram with keyboard.
Fig. 2 be rear key higher than front key in the case of schematic diagram.
Fig. 3 be front key higher than rear key in the case of schematic diagram.
Schematic diagram when Fig. 4 is to arrange second line-scan digital camera.
Fig. 5 is offline inspection flow chart.
Fig. 6 is on-line checking flow chart.
Fig. 7 keyboard schematic diagram.
Wherein, 1. keyboard, 2. before key, 3. after key, 4. First camera, 5. linear motion platform, 6. light Source, 7. processor module, 8. second camera.
Detailed description of the invention
The present invention will be further described with embodiment below in conjunction with the accompanying drawings.
Embodiment 1:
The part to be detected of this embodiment is keyboard of notebook computer, its a length of 300 millimeters, width be 140 milli Rice.
Using two line-scan digital cameras, resolution is 8000 pixels.The interface of camera be gigabit Ethernet or CameraLink special purpose interface.A lighting source, i.e. two cameras is used to share a light source.
First camera 4 is 45 degree with the angle of keyboard axis, and second camera with the angle of keyboard axis is 90 degree.Wherein the image of second camera 8 gained is used for measuring distance d between adjacent key;In conjunction with adjacent Distance between key, the image of First camera 4 gained can be used to measure the difference in height of adjacent key.Wherein The height of the first row key entering camera fields of view can be by the image of the frame before keyboard and first row key Image synthesis processes and obtains.This is consistent with the method measuring adjacent key relative altitude, no longer describes in detail.
If before and after adjacent, two key height are identical, then: x=p* (d/v)
If rear key is higher than front key, then,
X1=h1
X=p* ((d+x1)/v)
So, h1=x*v/p-d
If front key is higher than rear key, then,
X2=h2/tg (Θ)
X=p* ((d-x2)/v)
So, h2=d-x*v/p
Embodiment 2:
The part to be detected of this embodiment is keyboard of notebook computer, its a length of 300 millimeters, width be 140 milli Rice.
Using a line-scan digital camera, resolution is 8000 pixels.The interface of camera be gigabit Ethernet or CameraLink special purpose interface.Use a lighting source.
Camera is 45 degree with the angle of keyboard axis.Distance d between adjacent two keys can be from the CAD of keyboard File directly reads.The image of camera gained can be used to measure the difference in height of adjacent key.Wherein enter phase The height of the first row key in the machine visual field can be combined by the image of the image of the frame before keyboard with first row key Conjunction processes and obtains.This is consistent with the method measuring adjacent key relative altitude,
If before and after adjacent, two key height are identical, then: x=p* (d/v)
If rear key is higher than front key, then,
X1=h1
X=p* ((d+x1)/v)
So, h1=x*v/p-d
If front key is higher than rear key, then,
X2=h2/tg (Θ)
X=p* ((d-x2)/v)
So, h2=d-x*v/p.

Claims (11)

1. a relative height of keyboard measuring method, is characterized in that, detailed process is:
Step one, by keyboard along its axial direction uniform motion;
Step 2, utilizes imaging device to gather each button image of keyboard with the horizontal oblique angle mode;
Step 3, according to the change of the pixel count in gap between adjacent two buttons of same a line, detects each button Relative altitude:
If the pixel count recorded is identical with the pixel count of known gap, then button is contour;
If the pixel count recorded increases, then rear key is higher than front key;
If the pixel count recorded reduces, the most front key is higher than rear key.
2. relative height of keyboard measuring method as claimed in claim 1, is characterized in that, in described step 3, When button is contour, pixel count x=p* (d/v), wherein, p is the frame per second of camera, unit row/second;D is adjacent Two button lateral separations;V is the speed of keyboard uniform motion.
3. relative height of keyboard measuring method as claimed in claim 1, is characterized in that, in described step 3, When rear key is higher than front key, the pixel count x1=h1/tg (θ) of rear key, the pixel count of front key is x=p* ((d+x1)/v), Wherein h1 is the Partial Height that rear key exceeds front key, and θ is the oblique angle obtaining keyboard image, and d is adjacent two keys Lateral separation, v is the speed of keyboard uniform motion, and p is the frame per second of camera, unit row/second, then H1=(x*v/p-d) * tg (θ).
4. relative height of keyboard measuring method as claimed in claim 1, is characterized in that, in described step 3, When front key is higher than rear key, front key pixel is x=p* ((d-x2)/v), and rear key pixel is x2=h2/tg (θ), its In, wherein h2 is the Partial Height that rear key exceeds front key, and θ is the oblique angle obtaining keyboard image, and d is adjacent Two key lateral separations, v is the speed of keyboard uniform motion, and p is the frame per second of camera, unit row/second, then H2=(d-x*v/p) * tg (θ).
Relative height of keyboard measuring method the most as claimed in claim 1 or 2 or 3 or 4, is characterized in that, The collection of described keyboard image and Treatment Analysis are Tong Bu carried out.
Relative height of keyboard measuring method the most as claimed in claim 1 or 2 or 3 or 4, is characterized in that, The collection of described keyboard image and Treatment Analysis use the mode of buffer circle to process.
7. the relative height of keyboard measuring method as described in Claims 2 or 3 or 4, is characterized in that, described Known gap is d, obtains from keyboard Designing drawing or measurement of taking pictures from the keyboard sample that quality is intact obtains.
8. relative height of keyboard measuring method as claimed in claim 7, is characterized in that, gap d use from The keyboard sample that quality is intact is taken pictures acquisition in a vertical manner.
9. the relative height of keyboard measuring method described in a claim 1 or 2 or 3 or 4 or 5 or 6 is used Device, is characterized in that, it includes:
One linear motion platform, drives keyboard to travel at the uniform speed;
At least one line-scan digital camera, with the horizontal oblique angle, obtains the image of each row button on keyboard;
One light source, coordinates with line-scan digital camera, it is provided that required light;
One processor module, is connected with line-scan digital camera and linear motion platform, controls both work, with Time processor module according between adjacent key gap pixel count change, it is judged that each button is the most contour, survey The most contour identical with known pixel count of pixel count;The pixel count recorded increases, then rear key is than front key High;The pixel count recorded reduces, and the most front key is higher than rear key.
10. device as claimed in claim 9, is characterized in that, described line-scan digital camera also includes one and keyboard The line-scan digital camera that traffic direction is vertical, obtains the spacing of adjacent key, and is connected with processor module.
11. devices as claimed in claim 9, is characterized in that, described light source is LED light source or fluorescent light Source;Light source is connected with line-scan digital camera or processor module;Light source uses the illumination of long lit, and i.e. light source is the most extremely Keep state kept burning day and night eventually;Or use and the illumination of line-scan digital camera synchronous mode, take pictures or its image biography at line-scan digital camera Sensor is when photosensitive, and light source is just opened, and light source is turned off At All Other Times.
CN201410003261.9A 2014-01-03 2014-01-03 Utilize method and the device thereof of button clearance measurement relative height of keyboard Active CN103727883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410003261.9A CN103727883B (en) 2014-01-03 2014-01-03 Utilize method and the device thereof of button clearance measurement relative height of keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410003261.9A CN103727883B (en) 2014-01-03 2014-01-03 Utilize method and the device thereof of button clearance measurement relative height of keyboard

Publications (2)

Publication Number Publication Date
CN103727883A CN103727883A (en) 2014-04-16
CN103727883B true CN103727883B (en) 2016-08-17

Family

ID=50452064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410003261.9A Active CN103727883B (en) 2014-01-03 2014-01-03 Utilize method and the device thereof of button clearance measurement relative height of keyboard

Country Status (1)

Country Link
CN (1) CN103727883B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2600145A (en) * 2020-10-23 2022-04-27 Secr Defence A device and method for measuring impact patterns

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0122082A2 (en) * 1983-04-08 1984-10-17 Tektronix, Inc. Apparatus and method for modifying displayed color images
JPS6041872A (en) * 1983-08-17 1985-03-05 Canon Inc Monitoring device
JPS62291628A (en) * 1986-06-11 1987-12-18 Fuji Photo Film Co Ltd Main image indicating device
CN101424518A (en) * 2007-10-31 2009-05-06 比亚迪股份有限公司 Push button space detecting method and system
CN102156579A (en) * 2011-03-31 2011-08-17 华为终端有限公司 Touch screen coordinates calibration method, device thereof and terminal device
CN103391480A (en) * 2013-07-15 2013-11-13 Tcl集团股份有限公司 Method and system for inputting characters to television

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0122082A2 (en) * 1983-04-08 1984-10-17 Tektronix, Inc. Apparatus and method for modifying displayed color images
JPS6041872A (en) * 1983-08-17 1985-03-05 Canon Inc Monitoring device
JPS62291628A (en) * 1986-06-11 1987-12-18 Fuji Photo Film Co Ltd Main image indicating device
CN101424518A (en) * 2007-10-31 2009-05-06 比亚迪股份有限公司 Push button space detecting method and system
CN102156579A (en) * 2011-03-31 2011-08-17 华为终端有限公司 Touch screen coordinates calibration method, device thereof and terminal device
CN103391480A (en) * 2013-07-15 2013-11-13 Tcl集团股份有限公司 Method and system for inputting characters to television

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐珂 等.基于机器视觉的手机键盘质量检测***.《计算机***应用》.2009,(第4期),7-10. *
曹健 等.HexSight在键盘表面检测中的应用.《PLC&FA》.2005,127-130. *

Also Published As

Publication number Publication date
CN103727883A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN109765234B (en) Device and method for simultaneously carrying out optical detection on front and back surfaces of object
CN103471512B (en) A kind of glass plate width detecting system based on machine vision
CN209803004U (en) Device for simultaneously carrying out optical detection on front surface and back surface of object
CN105548203A (en) Method and device for visually detecting pins of multi-pin element
CN1860431A (en) Location detecting apparatus using area image sensor
CN109813223B (en) Device and method for simultaneously carrying out optical detection on two adjacent surfaces of object
CN106052586A (en) Stone big board surface contour dimension obtaining system and method based on machine vision
CN103630544B (en) A kind of vision on-line detecting system
CN107238955B (en) Liquid crystal module screen detection system
CN102538672A (en) CMOS (complementary metal-oxide-semiconductor)-machine-vision-based component size measuring system and measurement test method
CN103645573A (en) Liquid crystal display (LCD) detection method and system based on machine vision
CN105269403A (en) Detecting system and detecting method
CN103076345A (en) Detection method and full-automatic optical detection system for ITO conductive glass
CN214747807U (en) Chip detection equipment
CN103630554A (en) Detection device and method for defects on double faces of lens
CN101929843B (en) Device and method for automatically measuring spike length of rice
CN104655646A (en) Glass substrate internal defect checking system and checking method for height position of internal defect
CN102879404A (en) System for automatically detecting medical capsule defects in industrial structure scene
CN103727883B (en) Utilize method and the device thereof of button clearance measurement relative height of keyboard
CN204613125U (en) A kind of line sweep formula ceramic honey comb pick-up unit
CN206832700U (en) The defects of one kind is based on infrared distance measuring sensor detection means
CN107091729B (en) A kind of focal length of lens test method of no mechanical movement
CN103091332B (en) Detection method and detection system of U-shaped powder pipe based on machine vision
CN205607889U (en) Novel glass surface defect detection device
CN104596573B (en) A kind of device using speculum auxiliary workprint test

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170831

Address after: Suzhou City, Jiangsu Province, Suzhou Industrial Park 215123 Xinghu Street No. 218 BioBAY A4-520

Patentee after: Suzhou Jujia Electronic Technology Co., LTD.

Address before: 215500 building T2, Southeast campus of Changshu Institute Of Technology, Jiangsu, Suzhou

Patentee before: GFocus Technologies Co., Ltd.