CN112651479A - Pen type line drawing counting method and device - Google Patents

Pen type line drawing counting method and device Download PDF

Info

Publication number
CN112651479A
CN112651479A CN201910961819.7A CN201910961819A CN112651479A CN 112651479 A CN112651479 A CN 112651479A CN 201910961819 A CN201910961819 A CN 201910961819A CN 112651479 A CN112651479 A CN 112651479A
Authority
CN
China
Prior art keywords
counting
signal
trigger signal
pen
effective
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
CN201910961819.7A
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.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201910961819.7A priority Critical patent/CN112651479A/en
Publication of CN112651479A publication Critical patent/CN112651479A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/08Design features of general application for actuating the drive
    • G06M1/10Design features of general application for actuating the drive by electric or magnetic means
    • G06M1/108Design features of general application for actuating the drive by electric or magnetic means by electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum

Abstract

The invention discloses a pen-type line drawing counting method and device, and relates to the field of detection counting appliances; the method and the device comprise the following steps: (1) setting an idle threshold of effective counting signal time; (2) detecting a counting trigger signal triggered by the acquisition pen core in real time; (3) extracting the idle time period of the non-trigger signal at the rear end of the counting trigger signal in real time and comparing the idle time period with a preset effective counting signal time idle threshold value; (4) in the trigger signal queue, signals meeting the condition that the idle time period of a non-trigger signal at the rear end of a counting trigger signal is greater than or equal to a preset effective counting signal time idle threshold value are effective trigger signals, data statistics is counted, and all other trigger signals which do not meet the condition are ignored; the count trigger signal that is ignored is not a fixed number, and therefore the number of small intervals of time that are ignored in front of the valid signal is also indeterminate; the invention can omit the repeated invalid counting signal, accurately count the drawn part or the part and avoid repeated counting; the operation is simple and effective.

Description

Pen type line drawing counting method and device
Technical Field
The invention relates to the field of pen type counting instruments, in particular to a pen type line drawing counting method and device.
Background
In daily life and production activities, counters are widely used, wherein the most common pen-type counter is that a pen core is triggered by a counting switch, and a counting value is correspondingly counted. However, when a part is drawn by a pen point of the pen-type counter and marked with a mark according to the drawing process requirement, the part can be repeatedly drawn, repaired and drawn once or for multiple times, and the counting statistics of the part which is completely operated and drawn up to the standard is needed; because the drawing action is unstable, the common pen-type counter can repeatedly count in the process of uncertainty, and the common pen-type counter can not meet the work requirement at all.
Therefore, it is desirable to provide a method and apparatus for counting drawn pencils to solve this problem.
Disclosure of Invention
The invention aims to provide a pen-type drawn line counting method and a pen-type drawn line counting device, wherein when a part is drawn by a pen point of a pen-type counter and marked according to the drawing process requirement, even if the part is repeatedly drawn, repaired and drawn for one time or more times, the part which is completely drawn up to the standard can be accurately counted and counted according to the requirement without repeated counting.
In order to achieve the purpose, the invention adopts the following technical scheme:
in the practical drawing counting application, the same part or part is drawn, in order to meet the drawing process requirement, the working requirement can not be met by drawing one stroke, and repeated drawing and repair drawing are possible; defining the action of drawing the same part or part for many times as an action string; triggering a counting signal by one drawing action, and triggering a motion string to generate a serial group of counting signals which only correspond to one part or part; based on this, the following method is provided:
a method of counting drawn lines on a pen, comprising:
(1) setting a time idle threshold value of a valid counting signal;
(2) detecting a counting trigger signal triggered by the acquisition pen core in real time;
(3) extracting the idle time period of the non-trigger signal at the rear end of the counting trigger signal in real time and comparing the idle time period with the preset time idle threshold of the effective counting signal;
(4) in the trigger signal queue, signals meeting the condition that the idle time period of a non-trigger signal at the rear end of the counting trigger signal is greater than or equal to the time idle threshold of a preset effective counting signal are effective trigger signals, data statistics is counted, and all other trigger signals which do not meet the condition are ignored.
In the above scheme (1), the time idle threshold of the effective counting signal is obtained by statistics according to the time interval characteristics between adjacent different operation strings, and needs to be counted, selected and set in advance before the counting operation; the action string is a combination of one or more actions operated by completely drawing the same marker, one operation action triggers one counting signal, and correspondingly, the action string triggers one or more counting signals; the time idle threshold setting principle of the effective counting signal is as follows: the time interval between adjacent individual actions in any operational action string < the time idle threshold of the valid count signal is less than or equal to the minimum of the time intervals between any two adjacent different operational action strings.
In the above aspect (2), the counting trigger signal is an electrical signal generated when the pen core triggers the counting switch during the writing operation.
In the above scheme (3), all the counting trigger signals are corresponding to a program for comparing the no-signal time period at the rear end of the trigger start signal with the time idle threshold of the valid counting signal.
In the above scheme (4), when the time of the non-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold of the effective counting signal, the counting trigger signal is ignored and is not counted; when the time of no trigger signal at the rear end of the counting trigger signal is more than or equal to the preset time idle threshold of the effective counting signal, the signal is regarded as an effective signal and is counted; the count trigger signal that is ignored is not of a fixed amount and therefore the amount of the short interval time that is ignored in front of the valid signal is also indeterminate.
The invention also discloses a pen-type line drawing counting device, which comprises: the pen comprises a shell, a counting switch, a pen core, a pen point, a circuit board, a processor, a display screen and a power supply; the counting switch, the circuit board and the processor are all arranged and fixed on the shell; the circuit board and the processor are respectively electrically connected with the counting switch, the display screen and the power supply; the pen core is close to the counting switch; the pen point and the pen core are fixed into a whole; holding the casing by hand, drawing the target object by operating the pen point, and reversely pushing the pen core to trigger the counting switch close to the pen core; after the counting switch is triggered, providing a trigger signal to the circuit board and the processor; the processor adopts the pen-type line drawing counting method, the idle time period of the non-trigger signal at the rear end of the counting trigger signal is extracted and compared with the preset time idle threshold of the effective counting signal, and the result is processed and displayed on the display screen.
In the above scheme, the counting switch can be a microswitch, a tact switch, a capacitive switch, a light sensing switch and other switches.
In the scheme, the pen core can be a marking pen with various colors or a colorless pen.
In the scheme, the display screen can be an LCD (liquid crystal display), an LED nixie tube screen or a computer display screen.
In the above scheme, the power supply can be a pressure power generation coil, a storage battery or a solar battery.
In the above scheme, the processor contains: setting a time idle threshold value of a valid counting signal; acquiring and extracting a program for comparing the idle time period of the non-trigger signal at the rear end of the counting trigger signal with a preset time idle threshold of the effective counting signal in real time; the comparison method comprises the following steps: when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold of the effective counting signal, the counting trigger signal is ignored and is not counted; when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is not less than the preset time idle threshold of the effective counting signal, the signal is taken as an effective signal and is counted; then all valid signal data are counted and sent to a display screen to be displayed.
The invention has the beneficial technical effects that:
when a part or a part is drawn by a pen point of a pen-type counter and marked according to the drawing process requirement, even if the part or the part is drawn repeatedly, repaired and drawn once or for multiple times, the part or the part which is completely drawn up to the standard can be counted and counted accurately according to the requirement without repeated counting. The counting requirements related to object drawing in production and life are met, and the working efficiency is improved.
Drawings
The invention is further illustrated by the following figures and examples.
Fig. 1 is a flow chart of a pen-type drawn line counting method.
Fig. 2 is a diagram of a trigger signal queue in a work operation.
The black points which are transversely arranged are trigger signals and are uniformly marked as S; s1, s2, s3, s4, s5, which are effective trigger signals; d1, D2, D3, D4 and D5 are action strings respectively, and the action strings contain single black point trigger signals; t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19 and t20 are time intervals for counting no trigger signals at the rear end of the trigger signals.
Figure 3 is a cross-sectional view of a pen-type line marking counter.
The part identification is: the pen comprises a machine shell 10, a counting switch 20, a pen core 30, a pen point 31, a circuit board 50, a processor 40, a display screen 60 and a power supply 70;
Detailed Description
Example one
The embodiment of the invention provides a pen-type drawn line counting method, which is shown in a figure 1 and a figure 2 and comprises the following steps:
(1) setting a time idle threshold value of a valid counting signal;
(2) detecting a counting trigger signal triggered by the acquisition pen core in real time;
(3) extracting the idle time period of the non-trigger signal at the rear end of the counting trigger signal in real time and comparing the idle time period with the preset time idle threshold of the effective counting signal;
(4) in the trigger signal queue, signals meeting the condition that the idle time period of a non-trigger signal at the rear end of the counting trigger signal is greater than or equal to the time idle threshold of a preset effective counting signal are effective trigger signals, data statistics is counted, and all other trigger signals which do not meet the condition are ignored.
In embodiment one, we mark the time idle threshold of the active count signal as T; the time idle threshold T of the effective counting signal is obtained by statistics according to the time interval characteristics between adjacent different operation action strings, and needs to be counted, selected and set in advance before counting operation; the action string is a combination of one or more actions operated by completely drawing the same marker, one operation action triggers one counting signal, and correspondingly, the action string triggers one or more counting signals; the time idle threshold T of the valid count signal is set according to the following principle: the time interval between adjacent single actions in any operation action string is less than the time idle threshold value T of the effective counting signal and less than or equal to the minimum value of the time interval between any two adjacent different operation action strings; as in fig. 2, the t1, t2, t4, t5, t6, t7, t9, t11, t12, t13, t14, t15, t16, t18, t19 time periods are time intervals between adjacent individual actions in the operational action string; any one of the values of time interval between adjacent individual actions in the action string < time idle threshold T of the active count signal, T1, T2, T4, T5, T6, T7, T9, T11, T12, T13, T14, T15, T16, T18, T19 is less than the time idle threshold T of the active count signal, where T2 is the largest, so the time idle threshold T of the active count signal > T2; d1, D2, D3, D4 and D5 are operation action strings respectively; t3, t8, t10 and t17 are the intermediate intervals of the operation action strings D1, D2, D3, D4 and D5 respectively; according to the fact that the time idle threshold T of the effective counting signal is smaller than or equal to the minimum value of the time interval between any two adjacent different operation action strings, at the moment, the minimum value of T3, T8, T10 and T17 is taken, here, T3 is smaller than T8, T10 and T17, so that T3 is selected as a threshold value reference, and the time idle threshold T of the effective counting signal is set to be smaller than or equal to T3; in sum, T2 is less than the time idle threshold T of the effective counting signal and less than or equal to T3, and T is within the range to select a value.
In the first embodiment, the counting trigger signal is an electric signal generated when the pen core triggers the counting switch during the drawing action of the pen point; as shown in fig. 2, the arranged black dots S are all represented as count trigger signals, but not all are valid signals at this time, and subsequent comparison determination is required.
In the first embodiment, all the counting trigger signals trigger the contrast program correspondingly; the comparative procedure was: comparing the idle time period of the non-trigger signal at the rear end of the counting trigger signal with the time idle threshold T of the effective counting signal; as shown in fig. 2, when the time occurrence of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19 and T20 is in real time, the time occurrence is respectively compared with the time idle threshold T of the valid count signal.
In the first embodiment, when the idle time period of the no-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold T of the effective counting signal, the counting trigger signal is ignored and is not counted; when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is not less than the preset time idle threshold of the effective counting signal, the signal is regarded as an effective signal and is counted; as shown in figure 2 of the drawings, in which,
t1, T2, T4, T5, T6, T7, T9, T11, T12, T13, T14, T15, T16, T18 and T19 are respectively compared with the time idle threshold value T of the effective counting signal and are all smaller than the time idle threshold value T of the effective counting signal, so the trigger signals before the time periods of T1, T2, T4, T5, T6, T7, T9, T11, T12, T13, T14, T15, T16, T18 and T19 are ignored; t3, T8, T10, T17 and T20 are respectively compared with the time idle threshold value T of the effective counting signal, and T3, T8, T10, T17 and T20 are respectively larger than or equal to the time idle threshold value T of the effective counting signal, so that the trigger signals s1, s2, s3, s4 and s5 before the time periods of T3, T8, T10, T17 and T20 are taken as effective signals and counted; s1, s2, s3, s4 and s5 are effective signals, so that the number of effective signals is 5 here, and the display screen displays 5; while other signals are ignored, the count trigger signal that is ignored has no fixed number, and therefore the number of small intervals that are ignored ahead of the valid signal is also indeterminate, as t1, t2, t4, t5, t6, t7, t9, t11, t12, t13, t14, t15, t16, t18, t 19.
Example two
The embodiment of the invention provides a pen-type drawn line counting device, which is shown in figure 3 and comprises a shell 10, a counting switch 20, a pen core 30, a pen point 31, a circuit board 50, a processor 40, a display screen 60 and a power supply 70; the counting switch 20, the circuit board 50, the processor 40 and the display screen 60 are all installed and fixed on the machine shell 10; the circuit board 50 and the processor 40 are electrically connected with the counting switch 20, the display screen 60 and the power supply 70 respectively; the pen core 30 is close to the counting switch 20; the pen point 31 and the pen core 30 are fixed into a whole; holding the casing 10 by hand, drawing the object by operating the pen tip 31, and reversely pushing the pen tip 30 to trigger the counter switch 20 adjacent thereto; after the counting switch 20 is triggered, a trigger signal is provided to the circuit board 50 and the processor 40; the processor 40 uses the above pen-type line drawing counting method to extract the idle time period of the non-trigger signal at the rear end of the counting trigger signal, and compares the idle time period with the preset idle time threshold of the effective counting signal, and processes the result and displays the result on the display screen 60.
In the second embodiment, the counter switch 20 is a tact switch.
In the second embodiment, the pen core is a marking pen.
In the second embodiment, the display screen is an LCD liquid crystal display screen.
In the second embodiment, the power source is a button cell battery.
In the second embodiment, the processor comprises: setting a time idle threshold T of an effective counting signal; acquiring and extracting a program for comparing the idle time period of the non-trigger signal at the rear end of the counting trigger signal with a preset time idle threshold T of the effective counting signal in real time; the comparison method comprises the following steps: when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold T of the effective counting signal, the counting trigger signal is ignored and is not counted; when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is more than or equal to the preset time idle threshold T of the effective counting signal, the signal is taken as an effective signal and is counted; counting all effective signal data, and then sending the effective signal data to a display screen for displaying; according to the scheme of the pen-type line marking counting method, as shown in fig. 1 and 2, the effective signals are the trigger signals before the time periods of t3, t8, t10, t17 and t20, and s1, s2, s3, s4 and s5 are effective signals, so that the number of the effective signals is 5, and the display screen displays 5.

Claims (9)

1. A pen-type drawn line counting method is characterized by comprising the following steps:
(1) setting a time idle threshold value of a valid counting signal;
(2) detecting a counting trigger signal triggered by the acquisition pen core in real time;
(3) extracting the idle time period of the non-trigger signal at the rear end of the counting trigger signal in real time and comparing the idle time period with the preset time idle threshold of the effective counting signal;
(4) the comparison method comprises the following steps: in the trigger signal queue, signals meeting the condition that the idle time period of a non-trigger signal at the rear end of the counting trigger signal is greater than or equal to the time idle threshold of a preset effective counting signal are effective trigger signals, data statistics is counted, and all other trigger signals which do not meet the condition are ignored.
2. The pen-type line drawing counting method according to claim 1, wherein the time idle threshold of the valid counting signal is obtained by statistics according to the characteristics of the time intervals between adjacent different operation strings, and is required to be counted, selected and set in advance before the counting operation; the time idle threshold setting principle of the effective counting signal is as follows: the time interval between adjacent individual actions in any operational action string < the time idle threshold of the valid count signal is less than or equal to the minimum of the time intervals between any two adjacent different operational action strings.
3. The pen-type drawn line counting method according to claim 1, wherein the counting trigger signal is an electric signal generated when a pen core triggers a counting switch during a drawing operation of the pen tip.
4. The pen-based line marking method according to claim 1, wherein the counting trigger signals each trigger a contrast procedure accordingly; the comparative procedure was: and comparing the idle time period of the no trigger signal at the rear end of the counting trigger signal with the time idle threshold of the effective counting signal.
5. The pen scribe counting method according to claim 1, wherein the comparing method is embodied as: when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold T of the effective counting signal, the counting trigger signal is ignored and is not counted; when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is larger than or equal to the preset time idle threshold of the effective counting signal, the signal is regarded as an effective signal and counted.
6. A pen-type line drawing counting apparatus comprising: the pen comprises a shell, a counting switch, a pen core, a pen point, a circuit board, a processor, a display screen and a power supply; the counting switch, the circuit board and the processor are all arranged and fixed on the shell; the circuit board and the processor are respectively electrically connected with the counting switch, the display screen and the power supply; the pen core is close to the counting switch; the pen point and the pen core are fixed into a whole; holding the casing by hand, drawing the target object by operating the pen point, and reversely pushing the pen core to trigger the counting switch close to the pen core; after the counting switch is triggered, providing a trigger signal to the circuit board and the processor; the processor adopts the pen-type line drawing counting method, the idle time period of the non-trigger signal at the rear end of the counting trigger signal is extracted and compared with the preset time idle threshold of the effective counting signal, and the result is processed and displayed on the display screen.
7. The pen-like line marking counter according to claim 6, wherein said counter switch may be a micro switch, a tact switch, a capacitive switch, a light sensitive switch, or the like.
8. The pen line marking apparatus of claim 6, wherein said cartridge may be a touch bar, a marker, a tool knife, a tool tip.
9. The pen line striping apparatus of claim 6, wherein said processor contains: setting a time idle threshold value of a valid counting signal; acquiring and extracting a program for comparing the idle time period of the non-trigger signal at the rear end of the counting trigger signal with a preset time idle threshold of the effective counting signal in real time; method of comparing the programs: when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is less than the preset time idle threshold of the effective counting signal, the counting trigger signal is ignored and is not counted; when the idle time period of the non-trigger signal at the rear end of the counting trigger signal is larger than or equal to the preset time idle threshold of the effective counting signal, the signal is taken as the effective signal and is counted.
CN201910961819.7A 2019-10-11 2019-10-11 Pen type line drawing counting method and device Pending CN112651479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910961819.7A CN112651479A (en) 2019-10-11 2019-10-11 Pen type line drawing counting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910961819.7A CN112651479A (en) 2019-10-11 2019-10-11 Pen type line drawing counting method and device

Publications (1)

Publication Number Publication Date
CN112651479A true CN112651479A (en) 2021-04-13

Family

ID=75343773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910961819.7A Pending CN112651479A (en) 2019-10-11 2019-10-11 Pen type line drawing counting method and device

Country Status (1)

Country Link
CN (1) CN112651479A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603768A (en) * 2023-06-13 2023-08-18 东实锻造(湖北)有限公司 Bar temperature screening system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603768A (en) * 2023-06-13 2023-08-18 东实锻造(湖北)有限公司 Bar temperature screening system
CN116603768B (en) * 2023-06-13 2024-01-05 东实锻造(湖北)有限公司 Bar temperature screening system

Similar Documents

Publication Publication Date Title
CN100587660C (en) Method and device for forecasting and discriminating hand-written characters
CN104966011B (en) Mobile terminal child user non-cooperating formula judges and the method for limitation operating right
CN102156584B (en) Touch screen terminal and method for solving deadlock of touch screen
CN112651479A (en) Pen type line drawing counting method and device
CN111274836A (en) Handwriting board set and system
CN104077065A (en) Method for displaying virtual keyboard by touch screen terminal and touch screen terminal
CN201387595Y (en) Ultrasonic wave interactive electronic whiteboard sign pen
CN101980107A (en) Method for realizing gesture code based on straight basic gesture
CN106557175A (en) Character input method and electronic equipment
CN112163400A (en) Information processing method and device
CN204539299U (en) A kind of touch one-piece machine of touch gestures operation OSD menu
CN112651478A (en) Filtering counting method and device
CN215526666U (en) System capable of displaying file scanning information of mobile storage medium in real time
CN104571517A (en) Body movement based input and control method for electronic device
CN109977364B (en) Method and device for obtaining robot wake-up word
CN109240519B (en) Pen capable of counting word number and method thereof
CN204375619U (en) A kind of keyboard switch and keyboard
CN203405776U (en) Touch keyboard improved structure
CN202275404U (en) Calculator with character recognizing function
CN102411442A (en) Touch-control detecting method and touch-control detecting circuit applying same
CN101183277A (en) Electronic device with visual input
CN215599663U (en) Touch control pen with digital display
CN201326068Y (en) Inductive operating head of flat knitting machine
CN105702203B (en) A kind of display methods, device and terminal controlling background color
CN203204547U (en) Multi-dimensional finger stall keyboard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210413

WD01 Invention patent application deemed withdrawn after publication