CN107957796A - Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen - Google Patents

Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen Download PDF

Info

Publication number
CN107957796A
CN107957796A CN201711251737.0A CN201711251737A CN107957796A CN 107957796 A CN107957796 A CN 107957796A CN 201711251737 A CN201711251737 A CN 201711251737A CN 107957796 A CN107957796 A CN 107957796A
Authority
CN
China
Prior art keywords
mtr
mtd
signal
drawing boards
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711251737.0A
Other languages
Chinese (zh)
Inventor
舒望
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichun Tianyi University
Original Assignee
Sichun Tianyi University
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 Sichun Tianyi University filed Critical Sichun Tianyi University
Priority to CN201711251737.0A priority Critical patent/CN107957796A/en
Publication of CN107957796A publication Critical patent/CN107957796A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/05Digital input using the sampling of an analogue quantity at regular intervals of time, input from a/d converter or output to d/a converter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of drawing boards for measuring distance between drawing boards and drawing pen, including measuring circuit, position sensor, master controller and power-supply controller of electric, the position sensor is electrically connected with master controller, master controller includes microcontroller, data processing module and A/D converter, the signal input part of the signal output part link position sensor of the measuring circuit, the position sensor, A/D converter, microcontroller and data processing module are electrically connected successively, the signal input part of the first signal output part connection power-supply controller of electric of data processing module.The invention also discloses a kind of measuring method for measuring distance between drawing boards and drawing pen.Realize the measurement to distance between drawing boards and drawing pen; according to movement of the drawing pen on drawing boards; determine inclination angle of pressure that its motion track, drawing boards born and drawing pen etc., so as to fulfill the purpose of drawing, there is larger good protective effect to drawing boards.

Description

Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen
Technical field
The present invention relates to computer external input equipment field, and in particular to the spacing of one kind measurement drawing boards and drawing pen From drawing boards and its measuring method.
Background technology
As the drawing boards and drawing pen of computer peripheral, its operation principle is:According to drawing pen on drawing boards Movement, determine motion track of the drawing pen on drawing boards, the pressure size and the inclination angle of drawing pen that drawing boards is born Deng, and send these information to computer, so as to fulfill the purpose of drawing.
Traditional drawing boards is induction, in this way, motion track of the drawing pen on drawing boards, drawing boards are held The information such as the pressure size received and the inclination angle of drawing pen is handled in the form of electromagnetic signal.
Usually, on drawing boards, cross direction profiles have multiple transverse coil groups, which is used for the hair of intermittent Power transmission magnetic signal, meanwhile, there are multiple longitudinal coil groups in genesis analysis, which is used to receive the transmission of transverse coil group Electromagnetic signal;In addition, being additionally provided with resonant LC-circuit on drawing pen, by the resonant LC-circuit, longitudinal coil group receives The electromagnetic signal that transverse coil group is sent.Specifically, at a time, the electromagnetic signal generally sent according to multiple transverse coils And the power of electromagnetic signal that some longitudinal coil is received by the resonant LC-circuit on drawing pen, so that it is determined that drawing The lateral position of pen;Some x wire generally received according to multiple longitudinal coils by the resonant LC-circuit on drawing pen The power of the electromagnetic signal sent is enclosed, so that it is determined that the lengthwise position of drawing pen.
In this way, pass through the above method, it is possible to determine position of the drawing pen in drawing boards plane.But the above method It can only determine position of the drawing pen in drawing boards this two dimensional surface, but not can determine that in three dimensions, with a change Measure the distance of the distance to describe drawing pen and drawing boards;And in the prior art, with hand or with painting when using drawing boards Paintbrush or the sensing between computer cannot be more convenient, more effectively express picture, cannot during drawing boards use Linked up when painting with creator.
The content of the invention
Based on this, in view of the above-mentioned problems, being necessary to propose a kind of drawing boards for measuring distance between drawing boards and drawing pen And its measuring method, realize the measurement to distance between drawing boards and drawing pen, according to movement of the drawing pen on drawing boards, really Determine motion track of the drawing pen on drawing boards, pressure size that drawing boards is born and the inclination angle of drawing pen etc., and it is comprehensive These information, so as to fulfill the purpose of drawing;Meanwhile the setting of its principle is scientific and reasonable, can measure the position of drawing boards well Confidence ceases, and makes content that unanimously rotationally-varying occur with drawing boards, has larger good protective effect to drawing boards.
The present invention provides a kind of drawing boards for measuring distance between drawing boards and drawing pen, its concrete technical scheme is as follows:
A kind of drawing boards for measuring distance between drawing boards and drawing pen, including measuring circuit, position sensor, main control Device and power-supply controller of electric, the position sensor are welded in measuring circuit, and are electrically connected with the master controller, the master Controller includes microcontroller, data processing module and A/D converter, the signal output part link position sensing of the measuring circuit The signal input part of device, the signal input part of the signal output part connection A/D converter of position sensor, the letter of A/D converter The signal input part of number output terminal connection microcontroller, the signal input of the signal output part connection data processing module of microcontroller End, the signal input part of the first signal output part connection power-supply controller of electric of data processing module.
The present invention can regulate and control position sensor by the master controller for Board position of painting, and drawn and painted by position sensor Drawing board displacement data, when drawing boards is rotated or moved relative to the content of pages shown on computer, drawing boards is relative to ground Positional information when also changing, rotary position information is known by position sensor and electricity is converted to by A/D converter Signal, then be transferred in microcontroller and debounce processing etc. is carried out to the electric signal, signal is passed into data processing mould by microcontroller Block, so that it is consistent with drawing boards rotationally-varying further to realize that content of pages that computer shows occurs, and control power supply controls Device protects the circuit safety of drawing boards;The invention, principle setting is scientific and reasonable, can measure the position letter of drawing boards well Breath, has larger good protective effect to drawing boards.
As the further optimization of such scheme, the position sensor include velocity sensor, acceleration transducer and Angular-rate sensor;Velocity sensor, acceleration transducer and the angular-rate sensor electrically connects with A/D converter Connect.The position of drawing boards, combine-painting are more fully sensed by velocity sensor, acceleration transducer and angular-rate sensor Speed, acceleration and angular speed data of the pen on drawing boards, and it is transferred to master after these data are changed by A/D converter Controller processing, obtains more accurate position data, convenient to carry out follow-up position adjustment process.
As the further optimization of such scheme, the power-supply controller of electric includes reset circuit, the data processing mould The signal input part of the first signal output part connection reset circuit of block.When the electric signal of measuring circuit measurement exceedes predetermined value When, controllable power resets, and plays the role of protecting drawing boards circuit, protects drawing boards to greatest extent.
As the further optimization of such scheme, Signal-regulated kinase is further included, the Signal-regulated kinase is arranged on In measuring circuit, and the signal input part of the secondary signal output terminal connection Signal-regulated kinase of data processing module, signal tune Manage the signal input part of the signal output part connection measuring circuit of module.When the electric signal of measuring circuit measurement exceedes predetermined value When, Signal-regulated kinase modulate circuit, correcting circuit deviation, the image display for making reading drawing pen paint can also be passed through More precisely, the signal such as the distance between the drawing pen received and drawing boards, angle, dynamics is more accurate.
The present invention also provides a kind of measuring method for measuring distance between drawing boards and drawing pen, its concrete technical scheme is such as Under:
A kind of measuring method for measuring distance between drawing boards and drawing pen, comprises the following steps:
A, presetting reference signal amplitude in the host controller;
B, when drawing pen is when closer or far from drawing boards, measuring circuit measures the reality output of drawing boards receiving circuit Signal amplitude;
C, according to real output signal amplitude, corresponding to the rated output signal amplitude of real output signal amplitude and master Pre-set reference signal amplitude in controller, determines the distance of drawing pen and drawing boards.
It is further comprising the steps of between the step a and step b as the further optimization of such scheme:
Master controller sends measuring signal, and according to measuring signal, measures amplification factor;
According to measuring signal and amplification factor, rated output signal amplitude corresponding with amplification factor is measured.
In the present invention, when docking received electric signal using gain-adjusted and being adjusted, by will be a certain when inscribe and connect Receive real output signal (a corresponding specific amplification factor, and the corresponding specified letter of the specific amplification factor for circuit Number amplitude) transform to as under a certain rated output signal amplitude with reference to signal amplitude, so that it is determined that having gone out drawing pen and having painted The distance between drawing board, overcoming can only determine drawing pen in two-dimensional space the defects of coordinate information in the prior art.
It is further comprising the steps of as the further optimization of such scheme:
Real output signal amplitude is transmitted to position sensor, position sensor by sense its speed, acceleration and Angular speed, microcontroller is transferred to after inductive signal is changed into electric signal by A/D converter;
After microcontroller carries out debounce processing, signal integration is transferred to data processing module, data processing module is according to letter Number strength control resets operation and signal condition.
When drawing boards changes relative to the content of pages shown on computer, drawing boards relative to ground positional information When also changing, position sensor senses that drawing boards is in the movement rail of rotation status and drawing pen in drawing boards Mark, and convert induction signals into electric signal and be sent to master controller, the electric signal is carried out by the microcontroller in master controller Debounce processing etc., so as to further realize content of pages generation and the change of drawing boards uniformity that computer is shown.
As the further optimization of such scheme, the method to image blur processing is further included, is comprised the following steps that:
Step 1, utilizes the pixel value and gray level image pixel of each passage of R, G, B of RGB image in Digital Image Processing Coloured image is converted into gray level image by the transformational relation of value, and formula is as follows:
Gray=R*0.3+G*0.59+B*0.11;
Step 2, using the Roberts operator edge detection technical roles in digital image processing method in gray level image The edge of image is obtained, different detective operators have different Model for Edge Detection, are calculated according to concrete model and intersect pixel Difference as current pixel value, the concrete model A used is:
E (i, j)=| F (i, j)-F (i+1, j+1) |+| F (i+1, j)-F (i, j+1) |;
Step 3, is filtered gray level image using high pass/low pass filter processing to construct the ginseng of image to be measured Image is examined, using 3*3 mean filters, using each pixel of Filtering Template traversing graph picture, is every time placed at model A centers currently Pixel, is newly worth, Model B is using the average value of all pixels in model A as current pixel:19×111111111---;
Step 4, calculates before and after image filtering each edge half-tone information respectively, the image F to be measured systems before filtering process Meter information is sum_orig, and the reference picture F2 statistical informations after filtering process are sum_fi l ter, and specific formula for calculation is such as Under:
; Wherein, w1 and w2 be according to a distance from center pixel set weights, w1=1,
Step 5, the ratio for the image filtering front and rear edges grey-level statistics that step 4 is drawn are adjusted as fuzziness Scope, takes larger for denominator, and less is molecule, keeps the value between 0 to 1;
Step 6, according to the DMOS scopes of the best visual effect draw a corresponding fuzziness measured value range [min, max];
Step 7, image blur adjustment, if image blur adjusting range is less than min, the front and rear change of image filtering is very Greatly, original image excessively sharpens, then is filtered adjustment using low-pass filter;If more than max, the front and rear change of image filtering is very Small, original image is excessively fuzzy, then is filtered adjustment using high-pass filter.
The present invention uses image blur processing method, and different from traditional method, spirogram to be measured is constructed using wave filter The reference picture of picture, calculates the ratio of image border statistical information before and after changing as measurement index;Its principle is simple, realizes The content independence and real-time of image blur measurement, can quick and precisely measure the fuzziness between more any image.
The beneficial effects of the invention are as follows:
1st, realize the measurement to distance between drawing boards and drawing pen, according to movement of the drawing pen on drawing boards, determine Motion track of the drawing pen on drawing boards, pressure size that drawing boards is born and inclination angle of drawing pen etc., and it is comprehensive this A little information, so as to fulfill the purpose of drawing.
2nd, the position of drawing boards is more fully sensed by velocity sensor, acceleration transducer and angular-rate sensor, Speed, acceleration and angular speed data of the combine-painting pen on drawing boards, and after these data are changed by A/D converter Master controller processing is transferred to, obtains more accurate position data, it is convenient to carry out follow-up position adjustment process.
3rd, when the electric signal of measuring circuit measurement exceedes predetermined value, controllable power resets, and plays protection drawing boards electricity The effect on road, protects drawing boards to greatest extent;Can also by Signal-regulated kinase modulate circuit, correcting circuit deviation, Make the image display that reading drawing pen is painted more accurate, the distance between drawing pen and drawing boards for receiving, angle, power The signals such as degree are more accurate.
4th, the principle of the invention is set scientific and reasonable, can measure the positional information of drawing boards well, and make content with painting Unanimously rotationally-varying occurs for drawing board, has larger good protective effect to drawing boards.
5th, when the present invention is docked received electric signal using gain-adjusted and is adjusted, by will be a certain when inscribe reception electricity The real output signal on road is transformed to as under a certain rated output signal amplitude with reference to signal amplitude, is painted so that it is determined that having gone out The distance between paintbrush and drawing boards, overcome can only determine in the prior art drawing pen in two-dimensional space coordinate information lack Fall into.
6th, image blur processing method of the invention, the reference picture of image to be measured is constructed using wave filter, is calculated The ratio of image border statistical information is as measurement index before and after change;Its principle is simple, realizes image blur measurement Content independence and real-time, can quick and precisely measure the fuzziness between more any image.
Brief description of the drawings
Fig. 1 is the signal catenation principle that the drawing boards of distance between drawing boards and drawing pen is measured described in the embodiment of the present invention Figure;
Fig. 2 is the flow chart that the measuring method of distance between drawing boards and drawing pen is measured described in the embodiment of the present invention.
Description of reference numerals:
10- measuring circuits;20- position sensors;201- velocity sensors;202- acceleration transducers;203- angular speed Sensor;30- master controllers;301- microcontrollers;302- data processing modules;303-A/D converters;40- power-supply controller of electric; 401- reset circuits;50- Signal-regulated kinases.
Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Embodiment 1
As shown in Figure 1, a kind of drawing boards for measuring distance between drawing boards and drawing pen, including measuring circuit 10, position Sensor 20, master controller 30 and power-supply controller of electric 40, the position sensor 20 are welded in measuring circuit 10, and with it is described Master controller 30 is electrically connected, and the master controller 30 includes microcontroller 301, data processing module 302 and A/D converter 303, The signal input part of the signal output part link position sensor 20 of the measuring circuit 10, the signal output of position sensor 20 The signal input part of end connection A/D converter 303, the signal of the signal output part connection microcontroller 301 of A/D converter 303 are defeated Enter end, the signal input part of the signal output part connection data processing module 302 of microcontroller 301, the of data processing module 302 One signal output part connects the signal input part of power-supply controller of electric 40.
The present invention can regulate and control position sensor 20 by the master controller 30 for Board position of painting, and pass through position sensor 20 Drawing boards displacement data is drawn, when drawing boards is rotated or moved, drawing boards phase relative to the content of pages shown on computer When also changing for the positional information on ground, rotary position information is known by position sensor 20 and passes through A/D converter 303 are converted to electric signal, then are transferred in microcontroller 301 and carry out debounce processing etc. to the electric signal, by microcontroller 301 by signal Data processing module 302 is passed to, so as to further realize that the rotation consistent with drawing boards occurs for the content of pages that computer is shown Change, and control power-supply controller of electric 40 to protect the circuit safety of drawing boards;The invention, principle setting is scientific and reasonable, can be very The positional information of drawing boards is measured well, and there is larger good protective effect to drawing boards.
Embodiment 2
The present embodiment is on the basis of embodiment 1, and the position sensor 20 includes velocity sensor 201, acceleration passes Sensor 202 and angular-rate sensor 203;Velocity sensor 201, acceleration transducer 202 and the angular-rate sensor 203 It is electrically connected with A/D converter 303.By velocity sensor 201, acceleration transducer 202 and angular-rate sensor 203 more The position of comprehensive sensing drawing boards, speed, acceleration and angular speed data of the combine-painting pen on drawing boards, and by these Data are transferred to master controller 30 after being changed by A/D converter 303 and handle, and obtain more accurate position data, convenient to carry out Follow-up position adjustment process.
Embodiment 3
For the present embodiment on the basis of embodiment 1, the power-supply controller of electric 40 includes reset circuit 401, at the data Manage the signal input part of the first signal output part connection reset circuit 401 of module 302.When the electric signal of measuring circuit measurement 10 During more than predetermined value, controllable power resets, and plays the role of protecting drawing boards circuit, protects drawing boards to greatest extent.
Embodiment 4
The present embodiment further includes Signal-regulated kinase 50 on the basis of embodiment 1, and the Signal-regulated kinase 50 is set In in measuring circuit 10, and the signal input of the secondary signal output terminal connection Signal-regulated kinase 50 of data processing module 302 End, the signal input part of the signal output part connection measuring circuit 10 of Signal-regulated kinase 50.When the electricity that measuring circuit 10 measures When signal exceedes predetermined value, can also by 50 modulate circuit of Signal-regulated kinase, correcting circuit deviation, make reading drawing pen into The image display of row drawing is more accurate, and the signal such as the distance between the drawing pen received and drawing boards, angle, dynamics is more accurate Really.
Embodiment 5
The present embodiment is the method for embodiment 1, as shown in Fig. 2, a kind of survey for measuring distance between drawing boards and drawing pen Amount method, comprises the following steps:
A, the presetting reference signal amplitude in master controller 30;
B, when drawing pen is when closer or far from drawing boards, the reality that measuring circuit 10 measures drawing boards receiving circuit is defeated Go out signal amplitude;
C, according to real output signal amplitude, corresponding to the rated output signal amplitude of real output signal amplitude and master Pre-set reference signal amplitude in controller 30, determines the distance of drawing pen and drawing boards.
Embodiment 6
The present embodiment is further comprising the steps of between the step a and step b on the basis of embodiment 5:
Master controller 30 sends measuring signal, and according to measuring signal, measures amplification factor;
According to measuring signal and amplification factor, rated output signal amplitude corresponding with amplification factor is measured.
In the present invention, when docking received electric signal using gain-adjusted and being adjusted, by will be a certain when inscribe and connect Receive real output signal (a corresponding specific amplification factor, and the corresponding specified letter of the specific amplification factor for circuit Number amplitude) transform to as under a certain rated output signal amplitude with reference to signal amplitude, so that it is determined that having gone out drawing pen and having painted The distance between drawing board, overcoming can only determine drawing pen in two-dimensional space the defects of coordinate information in the prior art.
Embodiment 7
The present embodiment is further comprising the steps of on the basis of embodiment 5:
Real output signal amplitude is transmitted to position sensor 20, position sensor 20 is by sensing its speed, accelerating Degree and angular speed, inductive signal is changed into after electric signal by A/D converter 303 and is transferred to microcontroller 301;
After microcontroller carries out debounce processing, signal integration is transferred to data processing module 302, data processing module 302 Controlled according to signal strength and reset operation and signal condition.
When drawing boards changes relative to the content of pages shown on computer, drawing boards relative to ground positional information When also changing, position sensor 20 senses that drawing boards is in the movement rail of rotation status and drawing pen in drawing boards Mark, and convert induction signals into electric signal and be sent to master controller 30, by the microcontroller 301 in master controller 30 to the telecommunications Number debounce processing etc. is carried out, so as to further realize that content of pages that computer show occurs and the change of drawing boards uniformity.
Embodiment 8
The present embodiment further includes the method to image blur processing, comprises the following steps that on the basis of embodiment 5:
Step 1, utilizes the pixel value and gray level image pixel of each passage of R, G, B of RGB image in Digital Image Processing Coloured image is converted into gray level image by the transformational relation of value, and formula is as follows:
Gray=R*0.3+G*0.59+B*0.11;
Step 2, using the Roberts operator edge detection technical roles in digital image processing method in gray level image The edge of image is obtained, different detective operators have different Model for Edge Detection, are calculated according to concrete model and intersect pixel Difference as current pixel value, the concrete model A used is:
E (i, j)=| F (i, j)-F (i+1, j+1) |+| F (i+1, j)-F (i, j+1) |;
Step 3, is filtered gray level image using high pass/low pass filter processing to construct the ginseng of image to be measured Image is examined, using 3*3 mean filters, using each pixel of Filtering Template traversing graph picture, is every time placed at model A centers currently Pixel, is newly worth, Model B is using the average value of all pixels in model A as current pixel:19×111111111---;
Step 4, calculates before and after image filtering each edge half-tone information respectively, the image F to be measured systems before filtering process Meter information is sum_orig, and the reference picture F2 statistical informations after filtering process are sum_fi l ter, and specific formula for calculation is such as Under:
; Wherein, w1 and w2 be according to a distance from center pixel set weights, w1=1,
Step 5, the ratio for the image filtering front and rear edges grey-level statistics that step 4 is drawn are adjusted as fuzziness Scope, takes larger for denominator, and less is molecule, keeps the value between 0 to 1;
Step 6, according to the DMOS scopes of the best visual effect draw a corresponding fuzziness measured value range [min, max];
Step 7, image blur adjustment, if image blur adjusting range is less than min, the front and rear change of image filtering is very Greatly, original image excessively sharpens, then is filtered adjustment using low-pass filter;If more than max, the front and rear change of image filtering is very Small, original image is excessively fuzzy, then is filtered adjustment using high-pass filter.
The present invention uses image blur processing method, and different from traditional method, spirogram to be measured is constructed using wave filter The reference picture of picture, calculates the ratio of image border statistical information before and after changing as measurement index;Its principle is simple, realizes The content independence and real-time of image blur measurement, can quick and precisely measure the fuzziness between more any image.
Embodiment described above only expresses the embodiment of the present invention, its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.

Claims (8)

1. a kind of drawing boards for measuring distance between drawing boards and drawing pen, it is characterised in that including measuring circuit, position sensing Device, master controller and power-supply controller of electric, the position sensor are welded in measuring circuit, and are electrically connected with the master controller Connect, the master controller includes microcontroller, data processing module and A/D converter, and the signal output part of the measuring circuit connects Meet the signal input part of position sensor, the signal input part of the signal output part connection A/D converter of position sensor, A/D The signal input part of the signal output part connection microcontroller of converter, the signal output part connection data processing module of microcontroller Signal input part, the signal input part of the first signal output part connection power-supply controller of electric of data processing module.
2. the drawing boards of distance between measurement drawing boards according to claim 1 and drawing pen, it is characterised in that institute's rheme Putting sensor includes velocity sensor, acceleration transducer and angular-rate sensor;The velocity sensor, acceleration sensing Device and angular-rate sensor are electrically connected with A/D converter.
3. the drawing boards of distance between measurement drawing boards according to claim 1 and drawing pen, it is characterised in that the electricity Source controller includes reset circuit, the signal input of the first signal output part connection reset circuit of the data processing module End.
4. the drawing boards of distance between measurement drawing boards according to claim 1 and drawing pen, it is characterised in that further include Signal-regulated kinase, the Signal-regulated kinase is arranged in measuring circuit, and the secondary signal output terminal of data processing module Connect the signal input part of Signal-regulated kinase, the signal input of the signal output part connection measuring circuit of Signal-regulated kinase End.
5. a kind of measuring method for measuring distance between drawing boards and drawing pen, comprises the following steps:
A, presetting reference signal amplitude in the host controller;
B, when drawing pen is when closer or far from drawing boards, measuring circuit measures the real output signal of drawing boards receiving circuit Amplitude;
C, according to real output signal amplitude, corresponding to the rated output signal amplitude of real output signal amplitude and main control Pre-set reference signal amplitude in device, determines the distance of drawing pen and drawing boards.
6. the measuring method of distance between measurement drawing boards according to claim 5 and drawing pen, it is characterised in that in institute State further comprising the steps of between step a and step b:
Master controller sends measuring signal, and according to measuring signal, measures amplification factor;
According to measuring signal and amplification factor, rated output signal amplitude corresponding with amplification factor is measured.
7. the measuring method of distance between measurement drawing boards according to claim 5 and drawing pen, it is characterised in that also wrap Include following steps:
Real output signal amplitude is transmitted to position sensor, position sensor is by sensing its speed, acceleration and angle speed Degree, microcontroller is transferred to after inductive signal is changed into electric signal by A/D converter;
After microcontroller carries out debounce processing, signal integration is transferred to data processing module, data processing module is strong according to signal Degree control resets operation and signal condition.
8. the measuring method of distance between measurement drawing boards according to claim 5 and drawing pen, it is characterised in that also wrap The method to image blur processing is included, is comprised the following steps that:
Step 1, utilizes pixel value and the gray level image pixel value of each passage of R, G, B of RGB image in Digital Image Processing Coloured image is converted into gray level image by transformational relation, and formula is as follows:
Gray=R*0.3+G*0.59+B*0.11;
Step 2, is obtained using the Roberts operator edge detections technical role in digital image processing method in gray level image The edge of image, different detective operators have different Model for Edge Detection, and the difference for intersecting pixel is calculated according to concrete model It is allocated as current pixel value, the concrete model A used is:
E (i, j)=| F (i, j)-F (i+1, j+1) |+| F (i+1, j)-F (i, j+1) |;
Step 3, is filtered gray level image using high pass/low pass filter processing to construct the reference chart of image to be measured Picture, using 3*3 mean filters, using each pixel of Filtering Template traversing graph picture, is placed in current picture by model A centers every time Element, is newly worth, Model B is using the average value of all pixels in model A as current pixel:1 9×1 1 1 1 1 1 1 1 1---;
Step 4, calculates before and after image filtering each edge half-tone information respectively, the image F to be measured statistics letters before filtering process Cease for sum_orig, the reference picture F2 statistical informations after filtering process are sum_filter, and specific formula for calculation is as follows:
<mrow> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>_</mo> <mi>o</mi> <mi>r</mi> <mi>i</mi> <mi>g</mi> <mo>=</mo> <mi>w</mi> <mn>1</mn> <mo>+</mo> <mfenced open = "(" close = ")"> <mtable> <mtr> <mtd> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>|</mo> </mtd> </mtr> </mtable> </mfenced> <mo>+</mo> <mi>w</mi> <mn>2</mn> <mo>&amp;times;</mo> <mfenced open = "(" close = ")"> <mtable> <mtr> <mtd> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> </mtable> </mfenced> <mo>,</mo> </mrow>
<mrow> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>_</mo> <mi>f</mi> <mi>i</mi> <mi>l</mi> <mi>t</mi> <mi>e</mi> <mi>r</mi> <mo>=</mo> <mi>w</mi> <mn>1</mn> <mo>&amp;times;</mo> <mfenced open = "(" close = ")"> <mtable> <mtr> <mtd> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>|</mo> </mtd> </mtr> </mtable> </mfenced> <mo>+</mo> <mi>w</mi> <mn>2</mn> <mo>&amp;times;</mo> <mfenced open = "(" close = ")"> <mtable> <mtr> <mtd> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> <mtr> <mtd> <mo>+</mo> <mo>|</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>-</mo> <mi>F</mi> <mn>2</mn> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>|</mo> </mtd> </mtr> </mtable> </mfenced> </mrow>
Wherein, w1 and w2 be according to a distance from center pixel set weights, w1=1,
Step 5, the ratio for the image filtering front and rear edges grey-level statistics that step 4 is drawn adjust model as fuzziness Enclose, take larger for denominator, less is molecule, keeps the value between 0 to 1;
Step 6, a corresponding fuzziness measured value range [min, max] is drawn according to the DMOS scopes of the best visual effect;
Step 7, image blur adjustment, if image blur adjusting range is less than min, the front and rear change of image filtering is very big, former Image excessively sharpens, then is filtered adjustment using low-pass filter;If more than max, varied less before and after image filtering, artwork As excessively obscuring, then adjustment is filtered using high-pass filter.
CN201711251737.0A 2017-12-01 2017-12-01 Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen Pending CN107957796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711251737.0A CN107957796A (en) 2017-12-01 2017-12-01 Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711251737.0A CN107957796A (en) 2017-12-01 2017-12-01 Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen

Publications (1)

Publication Number Publication Date
CN107957796A true CN107957796A (en) 2018-04-24

Family

ID=61963311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711251737.0A Pending CN107957796A (en) 2017-12-01 2017-12-01 Measure the drawing boards and its measuring method of distance between drawing boards and drawing pen

Country Status (1)

Country Link
CN (1) CN107957796A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751196A (en) * 2008-12-22 2010-06-23 汉王科技股份有限公司 Method for measuring distance between drawing pen and drawing board
CN101900614A (en) * 2009-05-25 2010-12-01 汉王科技股份有限公司 Method and device for measuring pressure inductance of electromagnetic plate
CN102150197A (en) * 2008-07-31 2011-08-10 株式会社宜客斯 Image correction data generation system, image correction data generation method, image correction data generation program, and image correction circuit
JP2014111345A (en) * 2012-01-31 2014-06-19 Pentel Corp Writing instrument
CN106371627A (en) * 2016-08-26 2017-02-01 郭曼 Control system for measuring position information of drawing board

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150197A (en) * 2008-07-31 2011-08-10 株式会社宜客斯 Image correction data generation system, image correction data generation method, image correction data generation program, and image correction circuit
CN101751196A (en) * 2008-12-22 2010-06-23 汉王科技股份有限公司 Method for measuring distance between drawing pen and drawing board
CN101900614A (en) * 2009-05-25 2010-12-01 汉王科技股份有限公司 Method and device for measuring pressure inductance of electromagnetic plate
JP2014111345A (en) * 2012-01-31 2014-06-19 Pentel Corp Writing instrument
CN106371627A (en) * 2016-08-26 2017-02-01 郭曼 Control system for measuring position information of drawing board

Similar Documents

Publication Publication Date Title
CN104848851B (en) Intelligent Mobile Robot and its method based on Fusion composition
CN105700532B (en) The Intelligent Mobile Robot navigator fix control method of view-based access control model
CN101814185B (en) Line structured light vision sensor calibration method for micro-size measurement
CN106607907B (en) A kind of moving-vision robot and its investigating method
CN106595630B (en) It is a kind of that drawing system and method are built based on laser navigation Intelligent Mobile Robot
CN104299240A (en) Method and system for calibrating camera for lane offset early warning
CN106371627A (en) Control system for measuring position information of drawing board
CN112912932B (en) Calibration method and device for vehicle-mounted camera and terminal equipment
CN108415600A (en) Time writer handwriting aligning method and device
CN104504680A (en) Inverse perspective calibration method used for intelligent vehicle
CN106774316A (en) A kind of trace information process control method of AGV intelligent vehicles
CN107065858A (en) Crusing robot air navigation aid based on ultra wide band
CN111539303B (en) Monocular vision-based vehicle driving deviation early warning method
CN103150721A (en) Mistaking identification point removal method of scanner calibration plate image and calibration plate
CN106157311A (en) Scaling method and the device of system is identified for vehicle ADAS
CN104167001B (en) Large-visual-field camera calibration method based on orthogonal compensation
CN105181109A (en) Wire ice-shedding skip trajectory binocular measurement method
CN104123725B (en) A kind of computational methods of single line array camera homography matrix H
CN106527762A (en) Cursor coordinate determining method, cursor coordinate determining device and mouse control system
CN106504287A (en) Monocular vision object space alignment system based on template
CN103646377B (en) Coordinate conversion method and device
CN103810676A (en) Method for monitoring running speed of steel pipe
CN106651957A (en) Monocular vision target space positioning method based on template
CN106408589B (en) Based on the vehicle-mounted vehicle movement measurement method for overlooking camera
CN104268551A (en) Steering angle control method based on visual feature points

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180424

RJ01 Rejection of invention patent application after publication