CN113706616A - Prompting method, device, equipment and storage medium - Google Patents

Prompting method, device, equipment and storage medium Download PDF

Info

Publication number
CN113706616A
CN113706616A CN202111000423.XA CN202111000423A CN113706616A CN 113706616 A CN113706616 A CN 113706616A CN 202111000423 A CN202111000423 A CN 202111000423A CN 113706616 A CN113706616 A CN 113706616A
Authority
CN
China
Prior art keywords
target user
position information
image
terminal
ground
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
CN202111000423.XA
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 Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202111000423.XA priority Critical patent/CN113706616A/en
Priority to PCT/CN2021/132136 priority patent/WO2023024285A1/en
Publication of CN113706616A publication Critical patent/CN113706616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Abstract

The invention discloses a prompting method, a prompting device, equipment and a storage medium, wherein the method comprises the following steps: acquiring position information of a target user according to a preset frequency through a terminal; detecting whether the relative variation between two adjacent pieces of position information is within a preset range; when the relative variation between any two adjacent position information within the preset time is within the preset range, the terminal prompts. The method disclosed by the invention can intelligently and timely prompt the sedentary behavior of the user, and avoids the harm to the body health of the user due to sedentary sitting.

Description

Prompting method, device, equipment and storage medium
Technical Field
The invention relates to the field of intelligent terminals, in particular to a prompting method, a prompting device, prompting equipment and a storage medium.
Background
Along with the gradual development of intelligent science and technology products, terminal products with screens are increasingly not separated in work and study of people, people are tightly bound to the terminal screens in no matter work, study or entertainment, the terminal screens can last for a long time unconsciously often, and in the past, the terminal screens can cause great damage to the health of people. Long sitting can lead to insufficient blood supply of the brain of people, and cause health problems of muscle soreness, stiff neck, cervical vertebra and lumbar vertebra diseases and the like. In the prior art, relevant software for preventing sedentariness is installed on a terminal to remind a user of moving at regular time; however, by installing the prompting method of the anti-sedentary software, the duration of the user in front of the terminal screen and the duration of the posture cannot be accurately obtained, whether the user moves within the duration cannot be detected, and an accurate and effective prompting method cannot be provided for the user.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
Aiming at the defects in the prior art, the invention mainly aims to provide a prompting method, a prompting device, prompting equipment and a storage medium, and aims to solve the technical problem that the user cannot be effectively reminded of sedentariness, unchanged posture and no movement before the terminal in the prior art.
In order to achieve the above object, the present invention provides a prompting method, including:
acquiring position information of a target user according to a preset frequency;
detecting whether the relative variation between two adjacent pieces of position information is within a preset range, wherein the position information comprises the height of the target user and the horizontal distance from a terminal;
and when the relative variation between any two adjacent position information within the preset time is within the preset range, prompting the target user.
Preferably, the step of obtaining the location information of the target user according to the preset frequency includes: the terminal receives a starting instruction;
starting the terminal and simultaneously acquiring the image of the target user;
and obtaining the position information of the target user based on the image of the target user.
Preferably, the step of obtaining the location information of the target user based on the image of the target user further comprises:
acquiring the ground information of the terminal camera, wherein the ground information comprises: the vertical height of the terminal camera from the ground and the horizontal distance between the image ground-near end and the terminal camera are obtained;
and calculating the ground visual angle of the terminal camera based on the ground information of the terminal camera.
Preferably, the step of obtaining the location information of the target user based on the image of the target user further comprises:
calculating an edge distance of the target user in the image, wherein the edge distance comprises: distances of the target user in the image from the top, bottom, and left edge of the image;
calculating a ground perspective of the image based on the edge distance.
Preferably, the step of obtaining the location information of the target user based on the image of the target user further comprises:
and calculating the height of the target user and the horizontal distance from the target user to the terminal based on the ground view angle of the terminal camera and the ground view angle of the image.
Preferably, the detecting whether the relative variation between two adjacent pieces of position information is within a preset range includes:
calculating the height difference of the target user and the horizontal distance difference between the target user and the terminal in the two adjacent position information;
the two adjacent pieces of position information are position information of the target user corresponding to two adjacent pictures in an acquisition sequence according to a preset frequency;
detecting whether the height difference and the horizontal distance difference are within a preset range;
preferably, when the relative variation between any two adjacent position information within the preset time length is within a preset range, the prompting by the terminal includes:
if the variation of the two adjacent position information exceeds a preset range;
and restarting timing to detect whether the relative variation between any two adjacent position information in the preset time length is in a preset range.
In order to achieve the above object, the present invention also provides a presentation apparatus, comprising:
the image processing module is used for acquiring image information of a target user and calculating the position information of the target user based on the image information;
the detection module is used for detecting whether the relative variation between two adjacent pieces of position information is within a preset range or not and detecting whether the relative variation between any two adjacent pieces of position information is within the preset range or not within a preset time length or not;
and the prompt module is used for sending out prompt information.
In addition, in order to achieve the above object, the present invention further provides a terminal device, including a memory, a processor, and a prompting program stored on the memory and executable on the processor, where the prompting program is configured to implement the steps of the prompting method in any one of the preceding claims.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium having a hint program stored thereon, which when executed by a processor implements the steps of the hint method of any one of the preceding claims.
The prompting method provided by the invention comprises the following steps: acquiring position information of a target user according to a preset frequency; detecting whether the variation of the two adjacent position information is within a preset range; and when the variation of the two adjacent position information is within a preset range in a preset time, the terminal prompts. Whether the user is in a state of sitting in front of the terminal for a long time is determined by analyzing the information of the position of the target user within the preset time, so that the sitting behavior of the user can be timely reminded, and the harm to the body caused by sitting in front of the terminal for a long time is avoided.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a prompting method according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S10 in FIG. 2;
FIG. 4 is a detailed flowchart of step S13 in FIG. 3;
FIG. 5 is a schematic view of the installation position of the camera head of the present invention;
FIG. 6 is a schematic diagram of the distance between the target users in the image according to the present invention;
FIG. 7 is a schematic diagram of a ground view angle and longitudinal and transverse view angles of a target user image of a camera according to the present invention;
FIG. 8 is a detailed flowchart of step S20 in FIG. 2;
fig. 9 is a schematic structural diagram of a prompting device according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring position information of a target user according to a preset frequency; detecting whether the variation of the two adjacent position information is within a preset range; and when the variation of the two adjacent position information is within a preset range in a preset time, the terminal prompts.
In the prior art, people's life and various terminals are inseparable, and the terminals cannot be separated in life, study and entertainment, but the people's health can be greatly damaged when sitting in front of the terminals such as televisions, computers and the like for a long time; the existing terminal equipment adopts a timing reminding method to remind a user of movement, but the reminding method cannot accurately detect the duration of the user in front of the terminal, and cannot accurately detect whether the user has excessive movement in the period, so that a method which can accurately and timely remind the user of movement is urgently needed.
The invention provides a solution, which comprises the steps of acquiring position information of a target user according to a preset frequency through a terminal; detecting whether the relative variation between two adjacent pieces of position information is within a preset range; when the relative variation between any two adjacent position information within the preset time is within the preset range, the terminal prompts. That is, in the present invention, the location information of the user is obtained according to the preset frequency, and when any two adjacent location information of the user within the preset time length are both within the preset range, it indicates that the user does not move within the preset time length, so that the terminal prompts the user to move.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compress standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compress standard Audio Layer 3) player, a portable computer, and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a reminder program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the reminder stored in the memory 1005 and perform the following operations:
acquiring position information of a target user according to a preset frequency;
detecting whether the relative variation between two adjacent pieces of position information is within a preset range, wherein the position information comprises the height of the target user and the horizontal distance from a terminal;
and when the relative variation between any two adjacent position information within the preset time is within the preset range, prompting the target user.
Further to detecting, the processor 1001 may call a hint program stored in the memory 1005, and also perform the following operations:
the step of obtaining the position information of the target user according to the preset frequency comprises the following steps:
the terminal receives a starting instruction;
starting the terminal and simultaneously acquiring the image of the target user;
and obtaining the position information of the target user based on the image of the target user.
Further, the processor 1001 may call the reminder stored in the memory 1005, and also perform the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
acquiring the ground information of the terminal camera, wherein the ground information comprises: the vertical height of the terminal camera from the ground and the horizontal distance between the image ground-near end and the terminal camera are obtained;
and calculating the ground visual angle of the terminal camera based on the ground information of the terminal camera.
Further, the processor 1001 may call the reminder stored in the memory 1005, and also perform the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
calculating an edge distance of the target user in the image, wherein the edge distance comprises: distances of the target user in the image from the top, bottom, and left edge of the image;
calculating a ground perspective of the image based on the edge distance.
Further, the processor 1001 may call the reminder stored in the memory 1005, and also perform the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
and calculating the height of the target user and the horizontal distance from the target user to the terminal based on the ground view angle of the terminal camera and the ground view angle of the image.
Further, the processor 1001 may call the reminder stored in the memory 1005, and also perform the following operations:
the step of detecting whether the relative variation between two adjacent position information is within a preset range includes:
calculating the height difference of the target user and the horizontal distance difference between the target user and the terminal in the two adjacent position information;
the two adjacent pieces of position information are position information of the target user corresponding to two adjacent pictures in an acquisition sequence according to a preset frequency;
detecting whether the height difference and the horizontal distance difference are within a preset range;
and if so, judging that the target user is in a state of not moving.
Further, the processor 1001 may call the reminder stored in the memory 1005, and also perform the following operations:
when the relative variation between any two adjacent position information in the preset time length is within the preset range, the terminal prompts the user to perform the steps of:
if the variation of the two adjacent position information exceeds a preset range;
and restarting timing to detect whether the relative variation between any two adjacent position information in the preset time length is in a preset range.
Referring to fig. 2, a first embodiment of a prompting method of the present invention provides a prompting method, including:
step S10, acquiring the position information of the target user according to the preset frequency; (ii) a
Step S20, detecting whether the relative variation between two adjacent position information is in a preset range, wherein the position information comprises the height of the target user and the horizontal distance from the terminal; detection of
And step S30, when the relative variation between any two adjacent position information in the preset time length is in the preset range, prompting the target user.
Specifically, in the present embodiment, the execution main body for acquiring the location information of the target user may be a television, a computer, and a terminal device with a camera, and in the present embodiment, the television is taken as an example of the execution main body. When a user is in front of the television, an image acquisition device of the television acquires real-time position information of the target user according to a preset frequency under the control of a television system; the preset frequency is the frequency of acquiring the position information, which can be set by a person skilled in the art according to needs. For example, the preset picture capturing frequency is once every 5 minutes, so that the picture capturing apparatus will capture the position information of the target user once every five minutes, and calculate the amount of change between the position information of the target user captured at the fifth minute and the position information of the target user initially captured, the amount of change between the position information of the target user captured at 10 minutes and the position information of the target user captured at the fifth minute, and so on.
In addition, the present invention is not limited to collecting the location information of the user by taking a picture, and in this embodiment, the present embodiment is not limited at all, and in other embodiments, the television may also collect the video information of the target user in front of the television by recording the video, and obtain whether the location information of the target user in the corresponding time duration changes according to the preset time duration, so as to determine whether the target user of the user is in a sedentary state without moving. Before step S10, the method further includes: the user sets the minimum sedentary time period according to the time period of the sedentary state considered by the user.
Specifically, in this embodiment, the television system determines whether the target user is in a non-moving state by calculating the overlapping rate of the position information of two adjacent target users. When a user starts a television, a camera of the television starts to acquire the current position information of a target user, then the next position information of the target user is acquired according to the preset acquisition frequency and is compared with the previous position information of the target user, the coincidence rate of the position information of two adjacent target users is calculated, when the coincidence rate of the two adjacent position information is within the preset range, the second position information is marked and recorded, and the position information of the next two adjacent target users is continuously calculated. If the marked position information reaches the preset number in the preset time length, the target user can be judged to be in the unmoved state in the multiple frequency time lengths, namely the user is judged to be in the sedentary state, and the terminal prompts the user. The manner of the terminal prompt includes but is not limited to: and popping up prompt information, displaying a rest picture on a screen, and the like.
In this embodiment, position information of a target user is obtained according to a preset frequency, and whether the variation of two adjacent position information is within a preset range is judged; and if and only if the variation of the two adjacent position information in the preset time length is in the preset range, the terminal prompts the target user. Whether the user moves within the acquisition interval time is determined according to the comparison of the two adjacent position information, the movement condition of the user is accurately and comprehensively measured, and the sedentariness prompt is performed for the user who does not move within a preset time length.
Further, referring to fig. 3, a second embodiment of the prompting method according to the present invention provides a prompting method, based on the above embodiment shown in fig. 2, where the step S10 further includes:
step S11, the terminal receives a starting instruction;
step S12, starting the terminal and collecting the image of the target user;
step S13, obtaining the position information of the target user based on the image of the target user.
Specifically, in this embodiment, when the user starts the television and the television camera also starts the prompt setting, if the television is in the playing state and the target user is sitting in front of the television screen, the current real-time image is acquired by the television camera, and the television system can extremely obtain the initial position information of the target user relative to the television according to the image information.
Further, referring to fig. 4, a third embodiment of the prompting method according to the present invention provides a prompting method, based on the above embodiment shown in fig. 3, where the step S13 further includes:
step S131, obtaining the information of the terminal camera to the ground, wherein the information of the ground includes: the vertical height of the terminal camera from the ground and the horizontal distance between the image ground-near end and the terminal camera are obtained;
and calculating the ground visual angle of the terminal camera based on the ground information of the terminal camera.
Specifically, in the present embodiment, 2 view angles θ of the camera mounting position are calculated1And theta2The formula of (1) is:
Figure BDA0003234680960000091
Figure BDA0003234680960000092
h represents the vertical height of the television camera from the ground, L represents the horizontal distance between the position of the ground-near end of a shot image and the root position of the camera, f represents the focal length of the camera, and L represents the vertical height of the television camera from the groundHRepresenting the longitudinal height value, f and l, of the focal plane of a CCD cameraHFor known fixed parameters, tg-1Is an arctan trigonometric function. Thus obtaining two ground visual angles theta of the television camera1And theta2(as shown in fig. 7), the angle of view of the terminal camera to the ground theta1According to the horizontal distance L from the ground-near end position of the shot image to the root position of the camera and the height H from the terminal camera to the ground, the method is based on the arc tangent triangleCalculating the ground visual angle theta of the terminal camera by the function1. Obtaining another ground viewing angle theta of the camera by an inverse tangent trigonometric function according to the focal length f of the terminal camera, the longitudinal height values of a CCD (charge coupled device) and a focal plane2
Further, in the present invention, step S13 further includes:
step S132, calculating an edge distance of the target user in the image, where the edge distance includes: distances of the target user in the image from the top, bottom, and left edge of the image;
calculating a ground perspective of the image based on the edge distance.
Specifically, three viewing angles corresponding to an image of a target user captured by a camera are calculated. Specifically, the calculation of the height and distance values of the user to be shot in the image actually measures the pixel distance l between the bottom of the user to be shot and the bottom edge of the image1Distance l of pixel of target user's head from bottom edge of image2And the pixel distance l from the center of the target user to the left edge of the image3. Wherein:
the formula for calculating the 2 longitudinal visual angles corresponding to the shot target user compared with the ground is as follows:
Figure BDA0003234680960000101
Figure BDA0003234680960000102
the formula for calculating the transverse visual angle corresponding to the shot target user is as follows:
Figure BDA0003234680960000103
wherein, theta3And theta4Is two longitudinal views corresponding to the photographed personAngle theta5And the horizontal visual angle of the person is represented, sin is a sine trigonometric function, cos is a cosine trigonometric function, and tg is a tangent trigonometric function.
Where k denotes a fixed parameter value of the pixel interval size of the camera CCD device, lHRepresenting the longitudinal height value, l, of the focal plane of the cameraWRepresenting the transverse width value, l, of the focal plane of the cameraHAnd lWAre fixed parameters of the camera.
Further, step S13 in embodiment 2 above further includes:
and step S133, calculating the height of the target user and the horizontal distance from the target user to the terminal based on the ground view angle of the terminal camera and the ground view angle of the image.
Specifically, combining the calculation results of step S131 and step S132, the formula for calculating the height of the user object to be photographed is:
Figure BDA0003234680960000111
so far, the formula for calculating the horizontal distance between the height of the shot target user and the camera is as follows:
Figure BDA0003234680960000112
wherein, theta3And theta4Is two longitudinal visual angles, theta, corresponding to the target user to be photographed5The method comprises the steps of representing a transverse visual angle of a target user (as shown in fig. 7), calculating the transverse visual angle of the target user relative to a terminal camera through fixed parameters of the camera, calculating a longitudinal visual angle of the target user by combining a pixel distance from the bottom of the target user to the bottom edge of an image in image information of the target user obtained by shooting of the terminal camera, and calculating another ground visual angle of the target user through the fixed parameters of the terminal camera and a distance from the head of the target user to the bottom edge of the image in the image. Wherein sin is sine triangleThe function cos is a cosine trigonometric function and tg is a tangent trigonometric function.
In conclusion, the initial height value h of the target user can be calculated0Initial horizontal distance d0. And then calculating and comparing whether the h value and the d value in the subsequent set time period are changed or not, detecting whether the target user needs to be reminded of getting up to do exercise or not, and avoiding the health problems of lumbar vertebra and cervical vertebra caused by long-time sitting immobility.
In addition, in other embodiments of the present invention, the height of the target user and the distance from the terminal may also be obtained by other measurement calculation methods, and the present invention is not limited thereto. For example, the height of the target user and the horizontal distance from the terminal can be measured and calculated by using ultrasonic waves, a position sensor and the like.
In the embodiment, based on the perspective geometric relationship between the ground angle corresponding to the target user shot by the fixed camera provided by the television and the projection of the center of the camera, the height and the distance of the target user to be shot are converted into the ground view angle of the image by using a correlation algorithm, and the height of the target user to be shot and the horizontal distance from the camera are determined according to calibrated known parameter values. If the user gets up and walks within the set sedentary reminder calculation time, the height and distance values obtained by the camera in combination with the algorithm will change. Based on this, whether to remind the user to get up and go to rest in due time can be detected according to whether height and distance value change in this time quantum to realize the sedentariness prompt facility.
Further, step S20 described with reference to fig. 5 further includes:
step S201, calculating the height difference of the target user and the horizontal distance difference from the terminal in the two adjacent position information;
the two adjacent pieces of position information are position information of the target user corresponding to two adjacent pictures in an acquisition sequence according to a preset frequency;
step S202, detecting whether the height difference and the horizontal distance difference are within a preset range;
and step S203, if so, judging that the target user is in a state of not moving.
Specifically, in this embodiment, to further refine whether the target user has a motion, the television collects the position information of the target user according to a preset frequency, calculates a height difference and a horizontal distance difference from the terminal between two adjacent position information collected according to the preset frequency, and determines that the target user is in a non-moving state during the calculation when the calculated variation is within a preset range. To a certain extent, whether the user moves or not is determined by calculating the variation of the information of two adjacent positions of the target user, so that the situations that the target user moves slowly and slightly small movements are omitted can be avoided.
Further, the step 30 of the above-mentioned embodiment further includes:
step S301, if the variation of the two adjacent position information exceeds a preset range;
step S302, timing is restarted to detect whether the relative variation between any two adjacent position information in the preset time length is within a preset range.
Specifically, in this embodiment, the television system determines the location information of the target user according to the target user image collected according to the preset frequency, and determines that the target user does not move during the period when the variation of the two adjacent location information is within the preset range, but detects that the user moves during the period when the variation of the two adjacent location information exceeds the preset range; for example, taking a preset time length of 30 minutes and a preset frequency of 5 minutes as an example, when the variation between the position information at 5 minutes and the initially acquired position information does not exceed a preset range, it is determined that the target user does not move within 0-5 minutes, and then it is calculated whether the variation between the position information of the target user acquired at 10 minutes and the position information of the target user acquired at 5 minutes exceeds the preset range, and so on, until the variation between the position information of the target user acquired at 30 minutes and the position information of the target user acquired at 25 minutes does not exceed the preset range, it is determined that the user does not move within the 30 minutes, and at this time, the terminal prompts the user to avoid permanent damage to the physical health; however, if the variation of the position information of the target user collected at the 20 th minute and the position information of the target user collected at the 15 th minute exceeds the preset range, it indicates that the target user has moved for movement within 5 minutes, namely, within the 5 minutes from the ground to the 20 th minute, the television system will restart timing with the position information of the target user at the 25 th minute as the initial position information, that is, in this case, the period for detecting whether the user is moving is the 25 th to 55 th minutes, and the user will be prompted to sit for a long time if and only if the variation of the 6 adjacent two position information does not exceed the preset range.
In this embodiment, when the variation of the two adjacent position information exceeds the preset range, timing is restarted to detect whether the variation of the two adjacent position information within the preset time length is within the preset range, and then a sedentary prompt is given to the target user. The sedentariness action of the user is prompted more intelligently and timely, and the harm to the body health of the user due to sedentariness is avoided.
In addition, based on any one of the above embodiments, a fourth embodiment of the prompting method according to the present invention is provided, and specifically, in this embodiment, a terminal selects a television as an example, and a time limit of a maximum duration for which a user keeps one posture is preset in a television system by a television manufacturer when the television leaves a factory. When a user starts a television and keeps a fixed gesture in front of the television, a camera of the television starts to acquire position information of the user in front of the television according to a preset acquisition frequency, specifically, the position relation between the current user and the television is determined according to user image information acquired by the camera, the position information of the user at the next time point is acquired according to the acquisition frequency of the camera, the coincidence rate of the position information in two adjacent pieces of user image information is detected, and when the position coincidence rate in any two adjacent pieces of user image information is in a preset range in a preset time period, the user keeps the same gesture all the time when the user does not move in the time period. The position information of the user relative to the television can be obtained by calculating the position information of the user relative to the television through the ground view angle of the television camera and the ground view angle of the user image information, wherein the position information comprises the height of the user and the horizontal distance from the user to the television. In addition, in this embodiment, within the preset duration, if the position information of the user relative to the television at a certain acquisition time point changes, the current acquisition point is taken as the timing starting point of the next preset duration. Therefore, the movement condition of the user is judged according to the position information of the user relative to the television, and the sedentary damage health prompt is carried out on the user who does not move within the preset time length.
Referring to fig. 8, an embodiment of the present invention provides a prompting device, including:
the image processing module 10 is used for acquiring image information of a target user and calculating the position information of the target user based on the image information;
the detecting module 20 is configured to detect whether a relative variation between two adjacent pieces of location information is within a preset range and detect whether a relative variation between any two adjacent pieces of location information within a preset time is within a preset range;
and the prompt module 30 is used for sending out prompt information.
In addition, the present invention further provides a terminal device, which includes a memory, a processor, and a prompting program stored in the memory and executable on the processor, where the prompting program is configured to implement the steps of the prompting method according to any of the above embodiments.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a hint program is stored on the computer-readable storage medium, and when executed by a processor, the hint program implements the following operations:
acquiring position information of a target user according to a preset frequency through a terminal;
detecting whether the relative variation between two adjacent pieces of position information is within a preset range;
and when the variation of the two adjacent position information is within a preset range in a preset time, the terminal prompts.
Further, the hint program when executed by the processor further performs the following operations:
the step of acquiring the position information of the target user according to the preset frequency through the terminal comprises the following steps:
the terminal receives a starting instruction;
starting the terminal and simultaneously acquiring the image of the target user;
and obtaining the position information of the target user based on the image of the target user.
Further, the hint program when executed by the processor further performs the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
acquiring the ground information of the terminal camera, wherein the ground information comprises: the vertical height of the terminal camera from the ground and the horizontal distance between the image ground-near end and the terminal camera are obtained;
and calculating the ground visual angle of the terminal camera based on the ground information of the terminal camera.
Further, the hint program when executed by the processor further performs the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
calculating an edge distance of the target user in the image, wherein the edge distance comprises: distances of the target user in the image from the top, bottom, and left edge of the image;
calculating a ground perspective of the image based on the edge distance.
Further, the hint program when executed by the processor further performs the following operations:
the step of obtaining the location information of the target user based on the image of the target user further comprises:
and calculating the height of the target user and the horizontal distance from the target user to the terminal based on the ground view angle of the terminal camera and the ground view angle of the image.
Further, the hint program when executed by the processor further performs the following operations:
the step of detecting whether the relative variation between two adjacent position information is within a preset range includes:
calculating the height difference of the target user and the horizontal distance difference between the target user and the terminal in the two adjacent position information;
the two adjacent pieces of position information are position information of the target user corresponding to two adjacent pictures in an acquisition sequence according to a preset frequency;
detecting whether the height difference and the horizontal distance difference are within a preset range;
and if so, judging that the target user is in a state of not moving.
Further, the hint program when executed by the processor further performs the following operations:
when the relative variation between any two adjacent position information in the preset time length is within the preset range, the terminal prompts the user to perform the steps of:
if the variation of the two adjacent position information exceeds a preset range;
and restarting timing to detect whether the relative variation between any two adjacent position information in the preset time length is in a preset range.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of prompting, comprising:
acquiring position information of a target user according to a preset frequency;
detecting whether the relative variation between two adjacent pieces of position information is within a preset range, wherein the position information comprises the height of the target user and the horizontal distance from a terminal;
and when the relative variation between any two adjacent position information within the preset time is within the preset range, prompting the target user.
2. The prompting method of claim 1, wherein the step of obtaining the location information of the target user according to the preset frequency comprises:
the terminal receives a starting instruction;
starting the terminal and simultaneously acquiring the image of the target user;
and obtaining the position information of the target user based on the image of the target user.
3. The prompting method of claim 2, wherein the step of obtaining the location information of the target user based on the image of the target user further comprises:
acquiring the ground information of the terminal camera, wherein the ground information comprises: the vertical height of the terminal camera from the ground and the horizontal distance between the image ground-near end and the terminal camera are obtained;
and calculating the ground visual angle of the terminal camera based on the ground information of the terminal camera.
4. The prompting method of claim 2, wherein the step of obtaining the location information of the target user based on the image of the target user further comprises:
calculating an edge distance of the target user in the image, wherein the edge distance comprises: distances of the target user in the image from the top, bottom, and left edge of the image;
calculating a ground perspective of the image based on the edge distance.
5. The prompting method of claim 2, wherein the step of obtaining the location information of the target user based on the image of the target user further comprises:
and calculating the height of the target user and the horizontal distance from the target user to the terminal based on the ground view angle of the terminal camera and the ground view angle of the image.
6. The prompting method according to claim 1 or 5, wherein the step of detecting whether the relative variation between two adjacent position information is within a preset range comprises:
calculating the height difference of the target user and the horizontal distance difference between the target user and the terminal in the two adjacent position information;
the two adjacent pieces of position information are position information of the target user corresponding to two adjacent pictures in an acquisition sequence according to a preset frequency;
detecting whether the height difference and the horizontal distance difference are within a preset range;
and if so, judging that the target user is in a state of not moving.
7. The prompting method of claim 1, wherein when the relative variation between any two adjacent position information within a preset time length is within a preset range, the prompting by the terminal comprises:
if the variation of the two adjacent position information exceeds a preset range;
and restarting timing to detect whether the relative variation between any two adjacent position information in the preset time length is in a preset range.
8. A prompting device, the device comprising:
the image processing module is used for acquiring image information of a target user and calculating the position information of the target user based on the image information;
the detection module is used for detecting whether the relative variation between two adjacent pieces of position information is within a preset range or not and detecting whether the relative variation between any two adjacent pieces of position information is within the preset range or not within a preset time length or not;
and the prompt module is used for sending out prompt information.
9. A terminal device comprising a memory, a processor and a reminder stored on the memory and executable on the processor, the reminder being configured to implement the steps of the reminder method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a reminder program which, when executed by a processor, implements the steps of the reminder method according to any of claims 1 to 7.
CN202111000423.XA 2021-08-27 2021-08-27 Prompting method, device, equipment and storage medium Pending CN113706616A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111000423.XA CN113706616A (en) 2021-08-27 2021-08-27 Prompting method, device, equipment and storage medium
PCT/CN2021/132136 WO2023024285A1 (en) 2021-08-27 2021-11-22 Prompting method and apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111000423.XA CN113706616A (en) 2021-08-27 2021-08-27 Prompting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113706616A true CN113706616A (en) 2021-11-26

Family

ID=78656389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111000423.XA Pending CN113706616A (en) 2021-08-27 2021-08-27 Prompting method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113706616A (en)
WO (1) WO2023024285A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101827A (en) * 2016-06-19 2016-11-09 乐视控股(北京)有限公司 Terminal based reminding method and device
WO2017206433A1 (en) * 2016-05-30 2017-12-07 乐视控股(北京)有限公司 Television control method and system
KR20180077683A (en) * 2016-12-29 2018-07-09 재단법인대구경북과학기술원 Apparatus of detecting treadmill based image analysis and method of detecting emergency using the same
CN110648509A (en) * 2019-09-25 2020-01-03 珠海格力电器股份有限公司 Method, device and system for generating prompt message
CN112070483A (en) * 2020-09-09 2020-12-11 北京小米移动软件有限公司 Reminding method, reminding device and storage medium
CN112818940A (en) * 2021-03-03 2021-05-18 珠海美佳音科技有限公司 Sitting posture detection method and device, learning machine and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104236462B (en) * 2013-06-14 2018-01-23 北京千里时空科技有限公司 A kind of method of object height and distance in extraction video image
CN106488031B (en) * 2016-11-02 2019-11-12 宇龙计算机通信科技(深圳)有限公司 A kind of use based reminding method and the terminal of terminal
CN107426423A (en) * 2017-07-17 2017-12-01 深圳天珑无线科技有限公司 Reminding method, terminal and the computer-readable storage medium of posture are used based on terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206433A1 (en) * 2016-05-30 2017-12-07 乐视控股(北京)有限公司 Television control method and system
CN106101827A (en) * 2016-06-19 2016-11-09 乐视控股(北京)有限公司 Terminal based reminding method and device
KR20180077683A (en) * 2016-12-29 2018-07-09 재단법인대구경북과학기술원 Apparatus of detecting treadmill based image analysis and method of detecting emergency using the same
CN110648509A (en) * 2019-09-25 2020-01-03 珠海格力电器股份有限公司 Method, device and system for generating prompt message
CN112070483A (en) * 2020-09-09 2020-12-11 北京小米移动软件有限公司 Reminding method, reminding device and storage medium
CN112818940A (en) * 2021-03-03 2021-05-18 珠海美佳音科技有限公司 Sitting posture detection method and device, learning machine and storage medium

Also Published As

Publication number Publication date
WO2023024285A1 (en) 2023-03-02

Similar Documents

Publication Publication Date Title
WO2019041519A1 (en) Target tracking device and method, and computer-readable storage medium
CN109246360B (en) Prompting method and mobile terminal
JP5857257B2 (en) Display device and display direction switching method
CN107993292B (en) Augmented reality scene restoration method and device and computer readable storage medium
CN108091288B (en) Display screen uniformity testing method, terminal and computer readable storage medium
JP2007265125A (en) Content display
US8150102B2 (en) System and method for interacting with a media device using faces and palms of video display viewers
CN103513768A (en) Control method and device based on posture changes of mobile terminal and mobile terminal
CN108012026B (en) Eyesight protection method and mobile terminal
KR20130088493A (en) Method for providing user interface and video receving apparatus thereof
CN111651039A (en) Processing method and device for automatically rotating television screen according to user posture
CN113076007A (en) Display screen visual angle adjusting method and device and storage medium
CN105721739B (en) Anti-shaking system and method for screen image
US20220164567A1 (en) Method for behaviour recognition based on line-of-sight estimation, electronic equipment, and storage medium
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
US9041689B1 (en) Estimating fingertip position using image analysis
JP2014182700A (en) Touch panel control device, electronic apparatus, touch panel control method, and touch panel control program
US20120320500A1 (en) Portable electronic device and method for using the same
CN110740270B (en) Camera adjusting method and device, electronic equipment and storage medium
CN113706616A (en) Prompting method, device, equipment and storage medium
CN108491074B (en) Electronic device, exercise assisting method and related product
US9904355B2 (en) Display method, image capturing method and electronic device
CN112788244B (en) Shooting method, shooting device and electronic equipment
CN109771940B (en) Game control method, device and computer readable storage medium
CN112004151B (en) Control method of television equipment, television equipment and readable storage medium

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