CN114495461A - Attitude detection method and device, storage medium and mobile terminal - Google Patents

Attitude detection method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN114495461A
CN114495461A CN202210134521.0A CN202210134521A CN114495461A CN 114495461 A CN114495461 A CN 114495461A CN 202210134521 A CN202210134521 A CN 202210134521A CN 114495461 A CN114495461 A CN 114495461A
Authority
CN
China
Prior art keywords
distance
angle value
mobile terminal
line segment
preset angle
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
CN202210134521.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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202210134521.0A priority Critical patent/CN114495461A/en
Publication of CN114495461A publication Critical patent/CN114495461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C1/00Measuring angles
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B3/00Audible signalling systems; Audible personal calling systems
    • G08B3/10Audible signalling systems; Audible personal calling systems using electric transmission; using electromagnetic transmission

Abstract

The embodiment of the application discloses a posture detection method, a posture detection device, a storage medium and a mobile terminal, wherein the method comprises the following steps: acquiring a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range. Therefore, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.

Description

Attitude detection method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for detecting an attitude, a computer-readable storage medium, and a mobile terminal.
Background
Today, medical treatment and science and technology are continuously developed, people live more and more conveniently, meanwhile, the bodies of a plurality of people are in a problem, more and more people enter a fuzzy world early due to incorrect sitting postures, at present, medical operation can enable people to enjoy the benefit of recovering eyesight, but people cannot be guaranteed to be safe and risk-free once and for all, and the trouble of eyesight reduction needs to be fundamentally solved, and the people still need to start from the adjustment of the sitting postures.
Most people can keep wrong postures for a long time because no one can remind people of sitting posture badly, and many vision reminding devices are appeared on the market nowadays, and eighty-nine of the devices are realized based on image recognition technology, distance measurement technology and other technologies, wherein the distance between the eyes of a user and a mobile terminal is measured based on the distance measurement technology, so that whether the glasses of the user are too close to or too far away from the mobile terminal is determined.
In the research and practice process of the prior art, the inventor of the application finds that only glasses of a user can be protected in the prior art, the sitting posture of the user cannot be prompted and adjusted, and the function is single.
Disclosure of Invention
The embodiment of the application provides a posture detection method and device, which can prompt and adjust the sitting posture of a user, so that the diversity of functions is realized.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
a gesture detection method is applied to a mobile terminal and comprises the following steps:
acquiring a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction;
constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance;
and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
An attitude detection device applied to a mobile terminal comprises:
the acquisition module is used for acquiring a first distance between the mobile terminal and a target object in a first distance measurement direction and a second distance between the mobile terminal and the target object in a second distance measurement direction;
a construction module configured to construct a gesture detection graph based on the first ranging direction, the first distance, the second ranging direction, and the second distance;
and the determining module is used for acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
In some embodiments, the building module comprises:
the first drawing submodule is used for drawing a first line segment with a first distance from the starting point to a first distance measuring direction by taking the distance sensor or the mobile terminal as the starting point;
the second drawing submodule is used for drawing a second line segment with a second distance from the starting point to a second distance measuring direction;
the connecting submodule is used for connecting the end points of the first line segment and the second line segment to obtain a third line segment;
and the construction submodule is used for constructing a posture detection graph according to the first line segment, the second line segment and the third line segment.
In some embodiments, the determining module comprises:
the first creating submodule is used for obtaining an angle value of an included angle formed by the third line segment and the first line segment;
judging whether the angle value is within a preset angle value interval or not;
and if the angle value is within a preset angle value range, determining that the posture is abnormal.
In some embodiments, the apparatus further comprises:
the generating module is used for generating voice broadcast, and the voice broadcast is used for prompting the abnormity of the posture.
In some embodiments, the apparatus further comprises:
the dividing module is used for dividing the preset angle value interval into a plurality of preset angle value subintervals;
and the setting module is used for setting a corresponding broadcast frequency for each preset angle value subinterval so as to obtain the mapping relation between each preset angle value subinterval and the broadcast frequency.
In some embodiments, the generating module comprises:
the first determining submodule is used for determining a target preset angle subinterval in which the angle value is positioned from a plurality of preset angle value subintervals;
the second determining submodule is used for determining the target broadcast frequency corresponding to the target preset angle subinterval according to the mapping relation;
and the generating submodule is used for generating voice broadcasting according to the target broadcasting frequency.
In some embodiments, the obtaining module includes:
and the first obtaining submodule is used for obtaining a first distance of the mobile terminal in a first distance measuring direction measured by a first distance sensor and a second distance of the mobile terminal in a second distance measuring direction measured by a second distance sensor.
In some embodiments, the obtaining module further comprises:
and the second acquisition submodule is used for acquiring the first distance of the mobile terminal in the first distance measurement direction measured by the third distance sensor and the second distance of the mobile terminal in the second distance measurement direction measured by the third distance sensor.
A computer readable storage medium, having stored thereon a plurality of instructions adapted to be loaded by a processor for performing the steps of the above-mentioned gesture detection method.
A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the gesture detection method as described above when executing the program.
According to the embodiment of the application, a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction are obtained; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range. Therefore, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of a gesture detection method provided in an embodiment of the present application.
Fig. 1b is a schematic flow chart of the gesture detection method provided in the embodiment of the present application.
Fig. 1c is a schematic view illustrating a mobile terminal measuring a first distance and a second distance according to an embodiment of the present application.
Fig. 1d is a schematic diagram of a gesture detection graph according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an attitude detection apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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 application.
The embodiment of the application provides a posture detection method, a posture detection device and a computer readable storage medium.
Referring to fig. 1a, fig. 1a is a schematic system diagram of a gesture detection system according to an embodiment of the present disclosure, where the system may include a user and a mobile terminal 1000, and application software of different service types may be installed on the mobile terminal 1000, for example: a taxi taking application, a gesture detection application, etc.
The embodiment of the application provides a gesture detection method, which can be used for carrying out real-time detection execution by a mobile terminal or carrying out real-time detection execution on an internal part in a time period when a gesture detection application on the mobile terminal is started. As shown in fig. 1a, the mobile terminal 1000 obtains a first distance between the mobile terminal and a target object in a first ranging direction, and a second distance between the mobile terminal and the target object measured in a second ranging direction; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range. Based on the method, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.
It should be noted that the scene schematic diagram of the gesture detection system shown in fig. 1a is only an example, and the gesture detection system and the scene described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application.
In the present embodiment, description will be made from the viewpoint of an attitude detection device that can be specifically integrated in a mobile terminal having a storage unit and a microprocessor mounted thereon with an arithmetic capability.
Referring to fig. 1b, fig. 1b is a schematic flow chart of a gesture detection method according to an embodiment of the present disclosure. The attitude detection method comprises the following steps:
in step 101, a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object measured in a second ranging direction are obtained.
As shown in fig. 1c, fig. 1c is a schematic diagram illustrating a mobile terminal provided in the embodiment of the present application measuring a first distance and a second distance. The target object 2000 may be a torso part of the upper body of the human body when sitting down, and the mobile terminal 1000 needs to acquire a first distance L1 and a second distance L2 from the target object 2000 in a first ranging direction and a second ranging direction.
Specifically, the first distance measuring direction may be a horizontal direction toward the right, and the second distance measuring direction may be a direction forming a certain angle α with the first distance measuring direction.
In some embodiments, the step of obtaining a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object measured in a second ranging direction includes:
the method comprises the steps of obtaining a first distance of the mobile terminal in a first ranging direction measured by a first distance sensor and obtaining a second distance of the mobile terminal in a second ranging direction measured by a second distance sensor.
In this case, two distance sensors with different distance measuring directions, such as a first distance sensor for measuring a first distance measuring direction and a second distance sensor for measuring a second distance measuring direction, may be configured for the mobile terminal. Therefore, in the gesture detection process, a first distance in the first distance measurement direction is obtained through the first distance sensor, and a second distance in the second distance measurement direction is obtained through the second distance sensor.
Specifically, the distance sensor can calculate the distance between the distance sensor and the object by emitting an energy beam and reflecting the energy beam by the object to be measured and calculating the time of the emission of the energy beam to the object to be reflected. Commonly used energy beams are: electromagnetic waves, ultrasound, sound waves, laser, visible light or infrared light. Radar and laser rangefinders operate using electromagnetic waves and laser light as energy beams. The sensor has high measurement precision and can accurately measure the distance.
In some embodiments, the step of obtaining a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object measured in a second ranging direction includes:
and acquiring a first distance of the mobile terminal in the first ranging direction measured by a third distance sensor and a second distance of the mobile terminal in the second ranging direction measured by the third distance sensor.
In order to save the internal space of the mobile terminal and reduce the manufacturing cost, it may be set that the distance between the target object and the two different directions is obtained by a distance sensor capable of measuring the two directions. For example, a first distance in a first ranging direction is acquired by the third distance sensor, and a second distance in a second ranging direction is acquired by the third distance sensor.
In step 102, a gesture detection graph is constructed based on the first ranging direction, the first distance, the second ranging direction, and the second distance.
Wherein, the gesture detection graph can be constructed according to the first distance measurement direction, the second distance measurement direction and the second distance measurement direction, so as to judge whether the gesture of the user is abnormal according to the constructed gesture detection graph.
In some embodiments, the step of constructing a gesture detection graph based on the first ranging direction, the first distance, the second ranging direction, and the second distance includes:
(1) drawing a first line segment with a first distance from the starting point to a first distance measuring direction by taking the distance sensor or the mobile terminal as the starting point;
(2) drawing a second line segment having a second distance from the starting point to a second ranging direction;
(3) connecting the end points of the first line segment and the second line segment to obtain a third line segment;
(4) and constructing a posture detection graph according to the first line segment, the second line segment and the third line segment.
As shown in fig. 1d, fig. 1d is a schematic diagram of a gesture detection pattern provided in the embodiment of the present application. The method comprises the steps of drawing a first line segment L1 with a first distance L1 from a starting point to a first distance measuring direction by taking a distance sensor or the mobile terminal as the starting point, drawing a second line segment L2 with a second distance L2 from the starting point to a second distance measuring direction, connecting the end points of the first line segment and the second line segment to obtain a third line segment L3, and obtaining a posture detection graph as a triangle formed by sequentially passing through a first line segment L1, a second line segment L2 and a third line segment L3.
And 103, acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is within a preset angle value range.
And determining whether the user gesture is abnormal according to the angle value of the designated angle in the constructed gesture detection graph.
In some embodiments, the step of obtaining an angle value of a specified angle in the gesture detection graph, and if the angle value is not within a preset angle value interval, determining that the gesture is abnormal includes:
(1) acquiring an angle value of an included angle formed by the third line segment and the first line segment;
(2) judging whether the angle value is within a preset angle value interval or not;
(3) and if the angle value is within a preset angle value range, determining that the posture is abnormal.
Referring to fig. 1d, in a normal sitting posture of the user, the line segment of the target object should be l4, i.e. the first line segment l1 is perpendicular to the line segment, or the angle between the first line segment and the line segment is 10 °, i.e., [80 °, 100 ° ], and the abnormal state can be set to be (0 °, 80 °) or (100 °, 180 °) the angle β of the included angle formed by the third line segment and the first line segment. Therefore, whether the posture is abnormal can be determined by whether the angle value is in the preset angle value interval [80 degrees, 100 degrees ].
Specifically, when β is within [80 °, 100 ° ], the posture is normal, and when β is within a range between two regions of [80 °, 100 ° ] such as (0 °, 80 °) or (100 °, 180 °), the posture is abnormal.
In some embodiments, after the step of determining that the attitude is abnormal if the angle value is not within the preset angle value range, the method further includes:
and generating voice broadcast, wherein the voice broadcast is used for prompting the abnormal posture.
If the posture abnormity is detected, voice broadcast can be generated, so that a user is prompted to adjust the current sitting posture abnormity, and the posture adjustment is needed.
In some embodiments, before the step of generating a voice announcement, further comprising:
(1) dividing the preset angle value interval into a plurality of preset angle value subintervals;
(2) and setting a corresponding broadcast frequency for each preset angle value subinterval so as to obtain the mapping relation between each preset angle value subinterval and the broadcast frequency.
The preset angle interval can be divided in advance, and a corresponding broadcast frequency is set in each of the angle value subintervals which are not divided.
For example, (0 °, 80 °) is divided into (0 °, 40 ° ] and (40 °, 80 °), and (0 °, 40 ° ] is set as the broadcast frequency a frequency, and (40 °, 80 °) is set as the broadcast frequency B frequency.
In some embodiments, the step of generating a voice broadcast comprises:
(1) determining a target preset angle sub-interval in which the angle value is positioned from a plurality of preset angle value sub-intervals;
(2) determining a target broadcast frequency corresponding to the target preset angle subinterval according to the mapping relation;
(3) and generating voice broadcast according to the target broadcast frequency.
After the broadcasting frequency corresponding to each preset angle value sub-interval is set, the voice broadcasting can be broadcasted according to the target broadcasting frequency corresponding to the target preset angle sub-interval and the target preset angle sub-interval according to the target preset angle sub-interval where the beta is located.
For example, β is in (40 °, 80 °) the target preset angle sub-interval, and the broadcast frequency corresponding to (40 °, 80 °) is the a frequency, and the voice broadcast is generated according to the a frequency.
As can be seen from the above, in the embodiment of the present application, a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object in a second ranging direction are obtained; constructing a posture detection graph based on the first distance measurement direction, the first distance, the second distance measurement direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range. Therefore, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.
In order to better implement the gesture detection method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the gesture detection method. The terms are the same as those in the above-described gesture detection method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an attitude detection apparatus according to an embodiment of the present disclosure. The gesture detection apparatus may include an acquisition module 201, a construction module 202, a determination module 203, and the like.
An obtaining module 201, configured to obtain a first distance between the mobile terminal and a target object in a first ranging direction, and a second distance between the mobile terminal and the target object measured in a second ranging direction;
a constructing module 202, configured to construct a gesture detection graph based on the first ranging direction, the first distance, the second ranging direction, and the second distance;
the determining module 203 is configured to obtain an angle value of a specified angle in the gesture detection graph, and determine that the gesture is abnormal if the angle value is within a preset angle value range.
In some embodiments, the building module 202 includes:
the first drawing submodule is used for drawing a first line segment with a first distance from the starting point to a first distance measuring direction by taking the distance sensor or the mobile terminal as the starting point;
a second drawing submodule for drawing a second line segment having a second distance from the start point to a second ranging direction;
the connecting submodule is used for connecting the end points of the first line segment and the second line segment to obtain a third line segment;
and the construction submodule is used for constructing a posture detection graph according to the first line segment, the second line segment and the third line segment.
In some embodiments, the determining module 203 includes:
the first creating submodule is used for obtaining an angle value of an included angle formed by the third line segment and the first line segment;
judging whether the angle value is within a preset angle value interval or not;
and if the angle value is within a preset angle value range, determining that the posture is abnormal.
In some embodiments, the apparatus further comprises:
the generating module is used for generating voice broadcast, and the voice broadcast is used for prompting the abnormity of the posture.
In some embodiments, the apparatus further comprises:
the dividing module is used for dividing the preset angle value interval into a plurality of preset angle value subintervals;
and the setting module is used for setting a corresponding broadcast frequency for each preset angle value subinterval so as to obtain the mapping relation between each preset angle value subinterval and the broadcast frequency.
In some embodiments, the generating module comprises:
the first determining submodule is used for determining a target preset angle subinterval in which the angle value is positioned from a plurality of preset angle value subintervals;
the second determining submodule is used for determining the target broadcast frequency corresponding to the target preset angle subinterval according to the mapping relation;
and the generating submodule is used for generating voice broadcast according to the target broadcast frequency.
In some embodiments, the obtaining module 201 includes:
and the first obtaining submodule is used for obtaining a first distance of the mobile terminal in a first distance measuring direction measured by a first distance sensor and a second distance of the mobile terminal in a second distance measuring direction measured by a second distance sensor.
In some embodiments, the obtaining module 201 further includes:
and the second acquisition submodule is used for acquiring the first distance of the mobile terminal in the first distance measurement direction measured by the third distance sensor and the second distance of the mobile terminal in the second distance measurement direction measured by the third distance sensor.
As can be seen from the above, in the embodiment of the present application, a first distance between the mobile terminal and the target object in the first ranging direction and a second distance between the mobile terminal and the target object in the second ranging direction are obtained through an obtaining module 201; the construction module 202 constructs a gesture detection graph based on the first ranging direction, the first distance, the second ranging direction, and the second distance; the determining module 203 obtains an angle value of a designated angle in the gesture detection graph, and if the angle value is within a preset angle value range, it is determined that the gesture is abnormal. Therefore, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Correspondingly, the embodiment of the present application further provides a mobile terminal, where the mobile terminal may be a terminal or a server, and the terminal may be a terminal device such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game machine, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like. As shown in fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 1000 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the mobile terminal architecture shown in the figures is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components.
The processor 301 is a control center of the mobile terminal 1000, connects various parts of the entire mobile terminal 1000 using various interfaces and lines, and performs various functions of the mobile terminal 1000 and processes data by running or loading software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby integrally monitoring the mobile terminal 1000.
In this embodiment of the present application, the processor 301 in the mobile terminal 1000 loads instructions corresponding to processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 runs the application programs stored in the memory 302, thereby implementing various functions:
loading a scroll view to be displayed, and acquiring size information of the scroll view; adding a circular view in the scroll view based on the scroll boundary of the scroll view and the size information, so that a partial area of the circular view is divided into the scroll view by the scroll boundary; displaying a portion of the content of the scroll view in a scroll view display area of a graphical user interface; in response to a scroll operation for a scroll view in the scroll-view display area, controlling content of the scroll view to be scroll-displayed in the scroll-view display area in a scroll direction of the scroll operation; gradually displaying a partial area of the circular view according to the scroll operation when the circular view is gradually scrolled to an area boundary of the scroll-view display area in a scroll direction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Correspondingly, the embodiment of the present application further provides a mobile terminal, which may be a terminal device such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game machine, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like. As shown in fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 1000 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the mobile terminal architecture shown in the figures is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components.
The processor 301 is a control center of the mobile terminal 1000, connects various parts of the entire mobile terminal 1000 using various interfaces and lines, and performs various functions of the mobile terminal 1000 and processes data by running or loading software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby integrally monitoring the mobile terminal 1000.
In this embodiment of the present application, the processor 301 in the mobile terminal 1000 loads instructions corresponding to processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 runs the application programs stored in the memory 302, thereby implementing various functions:
acquiring a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
Optionally, as shown in fig. 3, the mobile terminal 1000 further includes: a touch display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power source 307. The processor 301 is electrically connected to the touch display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power source 307. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 303 may be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among other things, the display panel may be used to display information input by or provided to a user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 301, and can receive and execute commands sent by the processor 301. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 301 to determine the type of the touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 303 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 303 may also be used as a part of the input unit 306 to implement an input function.
In the embodiment of the present application, a processor 301 executes a game application to generate a graphical user interface on a touch display screen 303, where a virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display screen 303 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The rf circuit 304 may be used for transceiving rf signals to establish wireless communication with a network device or other mobile terminal through wireless communication, and for transceiving signals with the network device or other mobile terminal.
The audio circuit 305 may be used to provide an audio interface between the user and the mobile terminal through a speaker, a microphone. The audio circuit 305 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is processed by the audio data output processor 301, and then transmitted to, for example, another mobile terminal via the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earpiece jack to provide communication of a peripheral headset with the mobile terminal.
The input unit 306 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
Power supply 307 is used to power the various components of mobile terminal 1000. Optionally, the power supply 307 may be logically connected to the processor 301 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. Power supply 307 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 3, the mobile terminal 1000 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the mobile terminal provided in this embodiment obtains a first distance between the mobile terminal and the target object in a first ranging direction, and a second distance between the mobile terminal and the target object in a second ranging direction; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range. Therefore, the angle value of the designated angle in the constructed posture detection graph is obtained, so that whether the posture of the user is abnormal or not can be determined, and prompt information is generated when the posture of the user is abnormal, so that the sitting posture of the user is prompted and adjusted, and the diversity of functions is realized.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, where the computer programs can be loaded by a processor to execute the steps in the control method according to any one of the techniques provided in the present application. For example, the computer program may perform the steps of:
acquiring a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction; constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance; and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any gesture detection method provided in the embodiments of the present application, beneficial effects that can be achieved by any gesture detection method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted herein for the sake of detail in the foregoing embodiments.
The gesture detection method, the gesture detection device, the computer-readable storage medium and the mobile terminal provided by the embodiments of the present application are introduced in detail, and a specific example is applied to illustrate the principle and the implementation manner of the present application, and the description of the embodiments is only used to help understanding the method and the core concept of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A gesture detection method is applied to a mobile terminal and comprises the following steps:
acquiring a first distance between the mobile terminal and a target object in a first distance measuring direction and a second distance between the mobile terminal and the target object in a second distance measuring direction;
constructing a posture detection graph based on the first ranging direction, the first distance, the second ranging direction and the second distance;
and acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
2. The attitude detection method according to claim 1, wherein the step of constructing an attitude detection pattern based on the first ranging direction, the first distance, the second ranging direction, and the second distance includes:
drawing a first line segment with a first distance from the starting point to a first distance measuring direction by taking the distance sensor or the mobile terminal as the starting point;
drawing a second line segment having a second distance from the starting point to a second ranging direction;
connecting the end points of the first line segment and the second line segment to obtain a third line segment;
and constructing a posture detection graph according to the first line segment, the second line segment and the third line segment.
3. The attitude detection method according to claim 2, wherein the step of obtaining an angle value of a specified angle in the attitude detection pattern, and determining that the attitude is abnormal if the angle value is not within a preset angle value interval, includes:
acquiring an angle value of an included angle formed by the third line segment and the first line segment;
judging whether the angle value is within a preset angle value interval or not;
and if the angle value is within a preset angle value range, determining that the posture is abnormal.
4. The attitude detection method according to claim 1, further comprising, after the step of determining that the attitude is abnormal if the angle value is not within a preset angle value range:
and generating voice broadcast, wherein the voice broadcast is used for prompting the abnormal posture.
5. The gesture detection method according to claim 4, further comprising, before the step of generating a voice broadcast:
dividing the preset angle value interval into a plurality of preset angle value subintervals;
and setting a corresponding broadcast frequency for each preset angle value subinterval so as to obtain the mapping relation between each preset angle value subinterval and the broadcast frequency.
6. The gesture detection method according to claim 5, wherein the step of generating a voice broadcast includes:
determining a target preset angle sub-interval in which the angle value is positioned from a plurality of preset angle value sub-intervals;
determining a target broadcast frequency corresponding to the target preset angle subinterval according to the mapping relation;
and generating voice broadcast according to the target broadcast frequency.
7. The attitude detection method according to claim 1, wherein the step of obtaining a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object measured in a second ranging direction comprises:
the method comprises the steps of obtaining a first distance of the mobile terminal in a first ranging direction measured by a first distance sensor and obtaining a second distance of the mobile terminal in a second ranging direction measured by a second distance sensor.
8. The attitude detection method according to claim 1, wherein the step of obtaining a first distance between the mobile terminal and the target object in a first ranging direction and a second distance between the mobile terminal and the target object measured in a second ranging direction comprises:
and acquiring a first distance of the mobile terminal in the first ranging direction measured by a third distance sensor and a second distance of the mobile terminal in the second ranging direction measured by the third distance sensor.
9. An attitude detection device, applied to a mobile terminal, comprising:
the acquisition module is used for acquiring a first distance between the mobile terminal and a target object in a first distance measurement direction and a second distance between the mobile terminal and the target object in a second distance measurement direction;
a construction module configured to construct a gesture detection graph based on the first ranging direction, the first distance, the second ranging direction, and the second distance;
and the determining module is used for acquiring an angle value of a designated angle in the gesture detection graph, and determining that the gesture is abnormal if the angle value is in a preset angle value range.
10. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the gesture detection method according to any one of claims 1 to 8.
11. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps in the gesture detection method according to any one of claims 1 to 8 when executing the program.
CN202210134521.0A 2022-02-14 2022-02-14 Attitude detection method and device, storage medium and mobile terminal Pending CN114495461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210134521.0A CN114495461A (en) 2022-02-14 2022-02-14 Attitude detection method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210134521.0A CN114495461A (en) 2022-02-14 2022-02-14 Attitude detection method and device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN114495461A true CN114495461A (en) 2022-05-13

Family

ID=81479848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210134521.0A Pending CN114495461A (en) 2022-02-14 2022-02-14 Attitude detection method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN114495461A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289662A1 (en) * 2008-01-11 2010-11-18 John Dasilva Personnel safety utilizing time variable frequencies
CN105788185A (en) * 2014-12-24 2016-07-20 刁宇童 Method and device for monitoring sitting posture
CN207663555U (en) * 2017-12-25 2018-07-27 肖文栋 A kind of sitting posture monitoring system
CN211694478U (en) * 2020-03-31 2020-10-16 佛山电器照明股份有限公司 Intelligent desk lamp
CN212782263U (en) * 2020-05-09 2021-03-23 松下电气机器(北京)有限公司 Lighting device
CN113053074A (en) * 2019-12-27 2021-06-29 苏州坦特拉智能科技有限公司 Sitting posture monitoring method
CN113436422A (en) * 2021-06-24 2021-09-24 上海栩讷科技有限公司 Sitting posture prompting method and device based on high-frequency millimeter wave radar and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289662A1 (en) * 2008-01-11 2010-11-18 John Dasilva Personnel safety utilizing time variable frequencies
CN105788185A (en) * 2014-12-24 2016-07-20 刁宇童 Method and device for monitoring sitting posture
CN207663555U (en) * 2017-12-25 2018-07-27 肖文栋 A kind of sitting posture monitoring system
CN113053074A (en) * 2019-12-27 2021-06-29 苏州坦特拉智能科技有限公司 Sitting posture monitoring method
CN211694478U (en) * 2020-03-31 2020-10-16 佛山电器照明股份有限公司 Intelligent desk lamp
CN212782263U (en) * 2020-05-09 2021-03-23 松下电气机器(北京)有限公司 Lighting device
CN113436422A (en) * 2021-06-24 2021-09-24 上海栩讷科技有限公司 Sitting posture prompting method and device based on high-frequency millimeter wave radar and electronic equipment

Similar Documents

Publication Publication Date Title
US11373054B2 (en) Object recognition method and mobile terminal
US11868604B2 (en) Display processing method and apparatus
US10244099B2 (en) Method and device for determining status of terminal, and terminal
CN108153422B (en) Display object control method and mobile terminal
US20210152729A1 (en) Method and Apparatus for Shooting Video, and Storage Medium
CN109257505B (en) Screen control method and mobile terminal
CN111967439A (en) Sitting posture identification method and device, terminal equipment and storage medium
CN111405110A (en) Screen control method and device, storage medium and mobile terminal
CN112738886A (en) Positioning method, positioning device, storage medium and electronic equipment
CN110753155A (en) Proximity detection method and terminal equipment
CN109472825B (en) Object searching method and terminal equipment
CN108307031B (en) Screen processing method, device and storage medium
CN111049510B (en) Touch key, control method and electronic equipment
CN112990038A (en) Escalator safety reminding method and device and computer storage medium
CN110031860B (en) Laser ranging method and device and mobile terminal
CN109947345B (en) Fingerprint identification method and terminal equipment
CN109144221B (en) Information prompting method, storage medium and electronic equipment
CN114495461A (en) Attitude detection method and device, storage medium and mobile terminal
CN108614263B (en) Mobile terminal, position detection method and related product
CN114710816A (en) Network switching method and device, electronic equipment and storage medium
CN111061369B (en) Interaction method, device, equipment and storage medium
CN113332726A (en) Virtual character processing method and device, electronic equipment and storage medium
CN108563376B (en) Application program starting method and mobile terminal
CN111083285A (en) Mobile terminal call positioning system and method
CN111917959B (en) Camera control method and device, storage medium and smart watch

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