Read-write distance identification method based on smart watch

文档序号:1390486 发布日期:2020-02-28 浏览:24次 中文

阅读说明:本技术 一种基于智能手表的读写距离识别方法 (Read-write distance identification method based on smart watch ) 是由 鄢家厚 于 2019-11-12 设计创作,主要内容包括:本发明属于移动感知技术领域,公开了一种基于智能手表的读写距离识别方法,该方法包括:采集智能手表内置的加速度数据和陀螺仪数据;基于加速度数据和陀螺仪数据,判断佩戴智能手表的用户是否处于书写状态,获得判断结果;当判断结果为是时,启动嵌设在智能手表上的距离检测单元,检测用户的头部与智能手表的距离,获得检测数据;基于检测数据,分析用户当前的读写距离是否合规,获得分析结果。采用该基于智能手表的读写距离识别方法能够准确地判断出用户在读写过程中的坐姿是否正确,并为用户提供读写距离测量数据及读写时长统计数据;而且由于需要当用户处于读写状态才会启动距离检测单元进行检测,能够节约能耗,延长智能手表的使用时间。(The invention belongs to the technical field of mobile perception, and discloses a reading and writing distance identification method based on a smart watch, which comprises the following steps: acquiring acceleration data and gyroscope data which are arranged in the smart watch; judging whether a user wearing the smart watch is in a writing state or not based on the acceleration data and the gyroscope data, and obtaining a judgment result; when the judgment result is yes, starting a distance detection unit embedded on the intelligent watch, detecting the distance between the head of the user and the intelligent watch, and obtaining detection data; and analyzing whether the current reading-writing distance of the user is in compliance or not based on the detection data to obtain an analysis result. By adopting the reading and writing distance identification method based on the smart watch, whether the sitting posture of the user in the reading and writing process is correct or not can be accurately judged, and reading and writing distance measurement data and reading and writing duration statistical data are provided for the user; and because the distance detection unit is started to detect when the user is in a read-write state, energy consumption can be saved, and the service life of the intelligent watch is prolonged.)

1. A reading and writing distance identification method based on a smart watch is characterized by comprising the following steps:

acquiring acceleration data and gyroscope data which are arranged in the smart watch;

judging whether a user wearing the intelligent watch is in a writing state or not based on the acceleration data and the gyroscope data, and obtaining a judgment result;

when the judgment result is yes, starting a distance detection unit embedded in the smart watch, detecting the distance between the head of the user and the smart watch, and obtaining detection data;

and analyzing whether the current reading-writing distance of the user is in compliance or not based on the detection data to obtain an analysis result.

2. The smart watch-based read-write distance recognition method according to claim 1, wherein the method for determining whether the user wearing the smart watch is in a writing state based on the acceleration data and the gyroscope data comprises:

and judging whether the posture of the intelligent watch is close to the horizontal state and only slightly displaces within a certain time according to the acceleration data and the gyroscope data, and if so, judging that the user enters a writing state.

3. The smart watch-based read-write distance recognition method according to claim 1, wherein a plurality of distance detection units are embedded in the smart watch, and the method for analyzing whether the current read-write distance of the user is compliant based on the detection data comprises:

calculating an angle of the smart watch from a horizontal plane based on the gyroscope data;

and selecting the detection data corresponding to one of the distance detection units as analysis data based on the angle, and analyzing whether the current read-write distance of the user is in compliance.

4. The smart watch-based read-write distance recognition method according to claim 1, wherein the method for analyzing whether the current read-write distance of the user is compliant comprises:

and comparing the detection data with a correct sitting posture range value prestored in the smart watch, and when the detection data is smaller than or larger than the correct sitting posture range value, determining that the current sitting posture of the user is incorrect according to the analysis result.

5. The smart watch-based read-write distance recognition method according to claim 4, wherein the correct sitting posture range value is a distance range value between the head and the smart watch in a correct sitting posture obtained through big data analysis.

6. The smart watch-based read-write distance recognition method according to claim 1, wherein after obtaining the analysis result, the method further comprises:

and when the analysis result is that the current reading and writing distance clutch gauge of the user is obtained, controlling a vibration sensor arranged in the intelligent watch to vibrate to prompt.

7. The smart watch-based read-write distance recognition method according to claim 6, wherein when the vibration sensor built in the smart watch is controlled to generate vibration, the method further comprises:

starting timing and recording the vibration times of the vibration sensor;

when the frequency of vibration generated by the vibration sensor reaches three times, judging whether the time from the first vibration to the third vibration reaches a preset condition, and if so, controlling a buzzer built in the intelligent watch to give an alarm.

8. The smart watch-based read-write distance recognition method according to claim 1, wherein after obtaining the analysis result, the method further comprises:

and recording the analysis result and transmitting the analysis result to the appointed terminal.

9. The smart-watch-based read-write distance recognition method of claim 1, wherein before analyzing whether the current read-write distance of the user is compliant, the method further comprises:

and judging whether the detection data are abnormal or not, and if so, controlling a vibration sensor arranged in the intelligent watch to vibrate to prompt.

10. The smart watch-based read-write distance recognition method according to claim 9, wherein the method for determining whether the detection data is abnormal comprises:

and judging whether the detection data is smaller than 1cm, if so, determining that the detection data is abnormal.

Technical Field

The invention belongs to the technical field of mobile perception, and particularly relates to a reading and writing distance identification method based on an intelligent watch.

Background

The society of today has entered an information explosion era, and students or adults need to work and learn a lot of tables every day. However, in the working and learning process, the wrong sitting posture of the great wonder can cause fatigue and bring about the decline of eyesight, particularly for student groups, the related data show that the myopia rate of students at school is gradually increased, and the myopia rate of the college students reaches 70 percent, the myopia rate of the middle school students reaches 30 to 40 percent, and the myopia rate of the primary school students reaches 20 percent. Meanwhile, the proportion of the students with bent spines due to incorrect sitting postures is high. Although teachers and parents take various measures to correct the sitting posture of children, none of them can get rid of the bad sitting posture and even worse, the spine of children is deformed.

Therefore, how to accurately judge the sitting posture of the user and timely remind the user to correct the wrong sitting posture is a problem to be solved urgently.

Disclosure of Invention

In order to solve the technical problems in the prior art, the invention provides a reading and writing distance identification method based on an intelligent watch, and aims to accurately judge whether the sitting posture of a user is correct in the reading and writing process.

In order to achieve the above object, the present invention provides a read-write distance identification method based on a smart watch, the method comprising the following steps:

acquiring acceleration data and gyroscope data which are arranged in the smart watch;

judging whether a user wearing the intelligent watch is in a writing state or not based on the acceleration data and the gyroscope data, and obtaining a judgment result;

when the judgment result is yes, starting a distance detection unit embedded in the smart watch, detecting the distance between the head of the user and the smart watch, and obtaining detection data;

and analyzing whether the current reading-writing distance of the user is in compliance or not based on the detection data to obtain an analysis result.

Further, the method for determining whether the user wearing the smart watch is in a writing state based on the acceleration data and the gyroscope data includes:

and judging whether the posture of the intelligent watch is close to the horizontal state and only slightly displaces within a certain time according to the acceleration data and the gyroscope data, and if so, judging that the user enters a writing state.

Furthermore, a plurality of distance detection units are embedded in the smart watch, and the method for analyzing whether the current read-write distance of the user is in compliance or not based on the detection data comprises the following steps:

calculating an angle of the smart watch from a horizontal plane based on the gyroscope data;

and selecting the detection data corresponding to one of the distance detection units as analysis data based on the angle, and analyzing whether the current read-write distance of the user is in compliance.

Further, the method for analyzing whether the current read-write distance of the user is in compliance includes:

and comparing the detection data with a correct sitting posture range value prestored in the smart watch, and when the detection data is smaller than or larger than the correct sitting posture range value, determining that the current sitting posture of the user is incorrect according to the analysis result.

Further, the correct sitting posture range value is a distance range value between the head and the smart watch under the correct sitting posture, which is obtained through big data analysis.

Further, after obtaining the analysis result, the method further comprises:

and when the analysis result is that the current reading and writing distance clutch gauge of the user is obtained, controlling a vibration sensor arranged in the intelligent watch to vibrate to prompt.

Further, when the control unit controls a vibration sensor built in the smart watch to generate vibration, the method further includes:

starting timing and recording the vibration times of the vibration sensor;

when the frequency of vibration generated by the vibration sensor reaches three times, judging whether the time from the first vibration to the third vibration reaches a preset condition, and if so, controlling a buzzer built in the intelligent watch to give an alarm.

Further, after obtaining the analysis result, the method further comprises:

and recording the analysis result and transmitting the analysis result to the appointed terminal.

Further, before analyzing whether the current read-write distance of the user is in compliance, the method further includes:

and judging whether the detection data are abnormal or not, and if so, controlling a vibration sensor arranged in the intelligent watch to vibrate to prompt.

Further, the method for determining whether the detection data is abnormal includes:

and judging whether the detection data is smaller than 1cm, if so, determining that the detection data is abnormal.

Compared with the prior art, the technical scheme provided by the invention has the following beneficial effects or advantages:

according to the reading and writing distance identification method based on the intelligent watch, whether a user is in a reading and writing state is judged by collecting acceleration data and gyroscope data which are arranged in the intelligent watch, when the user is in the reading and writing state, the distance between the head of the user and the intelligent watch is detected by using a distance detection unit embedded in the intelligent watch, and then the conclusion whether the current reading and writing distance of the user is in compliance or not, namely whether the sitting posture is correct or not is obtained through analysis. The reading and writing distance identification method based on the intelligent watch can accurately judge whether the sitting posture of the user is correct in the reading and writing process, and the distance detection unit is started to detect when the user is in the reading and writing state, so that the energy consumption can be saved, and the service time of the intelligent watch can be prolonged.

Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.

Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.

It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.

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 these drawings without inventive exercise.

Fig. 1 is a flowchart of a method for identifying a reading-writing distance based on a smart watch according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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.

It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

In the description of the embodiments of the present invention, it should be noted that the indication of the orientation or the positional relationship is based on the orientation or the positional relationship shown in the drawings, or the orientation or the positional relationship which is usually placed when the product of the present invention is used, or the orientation or the positional relationship which is usually understood by those skilled in the art, or the orientation or the positional relationship which is usually placed when the product of the present invention is used, and is only for the convenience of describing the present invention and simplifying the description, but does not indicate or imply that the indicated device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, cannot be understood as limiting the present invention.

In the description of the embodiments of the present invention, it should be further noted that the terms "disposed" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, unless explicitly stated or limited otherwise; may be directly connected or indirectly connected through an intermediate. For those skilled in the art, the drawings of the embodiments with specific meanings of the terms in the present invention can be understood in specific situations, and the technical solutions in the embodiments of the present invention are clearly and completely described. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Furthermore, the terms "first" and "second" are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.

As shown in fig. 1, an embodiment of the present invention provides a read-write distance identification method based on a smart watch, where the method includes the following steps:

and step S1, acquiring built-in acceleration data and gyroscope data of the smart watch.

In a specific implementation process, it should be noted that the smart watch in the embodiment of the present invention is an existing conventional smart watch, and the smart watch has all functions of an existing conventional smart watch, such as GPS positioning, one-key alarm, call making, heart rate and blood pressure statistics, step counting, and the like.

After the acceleration data and the gyroscope data built in the smart watch are collected, step S2 is executed: and judging whether the user wearing the intelligent watch is in a writing state or not based on the acceleration data and the gyroscope data, and obtaining a judgment result.

In a specific implementation process, the method for determining whether a user wearing the smart watch is in a writing state based on the acceleration data and the gyroscope data in the embodiment of the present invention includes:

and judging whether the posture of the intelligent watch is close to the horizontal state and only slightly displaces within a certain time according to the acceleration data and the gyroscope data, and if so, judging that the user enters a writing state.

Whether the posture of the intelligent watch is close to the horizontal state or not in the embodiment of the invention can mean that the inclination angle between the intelligent watch dial and the horizontal plane is plus or minus 30 degrees, or can mean that the inclination angle between the intelligent watch dial and the horizontal plane is plus or minus 40 degrees, and the like.

After the determination result is obtained, step S3 is executed: and when the judgment result is yes, starting a distance detection unit embedded on the intelligent watch, detecting the distance between the head of the user and the intelligent watch, and obtaining detection data.

In a specific implementation process, the distance detection unit in the embodiment of the present invention may be an infrared distance detector, an ultrasonic distance detector, a laser distance sensor, or the like, which is not limited herein.

After completion of step S3, step S4 is executed: and analyzing whether the current reading-writing distance of the user is in compliance or not based on the detection data to obtain an analysis result.

In a specific implementation process, in order to obtain more accurate detection data and improve the accuracy of identification, in a further implementation scheme, in an embodiment of the present invention, there are a plurality of distance detection units embedded in the smart watch, and the method for analyzing whether the current read-write distance of the user is compliant based on the detection data includes:

calculating an angle of the smart watch from a horizontal plane based on the gyroscope data;

and selecting the detection data corresponding to one of the distance detection units as analysis data based on the angle, and analyzing whether the current read-write distance of the user is in compliance.

For example, when the angle between the smart watch and the horizontal plane is 0 °, the detection data corresponding to the distance detection unit with the detection angle of 90 ° to the dial of the smart watch is selected as analysis data, and whether the current reading and writing distance of the user is in compliance is analyzed; and when the angle between the intelligent watch and the horizontal plane is 30 degrees, selecting the detection data corresponding to the distance detection unit with the detection angle of 60 degrees with the dial plate of the intelligent watch as analysis data, and analyzing whether the current reading-writing distance of the user is in compliance or not.

More accurate detection data can be obtained through the method, and then the identification accuracy is improved.

In a specific implementation process, the method for analyzing whether the current read-write distance of the user is in compliance in the embodiment of the present invention specifically includes:

and comparing the detection data with a correct sitting posture range value prestored in the smart watch, and when the detection data is smaller than or larger than the correct sitting posture range value, determining that the current sitting posture of the user is incorrect according to the analysis result.

And the correct sitting posture range value is a distance range value between the head and the intelligent watch under the correct sitting posture, which is obtained through big data analysis.

In a specific implementation process, after obtaining the analysis result, the method further includes:

and when the analysis result is that the current reading and writing distance clutch gauge of the user is obtained, controlling a vibration sensor arranged in the intelligent watch to generate vibration to prompt the user to adjust the sitting posture.

In a specific implementation process, in order to ensure that a user can be prompted, in a further implementation, in an embodiment of the present invention, when the vibration sensor built in the smart watch is controlled to generate vibration, the method further includes:

starting timing and recording the vibration times of the vibration sensor;

when the frequency of vibration generated by the vibration sensor reaches three times, judging whether the time from the first vibration to the third vibration reaches a preset condition, and if so, controlling a buzzer built in the intelligent watch to give an alarm. The preset condition may be 2 minutes or 3 minutes, and is not limited herein.

According to the embodiment of the invention, the user can be ensured to be prompted by combining multiple vibration reminding and buzzer alarming, so that the user can change the wrong sitting posture.

In a specific implementation process, in order to enable a parent to know the read-write state of a child, in a further implementation, after obtaining the analysis result in the embodiment of the present invention, the method further includes:

and recording the analysis result and transmitting the analysis result to the appointed terminal.

The designated terminal in the embodiment of the invention can be an intelligent device such as a mobile phone, a tablet personal computer and the like, so as to be viewed by parents; the analysis result in the embodiment of the present invention includes the reading and writing duration of the user and the sitting posture during the reading and writing process, where the sitting posture includes a normal sitting posture in which time period, an excessively close reading and writing distance in which time period, an out-of-side sitting posture in which time period, and the like.

The mode of transmitting to the appointed terminal in the embodiment of the invention is specifically as follows: establishing wireless communication connection between the intelligent watch and the appointed terminal, and performing data transmission through the wireless communication connection; wherein the wireless communication connection is: bluetooth connection, infrared connection, incoming communication NFC connection, WIFI direct connection or ZigBee connection.

In a specific implementation process, since the smart watch is worn on a hand and may be blocked by a sleeve in a using process, which may cause an analysis error, in order to overcome the above problem, in a further implementation scheme, before analyzing whether the current reading-writing distance of the user is in compliance, the method further includes:

and judging whether the detection data are abnormal or not, and if so, controlling a vibration sensor arranged in the intelligent watch to vibrate to prompt.

Specifically, the method for determining whether the detection data is abnormal includes:

and judging whether the detection data is smaller than 1cm, if so, determining that the detection data is abnormal.

By adopting the reading and writing distance identification method based on the intelligent watch provided by the embodiment of the invention, whether the sitting posture of the user in the reading and writing process is correct can be accurately judged; and because the distance detection unit is started to detect when the user is in a read-write state, energy consumption can be saved, and the service life of the intelligent watch is prolonged.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于卫星授时的守时方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!