Input equipment, marking lengths acquisition methods, device and storage mediumTechnical field
The invention belongs to field of computer technology more particularly to a kind of input equipment, marking lengths acquisition methods, device andStorage medium.
Background technique
The lines of standardized measured length on paper or input equipment, for example, straight line, curve, are inevitable in the work such as mappingThe operation being related to.When crossing operation, people assist usually using scoring tool under normal circumstances, for example, using scaleRuler is crossed, when people need to pay attention to following item before using graduated scale: observation graduation mark, range, scale division value are checked and are drawnWhen line length, sight have to it is vertical with ruler face, it is then more troublesome when especially wanting input curve.
It can be seen that points for attention need manual-alignment, reading etc. than various when using graduated scale secondary scribe, thisBeing likely to result in marking lengths and actual demand, there are deviation even mistakes, to reduce the working efficiency of people.
Summary of the invention
The purpose of the present invention is to provide a kind of input equipment, marking lengths acquisition methods, device and storage mediums, it is intended toIt solves the problems, such as to be difficult to obtain due to existing auxiliary input device to obtain marking lengths in time.
On the one hand, the present invention provides a kind of input equipment, the input equipment includes:
Operation layer, for receiving operational motion of the user on the input equipment;
The piezoelectric transducer being bonded with the operation layer, for being supervised to user in the operational motion of the operation layerIt surveys;And
The microprocessor being connect with the piezoelectric transducer, for passing through when the linear measure longimetry for receiving user is requestedThe piezoelectric transducer obtains user's corresponding resistance variations of scribing operation in preset time period on the operation layer, according to instituteState line length and output that resistance variations calculate the scribing operation.
Preferably, the input equipment further include:
The display screen connecting with the microprocessor, the lines for showing that the output microprocessor is calculated are longDegree;And/or
It is long to export the lines that the microprocessor is calculated for sound for the loudspeaker connecting with the microprocessorDegree.
Preferably, the input equipment further include:
The request input part being connect with the microprocessor, for receiving the linear measure longimetry request of user's input.
On the other hand, the present invention provides the marking lengths acquisition methods based on above-mentioned input equipment, which comprises
Operational motion of the user on the input equipment is received by the operation layer;
The user is monitored in the operational motion of the operation layer by the piezoelectric transducer;
When the microprocessor receives the linear measure longimetry request of user, the use is obtained by the piezoelectric transducerFamily corresponding resistance variations of scribing operation in preset time period on the operation layer calculate described draw according to the resistance variationsLine operation line length and output.
Preferably, the input equipment includes the display screen connecting with the microprocessor, according to the resistance variations meterThe step of calculating the line length of the scribing operation and output, comprising:
The line length that the microprocessor is calculated is exported by display screen display.
Preferably, the input equipment includes the loudspeaker connecting with the microprocessor, according to the resistance variations meterThe step of calculating the line length of the scribing operation and output, comprising:
The line length that the microprocessor is calculated is exported by the loudspeaker sound.
Preferably, the input equipment includes the request input part connecting with the microprocessor, and the method is also wrappedIt includes:
The linear measure longimetry request of user's input is received by the request input part.
Preferably, it is crossed and is grasped in preset time period on the operation layer by the piezoelectric transducer acquisition userThe step of making corresponding resistance variations, comprising:
By the user in the period at piezoelectric transducer acquisition current time to previous moment of pausing describedThe corresponding resistance variations of scribing operation on operation layer.
On the other hand, the present invention also provides the marking lengths acquisition device based on above-mentioned input equipment, described device packetsIt includes:
Receiving unit is acted, for receiving operational motion of the user on the input equipment by the operation layer;
Act monitoring unit, for by the piezoelectric transducer to the user the operation layer operational motion intoRow monitoring;And
Length output unit passes through the pressure when linear measure longimetry for receiving user when the microprocessor is requestedElectric transducer obtains the user corresponding resistance variations of scribing operation in preset time period on the operation layer, according to describedResistance variations calculate the line length of the scribing operation and output.
On the other hand, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediumsIt is stored with computer program, the step of computer program realizes method as described above when being executed by processor.
Input equipment provided by the invention includes operation layer, the piezoelectric transducer being bonded with operation layer and and piezoelectric sensingThe microprocessor of device connection, when piezoelectric transducer monitors that user when the operational motion of operation layer is scribing operation, passes through pressureElectric transducer obtains user's corresponding resistance variations of scribing operation in preset time period on operation layer, is calculated according to resistance variationsThe line length of the scribing operation and output simplify to obtain length and the output of scribing line in time in user's scribing lineThe input mode of regular length lines, enriches the function of input equipment, so improve input equipment intelligence degree andUser experience.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the input equipment that the embodiment of the present invention one provides;
Fig. 2 is the preferred structure schematic diagram for the input equipment that the embodiment of the present invention one provides;
Fig. 3 is the implementation flow chart of the marking lengths acquisition methods provided by Embodiment 2 of the present invention based on input equipment;And
Fig. 4 is the structural schematic diagram of the marking lengths acquisition device for the input equipment that the embodiment of the present invention three provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
Specific implementation of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows the structure of the input equipment of the offer of the embodiment of the present invention one, for ease of description, illustrates only and thisThe relevant part of inventive embodiments.
The piezoelectric transducer 12 that input equipment 1 provided in an embodiment of the present invention includes operation layer 11, is bonded with operation layer 11And the microprocessor 13 being connect with piezoelectric transducer 12, wherein operation layer 11 is for receiving user on input equipment 11Operational motion, piezoelectric transducer 12 is for being monitored user in the operational motion of operation layer 11, and microprocessor 13 is for working asWhen receiving the linear measure longimetry request of user, user is obtained by piezoelectric transducer and is crossed in preset time period on operation layer 11Corresponding resistance variations are operated, line length and the output of scribing operation are calculated according to resistance variations.As illustratively, ifCorresponding 0.1 ohm of the resistance value of 0.1mm knows that marking lengths are 1mm then when obtained resistance value is 1 ohm.
In embodiments of the present invention, operation layer receives the operational motion of user on the input, and piezoelectric transducer is then rightUser is monitored in the operational motion of operation layer, when microprocessor receives the linear measure longimetry request of user, passes through piezoelectricitySensor obtains user's corresponding resistance variations of scribing operation in preset time period on operation layer, and then according to resistance variations meterThe line length of scribing operation and output are calculated, to obtain length and the output of scribing line in time in user's scribing line, is simplified solidThe input process of measured length lines, enriches the function of input equipment, and then improves the intelligence degree and use of input equipmentFamily experience.
Preferably, the scribing operation in preset time period can be current time (linear measure longimetry request be received whenCarve) to the corresponding resistance variations of user's scribing operation on operation layer in the period at previous moment of pausing, thus automatic and accurateGround determines that user wants the period of precise scoring lines length, and then automatically and accurately determines the period corresponding marking lengths.Wherein, linear measure longimetry request can be triggered by predeterminable event and be generated, it is preferable that predeterminable event is the click more than preset pressurePressing, scribing line pressing, to realize automatically entering for linear measure longimetry request.
As shown in Figure 2, it is preferable that input equipment 1 further includes the display screen 14 connecting with microprocessor 13, defeated for showingThe line length that microprocessor 13 is calculated out, so that the length of the inputted lines of user is directly exported by display screen,In, which can be LED display.Further, display screen 14 is also used to export user when this is default on operation layerBetween the lines preview of the corresponding scribing line of scribing operation or input in section, oneself drawn consequently facilitating user visually directly acquiresLines shape and length.
Preferably, input equipment 1 further includes the loudspeaker 15 connecting with microprocessor 13, exports microprocessor for soundThe line length being calculated, to directly export the length of the inputted lines of user, further, loudspeaker 15 by soundIt is also used to the stripe shape of sound output user corresponding scribing line of scribing operation or input in the preset time period on operation layer,Consequently facilitating user is from the shape and length for acoustically directly acquiring the lines oneself drawn.
Preferably, input equipment 1 further includes the request input part 16 connecting with microprocessor 13, defeated for receiving userThe linear measure longimetry request entered improves input efficiency to simplify the input of linear measure longimetry request.
Embodiment two:
Fig. 3 shows the reality provided by Embodiment 2 of the present invention based on the marking lengths acquisition methods for implementing an input equipmentExisting process, for ease of description, only parts related to embodiments of the present invention are shown, and details are as follows:
In step S301, the operational motion of user on the input is received by operation layer.
Input equipment in the embodiment of the present invention, which includes operation layer, the piezoelectric sensing that is bonded with operation layerDevice and the microprocessor connecting with piezoelectric transducer receive the operational motion of user on the input by operation layer,In, operation layer can be touch screen, and piezoelectric transducer is then bonded setting side under a touch screen, in order to which user is in the same of operationWhen, the relevant information of operation is obtained in time, for example, the line style of type and length of input.
In step s 302, user is monitored in the operational motion of operation layer by piezoelectric transducer.
In embodiments of the present invention, user is monitored in the operational motion of operation layer by piezoelectric transducer, specificallyGround, piezoelectric transducer generates charge in stress rear surface, and then this charge amplifies through charge amplifier and measuring circuit and transformationCorresponding electricity output is obtained after impedance, to realize the monitoring of user's operation movement.The operational motion of user can be scribing line,The operation such as click.
In step S303, when microprocessor receives the linear measure longimetry request of user, obtained by piezoelectric transducerUser's corresponding resistance variations of scribing operation in preset time period on operation layer, the line of scribing operation is calculated according to resistance variationsLength simultaneously exports.
In embodiments of the present invention, the linear measure longimetry request of user can be triggered by predeterminable event generates, it is preferable that pre-If event is more than the click pressing of preset pressure, scribing line pressing, to realize automatically entering for linear measure longimetry request.Work as inputWhen equipment includes the request input part connecting with microprocessor, the linear measure longimetry of user's input is received by request input partRequest, such user simplify the input of linear measure longimetry request, improve request without remembering different request input modesThe response speed that input efficiency and line length obtain.Preferably, the user is being obtained described by piezoelectric transducerOn operation layer in preset time period when the corresponding resistance variations of scribing operation, current time is obtained to previous by piezoelectric transducerThe corresponding resistance variations of user's scribing operation on operation layer in the period at pause moment, to automatically and accurately determine userWant the period of precise scoring lines length, and then automatically and accurately determines the period corresponding marking lengths.
Preferably, when input equipment includes the display screen connecting with microprocessor, then micro- by display screen display outputThe line length that processor is calculated, to directly export the length of the inputted lines of user by display screen, wherein this is aobviousDisplay screen can be LED display.Further, while exporting line length, user is also also exported by display screen and is being graspedMake the lines preview of the corresponding scribing line of scribing operation or input in the preset time period on layer, consequently facilitating user is visually straightObtain the shape and length for being derived from the lines that oneself draws.
Preferably, when input equipment includes the loudspeaker connecting with the microprocessor, then defeated by loudspeaker soundThe line length that microprocessor is calculated out, to directly export the length of the inputted lines of user by sound, furtherGround, loudspeaker be also used to sound output user on operation layer in the preset time period scribing operation it is corresponding scribing line or inputStripe shape, consequently facilitating user is from the shape and length for acoustically directly acquiring the lines oneself drawn.
Embodiment three:
Fig. 4 shows the knot of the marking lengths acquisition device of input equipment in the embodiment one of the offer of the embodiment of the present invention threeStructure, for ease of description, only parts related to embodiments of the present invention are shown, including:
Receiving unit 41 is acted, for receiving operational motion of the user on the input equipment by the operation layer;
Act monitoring unit 42, for by the piezoelectric transducer to the user the operation layer operational motionIt is monitored;And
Length output unit 43, when the linear measure longimetry for receiving user when the microprocessor is requested, by describedPiezoelectric transducer obtains the user corresponding resistance variations of scribing operation in preset time period on the operation layer, according to instituteState line length and output that resistance variations calculate the scribing operation.
In embodiments of the present invention, each unit of marking lengths acquisition device can be real by corresponding hardware or software unitExisting, each unit can be independent soft and hardware unit, also can integrate as a soft and hardware unit, herein not to limit thisInvention, the specific embodiment of each unit can refer to the description of previous embodiment, and details are not described herein.
Example IV:
In embodiments of the present invention, a kind of computer readable storage medium is provided, which depositsComputer program is contained, the step in above method embodiment is realized when which is executed by processor, for example, Fig. 3Shown step S301 to S303.Alternatively, the computer program is realized in above-mentioned each Installation practice respectively when being executed by processorThe function of unit, such as the function of unit 41 to 43 shown in Fig. 4.
In embodiments of the present invention, operation layer receives the operational motion of user on the input, and piezoelectric transducer is then rightUser is monitored in the operational motion of operation layer, when microprocessor receives the linear measure longimetry request of user, passes through piezoelectricitySensor obtains user's corresponding resistance variations of scribing operation in preset time period on operation layer, and then according to resistance variations meterThe line length of scribing operation and output are calculated, to obtain length and the output of scribing line in time in user's scribing line, is simplified solidThe input process of measured length lines, enriches the function of input equipment, and then improves the intelligence degree and use of input equipmentFamily experience.
The computer readable storage medium of the embodiment of the present invention may include can carry computer program code anyEntity or device, recording medium, for example, the memories such as ROM/RAM, disk, CD, flash memory.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionMade any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.