Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.
The method and apparatus of the judgement terminal hand holding state of the embodiment of the present invention is described below with reference to accompanying drawing.
Fig. 1 is the process flow diagram that judges according to an embodiment of the invention the method for terminal hand holding state.
As shown in Figure 1, judge the method for terminal hand holding state, comprising:
S101, records the track of user's finger sliding on terminal screen.
In an embodiment of the present invention, in the time sliding on user's the finger screen in terminal, can record the track of finger sliding.Wherein, track can be arching trajectory.For example: can pass through implant monitor function in system, thus the track of recording user finger sliding; Also can be by add the function of track of recording user finger sliding in third party application.
For the hand holding state of the terminal that makes to judge is more accurate, can repeatedly record the track of user's finger sliding on terminal screen.
S102, determines the home position of the corresponding circumference of track.
In an embodiment of the present invention, recording after the track of user's finger sliding on terminal screen, can be according to the transversal displacement of track and vertical misalignment amount, determine the home position of the corresponding circumference of track.As shown in Figure 2, when user's finger slides on terminal screen, can produce arching trajectory, thereby can produce transversal displacement and vertical misalignment amount.Can, according to existing algorithm, calculate the home position of the circumference that track is corresponding.Because algorithm is prior art, do not repeat herein.
Certainly, in order to increase the accuracy of judgement, can compute weighted to the track repeatedly recording, determine the home position of the corresponding circumference of track according to ranking operation result.
S103, judges the hand holding state of terminal according to home position.
In an embodiment of the present invention, determining after the home position of the corresponding circumference of track, can judge according to home position the hand holding state of terminal.If home position is positioned at the right side of arching trajectory, the hand holding state that can determine terminal is that the right hand is hand-held; If home position is positioned at the left side of arching trajectory, determine that the hand holding state of terminal is that left hand is hand-held.As shown in Figure 3, home position is positioned at the right side of arching trajectory, and the hand holding state that can determine terminal is that the right hand is hand-held.The corresponding operation interface of terminal capable of regulating is to adapt to the custom of user's right-hand operated.
The method of the judgement terminal hand holding state of the embodiment of the present invention, by recording the track of user's finger sliding on terminal screen, determine the home position of the corresponding circumference of track, and judge the hand holding state of terminal according to home position, can realize without adding hardware, not only reduce cost, also reduce power consumption, thereby can be according to the hand holding state of terminal, for user provides the application interface that more meets user operation habits.
In order to realize above-described embodiment, the present invention also proposes a kind of device that judges terminal hand holding state.
Fig. 4 is the structural representation that judges according to an embodiment of the invention the device of terminal hand holding state.
As shown in Figure 4, the device that judges terminal hand holding state comprises: logging modle 110, determination module 120 and judge module 130.
Logging modle 110 is for recording the track of user's finger sliding on terminal screen.
In an embodiment of the present invention, in the time sliding on user's the finger screen in terminal, logging modle 110 can record the track of finger sliding.Wherein, track can be arching trajectory.For example: can pass through implant monitor function in system, thus the track of recording user finger sliding; Also can be by add the function of track of recording user finger sliding in third party application.
For the hand holding state of the terminal that makes to judge is more accurate, logging modle 110 can repeatedly record the track of user's finger sliding on terminal screen.
Determination module 120 is for determining the home position of the corresponding circumference of track.
In an embodiment of the present invention, record after the track of user's finger sliding on terminal screen in logging modle 110, determination module 120 can be according to the transversal displacement of track and vertical misalignment amount, determines the home position of the corresponding circumference of track.As shown in Figure 2, when user's finger slides on terminal screen, can produce arching trajectory, thereby can produce transversal displacement and vertical misalignment amount.Can, according to existing algorithm, calculate the home position of the circumference that track is corresponding.Because algorithm is prior art, do not repeat herein.
Certainly, in order to increase the accuracy of judgement, can compute weighted to the track repeatedly recording, determine the home position of the corresponding circumference of track according to ranking operation result.
Judge module 130 is for judging the hand holding state of terminal according to home position.
In an embodiment of the present invention, determine that at determination module 120 after the home position of the corresponding circumference of track, judge module 130 can be judged according to home position the hand holding state of terminal.If home position is positioned at the right side of arching trajectory, the hand holding state that can determine terminal is that the right hand is hand-held; If home position is positioned at the left side of arching trajectory, determine that the hand holding state of terminal is that left hand is hand-held.As shown in Figure 3, home position is positioned at the right side of arching trajectory, and the hand holding state that can determine terminal is that the right hand is hand-held.The corresponding operation interface of terminal capable of regulating is to adapt to the custom of user's right-hand operated.
The device of the judgement terminal hand holding state of the embodiment of the present invention, by recording the track of user's finger sliding on terminal screen, determine the home position of the corresponding circumference of track, and judge the hand holding state of terminal according to home position, can realize without adding hardware, not only reduce cost, also reduce power consumption, thereby can be according to the hand holding state of terminal, for user provides the application interface that more meets user operation habits.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, specific features, structure, material or the feature of description can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, at least one this feature can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " multiple " is at least two, for example two, and three etc., unless otherwise expressly limited specifically.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to the sequencing list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, device that storage, communication, propagation or transmission procedure use for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in storer and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, amendment, replacement and modification.