A posture detection method, device, electronic device and storage medium

Through infrared image processing, the center point and posture information of the target object in the environment are detected, which solves the problem of complexity and low accuracy of posture detection at night, and achieves efficient posture detection without wearing equipment.

CN112733799BActive Publication Date: 2024-09-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110090440.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2024-09-06
Estimated Expiration
2041-01-22

AI Technical Summary

Technical Problem

Existing posture detection methods have complex data processing processes and require wearing recording equipment when the light is dark at night, resulting in cumbersome detection processes and low accuracy.

Method used

By collecting infrared images of the environment, the center point set of the target object is detected, the location information of its key parts is determined, and the posture information is obtained through segmentation and matching based on the heat information, realizing night posture detection without wearing equipment.

Benefits of technology

It reduces the complexity of data processing, enables accurate posture detection without wearing equipment at night, and simplifies the detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112733799B
    Figure CN112733799B
Patent Text Reader

Abstract

The present application discloses a posture detection method, device, electronic device and storage medium. The method includes: collecting an ambient infrared image of the current environment; detecting the ambient infrared image to obtain a set of center points corresponding to the target object in the ambient infrared image; determining the position information of the key parts of the target object according to the set of center points; and determining the posture information of the target object according to the position information. The technical solution disclosed in the present application, for example, obtains an ambient infrared image by infrared detection, which can realize posture detection at night without the target object wearing a detection device. At the same time, the posture information of the target object is determined according to the set of center points corresponding to the target object, thereby reducing the complexity of the data processing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of society, high-quality sleep at night has become increasingly important. When sleeping at night, a good sleeping posture can improve sleep comfort and thus improve sleep quality at night. Therefore, the sleeping posture of users at night plays a key role in sleep quality analysis. How to correctly detect the sleeping posture of users at night has also become the primary problem to be solved.

[0003] In the prior art, the main problem of human posture detection methods is that the data processing process is complicated, and when performing detection at night under dim light, the user needs to wear relevant recording equipment, which makes the detection process cumbersome and the accuracy of the detection results low. Summary of the invention

[0004] In order to solve the technical problems that the human body posture detection method mainly has the problem of complex data processing process, and when performing detection in dim light at night, the user needs to wear relevant recording equipment, which makes the detection process cumbersome and the accuracy of the detection result low, the present application provides a posture detection method, device, electronic device and storage medium.

[0005] According to one aspect of an embodiment of the present application, a posture detection method is provided, characterized in that it includes:

[0006] Collect infrared images of the current environment;

[0007] Detecting the environmental infrared image to obtain a set of center points corresponding to the target object in the environmental infrared image;

[0008] Determine the position information of the key parts of the target object according to the set of central points;

[0009] The posture information of the target object is determined according to the position information.

[0010] Furthermore, the detecting the ambient infrared image to obtain a set of center points corresponding to the target object in the ambient infrared image includes:

[0011] Acquire thermal information corresponding to the environmental infrared image;

[0012] Segmenting the environmental infrared image according to the thermal information to obtain a plurality of sub-images;

[0013] Determine a center point of the sub-image and a first heat value corresponding to the center point;

[0014] A set of center points of the target object is determined according to the first heat value.

[0015] Further, determining the center point set of the target object according to the first heat value includes:

[0016] Determine at least two pixel points in the sub-image whose distance from the center point is less than a preset distance, and a second heat value corresponding to each of the pixel points;

[0017] When the first heat value of the center point is greater than the second heat value of each of the pixel points, confirming the center point as a valid center point;

[0018] Extracting feature information of the effective center point;

[0019] When the feature information matches the preset feature information, the valid center point is added to the center point set, and the preset feature information is the feature of the key part of the target object.

[0020] Further, determining the position information of the key parts of the target object according to the set of central points includes:

[0021] Determine an object center point of the target object according to the set of center points;

[0022] Predicting a candidate region of a key part of the target object according to the center point of the object, and determining the center point of the candidate region;

[0023] Matching the center point of the candidate area with the valid center point corresponding to each sub-image in the center point set to obtain a target center point;

[0024] The position information of the key part is obtained according to the target center point.

[0025] Furthermore, the method further comprises:

[0026] determining, according to the posture information, an adjustment parameter corresponding to an adjustment device, wherein the adjustment device is used to adjust the posture of the target object;

[0027] The adjusting device is controlled to adjust the target object according to the adjusting parameters.

[0028] Furthermore, the method further comprises:

[0029] Obtaining the correspondence between preset posture information and operation mode;

[0030] Determining a target operating mode corresponding to the posture information according to the corresponding relationship;

[0031] Control the smart home device to operate according to the target operation mode.

[0032] Furthermore, the method further comprises:

[0033] Get historical posture information within a preset time;

[0034] Generate a posture detection report corresponding to the target object according to the historical posture information;

[0035] Analyzing the posture detection report to determine the posture preference of the target object;

[0036] Acquire the degree of influence of the posture preference on the health of the target object;

[0037] When the health impact level meets a preset health impact level, a reminder operation is performed on the target object.

[0038] According to another aspect of the embodiment of the present application, there is also provided a posture detection device, including:

[0039] An acquisition module is used to collect infrared images of the current environment;

[0040] A detection module, used to detect the environmental infrared image and obtain a set of center points corresponding to the target object in the environmental infrared image;

[0041] A determination module, used to determine the position information of the key parts of the target object according to the set of central points;

[0042] A processing module is used to determine the posture information of the target object according to the position information.

[0043] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.

[0044] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.

[0045] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.

[0046] The above-mentioned technical solution provided by the embodiments of the present application has the following advantages over the prior art: the technical solution disclosed in the present application, for example, obtains an infrared image of the environment through infrared detection, which can realize posture detection at night without the need for the target object to wear a detection device. At the same time, the posture information of the target object is determined based on the set of center points corresponding to the target object, thereby reducing the complexity of the data processing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0048] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0049] Figure 1 A flowchart of a posture detection method provided in an embodiment of the present application;

[0050] Figure 2 A flowchart of a posture detection method provided by another embodiment of the present application;

[0051] Figure 3 A flowchart of a posture detection method provided by another embodiment of the present application;

[0052] Figure 4 A flowchart of a posture detection method provided by another embodiment of the present application;

[0053] Figure 5 A block diagram of a posture detection device provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0056] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar 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", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0057] The embodiments of the present application provide a posture detection method, device, electronic device and storage medium. The method provided by the embodiments of the present invention can be applied to any required electronic device, for example, it can be an electronic device such as a server, a terminal, etc., which is not specifically limited here. For the convenience of description, it is referred to as an electronic device in the following.

[0058] According to one aspect of the embodiments of the present application, a method embodiment of a posture detection method is provided. Figure 1 A flowchart of a posture detection method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:

[0059] Step S11, collecting an infrared image of the current environment;

[0060] In the embodiment of the present application, the current indoor environment is collected by an infrared thermal imaging system installed indoors to obtain an environmental infrared image. It can be understood that the environmental infrared image is thermal radiation imaging, which was born with the emergence of infrared imaging technology.

[0061] Infrared imaging technology is a thermal radiation information detection technology. It is based on the infrared radiation difference of the object. The infrared thermal imaging system can transform the infrared radiation distribution naturally emitted by the surface of the object into a visible image. Since different objects or different parts of the same object usually have different thermal radiation characteristics, such as temperature difference, emissivity, etc., after thermal infrared imaging, the objects in the thermal infrared image are distinguished by their differences in thermal radiation.

[0062] Step S12, detecting the ambient infrared image to obtain a set of center points corresponding to the target object in the ambient infrared image;

[0063] In the embodiment of the present application, detecting an ambient infrared image and obtaining a set of center points corresponding to a target object in the ambient infrared image includes the following steps A1-A4:

[0064] Step A1, obtaining thermal information corresponding to the environmental infrared image;

[0065] In an embodiment of the present application, thermal information can be obtained by processing the ambient infrared image. The thermal information is the thermal area in the ambient infrared image and the thermal values ​​of the pixels in the thermal area. The thermal area includes a target object, which may be a user.

[0066] Step A2, segmenting the environmental infrared image according to the thermal information to obtain a plurality of sub-images;

[0067] In the embodiment of the present application, the ambient infrared image can be segmented according to the heat area to obtain multiple sub-images. For example, when the ambient infrared image includes a target object, the ambient infrared image is segmented according to the heat area to obtain multiple sub-images, wherein the multiple sub-images can be a head image, a shoulder image, an abdomen image, a leg image, etc. of the target object.

[0068] Step A3, determining the center point of the sub-image and the first heat value corresponding to the center point;

[0069] In an embodiment of the present application, the sub-image can be input into a pre-trained neural network model, the center point of the sub-image is input by the neural network model, and the first heat value of the center point is determined in combination with the previously obtained heat information. The neural network model can be a Center Net network model.

[0070] Step A4: determine the center point set of the target object according to the first heat value.

[0071] In the embodiment of the present application, step A4, determining the center point set of the target object according to the first heat value, includes the following steps:

[0072] Step A41, determining at least two pixels in the sub-image whose distance from the center point is less than a preset distance, and a second heat value corresponding to each pixel;

[0073] In an embodiment of the present application, the center point of the sub-image is taken as the center of the circle and the preset distance is taken as the radius, the range in which the center point is located is determined, at least two pixel points are randomly selected in the range, and the second heat value corresponding to each pixel point is determined.

[0074] Step A42, when the first heat value of the center point is greater than the second heat value of each pixel point, confirming the center point as a valid center point;

[0075] In an embodiment of the present application, when the first heat value of the center point is greater than the second heat value of each selected pixel point, the center point is confirmed to be valid and is used as the valid center point.

[0076] Step A43, extracting feature information of the effective center point;

[0077] In the embodiment of the present application, the characteristic information of the effective center point may be: heat value, micro-Doppler shift, drive bandwidth, center of mass, etc.

[0078] Step A44, when the feature information matches the preset feature information, the valid center point is added to the center point set, and the preset feature information is the feature of the target object.

[0079] In the embodiment of the present application, since there are multiple sub-images, the feature information of the center point of each sub-image is matched with the preset feature information, and the valid center points whose feature information matches the preset feature information are combined to obtain a center point set, wherein the preset feature information is the feature information of the target object.

[0080] In the embodiment of the present application, feature information of the center point is extracted to determine whether the image where the center point is located represents a key part of the target object.

[0081] Step S13, determining the position information of the key parts of the target object according to the center point set;

[0082] In the embodiment of the present application, determining the position information of the key parts of the target object according to the center point set includes the following steps B1-B4:

[0083] Step B1, determining the object center point of the target object according to the center point set;

[0084] Step B2, predicting candidate regions of key parts of the target object according to the center point of the object, and determining the center point of the candidate region;

[0085] Step B3, matching the center point of the candidate area with the valid center point corresponding to each sub-image in the center point set to obtain the target center point;

[0086] Step B4, obtaining the position information of the key parts according to the target center point.

[0087] In an embodiment of the present application, an ambient infrared image is first determined, and then the ambient infrared image is preprocessed by median filtering to remove excess noise in the ambient infrared image; the processed infrared image is then input into a Center Net network model, and the object center point of the target object is marked by the network model; then, based on the marked object center point, the candidate area of ​​the human joint in this state is predicted, and the same method is used to obtain the center point of the candidate area, and the center point of the candidate area is matched with the valid center point corresponding to each sub-image in the center point set, and the successfully matched center point is used as the target center point.

[0088] As an example, taking the user's legs as an example, when the center points include the thigh image center point, the knee joint image center point, the calf image center point and the ankle image center point, each center point can be feature matched with the key parts, and the successfully matched center points obtained include: the thigh image center point, the knee joint image center point and the calf image center point, and then the position information of the user's legs is determined based on the thigh image center point, the knee joint image center point and the calf image center point.

[0089] Step S14: determining the posture information of the target object according to the position information.

[0090] In the embodiment of the present application, the posture information of the target object is determined according to the position information of each key part. For example, when the user is in a sleeping state, the posture information of the user is determined according to the position information of each key part, such as lying flat, lying on one's side or curled up.

[0091] The technical solutions disclosed in the present application, for example, obtain environmental infrared images through infrared detection, which can realize posture detection at night without the target object wearing detection equipment. At the same time, the posture information of the target object is determined based on the set of center points corresponding to the target object, thereby reducing the complexity of the data processing process.

[0092] Figure 2 A flowchart of a posture detection method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method may include the following steps:

[0093] Step S21, determining adjustment parameters corresponding to an adjustment device according to the posture information, where the adjustment device is used to adjust the posture of the target object;

[0094] In an embodiment of the present application, posture information is detected to determine whether the target object is in a sleeping state. When the target object is in a sleeping state, it is determined whether the posture of the target object needs to be adjusted. When the posture of the target object needs to be adjusted, adjustment parameters corresponding to the adjustment device are determined according to the posture information, where the adjustment device can be a pillow, a mattress, etc.

[0095] Wherein, determining the adjustment parameters corresponding to the adjustment device according to the posture information includes: obtaining a correspondence table between the posture information and the adjustment parameters, and determining the adjustment parameters of the adjustment device corresponding to the posture information according to the correspondence table.

[0096] As an example: according to the posture information, it is determined that the head of the target object needs to be raised. In this case, the pillow needs to be inflated to adjust the height of the pillow.

[0097] Step S22: controlling the adjustment device to adjust the posture of the target object according to the adjustment parameters.

[0098] In the embodiment of the present application, after the adjustment parameters are determined, an adjustment instruction is generated, and the adjustment instruction is sent to the adjustment device, and the adjustment device adjusts the posture of the target object according to the adjustment parameters.

[0099] In an embodiment of the present application, when the user is in a sleeping state, adjustments are made based on the user's posture information, thereby helping the user maintain a healthy sleeping posture.

[0100] Figure 3 A flowchart of a posture detection method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method may include the following steps:

[0101] Step S31, obtaining the correspondence between the preset posture information and the operation mode;

[0102] In the embodiment of the present application, the correspondence between the preset posture information and the operation mode can be obtained based on the user's behavior information, or can be set by the user himself.

[0103] As an example, when the user is sleeping and the sleeping posture is curled up, it is monitored whether the user has any behavior of adjusting the smart home device after waking up. When the user has any behavior of adjusting the smart home device, the operation mode of the smart home device is recorded at this time, and the operation mode and the sleeping posture are recorded at the same time, so as to obtain a corresponding relationship. Among them, the smart home device can be an air conditioner, an air purifier, etc.

[0104] As an example, when the user is in an active state and in a cross-legged posture, it is detected whether the user has adjusted the smart home device. When the user has adjusted the smart home device, the operation mode of the smart home device is recorded, and the operation mode and the sleeping posture are recorded at the same time, so as to obtain a corresponding relationship. The smart home device can be an air conditioner, an air purifier, etc.

[0105] Step S32, determining the target operation mode corresponding to the posture information according to the corresponding relationship;

[0106] In the embodiment of the present application, the corresponding relationship is queried, and when an operating mode corresponding to the posture information exists in the corresponding relationship, the operating mode corresponding to the posture information is confirmed as the target operating mode.

[0107] Step S33, controlling the smart home device to operate according to the target operation mode.

[0108] In the embodiment of the present application, by timely controlling the smart home devices according to the user's posture information, a better environment can be provided for the user and the user's comfort can be increased.

[0109] Figure 4A flowchart of a posture detection method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method may include the following steps:

[0110] Step S41, obtaining historical posture information within a preset time;

[0111] In the embodiment of the present application, the historical posture information within the preset time can be a time period set by the user, or can be a fixed time length set by the user, and the historical posture information within the time length is counted every time the time length passes.

[0112] As an example, if the current time is 7:00 and the fixed time length set by the user is 8 hours, then the preset time is 23:00-7:00.

[0113] Step S42, generating a posture detection report corresponding to the target object according to the historical posture information;

[0114] In the embodiment of the present application, the posture detection report includes: posture information of the target object within a preset time, and the duration corresponding to each posture information.

[0115] As an example, the posture detection report includes: 23:00-1:00—lying flat posture, 1:00-4:00—lying sideways posture, 4:00-7:00—lying sideways posture.

[0116] Step S43, analyzing the posture detection report to determine the posture preference of the target object;

[0117] In an embodiment of the present application, the posture detection report is analyzed by counting the duration corresponding to each posture of the target object, and taking the posture whose duration meets the preset conditions as the posture preference, wherein the duration meeting the preset conditions can be: the duration is greater than the preset duration, or the duration corresponding to each posture is ranked, and the duration with the highest ranking is regarded as meeting the preset conditions.

[0118] Step S44, obtaining the degree of influence of the posture preference on the health of the target object;

[0119] In the embodiment of the present application, the influence of posture preference is first queried. For example, if the user's posture preference when sleeping is side-lying, the influence corresponding to the side-lying posture is determined to include: "First, it will have a great impact on the gastrointestinal tract, because side-lying sleeping often causes bloating and intestinal organs due to gravity. In addition, side-lying sleeping often compresses certain nerves and blood vessels, causing symptoms such as general fatigue and pain."

[0120] Then analyze the above impacts to determine the impact level of the posture, and determine the impact degree based on the impact level. Taking the above impact as an example, the impact levels include: gastrointestinal impact and neurovascular impact, so the health impact level is level 2.

[0121] Step S45: When the health impact level meets the preset health impact level, a reminder operation is performed on the target object.

[0122] In the embodiment of the present application, the preset health impact level can be set by the user. Continuing with the above embodiment, when the preset health impact level is level one, the health impact level meets the preset health impact level, so that the reminder operation is performed, and the reminder operation can be to generate a health impact report or send a voice reminder to the user.

[0123] Figure 5 This is a block diagram of a posture detection device provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 5 As shown, the device comprises:

[0124] The acquisition module 51 is used to acquire an infrared image of the current environment;

[0125] A detection module 52 is used to detect the environmental infrared image and obtain a set of center points corresponding to the target object in the environmental infrared image;

[0126] A determination module 53, configured to determine the position information of the key parts of the target object according to the set of central points;

[0127] The processing module 54 is used to determine the posture information of the target object according to the position information.

[0128] In the embodiment of the present application, the detection module 52 includes:

[0129] A processing submodule is used to obtain thermal information corresponding to the environmental infrared image;

[0130] The segmentation submodule is used to segment the environmental infrared image according to the thermal information to obtain multiple sub-images;

[0131] An acquisition submodule is used to determine the center point of the sub-image and a first heat value corresponding to the center point;

[0132] The determination submodule is used to determine the center point set of the target object according to the first heat value.

[0133] In an embodiment of the present application, a determination submodule is used to determine at least two pixel points in the sub-image whose distance from the center point is less than a preset distance, and a second heat value corresponding to each of the pixel points; when the first heat value of the center point is greater than the second heat value of each of the pixel points, the center point is confirmed as a valid center point; feature information of the valid center point is extracted; when the feature information matches the preset feature information, the valid center point is added to the center point set, and the preset feature information is the feature of the key part of the target object.

[0134] In an embodiment of the present application, a determination module 53 is used to determine the object center point of the target object based on the center point set; predict the candidate area of ​​the key part of the target object based on the object center point, and determine the center point of the candidate area; match the center point of the candidate area with the valid center point corresponding to each sub-image in the center point set to obtain the target center point; and obtain the position information of the key part based on the target center point.

[0135] In an embodiment of the present application, the device also includes: an adjustment module, which is used to determine adjustment parameters corresponding to an adjustment device according to the posture information, and the adjustment device is used to adjust the posture of the target object; and controls the adjustment device to adjust the target object according to the adjustment parameters.

[0136] In an embodiment of the present application, the device also includes: a control module, which obtains the correspondence between preset posture information and the operating mode; determines the target operating mode corresponding to the posture information according to the corresponding relationship; and controls the smart home device to operate according to the target operating mode.

[0137] In an embodiment of the present application, the device also includes: a prompt module, which is used to obtain historical posture information within a preset time; generate a posture detection report corresponding to the target object based on the historical posture information; analyze the posture detection report to determine the posture preference of the target object; obtain the degree of health impact of the posture preference on the target object; when the health impact degree meets the preset health impact degree, perform a reminder operation on the target object.

[0138] The present application also provides an electronic device, such as Figure 6 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .

[0139] Memory 1503, used for storing computer programs;

[0140] The processor 1501 is used to implement the steps of the above embodiment when executing the computer program stored in the memory 1503.

[0141] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0142] The communication interface is used for communication between the above terminal and other devices.

[0143] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0144] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0145] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the posture detection method described in any one of the above embodiments.

[0146] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the posture detection methods described in the above embodiments.

[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk), etc.

[0148] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

[0149] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, 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 applied for herein.

Claims

1. A posture detection method, characterized in that: include: Collect infrared images of the current environment; Detecting the environmental infrared image to obtain a set of center points corresponding to the target object in the environmental infrared image; Determine the position information of the key parts of the target object according to the set of central points; determining posture information of the target object according to the position information; The detecting the ambient infrared image to obtain a set of center points corresponding to the target object in the ambient infrared image includes: Acquire thermal information corresponding to the environmental infrared image; Segmenting the environmental infrared image according to the thermal information to obtain a plurality of sub-images; Determine a center point of the sub-image and a first heat value corresponding to the center point; Determine a set of center points of the target object according to the first heat value; The determining the center point set of the target object according to the first heat value includes: Determine at least two pixel points in the sub-image whose distance from the center point is less than a preset distance, and a second heat value corresponding to each of the pixel points; When the first heat value of the center point is greater than the second heat value of each of the pixel points, confirming the center point as a valid center point; Extracting feature information of the effective center point; When the feature information matches the preset feature information, the valid center point is added to the center point set, and the preset feature information is the feature of the key part of the target object.

2. The method according to claim 1, characterized in that The determining the position information of the key parts of the target object according to the set of central points includes: Determine an object center point of the target object according to the set of center points; Predicting a candidate region of a key part of the target object according to the center point of the object, and determining the center point of the candidate region; Matching the center point of the candidate area with the valid center point corresponding to each sub-image in the center point set to obtain a target center point; The position information of the key part is obtained according to the target center point.

3. The method according to claim 1, characterized in that The method further comprises: determining, according to the posture information, an adjustment parameter corresponding to an adjustment device, wherein the adjustment device is used to adjust the posture of the target object; The adjusting device is controlled to adjust the target object according to the adjusting parameters.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining the correspondence between preset posture information and operation mode; Determining a target operating mode corresponding to the posture information according to the corresponding relationship; Control the smart home device to operate according to the target operation mode.

5. The method according to claim 1, characterized in that The method further comprises: Get historical posture information within a preset time; Generate a posture detection report corresponding to the target object according to the historical posture information; Analyzing the posture detection report to determine the posture preference of the target object; Acquire the degree of influence of the posture preference on the health of the target object; When the health impact level meets a preset health impact level, a reminder operation is performed on the target object.

6. A posture detection device, characterized in that: include: An acquisition module is used to collect infrared images of the current environment; A detection module, used to detect the environmental infrared image and obtain a set of center points corresponding to the target object in the environmental infrared image; A determination module, used to determine the position information of the key parts of the target object according to the set of central points; A processing module, configured to determine the posture information of the target object according to the position information; A processing submodule is used to obtain thermal information corresponding to the environmental infrared image; The segmentation submodule is used to segment the environmental infrared image according to the thermal information to obtain multiple sub-images; An acquisition submodule is used to determine the center point of the sub-image and a first heat value corresponding to the center point; A determination submodule, used to determine a set of center points of the target object according to the first heat value; A determination submodule is used to determine at least two pixel points in the sub-image whose distance from the center point is less than a preset distance, and the second heat value corresponding to each of the pixel points; when the first heat value of the center point is greater than the second heat value of each of the pixel points, the center point is confirmed as a valid center point; feature information of the valid center point is extracted; when the feature information matches preset feature information, the valid center point is added to the center point set, and the preset feature information is the feature of the key part of the target object.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the steps of the method described in any one of claims 1 to 5 when executed.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the steps of the method according to any one of claims 1 to 5 by running a program stored in a memory.