CN110633139B - Function switching method and device - Google Patents

Function switching method and device Download PDF

Info

Publication number
CN110633139B
CN110633139B CN201910888181.9A CN201910888181A CN110633139B CN 110633139 B CN110633139 B CN 110633139B CN 201910888181 A CN201910888181 A CN 201910888181A CN 110633139 B CN110633139 B CN 110633139B
Authority
CN
China
Prior art keywords
equipment
switching instruction
gesture
display
function
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
CN201910888181.9A
Other languages
Chinese (zh)
Other versions
CN110633139A (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.)
Clixup Touch Beijing Co ltd
Original Assignee
Clixup Touch Beijing 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 Clixup Touch Beijing Co ltd filed Critical Clixup Touch Beijing Co ltd
Priority to CN201910888181.9A priority Critical patent/CN110633139B/en
Publication of CN110633139A publication Critical patent/CN110633139A/en
Application granted granted Critical
Publication of CN110633139B publication Critical patent/CN110633139B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention provides a function switching method, which comprises the following steps: receiving a switching instruction sent by first equipment; detecting the gesture of the first equipment when the first equipment sends a switching instruction, and responding to the switching instruction sent by the first equipment according to the gesture of the first equipment; and when the switching instruction sent by the first equipment is responded, switching the first function currently being executed to the second function according to the switching instruction. The invention also correspondingly provides a function switching device. The invention fuses the switching instruction with the gesture of the first equipment, and the function switching is performed when the first equipment is in the gesture capable of responding to the switching instruction. Therefore, the operation mode of the keys is not required to be increased, so that the operation of a user is simpler and clearer.

Description

Function switching method and device
Technical Field
The present disclosure relates to the field of man-machine interaction, and in particular, to a method and an apparatus for switching functions.
Background
Along with the development of society, intelligent devices frequently appear in life of people, including multi-touch screens and intelligent writing pens matched with the multi-touch screens. The multi-touch screen is now widely used in intelligent education and intelligent conferences. Various documents and teaching materials can be displayed for listeners, meanwhile, the operation and writing are convenient, and the user's favor is obtained.
At present, in order to enable a user to generate better use effect and user experience in the process of applying the multi-point touch screen and the intelligent writing pen, more humanized and convenient accessory functions are realized through software. And the user may select the function to be performed by a key on the smart pen. However, as the demands of users increase, more and more function keys are added to the smart pen. The whole image of intelligent writing pen can be influenced by too many function keys, and simultaneously, a lot of trouble can be brought to a user in the using process. Thus, many smart pens currently switch different functions on a key by means of different keys, for example by clicking or double clicking a key to change the function to be performed, but clicking or double clicking a key is easily confused with clicking or double clicking a mouse. Cumbersome operations and various ways of pressing keys also cause inconvenience to the user. And will also have an impact on subsequent development of the extension.
Disclosure of Invention
In order to solve one of the above technical problems, the present invention provides a method and an apparatus for switching functions.
An embodiment of the present invention provides a method for switching functions, where the method includes:
receiving a switching instruction sent by first equipment;
detecting the gesture of the first equipment when the first equipment sends a switching instruction, and responding to the switching instruction sent by the first equipment according to the gesture of the first equipment;
and when the switching instruction sent by the first equipment is responded, switching the first function currently being executed to the second function according to the switching instruction.
Preferably, the process of detecting the gesture of the first device when the first device sends the switching instruction includes:
detecting a real-time position vector of the first device when the first device sends a switching instruction;
comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector, wherein the preset initial vector is a preset vector when the first equipment is in an initial posture;
and acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
Preferably, the process of responding to the switching instruction sent by the first device according to the gesture of the first device includes:
and responding to the switching instruction sent by the first equipment when the gesture of the first equipment is a preset gesture when the first equipment sends the switching instruction.
Preferably, the method further comprises:
and when the switching instruction sent by the first equipment is not responded according to the gesture of the first equipment, continuing to execute the first function until the switching instruction sent by the first equipment is responded according to the gesture of the first equipment.
A second aspect of an embodiment of the present invention provides a function switching apparatus, the apparatus including a processor configured with operation instructions executable by the processor to perform operations of:
receiving a switching instruction sent by first equipment;
detecting the gesture of the first equipment when the first equipment sends a switching instruction, and responding to the switching instruction sent by the first equipment according to the gesture of the first equipment;
and when the switching instruction sent by the first equipment is responded, switching the first function currently being executed to the second function according to the switching instruction.
Preferably, the processor is configured with processor-executable operating instructions to perform the following operations:
detecting a real-time position vector of the first device when the first device sends a switching instruction;
comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector, wherein the preset initial vector is a preset vector when the first equipment is in an initial posture;
and acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
Preferably, the processor is configured with processor-executable operating instructions to perform the following operations:
and responding to the switching instruction sent by the first equipment when the gesture of the first equipment is a preset gesture when the first equipment sends the switching instruction.
Preferably, the processor is configured with processor-executable operating instructions to perform the following operations:
and when the switching instruction sent by the first equipment is not responded according to the gesture of the first equipment, continuing to execute the first function until the switching instruction sent by the first equipment is responded according to the gesture of the first equipment.
The beneficial effects of the invention are as follows: the invention fuses the switching instruction with the gesture of the first equipment, and the function switching is performed when the first equipment is in the gesture capable of responding to the switching instruction. Therefore, the operation mode of the keys is not required to be increased, so that the operation of a user is simpler and clearer.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of a method for switching functions according to an embodiment of the present invention;
fig. 2 is a flowchart of detecting a gesture of a first device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of exemplary embodiments of the present application is given with reference to the accompanying drawings, and it is apparent that the described embodiments are only some of the embodiments of the present application and not exhaustive of all the embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
Example 1
As shown in fig. 1, this embodiment proposes a function switching method, which includes:
s101, receiving a switching instruction sent by first equipment, detecting the gesture of the first equipment when the first equipment sends the switching instruction, and responding to the switching instruction sent by the first equipment according to the gesture of the first equipment.
Specifically, the first device in this embodiment may be an intelligent electronic device such as an intelligent writing pen, an air mouse, or an intelligent remote controller. The first device may wirelessly manipulate the display device, including controlling movement of a cursor, selection of icons or files, activation or deactivation of various functions, and so forth. In this embodiment, an application program in which various functions are configured, such as a display function, which may have one or more of, for example, an amplifying function, a condensing function, and/or a laser function, is installed in a host of the display device. Each display function corresponds to its own unique display effect. The user can select the display effect required by the user through the first device to display.
For example, the first device is a smart pen, and the display device is a commonly used computer display, and the computer display is connected to a host. First, an application program including a display function is installed in a host. The smart pen is then connected or paired with the host. A selection button can be arranged on the intelligent writing pen, and a user can start or stop a display function through the button. When the user presses the selection key for the first time, a selection instruction is sent to the host, and the host invokes a corresponding display function after analyzing the selection instruction. And finally, displaying the display effect corresponding to the display function on a display interface of the display device.
In the process of selecting the display function, if only one display function exists at the moment, the display effect corresponding to the display function is directly displayed on the display interface of the display device. Switching between display functions is involved if there are multiple display functions at this time. In this embodiment, the user may switch through a key on the first device, and may also adopt any scheme capable of implementing the above functions, such as voice control, fingerprint, sliding, and body feeling. The present embodiment is not limited in any way herein. In the process of switching the display function, a user firstly clicks a key with the switching function on the first device, and then the gesture of the first device is detected when the user clicks the key. If the first device is in a preset gesture when the user clicks a key, responding to a switching instruction executed by the user. Otherwise, if the first device is not in the preset gesture, the switching instruction executed by the user is not responded.
Wherein, as shown in fig. 2, the process of detecting the gesture of the first device is as follows:
s1011, detecting a real-time position vector of the first device when the first device sends a switching instruction;
s1012, comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector;
s1013, acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
Specifically, a motion sensor, such as an accelerometer, is first provided in the first device before the user uses the first device or leaves the factory with the first device. The motion sensor is then pre-set with an initial vector, which is used as a reference vector. A real-time position vector of the motion sensor is detected while the user is using the first device. The deviation of the real-time position vector from the initial vector may reflect whether the pose of the first device has changed. The correct position of the current gesture of the first device can be further calculated by calculating the included angle between the real-time position vector and the preset initial vector. And if the gesture of the first equipment is in the range of the preset gesture, responding to the switching instruction, otherwise, not responding.
In this embodiment, the first device may be an electronic device such as an intelligent writing pen and an air mouse, which are used in combination with the display device. The existing intelligent writing pen or air mice are regular in overall appearance and have certain directivity. Therefore, the directivity of such a device itself can be sufficiently considered when setting the preset posture. Taking an intelligent writing pen as an example, the intelligent writing pen generally comprises a pen point and a pen body. The nib down or nib up can be set to a preset posture. That is, when the tip of the smart pen is facing down or up while the user presses the key, a switching instruction is responded. And when the pen point faces to other directions, the switching instruction is not responded. Of course, in order to facilitate the user's attention to the orientation of the pen tip too deliberately when using the smart pen, the angle of the pen tip orientation may be appropriately adjusted.
S102, when a switching instruction sent by the first device is responded, switching the first function currently being executed to a second function according to the switching instruction.
Specifically, a scenario in which the switching instruction is responded to has been described in the above-described procedure. When the switch instruction is responded, the display function can be switched. If the switch instruction is not responded, continuing to execute the currently executing display function or exiting the currently executing display function.
In addition, when the user switches the display function, a selection window (e.g., a selection menu bar) may be provided for the user. And listing all the boxes of the display functions in the selection window, and loading movable selection marks on the boxes of one of the display functions. The user can move the selected mark to the selection frame of other display functions through other keys (such as a page up and down key) on the intelligent writing pen, and then select the display function corresponding to the selection frame of the display function where the selected mark is located by pressing the selected key. The selection mark may also be moved by a continuous short press of the selection key and then selected by a long press of the selection key.
In the present embodiment, three display functions, that is, an amplifying function, a condensing function, and a laser function are listed. The following describes the display effects and specific implementation procedures corresponding to the three display functions:
amplification function: the display effect corresponding to the function is an amplifying effect, namely, part of display contents in the display interface are amplified, so that the function of an amplifying mirror is realized. The implementation process of the amplifying effect is as follows:
a transparent amplifying window is established on the upper layer of the display interface;
acquiring the cursor position in the enlarged window;
forming a frame selection graph on the enlarged window by taking the cursor as a center and taking a preset distance as a radius, and hiding the cursor;
and amplifying the display content of the display interface falling into the frame selection graph in the amplifying window according to a preset amplifying proportion.
Specifically, after receiving a selection instruction sent by the first device, an amplifying window is established at the upper layer of the current display interface of the display device. The enlarged window is a full transparent window, so as not to influence the normal watching of the display content on the display interface by the user. And then acquiring the position of the cursor on the enlarged window, and forming a frame selection graph on the enlarged window by taking the cursor as a center and taking a preset distance as a radius. The shape of the pattern may be circular, rectangular, diamond or triangle, and the present embodiment is not limited. At this time, in the display interface, a part of the display content falls into the frame selection graphic. And intercepting the display content falling into the frame selection graph into an amplifying window, and amplifying the part of the display content according to a preset amplifying proportion. Since the box pattern is established centering on the cursor, and the cursor can move with the movement of the first device. Thus, as the user moves the first device, the selection of the frame may also move with it. The user can freely zoom in on any display content in the current display interface. And when the frame selection pattern moves from one position to another position, the display content which is enlarged before is restored to the normal display state. Meanwhile, in order not to influence normal watching of the enlarged display content by a user, a cursor is hidden when the frame selection graph is formed, so that the enlarged display content is not blocked. In addition, in order to enable the user to intuitively perceive the existence of the frame selection graphic and the covered area thereof, a color preferred by the user may be set at the edge of the frame selection graphic.
Condensing function: the display effect corresponding to the function is a spotlight effect, namely, a part of display contents in the display interface are subjected to spotlight, so that the spotlight function is achieved. The implementation process of the light condensing effect is as follows:
a condensing window with certain opacity is established on the upper layer of the display interface;
acquiring the cursor position in the light gathering window;
taking the cursor as a center, taking a preset distance as a radius, opening a frame selection graph on the light gathering window, and hiding the cursor;
and displaying the display content of the display interface falling into the frame selection graph in the light gathering window.
Specifically, after receiving a selection instruction sent by the first device, a light gathering window is established at the upper layer of the current display interface of the display device. The light gathering window has a certain opacity, so that the brightness of the whole display interface is darkened. And then acquiring the position of the cursor in the light gathering window, and taking the cursor as a center, and opening a frame selection graph on the enlarged window by taking a preset distance as a radius. The shape of the pattern may be circular, rectangular, diamond or triangle, and the present embodiment is not limited. At this time, the display content of the display interface located in the frame selection pattern is condensed and displayed at a normal brightness higher than that of other areas. Since the box pattern is established centering on the cursor, and the cursor can move with the movement of the first device. Thus, as the user moves the first device, the selection of the frame may also move with it. The user can optionally focus on any display content in the current display interface. When the frame selection graph moves from one position to another position, the display content which is condensed before is covered by the condensed window again, and the display brightness of the frame selection graph is the same as the display brightness of the display content which is covered by other condensed windows. Meanwhile, in order not to influence normal viewing of the condensed display content by a user, a cursor is hidden when the frame selection graph is formed, so that the condensed display content is not blocked. In addition, in order to enable the user to intuitively perceive the existence of the frame selection graphic and the covered area thereof, a color preferred by the user may be set at the edge of the frame selection graphic.
The brightness of other areas of the display interface is reduced, and the brightness of the display interface in the frame selection graph is kept, so that the brightness difference between the brightness in the frame selection graph and the brightness of other areas is generated, and finally, the light-gathering display effect is generated. In addition, the brightness of the display interface in the frame selection graph can be improved by keeping the brightness of other areas of the display interface. The latter is difficult to implement and the resulting brightness difference is somewhat less effective. Thus, the former implementation is preferred.
Laser function: the display effect corresponding to the function is a laser effect, namely, laser marking is performed in the display interface, so that the function of the laser pen is achieved. The implementation process of the laser effect is as follows:
a transparent laser window is established on the upper layer of the display interface;
acquiring the cursor position in a laser window;
and forming a laser mark with certain opacity on the laser window by taking the cursor as a center and taking a preset distance as a radius, and hiding the cursor.
Specifically, after receiving a selection instruction sent by the first device, a laser window is established on the upper layer of the current display interface of the display device. The laser window is a full transparent window, and aims to prevent users from being influenced to normally watch display contents on a display interface. And then acquiring the position of the cursor on the laser window, and forming a laser mark with certain opacity on the laser window by taking the cursor as a center and taking a preset distance as a radius. The shape of the laser mark may be circular, rectangular, diamond or triangle, and the embodiment is not limited. At this time, the laser mark is covered on the display interface just like the laser emitted from the laser pen. Since the laser marking is established centering on the cursor, and the cursor can be moved with the movement of the first device. Thus, as the user moves the first device, the laser marking may also move therewith. The user may move the laser mark on the display interface at his or her discretion. Meanwhile, in order not to influence the normal watching of the display content covered by the laser mark by a user, the cursor is hidden when the laser mark is formed, and the opacity of the laser mark can be properly adjusted, so that the display content covered by the laser mark can be displayed to a certain extent. In addition, in order to enable the user to intuitively perceive the existence of the laser mark and the area covered by the laser mark, the user may set the color of the laser mark according to his own preference. The laser mark edge can be set with a preferred color to distinguish the laser mark from the background.
When the user wants to switch the display function, the user can switch the display function by any mode such as key press, voice control, fingerprint, sliding, body feeling and the like. When the user performs the switching operation, the first device sends a switching instruction for switching the first display function to the second display function to the host of the display device. After receiving the switching instruction, the host of the display device first closes the first display function currently executed, and then executes the second display function. In the process of closing the first display function, the following processing is performed according to the display effects corresponding to different display functions:
amplification function: the opacity of the enlarged display content is gradually reduced within a preset time range until the opacity of the enlarged display content reaches a preset value, and then the enlargement window is canceled.
Specifically, the enlarged display content is displayed in the frame selection graph of the enlarged window, and the display content is intercepted in the display interface. When the zoom-in function is required to be turned off, the opacity of the display content displayed in the box selection graph is gradually reduced, and the vanishing feeling is enhanced by the gradual transition effect. Meanwhile, in order to avoid the influence on the effect caused by overlong gradual change time, the gradual change time can be set. For example, the time for which the opacity is reduced to the preset value may be set to 1s, and then during this 1s, the user may see that the opacity of the display content in the frame-selected graphic of the enlarged window gradually decreases. Since the magnification window is completely transparent when the magnification window is provided. Therefore, the opacity of the display content in the frame-selected graphic of the enlarged window can be reduced to the same extent as the opacity of the enlarged window, that is, the display content in the frame-selected graphic is made completely transparent, and the user appears to be in a completely disappeared state. If the edge of the frame-selected graphic is provided with a color, the opacity of the color of the edge is also graded in synchronization with the opacity of the display content until completely transparent. Finally, after the frame selection graphic and the display contents inside the frame selection graphic are completely transparent, the magnification window is canceled.
Condensing function: and gradually reducing the opacity of the light gathering window within a preset time range until the opacity of the light gathering window reaches a preset value, and then canceling the light gathering window.
Specifically, the condensing function is realized by a luminance difference between a display content to be condensed and other display contents. In this embodiment, a condensing window with a certain opacity is built on the upper layer of the display interface, and then a hole is formed on the condensing window, and the hole is the frame selection graph. The display content of the display interface can be displayed with normal display brightness through the hole, and the display content of other parts is blocked by the light gathering window. When the condensing function needs to be turned off, the opacity of the condensing window is gradually reduced as a whole until the condensing window is completely transparent. Thus, the gradual effect seen by the user is that the brightness of the display interface except the frame selection graph gradually rises until the brightness of the normal display interface is restored. Meanwhile, in order to avoid an excessively long time for the opacity change of the light collection window, a time range of the opacity change of the light collection window, for example, 1s, may be set. Within this 1s, the light collection window may be changed from having some opacity to a completely transparent state. If there is a set color at the edge of the framing pattern in the collection window, the opacity of that color is changed in synchronization with the opacity of the collection window until it is completely transparent. Finally, after the light collection window is completely transparent, the light collection window is canceled.
Laser function: the opacity of the laser mark is gradually reduced within a preset time range until the opacity of the laser mark reaches a preset value, and then the laser window is canceled.
In particular, the laser mark in the laser window may be used as a laser to indicate what the user wants to point to. When it is desired to switch off the laser function, the opacity of the laser marking is first gradually reduced, with a gradual transition effect enhancing the perception of disappearance. Meanwhile, in order to avoid the influence on the effect caused by overlong gradual change time, the gradual change time can be set. For example, the time for which the opacity decreases to the preset value may be set to 1s, and during this 1s the user may see that the laser marking gradually becomes transparent until it completely disappears. If the edge of the laser mark is provided with a color, the opacity of the color of the edge is also graded in synchronization with the opacity of the color of the laser mark until completely transparent. Finally, after the laser marking is completely transparent, the laser window is eliminated.
Example 2
Corresponding to embodiment 1, the present embodiment proposes a function switching device, the device including a processor configured with operation instructions executable by the processor to perform operations of:
receiving a switching instruction sent by first equipment;
detecting the gesture of the first equipment when the first equipment sends a switching instruction, and responding to the switching instruction sent by the first equipment according to the gesture of the first equipment;
and when the switching instruction sent by the first equipment is responded, switching the first function currently being executed to the second function according to the switching instruction.
Specifically, the first device in this embodiment may be an intelligent electronic device such as an intelligent writing pen, an air mouse, or an intelligent remote controller. The first device may wirelessly manipulate the display device, including controlling movement of a cursor, selection of icons or files, activation or deactivation of various functions, and so forth. In this embodiment, an application program in which various functions are configured, such as a display function, which may have one or more of, for example, an amplifying function, a condensing function, and/or a laser function, is installed in a host of the display device. Each display function corresponds to its own unique display effect. The user can select the display effect required by the user through the first device to display.
For example, the first device is a smart pen, and the display device is a commonly used computer display, and the computer display is connected to a host. First, an application program including a display function is installed in a host. The smart pen is then connected or paired with the host. A selection button can be arranged on the intelligent writing pen, and a user can start or stop a display function through the button. When the user presses the selection key for the first time, a selection instruction is sent to the host, and the host invokes a corresponding display function after analyzing the selection instruction. And finally, displaying the display effect corresponding to the display function on a display interface of the display device.
In the process of selecting the display function, if only one display function exists at the moment, the display effect corresponding to the display function is directly displayed on the display interface of the display device. Switching between display functions is involved if there are multiple display functions at this time. In this embodiment, the user may switch through a key on the first device, and may also adopt any scheme capable of implementing the above functions, such as voice control, fingerprint, sliding, and body feeling. The present embodiment is not limited in any way herein. In the process of switching the display function, a user firstly clicks a key with the switching function on the first device, and then the gesture of the first device is detected when the user clicks the key. If the first device is in a preset gesture when the user clicks a key, responding to a switching instruction executed by the user. Otherwise, if the first device is not in the preset gesture, the switching instruction executed by the user is not responded.
The process of detecting the gesture of the first device is as follows: detecting a real-time position vector of the first device when the first device sends a switching instruction; comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector, wherein the preset initial vector is a preset vector when the first equipment is in an initial posture; and acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
Specifically, a motion sensor, such as an accelerometer, is first provided in the first device before the user uses the first device or leaves the factory with the first device. The motion sensor is then pre-set with an initial vector, which is used as a reference vector. A real-time position vector of the motion sensor is detected while the user is using the first device. The deviation of the real-time position vector from the initial vector may reflect whether the pose of the first device has changed. The correct position of the current gesture of the first device can be further calculated by calculating the included angle between the real-time position vector and the preset initial vector. And if the gesture of the first equipment is in the range of the preset gesture, responding to the switching instruction, otherwise, not responding.
In this embodiment, the first device may be an electronic device such as an intelligent writing pen and an air mouse, which are used in combination with the display device. The existing intelligent writing pen or air mice are regular in overall appearance and have certain directivity. Therefore, the directivity of such a device itself can be sufficiently considered when setting the preset posture. Taking an intelligent writing pen as an example, the intelligent writing pen generally comprises a pen point and a pen body. The nib down or nib up can be set to a preset posture. That is, when the tip of the smart pen is facing down or up while the user presses the key, a switching instruction is responded. And when the pen point faces to other directions, the switching instruction is not responded. Of course, in order to facilitate the user's attention to the orientation of the pen tip too deliberately when using the smart pen, the angle of the pen tip orientation may be appropriately adjusted. When the switch instruction is responded, the display function can be switched. If the switch instruction is not responded, continuing to execute the currently executing display function or exiting the currently executing display function.
In addition, when the user switches the display function, a selection window (e.g., a selection menu bar) may be provided for the user. And listing all the boxes of the display functions in the selection window, and loading movable selection marks on the boxes of one of the display functions. The user can move the selected mark to the selection frame of other display functions through other keys (such as a page up and down key) on the intelligent writing pen, and then select the display function corresponding to the selection frame of the display function where the selected mark is located by pressing the selected key. The selection mark may also be moved by a continuous short press of the selection key and then selected by a long press of the selection key.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (8)

1. A method of switching functions, the method comprising:
receiving a switching instruction sent by first equipment, wherein the first equipment is an intelligent writing pen;
detecting the gesture of the first device when the first device sends a switching instruction, and responding to the switching instruction sent by the first device according to the gesture of the first device, wherein the gesture is determined through the direction of the pen point of the intelligent writing pen;
when a switching instruction sent by the first device is responded, switching a first display function currently being executed to a second display function according to the switching instruction, wherein the display functions comprise an amplifying function, a condensing function and a laser function.
2. The method of claim 1, wherein the process of detecting the pose of the first device when the first device sends a handoff instruction comprises:
detecting a real-time position vector of the first device when the first device sends a switching instruction;
comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector, wherein the preset initial vector is a preset vector when the first equipment is in an initial posture;
and acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
3. The method according to claim 1 or 2, wherein the responding to the switching instruction sent by the first device according to the gesture of the first device comprises:
and responding to the switching instruction sent by the first equipment when the gesture of the first equipment is a preset gesture when the first equipment sends the switching instruction.
4. The method according to claim 1, wherein the method further comprises:
and when the switching instruction sent by the first equipment is not responded according to the gesture of the first equipment, continuing to execute the first display function until the switching instruction sent by the first equipment is responded according to the gesture of the first equipment.
5. A function switching device, the device comprising a processor configured with processor-executable operating instructions to perform operations comprising:
receiving a switching instruction sent by first equipment, wherein the first equipment is an intelligent writing pen; detecting the gesture of the first device when the first device sends a switching instruction, and responding to the switching instruction sent by the first device according to the gesture of the first device, wherein the gesture is determined through the direction of the pen point of the intelligent writing pen; when a switching instruction sent by the first device is responded, switching a first display function currently being executed to a second display function according to the switching instruction, wherein the display functions comprise an amplifying function, a condensing function and a laser function.
6. The apparatus of claim 5, wherein the processor is configured with processor-executable operating instructions to perform operations comprising:
detecting a real-time position vector of the first device when the first device sends a switching instruction; comparing the real-time position vector with a preset initial vector to obtain an included angle between the real-time position vector and the preset initial vector, wherein the preset initial vector is a preset vector when the first equipment is in an initial posture; and acquiring the gesture of the first device when the first device sends a switching instruction according to the included angle.
7. The apparatus of claim 5 or 6, wherein the processor is configured with processor-executable operating instructions to perform operations comprising:
and responding to the switching instruction sent by the first equipment when the gesture of the first equipment is a preset gesture when the first equipment sends the switching instruction.
8. The apparatus of claim 5, wherein the processor is configured with processor-executable operating instructions to perform operations comprising:
and when the switching instruction sent by the first equipment is not responded according to the gesture of the first equipment, continuing to execute the first display function until the switching instruction sent by the first equipment is responded according to the gesture of the first equipment.
CN201910888181.9A 2019-09-19 2019-09-19 Function switching method and device Active CN110633139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910888181.9A CN110633139B (en) 2019-09-19 2019-09-19 Function switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910888181.9A CN110633139B (en) 2019-09-19 2019-09-19 Function switching method and device

Publications (2)

Publication Number Publication Date
CN110633139A CN110633139A (en) 2019-12-31
CN110633139B true CN110633139B (en) 2023-06-02

Family

ID=68971953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910888181.9A Active CN110633139B (en) 2019-09-19 2019-09-19 Function switching method and device

Country Status (1)

Country Link
CN (1) CN110633139B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019585B (en) * 2012-11-15 2016-06-22 中兴通讯股份有限公司 The single-point control method of touch screen, device and mobile terminal
CN103699303B (en) * 2013-12-27 2017-04-19 联想(北京)有限公司 Information processing method and electronic equipment
CN104035689A (en) * 2014-06-24 2014-09-10 中科创达软件股份有限公司 Key function switching method and device
CN205249356U (en) * 2015-12-22 2016-05-18 深圳市大疆创新科技有限公司 Shooting equipment and controlling means thereof
WO2017107069A1 (en) * 2015-12-22 2017-06-29 深圳市大疆创新科技有限公司 Photographic device and control method and apparatus therefor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姿态感知无线空中鼠标的开发与实现;方晨晨;邵翔;;电子科技(05);第190-193页 *

Also Published As

Publication number Publication date
CN110633139A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
US10942620B2 (en) Information processing apparatus, information processing method, program, and information processing system
US8421767B2 (en) Input device of electronic device, input operation processing method, and input control program
US7555728B2 (en) Preventing unintentional selection of a touch panel button via gray out for a predetermined time
US20100289768A1 (en) Input device of electronic device, input operation processing method, and input control program
KR101328202B1 (en) Method and apparatus for running commands performing functions through gestures
CN115562533A (en) Integration of cursor with touch screen user interface
KR102169521B1 (en) Input apparatus, display apparatus and control method thereof
WO2014098207A1 (en) Mobile terminal, and user-interface control program and method
CN109782998B (en) Display screen control method and mobile terminal
US20170068418A1 (en) Electronic apparatus, recording medium, and operation method of electronic apparatus
JP2019109748A (en) Touch panel, air conditioning system comprising touch panel, and method for controlling touch panel
US20150054741A1 (en) Display control device, display control method, and program
US20180046366A1 (en) Method for processing user interface of terminal, user interface, and terminal
JP2013242821A (en) Picture display device and picture operation method of the same
TWI448957B (en) Electronic device
KR100774928B1 (en) Mobile terminerl in which transparent icon is displayed and method displaying transparent icon on mobile terminerl screen
CN108459790A (en) A kind of electronic equipment touch-control exchange method
WO2012169189A1 (en) Touch panel input device
CN103731712B (en) Method and device for controlling terminal equipment through marker
CN110633139B (en) Function switching method and device
JP4761603B2 (en) Display control device
CN108563379A (en) A kind of electronic equipment touch-control exchange method
WO2017188098A1 (en) Vehicle-mounted information processing system
CN110427137B (en) Spotlight display method and device
CN110597431A (en) Display function presenting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant