Control method, control device, electronic device and storage medium

The user's spine model is generated through the depth camera and the angle information is analyzed, which solves the problem of physical discomfort caused by the user wearing the device in the existing technology, realizes seamless posture monitoring and correction prompts, and improves the convenience and effectiveness of posture correction.

CN110797104BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910844297.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-06
Publication Date
2024-10-15
Estimated Expiration
2039-09-08

AI Technical Summary

Technical Problem

In the existing technology, users need to wear equipment to monitor spinal posture, which causes physical discomfort and cannot effectively solve the problem of abnormal spinal posture in daily life.

Method used

Obtain the depth image of the target area through the depth camera, generate the user's spine model, analyze the spine angle information, compare it with the standard spine angle information, determine whether the posture is abnormal, and output prompt information to recommend videos or product information to correct the posture.

Benefits of technology

It monitors spinal posture without the need for users to wear equipment, provides clear tips and recommendations, avoids physical discomfort, and improves the convenience and effectiveness of posture correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110797104B_ABST
    Figure CN110797104B_ABST
Patent Text Reader

Abstract

The present application provides a control method, including: obtaining a depth image of a target area through a depth camera; generating a spinal model of a target user based on the depth image; obtaining spinal angle information of the target user based on the spinal model; obtaining standard spinal angle information, and comparing the spinal angle information of the target user with the standard spinal angle information to determine whether the target user is in an abnormal posture state; if it is determined that the target user is in an abnormal posture state, outputting a prompt message. Based on the control method provided by the present application, the user's body posture is monitored with the help of a depth camera without the user having to wear a monitoring device close to the body, which will not cause physical inconvenience to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of posture detection, and in particular, relates to a control method, a control device, an electronic device and a storage medium. Background Art

[0002] Nowadays, the incidence of cervical spondylosis and lumbar spondylosis is getting higher and higher. The reason for this problem is that people do not pay attention to their body posture in daily life, which causes the spine to be often in a scoliotic, forward or backward state.

[0003] Currently, a solution for monitoring the user's sitting posture has been made public. The user wears a corresponding device close to the body. The sensor in the device detects the user's body data to determine whether the user's sitting posture is abnormal. When it is determined that the user's sitting posture is abnormal, a prompt is issued.

[0004] However, such devices require users to wear them close to their skin, which may cause physical discomfort to users. Summary of the invention

[0005] In view of this, the purpose of the present application is to provide a control method, a control device, an electronic device and a storage medium, which construct a user's spinal model based on the user's depth image, so as to determine whether the user is in an abnormal posture state, and solve the problem of physical discomfort caused by the user's need to wear monitoring equipment close to the body in the prior art.

[0006] To achieve the above objectives, this application provides the following technical solutions:

[0007] The present application provides a control method for an electronic device, wherein the electronic device includes a depth camera or is connected to a depth camera, and the control method includes:

[0008] Acquire a depth image of a target area through the depth camera, where the target area is an area where a target user is located;

[0009] generating a spinal model of the target user based on the depth image;

[0010] Obtaining spinal angle information of the target user based on the spinal model of the target user;

[0011] Obtaining standard spine angle information, and comparing the target user's spine angle information with the standard spine angle information to determine whether the target user is in an abnormal posture state;

[0012] When it is determined that the target user is in an abnormal posture state, prompt information is output to prompt the target user to correct the posture.

[0013] Optionally, based on the above control method, it also includes:

[0014] When it is determined that the target user is in an abnormal posture state, obtaining recommendation information;

[0015] The recommendation information is output.

[0016] Optionally, in the above control method, the recommendation information includes video recommendation information; and outputting the recommendation information includes: generating a video recommendation interface, the video recommendation interface including the video recommendation information; and displaying the video recommendation interface.

[0017] Optionally, in the above control method, the recommendation information includes product recommendation information; and outputting the recommendation information includes: generating a product recommendation interface, the product recommendation interface including the product recommendation information; and displaying the product recommendation interface.

[0018] Optionally, in the above control method, generating the spinal model of the target user based on the depth image includes:

[0019] Acquire a standard spine model, wherein the standard spine model includes a plurality of vertebral sub-models;

[0020] Determine the position information of each vertebra of the target user according to the depth image, wherein the position information of the vertebra includes transverse position information and longitudinal position information;

[0021] The position of each vertebral sub-model in the standard spine model is adjusted according to the position information of each vertebra of the target user to obtain the spine model of the target user.

[0022] Optionally, in the above control method, the step of acquiring a standard spine model includes:

[0023] determining a posture of the target user;

[0024] determining a spine length of the target user;

[0025] Among a plurality of standard spine models in the preset postures, a standard spine model having a spine length closest to that of the target user is obtained.

[0026] Optionally, in the above control method, obtaining standard spine angle information includes: determining the posture of the target user; and obtaining standard spine angle information under the posture.

[0027] Optionally, in the above control method, obtaining the spinal angle information of the target user based on the spinal model includes:

[0028] Analyze the spinal model to obtain the transverse angle and the longitudinal angle of each joint in the spinal column of the target user;

[0029] Accordingly, comparing the target user's spine angle information with the standard spine angle information to determine whether the target user is in an abnormal posture state includes:

[0030] Comparing the transverse angle and the longitudinal angle of each joint in the spine of the target user with the standard transverse angle and the standard longitudinal angle of the corresponding joint in the standard spine angle information;

[0031] If the number of joints in the spine of the target user with abnormal angles reaches a preset number, it is determined that the target user is in an abnormal posture state;

[0032] Among them, when any one of the following conditions is met, it is determined that the target user's joint has an abnormal angle: the difference between the lateral angle of the target user's joint and the standard lateral angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold.

[0033] On the other hand, the present application provides a control device for an electronic device, wherein the electronic device includes a depth camera or is connected to a depth camera, and the control device includes:

[0034] A depth image acquisition unit, configured to acquire a depth image of a target area through the depth camera, wherein the target area is an area where a target user is located;

[0035] A spine model generating unit, configured to generate a spine model of the target user based on the depth image;

[0036] A spine angle information acquisition unit, used to obtain the spine angle information of the target user based on the spine model of the target user;

[0037] A user posture analysis unit, used to obtain standard spine angle information, and compare the spine angle information of the target user with the standard spine angle information to determine whether the target user is in an abnormal posture state;

[0038] The prompting unit is used to output prompting information to prompt the target user to correct the posture when it is determined that the target user is in an abnormal posture state.

[0039] On the other hand, the present application provides an electronic device, including a processor and a memory;

[0040] The processor is used to execute the program stored in the memory;

[0041] The memory is used to store a program, and the program is at least used to:

[0042] A depth image of a target area is acquired through a depth camera, wherein the target area is an area where a target user is located; a spinal model of the target user is generated based on the depth image; spinal angle information of the target user is acquired based on the spinal model; standard spinal angle information is acquired, and the spinal angle information of the target user is compared with the standard spinal angle information to determine whether the target user is in an abnormal posture state; if it is determined that the target user is in an abnormal posture state, a prompt message is output to prompt the target user to correct the posture.

[0043] On the other hand, the present application provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the control method described in any one of the above items is implemented.

[0044] It can be seen that the beneficial effects of this application are:

[0045] The control method of the electronic device provided by the present application obtains a depth image of the target area through a depth camera, then generates a spinal model of the target user based on the depth image, analyzes the spinal model to obtain the spinal angle information of the target user, compares the spinal angle information of the target user with the standard spinal angle information, and determines whether the target user is in an abnormal posture state according to the comparison result. If the target user is in an abnormal posture state, then outputs a prompt message to prompt the user to correct the posture. The control method of the electronic device provided by the present application generates a spinal model of the target user based on the depth image of the target user, thereby determining whether the posture of the target user is standard, and prompting the target user when the posture is abnormal, without the need for close-fitting detection of the target user, and will not cause physical inconvenience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A flow chart of a control method for an electronic device provided in the present application;

[0048] Figure 2 A flowchart of another control method of an electronic device provided by the present application;

[0049] Figure 3 A schematic diagram of a display interface provided by this application;

[0050] Figure 4 Another schematic diagram of the display interface provided by this application;

[0051] Figure 5 A flowchart of another control method of an electronic device provided by the present application;

[0052] Figure 6 A flowchart of the front-end processing process of the video terminal provided by this application;

[0053] Figure 7 A flowchart of the backend processing process of the video terminal provided for this application;

[0054] Figure 8 A flow chart of the processing of the data layer of the video terminal provided by the present application;

[0055] Fig. 9 Another flow chart of the processing of the data layer of the video terminal provided by the present application;

[0056] Fig.10 A schematic diagram of the structure of a control device of an electronic device provided in the present application;

[0057] Fig.11 A hardware structure diagram of an electronic device provided in this application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0059] For ease of understanding, the electronic device to which the solution of the present application is applicable is first introduced.

[0060] The electronic device in the present application is a device capable of outputting multimedia information, such as a mobile phone, a tablet computer, a computer of other structures, and a smart TV. The electronic device in the present application may also be a video box, which, as a multimedia information source, provides multimedia information to other electronic devices so that the other electronic devices can output multimedia information.

[0061] It should be noted that the electronic device in the present application includes a collection device, or is connected to a collection device. The collection device is at least capable of collecting a depth image of the target area. Optionally, the collection device can also collect a texture image. For example, the collection device includes a depth camera. Optionally, the collection device also includes a texture camera, such as an RGB camera.

[0062] See also Figure 1 , Figure 1 This is a flow chart of a control method for an electronic device provided in this application. The control method includes:

[0063] Step S101: Acquire a depth image of a target area through a depth camera.

[0064] The target area is the area where the target user is located. The target user is the user who needs to perform posture monitoring.

[0065] A depth image, also called a range image, is an image that uses the distance (depth) from the depth sensor to each point in the scene as a pixel value. In other words, each pixel in the depth image is used to represent the distance from a point in space to the depth camera.

[0066] The electronic device in the present application is at least provided with a depth camera, or is connected to a depth camera.

[0067] For electronic devices that are equipped with a depth camera, the depth camera is usually installed on the surface where the display screen of the electronic device is located, and the user is usually in front of the display screen, so the user is also located in the acquisition area of ​​the depth camera. For electronic devices that are connected to an external depth camera through a communication medium, the position and angle of the depth camera can be adjusted so that the user is located in the acquisition area of ​​the depth camera.

[0068] Step S102: Generate a spinal model of the target user based on the depth image.

[0069] The depth image of the target area generated by the depth camera contains the distance from the point on the target user's body to the depth camera.

[0070] When the target user's spine is twisted, the shape of the target user's upper body will change accordingly, thereby changing the value of the corresponding pixel point in the depth image, or changing the body contour of the target user in the depth image. By analyzing the depth image, a spine model of the target user can be generated.

[0071] For example, when the target user's spine bends in front of the body, the target user's upper body will be hunched, and the value of the corresponding pixel in the depth image will also change. For example, when the target user's spine tilts to the left or right side of the body, the user's upper body will bend sideways, and the user's outline in the depth image will change accordingly.

[0072] Step S103: obtaining the target user's spine angle information based on the target user's spine model.

[0073] Step S104: Obtain standard spine angle information.

[0074] Step S105: Compare the target user's spine angle information with the standard spine angle information to determine whether the target user is in an abnormal posture state.

[0075] Step S106: When it is determined that the target user is in an abnormal posture state, output prompt information to prompt the target user to correct the posture.

[0076] The spinal model of the target user is analyzed to obtain the spinal angle information of the target user, and then the standard spinal angle information is obtained. The spinal angle information of the target user is compared with the standard spinal angle information, and it is determined whether the target user is in an abnormal posture state based on the comparison result.

[0077] It is understandable that if there is a large difference between the target user's spine angle information and the standard spine angle information, it indicates that the target user is currently in an abnormal posture state, and the electronic device then outputs a prompt message to prompt the user to adjust his or her posture.

[0078] The human spine has four physiological curvatures. It is understandable that when the target user's posture changes, the angles of some physiological curvatures in the target user's spine will change.

[0079] In a possible implementation, the spinal angle information of the target user includes the angles of the four physiological curvatures of the spine, and the standard spinal angle information includes the standard angles of the four physiological curvatures of the spine in a standard posture. By comparing the angles of the four physiological curvatures of the user's spine with the standard angles of the four physiological curvatures of the spine in a standard posture one by one, it is determined whether the target user is in an abnormal posture state according to the comparison result. Specifically, if the difference between the angles of more than a preset number of physiological curvatures in the user's spine and the standard angles exceeds the corresponding threshold, it is determined that the target user is in an abnormal posture state.

[0080] In a possible implementation, when it is determined that the target user is in an abnormal posture state, an operation of outputting prompt information is immediately performed.

[0081] In another possible implementation, steps S101 to S105 are executed at preset time intervals, and when it is first determined that the target user is in an abnormal posture state, the timing is started. If the time when the target user is in the abnormal posture state reaches a preset time threshold, the operation of outputting prompt information is executed.

[0082] In practice, the prompt information may be in various forms, including but not limited to one or more of text, pictures, animated pictures, voice and short videos.

[0083] In a possible implementation, if the electronic device is in a multimedia file playing state, the electronic device can pause playing the current multimedia file and output a prompt message. Based on this technical solution, a more clear and strong reminder can be issued to the target user.

[0084] Accordingly, when the electronic device determines that the target user has adjusted to a normal posture, it stops outputting the prompt information and resumes playing the multimedia file. Alternatively, when the prompt information output time reaches a preset time, the electronic device stops outputting the prompt information and resumes playing the multimedia file.

[0085] In a possible implementation, the electronic device outputs the prompt information in the form of a pop-up window.

[0086] The control method of the electronic device provided by the present application obtains a depth image of the target area through a depth camera, then generates a spinal model of the target user based on the depth image, analyzes the spinal model to obtain the spinal angle information of the target user, compares the spinal angle information of the target user with the standard spinal angle information, and determines whether the target user is in an abnormal posture state according to the comparison result. If the target user is in an abnormal posture state, then outputs a prompt message to prompt the target user to correct the posture. The control method of the electronic device provided by the present application generates a spinal model of the target user based on the depth image of the target user, thereby determining whether the posture of the target user is standard, and prompting the target user when the posture is abnormal, without the need for close-fitting detection of the target user, and will not cause physical inconvenience to the user.

[0087] See also Figure 2 , Figure 2 This is a flow chart of another control method of an electronic device provided in the present application. The control method includes:

[0088] Step S201: Acquire a depth image of a target area through a depth camera.

[0089] Step S202: Generate a spinal model of the target user based on the depth image.

[0090] Step S203: obtaining the target user's spine angle information based on the target user's spine model.

[0091] Step S204: Obtain standard spine angle information.

[0092] Step S205: Compare the target user's spine angle information with the standard spine angle information to determine whether the target user is in an abnormal posture state. If it is determined that the target user is in an abnormal posture state, execute steps S206 and S207.

[0093] Step S206: outputting prompt information to prompt the target user to correct the posture.

[0094] Step S207: Obtain recommendation information, and output the recommendation information.

[0095] It should be noted that step S206 and step S207 are not limited to Figure 2 The order shown in .

[0096] In a possible implementation, the recommendation information is video recommendation information. Accordingly, outputting the recommendation information specifically includes: generating a video recommendation interface, the video recommendation interface including the aforementioned video recommendation information; and displaying the video recommendation information.

[0097] The video recommendation information is the description information of the recommended video. The recommended video may be a sports video, such as a yoga video, aerobics video, etc., or a video that instructs how to relax the body, such as a waist and neck massage instruction video. The description information of the recommended video may be the cover of the recommended video, or may be the summary or name of the recommended video.

[0098] In a possible implementation, the video recommendation interface includes a focus recommendation position and a non-focus recommendation position. The electronic device automatically plays the video indicated by the video recommendation information located in the focus recommendation position in a small window mode. When the electronic device receives an operation to select a video to be played in a small window mode, it switches to a large screen mode or a full screen mode to play the video. Figure 3 shown.

[0099] In addition, the video recommendation interface can also be in other forms. For example, Figure 4 As shown, the video recommendation interface includes a first area and a second area, the first area contains description information of multiple popular videos, and the second area contains description information of multiple recommended videos.

[0100] In a possible implementation, the electronic device determines that the target user is in an abnormal posture state and generates a video recommendation interface. After the target video is played, the electronic device displays the video recommendation interface on the video playback interface. Optionally, the video recommendation interface does not occupy the entire video playback interface, that is, the area of ​​the video recommendation interface is smaller than the area of ​​the video playback interface.

[0101] In another possible implementation, the recommendation information is product recommendation information. Accordingly, outputting the recommendation information specifically includes: generating a product recommendation interface, the product recommendation interface including the aforementioned product recommendation information; and displaying the product recommendation interface.

[0102] The product recommendation information is the description information of the recommended product. The recommended product may be a massage device or other sports equipment, or a massage service provided by a merchant. The description information of the recommended product may be a picture of the recommended product, promotional copy, purchase channel information, or the address information of the merchant for offline services.

[0103] In a possible implementation, the electronic device determines that the target user is in an abnormal posture state and generates a product recommendation interface. After the electronic device enters the advertisement playback period, the video recommendation interface is displayed on the video playback interface. Optionally, the product recommendation interface does not occupy the entire video playback interface, that is, the area of ​​the product recommendation interface is smaller than the area of ​​the video playback interface.

[0104] It should be noted that when the target user is in an abnormal posture state, first check whether the recommendation information is stored locally. If the recommendation information is stored locally, generate the corresponding video recommendation interface and / or product recommendation interface. If the recommendation information is not stored locally, the electronic device obtains the recommendation information from the server and then generates the video recommendation interface and / or product recommendation interface.

[0105] The control method of the electronic device provided in the present application outputs prompt information to prompt the target user to correct the posture when it is determined based on the depth image that the target user is in an abnormal posture state. In addition, the electronic device also outputs recommendation information to facilitate the target user to obtain video information or product information that can relieve spinal fatigue.

[0106] Combine the following Figure 5 The control method of the electronic device provided in the present application is described in detail.

[0107] See also Figure 5 , Figure 5 This is a flow chart of another control method of an electronic device provided in the present application. The method includes:

[0108] Step S501: Acquire a depth image of a target area through a depth camera.

[0109] Step S502: Acquire a standard spine model.

[0110] The standard spine model includes multiple vertebral sub-models.

[0111] The human spine is composed of multiple vertebrae (cervical vertebrae, thoracic vertebrae, lumbar vertebrae, sacrum and coccyx) connected by ligaments, joints and intervertebral discs. The upper end of the spine is connected to the skull, the lower end is connected to the hip bone, the middle is attached to the ribs, and serves as the posterior wall of the thorax, abdominal cavity and pelvic cavity.

[0112] In a possible implementation, the standard spine model includes sub-models of the cervical spine, thoracic spine, and lumbar spine. Of course, in a specific implementation, the standard spine model may also include sub-models of more vertebrae, which is not specifically limited in this application.

[0113] Considering that the target user may have multiple postures, for example, the target user may be in a sitting position, a standing position, or a lying position (also referred to as a reclining position), in a possible implementation, obtaining a standard spine model includes: determining the posture of the target user; and obtaining a standard spine model in the posture.

[0114] That is, for sitting, standing and lying postures, corresponding standard spine models are pre-built respectively. The electronic device first determines the posture of the target user, and then obtains the standard spine model corresponding to the posture of the target user.

[0115] In addition, considering that the spine lengths of different users may vary to a certain extent, in another possible implementation, obtaining a standard spine model includes: determining the posture of the target user; determining the spine length of the target user; and obtaining a standard spine model whose spine length is closest to the spine length of the target user from among multiple standard spine models under the preset posture of the target user.

[0116] That is, multiple standard spine models are pre-built for sitting posture, each with a different spine length; multiple standard spine models are pre-built for standing posture, each with a different spine length; multiple standard spine models are pre-built for lying posture, each with a different spine length. After determining the posture and spine length of the target user, the standard spine model closest to the spine length of the target user is obtained from the multiple standard spine models under the posture of the target user, so that the spine model generated by the electronic device is closer to the actual spine morphology of the target user.

[0117] Step S503: determining the position information of each vertebra of the target user according to the depth image.

[0118] The position information of the vertebrae includes transverse position information and longitudinal position information.

[0119] Step S504: adjusting the position of each vertebral sub-model in the standard spine model according to the position information of each vertebra of the target user, to obtain the spine model of the target user.

[0120] The standard spine model is composed of multiple vertebrae sub-models arranged in the order of the multiple vertebrae in the spine. After determining the position information of each vertebra of the target user according to the depth image, the position of each vertebrae sub-model in the standard spine model is adjusted according to the position information of each vertebra, specifically including: adjusting the lateral position and longitudinal position of each vertebrae sub-model. The adjusted standard spine model is the spine model of the target user.

[0121] Here, the "lateral" and "longitudinal" used in the present application are explained. The lateral direction refers to the left-right direction of the human body, and the longitudinal direction refers to the front-back direction of the human body.

[0122] The above-mentioned steps S502 to S504 are one implementation method of generating a spinal model of the target user based on the depth image.

[0123] Step S505: Analyze the spinal column model of the target user to obtain the transverse angle and the longitudinal angle of each joint in the spinal column of the target user.

[0124] The above-mentioned step S505 is an implementation method for obtaining the target user's spinal angle information based on the target user's spinal model. The connecting portion between two adjacent vertebrae in the spine is regarded as a joint. The transverse angle of a joint in the spine refers to: the angle of the transverse angle between the two vertebrae connected by the joint. The longitudinal angle of a joint in the spine refers to: the angle of the longitudinal angle between the two vertebrae connected by the joint.

[0125] Step S506: Obtain standard spine angle information.

[0126] Considering that the target user may have multiple postures, for example, the target user may be in a sitting position, a standing position, or a lying position, in a possible implementation, obtaining standard spinal angle information includes: determining the posture of the target user; and obtaining standard spinal angle information in the posture.

[0127] For example, if the target user is sitting, then the standard spinal angle information in the preset sitting position is obtained; if the target user is standing, then the standard spinal angle information in the preset standing position is obtained; if the target user is lying, then the standard spinal angle information in the preset lying position is obtained.

[0128] Optionally, the standard spine angle information includes a standard transverse angle and a standard longitudinal angle of each joint in the spine.

[0129] Step S507: Compare the transverse angle and the longitudinal angle of each joint in the target user's spine with the standard transverse angle and the standard longitudinal angle of the corresponding joint in the standard spine angle information.

[0130] Step S508: If the number of joints in the target user's spine with abnormal angles reaches a preset number, it is determined that the target user is in an abnormal posture state.

[0131] When any of the following conditions is met, it is determined that the target user's joint angle is abnormal: the difference between the lateral angle of the target user's joint and the standard lateral angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold. The preset number is 1 or a value greater than 1.

[0132] Step S509: outputting prompt information to prompt the target user to correct the posture.

[0133] In addition, the electronic device can also obtain recommendation information and output the recommendation information. For specific solutions, please refer to the description in the previous text.

[0134] In modern life, people are faced with heavy study and work burdens. This causes people to be too relaxed when they are at leisure, which puts the spine in an abnormal posture. For example, when people watch TV at home, they are often in a twisted state, and people watch TV for a long time, which will further aggravate the damage to the spine. It should be noted that "watching TV" refers to watching videos or other graphics, and users can watch videos or graphics on a variety of devices.

[0135] The control method disclosed in the present application is described below in conjunction with the specific scenario of video terminal playing video, wherein the video terminal may be a smart TV, a video box, or a computer.

[0136] The processing process of the video terminal includes the front-end processing process and the back-end processing process.

[0137] Combine the following Figure 6 The front-end processing of the video terminal is described. The front-end processing of the video terminal includes:

[0138] Step S601: Play the video.

[0139] Step S602: During the video playback process, a spine model of the target user is obtained.

[0140] Step S603: judging whether the target user is in an abnormal posture state according to the spinal column model of the target user. If it is determined that the target user is in an abnormal posture state, executing step S604, otherwise continuing the detection.

[0141] Step S604: outputting prompt information in the form of a pop-up window.

[0142] Step S605: Generate a video recommendation interface and a product recommendation interface, and display them.

[0143] During implementation, the video terminal determines the time to output the video recommendation interface and the product recommendation interface according to a preset strategy. For example, the video terminal outputs the video recommendation interface after completing the playback of the current video; the video terminal outputs the product recommendation interface after entering the advertising time.

[0144] Step S606: Determine whether the target user has adjusted the posture. If the target user has adjusted the posture, continue the detection. If the target user has not adjusted the posture, execute step S607.

[0145] Step S607: After a preset time, stop outputting prompt information in the form of a pop-up window and continue testing.

[0146] The "continue detection" mentioned above means: obtaining the spinal model of the target user from the back end, and determining whether the target user is in an abnormal posture state based on the spinal model of the target user, that is, executing step S602 and subsequent steps again.

[0147] Combine the following Figure 7 The backend processing of the video terminal is described. The backend processing of the video terminal includes:

[0148] Step S701: During video playback, a depth camera is called to perform depth detection on a target area.

[0149] Step S702: Generate a spinal model of the target user based on the depth image.

[0150] Step S703: Determine whether the target user is in an abnormal posture state according to the spinal column model of the target user. If it is determined that the target user is in an abnormal posture state, execute step S704, otherwise continue to detect.

[0151] Step S704: record the current data.

[0152] Step S705: Generate a customized dialog prompt box and continue detection.

[0153] Step S706: Obtain video recommendation information and product recommendation information.

[0154] Step S707: Encapsulate the video recommendation information and product recommendation information, and send the encapsulated data to the front end.

[0155] In one possible implementation, the technical solution provided in the present application is implemented according to the MVVM (Model-View-ViewModel) architecture, including a business logic layer, a data layer, and a presentation layer.

[0156] The function of the display layer is to output prompt information and recommendation interface, wherein the recommendation interface includes a video recommendation interface and / or a product recommendation interface.

[0157] The function of the business logic layer is: during the video playback process, send a request to the data layer to obtain the target user's spine model, receive the target user's spine model fed back by the data layer, and determine whether the target user is in an abnormal posture state based on the target user's spine model. If it is determined that the target user is in an abnormal posture state, the business logic layer sends a request to the data layer to obtain recommended information, receives the recommended information fed back by the data layer, and sends prompt information and recommended information to the display layer so that the display layer outputs the prompt information and the corresponding recommendation interface.

[0158] The functions of the data layer are: responding to the request sent by the business logic layer to obtain the target user's spine model, calling the depth camera to perform depth detection on the target area, generating the target user's spine model based on the obtained depth image, and sending the target user's spine model to the business logic layer. Responding to the request sent by the business logic layer to obtain recommended information, obtaining the recommended information, and sending it to the business logic layer.

[0159] Combine the following Figure 8 and Fig. 9 The processing of the data layer of the video terminal is described.

[0160] like Figure 8 As shown in FIG. 1 , the data layer processing process of the video terminal includes:

[0161] Step S801: receiving a first request sent by the business logic layer, wherein the first request indicates obtaining a spinal column model of a target user.

[0162] Step S802: In response to the first request, the depth camera is called to perform depth detection.

[0163] Step S803: Determine whether the depth information of the target user is obtained. If the depth information of the target user is obtained, execute step S804, otherwise execute step S807.

[0164] Step S804: Generate a spinal model of the target user based on the depth image.

[0165] Step S805: Determine whether to generate a spinal column model of the target user. If the spinal column model of the target user is generated, execute step S806, otherwise execute step S807.

[0166] Step S806: Encapsulate the target user's spine model and send the encapsulated data to the business logic layer.

[0167] Step S807: Send a failure prompt to the business logic layer.

[0168] like Fig. 9 As shown in FIG. 1 , the data layer processing process of the video terminal includes:

[0169] Step S901: receiving a second request sent by the business logic layer, wherein the second request indicates obtaining recommendation information.

[0170] Step S902: Determine whether there is a cache of recommendation information. If there is no cache of recommendation information, execute step S903; if there is a cache of recommendation information, execute step S906.

[0171] Step S903: Send a third request to the server, wherein the third request indicates obtaining recommendation information.

[0172] Step S904: Determine whether the recommendation information is received. If the recommendation information is received, execute step S905; if the recommendation information is not received, execute step S907.

[0173] Step S905: store the received recommendation information, and execute step S906.

[0174] Step S906: Send a notification of reading recommendation information to the business logic layer.

[0175] Step S907: Send a failure prompt to the business logic layer.

[0176] On the other hand, the present application also provides a control device for an electronic device.

[0177] The control device provided by the present application is introduced below. The control device described below can be considered as a program module required for an electronic device to implement the control method provided by an embodiment of the present application. The description of the control device below can be cross-referenced with the description of the control method above.

[0178] See also Fig.10 , Fig.10 A schematic diagram of the structure of a control device of an electronic device provided in the present application. The control device comprises: a depth image acquisition unit 1001, a spine model generation unit 1002, a spine angle information acquisition unit 1003, a user posture analysis unit 1004 and a prompt unit 1005.

[0179] in:

[0180] The depth image acquisition unit 1001 is used to acquire a depth image of a target area through a depth camera. The target area is the area where the target user is located.

[0181] The spine model generating unit 1002 is used to generate a spine model of the target user based on the depth image.

[0182] The spine angle information acquisition unit 1003 is used to obtain the spine angle information of the target user based on the spine model of the target user.

[0183] The user posture analysis unit 1004 is used to obtain standard spine angle information, and compare the target user's spine angle information with the standard spine angle information to determine whether the target user is in an abnormal posture state.

[0184] The prompting unit 1005 is used to output prompting information to prompt the target user to correct the posture when it is determined that the target user is in an abnormal posture state.

[0185] In a possible implementation, based on the above control device, an information push unit is further provided. The information push unit is used to obtain recommendation information and output the recommendation information when it is determined that the target user is in an abnormal posture state.

[0186] In a possible implementation, the information push unit includes: a video recommendation information acquisition subunit and a video information push subunit. The video recommendation information acquisition subunit is used to: acquire video recommendation information. The video information push subunit is used to: generate a video recommendation interface, the video recommendation interface includes the video recommendation information acquired by the video recommendation information acquisition subunit, and display the video recommendation interface.

[0187] In a possible implementation, the information push unit includes: a product recommendation information acquisition subunit and a product information push subunit. The product recommendation information acquisition subunit is used to: acquire product recommendation information. The product information push subunit is used to: generate a product recommendation interface, the product recommendation interface includes the product recommendation information acquired by the product recommendation information acquisition subunit, and display the product recommendation interface.

[0188] In a possible implementation, the spine model generating unit 1002 includes a spine model acquiring subunit, a position information determining subunit, and a model adjusting subunit.

[0189] in:

[0190] The spine model acquisition subunit is used to acquire a standard spine model, wherein the standard spine model includes a plurality of vertebral submodels.

[0191] The position information determination subunit is used to determine the position information of each vertebra of the target user according to the depth image. The position information of the vertebra includes transverse position information and longitudinal position information;

[0192] The model adjustment subunit is used to adjust the position of each vertebral submodel in the standard spine model according to the position information of each vertebra of the target user, so as to obtain the spine model of the target user.

[0193] In a possible implementation, the spinal model acquisition subunit is specifically used to: determine the posture of the target user; and acquire a standard spinal model under the posture.

[0194] In another possible implementation, the spinal model acquisition subunit is specifically used to: determine the posture of the target user; determine the spinal length of the target user; and obtain a standard spinal model whose spinal length is closest to the spinal length of the target user from multiple standard spinal models under a preset target user posture.

[0195] In a possible implementation, the standard spine angle information includes a standard transverse angle and a standard longitudinal angle of each joint in the spine.

[0196] Correspondingly, the spine angle information acquisition unit 1003 is specifically used to: analyze the spine model of the target user to obtain the transverse angle and the longitudinal angle of each joint in the spine of the target user.

[0197] The user posture analysis unit 1004 compares the target user's spinal angle information with the standard spinal angle information to determine whether the target user is in an abnormal posture state. Specifically, it is used to: compare the transverse angle and the longitudinal angle of each joint in the target user's spine with the standard transverse angle and the standard longitudinal angle of the corresponding joint in the standard spinal angle information; if the number of joints with abnormal angles in the target user's spine reaches a preset number, it is determined that the target user is in an abnormal posture state.

[0198] Among them, when any one of the following conditions is met, it is determined that the target user's joint has an abnormal angle: the difference between the lateral angle of the target user's joint and the standard lateral angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold.

[0199] Optionally, the user posture analysis unit 1004 is specifically used to: determine the posture of the target user; and obtain the standard spine angle information under the posture.

[0200] On the other hand, the present application also provides an electronic device.

[0201] See also Fig.11 , Fig.11 The hardware structure diagram of an electronic device provided in this application. The electronic device may include a processor 1101 and a memory 1102.

[0202] Optionally, the terminal may further include: a communication interface 1103 , an input unit 1104 , a display 1105 and a communication bus 1106 . The processor 1101 , the memory 1102 , the communication interface 1103 , the input unit 1104 , and the display 1105 all communicate with each other via the communication bus 1106 .

[0203] In the embodiment of the present application, the processor 1101 may be a central processing unit (CPU), a specific application integrated circuit, a digital signal processor, a readily available programmable gate array or other programmable logic device, etc.

[0204] The processor 1101 may call a program stored in the memory 1102 .

[0205] The memory 1102 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory at least stores programs for implementing the following functions:

[0206] A depth image of a target area is acquired through a depth camera, where the target area is where a target user is located; a spinal model of the target user is generated based on the depth image; spinal angle information of the target user is acquired based on the spinal model; standard spinal angle information is acquired, and the spinal angle information of the target user is compared with the standard spinal angle information to determine whether the target user is in an abnormal posture state; if it is determined that the target user is in an abnormal posture state, a prompt message is output.

[0207] In one possible implementation, the memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, the programs mentioned above, etc.; the data storage area may store data created during the use of the computer device, etc.

[0208] In addition, the memory 1102 may include a high-speed random access memory and may also include a non-volatile memory.

[0209] The communication interface 1103 may be an interface of a communication module.

[0210] The input unit 1104 may include a collection device, such as a depth camera.

[0211] The display 1105 includes a display panel, such as a touch display panel.

[0212] certainly, Fig.11 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include Fig.11 More or fewer components as shown, or some components may be combined. For example, the electronic device does not include a depth camera, but is connected to the depth camera via the communication interface 1103.

[0213] On the other hand, the present application also provides a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, it is used to implement the control method described in any of the above embodiments.

[0214] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0215] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device, electronic device and storage medium provided in the embodiment, since they correspond to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0216] The above description of the embodiments provided enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features provided herein.

Claims

1. A method for controlling an electronic device, It is characterized in that The electronic device includes a depth camera or is connected to a depth camera, and the control method includes: Acquire a depth image of a target area through the depth camera, where the target area is an area where a target user is located; determining a posture of the target user; determining a spine length of the target user; Acquire a standard spine model whose spine length is closest to the spine length of the target user from among a plurality of standard spine models in the preset posture, wherein the standard spine model includes a plurality of vertebral sub-models; Determine the position information of each vertebra of the target user according to the depth image, wherein the position information of the vertebra includes transverse position information and longitudinal position information; Adjusting the lateral position and the longitudinal position of the sub-model of each vertebra in the standard spine model according to the position information of each vertebra of the target user to obtain the spine model of the target user; Analyze the spinal column model of the target user to obtain the transverse angle and the longitudinal angle of each joint in the spinal column of the target user, wherein the transverse angle of the joint refers to the angle of the two vertebrae connected by the joint in the transverse direction, and the longitudinal angle of the joint refers to the angle of the two vertebrae connected by the joint in the longitudinal direction; Determine the target user’s posture; obtaining standard spinal angle information in the posture; Comparing the transverse angle and the longitudinal angle of each joint in the spine of the target user with the standard transverse angle and the standard longitudinal angle of the corresponding joint in the standard spine angle information; If the number of joints with abnormal angles in the spine of the target user reaches a preset number, it is determined that the target user is in an abnormal posture state, wherein the target user's joints are determined to have abnormal angles when any one of the following conditions is met: the difference between the lateral angle of the target user's joint and the standard lateral angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold; When it is determined that the target user is in an abnormal posture state, outputting prompt information to prompt the target user to correct the posture; When it is determined that the target user is in an abnormal posture state, obtaining recommendation information, wherein the recommendation information is video recommendation information; Outputting the recommendation information includes: generating a video recommendation interface, the video recommendation interface including the video recommendation information, displaying the video recommendation interface, the video recommendation interface including a focus recommendation position and a non-focus recommendation position, wherein the electronic device automatically plays the video indicated by the video recommendation information located at the focus recommendation position in a small window mode, and when the electronic device receives an operation to select a video to be played in a small window mode, it switches to a large screen mode or a full screen mode to play the video.

2. The control method according to claim 1, It is characterized in that The recommendation information includes product recommendation information; The outputting the recommendation information includes: Generating a product recommendation interface, wherein the product recommendation interface includes the product recommendation information; The product recommendation interface is displayed.

3. A control device for an electronic device, It is characterized in that The electronic device includes a depth camera or is connected to a depth camera, and the control device includes: A depth image acquisition unit, configured to acquire a depth image of a target area through the depth camera, wherein the target area is an area where a target user is located; A spine model generating unit, configured to generate a spine model of the target user based on the depth image; The spine angle information acquisition unit is used to determine the posture of the target user; obtain standard spine angle information under the posture; obtain the transverse angle and longitudinal angle of each joint in the spine of the target user, wherein the transverse angle of the joint refers to the angle of the two vertebrae connected by the joint in the transverse direction, and the longitudinal angle of the joint refers to the angle of the two vertebrae connected by the joint in the longitudinal direction; A user posture analysis unit is used to obtain standard spine angle information, and compare the transverse angle and longitudinal angle of each joint in the spine of the target user with the standard transverse angle and standard longitudinal angle of the corresponding joint in the standard spine angle information; if the number of joints with abnormal angles in the spine of the target user reaches a preset number, it is determined that the target user is in an abnormal posture state, wherein the target user's joint angle is determined to be abnormal when any one of the following conditions is met: the difference between the transverse angle of the target user's joint and the standard transverse angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold; a prompting unit, configured to output prompting information to prompt the target user to correct the posture when determining that the target user is in an abnormal posture state; An information push unit, configured to obtain recommendation information when it is determined that the target user is in an abnormal posture state, wherein the recommendation information is video recommendation information; and output the recommendation information; Wherein, the information push unit includes a video recommendation information acquisition subunit and a video information push subunit; The video recommendation information acquisition subunit is used to acquire recommendation information; The video information push subunit outputs the recommendation information, including: generating a video recommendation interface, the video recommendation interface including the video recommendation information, displaying the video recommendation interface, the video recommendation interface including a focus recommendation position and a non-focus recommendation position, wherein the electronic device automatically plays the video indicated by the video recommendation information located at the focus recommendation position in a small window mode, and when the electronic device receives an operation of selecting a video to be played in a small window mode, switches to a large screen mode or a full screen mode to play the video; Wherein, the spinal column model generation unit includes a spinal column model acquisition subunit, a position information determination subunit and a model adjustment subunit; The spinal model acquisition subunit is used to determine the posture of the target user; determine the spinal length of the target user; and acquire a standard spinal model whose spinal length is closest to the spinal length of the target user from among a plurality of standard spinal models under the preset posture, wherein the standard spinal model includes a plurality of vertebral submodels; The position information determination subunit is used to determine the position information of each vertebra of the target user according to the depth image, wherein the position information of the vertebra includes transverse position information and longitudinal position information; The model adjustment subunit is used to adjust the lateral position and longitudinal position of the submodel of each vertebra in the standard spine model according to the position information of each vertebra of the target user, so as to obtain the spine model of the target user.

4. The control device according to claim 3, It is characterized in that The recommendation information includes product recommendation information; The information push unit includes: a product recommendation information acquisition subunit and a product information push subunit; The product recommendation information acquisition subunit is used to acquire product recommendation information; The product information push subunit is used to generate a product recommendation interface, which includes the product recommendation information; and display the product recommendation interface.

5. An electronic device, It is characterized in that including a processor and a memory; The processor is used to execute the program stored in the memory; The memory is used to store a program, and the program is at least used to: Acquire a depth image of a target area through a depth camera, wherein the target area is an area where a target user is located; determining a posture of the target user; determining a spine length of the target user; Acquire a standard spine model whose spine length is closest to the spine length of the target user from among a plurality of standard spine models in the preset posture, wherein the standard spine model includes a plurality of vertebral sub-models; Determine the position information of each vertebra of the target user according to the depth image, wherein the position information of the vertebra includes transverse position information and longitudinal position information; Adjusting the lateral position and the longitudinal position of the sub-model of each vertebra in the standard spine model according to the position information of each vertebra of the target user to obtain the spine model of the target user; Analyze the spinal column model of the target user to obtain the transverse angle and the longitudinal angle of each joint in the spinal column of the target user, wherein the transverse angle of the joint refers to the angle of the two vertebrae connected by the joint in the transverse direction, and the longitudinal angle of the joint refers to the angle of the two vertebrae connected by the joint in the longitudinal direction; Determine the target user’s posture; obtaining standard spinal angle information in the posture; Comparing the transverse angle and the longitudinal angle of each joint in the spine of the target user with the standard transverse angle and the standard longitudinal angle of the corresponding joint in the standard spine angle information; If the number of joints with abnormal angles in the spine of the target user reaches a preset number, it is determined that the target user is in an abnormal posture state, wherein the target user's joints are determined to have abnormal angles when any one of the following conditions is met: the difference between the lateral angle of the target user's joint and the standard lateral angle of the joint in the standard spine angle information reaches a corresponding threshold; the difference between the longitudinal angle of the target user's joint and the standard longitudinal angle of the joint in the standard spine angle information reaches a corresponding threshold; When it is determined that the target user is in an abnormal posture state, outputting prompt information to prompt the target user to correct the posture; When it is determined that the target user is in an abnormal posture state, obtaining recommendation information, wherein the recommendation information is video recommendation information; Outputting the recommendation information includes: generating a video recommendation interface, the video recommendation interface including the video recommendation information, displaying the video recommendation interface, the video recommendation interface including a focus recommendation position and a non-focus recommendation position, wherein the electronic device automatically plays the video indicated by the video recommendation information located at the focus recommendation position in a small window mode, and when the electronic device receives an operation to select a video to be played in a small window mode, it switches to a large screen mode or a full screen mode to play the video.

6. A storage medium, It is characterized in that The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the control method as described in claim 1 or 2 is implemented.