CN105446604B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN105446604B CN105446604B CN201410268336.6A CN201410268336A CN105446604B CN 105446604 B CN105446604 B CN 105446604B CN 201410268336 A CN201410268336 A CN 201410268336A CN 105446604 B CN105446604 B CN 105446604B
- Authority
- CN
- China
- Prior art keywords
- distance
- moment
- sub
- sensing
- induction
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention discloses a kind of information processing method, including:The first induction point set is obtained at the first moment by sensing unit, indicates that input gesture starts when obtaining the first induction point set;By pre-defined rule three the first induction points are extracted from the first induction point set;By sensing unit the second induction point set is obtained at the second moment;By pre-defined rule three the second induction points are extracted from the second induction point set;It handles three the first induction points and three the second induction points generates handling result;When result indicates that the second distance that the first distance between first sub first induction point at the first moment and first sub second induction point at the second moment is less than between the second sub first induction point and sub first induction point of third of predetermined threshold and the first moment changes relative to second sub second induction point at the second moment and the third distance of sub second induction point of third, according to the change trend of the second and first distance, generates control instruction and respond the instruction.Invention additionally discloses a kind of electronic equipment.
Description
Technical Field
The present invention relates to the field of intelligent electronic devices, and in particular, to an information processing method and an electronic device.
Background
With the wide application of the touch screen sensing technology in electronic devices, users have increasingly high requirements for enriching input gestures of the electronic devices, how to enrich recognition of habitual gestures of the users by the electronic devices, and how to execute richer processing operations through recognition results are a technical problem to be solved urgently at present.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an information processing method and an electronic device.
The invention provides an information processing method, which is applied to electronic equipment, wherein the electronic equipment comprises a sensing unit, and the method comprises the following steps:
obtaining, by the sensing unit, a first set of sensing points at a first time, wherein the first set of sensing points obtained by the sensing unit at the first time indicates that an input gesture starts;
extracting three first induction points from the first induction point set according to a preset rule;
obtaining a second sensing point set at a second moment through the sensing unit;
extracting three second induction points from the second induction point set according to a preset rule;
processing the three first induction points and the three second induction points to generate a processing result;
when the processing result shows that a first distance between a first sub first sensing point at the first moment and a first sub second sensing point at the second moment is smaller than a preset threshold value and a second distance between a second sub first sensing point at the first moment and a third sub first sensing point at the first moment is changed relative to a third distance between a second sub second sensing point at the second moment and a third sub second sensing point, generating a control command according to the change trend of the second distance and the first distance;
responding to the control instruction.
In the above scheme, the control instruction is used to instruct to change the page display effect.
In the above scheme, the method further comprises:
obtaining an Nth sensing point set at the Nth moment through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment.
In the above scheme, the processing three first sensing points and three second sensing points to generate a processing result includes:
respectively recording the position coordinates of the three first induction points at the first moment and the position coordinates of the three second induction points at the second moment;
calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with the preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of the first comparison result and the second comparison result.
In the foregoing solution, when the processing result indicates that the first distance is smaller than the predetermined threshold and the second distance changes with respect to the third distance, generating the control instruction according to the second distance and a change trend of the first distance includes:
when the first distance is smaller than a preset threshold value and the second distance is larger than a third distance, generating a first control instruction;
and when the first distance is smaller than a preset threshold value and the second distance becomes smaller relative to a third distance, generating a second control instruction.
In the above scheme, the method further comprises:
calculating the amplitude of page curl according to the change value of the second distance at the first moment relative to the third distance at the second moment through a preset conversion relation; the control instruction is used for indicating the corresponding amplitude of the page curling;
generating a page turning instruction when the input gesture is finished;
and responding to the page turning instruction.
The present invention provides an electronic device, including:
the sensing unit is used for obtaining a first sensing point set at a first moment, wherein when the sensing unit obtains the first sensing point set at the first moment, the sensing unit represents that an input gesture starts;
the induction point extracting unit is used for extracting three first induction points from the first induction point set according to a preset rule;
the sensing unit is further used for obtaining a second sensing point set at a second moment;
the induction point extracting unit is further configured to extract three second induction points from the second induction point set according to a predetermined rule;
the control unit is used for processing the three first induction points and the three second induction points to generate a processing result; when the processing result shows that a first distance between a first sub first sensing point at the first moment and a first sub second sensing point at the second moment is smaller than a preset threshold value and a second distance between a second sub first sensing point at the first moment and a third sub first sensing point at the first moment is changed relative to a third distance between a second sub second sensing point at the second moment and a third sub second sensing point, generating a control command according to the change trend of the second distance and the first distance;
and the response unit is used for responding to the control instruction.
In the foregoing solution, the response unit is further configured to change a page display effect according to the control instruction.
In the above scheme, the sensing unit is further configured to obtain an nth sensing point set at an nth time; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment.
In the foregoing solution, the control unit is further configured to process the three first sensing points and the three second sensing points in the following manner to generate a processing result:
respectively recording the position coordinates of the three first induction points at the first moment and the position coordinates of the three second induction points at the second moment;
calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with the preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of the first comparison result and the second comparison result.
In the above solution, the control unit is further configured to,
when the first distance is smaller than a preset threshold value and the second distance is larger than a third distance, generating a first control instruction;
and generating a second control instruction when the first distance is smaller than a preset threshold value and the second distance becomes smaller relative to a third distance.
In the foregoing solution, the control unit is further configured to calculate, according to a change value of a second distance at the first time relative to a third distance at the second time, an amplitude of page curl through a predetermined conversion relationship; the control instruction is used for indicating the corresponding amplitude of the page curling; generating a page turning instruction when the input gesture is finished;
the response unit is further used for responding to the page turning instruction.
According to the information processing method and the electronic equipment provided by the embodiment of the invention, the gesture that the palm of the user is placed on the screen of the electronic equipment and the thumb of the user approaches to or leaves from the index finger can be recognized through the sensing unit, and corresponding processing can be executed according to the gesture recognition result. Through the embodiment of the invention, the user gestures which can be identified by the electronic equipment are enriched, the processing types of the electronic equipment based on gesture identification are enriched, and the user experience is improved.
Drawings
FIG. 1 is a flowchart of an information processing method according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating a palm gesture according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a second embodiment of the invention;
FIG. 4 is a schematic diagram of a palm gesture at a first time according to a third embodiment and a fifth embodiment of the present invention;
FIG. 5 is a diagram illustrating a palm gesture at a second time according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a palm gesture at a second time according to a fifth embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
In order to provide a natural user gesture, and enable an electronic device to recognize the gesture and execute a corresponding control instruction, an embodiment of the present invention provides an information processing method, where the method is applied to an electronic device, the electronic device includes a sensing unit, and as shown in fig. 1, the method includes:
step 101, obtaining a first sensing point set at a first time by a sensing unit, wherein the input gesture starts when the first sensing point set is obtained at the first time by the sensing unit.
The first sensing point set is a set formed by sensing points in an area covered by the gesture of the user at the first moment. The first moment is the moment when the user starts inputting the gesture, and is also the moment when the electronic equipment senses the gesture input by the user. When the electronic equipment senses the gesture input by the user, a first moment is determined, the sensing points in the area covered by the gesture of the user are obtained at the first moment through the sensing unit, and a first sensing point set is formed by the sensing points.
And 102, extracting three first induction points from the first induction point set according to a preset rule.
In the embodiment of the invention, a gesture that the palm of the user is placed on the screen of the electronic device and the thumb of the user is close to or far away from the index finger is recognized, as shown in fig. 2. Therefore, the embodiment of the present invention first recognizes the gesture of the palm, and there are various ways to recognize the gesture of the palm, one way is: and performing similarity calculation on the shape formed by the area covered by the user gesture and a preset palm shape, if the calculated similarity value is greater than or equal to a preset similarity threshold value, identifying the shape as the palm gesture, and otherwise identifying the shape as a non-palm gesture. In the case where the non-palm gesture is recognized, the information processing method subsequent to the embodiment of the present invention is not performed.
After the palm gesture is recognized, the electronic device needs to extract three first sensing points from the sensing points in the area covered by the palm gesture of the user according to a preset rule, where the three first sensing points include a first sub-first sensing point (shown as sensing point a in fig. 2), a second sub-first sensing point (shown as sensing point B in fig. 2), and a third sub-first sensing point (shown as sensing point C in fig. 2). The preset rule for extracting the first sensing point can be set according to actual needs, for example:
one preset rule may be: the method comprises the steps that the area covered by the gesture of a user is compared with a preset palm shape, a line segment of a thumb (a first line segment for short) and a line segment of a forefinger (a second line segment for short) are determined, the preset palm shape can be various, and the first line segment and the second line segment can be comprehensively determined through comparison with various shapes; the induction point at the top end of the first line segment is selected as a second sub first induction point, the induction point at the top end of the second line segment is selected as a third sub first induction point, and the intersection point of the extension line of the first line segment or the first line segment and the extension line of the second line segment or the second line segment is selected as a first sub first induction point.
Another preset rule may be: the method comprises the steps that the area covered by the gesture of a user is compared with a preset palm shape, a line segment of a thumb (a first line segment for short) and a line segment of a forefinger (a second line segment for short) are determined, the preset palm shape can be various, and the first line segment and the second line segment can be comprehensively determined through comparison with various shapes; selecting the sensing point at the top end of the first line segment as a second sub first sensing point, selecting the sensing point at the top end of the second line segment as a third sub first sensing point, calculating the geometric center point of the area covered by the user gesture, and selecting the sensing point at the geometric center point as a first sub first sensing point.
The preset rules in the embodiments of the present invention are not limited to the above examples.
And 103, acquiring a second sensing point set at a second moment through the sensing unit.
The second sensing point set is a set formed by sensing points in an area covered by the user gesture at the second moment. The electronic equipment obtains the induction points in the area covered by the user gesture at the second moment through the induction unit, and the induction points form a second induction point set.
And 104, extracting three second induction points from the second induction point set according to a preset rule.
The electronic device needs to extract three second sensing points including a first sub-second sensing point, a second sub-second sensing point and a third sub-second sensing point from the sensing points in the area covered by the user palm gesture at the second moment according to a preset rule. The preset rule for extracting the second sensing point can be set according to actual needs, for example:
one preset rule may be: the method comprises the steps that the area covered by the gesture of a user is compared with a preset palm shape, a line segment of a thumb (a first line segment for short) and a line segment of a forefinger (a second line segment for short) are determined, the preset palm shape can be various, and the first line segment and the second line segment can be comprehensively determined through comparison with various shapes; the induction point at the top end of the first line segment is selected as a second sub-second induction point, the induction point at the top end of the second line segment is selected as a third sub-second induction point, and the intersection point of the extension line of the first line segment or the first line segment and the extension line of the second line segment or the second line segment is selected as a first sub-second induction point.
Another preset rule may be: the method comprises the steps that the area covered by the gesture of a user is compared with a preset palm shape, a line segment of a thumb (a first line segment for short) and a line segment of a forefinger (a second line segment for short) are determined, the preset palm shape can be various, and the first line segment and the second line segment can be comprehensively determined through comparison with various shapes; selecting the sensing point at the top end of the first line segment as a second sub-second sensing point, selecting the sensing point at the top end of the second line segment as a third sub-second sensing point, calculating the geometric center point of the area covered by the user gesture, and selecting the sensing point positioned at the geometric center point as a first sub-second sensing point.
The preset rules in the embodiments of the present invention are not limited to the above examples. However, the predetermined rule used for extracting three first sensing points from the first sensing point set and the predetermined rule used for extracting three second sensing points from the second sensing point set must be the same to ensure the accuracy of the calculation result.
And 105, processing the three first sensing points and the three second sensing points to generate a processing result.
Specifically, the position coordinates of three first induction points at a first moment and the position coordinates of three second induction points at a second moment are respectively recorded;
calculating to obtain a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with a preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of a first comparison result and a second comparison result.
And 106, when the processing result shows that the first distance between the first sub first sensing point at the first moment and the first sub second sensing point at the second moment is smaller than the preset threshold value and the second distance between the second sub first sensing point at the first moment and the third sub first sensing point at the first moment is changed relative to the third distance between the second sub second sensing point at the second moment and the third sub second sensing point at the second moment, generating a control command according to the change trend of the second distance and the first distance.
And when the first comparison result shows that the first distance between the first sub first sensing point at the first moment and the first sub second sensing point at the second moment is smaller than the preset threshold value, and the second comparison result shows that the second distance between the second sub first sensing point at the first moment and the third sub first sensing point is changed relative to the third distance between the second sub second sensing point at the second moment and the third sub second sensing point, generating a control command according to the change trend of the second distance and the first distance.
Specifically, when the first distance is smaller than a predetermined threshold and the second distance is larger than the third distance, the electronic device generates a first control instruction;
when the first distance is smaller than the preset threshold value and the second distance becomes smaller relative to the third distance, the electronic equipment generates a second control instruction.
Step 107, responding to the control instruction.
The responding control instruction means that the electronic equipment executes processing corresponding to the control instruction.
It should be noted that the control instruction of the embodiment of the present invention is used to instruct to change the page display effect, where the change of the page display effect includes, but is not limited to, at least one of the following: enlarging the page, reducing the page, curling the page and turning the page.
Specifically, when the control instruction is used for instructing to zoom out the page, when the first distance is smaller than the predetermined threshold and the second distance is larger than the third distance, the first control instruction generated by the electronic device is used for instructing to zoom out the page; and when the first distance is smaller than the preset threshold value and the second distance is smaller relative to the third distance, the electronic equipment generates a second control instruction for indicating the page to be enlarged.
When the control instruction is used for indicating page curling, the electronic equipment calculates the page curling amplitude through a preset conversion relation according to the change value of the second distance at the first moment relative to the third distance at the second moment; the control instruction is used for indicating the corresponding amplitude of the page curl. Specifically, the conversion relationship is required to satisfy that when the second distance at the first time is larger than the third distance at the second time, the amplitude of the calculated page curl is correspondingly larger, and when the second distance at the first time is smaller than the third distance at the second time, the amplitude of the calculated page curl is correspondingly smaller. When the input gesture is finished, generating a page turning instruction, and responding to the page turning instruction; the responding page turning instruction means that the electronic device executes a page turning operation, and an object of the page turning operation is an object covered by a user gesture, such as: pictures, documents, etc.
It is emphasized that the method of the embodiment of the present invention further comprises: the electronic equipment obtains an Nth sensing point set at the Nth moment through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment.
That is, the method of the embodiment of the present invention is not limited to include the first time and the second time before the nth time, and may include a third time, a fourth time, and even more up to the nth-1 time. Between the third time and the nth time, the electronic device still needs to obtain a corresponding sensing point set at each time, and extract three corresponding sensing points from the corresponding sensing point set according to the same predetermined rule; and processing the three sensing points at the next moment and the three sensing points at the previous moment to generate corresponding processing results, and similarly, when the processing results show that the first distance between the first sub-sensing point at the previous moment and the first sub-sensing point at the next moment is smaller than a preset threshold value, and the second distance between the second sub-sensing point at the previous moment and the third sub-sensing point is changed relative to the third distance between the second sub-sensing point at the next moment and the third sub-sensing point, generating a control command according to the change trend of the second distance and the first distance, and responding to the control command. That is, in the embodiment of the present invention, the sensing of the user gesture is real-time, and the response to the control command is also real-time.
Example two
Corresponding to the information processing method in the first embodiment, a second embodiment of the present invention provides an electronic device, as shown in fig. 3, where the electronic device includes: the sensing unit 10, the sensing point extracting unit 20, the control unit 30 and the response unit 40; wherein,
the sensing unit 10 is configured to obtain a first sensing point set at a first time, where when the sensing unit obtains the first sensing point set at the first time, it indicates that an input gesture starts;
the sensing point extracting unit 20 is configured to extract three first sensing points from the first sensing point set according to a predetermined rule;
the sensing unit 10 is further configured to obtain a second sensing point set at a second time;
the sensing point extracting unit 20 is further configured to extract three second sensing points from the second sensing point set according to a predetermined rule;
the control unit 30 is used for processing the three first sensing points and the three second sensing points to generate a processing result; when the processing result shows that a first distance between a first sub first sensing point at a first moment and a first sub second sensing point at a second moment is smaller than a preset threshold value and a second distance between a second sub first sensing point at the first moment and a third sub first sensing point is changed relative to a third distance between a second sub second sensing point at the second moment and a third sub second sensing point, generating a control command according to the change trend of the second distance and the first distance;
and a response unit 40 for responding to the control instruction.
In a preferred embodiment, the response unit 40 is further configured to change the page display effect according to the control instruction, wherein the changing the page display effect includes at least one of: enlarging the page, reducing the page, curling the page and turning the page.
In a preferred embodiment, the sensing unit 10 is further configured to obtain an nth set of sensing points at an nth time; n is a positive integer greater than or equal to 2, the nth time is the last time when the input gesture is cancelled, and when the nth sensing point set is obtained at the nth time through the sensing unit 10, the input gesture is finished.
In a preferred embodiment, the control unit 30 is further configured to process the three first sensing points and the three second sensing points by:
respectively recording the position coordinates of the three first induction points at the first moment and the position coordinates of the three second induction points at the second moment;
calculating to obtain a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with a preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of a first comparison result and a second comparison result.
In a preferred embodiment, the control unit 30 is further adapted to,
when the first distance is smaller than a preset threshold value and the second distance is larger than the third distance, generating a first control instruction;
and generating a second control instruction when the first distance is smaller than the preset threshold value and the second distance becomes smaller relative to the third distance.
In a preferred embodiment, the control unit 30 is further configured to calculate the page curl amplitude according to a predetermined conversion relationship based on a variation value of the second distance at the first time relative to the third distance at the second time; the control instruction is used for indicating the corresponding amplitude of the page curling; generating a page turning instruction when the input gesture is finished;
the response unit is further used for responding to the page turning instruction.
It should be noted that the sensing Unit 10, the sensing point extracting Unit 20, the control Unit 30 and the response Unit 40 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), or a Programmable logic Array (FPGA) of an electronic device.
According to the first embodiment and the second embodiment of the invention, the gesture that the palm of the user is placed on the screen of the electronic device and the thumb of the user approaches to or leaves from the index finger can be recognized through the sensing unit, and corresponding processing can be executed according to the gesture recognition result. Through the embodiment of the invention, the user gestures which can be identified by the electronic equipment are enriched, the processing types of the electronic equipment based on gesture identification are enriched, and the user experience is improved.
The information processing method provided by the embodiment of the invention can be used for identifying the gesture that the palm of the user is placed on the screen of the electronic equipment, the thumb of the user is close to or far away from the index finger, and the electronic equipment can execute at least the following processing according to the identified gesture: page zooming, page curling and page turning. Embodiments of the present invention are not limited to the above-described processes. The following describes the information processing method according to the embodiment of the present invention in further detail by taking page scaling, page curling, and page turning as examples.
EXAMPLE III
The third embodiment of the present invention is described by taking page reduction as an example, and the operation process related to the information processing method of the third embodiment of the present invention mainly includes:
1. at a first moment, the palm of a user is placed on a screen of the electronic equipment, and the electronic equipment obtains a first sensing point set through the sensing unit, wherein the first sensing point set obtained at the first moment through the sensing unit represents that an input gesture starts. The electronic equipment carries out similarity calculation on the shape formed by the area covered by the user gesture and a preset palm shape, and the shape is determined and recognized as the palm gesture.
2. The electronic device extracts three first sensing points from the first sensing point set according to a predetermined rule, as shown in fig. 4, the predetermined rule is: comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub-first sensing point (as shown in B1 in fig. 4), selecting the sensing point at the top end of the second line segment as a third sub-first sensing point (as shown in C1 in fig. 4), calculating a geometric center point of an area covered by the user gesture, and selecting the sensing point at the geometric center point as a first sub-first sensing point (as shown in a1 in fig. 4).
3. The electronic equipment obtains a second induction point set at a second moment through the induction unit, and extracts three second induction points from the second induction point set according to a preset rule; the predetermined rule used for extracting the second sensing point is the same as the predetermined rule used for extracting the first sensing point, namely:
comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub-second sensing point (as shown in B2 in fig. 5), selecting the sensing point at the top end of the second line segment as a third sub-second sensing point (as shown in C2 in fig. 5), calculating a geometric center point of an area covered by the user gesture, and selecting the sensing point at the geometric center point as the first sub-second sensing point (as shown in a2 in fig. 5).
4. And processing the three first sensing points and the three second sensing points to generate a processing result. Specifically, the position coordinates of three first induction points at a first moment and the position coordinates of three second induction points at a second moment are respectively recorded; calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with a preset threshold value to obtain a first comparison result which indicates that the first distance is smaller than the preset threshold value; and calculating a second distance between the second sub first sensing point and the third sub first sensing point at the first moment according to the recorded position coordinates of the second sub first sensing point and the third sub first sensing point at the first moment (as shown by d1 in fig. 4), calculating a third distance between the second sub second sensing point and the third sub second sensing point at the second moment according to the recorded position coordinates of the second sub second sensing point and the third sub second sensing point at the second moment (as shown by d2 in fig. 5), and comparing the second distance with the third distance to obtain a second comparison result indicating that the second distance becomes larger relative to the third distance.
5. The electronic device generates a control instruction for page reduction according to the second distance and the change trend of the first distance (namely, the second distance is larger relative to the third distance, and the first distance is smaller than a preset threshold), wherein the control instruction is for an object covered by a user gesture, such as: pictures, documents, etc.
6. And the electronic equipment responds to the control instruction of page reduction, and performs the operation of page reduction on the object covered by the gesture of the user, wherein the page reduction proportion is determined according to the difference value between the second distance and the third distance and a preset conversion relation, and the conversion relation specifies the mapping between the distance difference value and the page reduction proportion.
7. At the Nth moment, the electronic equipment obtains an Nth sensing point set through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment. When the electronic equipment knows that the input gesture is finished, a holding instruction is generated, and the size of the object covered by the gesture of the user is kept at the size of the Nth moment.
It should be noted that, the method according to the embodiment of the present invention is not limited to include the first time and the second time before the nth time, and may further include a third time, a fourth time, and even more until the nth-1 time. Between the third time and the nth time, the electronic device still needs to obtain a corresponding sensing point set at each time, and extract three corresponding sensing points from the corresponding sensing point set according to the same predetermined rule; and processing the three sensing points at the later moment and the three sensing points at the previous moment to generate corresponding processing results, generating a control instruction according to the processing results, and responding to the control instruction (which can be amplified or reduced). That is, in the embodiment of the present invention, the sensing of the user gesture is real-time, and the response to the control command is also real-time.
Example four
The fourth embodiment of the present invention is described by taking page enlargement as an example, and the operation process related to the information processing method of the embodiment of the present invention mainly includes:
1. at a first moment, the palm of a user is placed on a screen of the electronic equipment, and the electronic equipment obtains a first sensing point set through the sensing unit, wherein the first sensing point set obtained at the first moment through the sensing unit represents that an input gesture starts. The electronic equipment carries out similarity calculation on the shape formed by the area covered by the user gesture and a preset palm shape, and the shape is determined and recognized as the palm gesture.
2. The electronic equipment extracts three first induction points from the first induction point set according to a preset rule, wherein the preset rule is as follows: comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub first sensing point, selecting the sensing point at the top end of the second line segment as a third sub first sensing point, calculating the geometric center point of the area covered by the user gesture, and selecting the sensing point at the geometric center point as a first sub first sensing point.
3. The electronic equipment obtains a second induction point set at a second moment through the induction unit, and extracts three second induction points from the second induction point set according to a preset rule; the predetermined rule used for extracting the second sensing point is the same as the predetermined rule used for extracting the first sensing point, namely:
comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub-second sensing point, selecting the sensing point at the top end of the second line segment as a third sub-second sensing point, calculating the geometric center point of the area covered by the user gesture, and selecting the sensing point positioned at the geometric center point as a first sub-second sensing point.
4. And processing the three first sensing points and the three second sensing points to generate a processing result. Specifically, the position coordinates of three first induction points at a first moment and the position coordinates of three second induction points at a second moment are respectively recorded; calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with a preset threshold value to obtain a first comparison result which indicates that the first distance is smaller than the preset threshold value; and calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, comparing the second distance with the third distance, and obtaining a second comparison result to show that the second distance is smaller relative to the third distance.
5. The electronic device generates a control instruction for enlarging the page according to the second distance and the changing trend of the first distance (namely, the second distance becomes smaller relative to the third distance, and the first distance is smaller than a preset threshold), wherein the control instruction is directed to an object covered by the gesture of the user, such as: pictures, documents, etc.
6. And the electronic equipment responds to the control instruction of the page enlargement, and executes the page enlargement operation on the object covered by the gesture of the user, wherein the page enlargement ratio is determined according to the difference value of the second distance and the third distance and a preset conversion relation, and the conversion relation specifies the mapping between the distance difference value and the page enlargement ratio.
7. At the Nth moment, the electronic equipment obtains an Nth sensing point set through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment. When the electronic equipment knows that the input gesture is finished, a holding instruction is generated, and the size of the object covered by the gesture of the user is kept at the size of the Nth moment.
It should be noted that, the method according to the embodiment of the present invention is not limited to include the first time and the second time before the nth time, and may further include a third time, a fourth time, and even more until the nth-1 time. Between the third time and the nth time, the electronic device still needs to obtain a corresponding sensing point set at each time, and extract three corresponding sensing points from the corresponding sensing point set according to the same predetermined rule; and processing the three sensing points at the later moment and the three sensing points at the previous moment to generate corresponding processing results, generating a control instruction according to the processing results, and responding to the control instruction (which can be amplified or reduced). That is, in the embodiment of the present invention, the sensing of the user gesture is real-time, and the response to the control command is also real-time.
EXAMPLE five
Fifth, page curling and page turning are taken as examples for explanation, and the operation process related to the information processing method of the fifth embodiment of the present invention mainly includes:
1. at a first moment, the palm of a user is placed on a screen of the electronic equipment, and the electronic equipment obtains a first sensing point set through the sensing unit, wherein the first sensing point set obtained at the first moment through the sensing unit represents that an input gesture starts. The electronic equipment carries out similarity calculation on the shape formed by the area covered by the user gesture and a preset palm shape, and the shape is determined and recognized as the palm gesture.
2. The electronic device extracts three first sensing points from the first sensing point set according to a predetermined rule, as shown in fig. 4, the predetermined rule is: comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub-first sensing point (as shown in B1 in fig. 4), selecting the sensing point at the top end of the second line segment as a third sub-first sensing point (as shown in C1 in fig. 4), calculating a geometric center point of an area covered by the user gesture, and selecting the sensing point at the geometric center point as a first sub-first sensing point (as shown in a1 in fig. 4).
3. The electronic equipment obtains a second induction point set at a second moment through the induction unit, and extracts three second induction points from the second induction point set according to a preset rule; the predetermined rule used for extracting the second sensing point is the same as the predetermined rule used for extracting the first sensing point, namely:
comparing the area covered by the user gesture with a preset palm shape, and determining a line segment of a thumb (for convenience in description, a first line segment is short) and a line segment of a forefinger (for convenience in description, a second line segment is short); selecting the sensing point at the top end of the first line segment as a second sub-second sensing point (as shown in B2 in fig. 6), selecting the sensing point at the top end of the second line segment as a third sub-second sensing point (as shown in C2 in fig. 6), calculating a geometric center point of an area covered by the user gesture, and selecting the sensing point at the geometric center point as the first sub-second sensing point (as shown in a2 in fig. 6).
4. And processing the three first sensing points and the three second sensing points to generate a processing result. Specifically, the position coordinates of three first induction points at a first moment and the position coordinates of three second induction points at a second moment are respectively recorded; calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with a preset threshold value to obtain a first comparison result which indicates that the first distance is smaller than the preset threshold value; and calculating a second distance between the second sub first sensing point and the third sub first sensing point at the first moment according to the recorded position coordinates of the second sub first sensing point and the third sub first sensing point at the first moment (as shown by d1 in fig. 4), calculating a third distance between the second sub second sensing point and the third sub second sensing point at the second moment according to the recorded position coordinates of the second sub second sensing point and the third sub second sensing point at the second moment (as shown by d2 in fig. 6), and comparing the second distance with the third distance to obtain a second comparison result indicating that the second distance becomes larger relative to the third distance.
5. The electronic device generates a control instruction for curling the page according to the second distance and the change trend of the first distance (namely, the second distance is larger relative to the third distance, and the first distance is smaller than a preset threshold), wherein the control instruction is directed to an object covered by the user gesture, and comprises the following steps: pictures, documents, etc.
6. The electronic device responds to the control instruction of the curled page, and executes the operation of curling the page on the object covered by the user gesture (the curling effect is shown in fig. 6), wherein the amplitude of the page curl is determined according to the difference value of the second distance and the third distance and a preset conversion relation, and the conversion relation specifies the mapping between the distance difference value and the page curl amplitude.
7. At the Nth moment, the electronic equipment obtains an Nth sensing point set through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment. When the electronic device knows that the input gesture is finished, a page turning instruction is generated and responds to the page turning instruction, and page turning operation is performed on an object covered by the gesture of the user, wherein page turning is to switch the object from displaying a first page at the Nth moment to displaying a second page at the later moment, and the second page can display content related to the first page, for example: the second page may display an operation button for the first page, the operation button including at least one of: editing, sharing and deleting.
It should be noted that, the method according to the embodiment of the present invention is not limited to include the first time and the second time before the nth time, and may further include a third time, a fourth time, and even more until the nth-1 time. Between the third time and the nth time, the electronic device still needs to obtain a corresponding sensing point set at each time, and extract three corresponding sensing points from the corresponding sensing point set according to the same predetermined rule; and processing the three sensing points at the next moment and the three sensing points at the previous moment to generate corresponding processing results, generating a control instruction according to the processing results, and responding to the control instruction (controlling the change of the page curling amplitude). That is, in the embodiment of the present invention, the sensing of the user gesture is real-time, and the response to the control command is also real-time.
In the embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and electronic device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (12)
1. An information processing method is applied to an electronic device, the electronic device comprises a sensing unit, and the method comprises the following steps:
obtaining, by the sensing unit, a first set of sensing points at a first time, wherein the first set of sensing points obtained by the sensing unit at the first time indicates that an input gesture starts;
extracting three first induction points from the first induction point set according to a preset rule;
obtaining a second sensing point set at a second moment through the sensing unit;
extracting three second induction points from the second induction point set according to a preset rule;
processing the three first induction points and the three second induction points to generate a processing result;
when the processing result shows that a first distance between a first sub first sensing point at the first moment and a first sub second sensing point at the second moment is smaller than a preset threshold value and a second distance between a second sub first sensing point at the first moment and a third sub first sensing point at the first moment is changed relative to a third distance between a second sub second sensing point at the second moment and a third sub second sensing point, generating a control command according to a change trend of the second distance relative to the third distance;
responding to the control instruction.
2. The information processing method according to claim 1, wherein the control instruction is for instructing to change a page display effect.
3. The information processing method according to claim 1, characterized by further comprising:
obtaining an Nth sensing point set at the Nth moment through the sensing unit; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment.
4. The information processing method of claim 1, wherein the processing three first sensing points and three second sensing points to generate a processing result comprises:
respectively recording the position coordinates of the three first induction points at the first moment and the position coordinates of the three second induction points at the second moment;
calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with the preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of the first comparison result and the second comparison result.
5. The information processing method according to claim 1, wherein when the processing result indicates that the first distance is smaller than the predetermined threshold value and the second distance changes with respect to the third distance, generating the control instruction according to the second distance and the trend of change in the first distance includes:
when the first distance is smaller than a preset threshold value and the second distance is larger than a third distance, generating a first control instruction;
and when the first distance is smaller than a preset threshold value and the second distance becomes smaller relative to a third distance, generating a second control instruction.
6. The information processing method according to claim 2, wherein the method further comprises:
calculating the amplitude of page curl according to the change value of the second distance at the first moment relative to the third distance at the second moment through a preset conversion relation; the control instruction is used for indicating the corresponding amplitude of the page curling;
generating a page turning instruction when the input gesture is finished;
and responding to the page turning instruction.
7. An electronic device, comprising:
the sensing unit is used for obtaining a first sensing point set at a first moment, wherein when the sensing unit obtains the first sensing point set at the first moment, the sensing unit represents that an input gesture starts;
the induction point extracting unit is used for extracting three first induction points from the first induction point set according to a preset rule;
the sensing unit is further used for obtaining a second sensing point set at a second moment;
the induction point extracting unit is further configured to extract three second induction points from the second induction point set according to a predetermined rule;
the control unit is used for processing the three first induction points and the three second induction points to generate a processing result; when the processing result shows that a first distance between a first sub first sensing point at the first moment and a first sub second sensing point at the second moment is smaller than a preset threshold value and a second distance between a second sub first sensing point at the first moment and a third sub first sensing point at the first moment is changed relative to a third distance between a second sub second sensing point at the second moment and a third sub second sensing point, generating a control command according to a change trend of the second distance relative to the third distance;
and the response unit is used for responding to the control instruction.
8. The electronic device of claim 7, wherein the response unit is further configured to change a page display effect according to the control instruction.
9. The electronic device of claim 7, wherein the sensing unit is further configured to obtain an nth set of sensing points at an nth time; n is a positive integer greater than or equal to 2, the Nth moment is the last moment when the input gesture is cancelled, and the input gesture is finished when the sensing unit obtains the Nth sensing point set at the Nth moment.
10. The electronic device of claim 7, wherein the control unit is further configured to process the three first sensing points and the three second sensing points to generate a processing result by:
respectively recording the position coordinates of the three first induction points at the first moment and the position coordinates of the three second induction points at the second moment;
calculating and obtaining a first distance between the first sub first induction point and the first sub second induction point according to the recorded position coordinates of the first sub first induction point at the first moment and the recorded position coordinates of the first sub second induction point at the second moment, and comparing the first distance with the preset threshold value to obtain a first comparison result;
calculating a second distance between the second sub first induction point and the third sub first induction point at the first moment according to the recorded position coordinates of the second sub first induction point and the third sub first induction point at the first moment, calculating a third distance between the second sub second induction point and the third sub second induction point at the second moment according to the recorded position coordinates of the second sub second induction point and the third sub second induction point at the second moment, and comparing the second distance with the third distance to obtain a second comparison result;
the processing result is composed of the first comparison result and the second comparison result.
11. The electronic device of claim 7, wherein the control unit is further configured to,
when the first distance is smaller than a preset threshold value and the second distance is larger than a third distance, generating a first control instruction;
and generating a second control instruction when the first distance is smaller than a preset threshold value and the second distance becomes smaller relative to a third distance.
12. The electronic device according to claim 8, wherein the control unit is further configured to calculate an amplitude of page curl according to a change value of a second distance at the first time with respect to a third distance at the second time, through a predetermined conversion relation; the control instruction is used for indicating the corresponding amplitude of the page curling; generating a page turning instruction when the input gesture is finished;
the response unit is further used for responding to the page turning instruction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410268336.6A CN105446604B (en) | 2014-06-16 | 2014-06-16 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410268336.6A CN105446604B (en) | 2014-06-16 | 2014-06-16 | A kind of information processing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105446604A CN105446604A (en) | 2016-03-30 |
| CN105446604B true CN105446604B (en) | 2018-11-09 |
Family
ID=55556876
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410268336.6A Active CN105446604B (en) | 2014-06-16 | 2014-06-16 | A kind of information processing method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105446604B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102789332A (en) * | 2011-05-17 | 2012-11-21 | 义隆电子股份有限公司 | Method for identifying palm area on touch panel and updating method thereof |
| CN103425419A (en) * | 2012-05-23 | 2013-12-04 | 联想(北京)有限公司 | Operation control method and electronic equipment |
| CN101133385B (en) * | 2005-03-04 | 2014-05-07 | 苹果公司 | Handheld electronic device, handheld device and method of operation thereof |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5932354B2 (en) * | 2012-01-20 | 2016-06-08 | キヤノン株式会社 | Information processing apparatus, control method thereof, and program |
-
2014
- 2014-06-16 CN CN201410268336.6A patent/CN105446604B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101133385B (en) * | 2005-03-04 | 2014-05-07 | 苹果公司 | Handheld electronic device, handheld device and method of operation thereof |
| CN102789332A (en) * | 2011-05-17 | 2012-11-21 | 义隆电子股份有限公司 | Method for identifying palm area on touch panel and updating method thereof |
| CN103425419A (en) * | 2012-05-23 | 2013-12-04 | 联想(北京)有限公司 | Operation control method and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105446604A (en) | 2016-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI579734B (en) | 3d visualization | |
| JP7152528B2 (en) | Methods, apparatus and electronics for tracking multiple facials with facial special effects | |
| JP5665140B2 (en) | Input device, input method, and program | |
| CN109003224B (en) | Face-based deformation image generation method and device | |
| CN104199606B (en) | A kind of method and apparatus sliding input | |
| CN103092343B (en) | A kind of control method based on photographic head and mobile terminal | |
| WO2017185575A1 (en) | Touch screen track recognition method and apparatus | |
| CN106293074A (en) | A kind of Emotion identification method and mobile terminal | |
| US20130044061A1 (en) | Method and apparatus for providing a no-tap zone for touch screen displays | |
| KR20140003149A (en) | User customizable interface system and implementing method thereof | |
| CN107450717B (en) | Information processing method and wearable device | |
| US20170315964A1 (en) | Web page reformatting method and apparatus, computing device and non-transitory machine readable storage medium | |
| CN104978074B (en) | Formula input method and device | |
| CN107077284A (en) | Holding method judging device, control program, and recording medium | |
| CN104090724B (en) | Method and device for operating files through two-finger gestures in an intelligent terminal | |
| CN106951168B (en) | Word processing method and mobile terminal | |
| TWI505173B (en) | System and method for improving recognition of a touch keyboard in an electronic device | |
| CN106548795A (en) | A kind of control method and mobile terminal of multimedia player | |
| CN108132743B (en) | Display processing method and display processing apparatus | |
| CN107480499B (en) | Child lock control method, device and terminal in the operation of touch screen equipment | |
| WO2016145827A1 (en) | Terminal control method and device | |
| CN103605460B (en) | Gesture recognition method and related terminal | |
| KR101807249B1 (en) | Method and device for determining user input on basis of visual information on user's fingernails or toenails | |
| CN105446604B (en) | A kind of information processing method and electronic equipment | |
| JP6631329B2 (en) | Information processing device and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |