CN110850966A - Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium - Google Patents

Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium Download PDF

Info

Publication number
CN110850966A
CN110850966A CN201911007292.0A CN201911007292A CN110850966A CN 110850966 A CN110850966 A CN 110850966A CN 201911007292 A CN201911007292 A CN 201911007292A CN 110850966 A CN110850966 A CN 110850966A
Authority
CN
China
Prior art keywords
touch
gesture
information
data
electric toothbrush
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911007292.0A
Other languages
Chinese (zh)
Inventor
刘博�
肖建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Top Cloud Information Technology Co Ltd
Original Assignee
Shenzhen Top Cloud Information Technology 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 Shenzhen Top Cloud Information Technology Co Ltd filed Critical Shenzhen Top Cloud Information Technology Co Ltd
Priority to CN201911007292.0A priority Critical patent/CN110850966A/en
Publication of CN110850966A publication Critical patent/CN110850966A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a control method of an electric toothbrush, which comprises the following steps: receiving touch information of a user through a touch screen on the electric toothbrush; performing gesture resolving on the touch information to determine a touch gesture; and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen. The electric toothbrush control method not only reduces the existing cost, but also improves the control efficiency of the electric toothbrush and the interaction efficiency of a user and the electric toothbrush, and is beneficial to improving the user experience. Furthermore, an electric toothbrush control device, a computer device and a storage medium are proposed.

Description

Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent health, in particular to a method and a device for controlling an electric toothbrush, computer equipment and a storage medium.
Background
Along with the rapid development of society, people's life is more and more intelligent, people attach more and more importance to the oral cavity health, for this reason, therefore electric toothbrush receives people's favor, many people can select electric toothbrush to brush teeth, however, most electric toothbrush just is used for brushing teeth in the electric toothbrush trade at present, electric toothbrush's human-computer interaction mode adopts several simple led lamps to accomplish mostly, can not satisfy the good human-computer interaction demand of user, user experience has been reduced, or directly install conventional touch-sensitive screen on toothbrush, this manufacturing cost that can undoubtedly make the toothbrush increases. Accordingly, it is desirable to provide a method of controlling an electric toothbrush that facilitates user interaction and is cost effective.
Disclosure of Invention
In view of the above, it is desirable to provide a method and an apparatus for controlling an electric toothbrush, a computer device, and a storage medium, which can reduce the cost and improve the interaction experience between the user and the electric toothbrush.
A method of controlling a power toothbrush, the method comprising:
receiving touch information of a user through a touch screen on the electric toothbrush;
performing gesture resolving on the touch information to determine a touch gesture;
and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
An electric toothbrush control device, the device comprising:
the information receiving module is used for receiving touch information of a user through a touch screen on the electric toothbrush;
the gesture resolving module is used for performing gesture resolving on the touch information and determining a touch gesture;
and the control module is used for controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture and displaying corresponding data information on the touch screen.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving touch information of a user through a touch screen on the electric toothbrush;
performing gesture resolving on the touch information to determine a touch gesture;
and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving touch information of a user through a touch screen on the electric toothbrush;
performing gesture resolving on the touch information to determine a touch gesture;
and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
According to the electric toothbrush control method, the electric toothbrush control device, the computer equipment and the storage medium, touch information of a user is received through the touch screen on the electric toothbrush; performing gesture resolving on the touch information to determine a touch gesture; and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen. The electric toothbrush control method not only reduces the existing cost, but also improves the control efficiency of the electric toothbrush and the interaction efficiency of a user and the electric toothbrush, and is beneficial to improving the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart of a method of controlling an electric toothbrush according to one embodiment;
FIG. 2 is a schematic view of an electric toothbrush touch screen assembly in one embodiment;
FIG. 3 is a flow diagram of a gesture resolution method in one embodiment;
FIG. 4 is a flow diagram of a gesture resolution method in another embodiment;
FIG. 5 is a flowchart of a gesture resolving method in yet another embodiment;
FIG. 6 is a block diagram showing the construction of a control device for the electric toothbrush in one embodiment;
FIG. 7 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in one embodiment, there is provided a method for controlling an electric toothbrush, which can be applied to both a terminal and a server, and specifically includes the following steps:
step 102, receiving touch information of a user through a touch screen on the electric toothbrush.
The touch information is information reflecting an operation track of the user after the user touches the touch screen of the electric toothbrush, such as different moments and corresponding coordinate information. Specifically, the server receives touch information of the user through a touch screen on the electric toothbrush, so that the information on the touch screen of the electric toothbrush can be further analyzed and processed based on the touch information.
And 104, performing gesture calculation on the touch information to determine the touch gesture.
The gesture calculation refers to an analysis process for determining a gesture according to coordinate information touched by a user on the touch screen. The touch gesture refers to a gesture operated by a user on a touch screen of the electric toothbrush, the touch gesture comprises a long-press gesture, a short-press gesture and a sliding gesture, the sliding gesture comprises the situations of sliding towards the positive direction of an X axis and sliding towards the negative direction of the X axis and sliding towards the positive direction of a Y axis and sliding towards the negative direction of the Y axis, for example, the electric toothbrush is provided with a function of adjusting the tooth brushing strength, the tooth brushing strength can be increased by sliding towards the positive direction of the X axis in the sliding gesture, the tooth brushing strength can be reduced by sliding towards the negative direction of the X axis, and the like. Specifically, the path of the user on the touch screen of the electric toothbrush can be determined according to the touch information, and the touch gesture can be determined according to the determined path and the relationship of the preset path corresponding to each touch gesture.
And 106, controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
The function corresponding to the touch gesture comprises checking basic information of the electric toothbrush and adjusting information of the electric toothbrush, and the data information refers to electric quantity of the electric toothbrush, current time, weather, a tooth brushing mode of the electric toothbrush, tooth brushing strength and the like. Specifically, the server controls the electric toothbrush to execute the function corresponding to the touch gesture according to the touch gesture, and displays data information corresponding to the function on a touch screen of the electric toothbrush, so that tooth brushing information and operation information of a user are fed back visually, interaction between the user and the electric toothbrush is enhanced, control efficiency of the electric toothbrush is improved, and user experience is improved.
It should be noted that, traditional electric toothbrush all shows through the scintillation of LED lamp, user's information of brushing teeth is difficult to obtain audio-visual accurate feedback, be unfavorable for user and electric toothbrush's interaction, and in this embodiment, it is the touch information that directly receives user through the touch-sensitive screen on the electric toothbrush, the control to electric toothbrush is realized to touch information based on the touch-sensitive screen, current cost has not only been reduced, still improved the control efficiency to electric toothbrush and user and electric toothbrush's interaction efficiency, be favorable to promoting user experience.
According to the control method of the electric toothbrush, touch information of a user is received through a touch screen on the electric toothbrush; performing gesture resolving on the touch information to determine a touch gesture; and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen. The electric toothbrush control method not only reduces the existing cost, but also improves the control efficiency of the electric toothbrush and the interaction efficiency of a user and the electric toothbrush, and is beneficial to improving the user experience.
In one embodiment, the touch screen of the electric toothbrush is obtained by combining a flexible circuit board FPC with a conventional screen.
The flexible circuit board FPC is a flexible circuit board for realizing a touch function and has the characteristic of low price and cost. Fig. 2 is a schematic view of the touch screen assembly of the electric toothbrush. 10 is with flexible circuit board FPC, 20 is electric toothbrush support, 30 is the conventional screen of electric toothbrush, 40 is electric toothbrush handle, paste flexible circuit board FPC (10) on the conventional screen of electric toothbrush (30), then assemble this subassembly on electric toothbrush support (20), put into handle (40) with the support at last, also be through pasting flexible circuit board FPC on conventional screen, and assemble on electric toothbrush, can make up into a touch-sensitive screen, the touch function of touch-sensitive screen has been realized through the lower flexible circuit board FPC of cost, not only reduce the cost of installing the touch-sensitive screen on the toothbrush, and avoided because of directly assembling the waterproof problem that the touch-sensitive screen arouses.
In the embodiment, the touch screen of the electric toothbrush is obtained by combining the Flexible Printed Circuit (FPC) and the conventional screen, so that the cost of installing the touch screen on the toothbrush is reduced, and the waterproof problem caused by direct assembly of the touch screen is avoided.
In one embodiment, the touch information includes: touch coordinate information.
The touch coordinate information refers to position information of a user after the user operates on the touch screen, that is, a horizontal axis coordinate value and a vertical axis coordinate value under a set standard coordinate system, and is used for reflecting an operation path track and the like of the touch information.
The gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps:
and performing gesture calculation according to the touch coordinate information to determine the touch gesture.
Specifically, the server can determine a running path track of the touch information according to the touch coordinate information, analyze a relative relationship of the path tracks, and determine which gesture rule of the touch gesture the relative relationship of the path tracks satisfies, thereby determining the touch gesture. It should be noted that, in the embodiment, the touch screen of the electric toothbrush is obtained by combining the Flexible Printed Circuit (FPC) with the conventional screen, and the touch coordinate information is calculated based on a capacitance sensing principle in the capacitance sensing chip, that is, the Flexible Printed Circuit (FPC) is divided into a set number of regions (for example, 6 regions), and then the coordinate information of the regions is determined, so that the accuracy of the coordinate information is ensured.
In the above embodiment, the touch gesture is determined according to the touch coordinate information and the gesture calculation, so that the accuracy of the touch gesture calculation is ensured.
As shown in fig. 3, in one embodiment, the receiving of the touch information of the user through the touch screen on the electric toothbrush includes:
and acquiring the information of the start touch coordinate and the information of the end touch coordinate of the user through a touch screen on the electric toothbrush.
The touch start coordinate information refers to coordinate information when a user starts to perform touch operation on the touch screen, and the touch end coordinate information refers to coordinate information when the user ends to perform touch operation on the touch screen.
The gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps:
and step 104A, determining gesture movement information according to the ending touch coordinate information and the starting touch coordinate information.
For example, in a specific embodiment, the ending touch coordinate information is (2,2), the starting time coordinate information is (4.1,7.1), and the gesture movement information is (2.1.5.1), and obviously, the path information range of the gesture movement information is large.
And step 104B, determining the touch gesture according to the gesture movement information.
Specifically, after the movement information is determined, the movement information may be compared with a touch rule corresponding to each touch gesture for analysis, so that the touch gesture may be determined. Continuing with the specific implementation in step 104A as an example, since the path information range of the gesture movement information is large, the touch gesture of long pressing may be excluded, and thus the touch gesture may be short pressing or sliding. Specifically, the movement path information may be compared with a gesture rule of short pressing and a gesture rule of sliding, respectively, to determine the touch gesture. As can be understood, the touch gesture types of the touch screen of the electric toothbrush include 3 types, so that the server determines the corresponding touch gesture according to the gesture movement information, and the gesture resolving efficiency is improved.
In the above embodiment, gesture movement information is determined according to the ending touch coordinate information and the starting touch coordinate information; and determining the touch gesture according to the gesture movement information, so that the gesture resolving efficiency is improved.
In one embodiment, the touch information further includes: the duration of the touch.
The touch duration refers to the time when the user currently touches the touch screen of the electric toothbrush.
The determining a touch gesture according to the gesture movement information includes:
and determining a touch gesture according to the gesture movement information and the touch duration.
Specifically, in the 3 types of touch gestures, the long-press touch gesture is related to the touch duration, so that the touch gesture can be quickly and accurately determined according to the gesture movement information, the touch duration and each gesture rule of the 3 types of touch gestures. The server acquires the touch duration through the touch screen on the electric toothbrush, and further ensures the accuracy of the touch gesture determination according to the gesture movement information and the touch duration.
In the above embodiment, the touch gesture is determined according to the gesture movement information and the touch duration, so that the accuracy of determining the touch gesture is further ensured.
As shown in fig. 4, in one embodiment, the start touch coordinate information includes: start time data and corresponding start coordinate data, the start coordinate data comprising first direction start data and second direction start data.
The determining the touch gesture according to the gesture movement information and the touch duration comprises:
and 104C, acquiring current touch coordinate information of a user through a touch screen on the electric toothbrush, wherein the current touch coordinate information comprises current time data and corresponding current coordinate data, and the current coordinate data comprises current data in a first direction and current data in a second direction.
The current touch coordinate information refers to the current time and coordinate data corresponding to the current time, the first direction current data refers to an X-axis coordinate value, and the second direction current data refers to a Y-axis coordinate value. Illustratively, the current touch coordinate information is 8:06:03, 12.9.2019 (2, 2.1).
And step 104D, calculating a difference value between the current data in the first direction and the start data in the first direction to obtain a difference value in the first direction.
Specifically, as the first direction difference value, the difference value between the first direction current data and the first direction start data is, for example, the start touch coordinate information: 8:06:02, (2.1 ) on 12.9.2019, the calculated first direction difference is 0.1.
And step 104E, calculating a difference between the current data in the second direction and the start data in the second direction to obtain a second direction difference.
Specifically, continuing to take step 104D and step 105E as an example, the server calculates the difference value of the second direction according to the current data of the second direction and the start data of the second direction, which is 0.
And step 104F, calculating a difference value between the current moment data and the starting moment data to obtain the current touch duration.
Specifically, continuing to take step 104D and step 105E as an example, the current touch duration calculated by the server according to the current time data and the start time data is 1S.
And step 104G, when the current touch duration is greater than a preset duration, the first direction difference value is smaller than a first preset threshold value, and the second direction difference value is smaller than a second preset threshold value, judging that the touch gesture is long-time pressing.
The preset duration is suitable for being used as a city touch duration critical value for judging whether the touch gesture is long-pressing, for example, the touch duration is 2S. The first preset threshold is used as a critical value for determining the first direction difference movement information range, for example, the first preset threshold is 30, and the second preset threshold is used as a critical value for determining the second direction difference movement information range, for example, the second preset threshold is 30. Specifically, if the current touch duration is greater than the preset duration, the first direction difference is smaller than a first preset threshold, and the second direction difference is smaller than a second preset threshold, the touch gesture is determined to be a long press. The touch gesture of the long press can be judged only by comparing the touch duration, the first direction difference and the second direction difference, and the touch duration, the first direction difference and the second direction difference are determined only by simple difference operation, so that the touch gesture of the long press can be judged more efficiently.
In the above embodiment, a first direction difference is obtained by calculating a difference between the first direction current data and the first direction start data; calculating a difference value between the current data in the second direction and the starting data in the second direction to obtain a second direction difference value; calculating a difference value between the current moment data and the starting moment data to obtain the current touch duration; when the current touch duration is greater than a preset duration, the first direction difference value is smaller than a first preset threshold value, and the second direction difference value is smaller than a second preset threshold value, the touch gesture is determined to be long-time pressing, and the long-time pressing is more efficiently determined.
As shown in fig. 5, in one embodiment, the end touch coordinate information includes: end time data and corresponding end coordinate data, wherein the end coordinate data comprises first direction end data and second direction end data.
The determining a touch gesture from the gesture movement information comprises:
and 104H, calculating a difference value between the first direction end data and the first direction start data to obtain a first difference value.
Specifically, the server calculates a difference between the first direction end data and the first direction start data according to the first direction end data and the first direction start data to obtain a first difference.
And step 104I, calculating a difference value between the second direction end data and the second direction start data to obtain a second difference value.
Specifically, the server calculates a difference between the second direction end data and the first direction start data according to the second direction end data and the first direction start data to obtain a second difference.
And step 104J, when the first difference is smaller than a third preset threshold value and the second difference is smaller than a fourth preset threshold value, determining that the touch gesture is short-pressing.
The third preset threshold is used as a critical value for determining the first difference movement range, for example, the third preset threshold may be 20, the fourth preset threshold is used as a critical value for determining the second difference movement range, for example, the fourth preset threshold may be 20, and when the first difference is smaller than the third preset threshold and the second difference is smaller than the fourth preset threshold, the touch gesture is determined to be a short press.
Furthermore, the function on the touch screen of the electric toothbrush comprises a data information query function, the data information comprises at least one of a tooth brushing mode option, a tooth brushing strength option, basic information (such as residual capacity, weather, date and the like), reminding information and feedback information, and when the data information is the basic information, the reminding information or the feedback information, the control display is carried out through a long-press touch gesture or a short-press touch gesture, so that a user can better interact with the electric toothbrush, and the user experience is improved.
And step 104K, when the first difference is larger than or equal to a third preset threshold value and the second difference is larger than or equal to a fourth preset threshold value, judging that the touch gesture is sliding.
Specifically, when the first difference is greater than or equal to a third preset threshold and the second difference is greater than or equal to a fourth preset threshold, it is determined that the touch gesture is a sliding gesture. Further, the slide touch gesture includes a slide to a first direction and a slide to a second direction, that is, when the first difference is greater than the second difference, the slide is performed in the first direction, and when the first difference is less than or equal to the second difference, the slide is performed in the second direction. When the data information is a tooth brushing mode option or a tooth brushing strength option, the data information is controlled and displayed through a sliding gesture, so that a user can better interact with the electric toothbrush, and the user experience is improved.
In the above embodiment, a first difference is obtained by calculating a difference between the first direction end data and the first direction start data; calculating a difference value between the second direction end data and the second direction start data to obtain a second difference value; when the first difference value is smaller than a third preset threshold value and the second difference value is smaller than a fourth preset threshold value, judging that the touch gesture is short-pressing; when the first difference is larger than or equal to a third preset threshold value and the second difference is larger than or equal to a fourth preset threshold value, the touch gesture is judged to be sliding, so that the electric toothbrush is controlled to execute a function corresponding to the touch gesture through the judged touch gesture, corresponding data information is displayed on the touch screen, a user can interact with the electric toothbrush better, and user experience is improved.
As shown in fig. 6, in one embodiment, there is provided an electric toothbrush control device including:
the information receiving module 602 is configured to receive touch information of a user through a touch screen on the electric toothbrush;
the gesture resolving module 604 is configured to perform gesture resolving on the touch information to determine a touch gesture;
and the control module 606 is used for controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
In one embodiment, the information receiving module includes a touch screen unit, and a touch screen for the electric toothbrush is obtained by combining a flexible circuit board FPC with a conventional screen.
In one embodiment, the touch information includes: touch coordinate information; the gesture resolving module comprises a first resolving submodule and is used for performing gesture resolving according to the touch coordinate information and determining the touch gesture.
In one embodiment, receiving touch information of a user through a touch screen on an electric toothbrush includes: acquiring the information of the start touch coordinate and the information of the end touch coordinate of a user through a touch screen on the electric toothbrush; the first resolving submodule comprises a movement information determining unit and a touch gesture determining unit.
The movement information determining unit is used for determining gesture movement information according to the ending touch coordinate information and the starting touch coordinate information;
and the touch gesture determining unit is used for determining a touch gesture according to the gesture movement information.
In one embodiment, the touch information further includes: a touch duration; the touch gesture determining unit comprises a gesture determining subunit and is used for determining a touch gesture according to the gesture movement information and the touch duration.
In one embodiment, the start touch coordinate information includes: start time data and corresponding start coordinate data, the start coordinate data including first direction start data and second direction start data; the first resolving submodule comprises a coordinate information acquisition unit, a first difference calculation unit, a second difference calculation unit, a duration calculation unit and a first gesture judgment unit.
The coordinate information acquisition unit is used for acquiring current touch coordinate information of a user through a touch screen on the electric toothbrush, wherein the current touch coordinate information comprises current time data and corresponding current coordinate data, and the current coordinate data comprises current data in a first direction and current data in a second direction;
the first difference calculation unit is used for calculating the difference between the current data in the first direction and the starting data in the first direction to obtain a first direction difference;
a second difference calculation unit, configured to calculate a difference between the current data in the second direction and the start data in the second direction, so as to obtain a second direction difference;
the time length calculating unit is used for calculating the difference value between the current moment data and the starting moment data to obtain the current touch time length;
and the first gesture determination unit is used for determining that the touch gesture is long-time pressing when the current touch duration is greater than a preset duration, the first direction difference is smaller than a first preset threshold value, and the second direction difference is smaller than a second preset threshold value.
In one embodiment, the end touch coordinate information includes: end time data and corresponding end coordinate data, wherein the end coordinate data comprises first direction end data and second direction end data;
the first resolving submodule further comprises
A third difference calculation unit, configured to calculate a difference between the first direction end data and the first direction start data to obtain a first difference;
a fourth difference calculation unit, configured to calculate a difference between the second direction end data and the second direction start data to obtain a second difference;
the second gesture judging unit is used for judging that the touch gesture is short-press when the first difference value is smaller than a third preset threshold value and the second difference value is smaller than a fourth preset threshold value;
and the third gesture determination unit is used for determining that the touch gesture is sliding when the first difference is greater than or equal to a third preset threshold and the second difference is greater than or equal to a fourth preset threshold.
FIG. 7 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may in particular be an electric toothbrush, and the server includes, but is not limited to, a high performance computer and a cluster of high performance computers. As shown in fig. 7, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the electric toothbrush control method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a method of controlling the electric toothbrush. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the power toothbrush control method provided herein may be embodied in the form of a computer program that is executable on a computer device such as that shown in fig. 7. The memory of the computer device may store therein the respective program templates constituting the electric toothbrush control device. Such as a message receiving module 602, a gesture resolving module 604, and a control module 606.
A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving touch information of a user through a touch screen on the electric toothbrush; performing gesture resolving on the touch information to determine a touch gesture; and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
In one embodiment, the touch screen of the electric toothbrush is obtained by combining a flexible circuit board FPC with a conventional screen.
In one embodiment, the touch information includes: touch coordinate information; the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps: and performing gesture calculation according to the touch coordinate information to determine the touch gesture.
In one embodiment, receiving touch information of a user through a touch screen on an electric toothbrush includes: acquiring the information of the start touch coordinate and the information of the end touch coordinate of a user through a touch screen on the electric toothbrush; the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps: determining gesture movement information according to the ending touch coordinate information and the starting touch coordinate information; and determining a touch gesture according to the gesture movement information.
In one embodiment, the touch information further includes: a touch duration; the determining a touch gesture according to the gesture movement information includes: and determining a touch gesture according to the gesture movement information and the touch duration.
In one embodiment, the start touch coordinate information includes: start time data and corresponding start coordinate data, the start coordinate data including first direction start data and second direction start data; the determining the touch gesture according to the gesture movement information and the touch duration comprises: acquiring current touch coordinate information of a user through a touch screen on the electric toothbrush, wherein the current touch coordinate information comprises current time data and corresponding current coordinate data, and the current coordinate data comprises current data in a first direction and current data in a second direction; calculating a difference value between the current data in the first direction and the starting data in the first direction to obtain a difference value in the first direction; calculating a difference value between the current data in the second direction and the starting data in the second direction to obtain a second direction difference value; calculating a difference value between the current moment data and the starting moment data to obtain the current touch duration; and when the current touch duration is greater than a preset duration, the first direction difference is smaller than a first preset threshold, and the second direction difference is smaller than a second preset threshold, judging that the touch gesture is a long press.
In one embodiment, the end touch coordinate information includes: end time data and corresponding end coordinate data, wherein the end coordinate data comprises first direction end data and second direction end data; the determining a touch gesture from the gesture movement information comprises: calculating a difference value between the first direction end data and the first direction start data to obtain a first difference value; calculating a difference value between the second direction end data and the second direction start data to obtain a second difference value; when the first difference value is smaller than a third preset threshold value and the second difference value is smaller than a fourth preset threshold value, judging that the touch gesture is short-pressing; and when the first difference is larger than or equal to a third preset threshold value and the second difference is larger than or equal to a fourth preset threshold value, judging that the touch gesture is sliding.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: receiving touch information of a user through a touch screen on the electric toothbrush; performing gesture resolving on the touch information to determine a touch gesture; and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
In one embodiment, the touch screen of the electric toothbrush is obtained by combining a flexible circuit board FPC with a conventional screen.
In one embodiment, the touch information includes: touch coordinate information; the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps: and performing gesture calculation according to the touch coordinate information to determine the touch gesture.
In one embodiment, receiving touch information of a user through a touch screen on an electric toothbrush includes: acquiring the information of the start touch coordinate and the information of the end touch coordinate of a user through a touch screen on the electric toothbrush; the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps: determining gesture movement information according to the ending touch coordinate information and the starting touch coordinate information; and determining a touch gesture according to the gesture movement information.
In one embodiment, the touch information further includes: a touch duration; the determining a touch gesture according to the gesture movement information includes: and determining a touch gesture according to the gesture movement information and the touch duration.
In one embodiment, the start touch coordinate information includes: start time data and corresponding start coordinate data, the start coordinate data including first direction start data and second direction start data; the determining the touch gesture according to the gesture movement information and the touch duration comprises: acquiring current touch coordinate information of a user through a touch screen on the electric toothbrush, wherein the current touch coordinate information comprises current time data and corresponding current coordinate data, and the current coordinate data comprises current data in a first direction and current data in a second direction; calculating a difference value between the current data in the first direction and the starting data in the first direction to obtain a difference value in the first direction; calculating a difference value between the current data in the second direction and the starting data in the second direction to obtain a second direction difference value; calculating a difference value between the current moment data and the starting moment data to obtain the current touch duration; and when the current touch duration is greater than a preset duration, the first direction difference is smaller than a first preset threshold, and the second direction difference is smaller than a second preset threshold, judging that the touch gesture is a long press.
In one embodiment, the end touch coordinate information includes: end time data and corresponding end coordinate data, wherein the end coordinate data comprises first direction end data and second direction end data; the determining a touch gesture from the gesture movement information comprises: calculating a difference value between the first direction end data and the first direction start data to obtain a first difference value; calculating a difference value between the second direction end data and the second direction start data to obtain a second difference value; when the first difference value is smaller than a third preset threshold value and the second difference value is smaller than a fourth preset threshold value, judging that the touch gesture is short-pressing; and when the first difference is larger than or equal to a third preset threshold value and the second difference is larger than or equal to a fourth preset threshold value, judging that the touch gesture is sliding.
It should be noted that the above-mentioned electric toothbrush control method, electric toothbrush control device, computer device and computer readable storage medium belong to a general inventive concept, and the contents in the embodiments of the electric toothbrush control method, electric toothbrush control device, computer device and computer readable storage medium are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of controlling an electric toothbrush, comprising:
receiving touch information of a user through a touch screen on the electric toothbrush;
performing gesture resolving on the touch information to determine a touch gesture;
and controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture, and displaying corresponding data information on the touch screen.
2. The electric toothbrush control method according to claim 1, wherein the touch screen of the electric toothbrush is obtained by combining a flexible circuit board FPC with a conventional screen.
3. The electric toothbrush control method according to claim 1, wherein the touch information includes: touch coordinate information;
the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps:
and performing gesture calculation according to the touch coordinate information to determine the touch gesture.
4. The method of claim 3, wherein receiving touch information of a user through a touch screen on the electric toothbrush comprises:
acquiring the information of the start touch coordinate and the information of the end touch coordinate of a user through a touch screen on the electric toothbrush;
the gesture resolving is performed on the touch information, and the touch gesture is determined, wherein the gesture resolving comprises the following steps:
determining gesture movement information according to the ending touch coordinate information and the starting touch coordinate information;
and determining a touch gesture according to the gesture movement information.
5. The electric toothbrush control method according to claim 4, wherein the touch information further includes: a touch duration;
the determining a touch gesture according to the gesture movement information includes:
and determining a touch gesture according to the gesture movement information and the touch duration.
6. The electric toothbrush control method according to claim 5, the start touch coordinate information comprising: start time data and corresponding start coordinate data, the start coordinate data including first direction start data and second direction start data;
the determining the touch gesture according to the gesture movement information and the touch duration comprises:
acquiring current touch coordinate information of a user through a touch screen on the electric toothbrush, wherein the current touch coordinate information comprises current time data and corresponding current coordinate data, and the current coordinate data comprises current data in a first direction and current data in a second direction;
calculating a difference value between the current data in the first direction and the starting data in the first direction to obtain a difference value in the first direction;
calculating a difference value between the current data in the second direction and the starting data in the second direction to obtain a second direction difference value;
calculating a difference value between the current moment data and the starting moment data to obtain the current touch duration;
and when the current touch duration is greater than a preset duration, the first direction difference is smaller than a first preset threshold, and the second direction difference is smaller than a second preset threshold, judging that the touch gesture is a long press.
7. The electric toothbrush control method according to claim 4, the end touch coordinate information comprising: end time data and corresponding end coordinate data, wherein the end coordinate data comprises first direction end data and second direction end data;
the determining a touch gesture from the gesture movement information comprises:
calculating a difference value between the first direction end data and the first direction start data to obtain a first difference value;
calculating a difference value between the second direction end data and the second direction start data to obtain a second difference value;
when the first difference value is smaller than a third preset threshold value and the second difference value is smaller than a fourth preset threshold value, judging that the touch gesture is short-pressing;
and when the first difference is larger than or equal to a third preset threshold value and the second difference is larger than or equal to a fourth preset threshold value, judging that the touch gesture is sliding.
8. An electric toothbrush control device, characterized in that it comprises:
the information receiving module is used for receiving touch information of a user through a touch screen on the electric toothbrush;
the gesture resolving module is used for performing gesture resolving on the touch information and determining a touch gesture;
and the control module is used for controlling the electric toothbrush to execute a function corresponding to the touch gesture according to the touch gesture and displaying corresponding data information on the touch screen.
9. Computer device, characterized in that it comprises a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, carries out the steps of a method for controlling an electric toothbrush according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for controlling an electric toothbrush according to any one of claims 1 to 7.
CN201911007292.0A 2019-10-22 2019-10-22 Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium Pending CN110850966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007292.0A CN110850966A (en) 2019-10-22 2019-10-22 Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007292.0A CN110850966A (en) 2019-10-22 2019-10-22 Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110850966A true CN110850966A (en) 2020-02-28

Family

ID=69597676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007292.0A Pending CN110850966A (en) 2019-10-22 2019-10-22 Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110850966A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407023A (en) * 2021-03-05 2021-09-17 深圳市尊特数码有限公司 Bluetooth sound box control method, system and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853133A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Method and mobile terminal for automatically recognizing gestures
CN101963863A (en) * 2010-09-30 2011-02-02 华为终端有限公司 User touch operation mode self-adapting method and device
CN104720913A (en) * 2013-12-19 2015-06-24 高露洁-棕榄公司 Electric toothbrush
JP2016095832A (en) * 2014-11-06 2016-05-26 Nltテクノロジー株式会社 Electronic equipment, operation control method for electronic equipment, and operation control program
CN107278284A (en) * 2016-03-29 2017-10-20 深圳市柔宇科技有限公司 A kind of control method of electric toothbrush and electric toothbrush
CN110032323A (en) * 2018-01-12 2019-07-19 益富可视精密工业(深圳)有限公司 Electronic equipment and gesture navigation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853133A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Method and mobile terminal for automatically recognizing gestures
CN101963863A (en) * 2010-09-30 2011-02-02 华为终端有限公司 User touch operation mode self-adapting method and device
CN104720913A (en) * 2013-12-19 2015-06-24 高露洁-棕榄公司 Electric toothbrush
JP2016095832A (en) * 2014-11-06 2016-05-26 Nltテクノロジー株式会社 Electronic equipment, operation control method for electronic equipment, and operation control program
CN107278284A (en) * 2016-03-29 2017-10-20 深圳市柔宇科技有限公司 A kind of control method of electric toothbrush and electric toothbrush
CN110032323A (en) * 2018-01-12 2019-07-19 益富可视精密工业(深圳)有限公司 Electronic equipment and gesture navigation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407023A (en) * 2021-03-05 2021-09-17 深圳市尊特数码有限公司 Bluetooth sound box control method, system and equipment

Similar Documents

Publication Publication Date Title
US10067649B2 (en) Page switching method and apparatus
CN106569692B (en) Gesture erasing method and device
CN106776078B (en) Clipboard content processing method and device and terminal equipment
CN104360990A (en) Content editing method
CN105117062A (en) Screen luminance regulation method and mobile terminal
CN111045956B (en) Solid state disk garbage recycling method and device based on multi-core CPU
WO2014075582A1 (en) Method and apparatus for storing webpage access records
CN1742317A (en) Display device
CN109814779B (en) Menu display method and device, computer equipment and storage medium
CN104407787A (en) Terminal
CN1815429A (en) Method and device for automatically removing temperature difference drift of contact coordinate for touch screen
CN110850966A (en) Electric toothbrush control method, electric toothbrush control device, computer equipment and storage medium
CN109815405B (en) Gray level shunting method and system
CN105528171A (en) Method and system for quickly starting application of intelligent terminal, and intelligent terminal
CN111290779A (en) Gray scale distribution method, device, storage medium and electronic equipment
CN102479176B (en) Fast-approaching typesetting method and device of electronic reader
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN115610277B (en) Vehicle driving range display method, device, computer equipment and storage medium
CN111637975B (en) Wrist temperature measuring method and device, wearable device and storage medium
CN112834864A (en) Waveform acquisition method and device, waveform acquisition equipment and storage medium
WO2023024624A1 (en) Method and apparatus for displaying charging capacity of battery, and electrical terminal and storage medium
CN109101259A (en) A kind of update method, device and the terminal of OSDMap caching container
CN114371417A (en) Equipment battery health degree detection method and device
CN109284260B (en) Big data file reading method and device, computer equipment and storage medium
CN109547563B (en) Message push processing method and device, storage medium and server

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