CN106201078B - Track completion method and terminal - Google Patents

Track completion method and terminal Download PDF

Info

Publication number
CN106201078B
CN106201078B CN201610515075.2A CN201610515075A CN106201078B CN 106201078 B CN106201078 B CN 106201078B CN 201610515075 A CN201610515075 A CN 201610515075A CN 106201078 B CN106201078 B CN 106201078B
Authority
CN
China
Prior art keywords
track
information
tracks
sensor
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610515075.2A
Other languages
Chinese (zh)
Other versions
CN106201078A (en
Inventor
李成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui China Railway Security Co Ltd
Original Assignee
ANHUI ZHONGTIESHI BLOCK Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ANHUI ZHONGTIESHI BLOCK Co Ltd filed Critical ANHUI ZHONGTIESHI BLOCK Co Ltd
Priority to CN201610515075.2A priority Critical patent/CN106201078B/en
Publication of CN106201078A publication Critical patent/CN106201078A/en
Application granted granted Critical
Publication of CN106201078B publication Critical patent/CN106201078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The embodiment of the invention discloses a track completion method, which comprises the following steps: track information of two tracks of continuous sliding of a user is sensed through a sensor; when the track information of the two tracks meets a preset condition, determining that the two tracks are two tracks of the same track; and determining the track information of the missing track between the two tracks according to the track information of the two tracks. The embodiment of the invention also provides a terminal.

Description

Track completion method and terminal
Technical Field
The invention relates to a virtual interaction technology of a terminal, in particular to a track completion method and a terminal.
Background
With the development of the intelligent terminal, the touch requirement of the intelligent terminal is higher and higher. In order to further facilitate the operation of a user, the screen of the terminal is not only made into a pressure-sensitive screen, but also the rear shell of the terminal is provided with a pressure-sensitive mode which can be realized through the operation on the rear back panel of the mobile phone, and the operation is realized through a pressure sensor, a fingerprint identification mode and the like at present. The pressure sensor has higher requirement on the accuracy of the sensor, and the effect is difficult to control in the implementation process and the operation of a user.
When situations arise such as sensor sensitivity (e.g., occasional failure) and operating conditions (excessive temperature due to proximity of some sensors to a heat generating device) in a proximity sensor array are not completely consistent; or the user is difficult to keep absolute standard and consistent all the time in the operation process, and accidental operation shock may occur, the track of the user sliding on the back shell may not be a complete track, and may be a multi-segment track, so that the complete track and the segmented track may be different operations for the terminal.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are intended to provide a trajectory completion method and a terminal, which can complete the trajectory discontinuity problem caused by manual operation or the terminal itself.
The technical scheme of the invention is realized as follows:
in a first aspect, a trajectory completion method is provided, where the method includes:
track information of two tracks of continuous sliding of a user is sensed through a sensor;
when the track information of the two tracks meets a preset condition, determining that the two tracks are two tracks of the same track;
and determining the track information of the missing track between the two tracks according to the track information of the two tracks.
Optionally, the track information includes position information of a sensor on a track, and determining the track information of the missing track between the two tracks according to the track information of the two tracks includes:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
and determining the position information of m sensors on the missing track through the track function, wherein m is a positive integer.
Optionally, the preset weight is set according to a rule that the closer to the sensor of the missing track, the larger the corresponding preset weight is.
Optionally, the track information further includes: when the track information of the two tracks meets the preset condition, determining that the two tracks are two tracks of the same track comprises:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
Optionally, after determining, according to the track information of the two tracks, the track information of the missing track between the two tracks, the method further includes:
complementing the track information of the same track through the track information of the missing track;
and executing corresponding operation according to the track information of the same track.
In a second aspect, a terminal is provided, which includes:
the sensing unit is used for sensing track information of two tracks of continuous sliding of a user through the sensor;
the determining unit is used for determining that the two tracks are two sections of tracks of the same track when the track information of the two tracks meets a preset condition; and the track information of the missing track between the two tracks is determined according to the track information of the two tracks.
Optionally, the track information includes position information of a sensor on the track, and the determining unit is specifically configured to:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
and determining the position information of m sensors on the missing track through the track function, wherein m is a positive integer.
Optionally, the preset weight is set according to a rule that the closer to the sensor of the missing track, the larger the corresponding preset weight is.
Optionally, the track information further includes: the track comprises information of a sensing time and a starting position when the first sensor senses the information and information of a sensing time and an ending position when the last sensor senses the information, and the determining unit is further used for:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
Optionally, the terminal further includes:
a complementing unit, configured to complement the track information of the same track with the track information of the missing track;
and the execution unit is used for executing corresponding operation according to the track information of the same track.
The embodiment of the invention provides a track completion method and a terminal, wherein track information of two tracks continuously sliding by a user is sensed through a sensor; when the track information of the two tracks meets a preset condition, determining that the two tracks are two tracks of the same track; and determining the track information of the missing track between the two tracks according to the track information of the two tracks. Therefore, whether the two tracks are two tracks of the same track or not can be determined, and the track information of the missing track between the two tracks can also be determined. Therefore, the track information of the missing track is identified and supplemented by carrying out instant track analysis processing on the sensed information, so that the identification accuracy of continuous operation of the continuous track is improved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal implementing various embodiments of the present invention;
fig. 2 is a flowchart of a track completion method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a sensor array provided by an embodiment of the present invention;
fig. 4 is a schematic diagram 1 of a first track, a second track and the same track provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram 2 of a first track, a second track, and the same track provided by an embodiment of the present invention;
fig. 6 is a flowchart of another track completion method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram 1 of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention, which is shown in fig. 2;
fig. 9 is a schematic structural diagram 3 of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a navigation device, etc., and a stationary terminal such as a digital TV, a desktop computer, etc. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a terminal of a fixed property in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input information of various attributes, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects a change in resistance, pressure, capacitance, etc. due to being touched), scroll wheel, joystick, etc. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141 as will be described below in connection with a touch screen.
The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to see from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a Transparent Organic Light Emitting Diode (TOLED) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one attribute of a storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and so forth. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Example one
An embodiment of the present invention provides a track completion method, as shown in fig. 1, applied to a terminal, where the terminal has a sensor array, and the method includes:
step 101, track information of two tracks of continuous sliding of a user is sensed through a sensor.
As shown in fig. 2, the sensor array is disposed inside the rear case, and the sensor array is disposed in a plurality of directions to recognize the position of both hands and the change of gestures. For example, when the screen faces the eyes of the user, the screen is horizontally placed, and the screen is vertically placed.
1) And x sensors are arranged in the horizontal direction and mainly feed back the change of the vertical direction of the finger, wherein x is larger than 2.
And y sensors are arranged in the vertical direction, and mainly feed back the change of the horizontal direction of the finger, wherein y is more than 2.
The finger change is tracked by the network formed by the arrays in the two directions.
2) One part of the sensors are placed according to an angle α, and the other part of the sensors are placed according to an angle β, wherein the angle is more than 0 and less than or equal to α - β and less than or equal to 90.
Therefore, each sensor can simultaneously feed back the change of the finger in the horizontal direction and the vertical direction, and the change of the finger is tracked through the network formed by the array.
And 102, when the track information of the two tracks meets a preset condition, determining that the two tracks are two tracks of the same track.
The track information includes information of a sensing time and a starting position when a first sensor senses information on the track, and information of a sensing time and an ending position when a last sensor senses information, and step 102 specifically includes:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track; and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
And 103, determining the track information of the missing track between the two tracks according to the track information of the two tracks.
Specifically, the track information includes position information of a sensor on the track, and step 103 includes: respectively acquiring position information of n sensors from two tracks, wherein n is a positive integer; fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function; and determining the position information of m sensors on the missing track through the track function, wherein m is a positive integer.
Preferably, the preset weight is set according to a rule that the closer to the sensor of the missing track, the greater the corresponding preset weight.
Therefore, whether the two tracks are two tracks of the same track or not can be determined, and the track information of the missing track between the two tracks can also be determined. Therefore, the track information of the missing track is identified and supplemented by carrying out instant track analysis processing on the sensed information, so that the identification accuracy of continuous operation of the continuous track is improved.
In this embodiment, the specific fitting method includes:
a. n sensors of the first trajectory are selected. Denoted as Q1Q2 … … Qn, respectively, the greater the ordinal number of Q, the further away from the tip coordinate. The data points Q1Q2 … … Qn are respectively given corresponding preset weights Q1Q2 … … Qn (Q1> Q2 … … > Qn). Here, the weights may be taken in a variety of ways, including but not limited to a) q1 ═ n; q2 ═ n-1; … … qn is 1; B) q1 ═ 1; q2 ═ n-1)/n; … … q2 is 1/n, etc.
b. In the same method, selecting n sensors of the second track, and respectively recording the n sensors as H1H2 … … Hn; the same method is used to assign a weight coefficient h1h2 … … hn (h1> h2 … … > hn).
c. The data Q1Q2 … … Qn and H1H2 … … Hn are weighted by weighting coefficients Q1Q2 … … Qn and H1H2 … … Hn, respectively.
d. Performing curve fitting by using the weighted data; there are many curve fitting methods, and the most common methods are least square method, lagrange interpolation method, newton interpolation method, and the like. And calculating the position information of the sensor marked as the missing track through the fitted curve.
Here, the least square method (also called the least squares method) is a mathematical optimization technique. It finds the best functional match of the data by minimizing the sum of the squares of the errors. Unknown data can be easily obtained by the least square method, and the sum of squares of errors between these obtained data and actual data is minimized. The least squares method can also be used for curve fitting;
in numerical analysis, the lagrange interpolation method is a polynomial interpolation method named by the mathematician joseph lewis lagrange of eighteen centuries of france. Many practical problems are represented by functions, and many functions can be understood only by experiments and observation. If a certain physical quantity in practice is observed, and corresponding observed values are obtained at a plurality of different places, the Lagrangian interpolation method can find a polynomial, and the observed values are just obtained at each observed point. Such a polynomial is called lagrange (interpolation) polynomial. Mathematically, the Lagrangian interpolation method can give a polynomial function that passes exactly through several known points on a two-dimensional plane.
Newton interpolation uses the function f (x) at points in a certain interval to make a suitable specific function, and takes the known values at these points, and uses the values of this specific function as approximate values of the function f (x) at other points in the interval.
Example two
The embodiment of the invention provides a track completion method, which is applied to a terminal, wherein a sensor array Sn is arranged on a back plate of the terminal, the back plate is free of contact in an initial state, each return value in the Sn is assumed to be Cini, and the method comprises the following steps:
step 201, when the sensors of the sensor array sense that the manipulator approaches the backboard and moves, acquiring a return value, position information and sensing time sensed by each sensor on a first track of the movement.
Here, the position information and the sensing time are track information, and return values and position information sensed by the sensor, which successively changes for a continuous time sequence (TK, TK +1 … …) of the motion process, are recorded.
Step 202, fitting a first track of the user manipulator on the backboard according to the position information of each sensor on the first track.
And step 203, when the sensors of the sensor array sense that the manipulator approaches the back plate again and moves, acquiring a return value, position information and sensing time sensed by each sensor on a second moving track.
And step 204, fitting a second track of the user manipulator on the back plate according to the position information of each sensor on the second track.
Step 205, determining the time difference between the sensing time of the first sensor of the first track and the sensing time of the last sensor of the second track.
Here, the sensing time of the first sensor of the first trajectory is the end time of the first trajectory, and the sensing time of the last sensor of the second trajectory is the start time of the second trajectory.
And step 206, determining a track distance between positions corresponding to the end position information of the first sensor of the first track and the end position information of the last sensor of the second track.
Step 207, judging whether the time difference is smaller than a first preset value or not, and whether the track distance is smaller than a second preset value or not. If yes, go to step 206; if at least one is not the same, the process is ended.
And step 208, respectively acquiring the position information of 20 sensors from the two tracks.
And 209, fitting the acquired position information of the 40 sensors according to preset weights of the 40 sensors to obtain a fitted track function.
Here, the preset weight is set according to a preset rule, and the closer the sensor is to the missing track, the greater the preset weight is.
And step 210, determining the position information of the m sensors on the missing track through a track function.
Here, the sensors on the missing track may substitute the position information of all the sensors into the track function, and if the value calculated by the position information of one sensor and the value calculated by the function are smaller than a third preset value, the sensor is regarded as the sensor on the missing track, and accordingly, the position information is the position information of the sensor on the missing track.
And step 211, complementing the track information of the same track through the track information of the missing track.
And executing corresponding operation according to the track information of the same track.
EXAMPLE III
An embodiment of the present invention provides a terminal 30, where the terminal 30 includes:
the sensing unit 301 is configured to sense track information of two tracks where the user slides continuously through the sensor.
A determining unit 302, configured to determine that the two tracks are two tracks of the same track when the track information of the two tracks meets a preset condition; and the track information of the missing track between the two tracks is determined according to the track information of the two tracks.
Therefore, whether the two tracks are two tracks of the same track or not can be determined, and the track information of the missing track between the two tracks can also be determined. Therefore, the track information of the missing track is identified and supplemented by carrying out instant track analysis processing on the sensed information, so that the identification accuracy of continuous operation of the continuous track is improved.
Further, the track information includes position information of a sensor on the track, and the determining unit 302 is specifically configured to:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
and determining the position information of m sensors on the missing track through the track function, wherein m is a positive integer.
Preferably, the preset weight is set according to a rule that the closer to the sensor of the missing track, the greater the corresponding preset weight is.
Further, the track information further includes: the sensing time and the starting position information of the information sensed by the first sensor on the track, and the sensing time and the ending position information of the information sensed by the last sensor on the track, the determining unit 302 is further configured to:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
Further, the terminal 30 further includes:
a complementing unit 303, configured to complement the track information of the same track with the track information of the missing track.
And the execution unit 304 is configured to execute a corresponding operation according to the track information of the same track.
Example four
An embodiment of the present invention provides a terminal 40, where the terminal 40 includes:
the sensor 401 is configured to sense track information of two tracks where the user slides continuously through the sensor.
The processor 402 is configured to determine that the two tracks are two tracks of the same track when the track information of the two tracks meets a preset condition; and the track information of the missing track between the two tracks is determined according to the track information of the two tracks.
Therefore, whether the two tracks are two tracks of the same track or not can be determined, and the track information of the missing track between the two tracks can also be determined. Therefore, the track information of the missing track is identified and supplemented by carrying out instant track analysis processing on the sensed information, so that the identification accuracy of continuous operation of the continuous track is improved.
Further, the track information includes position information of a sensor on the track, and the processor 402 is specifically configured to:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
and determining the position information of m sensors on the missing track through the track function, wherein m is a positive integer.
Preferably, the preset weight is set according to a rule that the closer to the sensor of the missing track, the greater the corresponding preset weight is.
Further, the track information further includes: the sensing time and the starting position information when the first sensor senses information on the track, and the sensing time and the ending position information when the last sensor senses information on the track, the processor 402 is further configured to:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
Further, the terminal 40 further includes:
the processor 402 is further configured to: complementing the track information of the same track through the track information of the missing track; and executing corresponding operation according to the track information of the same track.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (8)

1. A trajectory completion method, the method comprising:
track information of two tracks of continuous sliding of a user is sensed through a sensor;
when the track information of the two tracks meets a preset condition, determining that the two tracks are two tracks of the same track;
determining the track information of the missing track between the two tracks according to the track information of the two tracks;
the track information includes position information of a sensor on a track, and determining the track information of a missing track between the two tracks according to the track information of the two tracks includes:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
determining position information of m sensors on the missing track through the track function, wherein m is a positive integer;
wherein, the fitting the collected position information of the 2n sensors according to the preset weight of the 2n sensors includes:
weighting the position data respectively through the preset weights to obtain weighted position information;
and performing curve fitting by using the weighted position information.
2. The method according to claim 1, wherein the preset weight is set according to a rule that the closer to the sensor of the missing track, the greater the corresponding preset weight.
3. The method of any of claims 1 to 2, wherein the trajectory information further comprises: when the track information of the two tracks meets the preset condition, determining that the two tracks are two tracks of the same track comprises:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
4. The method according to claim 1, wherein after determining the track information of the missing track between the two tracks according to the track information of the two tracks, the method further comprises:
complementing the track information of the same track through the track information of the missing track;
and executing corresponding operation according to the track information of the same track.
5. A terminal, characterized in that the terminal comprises:
the sensing unit is used for sensing track information of two tracks of continuous sliding of a user through the sensor;
the determining unit is used for determining that the two tracks are two sections of tracks of the same track when the track information of the two tracks meets a preset condition; the track information of the missing track between the two tracks is determined according to the track information of the two tracks;
the track information includes position information of a sensor on the track, and the determining unit is specifically configured to:
respectively acquiring position information of n sensors from the two tracks, wherein n is a positive integer;
fitting the collected position information of the 2n sensors according to preset weights of the 2n sensors to obtain a fitted track function;
determining position information of m sensors on the missing track through the track function, wherein m is a positive integer;
wherein, the fitting the collected position information of the 2n sensors according to the preset weight of the 2n sensors includes:
weighting the position data respectively through the preset weights to obtain weighted position information;
and performing curve fitting by using the weighted position information.
6. The terminal according to claim 5, wherein the preset weight is set according to a rule that the closer to the sensor of the missing track, the greater the corresponding preset weight.
7. The terminal according to any of claims 5 to 6, wherein the track information further comprises: the track comprises information of a sensing time and a starting position when the first sensor senses the information and information of a sensing time and an ending position when the last sensor senses the information, and the determining unit is further used for:
determining a time difference between a sensing time of a first sensor of a first track and a sensing time of a last sensor of a second track, wherein a track distance between positions corresponding to ending position information of the first sensor of the first track and ending position information of the last sensor of the second track is earlier than that of the second track;
and when the time difference is smaller than a first preset value and the track distance is smaller than a second preset value, determining that the first track and the second track are two tracks of the same track.
8. The terminal of claim 5, further comprising:
a complementing unit, configured to complement the track information of the same track with the track information of the missing track;
and the execution unit is used for executing corresponding operation according to the track information of the same track.
CN201610515075.2A 2016-06-30 2016-06-30 Track completion method and terminal Active CN106201078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610515075.2A CN106201078B (en) 2016-06-30 2016-06-30 Track completion method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610515075.2A CN106201078B (en) 2016-06-30 2016-06-30 Track completion method and terminal

Publications (2)

Publication Number Publication Date
CN106201078A CN106201078A (en) 2016-12-07
CN106201078B true CN106201078B (en) 2020-02-07

Family

ID=57464529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610515075.2A Active CN106201078B (en) 2016-06-30 2016-06-30 Track completion method and terminal

Country Status (1)

Country Link
CN (1) CN106201078B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727757A (en) * 2019-10-22 2020-01-24 北京卡路里信息技术有限公司 Track data processing method and device and electronic equipment
CN112937158B (en) * 2021-01-25 2022-07-15 杭州拓昂信息技术有限公司 Financial bill management system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252306A (en) * 2013-06-27 2014-12-31 宏碁股份有限公司 Brush stroke display method
CN105573538A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Sliding broken line compensation method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8879828B2 (en) * 2011-06-29 2014-11-04 Matterport, Inc. Capturing and aligning multiple 3-dimensional scenes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252306A (en) * 2013-06-27 2014-12-31 宏碁股份有限公司 Brush stroke display method
CN105573538A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Sliding broken line compensation method and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
矿压缺失数据插值算法研究;陈辉等;《工矿自动化》;20111130;第22-25页 *

Also Published As

Publication number Publication date
CN106201078A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US9870141B2 (en) Gesture recognition
US10401964B2 (en) Mobile terminal and method for controlling haptic feedback
KR102061360B1 (en) User interface indirect interaction
US11443453B2 (en) Method and device for detecting planes and/or quadtrees for use as a virtual substrate
US8443302B2 (en) Systems and methods of touchless interaction
US11003328B2 (en) Touch input method through edge screen, and electronic device
CN105630327B (en) The method of the display of portable electronic device and control optional element
US20130215018A1 (en) Touch position locating method, text selecting method, device, and electronic equipment
US20100302177A1 (en) Method and apparatus for providing user interface based on contact position and intensity of contact force on touch screen
CN105339872A (en) Electronic device and method of recognizing input in electronic device
US20130141326A1 (en) Gesture detecting method, gesture detecting system and computer readable storage medium
US20070002027A1 (en) Smart control method for cursor movement using a touchpad
US20130106707A1 (en) Method and device for gesture determination
KR20140112296A (en) Method for processing function correspond to multi touch and an electronic device thereof
US9182908B2 (en) Method and electronic device for processing handwritten object
US20230244379A1 (en) Key function execution method and apparatus, device, and storage medium
CN114391132A (en) Electronic equipment and screen capturing method thereof
US20160062601A1 (en) Electronic device with touch screen and method for moving application functional interface
CN106201078B (en) Track completion method and terminal
US10078443B2 (en) Control system for virtual mouse and control method thereof
US9235338B1 (en) Pan and zoom gesture detection in a multiple touch display
JP6599504B2 (en) Touch error calibration method and system
US20160124602A1 (en) Electronic device and mouse simulation method
CN105808067A (en) Icon moving method and terminal
CN104137099A (en) A method, apparatus, computer program and user interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200109

Address after: No. 2720, Shuangdun Road, Huaishang District, Bengbu, Anhui Province

Applicant after: ANHUI CHINA RAILWAY SEALING LOCKS CO.,LTD.

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A path completion method and terminal

Effective date of registration: 20201113

Granted publication date: 20200207

Pledgee: Bengbu financing guarantee Group Co.,Ltd.

Pledgor: ANHUI CHINA RAILWAY SEALING LOCKS Co.,Ltd.

Registration number: Y2020980007929

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220421

Granted publication date: 20200207

Pledgee: Bengbu financing guarantee Group Co.,Ltd.

Pledgor: ANHUI CHINA RAILWAY SEALING LOCKS CO.,LTD.

Registration number: Y2020980007929

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A trajectory completion method and terminal

Effective date of registration: 20230525

Granted publication date: 20200207

Pledgee: Huishang Bank Co.,Ltd. Bengbu Huaishang sub branch

Pledgor: ANHUI CHINA RAILWAY SEALING LOCKS CO.,LTD.

Registration number: Y2023980041647