WO2024060076A1 - Respiration monitoring method, apparatus and device, and computer-readable storage medium - Google Patents

Respiration monitoring method, apparatus and device, and computer-readable storage medium Download PDF

Info

Publication number
WO2024060076A1
WO2024060076A1 PCT/CN2022/120264 CN2022120264W WO2024060076A1 WO 2024060076 A1 WO2024060076 A1 WO 2024060076A1 CN 2022120264 W CN2022120264 W CN 2022120264W WO 2024060076 A1 WO2024060076 A1 WO 2024060076A1
Authority
WO
WIPO (PCT)
Prior art keywords
abdominal
key points
abdomen
correlation values
key point
Prior art date
Application number
PCT/CN2022/120264
Other languages
French (fr)
Chinese (zh)
Inventor
鲍尚琦
Original Assignee
鲍尚琦
张宝璂
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 鲍尚琦, 张宝璂 filed Critical 鲍尚琦
Priority to PCT/CN2022/120264 priority Critical patent/WO2024060076A1/en
Publication of WO2024060076A1 publication Critical patent/WO2024060076A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/08Detecting, measuring or recording devices for evaluating the respiratory organs
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb

Definitions

  • the present application belongs to the field of image processing technology, and in particular relates to a respiratory monitoring method, device, equipment and computer-readable storage medium.
  • respiratory rate as an important parameter reflecting physiological conditions and sleep quality, can provide key information closely related to the user's health status. It can be seen that how to monitor respiratory frequency is very important.
  • contact there are mainly two monitoring methods: contact and non-contact.
  • the contact monitoring method the user needs to be in contact with the monitoring equipment or a special mattress to monitor the user's breathing. It is less comfortable and not suitable for users with fragile skin.
  • the non-contact monitoring method the user's breathing is monitored through respiratory measurement methods such as bioradar method and thermal imaging method. Corresponding monitoring equipment and professionals are required, which is inconvenient for users' daily monitoring.
  • This application provides a respiratory monitoring method, device, equipment and computer-readable storage medium, which can avoid the discomfort caused by the connection between the user and the monitoring equipment, and save professional human resources and medical equipment resources.
  • this application provides a respiratory monitoring method, including:
  • each abdominal area at least includes the abdomen of the target body
  • the preset number of The abdominal area includes any abdominal area and multiple abdominal areas collected continuously after any abdominal area.
  • the preset number is greater than or equal to the total number of frames that can be collected after completing multiple breaths;
  • each set of correlation values is used to represent a breath completed by the target body
  • the method further includes:
  • each respiratory frequency is used to indicate whether the target body is breathing normally or abnormally.
  • the method further includes:
  • a respiratory frequency curve is drawn.
  • the respiratory frequency curve is used to indicate whether the target body is in an exhalation state or an inhalation state.
  • multiple respiratory frequencies are determined based on multiple sets of correlation values, including:
  • two second abdominal regions respectively associated with any two target correlation values are determined, and based on the difference between the two second abdominal regions The difference in frame numbers is used to obtain a respiratory rate.
  • each group of correlation values to which the multiple target correlation values respectively belong is used to represent the normal breathing of the target body.
  • a group of correlation values to which the target correlation value belongs is used to represent abnormal breathing of the target body.
  • the method further includes:
  • a warning message indicating the target body's abnormal breathing is displayed.
  • corresponding abdominal regions are obtained from the continuously collected multiple frames of images, including:
  • determining key points of the right abdomen and key points of the left abdomen according to key points of the neck, key points of the left shoulder, key points of the right shoulder, and key points of the mid-hip includes:
  • the key point of the mid-abdomen On the side of the key point of the mid-abdomen close to the key point of the left shoulder, determine the key point of the left abdomen.
  • the distance between the key point of the mid-abdomen and the key point of the left abdomen is the same as the key point of the neck and the key point of the left shoulder. The distance between points is equal.
  • determining the abdomen area according to the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen includes:
  • the coordinate system determine the minimum abscissa, maximum abscissa, minimum ordinate, and maximum among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen.
  • the quadrilateral area was determined as the largest abdominal area.
  • the respiratory monitoring method provided by this application avoids the discomfort caused by the connection between the user and the monitoring equipment, saves the human resources and medical equipment resources of professionals, simplifies the user's operation, improves the convenience of respiratory monitoring, and ensures It improves the accuracy of respiratory monitoring results and is suitable for various daily scenarios that require monitoring the user's breathing.
  • the present application provides a respiratory monitoring device, which is used to perform the respiratory monitoring method in the above first aspect or any possible implementation of the first aspect.
  • the device includes:
  • the acquisition module is used to obtain respective corresponding abdominal areas from the continuously collected multi-frame images, and each abdominal area at least includes the abdomen of the target body;
  • Determining module used to determine multiple correlation values of each abdominal region, and multiple correlation values of any one abdominal region are used to represent the correlation between any one abdominal region and each abdominal region in a preset number of abdominal regions , the preset number of abdominal areas includes any abdominal area and multiple abdominal areas continuously collected after any one abdominal area, and the preset number is greater than or equal to the total number of frames of images that can be collected after completing multiple breaths;
  • the determination module is also used to divide multiple correlation values in each abdominal area to obtain multiple sets of correlation values, and each set of correlation values is used to represent a breath completed by the target body;
  • the determination module is also used to determine whether the target body is breathing normally based on multiple sets of correlation values.
  • this application provides a device, which includes a memory and a processor.
  • the memory is used to store instructions; the processor executes the instructions stored in the memory, so that the device performs the respiration monitoring method in the first aspect or any possible implementation of the first aspect.
  • a computer-readable storage medium In a fourth aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a computer, they cause the computer to execute the first aspect or any possible implementation of the first aspect. Respiratory monitoring methods in.
  • a fifth aspect provides a computer program product containing instructions that, when run on a device, cause the device to execute the respiratory monitoring method in the first aspect or any possible implementation of the first aspect.
  • Figure 1 is a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of correlation value calculation results provided by an embodiment of the present application.
  • FIG3 is a flow chart of a respiratory monitoring method provided in an embodiment of the present application.
  • Figure 4 is a schematic diagram of correlation value calculation results provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a respiratory frequency curve provided by an embodiment of the present application.
  • FIG6 is a flow chart of a respiratory monitoring method provided in an embodiment of the present application.
  • Figure 7 is a schematic diagram of key points of the target provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of key points of the target provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of key points of the target provided by an embodiment of the present application.
  • FIG10 is a schematic diagram of the structure of a respiratory monitoring device provided in one embodiment of the present application.
  • Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Each solid point represents each key point of the target object in a frame of image
  • Solid point 1 represents the key point of the neck
  • Solid point 2 represents the key point of the right shoulder
  • Solid point 3 represents the key point of the left button
  • Solid point 4 represents the key point of the mid-hip
  • the solid point 5 represents the key point of the midsection
  • Solid point 6 represents the key point on the left abdomen
  • Solid point 7 represents the key point on the right abdomen
  • Rectangular frame A represents the abdominal area.
  • the term “if” can be interpreted as “when” or “uponce” or “in response to determining” or “in response to detecting”, depending on the context.
  • the phrase “if it is determined” or “if [described condition or event] is detected” can be interpreted as meaning “uponce it is determined” or “in response to determining” or “uponce [described condition or event] is detected” or “in response to detecting [described condition or event]", depending on the context.
  • This application proposes a respiratory monitoring method, device, equipment and computer-readable storage medium.
  • the method is suitable for various scenarios requiring respiratory monitoring.
  • the respiratory monitoring method of the present application is suitable for human body respiratory monitoring to facilitate determining whether the human body is breathing normally.
  • respiratory monitoring can be used to obtain the human body's breathing status, such as whether the human body is breathing normally and its breathing frequency. Furthermore, the health status of the human body can be estimated through the human body's breathing status, so as to facilitate the discovery of potential illnesses in the human body. , can be treated in time.
  • the respiratory monitoring method of the present application can be performed by electronic equipment.
  • Electronic devices can be smartphones, tablets, desktop computers, laptops, handheld devices, servers, etc.
  • the electronic device may include a display screen, or may be connected to an external display screen.
  • the electronic device can display the respiratory monitoring results through the display screen, and the respiratory monitoring results can be whether the target body breathes normally, the breathing frequency of the target body, the breathing frequency curve of the target body, etc.
  • FIG. 1 shows a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application.
  • the respiratory monitoring method provided by this application may include:
  • the continuously acquired multiple frames of images refer to multiple frames of images that are continuous in time series, and each frame of image at least includes the abdominal area of the target body.
  • the electronic device can acquire the abdominal area of each frame of the multi-frame images.
  • Each abdominal region includes at least the abdomen of the target body.
  • the correlation value represents the degree of linear correlation between variables.
  • the multiple correlation values of any one abdominal region are used to represent the correlation between any one abdominal region and each of the preset number of abdominal regions.
  • the preset number of abdominal regions includes any abdominal region and multiple abdominal regions continuously acquired after any abdominal region, and the preset number is greater than or equal to the total number of frames of images that can be acquired by completing multiple breaths.
  • the multiple correlation values of the first abdominal area include: the correlation value between the first abdominal area and the first abdominal area, The correlation value between the 1st abdominal area and the 2nd abdominal area... The correlation value between the 1st abdominal area and the 2550th abdominal area.
  • the formula for calculating the correlation value between two abdominal regions is:
  • a mn is a matrix of the abdominal region, is the average of an abdominal region matrix
  • B mn is the matrix of another abdominal region, is the average of another abdominal region matrix
  • multiple correlation values of each abdominal region can be obtained. Since multiple frames of images, that is, multiple abdominal regions, can be collected for each breath, multiple correlation values of multiple abdominal regions can form a set of correlations. value, so that the electronic device can obtain multiple sets of related values.
  • Each set of correlation values is used to characterize a breath completed by the target body.
  • the preset number is 2550 frames
  • the horizontal and vertical coordinates are 2550 frames of continuously collected images, where each frame of image is associated with an abdominal region.
  • each frame of image is associated with an abdominal region.
  • multiple correlation values of multiple abdominal areas can form a set of correlation values, that is, a gray area.
  • the abscissa corresponding to 500 frames includes two gray areas, and the two gray areas respectively represent one breath completed by the target body.
  • the state of the abdominal area can meet the preset breathing pattern. For example, every time the target body completes a breath, the abdominal area rises and falls once.
  • each set of calculated correlation values must also satisfy similar correlation value rules. For example, every time the target body completes a breath, a set of correlation values can go through a process of first decreasing and then increasing. , or, every time the target body completes a breath, the number of frames of images that can be collected corresponding to a set of correlation values is within the preset range.
  • the electronic device can determine whether the target body is breathing normally based on the correlation value rules of each group of correlation values.
  • the electronic device can determine that the current target body is breathing normally.
  • the electronic device can determine that the current target body is breathing abnormally.
  • each set of correlation values corresponding to the 1st frame to the 1500th frame satisfies the correlation value rule, and it can be determined that the target object is in the 1st frame
  • the target body is breathing normally from the 1500th frame to the 1500th frame.
  • the corresponding two sets of correlation values from the 1500th frame to the 2000th frame do not satisfy the correlation value rule. It can be determined that the target body is breathing abnormally at this time.
  • the electronic device obtains the corresponding abdominal areas from the continuously collected multiple frames of images, and can prepare the data for calculating multiple correlation values of each abdominal area through the correlation between the abdominal areas. .
  • the electronic device can determine multiple correlation values for each abdominal area and divide the multiple correlation values for each abdominal area to obtain multiple sets of correlation values.
  • the electronic device can determine whether each set of correlation values in the multiple sets of correlation values satisfies Correlation value rules determine whether the target body is currently breathing normally. Therefore, the electronic device can quickly and accurately determine whether the target body is breathing normally through continuously collected multi-frame images, simplifying the operation process, improving the efficiency of respiratory monitoring, ensuring the accuracy of respiratory monitoring results, and improving the convenience of respiratory monitoring. , suitable for various daily scenarios where user breathing needs to be monitored.
  • the electronic device can also determine multiple breathing frequencies based on multiple sets of correlation values. Among them, each respiratory frequency can also be used to indicate whether the target body is breathing normally or abnormally.
  • Figure 3 shows a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application.
  • the respiratory monitoring method provided by this application may include:
  • S201, S202, and S203 are respectively implemented similarly to S101, S102, and S103 in the embodiment shown in FIG. 1, and will not be described again in this application.
  • the preset position is the center of gravity position of the gray area corresponding to each set of correlation values.
  • the target correlation value is the correlation value at the center of gravity of each group of correlation values.
  • the target correlation value can be understood as the minimum correlation value in the set of correlation values.
  • the electronic device determines the correlation value at the preset position as the target correlation value, and prepares the data for easy calculation of the respiratory frequency.
  • the electronic device can extract multiple sets of correlation values in Figure 2 through connected area technology to obtain Figure 4.
  • the target correlation value is the correlation value of the center of gravity position of each black solid area.
  • S205 Determine the first abdominal region and the second abdominal region associated with the target correlation value in each set of correlation values.
  • each correlation value is calculated based on the correlation of two abdominal areas, therefore, each target correlation value may correspond to two abdominal areas, that is, a first abdominal area and a second abdominal area.
  • each target abdominal area corresponds to an abscissa and an ordinate, that is, there are two abdominal areas for each target correlation value.
  • the preset number in S102 is greater than or equal to the total number of frames of images that can be collected after completing multiple breaths.
  • the number of multiple target correlation values is equal to the number of breaths.
  • each same first abdominal area corresponds to 2 target related values.
  • each same ordinate corresponds to 2 sets of correlation values, that is, corresponds to 2 target correlation values.
  • the number of multiple target related values is equal to the number of multiple breaths. Then, the difference in the number of frames between the two second abdominal regions is equivalent to the number of frames of images that can be collected by the target body after completing one breath.
  • m represents the difference in the abscissa between the centers of gravity of two adjacent groups of correlation values, that is, the frame number difference between two adjacent second abdominal regions
  • f represents the frame rate
  • m 120 frames, that is, the number of frames that can be collected by the target body after completing one breath is 120 frames, and the frame rate is 30.
  • the electronic device can calculate the breathing frequency of this breath based on the number of frames of images that can be collected when the target body completes one breath, so that the user can determine whether the target body is breathing normally based on the breathing frequency.
  • each group of correlation values to which the multiple target correlation values respectively belong is used to represent normal breathing of the target body.
  • a group of correlation values to which one target correlation value belongs is used to represent abnormal breathing of the target body.
  • each same ordinate in Figure 4 corresponds to two target correlation values.
  • a group of correlation values to which one target correlation value belongs is used to indicate abnormal breathing of the target body.
  • the electronic device can determine that the target body is breathing abnormally at this time.
  • the electronic device can determine whether the target body is breathing normally based on the number of target-related values corresponding to any same first abdominal area.
  • warning information indicating the target body's abnormal breathing may be displayed.
  • S208 is an optional step.
  • the electronic device may include a display interface, so that when the electronic device determines that the target body's breathing is abnormal, the electronic device may display warning information in the display interface. For example, display the alert "error". It is convenient to remind the user that the current target body is breathing abnormally.
  • S209 is an optional step.
  • the respiratory frequency may be the respiratory frequency calculated in S207.
  • the duration of the multi-frame images may be the duration corresponding to the multiple frames of images continuously collected in S101.
  • the breathing rate curve is used to indicate whether the target is in an exhalation state or an inhalation state.
  • the respiratory frequency curve is a sinusoidal function curve.
  • the formula of the sine function is:
  • t represents the duration corresponding to the continuously collected multiple frames of images
  • w represents the frequency of the sine function
  • T represents the period of the sine function
  • k represents the breathing frequency of k times/min
  • each completed breath corresponds to one cycle of the sine function.
  • Figure 5 shows a sinusoidal function curve with a duration of 30 seconds corresponding to multiple frames of images collected continuously.
  • the abscissa is time in seconds.
  • the ordinate represents the breathing state of the target body.
  • An increase represents inhalation and a decrease represents expiration.
  • the number of breaths of the target body in 20 seconds is 6, so the breathing rate is 18 times per minute, and the breathing frequency is 18 times/min.
  • the electronic device can determine the respiratory state of the target body based on changes in the respiratory frequency curve in FIG. 5 .
  • the electronic device can draw a respiratory frequency curve and display the respiratory frequency curve in the above-mentioned display interface.
  • the electronic device uses the respiratory frequency curve to visualize the breathing status of the target body, allowing users to understand the breathing status of the target body more intuitively.
  • the electronic device can determine two second abdominal areas associated with any two target correlation values, and determine what the target body can do each time it completes one breath based on the frame number difference between the two second abdominal areas. Based on the frame number of the collected image, a respiratory frequency can be obtained. Therefore, the electronic device can use the respiratory frequency to determine whether the target body is breathing normally. In addition, the electronic device can display warning information when the target body is breathing abnormally, so as to promptly remind the user that the target body is breathing abnormally. In addition, the electronic device can also draw a respiratory frequency curve, allowing users to intuitively understand the respiratory status of the target body.
  • the electronic device when it obtains the corresponding abdominal areas from the continuously collected multiple frames of images, it can use the key points of the neck of the target body, the key points of the left shoulder, and the key points of the right shoulder. Key points, and key points on the mid-hip, determine the abdominal area of the target body.
  • the electronic device can obtain the key points of the target's neck, left shoulder, right shoulder, and mid-hip. According to the key points of the neck, left shoulder, right shoulder, and Determine the key points of the middle abdomen at the key points of the mid-hips, and then determine the key points of the right abdomen and the key points of the left abdomen on both sides of the key points of the mid-abdomen. According to the key points of the left shoulder, the key points of the right shoulder, and the key points of the right The key points of the abdomen, and the key points of the left abdomen, determine the abdominal area.
  • the electronic device can obtain the key points of each part of the target body through the human posture estimation algorithm, and determine the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the target body from the key points of each part. The key point of the mid-buttocks.
  • each solid point is a key point of each part of the target body that the electronic device can obtain through the human posture estimation algorithm.
  • solid point 1 is the key point of the neck
  • solid point 2 is the key point of the right shoulder
  • solid point 3 is the key point of the left shoulder
  • solid point 4 is the key point of the middle hip.
  • the present application can store a human body posture estimation algorithm in an electronic device and/or a storage device that communicates with the electronic device, so that the electronic device can conveniently call the human body posture estimation algorithm to obtain key points of various parts of the target body.
  • this application does not limit the storage method and specific type of the storage device.
  • FIG. 6 shows a schematic flowchart of a respiratory monitoring method provided by an embodiment of the present application.
  • the respiratory monitoring method provided by this application may include:
  • the breathing video of the target body is usually a video collected when the target body is in a sleep state.
  • the electronic device can accurately monitor the breathing of the target body based on the ups and downs of the abdominal area.
  • the electronic device monitors the target's breathing based on the video collected when the target is sleeping, and can determine the target's sleep state and health information related to the sleep state.
  • the multi-frame image is a continuous multi-frame image of the breathing video of the target body in time sequence.
  • the multi-frame images are multi-frame images that are continuous in time sequence in the entire breathing video of the target body.
  • the multi-frame images are consecutive multi-frame images in time series captured from the entire breathing video of the target body.
  • the duration of the video collected when the above-mentioned target body is sleeping must be greater than 10 seconds. It can be understood that if the duration of the above video is less than 10 seconds, the number of breaths is too small, making it difficult to calculate accurate results.
  • S302. Perform key point detection on each frame of image to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip.
  • the electronic device uses a human posture estimation algorithm to detect key points in each frame of the image, and can obtain key points of multiple parts of the target body, and each key point is used to identify each part of the target body.
  • the key points of multiple parts can include: key points of the head, key points of the neck, key points of the left shoulder, key points of the right shoulder, key points of the elbow, key points of the wrist, and key points of the middle hip. , the key points of the waist, the key points of the knees and other key points of various parts of the target body.
  • the electronic device can determine the key point of the neck, the key point of the left shoulder, the key point of the right shoulder, and the key point of the middle hip from the key points of multiple parts of the target body.
  • the electronic device can obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the mid-hip. Therefore, the electronic device can determine the key point of the mid-abdomen on the connection line between the key point of the neck and the key point of the mid-hip.
  • the key point of the mid-abdomen may be a point on the above-mentioned connection line that is a preset length away from the key point of the mid-buttocks.
  • the preset length is predetermined.
  • the preset length can be 3/4 of the length from the key point of the neck to the key point of the mid-hip.
  • the electronic device can determine the point at a preset length from the key point of the mid-hip, that is, solid point 5, as the key point of the mid-hip. .
  • the electronic device can obtain the key point of the mid-abdomen. Therefore, the electronic device can determine the key point of the right abdomen and the key point of the left abdomen on the left and right sides of the key point of the mid-abdomen.
  • the electronic device can calculate the distance between the key point of the neck and the key point of the right shoulder as the distance between the key point of the midsection and the key point of the right abdomen, and the distance between the key point of the neck and the key point of the left shoulder.
  • the distance between the keypoints on the midsection and the keypoints on the left abdomen is the same as the distance between the keypoints on the neck and the keypoints on the left shoulder.
  • the electronic device can obtain accurate key points of the right abdomen and key points of the left abdomen.
  • the electronic device can project the key points of multiple parts of the target body into the same coordinate system to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the midsection. their respective coordinates. Therefore, the electronic device can calculate the coordinates of the key point on the right abdomen and the key point on the left abdomen.
  • the electronic device can represent the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the midsection through coordinates.
  • the coordinates of the key points of the neck are (x 1 , y 1 )
  • the coordinates of the key point on the right shoulder are (x 2 , y 2 )
  • the coordinates of the key point on the left shoulder are (x 3 , y 3 )
  • the coordinates of the key point on the midsection are (x 4 , y 4 ).
  • (x c , y c ) is used to represent the coordinates of the key point on the right abdomen
  • (x d , y d ) is used to represent the coordinates of the key point on the left abdomen.
  • the electronic device determines the key point of the right abdomen, that is, solid point 7, on the side of solid point 5 close to solid point 2, and determines the key point of the left abdomen on the side of solid point 5 close to solid point 3. , that is, solid point 6.
  • the electronic device can obtain the key points of the right abdomen and the key points of the left abdomen with the help of the key points of the middle abdomen, and prepare data for determining the abdominal area according to the key points of the right abdomen and the key points of the left abdomen.
  • the electronic device can project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen into the same coordinate system, and can obtain the coordinates of the key points of the left shoulder, the coordinates of the key points of the right shoulder, the coordinates of the key points of the right abdomen, and the coordinates of the key points of the left abdomen.
  • the electronic device can determine the minimum abscissa, the maximum abscissa, and the minimum ordinate among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. , and the maximum ordinate.
  • the electronic device can prepare data for determining the abdominal area based on the minimum abscissa, the maximum abscissa, the minimum ordinate, and the maximum ordinate.
  • the electronic device can determine the minimum abscissa, the maximum abscissa, the minimum ordinate, and the maximum ordinate in solid points 2 , 3 , 6 , and 7 . It can be seen from Figure 9 that the minimum abscissa is the abscissa of solid point 6, the maximum abscissa is the abscissa of solid point 2, the minimum ordinate is the ordinate of solid point 7, and the maximum ordinate is the ordinate of solid point 3 coordinate.
  • the electronic device can extend the minimum abscissa and the maximum abscissa along the vertical axis of the coordinate system, and the minimum ordinate and the maximum ordinate respectively along the horizontal axis of the coordinate system.
  • the four lines can Intersect and connect to form a quadrilateral area.
  • the terminal device can determine the above-mentioned quadrilateral area as the largest abdominal area.
  • the quadrilateral area formed in FIG. 9 is the largest abdominal area.
  • the electronic device obtains the largest abdominal area and can more accurately calculate the correlation value through the abdominal area. Therefore, the electronic device can determine the respiratory frequency of the target body based on the accurate correlation value data and determine whether the target body is breathing normally.
  • the electronic device can obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip through key point detection, and between the key points of the neck and the key points of the middle hip Determine the key points of the mid-abdomen on the connecting line between them, and prepare the data for determining the key points of the right abdomen and the key points of the left abdomen on both sides of the key points of the mid-abdomen.
  • the electronic device can determine the key point of the right abdomen on the side where the key point of the midsection is close to the key point of the right shoulder, and determine the key point of the left abdomen on the side where the key point of the midsection is close to the key point of the left shoulder.
  • the device can quickly acquire the key points of the right abdomen and the key points of the left abdomen. Therefore, the electronic device can determine the abdominal area based on the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen. In addition, the electronic device can also determine the minimum abscissa, the maximum abscissa, and the minimum vertical coordinate based on the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. The coordinates and the maximum ordinate form a quadrilateral area, and this area is regarded as the largest abdominal area. Therefore, the electronic device can more accurately calculate the correlation value through the abdominal area based on the largest abdominal area.
  • the present application also provides a respiratory monitoring device, which is applied to an electronic device.
  • FIG. 10 shows a schematic block diagram of a respiratory monitoring device provided by an embodiment of the present application.
  • a respiratory monitoring device provided by an embodiment of the present application includes an acquisition module 401 and a determination module 402.
  • the acquisition module 401 is used to acquire respective corresponding abdominal areas from the continuously collected multi-frame images, and each abdominal area at least includes the abdomen of the target body;
  • the determination module 402 is used to determine multiple correlation values for each abdominal region.
  • the multiple correlation values for any one abdominal region are used to represent the correlation between any one abdominal region and each abdominal region in a preset number of abdominal regions.
  • the preset number of abdominal areas includes any abdominal area and multiple abdominal areas continuously collected after any one abdominal area.
  • the preset number is greater than or equal to the total number of frames that can be collected after completing multiple breaths;
  • the determination module 402 is also used to divide multiple correlation values of each abdominal region to obtain multiple sets of correlation values, each set of correlation values used to represent a breath completed by the target body;
  • the determination module 402 is also used to determine whether the target body is breathing normally based on multiple sets of correlation values.
  • the determining module 402 is specifically used to:
  • each respiratory frequency is used to indicate whether the target body is breathing normally or abnormally.
  • the respiratory monitoring device 400 may further include: a display module 403 .
  • the display module 403 is represented by a dotted line.
  • the display module 403 is used for:
  • a breathing frequency curve is drawn according to each breathing frequency and the duration of multiple frames of images.
  • the breathing frequency curve is used to indicate whether the target is in an exhalation state or an inhalation state.
  • the determination module 402 is specifically configured to:
  • two second abdominal regions respectively associated with any two target correlation values are determined, and based on the difference between the two second abdominal regions The difference in frame numbers is used to obtain a respiratory rate.
  • each group of correlation values to which the multiple target correlation values respectively belong is used to represent normal breathing of the target body
  • a group of correlation values to which one target correlation value belongs is used to represent abnormal breathing of the target body.
  • the display module 403 is specifically used for:
  • a warning message indicating the target body's abnormal breathing is displayed.
  • the acquisition module 401 is specifically used to:
  • the acquisition module 401 is specifically used to:
  • the key point of the mid-abdomen On the side of the key point of the mid-abdomen close to the key point of the left shoulder, determine the key point of the left abdomen.
  • the distance between the key point of the mid-abdomen and the key point of the left abdomen is the same as the key point of the neck and the key point of the left shoulder. The distance between points is equal.
  • the acquisition module 401 is specifically used to:
  • the coordinate system determine the minimum abscissa, maximum abscissa, minimum ordinate, and maximum among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen.
  • the quadrilateral area was determined as the largest abdominal area.
  • the respiratory monitoring device 400 of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD).
  • the above PLD can be a complex program logic device. (complex programmable logical device, CPLD), field-programmable gate array (FPGA), general array logic (generic array logic, GAL) or any combination thereof.
  • the respiratory monitoring method in the above embodiment can also be implemented through software.
  • the respiratory monitoring device 400 and its respective modules can also be software modules.
  • this application also provides a schematic structural diagram of an electronic device.
  • the specific implementation of the electronic device can refer to the description of the above-mentioned electronic device, and can perform the above-mentioned respiratory monitoring method.
  • the electronic device 500 includes a processor 501, a memory 502, a communication interface 503 and a bus 504.
  • the processor 501, the memory 502, and the communication interface 503 communicate through the bus 504. Communication can also be achieved through other means such as wireless transmission.
  • the memory 502 is used to store instructions, and the processor 501 is used to execute the instructions stored in the memory 502 .
  • the memory 502 stores program code 5021, and the processor 501 can call the program code 5021 stored in the memory 502 to execute the respiratory monitoring method in the above embodiment.
  • the processor 501 may be a CPU, and the processor 501 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application-specific integrated circuits
  • FPGAs field programmable gate arrays
  • a general-purpose processor may be a microprocessor or any conventional processor, etc.
  • the memory 502 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501.
  • the memory 502 may also include a non-volatile random access memory.
  • the memory 502 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced SDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM, DR RAM
  • bus 504 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, the various buses are labeled bus 504 in FIG. 11 .
  • the electronic device 500 of the present application may correspond to the electronic device in the above-described embodiment of the present application.
  • the above and other operations of each module in the electronic device 500 and The/or functions are respectively intended to implement the operating steps of the method executed by the electronic device in the above embodiments. For the sake of simplicity, they will not be described again here.
  • this application also provides a computer-readable storage medium, which stores a computer program.
  • the computer program is executed by a processor, the steps in each of the above method embodiments can be implemented.
  • this application provides a computer program product.
  • the steps in each of the above method embodiments can be implemented when the electronic device is executed.
  • Module completion means dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above.
  • Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application.
  • For the specific working processes of the units and modules in the above system please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
  • the disclosed devices/network devices and methods can be implemented in other ways.
  • the device/network equipment embodiments described above are only illustrative.
  • the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or units. Components may be combined or may be integrated into another system, or some features may be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
  • the units described above as separate components may or may not be physically separated.
  • the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this application.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Physiology (AREA)
  • Public Health (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Dentistry (AREA)
  • Pulmonology (AREA)
  • Image Analysis (AREA)

Abstract

The present application relates to the technical field of image processing, and in particular, to a respiration monitoring method, apparatus and device, and a computer-readable storage medium. The method comprises: acquiring, from a plurality of continuously acquired images, corresponding abdominal regions, respectively, each abdominal region comprising at least the abdomen of a target subject; determining a plurality of correlation values for each abdominal region; dividing the plurality of correlation values for each abdominal region to give a plurality of correlation value sets, each correlation value set representing one respiration completed by the target subject; and determining, according to the plurality of correlation value sets, whether the target subject respires normally or not. Therefore, the present application can acquire a plurality of correlation value sets according to the correlation between the abdominal regions, such that whether the target subject normally respires or not is determined according to the plurality of correlation value sets. The present application can improve the convenience of respiration monitoring, simplify the operation of users, and improve the accuracy of respiration monitoring, thus featuring suitability for various daily scenarios requiring the respiration monitoring of users.

Description

呼吸监测方法、装置、设备及计算机可读存储介质Respiratory monitoring methods, devices, equipment and computer-readable storage media 技术领域Technical field
本申请属于图像处理技术领域,尤其涉及一种呼吸监测方法、装置、设备及计算机可读存储介质。The present application belongs to the field of image processing technology, and in particular relates to a respiratory monitoring method, device, equipment and computer-readable storage medium.
背景技术Background technique
随着经济的不断发展,用户对于能够随时了解自身健康状况的需求日益强烈。其中,呼吸频率作为反映生理状况及睡眠质量的一项重要参数,能够提供与用户的健康状况密切相关的关键信息。可见,如何实现呼吸频率的监测十分重要。With the continuous development of the economy, users have an increasingly strong need to know their health status at any time. Among them, respiratory rate, as an important parameter reflecting physiological conditions and sleep quality, can provide key information closely related to the user's health status. It can be seen that how to monitor respiratory frequency is very important.
目前,主要包括接触式和非接触式这两种监测方式。接触式监测方式中,需要用户与监测设备或者特制床垫进行接触,才能监测用户的呼吸,舒适性较差,不适用皮肤脆弱的用户。非接触式监测方式中,通过生物雷达法、热成像法等呼吸测量方式监测用户的呼吸,需要配备对应的监测设备和专业人员,不便于用户的日常监测。At present, there are mainly two monitoring methods: contact and non-contact. In the contact monitoring method, the user needs to be in contact with the monitoring equipment or a special mattress to monitor the user's breathing. It is less comfortable and not suitable for users with fragile skin. In the non-contact monitoring method, the user's breathing is monitored through respiratory measurement methods such as bioradar method and thermal imaging method. Corresponding monitoring equipment and professionals are required, which is inconvenient for users' daily monitoring.
因此,如何在日常场景中监测用户的呼吸是现亟需解决的问题。Therefore, how to monitor the user's breathing in daily scenarios is an urgent problem that needs to be solved.
发明内容Contents of the invention
本申请提供了一种呼吸监测方法、装置、设备及计算机可读存储介质,可以避免用户与监测设备相连接导致的不适感,节省了专业人员的人力资源和医疗设备资源。This application provides a respiratory monitoring method, device, equipment and computer-readable storage medium, which can avoid the discomfort caused by the connection between the user and the monitoring equipment, and save professional human resources and medical equipment resources.
第一方面,本申请提供一种呼吸监测方法,包括:In the first aspect, this application provides a respiratory monitoring method, including:
从连续采集的多帧图像中,分别获取各自对应的腹部区域,每个腹部区域至少包括目标体的腹部;From the continuously collected multi-frame images, obtain respective corresponding abdominal areas, and each abdominal area at least includes the abdomen of the target body;
确定每个腹部区域的多个相关值,任意一个腹部区域的多个相关值用于表示任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性,预设数量的腹部区域包括任意一个腹部区域及在任意一个腹部区域之后连续采集的多个腹部区域,预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数;Determine multiple correlation values for each abdominal region, and the multiple correlation values for any one abdominal region are used to represent the correlation between any one abdominal region and each of a preset number of abdominal regions, the preset number of The abdominal area includes any abdominal area and multiple abdominal areas collected continuously after any abdominal area. The preset number is greater than or equal to the total number of frames that can be collected after completing multiple breaths;
将每个腹部区域的多个相关值进行划分,得到多组相关值,每组相关值用于表征目标体完成的一次呼吸;Divide multiple correlation values in each abdominal area to obtain multiple sets of correlation values, each set of correlation values is used to represent a breath completed by the target body;
根据多组相关值,确定目标体是否正常呼吸。Based on multiple sets of correlation values, determine whether the target body is breathing normally.
在第一方面的一种可能的实现方式中,方法还包括:In a possible implementation manner of the first aspect, the method further includes:
根据多组相关值,确定多个呼吸频率,每个呼吸频率用于表示目标体是正常呼吸还是异常呼吸。Multiple respiratory frequencies are determined based on multiple sets of correlation values, and each respiratory frequency is used to indicate whether the target body is breathing normally or abnormally.
在第一方面的一种可能的实现方式中,根据多组相关值,确定多个呼吸频率之后,还包括:In a possible implementation of the first aspect, after determining multiple respiratory frequencies based on multiple sets of correlation values, the method further includes:
根据每个呼吸频率和多帧图像的时长,绘制呼吸频率曲线,呼吸频率曲线用于表示目标体是处于呼气状态还是处于吸气状态。According to each respiratory frequency and the duration of the multi-frame image, a respiratory frequency curve is drawn. The respiratory frequency curve is used to indicate whether the target body is in an exhalation state or an inhalation state.
在第一方面的一种可能的实现方式中,根据多组相关值,确定多个呼吸频率,包括:In a possible implementation of the first aspect, multiple respiratory frequencies are determined based on multiple sets of correlation values, including:
将每组相关值中位于预设位置的相关值确定为目标相关值;Determine the correlation value located at the preset position in each set of correlation values as the target correlation value;
确定每组相关值中与目标相关值关联的第一腹部区域和第二腹部区域;determining a first abdominal region and a second abdominal region associated with the target correlation value in each set of correlation values;
确定每个相同的第一腹部区域所对应的多个目标相关值;Determine multiple target correlation values corresponding to each same first abdominal region;
针对任意一个相同的第一腹部区域所对应的多个目标相关值而言,分别确定与任意两个目标相关值各自关联的两个第二腹部区域,并根据两个第二腹部区域之间的帧数差值,得到一个呼吸频率。For multiple target correlation values corresponding to any same first abdominal region, two second abdominal regions respectively associated with any two target correlation values are determined, and based on the difference between the two second abdominal regions The difference in frame numbers is used to obtain a respiratory rate.
在第一方面的一种可能的实现方式中,在任意一个相同的第一腹部区域对应于多个目标相关值时,多个目标相关值分别归属的各组相关值用于表示目标体正常呼吸;In a possible implementation of the first aspect, when any same first abdominal region corresponds to multiple target correlation values, each group of correlation values to which the multiple target correlation values respectively belong is used to represent the normal breathing of the target body. ;
在任意一个相同的第一腹部区域对应于一个目标相关值时,一个目标相关值归属的一组相关值用于表示目标体异常呼吸。When any same first abdominal region corresponds to a target correlation value, a group of correlation values to which the target correlation value belongs is used to represent abnormal breathing of the target body.
在第一方面的一种可能的实现方式中,方法还包括:In a possible implementation of the first aspect, the method further includes:
在确定目标体呼吸异常时,显示用于指示目标体异常呼吸的警示信息。When it is determined that the target body's breathing is abnormal, a warning message indicating the target body's abnormal breathing is displayed.
在第一方面的一种可能的实现方式中,从连续采集的多帧图像中,分别获取各自对应的腹部区域,包括:In a possible implementation of the first aspect, corresponding abdominal regions are obtained from the continuously collected multiple frames of images, including:
从目标体的呼吸视频中,获取多帧图像;Obtain multiple frames of images from the target’s breathing video;
对每帧图像进行关键点检测,得到颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点;Perform key point detection on each frame of image to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the mid-hip;
根据颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点,确定右腹部的关键点和左腹部的关键点;According to the key points of the neck, the left shoulder, the right shoulder and the middle hip, determine the key points of the right abdomen and the left abdomen;
根据左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点,确定腹部区域。Determine the abdominal area based on the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen.
在第一方面的一种可能的实现方式中,根据颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点,确定右腹部的关键点和左腹部的关键点,包括:In a possible implementation of the first aspect, determining key points of the right abdomen and key points of the left abdomen according to key points of the neck, key points of the left shoulder, key points of the right shoulder, and key points of the mid-hip, includes:
在颈部的关键点和中臀部的关键点之间的连线上,将距离中臀部的关键点预设长度的位置确定为中腹部的关键点;On the connection line between the key point of the neck and the key point of the mid-hip, determine the position at a preset length from the key point of the mid-hip as the key point of the mid-abdomen;
在中腹部的关键点靠近右肩的关键点的一侧,确定右腹部的关键点,其中,中腹部的关键点和右腹部的关键点之间的距离,与颈部的关键点和右肩的关键点之间的距离相等;Determine the key point of the right abdomen on the side where the key point of the mid-abdomen is close to the key point of the right shoulder. The distance between the key point of the mid-abdomen and the key point of the right abdomen is the same as the key point of the neck and the right shoulder. The distances between key points are equal;
在中腹部的关键点靠近左肩的关键点的一侧,确定左腹部的关键点,其中,中腹部的关键点和左腹部的关键点之间的距离,与颈部的关键点和左肩的关键点之间的距离相等。On the side of the key point of the mid-abdomen close to the key point of the left shoulder, determine the key point of the left abdomen. The distance between the key point of the mid-abdomen and the key point of the left abdomen is the same as the key point of the neck and the key point of the left shoulder. The distance between points is equal.
在第一方面的一种可能的实现方式中,根据左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点,确定腹部区域,包括:In a possible implementation of the first aspect, determining the abdomen area according to the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen includes:
将左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点投影到同一坐标系中;Project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen into the same coordinate system;
根据坐标系,确定左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标和左腹部的关键点的坐标中的最小横坐标、最大横坐标、最小纵坐标及最大纵坐标;According to the coordinate system, determine the minimum abscissa, maximum abscissa, minimum ordinate, and maximum among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. Y-axis;
将最小横坐标和最大横坐标分别沿着坐标系的纵轴延伸,将最小纵坐标和最大纵 坐标分别沿着坐标系的横轴延伸,形成四边形区域;Extend the minimum abscissa and the maximum abscissa along the vertical axis of the coordinate system respectively, and extend the minimum ordinate and the maximum ordinate along the horizontal axis of the coordinate system respectively to form a quadrilateral area;
将四边形区域,确定为最大的腹部区域。The quadrilateral area was determined as the largest abdominal area.
本申请提供的一种呼吸监测方法,避免了用户与监测设备相连接导致的不适感,节省了专业人员的人力资源和医疗设备资源,简化了用户的操作,提升了呼吸监测的便捷性,保证了呼吸监测结果的准确性,适用于各种需要监测用户呼吸的日常场景。The respiratory monitoring method provided by this application avoids the discomfort caused by the connection between the user and the monitoring equipment, saves the human resources and medical equipment resources of professionals, simplifies the user's operation, improves the convenience of respiratory monitoring, and ensures It improves the accuracy of respiratory monitoring results and is suitable for various daily scenarios that require monitoring the user's breathing.
第二方面,本申请提供了一种呼吸监测装置,该装置用于执行上述第一方面或第一方面的任一可能的实现方式中的呼吸监测方法。具体地,该装置包括:In a second aspect, the present application provides a respiratory monitoring device, which is used to perform the respiratory monitoring method in the above first aspect or any possible implementation of the first aspect. Specifically, the device includes:
获取模块,用于从连续采集的多帧图像中,分别获取各自对应的腹部区域,每个腹部区域至少包括目标体的腹部;The acquisition module is used to obtain respective corresponding abdominal areas from the continuously collected multi-frame images, and each abdominal area at least includes the abdomen of the target body;
确定模块,用于确定每个腹部区域的多个相关值,任意一个腹部区域的多个相关值用于表示任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性,预设数量的腹部区域包括任意一个腹部区域及在任意一个腹部区域之后连续采集的多个腹部区域,预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数;Determining module, used to determine multiple correlation values of each abdominal region, and multiple correlation values of any one abdominal region are used to represent the correlation between any one abdominal region and each abdominal region in a preset number of abdominal regions , the preset number of abdominal areas includes any abdominal area and multiple abdominal areas continuously collected after any one abdominal area, and the preset number is greater than or equal to the total number of frames of images that can be collected after completing multiple breaths;
确定模块,还用于将每个腹部区域的多个相关值进行划分,得到多组相关值,每组相关值用于表征目标体完成的一次呼吸;The determination module is also used to divide multiple correlation values in each abdominal area to obtain multiple sets of correlation values, and each set of correlation values is used to represent a breath completed by the target body;
确定模块,还用于根据多组相关值,确定目标体是否正常呼吸。The determination module is also used to determine whether the target body is breathing normally based on multiple sets of correlation values.
第三方面,本申请提供了一种设备,该设备包括存储器与处理器。该存储器用于存储指令;该处理器执行该存储器存储的指令,使得该设备执行第一方面或第一方面的任一可能的实现方式中的呼吸监测方法。In a third aspect, this application provides a device, which includes a memory and a processor. The memory is used to store instructions; the processor executes the instructions stored in the memory, so that the device performs the respiration monitoring method in the first aspect or any possible implementation of the first aspect.
第四方面,提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行第一方面或第一方面的任一可能的实现方式中的呼吸监测方法。In a fourth aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a computer, they cause the computer to execute the first aspect or any possible implementation of the first aspect. Respiratory monitoring methods in.
第五方面,提供一种包含指令的计算机程序产品,当该指令在设备上运行时,使得设备执行第一方面或第一方面的任一可能的实现方式中的呼吸监测方法。A fifth aspect provides a computer program product containing instructions that, when run on a device, cause the device to execute the respiratory monitoring method in the first aspect or any possible implementation of the first aspect.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the above-mentioned second aspect to the fifth aspect can be referred to the relevant description in the above-mentioned first aspect, and will not be described again here.
附图说明Description of drawings
为了更清楚地说明本申请中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in this application more clearly, the drawings needed to be used in the embodiments or description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some implementations of this application. For example, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本申请一实施例提供的呼吸监测方法的流程示意图;Figure 1 is a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application;
图2是本申请一实施例提供的相关值计算结果示意图;Figure 2 is a schematic diagram of correlation value calculation results provided by an embodiment of the present application;
图3是本申请一实施例提供的呼吸监测方法的流程示意图;FIG3 is a flow chart of a respiratory monitoring method provided in an embodiment of the present application;
图4是本申请一实施例提供的相关值计算结果示意图;Figure 4 is a schematic diagram of correlation value calculation results provided by an embodiment of the present application;
图5是本申请一实施例提供的呼吸频率曲线示意图;Figure 5 is a schematic diagram of a respiratory frequency curve provided by an embodiment of the present application;
图6是本申请一实施例提供的呼吸监测方法的流程示意图;FIG6 is a flow chart of a respiratory monitoring method provided in an embodiment of the present application;
图7是本申请一实施例提供的目标体的关键点示意图;Figure 7 is a schematic diagram of key points of the target provided by an embodiment of the present application;
图8是本申请一实施例提供的目标体的关键点示意图;Figure 8 is a schematic diagram of key points of the target provided by an embodiment of the present application;
图9是本申请一实施例提供的目标体的关键点示意图;Figure 9 is a schematic diagram of key points of the target provided by an embodiment of the present application;
图10是本申请一实施例提供的呼吸监测装置的结构示意图;FIG10 is a schematic diagram of the structure of a respiratory monitoring device provided in one embodiment of the present application;
图11是本申请一实施例提供的电子设备的结构示意图。Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
附图标记:Reference signs:
每个实心点表示一帧图像中目标体的每个关键点;Each solid point represents each key point of the target object in a frame of image;
实心点1表示颈部的关键点; Solid point 1 represents the key point of the neck;
实心点2表示右肩的关键点; Solid point 2 represents the key point of the right shoulder;
实心点3表示左键的关键点; Solid point 3 represents the key point of the left button;
实心点4表示中臀部的关键点; Solid point 4 represents the key point of the mid-hip;
实心点5表示中腹部的关键点;The solid point 5 represents the key point of the midsection;
实心点6表示左腹部的关键点; Solid point 6 represents the key point on the left abdomen;
实心点7表示右腹部的关键点;Solid point 7 represents the key point on the right abdomen;
矩形框A表示腹部区域。Rectangular frame A represents the abdominal area.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details, such as specific system structures and technologies, are provided for purposes of explanation and not limitation, in order to provide a thorough understanding of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and/or components but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
本申请提出一种呼吸监测方法、装置、设备及计算机可读存储介质,该方法适用于各种需要呼吸监测的场景。This application proposes a respiratory monitoring method, device, equipment and computer-readable storage medium. The method is suitable for various scenarios requiring respiratory monitoring.
例如,本申请的呼吸监测方法适用于人体的呼吸监测,便于确定人体是否正常呼吸。For example, the respiratory monitoring method of the present application is suitable for human body respiratory monitoring to facilitate determining whether the human body is breathing normally.
根据人体的睡眠视频,进行呼吸监测,可以获得人体的呼吸状态,比如人体是否正常呼吸以及呼吸频率,进而,可以通过人体的呼吸状态对人体的健康状态进行估计,便于发现人体潜在的病症,从而,能够及时治疗。Based on the human body's sleep video, respiratory monitoring can be used to obtain the human body's breathing status, such as whether the human body is breathing normally and its breathing frequency. Furthermore, the health status of the human body can be estimated through the human body's breathing status, so as to facilitate the discovery of potential illnesses in the human body. , can be treated in time.
其中,本申请的呼吸监测方法可由电子设备来执行。Among them, the respiratory monitoring method of the present application can be performed by electronic equipment.
电子设备可以为智能手机、平板电脑、台式电脑、笔记本电脑、手持设备、服务器等。Electronic devices can be smartphones, tablets, desktop computers, laptops, handheld devices, servers, etc.
另外,电子设备可以包括有显示屏,或者外接有显示屏。In addition, the electronic device may include a display screen, or may be connected to an external display screen.
从而,电子设备可以通过显示屏来显示呼吸监测结果,该呼吸监测结果可以为目标体是否正常呼吸、目标体的呼吸频率、目标体的呼吸频率曲线等。Therefore, the electronic device can display the respiratory monitoring results through the display screen, and the respiratory monitoring results can be whether the target body breathes normally, the breathing frequency of the target body, the breathing frequency curve of the target body, etc.
基于上述场景描述,下面,本申请以电子设备为例,结合附图和应用场景,对本申请实施例提供的呼吸监测方法进行详细阐述。Based on the above scenario description, below, this application uses electronic equipment as an example to elaborate on the respiratory monitoring method provided by the embodiments of this application in conjunction with the drawings and application scenarios.
请参阅图1,图1示出了本申请一实施例提供的呼吸监测方法的流程示意图。Please refer to FIG. 1 , which shows a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application.
如图1所示,本申请提供的呼吸监测方法可以包括:As shown in Figure 1, the respiratory monitoring method provided by this application may include:
S101、从连续采集的多帧图像中,分别获取各自对应的腹部区域。S101. Obtain corresponding abdominal areas from the continuously collected multiple frames of images.
其中,连续采集的多帧图像表示在时间序列上连续的多帧图像。每帧图像至少包括目标体的腹部区域。The continuously acquired multiple frames of images refer to multiple frames of images that are continuous in time series, and each frame of image at least includes the abdominal area of the target body.
从而,电子设备能够获取多帧图像中每帧图像的腹部区域。Therefore, the electronic device can acquire the abdominal area of each frame of the multi-frame images.
每个腹部区域至少包括目标体的腹部。Each abdominal region includes at least the abdomen of the target body.
应理解,目标体每完成一次呼吸,腹部区域就要起伏一次。由此,可以通过腹部区域的变化来体现目标体的呼吸过程。It should be understood that each time the subject completes a breath, the abdominal area rises and falls. Thus, the breathing process of the target body can be reflected through changes in the abdominal area.
S102、确定每个腹部区域的多个相关值。S102. Determine multiple correlation values for each abdominal region.
其中,相关值表示变量之间的线性相关程度。Among them, the correlation value represents the degree of linear correlation between variables.
任意一个腹部区域的多个相关值用于表示任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性。The multiple correlation values of any one abdominal region are used to represent the correlation between any one abdominal region and each of the preset number of abdominal regions.
预设数量的腹部区域包括任意一个腹部区域及在任意一个腹部区域之后连续采集的多个腹部区域,预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数。The preset number of abdominal regions includes any abdominal region and multiple abdominal regions continuously acquired after any abdominal region, and the preset number is greater than or equal to the total number of frames of images that can be acquired by completing multiple breaths.
假设预设数量的多帧图像为2550帧,那么,腹部区域为2550个,则第1个腹部区域的多个相关值包括:第1个腹部区域与第1个腹部区域之间的相关值、第1个腹部区域与第2个腹部区域之间的相关值……第1个腹部区域与第2550个腹部区域之间的相关值。Assuming that the preset number of multi-frame images is 2550 frames, then there are 2550 abdominal areas, then the multiple correlation values of the first abdominal area include: the correlation value between the first abdominal area and the first abdominal area, The correlation value between the 1st abdominal area and the 2nd abdominal area... The correlation value between the 1st abdominal area and the 2550th abdominal area.
在一些实施例中,计算两个腹部区域之间的相关值的公式为:In some embodiments, the formula for calculating the correlation value between two abdominal regions is:
Figure PCTCN2022120264-appb-000001
Figure PCTCN2022120264-appb-000001
其中,A mn是一个腹部区域的矩阵,
Figure PCTCN2022120264-appb-000002
是一个腹部区域矩阵的平均值,B mn是另一个腹部区域的矩阵,
Figure PCTCN2022120264-appb-000003
是另一个腹部区域矩阵的平均值。
Among them, A mn is a matrix of the abdominal region,
Figure PCTCN2022120264-appb-000002
is the average of an abdominal region matrix, B mn is the matrix of another abdominal region,
Figure PCTCN2022120264-appb-000003
is the average of another abdominal region matrix.
S103、将每个腹部区域的多个相关值进行划分,得到多组相关值。S103. Divide multiple correlation values of each abdominal region to obtain multiple sets of correlation values.
基于S102,可以得到每个腹部区域的多个相关值,由于每完成一次呼吸所能采集到多帧图像,即多个腹部区域,因此,多个腹部区域的多个相关值可以形成一组相关值,从而,电子设备可以得到多组相关值。Based on S102, multiple correlation values of each abdominal region can be obtained. Since multiple frames of images, that is, multiple abdominal regions, can be collected for each breath, multiple correlation values of multiple abdominal regions can form a set of correlations. value, so that the electronic device can obtain multiple sets of related values.
每组相关值用于表征目标体完成的一次呼吸。Each set of correlation values is used to characterize a breath completed by the target body.
如图2所示,预设数量为2550帧,横纵坐标分别为连续采集的2550帧图像,其中,每帧图像关联一个腹部区域。针对纵坐标的帧数而言,从图2中可以看出,多个腹部区域的多个相关值可以形成一组相关值,即一个灰色区域。As shown in Figure 2, the preset number is 2550 frames, and the horizontal and vertical coordinates are 2550 frames of continuously collected images, where each frame of image is associated with an abdominal region. Regarding the number of frames on the ordinate, it can be seen from Figure 2 that multiple correlation values of multiple abdominal areas can form a set of correlation values, that is, a gray area.
图2中,在固定纵坐标的时候,观察其横坐标增大的过程,每经过一个灰色区域,即可认为是完成了一次呼吸。In Figure 2, when the ordinate is fixed, observe the increasing process of the abscissa. Each time it passes through a gray area, it can be considered that a breath has been completed.
例如,对于纵坐标的500帧而言,500帧对应的横坐标包括两个灰色区域,则两个灰色区域分别表示目标体完成的一次呼吸。For example, for 500 frames on the ordinate, the abscissa corresponding to 500 frames includes two gray areas, and the two gray areas respectively represent one breath completed by the target body.
S104、根据多组相关值,确定目标体是否正常呼吸。S104. Determine whether the target body is breathing normally based on multiple sets of correlation values.
应理解,目标体正常呼吸时,腹部区域的状态可以满足预设呼吸规律,比如,目标体每完成一次呼吸,腹部区域起伏一次。It should be understood that when the target body breathes normally, the state of the abdominal area can meet the preset breathing pattern. For example, every time the target body completes a breath, the abdominal area rises and falls once.
那么,根据腹部区域之间的相关性,计算的每组相关值也必然满足类似的相关值规律,比如,目标体每完成一次呼吸,一组相关值可以经过一次先减小再增大的过程,或者,目标体每完成一次呼吸,一组相关值对应的所能采集到的图像的帧数在预设范围内。Then, according to the correlation between abdominal areas, each set of calculated correlation values must also satisfy similar correlation value rules. For example, every time the target body completes a breath, a set of correlation values can go through a process of first decreasing and then increasing. , or, every time the target body completes a breath, the number of frames of images that can be collected corresponding to a set of correlation values is within the preset range.
由此,电子设备可以根据每组相关值的相关值规律,确定目标体是否正常呼吸。As a result, the electronic device can determine whether the target body is breathing normally based on the correlation value rules of each group of correlation values.
若此组相关值满足相关值规律,则电子设备可以确定当前目标体正常呼吸。If this set of correlation values satisfies the correlation value rule, the electronic device can determine that the current target body is breathing normally.
若此组相关值不满足相关值规律,则电子设备可以确定当前目标体异常呼吸。If this set of correlation values does not satisfy the correlation value rules, the electronic device can determine that the current target body is breathing abnormally.
继续结合图2,针对纵坐标的帧数而言,从图2中可以看出,从第1帧到第1500帧对应的每组相关值均满足相关值规律,可以确定目标体在第1帧到第1500帧的图像的时间内均正常呼吸,从第1500帧到第2000帧之间对应的其中两组相关值不满足相关值规律,可以确定目标体此时异常呼吸。Continuing to combine with Figure 2, in terms of the number of frames on the ordinate, it can be seen from Figure 2 that each set of correlation values corresponding to the 1st frame to the 1500th frame satisfies the correlation value rule, and it can be determined that the target object is in the 1st frame The target body is breathing normally from the 1500th frame to the 1500th frame. The corresponding two sets of correlation values from the 1500th frame to the 2000th frame do not satisfy the correlation value rule. It can be determined that the target body is breathing abnormally at this time.
另外,根据S102的公式的计算结果以及分析可以了解:当目标体的腹部区域从起始位置的到凸起程度最大时,即完成一次吸气过程,凸起程度最大时的腹部区域与起始位置的起始腹部区域之间的相关值最小。当腹部区域由凸起程度最大逐渐回落到起始位置后,即完成一次吐气过程,此时腹部区域的位置与起始腹部区域的起始位置相同。因此,在起始腹部区域固定时,相关值每经过一次先减小再增大的过程,即可认为目标体完成了一次呼吸。In addition, according to the calculation results and analysis of the S102 formula, it can be understood that when the abdominal area of the target body reaches the maximum bulge from the starting position, an inhalation process is completed. The abdominal area when the bulge is maximum is different from the starting position. The correlation value between the starting abdominal regions of the location is the smallest. When the abdominal area gradually drops back to the starting position from the maximum bulge, an exhalation process is completed. At this time, the position of the abdominal area is the same as the starting position of the starting abdominal area. Therefore, when the initial abdominal area is fixed, each time the correlation value first decreases and then increases, it can be considered that the target body has completed a breath.
本申请的呼吸监测方法,电子设备从连续采集的多帧图像中,分别获取各自对应的腹部区域,能够为通过腹部区域之间的相关性计算每个腹部区域的多个相关值做好数据准备。电子设备可确定每个腹部区域的多个相关值,并将每个腹部区域的多个相关值进行划分,得到多组相关值,电子设备可以根据多组相关值中的每组相关值是否满足相关值规律,确定目标体当前是否正常呼吸。从而,电子设备可以通过连续采集的多帧图像快速准确的确定目标体是否正常呼吸,简化了操作流程,提高了呼吸监测的效率,保证了呼吸监测结果的精确性,提升了呼吸监测的便捷性,适用于各种需要 监测用户呼吸的日常场景。In the respiratory monitoring method of this application, the electronic device obtains the corresponding abdominal areas from the continuously collected multiple frames of images, and can prepare the data for calculating multiple correlation values of each abdominal area through the correlation between the abdominal areas. . The electronic device can determine multiple correlation values for each abdominal area and divide the multiple correlation values for each abdominal area to obtain multiple sets of correlation values. The electronic device can determine whether each set of correlation values in the multiple sets of correlation values satisfies Correlation value rules determine whether the target body is currently breathing normally. Therefore, the electronic device can quickly and accurately determine whether the target body is breathing normally through continuously collected multi-frame images, simplifying the operation process, improving the efficiency of respiratory monitoring, ensuring the accuracy of respiratory monitoring results, and improving the convenience of respiratory monitoring. , suitable for various daily scenarios where user breathing needs to be monitored.
基于上述图1所示实施例的描述,电子设备还可以根据多组相关值,确定多个呼吸频率。其中,每个呼吸频率也可用于表示目标体是正常呼吸还是异常呼吸。Based on the above description of the embodiment shown in Figure 1, the electronic device can also determine multiple breathing frequencies based on multiple sets of correlation values. Among them, each respiratory frequency can also be used to indicate whether the target body is breathing normally or abnormally.
下面,结合图3,详细介绍本申请的呼吸监测方法的具体实现过程。Next, with reference to Figure 3, the specific implementation process of the respiratory monitoring method of the present application is introduced in detail.
请参阅图3,图3示出了本申请一实施例提供的呼吸监测方法的流程示意图。Please refer to Figure 3. Figure 3 shows a schematic flow chart of a respiratory monitoring method provided by an embodiment of the present application.
如图3所示,本申请提供的呼吸监测方法可以包括:As shown in Figure 3, the respiratory monitoring method provided by this application may include:
S201、从连续采集的多帧图像中,分别获取各自对应的腹部区域。S201. Obtain corresponding abdominal areas from the continuously collected multiple frames of images.
S202、确定每个腹部区域的多个相关值。S202. Determine multiple correlation values for each abdominal region.
S203、将每个腹部区域的多个相关值进行划分,得到多组相关值。S203. Divide multiple correlation values of each abdominal region to obtain multiple sets of correlation values.
其中,S201、S202、和S203分别与图1所示实施例中的S101、S102、和S103实现方式类似,本申请此处不再赘述。Among them, S201, S202, and S203 are respectively implemented similarly to S101, S102, and S103 in the embodiment shown in FIG. 1, and will not be described again in this application.
S204、将每组相关值中位于预设位置的相关值确定为目标相关值。S204. Determine the correlation value located at the preset position in each group of correlation values as the target correlation value.
其中,预设位置为每组相关值对应的灰色区域的重心位置。Among them, the preset position is the center of gravity position of the gray area corresponding to each set of correlation values.
目标相关值为每组相关值的重心位置的相关值。The target correlation value is the correlation value at the center of gravity of each group of correlation values.
另外,目标相关值可以理解为该组相关值中的最小相关值。In addition, the target correlation value can be understood as the minimum correlation value in the set of correlation values.
电子设备将预设位置的相关值确定为目标相关值,为便于计算呼吸频率做好数据准备。The electronic device determines the correlation value at the preset position as the target correlation value, and prepares the data for easy calculation of the respiratory frequency.
另外,继续结合图2,电子设备为便于计算呼吸频率,可将图2中的多组相关值通过连通区域技术提取出来,得到图4。如图4所示,目标相关值为每个黑色实心区域的重心位置的相关值。In addition, continuing with Figure 2, in order to facilitate the calculation of respiratory frequency, the electronic device can extract multiple sets of correlation values in Figure 2 through connected area technology to obtain Figure 4. As shown in Figure 4, the target correlation value is the correlation value of the center of gravity position of each black solid area.
S205、确定每组相关值中与目标相关值关联的第一腹部区域和第二腹部区域。S205. Determine the first abdominal region and the second abdominal region associated with the target correlation value in each set of correlation values.
应理解,每个相关值是根据两个腹部区域的相关性计算出来的,因此,每个目标相关值可对应两个腹部区域,即第一腹部区域和第二腹部区域。It should be understood that each correlation value is calculated based on the correlation of two abdominal areas, therefore, each target correlation value may correspond to two abdominal areas, that is, a first abdominal area and a second abdominal area.
继续结合图4,从图4可以看出,每个目标腹部区域分别对应一个横坐标,一个纵坐标,即每个目标相关值分别两个腹部区域。Continuing with Figure 4, it can be seen from Figure 4 that each target abdominal area corresponds to an abscissa and an ordinate, that is, there are two abdominal areas for each target correlation value.
S206、确定每个相同的第一腹部区域所对应的多个目标相关值。S206. Determine multiple target correlation values corresponding to each same first abdominal area.
应理解,S102中的预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数。It should be understood that the preset number in S102 is greater than or equal to the total number of frames of images that can be collected after completing multiple breaths.
由此,多个目标相关值的数量等于多次呼吸的次数。Thus, the number of multiple target correlation values is equal to the number of breaths.
例如,上述的多次呼吸为2次,则每个相同的第一腹部区域对应2个目标相关值。For example, if the above multiple breaths are 2, then each same first abdominal area corresponds to 2 target related values.
继续结合图4,从图4可以看出,每个相同的纵坐标对应2组相关值,即对应2个目标相关值。Continuing to combine with Figure 4, it can be seen from Figure 4 that each same ordinate corresponds to 2 sets of correlation values, that is, corresponds to 2 target correlation values.
S207、针对任意一个相同的第一腹部区域所对应的多个目标相关值而言,分别确定与任意两个目标相关值各自关联的两个第二腹部区域,并根据两个第二腹部区域之间的帧数差值,得到一个呼吸频率。S207. For multiple target correlation values corresponding to any same first abdominal area, determine two second abdominal areas respectively associated with any two target correlation values, and determine the relationship between the two second abdominal areas according to The difference in the number of frames between them is used to obtain a respiratory frequency.
基于S206,可以确定,多个目标相关值的数量等于多次呼吸的次数。那么,两个第二腹部区域之间的帧数差值,相当于目标体完成一次呼吸所能采集到的图像的帧数。Based on S206, it can be determined that the number of multiple target related values is equal to the number of multiple breaths. Then, the difference in the number of frames between the two second abdominal regions is equivalent to the number of frames of images that can be collected by the target body after completing one breath.
在一些实施例中,呼吸频率的计算公式为:呼吸频率=(60*f)/m。In some embodiments, the calculation formula of respiratory frequency is: respiratory frequency = (60*f)/m.
其中,m表示相邻两组相关值的重心之间的横坐标的差值,即相邻两个第二腹部区域之间的帧数差值,f表示帧率。Among them, m represents the difference in the abscissa between the centers of gravity of two adjacent groups of correlation values, that is, the frame number difference between two adjacent second abdominal regions, and f represents the frame rate.
假设m为120帧,即目标体完成一次呼吸所能采集到的图像的帧数为120帧,帧率为30。Suppose m is 120 frames, that is, the number of frames that can be collected by the target body after completing one breath is 120 frames, and the frame rate is 30.
那么,呼吸频率=(60*30)/120=15次/min,即4秒呼吸一次。Then, respiratory frequency = (60*30)/120 = 15 times/min, that is, one breath every 4 seconds.
从而,电子设备可以根据目标体完成一次呼吸所能采集到的图像的帧数,计算该次呼吸的呼吸频率,便于用户根据呼吸频率判断目标体是否正常呼吸。Therefore, the electronic device can calculate the breathing frequency of this breath based on the number of frames of images that can be collected when the target body completes one breath, so that the user can determine whether the target body is breathing normally based on the breathing frequency.
其中,在任意一个相同的第一腹部区域对应于多个目标相关值时,多个目标相关值分别归属的各组相关值用于表示目标体正常呼吸。Wherein, when any same first abdominal region corresponds to multiple target correlation values, each group of correlation values to which the multiple target correlation values respectively belong is used to represent normal breathing of the target body.
在任意一个相同的第一腹部区域对应于一个目标相关值时,一个目标相关值归属的一组相关值用于表示目标体异常呼吸。When any same first abdominal area corresponds to a target correlation value, a group of correlation values to which one target correlation value belongs is used to represent abnormal breathing of the target body.
继续结合图4,图4中每个相同的纵坐标对应2个目标相关值。Continuing to combine with Figure 4, each same ordinate in Figure 4 corresponds to two target correlation values.
从图4可以看出,在任意一个相同的第一腹部区域对应于2个目标相关值时,2个目标相关值分别归属的2组相关值用于表示目标体正常呼吸。图4中,目标体在第1帧到第1500帧的图像的时长内均正常呼吸。It can be seen from Figure 4 that when any same first abdominal area corresponds to two target correlation values, the two sets of correlation values to which the two target correlation values belong respectively are used to represent the normal breathing of the target body. In Figure 4, the target body breathes normally during the duration of the image from frame 1 to frame 1500.
在任意一个相同的第一腹部区域对应于1个目标相关值时,1个目标相关值归属的1组相关值用于表示目标体异常呼吸。图4中,目标体在第1500帧到第2000帧之间的其中多帧对应1个目标相关值,则电子设备可以确定目标体此时异常呼吸。When any same first abdominal area corresponds to one target correlation value, a group of correlation values to which one target correlation value belongs is used to indicate abnormal breathing of the target body. In Figure 4, if the target body corresponds to one target correlation value in multiple frames between the 1500th frame and the 2000th frame, then the electronic device can determine that the target body is breathing abnormally at this time.
也就是说,电子设备可以根据任意一个相同的第一腹部区域对应的目标相关值的数量,来判断目标体是否正常呼吸。In other words, the electronic device can determine whether the target body is breathing normally based on the number of target-related values corresponding to any same first abdominal area.
S208、在确定目标体呼吸异常时,可显示用于指示目标体异常呼吸的警示信息。S208. When it is determined that the target body's breathing is abnormal, warning information indicating the target body's abnormal breathing may be displayed.
其中,S208为可选步骤。Among them, S208 is an optional step.
电子设备可以包括一个显示界面,从而,电子设备在确定目标体呼吸异常时,可在该显示界面中显示警示信息。例如,显示警报“error”。便于提醒用户当前目标体出现了异常呼吸。The electronic device may include a display interface, so that when the electronic device determines that the target body's breathing is abnormal, the electronic device may display warning information in the display interface. For example, display the alert "error". It is convenient to remind the user that the current target body is breathing abnormally.
本申请对显示界面的具体实现方式不做限定。This application does not limit the specific implementation of the display interface.
S209、根据每个呼吸频率和多帧图像的时长,绘制呼吸频率曲线。S209. Draw a respiratory frequency curve based on each respiratory frequency and the duration of the multi-frame image.
其中,S209为可选步骤。Among them, S209 is an optional step.
呼吸频率可以为S207中计算得到的呼吸频率。The respiratory frequency may be the respiratory frequency calculated in S207.
多帧图像的时长可以为S101中连续采集的多帧图像所对应的时长。The duration of the multi-frame images may be the duration corresponding to the multiple frames of images continuously collected in S101.
呼吸频率曲线用于表示目标体是处于呼气状态还是处于吸气状态。The breathing rate curve is used to indicate whether the target is in an exhalation state or an inhalation state.
在一些实施例中,上述呼吸频率曲线为正弦函数曲线。其中,正弦函数的公式为:In some embodiments, the respiratory frequency curve is a sinusoidal function curve. Among them, the formula of the sine function is:
y=sin(wt);y=sin(wt);
w=π*k/30;w=π*k/30;
k*T=60;k*T=60;
T=2π/w。T=2π/w.
其中,t表示连续采集的多帧图像所对应的时长,w表示正弦函数的频率,T表示正弦函数的周期,k表示呼吸频率为k次/min,每完成一次呼吸对应正弦函数的一个周期。Among them, t represents the duration corresponding to the continuously collected multiple frames of images, w represents the frequency of the sine function, T represents the period of the sine function, k represents the breathing frequency of k times/min, and each completed breath corresponds to one cycle of the sine function.
图5为连续采集的多帧图像所对应的时长为30秒的正弦函数曲线,横坐标为时间,单位为秒,纵坐标表示目标体的呼吸状态,增大代表吸气,减小代表吐气。图5 中,20秒内目标体的呼吸次数为6次,则每分钟呼吸18次,呼吸频率为18次/min。另外,电子设备可以根据图5中的呼吸频率曲线的变化来确定目标体的呼吸状态。Figure 5 shows a sinusoidal function curve with a duration of 30 seconds corresponding to multiple frames of images collected continuously. The abscissa is time in seconds. The ordinate represents the breathing state of the target body. An increase represents inhalation and a decrease represents expiration. In Figure 5, the number of breaths of the target body in 20 seconds is 6, so the breathing rate is 18 times per minute, and the breathing frequency is 18 times/min. In addition, the electronic device can determine the respiratory state of the target body based on changes in the respiratory frequency curve in FIG. 5 .
从而,电子设备可绘制呼吸频率曲线,并在上述的显示界面中显示该呼吸频率曲线。电子设备借助呼吸频率曲线,使得目标体的呼吸状态可视化,便于用户更加直观地了解目标体的呼吸状态。Therefore, the electronic device can draw a respiratory frequency curve and display the respiratory frequency curve in the above-mentioned display interface. The electronic device uses the respiratory frequency curve to visualize the breathing status of the target body, allowing users to understand the breathing status of the target body more intuitively.
本申请中,电子设备可确定与任意两个目标相关值各自关联的两个第二腹部区域,并根据两个第二腹部区域之间的帧数差值,确定目标体每完成一次呼吸所能采集到的图像的帧数,根据该帧数可以得到一个呼吸频率,从而,电子设备可借助该呼吸频率,确定目标体是否正常呼吸。另外,电子设备可在目标体呼吸异常时,显示警示信息,便于及时提醒用户目标体出现了异常呼吸。此外,电子设备还可绘制呼吸频率曲线,便于用户直观地了解目标体的呼吸状态。In this application, the electronic device can determine two second abdominal areas associated with any two target correlation values, and determine what the target body can do each time it completes one breath based on the frame number difference between the two second abdominal areas. Based on the frame number of the collected image, a respiratory frequency can be obtained. Therefore, the electronic device can use the respiratory frequency to determine whether the target body is breathing normally. In addition, the electronic device can display warning information when the target body is breathing abnormally, so as to promptly remind the user that the target body is breathing abnormally. In addition, the electronic device can also draw a respiratory frequency curve, allowing users to intuitively understand the respiratory status of the target body.
基于上述图1所示实施例的描述,电子设备从连续采集的多帧图像中,分别获取各自对应的腹部区域时,可通过目标体的颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点,确定目标体的腹部区域。Based on the description of the embodiment shown in Figure 1 above, when the electronic device obtains the corresponding abdominal areas from the continuously collected multiple frames of images, it can use the key points of the neck of the target body, the key points of the left shoulder, and the key points of the right shoulder. Key points, and key points on the mid-hip, determine the abdominal area of the target body.
下面,结合图6,详细介绍本申请的呼吸监测方法的具体实现过程。Next, with reference to Figure 6, the specific implementation process of the respiratory monitoring method of the present application will be introduced in detail.
电子设备可获取目标体的颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点,根据颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点,确定中腹部的关键点,进而,在中腹部的关键点的两侧确定右腹部的关键点和左腹部的关键点,根据左肩的关键点、右肩的关键点、右腹部的关键点、和左腹部的关键点,确定腹部区域。The electronic device can obtain the key points of the target's neck, left shoulder, right shoulder, and mid-hip. According to the key points of the neck, left shoulder, right shoulder, and Determine the key points of the middle abdomen at the key points of the mid-hips, and then determine the key points of the right abdomen and the key points of the left abdomen on both sides of the key points of the mid-abdomen. According to the key points of the left shoulder, the key points of the right shoulder, and the key points of the right The key points of the abdomen, and the key points of the left abdomen, determine the abdominal area.
在一些实施中,电子设备可通过人体姿态估计算法,获取目标体的各个部位的关键点,从各个部位的关键点中确定颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点。In some implementations, the electronic device can obtain the key points of each part of the target body through the human posture estimation algorithm, and determine the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the target body from the key points of each part. The key point of the mid-buttocks.
如图7所示,各个实心点为电子设备可通过人体姿态估计算法获取的目标体的各个部位的关键点。其中,实心点1为颈部的关键点、实心点2为右肩的关键点,实心点3为左肩的关键点,实心点4为中臀部的关键点。As shown in Figure 7, each solid point is a key point of each part of the target body that the electronic device can obtain through the human posture estimation algorithm. Among them, solid point 1 is the key point of the neck, solid point 2 is the key point of the right shoulder, solid point 3 is the key point of the left shoulder, and solid point 4 is the key point of the middle hip.
本申请可将人体姿态估计算法存储在电子设备和/或与电子设备通信的存储设备中,方便电子设备调用该人体姿态估计算法获取目标体的各个部位的关键点。The present application can store a human body posture estimation algorithm in an electronic device and/or a storage device that communicates with the electronic device, so that the electronic device can conveniently call the human body posture estimation algorithm to obtain key points of various parts of the target body.
其中,本申请对存储设备的存储方式和具体类型不做限定。Among them, this application does not limit the storage method and specific type of the storage device.
请参阅图6,图6示出了本申请一实施例提供的呼吸监测方法的流程示意图。Please refer to FIG. 6 , which shows a schematic flowchart of a respiratory monitoring method provided by an embodiment of the present application.
如图6所示,本申请提供的呼吸监测方法可以包括:As shown in Figure 6, the respiratory monitoring method provided by this application may include:
S301、从目标体的呼吸视频中,获取多帧图像。S301. Obtain multiple frames of images from the breathing video of the target body.
其中,目标体的呼吸视频通常为目标体在处于睡眠状态时采集的视频。Among them, the breathing video of the target body is usually a video collected when the target body is in a sleep state.
应理解,目标体在处于睡眠状态时,翻身或者活动的情况较少,可以将腹部区域暴露,便于电子设备根据腹部区域的起伏,准确监测目标体的呼吸。It should be understood that when the target body is in a sleeping state, it rarely turns over or moves, and the abdominal area can be exposed, so that the electronic device can accurately monitor the breathing of the target body based on the ups and downs of the abdominal area.
此外,电子设备基于目标体在处于睡眠状态时采集的视频,监测目标体的呼吸,可以确定目标体的睡眠状态,以及与睡眠状态相关的健康信息。In addition, the electronic device monitors the target's breathing based on the video collected when the target is sleeping, and can determine the target's sleep state and health information related to the sleep state.
多帧图像为目标体的呼吸视频在时间序列上连续的多帧图像。The multi-frame image is a continuous multi-frame image of the breathing video of the target body in time sequence.
在一些实施方式中,多帧图像为目标体的整段呼吸视频中的在时间序列上连续的 多帧图像。In some embodiments, the multi-frame images are multi-frame images that are continuous in time sequence in the entire breathing video of the target body.
在另一些实施方式中,多帧图像为在目标体的整段呼吸视频中截取的在时间序列上连续的多帧图像。In other embodiments, the multi-frame images are consecutive multi-frame images in time series captured from the entire breathing video of the target body.
另外,上述目标体在处于睡眠状态时采集的视频的时长需大于10秒。可以理解,如果上述视频的时长小于10秒,则呼吸的次数太少,难以计算出准确的结果。In addition, the duration of the video collected when the above-mentioned target body is sleeping must be greater than 10 seconds. It can be understood that if the duration of the above video is less than 10 seconds, the number of breaths is too small, making it difficult to calculate accurate results.
S302、对每帧图像进行关键点检测,得到颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点。S302. Perform key point detection on each frame of image to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip.
其中,电子设备采用人体姿态估计算法对每帧图像进行关键点检测,可以得到目标体的多个部位的关键点,每个关键点用于标识目标体的各个部位。Among them, the electronic device uses a human posture estimation algorithm to detect key points in each frame of the image, and can obtain key points of multiple parts of the target body, and each key point is used to identify each part of the target body.
例如,多个部位的关键点可以包括:头部的关键点、颈部的关键点、左肩的关键点、右肩的关键点、肘部的关键点、手腕的关键点、中臀部的关键点、腰部的关键点、膝盖的关键点等目标体的各个部位所在的关键点。For example, the key points of multiple parts can include: key points of the head, key points of the neck, key points of the left shoulder, key points of the right shoulder, key points of the elbow, key points of the wrist, and key points of the middle hip. , the key points of the waist, the key points of the knees and other key points of various parts of the target body.
进而,电子设备可以从目标体的多个部位的关键点中确定颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点。Furthermore, the electronic device can determine the key point of the neck, the key point of the left shoulder, the key point of the right shoulder, and the key point of the middle hip from the key points of multiple parts of the target body.
S303、在颈部的关键点和中臀部的关键点之间的连线上,将距离中臀部的关键点预设长度的位置确定为中腹部的关键点。S303. On the connection line between the key point of the neck and the key point of the mid-hip, determine the position at a preset length from the key point of the mid-hip as the key point of the mid-abdomen.
基于S302,电子设备可以得到颈部的关键点、左肩的关键点、右肩的关键点、和中臀部的关键点。从而,电子设备可以在颈部的关键点和中臀部的关键点之间的连线上,确定中腹部的关键点。Based on S302, the electronic device can obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the mid-hip. Therefore, the electronic device can determine the key point of the mid-abdomen on the connection line between the key point of the neck and the key point of the mid-hip.
在一些实施例中,中腹部的关键点可以为上述连线上,距离中臀部的关键点预设长度的位置的点。In some embodiments, the key point of the mid-abdomen may be a point on the above-mentioned connection line that is a preset length away from the key point of the mid-buttocks.
其中,预设长度为预先确定的。例如,预设长度可以为颈部的关键点到中臀部的关键点之间的长度的3/4。Wherein, the preset length is predetermined. For example, the preset length can be 3/4 of the length from the key point of the neck to the key point of the mid-hip.
如图8所示,在实心点1与实心点4之间的连线上,电子设备可将距离中臀部的关键点预设长度的位置的点,即实心点5,作为中臀部的关键点。As shown in Figure 8, on the connection line between solid point 1 and solid point 4, the electronic device can determine the point at a preset length from the key point of the mid-hip, that is, solid point 5, as the key point of the mid-hip. .
S304、在中腹部的关键点靠近右肩的关键点的一侧,确定右腹部的关键点。S304. Determine the key point of the right abdomen on the side where the key point of the middle abdomen is close to the key point of the right shoulder.
S305、在中腹部的关键点靠近左肩的关键点的一侧,确定左腹部的关键点。S305. Determine the key point of the left abdomen on the side where the key point of the middle abdomen is close to the key point of the left shoulder.
基于S303,电子设备可以得到中腹部的关键点,从而,电子设备可以在中腹部的关键点的左右两侧来确定右腹部的关键点和左腹部的关键点。Based on S303, the electronic device can obtain the key point of the mid-abdomen. Therefore, the electronic device can determine the key point of the right abdomen and the key point of the left abdomen on the left and right sides of the key point of the mid-abdomen.
其中,电子设备可以将颈部的关键点和右肩的关键点之间的距离,作为中腹部的关键点和右腹部的关键点之间的距离,将颈部的关键点和左肩的关键点之间的距离,作为中腹部的关键点和左腹部的关键点之间的距离。即中腹部的关键点和右腹部的关键点之间的距离,与颈部的关键点和右肩的关键点之间的距离相等。中腹部的关键点和左腹部的关键点之间的距离,与颈部的关键点和左肩的关键点之间的距离相等。Among them, the electronic device can calculate the distance between the key point of the neck and the key point of the right shoulder as the distance between the key point of the midsection and the key point of the right abdomen, and the distance between the key point of the neck and the key point of the left shoulder. The distance between, as the distance between the key point of the mid-abdomen and the key point of the left abdomen. That is, the distance between the key point of the midsection and the key point of the right abdomen is equal to the distance between the key point of the neck and the key point of the right shoulder. The distance between the keypoints on the midsection and the keypoints on the left abdomen is the same as the distance between the keypoints on the neck and the keypoints on the left shoulder.
从而,电子设备可以得到精确的右腹部的关键点和左腹部的关键点。Therefore, the electronic device can obtain accurate key points of the right abdomen and key points of the left abdomen.
在一些实施例中,电子设备可以将目标体的多个部位的关键点投影到同一坐标系中,得到颈部的关键点、左肩的关键点、右肩的关键点、和中腹部的关键点各自的坐标。从而,电子设备可以计算得到右腹部的关键点和左腹部的关键点的坐标。In some embodiments, the electronic device can project the key points of multiple parts of the target body into the same coordinate system to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the midsection. their respective coordinates. Therefore, the electronic device can calculate the coordinates of the key point on the right abdomen and the key point on the left abdomen.
基于上述描述,电子设备可以通过坐标表示颈部的关键点、左肩的关键点、右肩 的关键点、和中腹部的关键点,颈部的关键点的坐标为(x 1,y 1)、右肩的关键点的坐标为(x 2,y 2)、左肩的关键点的坐标为(x 3,y 3)、及中腹部的关键点的坐标为(x 4,y 4)。 Based on the above description, the electronic device can represent the key points of the neck, the key points of the left shoulder, the key points of the right shoulder, and the key points of the midsection through coordinates. The coordinates of the key points of the neck are (x 1 , y 1 ), The coordinates of the key point on the right shoulder are (x 2 , y 2 ), the coordinates of the key point on the left shoulder are (x 3 , y 3 ), and the coordinates of the key point on the midsection are (x 4 , y 4 ).
上述计算右腹部的关键点和左腹部的关键点的坐标的公式为:The above formula for calculating the coordinates of the key points on the right abdomen and the key points on the left abdomen is:
(x a,y a)=(x 1-x 2,y 1-y 2) (x a , y a )=(x 1 -x 2 , y 1 -y 2 )
(x b,y b)=(x 1-x 3,y 1-y 3) (x b , y b )=(x 1 -x 3 , y 1 -y 3 )
(x c,y c)=(x 4-x a,y 4-y a) (x c , y c )=(x 4 -x a , y 4 -y a )
(x d,y d)=(x 4-x b,y 4-y b) (x d , y d ) = (x 4 −x b , y 4 −y b )
其中,(x c,y c)用于表示右腹部的关键点的坐标,(x d,y d)用于表示左腹部的关键点的坐标。 Among them, (x c , y c ) is used to represent the coordinates of the key point on the right abdomen, and (x d , y d ) is used to represent the coordinates of the key point on the left abdomen.
继续结合图8,电子设备在实心点5靠近实心点2的一侧,确定右腹部的关键点,即实心点7,以及在实心点5靠近实心点3的一侧,确定左腹部的关键点,即实心点6。Continuing to combine with Figure 8, the electronic device determines the key point of the right abdomen, that is, solid point 7, on the side of solid point 5 close to solid point 2, and determines the key point of the left abdomen on the side of solid point 5 close to solid point 3. , that is, solid point 6.
从而,电子设备借助中腹部的关键点,可以得到右腹部的关键点和左腹部的关键点,为根据右腹部的关键点和左腹部的关键点确定腹部区域做好了数据准备。Thus, the electronic device can obtain the key points of the right abdomen and the key points of the left abdomen with the help of the key points of the middle abdomen, and prepare data for determining the abdominal area according to the key points of the right abdomen and the key points of the left abdomen.
S306、将左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点投影到同一坐标系中。S306. Project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen into the same coordinate system.
S307、根据坐标系,确定左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标和左腹部的关键点的坐标中的最小横坐标、最大横坐标、最小纵坐标及最大纵坐标。S307. According to the coordinate system, determine the minimum abscissa, maximum abscissa, and minimum ordinate among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. and the maximum ordinate.
其中,电子设备可以将左肩的关键点、右肩的关键点、右腹部的关键点、和左腹部的关键点投影到同一坐标系中,可以得到左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标、和左腹部的关键点的坐标。Among them, the electronic device can project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen into the same coordinate system, and can obtain the coordinates of the key points of the left shoulder, the coordinates of the key points of the right shoulder, the coordinates of the key points of the right abdomen, and the coordinates of the key points of the left abdomen.
从而,电子设备可以确定左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标、和左腹部的关键点的坐标中的最小横坐标、最大横坐标、最小纵坐标、及最大纵坐标。电子设备可以为根据最小横坐标、最大横坐标、最小纵坐标、及最大纵坐标确定腹部区域做好数据准备。Therefore, the electronic device can determine the minimum abscissa, the maximum abscissa, and the minimum ordinate among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. , and the maximum ordinate. The electronic device can prepare data for determining the abdominal area based on the minimum abscissa, the maximum abscissa, the minimum ordinate, and the maximum ordinate.
S308、将最小横坐标和最大横坐标分别沿着坐标系的纵轴延伸,将最小纵坐标和最大纵坐标分别沿着坐标系的横轴延伸,形成四边形区域。S308 , extending the minimum horizontal coordinate and the maximum horizontal coordinate along the vertical axis of the coordinate system respectively, and extending the minimum vertical coordinate and the maximum vertical coordinate along the horizontal axis of the coordinate system respectively, to form a quadrilateral area.
S309、将四边形区域,确定为最大的腹部区域。S309. Determine the quadrilateral area as the largest abdominal area.
如图9所示,电子设备可在实心点2、实心点3、实心点6、和实心点7中确定最小横坐标、最大横坐标、最小纵坐标、及最大纵坐标。从图9中可以看出,最小横坐标为实心点6的横坐标,最大横坐标为实心点2的横坐标,最小纵坐标为实心点7的纵坐标,最大纵坐标为实心点3的纵坐标。As shown in FIG. 9 , the electronic device can determine the minimum abscissa, the maximum abscissa, the minimum ordinate, and the maximum ordinate in solid points 2 , 3 , 6 , and 7 . It can be seen from Figure 9 that the minimum abscissa is the abscissa of solid point 6, the maximum abscissa is the abscissa of solid point 2, the minimum ordinate is the ordinate of solid point 7, and the maximum ordinate is the ordinate of solid point 3 coordinate.
从而,电子设备可将最小横坐标和最大横坐标分别沿着坐标系的纵轴延伸,将最小纵坐标和最大纵坐标分别沿着坐标系的横轴延伸,在延伸的过程中,四条线可以相交,连接成一个四边形区域。Therefore, the electronic device can extend the minimum abscissa and the maximum abscissa along the vertical axis of the coordinate system, and the minimum ordinate and the maximum ordinate respectively along the horizontal axis of the coordinate system. During the extension process, the four lines can Intersect and connect to form a quadrilateral area.
进而,终端设备可以将上述四边形区域,确定为最大的腹部区域。Furthermore, the terminal device can determine the above-mentioned quadrilateral area as the largest abdominal area.
继续结合图9,可以看出,图9中形成的四边形区域为最大的腹部区域。Continuing with FIG. 9 , it can be seen that the quadrilateral area formed in FIG. 9 is the largest abdominal area.
电子设备获得最大的腹部区域,可更准确地通过腹部区域来计算相关值,从而, 电子设备可以根据准确的相关值数据确定目标体的呼吸频率,以及判断目标体是否正常呼吸。The electronic device obtains the largest abdominal area and can more accurately calculate the correlation value through the abdominal area. Therefore, the electronic device can determine the respiratory frequency of the target body based on the accurate correlation value data and determine whether the target body is breathing normally.
本申请中,电子设备可以通过关键点检测,得到颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点,并在颈部的关键点和中臀部的关键点之间的连线上确定中腹部的关键点,为在中腹部的关键点的两侧确定右腹部的关键点和左腹部的关键点做好数据准备。电子设备可以在中腹部的关键点靠近右肩的关键点的一侧,确定右腹部的关键点,以及在中腹部的关键点靠近左肩的关键点的一侧,确定左腹部的关键点,电子设备可以快速的获取右腹部的关键点和左腹部的关键点,从而,电子设备可以根据左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点确定腹部区域。另外,电子设备还可以根据左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标和左腹部的关键点的坐标中,确定最小横坐标、最大横坐标、最小纵坐标及最大纵坐标,形成四边形区域,将此区域作为最大的腹部区域,从而,电子设备可以根据最大的腹部区域更准确地通过腹部区域来计算相关值。In this application, the electronic device can obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip through key point detection, and between the key points of the neck and the key points of the middle hip Determine the key points of the mid-abdomen on the connecting line between them, and prepare the data for determining the key points of the right abdomen and the key points of the left abdomen on both sides of the key points of the mid-abdomen. The electronic device can determine the key point of the right abdomen on the side where the key point of the midsection is close to the key point of the right shoulder, and determine the key point of the left abdomen on the side where the key point of the midsection is close to the key point of the left shoulder. The device can quickly acquire the key points of the right abdomen and the key points of the left abdomen. Therefore, the electronic device can determine the abdominal area based on the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen. In addition, the electronic device can also determine the minimum abscissa, the maximum abscissa, and the minimum vertical coordinate based on the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. The coordinates and the maximum ordinate form a quadrilateral area, and this area is regarded as the largest abdominal area. Therefore, the electronic device can more accurately calculate the correlation value through the abdominal area based on the largest abdominal area.
示例性地,本申请还提供了一种呼吸监测装置。该呼吸监测装置应用于电子设备。Exemplarily, the present application also provides a respiratory monitoring device, which is applied to an electronic device.
下面,结合图,对本申请一实施例提供的呼吸监测装置进行详细说明。Below, the respiratory monitoring device provided by an embodiment of the present application will be described in detail with reference to the figures.
请参阅图10,图10示出了本申请一实施例提供的呼吸监测装置的示意性框图。Please refer to FIG. 10 , which shows a schematic block diagram of a respiratory monitoring device provided by an embodiment of the present application.
如图10所示,本申请一实施例提供的呼吸监测装置,包括获取模块401和确定模块402。As shown in Figure 10, a respiratory monitoring device provided by an embodiment of the present application includes an acquisition module 401 and a determination module 402.
获取模块401,用于从连续采集的多帧图像中,分别获取各自对应的腹部区域,每个腹部区域至少包括目标体的腹部;The acquisition module 401 is used to acquire respective corresponding abdominal areas from the continuously collected multi-frame images, and each abdominal area at least includes the abdomen of the target body;
确定模块402,用于确定每个腹部区域的多个相关值,任意一个腹部区域的多个相关值用于表示任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性,预设数量的腹部区域包括任意一个腹部区域及在任意一个腹部区域之后连续采集的多个腹部区域,预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数;The determination module 402 is used to determine multiple correlation values for each abdominal region. The multiple correlation values for any one abdominal region are used to represent the correlation between any one abdominal region and each abdominal region in a preset number of abdominal regions. The preset number of abdominal areas includes any abdominal area and multiple abdominal areas continuously collected after any one abdominal area. The preset number is greater than or equal to the total number of frames that can be collected after completing multiple breaths;
确定模块402,还用于将每个腹部区域的多个相关值进行划分,得到多组相关值,每组相关值用于表征目标体完成的一次呼吸;The determination module 402 is also used to divide multiple correlation values of each abdominal region to obtain multiple sets of correlation values, each set of correlation values used to represent a breath completed by the target body;
确定模块402,还用于根据多组相关值,确定目标体是否正常呼吸。The determination module 402 is also used to determine whether the target body is breathing normally based on multiple sets of correlation values.
在一些实施例中,确定模块402,具体用于:In some embodiments, the determining module 402 is specifically used to:
根据多组相关值,确定多个呼吸频率,每个呼吸频率用于表示目标体是正常呼吸还是异常呼吸。Multiple respiratory frequencies are determined based on multiple sets of correlation values, and each respiratory frequency is used to indicate whether the target body is breathing normally or abnormally.
继续结合图10,呼吸监测装置400在图10所示结构的基础上,进一步地,还可以包括:显示模块403。图10中,显示模块403采用虚线进行表示。Continuing with reference to FIG. 10 , based on the structure shown in FIG. 10 , the respiratory monitoring device 400 may further include: a display module 403 . In Figure 10, the display module 403 is represented by a dotted line.
其中,显示模块403,用于:Among them, the display module 403 is used for:
根据每个呼吸频率和多帧图像的时长,绘制呼吸频率曲线,呼吸频率曲线用于表示目标体是处于呼气状态还是处于吸气状态。A breathing frequency curve is drawn according to each breathing frequency and the duration of multiple frames of images. The breathing frequency curve is used to indicate whether the target is in an exhalation state or an inhalation state.
在一些实施例中,确定模块402,具体用于:In some embodiments, the determination module 402 is specifically configured to:
将每组相关值中位于预设位置的相关值确定为目标相关值;Determine the correlation value located at the preset position in each set of correlation values as the target correlation value;
确定每组相关值中与目标相关值关联的第一腹部区域和第二腹部区域;determining a first abdominal region and a second abdominal region associated with the target correlation value in each set of correlation values;
确定每个相同的第一腹部区域所对应的多个目标相关值;Determine multiple target correlation values corresponding to each same first abdominal region;
针对任意一个相同的第一腹部区域所对应的多个目标相关值而言,分别确定与任意两个目标相关值各自关联的两个第二腹部区域,并根据两个第二腹部区域之间的帧数差值,得到一个呼吸频率。For multiple target correlation values corresponding to any same first abdominal region, two second abdominal regions respectively associated with any two target correlation values are determined, and based on the difference between the two second abdominal regions The difference in frame numbers is used to obtain a respiratory rate.
在一些实施例中,在任意一个相同的第一腹部区域对应于多个目标相关值时,多个目标相关值分别归属的各组相关值用于表示目标体正常呼吸;In some embodiments, when any same first abdominal region corresponds to multiple target correlation values, each group of correlation values to which the multiple target correlation values respectively belong is used to represent normal breathing of the target body;
在任意一个相同的第一腹部区域对应于一个目标相关值时,一个目标相关值归属的一组相关值用于表示目标体异常呼吸。When any same first abdominal region corresponds to a target correlation value, a group of correlation values to which one target correlation value belongs is used to represent abnormal breathing of the target body.
在一些实施例中,显示模块403,具体用于:In some embodiments, the display module 403 is specifically used for:
在确定目标体呼吸异常时,显示用于指示目标体异常呼吸的警示信息。When it is determined that the target body's breathing is abnormal, a warning message indicating the target body's abnormal breathing is displayed.
在一些实施例中,获取模块401,具体用于:In some embodiments, the acquisition module 401 is specifically used to:
从目标体的呼吸视频中,获取多帧图像;Obtain multiple frames of images from the breathing video of the target body;
对每帧图像进行关键点检测,得到颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点;Perform key point detection on each frame of image to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the mid-hip;
根据颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点,确定右腹部的关键点和左腹部的关键点;Determine the key points of the right abdomen and the key points of the left abdomen based on the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the mid-hip;
根据左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点,确定腹部区域。Determine the abdominal area based on the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen.
在一些实施例中,获取模块401,具体用于:In some embodiments, the acquisition module 401 is specifically used to:
在颈部的关键点和中臀部的关键点之间的连线上,将距离中臀部的关键点预设长度的位置确定为中腹部的关键点;On the connection line between the key point of the neck and the key point of the mid-hip, determine the position at a preset length from the key point of the mid-hip as the key point of the mid-abdomen;
在中腹部的关键点靠近右肩的关键点的一侧,确定右腹部的关键点,其中,中腹部的关键点和右腹部的关键点之间的距离,与颈部的关键点和右肩的关键点之间的距离相等;Determine the key point of the right abdomen on the side where the key point of the mid-abdomen is close to the key point of the right shoulder. The distance between the key point of the mid-abdomen and the key point of the right abdomen is the same as the key point of the neck and the right shoulder. The distances between key points are equal;
在中腹部的关键点靠近左肩的关键点的一侧,确定左腹部的关键点,其中,中腹部的关键点和左腹部的关键点之间的距离,与颈部的关键点和左肩的关键点之间的距离相等。On the side of the key point of the mid-abdomen close to the key point of the left shoulder, determine the key point of the left abdomen. The distance between the key point of the mid-abdomen and the key point of the left abdomen is the same as the key point of the neck and the key point of the left shoulder. The distance between points is equal.
在一些实施例中,获取模块401,具体用于:In some embodiments, the acquisition module 401 is specifically used to:
将左肩的关键点、右肩的关键点、右腹部的关键点和左腹部的关键点投影到同一坐标系中;Project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen into the same coordinate system;
根据坐标系,确定左肩的关键点的坐标、右肩的关键点的坐标、右腹部的关键点的坐标和左腹部的关键点的坐标中的最小横坐标、最大横坐标、最小纵坐标及最大纵坐标;According to the coordinate system, determine the minimum abscissa, maximum abscissa, minimum ordinate, and maximum among the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. Y-axis;
将最小横坐标和最大横坐标分别沿着坐标系的纵轴延伸,将最小纵坐标和最大纵坐标分别沿着坐标系的横轴延伸,形成四边形区域;Extend the minimum abscissa and the maximum abscissa along the vertical axis of the coordinate system respectively, and extend the minimum ordinate and the maximum ordinate along the horizontal axis of the coordinate system respectively to form a quadrilateral area;
将四边形区域,确定为最大的腹部区域。The quadrilateral area was determined as the largest abdominal area.
应理解的是,本申请的呼吸监测装置400可以通过专用集成电路(application-specific integrated circuit,ASIC)实现,或可编程逻辑器件(programmable logic device,PLD)实现,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA), 通用阵列逻辑(generic array logic,GAL)或其任意组合。也可以通过软件实现上述实施例中的呼吸监测方法,当通过软件实现上述实施例中的呼吸监测方法时,呼吸监测装置400及其各个模块也可以为软件模块。It should be understood that the respiratory monitoring device 400 of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The above PLD can be a complex program logic device. (complex programmable logical device, CPLD), field-programmable gate array (FPGA), general array logic (generic array logic, GAL) or any combination thereof. The respiratory monitoring method in the above embodiment can also be implemented through software. When the respiratory monitoring method in the above embodiment is implemented through software, the respiratory monitoring device 400 and its respective modules can also be software modules.
示例性地,本申请还提供了一种电子设备的结构示意图。如图11所示,电子设备的具体实现方式可参见上述电子设备的描述,能够执行上述的呼吸监测方法。By way of example, this application also provides a schematic structural diagram of an electronic device. As shown in Figure 11, the specific implementation of the electronic device can refer to the description of the above-mentioned electronic device, and can perform the above-mentioned respiratory monitoring method.
其中,电子设备500包括处理器501、存储器502、通信接口503和总线504。其中,处理器501、存储器502、通信接口503通过总线504进行通信,也可以通过无线传输等其他手段实现通信。该存储器502用于存储指令,该处理器501用于执行该存储器502存储的指令。该存储器502存储程序代码5021,且处理器501可以调用存储器502中存储的程序代码5021执行上述实施例中的呼吸监测方法。Among them, the electronic device 500 includes a processor 501, a memory 502, a communication interface 503 and a bus 504. Among them, the processor 501, the memory 502, and the communication interface 503 communicate through the bus 504. Communication can also be achieved through other means such as wireless transmission. The memory 502 is used to store instructions, and the processor 501 is used to execute the instructions stored in the memory 502 . The memory 502 stores program code 5021, and the processor 501 can call the program code 5021 stored in the memory 502 to execute the respiratory monitoring method in the above embodiment.
应理解,在本申请中,处理器501可以是CPU,处理器501还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。It should be understood that in the present application, the processor 501 may be a CPU, and the processor 501 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
该存储器502可以包括只读存储器和随机存取存储器,并向处理器501提供指令和数据。存储器502还可以包括非易失性随机存取存储器。该存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。The memory 502 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. The memory 502 may also include a non-volatile random access memory. The memory 502 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus RAM (direct rambus RAM, DR RAM).
该总线504除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图11中将各种总线都标为总线504。In addition to a data bus, the bus 504 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, the various buses are labeled bus 504 in FIG. 11 .
应理解,本申请的电子设备500可对应于本申请上述实施例中的电子设备,当电子设备500对应于上述实施例中的电子设备时,电子设备500中的各个模块的上述和其它操作和/或功能分别为了实现上述实施例中的由电子设备执行的方法的操作步骤,为了简洁,在此不再赘述。It should be understood that the electronic device 500 of the present application may correspond to the electronic device in the above-described embodiment of the present application. When the electronic device 500 corresponds to the electronic device in the above-described embodiment, the above and other operations of each module in the electronic device 500 and The/or functions are respectively intended to implement the operating steps of the method executed by the electronic device in the above embodiments. For the sake of simplicity, they will not be described again here.
示例性地,本申请还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Exemplarily, this application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in each of the above method embodiments can be implemented.
示例性地,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行时实现可实现上述各个方法实施例中的步骤。Exemplarily, this application provides a computer program product. When the computer program product is run on an electronic device, the steps in each of the above method embodiments can be implemented when the electronic device is executed.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application. For the specific working processes of the units and modules in the above system, please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices/network devices and methods can be implemented in other ways. For example, the device/network equipment embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or units. Components may be combined or may be integrated into another system, or some features may be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this application.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments. Modifications are made to the recorded technical solutions, or equivalent substitutions are made to some of the technical features; these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and shall be included in this application. within the scope of protection.

Claims (12)

  1. 一种呼吸监测方法,其特征在于,包括:A respiratory monitoring method, comprising:
    从连续采集的多帧图像中,分别获取各自对应的腹部区域,每个腹部区域至少包括目标体的腹部;From the continuously collected multi-frame images, obtain respective corresponding abdominal areas, and each abdominal area at least includes the abdomen of the target body;
    确定每个腹部区域的多个相关值,任意一个腹部区域的多个相关值用于表示所述任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性,所述预设数量的腹部区域包括所述任意一个腹部区域及在所述任意一个腹部区域之后连续采集的多个腹部区域,所述预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数;Determine multiple correlation values for each abdominal region, and the multiple correlation values for any one abdominal region are used to represent the correlation between any one abdominal region and each abdominal region in a preset number of abdominal regions, said The preset number of abdominal areas includes any one abdominal area and multiple abdominal areas continuously collected after any one abdominal area, and the preset number is greater than or equal to the total number of images that can be collected after completing multiple breaths. number of frames;
    将每个腹部区域的多个相关值进行划分,得到多组相关值,每组相关值用于表征所述目标体完成的一次呼吸;Divide multiple correlation values in each abdominal area to obtain multiple sets of correlation values, each set of correlation values used to characterize a breath completed by the target body;
    根据所述多组相关值,确定所述目标体是否正常呼吸。According to the multiple sets of correlation values, it is determined whether the target body is breathing normally.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    根据所述多组相关值,确定多个呼吸频率,每个呼吸频率用于表示所述目标体是正常呼吸还是异常呼吸。According to the plurality of sets of correlation values, a plurality of respiratory frequencies are determined, and each respiratory frequency is used to indicate whether the target body is breathing normally or abnormally.
  3. 如权利要求2所述的方法,其特征在于,所述根据所述多组相关值,确定多个呼吸频率之后,还包括:The method according to claim 2, characterized in that, after determining a plurality of respiratory frequencies according to the plurality of sets of correlation values, further comprising:
    根据每个呼吸频率和所述多帧图像的时长,绘制呼吸频率曲线,所述呼吸频率曲线用于表示所述目标体是处于呼气状态还是处于吸气状态。According to each respiratory frequency and the duration of the multi-frame images, a respiratory frequency curve is drawn, and the respiratory frequency curve is used to indicate whether the target body is in an exhalation state or an inhalation state.
  4. 如权利要求2所述的方法,其特征在于,所述根据所述多组相关值,确定多个呼吸频率,包括:The method according to claim 2, characterized in that the step of determining a plurality of respiratory frequencies according to the plurality of sets of correlation values comprises:
    将每组相关值中位于预设位置的相关值确定为目标相关值;Determine the correlation value at a preset position in each group of correlation values as a target correlation value;
    确定每组相关值中与所述目标相关值关联的第一腹部区域和第二腹部区域;determining a first abdominal region and a second abdominal region associated with the target correlation value in each set of correlation values;
    确定每个相同的所述第一腹部区域所对应的多个目标相关值;Determine multiple target correlation values corresponding to each same first abdominal region;
    针对任意一个相同的所述第一腹部区域所对应的多个目标相关值而言,分别确定与任意两个目标相关值各自关联的两个所述第二腹部区域,并根据两个所述第二腹部区域之间的帧数差值,得到一个呼吸频率。For multiple target correlation values corresponding to any one of the same first abdominal regions, two second abdominal regions respectively associated with any two target correlation values are determined, and based on the two first abdominal regions, The frame number difference between the two abdominal regions is used to obtain a respiratory rate.
  5. 如权利要求4所述的方法,其特征在于,The method of claim 4, characterized in that:
    在任意一个相同的所述第一腹部区域对应于多个目标相关值时,多个目标相关值分别归属的各组相关值用于表示所述目标体正常呼吸;When any one of the same first abdominal regions corresponds to a plurality of target correlation values, each group of correlation values to which the plurality of target correlation values belong respectively is used to represent normal breathing of the target body;
    在任意一个相同的所述第一腹部区域对应于一个目标相关值时,一个目标相关值归属的一组相关值用于表示所述目标体异常呼吸。When any same first abdominal region corresponds to a target correlation value, a group of correlation values to which a target correlation value belongs is used to represent abnormal breathing of the target body.
  6. 如权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that the method further includes:
    在确定所述目标体呼吸异常时,显示用于指示所述目标体异常呼吸的警示信息。When it is determined that the target body is breathing abnormally, warning information indicating that the target body is breathing abnormally is displayed.
  7. 如权利要求1至5任一项所述的方法,其特征在于,所述从连续采集的多帧图像中,分别获取各自对应的腹部区域,包括:The method according to any one of claims 1 to 5, characterized in that obtaining respective corresponding abdominal regions from the continuously collected multiple frames of images includes:
    从所述目标体的呼吸视频中,获取所述多帧图像;Obtain the multi-frame images from the breathing video of the target body;
    对每帧图像进行关键点检测,得到颈部的关键点、左肩的关键点、右肩的关键点和中臀部的关键点;Perform key point detection on each frame of image to obtain the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the mid-hip;
    根据所述颈部的关键点、所述左肩的关键点、所述右肩的关键点和所述中臀部的 关键点,确定右腹部的关键点和左腹部的关键点;Determine the key points of the right abdomen and the key points of the left abdomen based on the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip;
    根据所述左肩的关键点、所述右肩的关键点、所述右腹部的关键点和所述左腹部的关键点,确定所述腹部区域。The abdominal area is determined based on the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen, and the key points of the left abdomen.
  8. 如权利要求7所述的方法,其特征在于,所述根据所述颈部的关键点、所述左肩的关键点、所述右肩的关键点和所述中臀部的关键点,确定右腹部的关键点和左腹部的关键点,包括:The method according to claim 7, wherein the right abdomen is determined based on the key points of the neck, the key points of the left shoulder, the key points of the right shoulder and the key points of the middle hip. key points and key points on the left abdomen, including:
    在所述颈部的关键点和所述中臀部的关键点之间的连线上,将距离所述中臀部的关键点预设长度的位置确定为中腹部的关键点;On the connection line between the key point of the neck and the key point of the middle hip, determine a position that is a preset length away from the key point of the middle hip as the key point of the midsection;
    在所述中腹部的关键点靠近所述右肩的关键点的一侧,确定所述右腹部的关键点,其中,所述中腹部的关键点和所述右腹部的关键点之间的距离,与所述颈部的关键点和所述右肩的关键点之间的距离相等;Determine the key point of the right abdomen on the side of the key point of the mid-abdomen close to the key point of the right shoulder, where the distance between the key point of the mid-abdomen and the key point of the right abdomen is , equal to the distance between the key point of the neck and the key point of the right shoulder;
    在所述中腹部的关键点靠近所述左肩的关键点的一侧,确定所述左腹部的关键点,其中,所述中腹部的关键点和所述左腹部的关键点之间的距离,与所述颈部的关键点和所述左肩的关键点之间的距离相等。On the side of the key point of the mid-abdomen close to the key point of the left shoulder, determine the key point of the left abdomen, where the distance between the key point of the mid-abdomen and the key point of the left abdomen is, The distance between the key points of the neck and the key points of the left shoulder is equal.
  9. 如权利要求7所述的方法,其特征在于,所述根据所述左肩的关键点、所述右肩的关键点、所述右腹部的关键点和所述左腹部的关键点,确定所述腹部区域,包括:The method according to claim 7, characterized in that, determining the key point of the left shoulder, the key point of the right shoulder, the key point of the right abdomen and the key point of the left abdomen. Abdominal area, including:
    将所述左肩的关键点、所述右肩的关键点、所述右腹部的关键点和所述左腹部的关键点投影到同一坐标系中;Project the key points of the left shoulder, the key points of the right shoulder, the key points of the right abdomen and the key points of the left abdomen into the same coordinate system;
    根据所述坐标系,确定所述左肩的关键点的坐标、所述右肩的关键点的坐标、所述右腹部的关键点的坐标和所述左腹部的关键点的坐标中的最小横坐标、最大横坐标、最小纵坐标及最大纵坐标;According to the coordinate system, determine the minimum abscissa of the coordinates of the key point on the left shoulder, the coordinates of the key point on the right shoulder, the coordinates of the key point on the right abdomen, and the coordinates of the key point on the left abdomen. , the maximum abscissa, the minimum ordinate and the maximum ordinate;
    将所述最小横坐标和所述最大横坐标分别沿着所述坐标系的纵轴延伸,将所述最小纵坐标和所述最大纵坐标分别沿着所述坐标系的横轴延伸,形成四边形区域;The minimum abscissa and the maximum abscissa are respectively extended along the vertical axis of the coordinate system, and the minimum ordinate and the maximum ordinate are respectively extended along the horizontal axis of the coordinate system to form a quadrilateral. area;
    将所述四边形区域,确定为最大的所述腹部区域。The quadrilateral area is determined as the largest abdominal area.
  10. 一种呼吸监测装置,其特征在于,包括:A respiratory monitoring device, characterized by including:
    获取模块,用于从连续采集的多帧图像中,分别获取各自对应的腹部区域,每个腹部区域至少包括目标体的腹部;The acquisition module is used to obtain respective corresponding abdominal areas from the continuously collected multi-frame images, and each abdominal area at least includes the abdomen of the target body;
    确定模块,用于确定每个腹部区域的多个相关值,任意一个腹部区域的多个相关值用于表示所述任意一个腹部区域与预设数量的腹部区域中的每个腹部区域之间的相关性,所述预设数量的腹部区域包括所述任意一个腹部区域及在所述任意一个腹部区域之后连续采集的多个腹部区域,所述预设数量大于或等于完成多次呼吸所能采集到的图像的总帧数;Determining module, used to determine multiple correlation values of each abdominal region, and the multiple correlation values of any one abdominal region are used to represent the relationship between the any one abdominal region and each of the preset number of abdominal regions. Correlation, the preset number of abdominal areas includes any one abdominal area and multiple abdominal areas collected continuously after any one abdominal area, and the preset number is greater than or equal to what can be collected after completing multiple breaths The total number of frames of the image received;
    确定模块,还用于将每个腹部区域的多个相关值进行划分,得到多组相关值,每组相关值用于表征所述目标体完成的一次呼吸;The determination module is also used to divide multiple correlation values of each abdominal area to obtain multiple sets of correlation values, each set of correlation values used to characterize a breath completed by the target body;
    确定模块,还用于根据所述多组相关值,确定所述目标体是否正常呼吸。The determination module is also used to determine whether the target body is breathing normally according to the multiple sets of correlation values.
  11. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至9任一项所述的方法。An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the computer program, it implements claims 1 to 1 The method described in any one of 9.
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其 特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述的方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
PCT/CN2022/120264 2022-09-21 2022-09-21 Respiration monitoring method, apparatus and device, and computer-readable storage medium WO2024060076A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/120264 WO2024060076A1 (en) 2022-09-21 2022-09-21 Respiration monitoring method, apparatus and device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/120264 WO2024060076A1 (en) 2022-09-21 2022-09-21 Respiration monitoring method, apparatus and device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2024060076A1 true WO2024060076A1 (en) 2024-03-28

Family

ID=90453694

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120264 WO2024060076A1 (en) 2022-09-21 2022-09-21 Respiration monitoring method, apparatus and device, and computer-readable storage medium

Country Status (1)

Country Link
WO (1) WO2024060076A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160371833A1 (en) * 2015-06-17 2016-12-22 Xerox Corporation Determining a respiratory pattern from a video of a subject
CN114140496A (en) * 2021-11-12 2022-03-04 国家海洋局南海调查技术中心(国家海洋局南海浮标中心) Non-contact respiration detection method and device
CN114403847A (en) * 2021-12-17 2022-04-29 中南民族大学 Respiration state detection method and system based on correlation of abdominal and pulmonary data
CN114596279A (en) * 2022-03-08 2022-06-07 江苏省人民医院(南京医科大学第一附属医院) Non-contact respiration detection method based on computer vision
CN114767087A (en) * 2022-06-20 2022-07-22 精华隆智慧感知科技(深圳)股份有限公司 Multi-target respiratory frequency estimation method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160371833A1 (en) * 2015-06-17 2016-12-22 Xerox Corporation Determining a respiratory pattern from a video of a subject
CN114140496A (en) * 2021-11-12 2022-03-04 国家海洋局南海调查技术中心(国家海洋局南海浮标中心) Non-contact respiration detection method and device
CN114403847A (en) * 2021-12-17 2022-04-29 中南民族大学 Respiration state detection method and system based on correlation of abdominal and pulmonary data
CN114596279A (en) * 2022-03-08 2022-06-07 江苏省人民医院(南京医科大学第一附属医院) Non-contact respiration detection method based on computer vision
CN114767087A (en) * 2022-06-20 2022-07-22 精华隆智慧感知科技(深圳)股份有限公司 Multi-target respiratory frequency estimation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US9439604B2 (en) Electronic fetal monitoring applications and display
US11707244B2 (en) Techniques for breast imaging patient motion artifact compensation
CN109522886B (en) Method and device for measuring body data and computer readable storage medium
WO2007054841A1 (en) Method for detecting critical trends in multi-parameter patient monitoring and clinical data using clustering
CN114283494A (en) Early warning method, device, equipment and storage medium for user falling
Elphick et al. Exploratory study to evaluate respiratory rate using a thermal imaging camera
Takahashi et al. Validation of Omron RS8, RS6, and RS3 home blood pressure monitoring devices, in accordance with the European Society of Hypertension International Protocol revision 2010
WO2018082258A1 (en) Medical data query system and method based on electronic medical record
WO2024060076A1 (en) Respiration monitoring method, apparatus and device, and computer-readable storage medium
CN115886831A (en) Multi-lead electrocardiogram detection method and electronic equipment
CN110689959A (en) Medical health management method and device
CN109753489B (en) Method and device for generating body type sample database and computer readable storage medium
JP2019046057A (en) Image processing device, image processing method and program
CN116013548B (en) Intelligent ward monitoring method and device based on computer vision
CN109685040B (en) Method and device for measuring body data and computer readable storage medium
CN115517654A (en) Respiration monitoring method, device, equipment and computer readable storage medium
Su et al. Doctor robot with physical examination for skin disease diagnosis and telemedicine application
Yuan et al. Ergonomic assessment based on monocular RGB camera in elderly care by a new multi-person 3D pose estimation technique (ROMP)
Zhang et al. Smartphone application-supported validation of three automatic devices for self-measurement of blood pressure according to the European Society of Hypertension International Protocol revision 2010: The Omron HEM-7120, Yuwell YE680A and Cofoe KF-65B
CN213690555U (en) Mouse equipment with temperature detection function
Leu et al. Mobile Physiological Sensor Cloud System for Long-term Care
JP3927947B2 (en) Health check system
US20100004516A1 (en) Method and System for Monitoring Physiological Status
Huang et al. Simultaneous validation of the Grandway MD2301 digital automatic blood pressure monitor by the British Hypertension Society and the Association for the Advancement of Medical Instrumentation/the International Organization for Standardization protocols
US20230148370A1 (en) Era patient monitor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22959087

Country of ref document: EP

Kind code of ref document: A1