Human spine posture anomaly detection method and device, terminal and medium

By capturing human posture images with camera equipment, performing image processing, calculating characteristic parameters, and inputting detection models, the problem of complexity and difficulty in operation of existing scoliosis detection equipment is solved, and the detection process is simplified and widely applicable.

CN118629068APending Publication Date: 2024-09-10SHENZHEN SECOND PEOPLES HOSPITAL (SHENZHEN INST OF TRANSLATIONAL MEDICINE)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410448315.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing scoliosis detection technology equipment is complex and difficult to operate, and the 3D point cloud-based method is not suitable for large-scale detection.

Method used

The human posture detection image is captured by the camera equipment, image segmentation and edge extraction are performed, the human posture detection point is determined and the characteristic parameters are calculated, and the preset human posture detection model is input for detection.

Benefits of technology

It reduces the hardware requirements for scoliosis detection, is suitable for a variety of image acquisition devices, simplifies the detection process, and expands the scope of application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629068A
    Figure CN118629068A
Patent Text Reader

Abstract

The invention discloses a human body spine posture anomaly detection method and device, a terminal and a medium, and the method comprises the steps: carrying out the image segmentation and edge extraction processing of a human body posture detection image based on a shot human body posture detection image, and obtaining a human body feature image of a human body part; then determining a plurality of human body posture detection points used for detecting a human body spine according to the human body feature image, calculating human body posture feature parameters based on the human body posture detection points, and inputting the calculated human body posture feature parameters into a human body posture detection model obtained by training based on a preset human body posture feature parameter sample; and detecting the human body posture characteristic parameters of the detected object by using priori knowledge formed based on training of the human body posture detection model to obtain a human body posture detection result of the detected object. The method can reduce hardware requirements for human body standing posture abnormity detection in a scoliosis detection process, can be suitable for various different image acquisition devices, and reduces detection implementation difficulty.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, terminal and medium for detecting abnormal posture of the human spine. Background Art

[0002] According to research and statistics in recent years, the incidence of scoliosis among adolescents has gradually increased. Therefore, more and more experts are paying attention to the screening and prevention of spinal problems among adolescents.

[0003] At present, in order to judge the health of the spine, the strategy of measuring the scoliosis angle is often adopted. For the measurement of scoliosis angle, the existing patented technology requires relatively complex sensors. For example, the existing posture sensor not only requires complex hardware components such as geomagnetic field sensors, integrated gyroscopes and accelerometers in hardware, but also requires the tester to manually place the sensor on the back of the person being tested, which is relatively complicated. At the same time, the existing 3D point cloud-based method requires the use of a dedicated depth camera, which is not conducive to large-scale detection. Summary of the invention

[0004] The present application provides a method, device, terminal and medium for detecting abnormal human spine posture, which are used to solve the technical problems that the existing spine posture health detection technology has high requirements for implementation equipment and is difficult to implement.

[0005] In order to solve the above technical problems, the first aspect of the present application provides a method for detecting abnormality of human spine posture, comprising:

[0006] Acquire a human body posture detection image of the detection object, wherein the human body posture detection image is an image of the back of the detection object in a static standing state taken by a camera device;

[0007] Performing image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object;

[0008] Determine a human body posture detection point of the detection object according to the human body feature image, and calculate a human body posture feature parameter based on the human body posture detection point;

[0009] The human body posture characteristic parameters are input into a preset human body posture detection model to obtain a human body posture detection result of the detection object based on the operation of the human body posture detection model, wherein the human body posture detection model is obtained by training based on a preset human body posture characteristic parameter sample.

[0010] Preferably, the human body feature image specifically includes: a human body region indication image, a background-free human body image, and a human body high-frequency edge image.

[0011] Preferably, the performing image segmentation and edge extraction processing on the human posture detection image to obtain the human feature image of the detection object specifically comprises:

[0012] Segmenting the human body posture detection image using a preset image segmentation model to obtain a binary human body region indication map;

[0013] Applying the human body region indication map to the human body posture detection image to obtain a background-free human body map;

[0014] The high-frequency edge of the human body image without background is extracted by an edge extraction algorithm to obtain a high-frequency edge image of the human body.

[0015] Preferably, after performing image segmentation and edge extraction processing on the human posture detection image to obtain the human feature image of the detection object, the method further comprises:

[0016] Determine the coordinates of four endpoints of the human body region according to the human body region indication map, and determine a rectangular region according to the four endpoint coordinates;

[0017] According to preset image size parameters, size normalization processing is performed on the range images corresponding to the rectangular areas in the human body area indication map, the background-free human body map and the human body high-frequency edge map, respectively, to obtain standardized human body area indication map, background-free human body map and human body high-frequency edge map.

[0018] Preferably, the human body posture detection points specifically include: left and right armpit points, left and right shoulder turning points, neck midpoint, waist area base point and left and right waist depth points.

[0019] Preferably, the human body posture characteristic parameters specifically include: armpit angle, shoulder angle, inner shoulder index, outer shoulder index, shoulder area index, waist depth index and waist area index.

[0020] Preferably, the axillary angle is calculated as follows:

[0021] ∠ armpit =arctan[(h left_armpit -h right_armpit ) / (w left_armpit -w right_armpit )]

[0022] In the formula, ∠ armpit is the axillary angle, h left_armpit 、w left_armpit The ordinate and abscissa of the left axillary point, h right_armpit 、w right_armpit The ordinate and abscissa of the right axillary point, respectively;

[0023] The shoulder angle is calculated as follows:

[0024] ∠ shoulder =arctan[(h left_shoulder -h right_shoulder ) / (w left_shoulder -w right_shoulder )]

[0025] In the formula, ∠ shoulder is the shoulder angle, h left_shoulder 、w left_shoulder The ordinate and abscissa of the left shoulder inflection point, respectively, h right_shoulder h right_armpit 、w right_armpit The ordinate and abscissa of the right shoulder inflection point respectively;

[0026] The medial shoulder index is calculated as:

[0027] I inner_shoulder =d inner_left / d inner_right

[0028] In the formula, I inner_shoulder is the medial shoulder index, d inner_left is the height of the left inner shoulder, d inner_right is the height of the right inner shoulder;

[0029] The lateral shoulder index is calculated as follows:

[0030] I outer_shoulder =d outer_left / d outer_right

[0031] In the formula, I outer_shoulder is the lateral shoulder index, d outer_left is the height of the left outer shoulder, d outer_right is the height of the right outer shoulder;

[0032] The shoulder area index is calculated as follows:

[0033] I shoulder_area =S left_shoulder / S right_shoulder

[0034] In the formula, I shoulder_area is the shoulder area index, S left_shoulder is the left shoulder area, S right_shoulder is the right shoulder area;

[0035] The waist depth index is calculated as follows:

[0036] I waist_depth =dleft / d right

[0037] In the formula, I waist_depth is the waist depth index, d left is the waist depth value of the left waist, d right It is the waist depth value of the right waist;

[0038] The waist area index is calculated as follows:

[0039] I waist_area =S left_waist / S right_waist

[0040] In the formula, I waist_area is the waist area index, S left_waist is the left waist area, S right_waist It is the right waist area.

[0041] At the same time, the second aspect of the present application provides a human spine posture abnormality detection device, comprising:

[0042] An image acquisition unit, used for acquiring a human body posture detection image of a detection object, wherein the human body posture detection image is an image of a human back of the detection object in a static standing state taken by a camera device;

[0043] An image processing unit, used for performing image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object;

[0044] A characteristic parameter calculation unit, used to determine the human body posture detection points of the detection object according to the human body characteristic image, and calculate the human body posture characteristic parameters based on the human body posture detection points;

[0045] The posture detection and determination unit is used to input the human posture characteristic parameters into a preset human posture detection model to obtain the human posture detection result of the detection object based on the operation of the human posture detection model, wherein the human posture detection model is obtained by training based on preset human posture characteristic parameter samples.

[0046] A third aspect of the present application provides a human spine posture abnormality detection terminal, comprising: a memory and a processor;

[0047] The memory is used to store program codes corresponding to a method for detecting abnormal human spine posture as provided in the first aspect of the present application;

[0048] The processor is configured to execute the program code.

[0049] The fourth aspect of the present application provides a computer-readable storage medium, in which a program code corresponding to a method for detecting abnormal human spine posture as provided in the first aspect of the present application is stored.

[0050] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0051] The technical solution provided by the present application is based on the human posture detection image taken by the camera device. The human posture detection image is first subjected to image segmentation and edge extraction processing to obtain a human feature image of the human body part, and then a number of human posture detection points for detecting the human spine are determined by the human feature image, and human posture feature parameters are calculated based on the human posture detection points. The calculated human posture feature parameters are then input into a human posture detection model obtained by training based on a preset human posture feature parameter sample, and the human posture feature parameters of the detection object are detected based on the prior knowledge formed by the training of the human posture detection model to obtain the human posture detection result of the detection object. The solution of the present application can reduce the hardware requirements for abnormal detection of human standing posture in the process of scoliosis detection, and can be applied to a variety of different image acquisition devices, which expands the scope of application and reduces the difficulty of detection implementation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 A schematic flow chart of an embodiment of a method for detecting abnormal human spine posture provided in the present application.

[0054] Figure 2 A flowchart of another embodiment of a method for detecting abnormal human spine posture provided in the present application.

[0055] Figure 3 It is a schematic diagram of the human body area indication diagram in the standardized human body static standing position of the present invention.

[0056] Figure 4 It is a schematic diagram of the human shoulder area index of the present invention.

[0057] Figure 5 A schematic structural diagram of an embodiment of a human spine posture abnormality detection device provided in the present application.

[0058] Figure 6A schematic structural diagram of an embodiment of a human spine posture abnormality detection terminal provided in the present application. DETAILED DESCRIPTION

[0059] The embodiments of the present application provide a method, device, terminal and medium for detecting abnormal spinal posture of a human body, which are used to solve the technical problems that the existing spinal posture health detection technology has high requirements for implementation equipment and is difficult to implement.

[0060] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0061] First, a detailed description of an embodiment of a method for detecting abnormal human spine posture provided by the present application is as follows:

[0062] See also Figure 1 The present application provides an embodiment of a method for detecting abnormal human spine posture, comprising:

[0063] Step 101: Acquire a human body posture detection image of a detection object.

[0064] The human body posture detection image is an image of the back of the detection object in a static standing state, taken by a camera device.

[0065] It should be noted that before executing the human spinal posture abnormality detection method provided in this embodiment, the detection subject is first asked to stand still with his back to the camera in accordance with the medical staff's dress and shooting posture requirements, and then the medical staff uses a camera to capture the detection subject's back image as a human posture detection image for detection. When the detection subject starts to perform spinal posture abnormality detection, the pre-captured human posture detection image can be obtained as a basis for detection.

[0066] Step 102: perform image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object.

[0067] It should be noted that based on the human posture detection image obtained in the previous step, image segmentation and edge extraction processing are performed on the human posture detection image, and the human posture detection image is divided into human body part and non-human body part, and the human feature image of the detection object is obtained by the image of the human body part.

[0068] In some embodiments, the human body feature image mentioned in step 102 of the present application may further include: a human body region indication map, a background-free human body map, and a human body high-frequency edge map.

[0069] Furthermore, if Figure 2 As shown, the process of step 102 can be specifically broken down into:

[0070] Step 1021, segmenting the human body posture detection image by a preset image segmentation model to obtain a binary human body region indication map;

[0071] Step 1022, applying the human body region indication map to the human body posture detection image to obtain a background-free human body map;

[0072] Step 1023: extract high-frequency edges from the background-free human body image using an edge extraction algorithm to obtain a high-frequency edge image of the human body.

[0073] It should be noted that in step 102, the original image obtained in step 101 is first segmented using a deep learning model to obtain a binary human body area indication map, and then the human body area indication map is applied to the corresponding original image to determine the range of the human body area and perform image extraction to obtain a background-free human body map. Next, a preset edge extraction algorithm, such as the Canny edge extraction algorithm, is used to perform high-frequency edge extraction on the background-free human body map to obtain a high-frequency edge map of the human body.

[0074] In some embodiments, the human spine posture abnormality detection method provided by the present application may further include, after step 1023:

[0075] Step 1030: determine the four endpoint coordinates of the human body area according to the human body area indication map, determine the rectangular area according to the four endpoint coordinates, and perform size normalization processing on the range images corresponding to the rectangular area in the human body area indication map, the background-free human body map, and the human body high-frequency edge map according to preset image size parameters, so as to obtain a standardized human body area indication map, background-free human body map, and human body high-frequency edge map.

[0076] It should be noted that step 1030 of this embodiment is a normalization process of the human body area indication map, the background-free human body map and the human body high-frequency edge map obtained in step 102, so as to continue to execute subsequent steps using the normalized image, thereby further improving the accuracy of detection.

[0077] The execution principle of step 1030 in this embodiment is as follows:

[0078] For the human body area indicator map, find the coordinates of the highest point (x high ,y high ), the lowest point coordinates (xlow ,y low ), the leftmost coordinate (x left ,y left ), the rightmost coordinate (x right ,y right );

[0079] The human body area indication map, the background-free human body map and the high-frequency edge map are respectively cut out to obtain (x left ,y right ), (x right ,y high ), (x left ,y low ), (x right ,y low ) is the rectangular area with the endpoints, and the area is scaled proportionally in height and width, the height is scaled to a fixed height of 2500, and the width is also filled with zeros or truncated to reach a fixed width value of 1800, to obtain a normalized background-free human body map, a normalized human body area indication map and a normalized high-frequency edge map, wherein the normalized background-free human body map is as follows: Figure 3 shown.

[0080] Step 103: determine the human body posture detection points of the detection object according to the human body feature image, and calculate the human body posture feature parameters based on the human body posture detection points.

[0081] It should be noted that, according to the standard of spine posture detection, the body posture detection points of the detection object are determined from the body feature image, and the body posture feature parameters are calculated based on the body posture detection points.

[0082] Furthermore, three standardized views are used to locate the human body posture detection points, including: left and right armpit points, left and right shoulder turning points, neck midpoint, waist area base point and left and right waist depth points.

[0083] Among them, for the positioning of the left and right axillary points, an initial height h is determined according to the human body proportions. init_1 =625, and the minimum height h end =1000;

[0084] Observe and determine the color range of the armpit area, set the fixed armpit color (R, G, B) to (20, 20, 20), and set the color distance threshold d th =60;

[0085] For the left axillary point location, from h init_1 Start deflecting downward to determine the height h current , from (h current,0) Scan the image to the right, and after detecting non-black pixels, perform distance calculation between the pixel color and the fixed armpit color. If the calculated distance d<d th , then the store is considered as a potential point of the armpit starting point, and the normalized high-frequency edge map is checked with the coordinates of the point as the center. If there is an edge pixel in the 5 neighborhoods of the center, that is, a pixel with a value of 255, then the edge pixel is used as the armpit starting point, and the top point is iteratively searched to the upper left, which is the left armpit point;

[0086] For the right axillary point from (h current ,1799) scan the image to the left, and after detecting non-black pixels, perform distance calculation between the pixel color and the fixed armpit color;

[0087] If the calculated distance d<d th , then the store is considered as a potential point of the armpit starting point, and the normalized high-frequency edge map is checked with the coordinates of the point as the center. If there is an edge pixel in the 5-neighborhood of the center, that is, a pixel with a value of 255, then the edge pixel is used as the armpit starting point, and the top point is iteratively searched to the upper right. The store is the right armpit point;

[0088] If the scan is at a certain height (h current ,900), if the potential point of the axillary starting point and the axillary starting point are not found, then let h current =h current +1, continue scanning the image, if h current Touch h end , then the search fails, and there is no left or right axillary point in the image;

[0089] For the positioning of the left and right shoulder inflection points, the height of the lower armpit point is taken as the starting height h init_2 ;

[0090] In the normalized human body region indicator map, (h init_2 ,0) as the starting point, scan to the right, and the first pixel with a value of 255 is recorded as the first left sampling point;

[0091] Taking the first left sampling point as the starting point, iteratively scan the neighborhood along the human body contour, sample 120 left contour points, and calculate the curvature of the 20th to 70th sampling points. The pixel with the maximum curvature is the left shoulder inflection point.

[0092] In the normalized human body region indicator map, (h init_2 ,1799) as the starting point, scan to the left, and the first pixel with a value of 255 is recorded as the first right sampling point;

[0093] Taking the first sampling point as the starting point, iteratively scan the neighborhood along the human body contour, sample 120 right contour points, and calculate the curvature of the 20th to 70th sampling points. The pixel with the maximum curvature is the right shoulder inflection point.

[0094] For the location of the midpoint of the neck, the left shoulder inflection point is taken as the starting point, 150 left contour points are iteratively sampled upward along the human body contour, and the curvature is calculated for the 15th to 115th sampling points. The pixel with the maximum curvature is the left neck inflection point.

[0095] Taking the right shoulder inflection point as the starting point, 150 left contour points are iteratively sampled upward along the human body contour, and the curvature is calculated for the 15th to 115th sampling points. The pixel with the maximum curvature is the right neck inflection point.

[0096] The midpoint between the left and right neck inflection points was recorded as the neck midpoint;

[0097] For waist area base point positioning, the midpoint of the neck (h neck ,w neck ) as the base point, and sink sampling is performed on 13 starting points;

[0098] 13 The starting points are (h neck +580,w neck +8),(h neck +580,w neck -16),(h neck +580,w neck +24),(h neck +580,w neck -32),(h neck +580,w neck +40),(h neck +580,w neck -48),(h neck +580,w neck +56),(h neck +580,w neck -64),(h neck +580,w neck +72),(h neck +580,w neck -80),(h neck +580,w neck +88),(h neck +580,w neck -96);

[0099] In the normalized high-frequency edge map, scan down the 3-neighborhood one by one for 13 starting points. If there is a point with a value of 255 in the lower 3-neighborhood, record this point in the sampling point list; otherwise, move down until each starting point touches a high-frequency edge point with a value of 255.

[0100] After obtaining 13 edge pixels, calculate the average height of these 13 edge pixels and the variance D. Set the variance threshold d. If D < d, then consider it as the waist area base point. If D > d, find the point with the largest deviation value and delete it. Iteratively repeat the calculation of the above average value and variance until the variance is lower than the threshold. At this time, calculate the average value using the remaining points which is the waist area base point;

[0101] For the positioning of the left and right waist depth points, set the height range h up = h armpit_low , h down = h waist , where h armpit_low is the height of the lower armpit point, and h waist is the height of the waist area base point;

[0102] Starting from h up and moving downwards, obtain the height h current . Starting from (h current , 0), scan the image to the right. After detecting a non-black pixel point, perform a distance calculation on the pixel color and the fixed armpit color. If the calculated distance d < d th , then consider this point as a potential waistline sampling point. Taking the coordinates of this point as the center, check the normalized high-frequency edge map. If there are edge pixels (i.e., pixels with a value of 255) in the 5-neighborhood of the center, then take this point as a left waistline sampling point;

[0103] Let h current = h current + 1, and iteratively find the left waistline sampling points at each height until h current is h down + 1;

[0104] Calculate the straight-line equation y = a left x + b left formed by connecting the leftmost bottom waistline sampling point and the left armpit point, and calculate the distances from all left waistline sampling points to this line:

[0105]

[0106] The point with the maximum distance is the left waist depth point;

[0107] Starting from hup Start to deflect downward and get the height h current , from (h current ,1799 Scan the image to the left, and after detecting non-black pixels, perform distance calculation between the pixel color and the fixed armpit color. If the calculated distance d<d th , then the point is considered as a potential waistline sampling point, and the normalized high-frequency edge map is checked with the coordinates of the point as the center. If there is an edge pixel (i.e., a pixel with a value of 255) in the 5-neighborhood of the center, the point is taken as a right waistline sampling point;

[0108] Let h current =h current +1, iteratively search for the right waistline sampling points at each height until h current h down +1;

[0109] Calculate the equation of the straight line connecting the right lower waistline sampling point and the right armpit point: y = a right x+b right , and calculate the distance from all right waistline sampling points to this line:

[0110]

[0111] The point where the distance reaches the maximum value is the right waist depth point.

[0112] Next, the extracted key points of the human body are used to calculate the relevant features of the human body posture, including the axillary angle, shoulder angle, inner shoulder index, outer shoulder index, shoulder area index, waist depth index and waist area index.

[0113] For the calculation of the axillary angle, given the coordinates of the left and right axillary points (h left_armpit ,w left_armpit ) and (h right_armpit ,w right_armpit ), the calculation formula of the axillary angle is:

[0114] ∠ armpit =arctan[(h left_armpit -h right_armpit ) / (w left_armpit -w right_armpit )]

[0115] For shoulder angle calculation, given the coordinates of the left and right shoulder inflection points (h left_shoulder ,w left_shoulder ) and (h right_shoulder ,w right_shoulder );

[0116] The calculation formula of shoulder angle is:

[0117] ∠shoulder =arctan[(h left_shoulder -h right_shoulder ) / (w left_shoulder -w right_shoulder )]

[0118] For the medial shoulder index, the same as the lateral shoulder index is calculated, given the coordinates of the higher axillary point (h higher_armpit ,w higher_armpit ) and the coordinates of the neck midpoint (h neck ,w neck ), at height h higher_armpit Scan the leftmost and rightmost human body contour points upward to obtain point A (h higher_armpit ,w left ) and point B(h higher_armpit ,w right );

[0119] Point C(h higher_armpit ,w neck ) is the dividing point, and the horizontal line segments AC and BC are obtained;

[0120] Note the third point of the horizontal line segment AC (h higher_armpit ,w left +(w neck -w left ) / 3) is point A outer , record the two-thirds point of the horizontal line segment AC (h higher_armpit ,w left +2*(w neck -w left ) / 3) is point A inner ;

[0121] Point A outer As the starting point, scan upwards to scan the outer contour points of the human shoulder:

[0122] A o ' uter (h outer_left ,w left +w neck -w left ) / 3

[0123] Point A inner As the starting point, scan upwards to scan the inner contour points of the human shoulder:

[0124] A i ' nner (h inner_left ,w left +2*(w neck -w left ) / 3)

[0125] Calculate the left inner shoulder height:

[0126] d inner_left =d3=h higher_armpit -h inner_left

[0127] Left outer shoulder height:

[0128] d outer_left =d1=h higher_armpit -h outer_left

[0129] Note the third point of the horizontal line segment BC (h higher_armpit ,w right -2*(w right -w neck ) / 3) is point B inner , record the two-thirds point of the horizontal line segment BC (h higher_armpit ,w right -(w right -w neck ) / 3) is point B outer ;

[0130] Point B outer As the starting point, scan upwards to scan the outer contour points of the human shoulder:

[0131] B o ' uter (h higher_armpit ,w right -2*(w right -w neck ) / 3)

[0132] Point B inner As the starting point, scan upwards to scan the inner contour points of the human shoulder:

[0133] B i ' nner (h higher_armpit ,w right -(w right -w neck ) / 3)

[0134] Calculate the right inner shoulder height:

[0135] d inner_right =d4=h higher_armpit -h inner_right

[0136] Right outer shoulder height:

[0137] d outer_right =d2=h higher_armpit -h outer_shoulder

[0138] Medial Shoulder Index:

[0139] I inner_shoulder =d inner_left / d inner_right =d3 / d4

[0140] Lateral Shoulder Index:

[0141] I outer_shoulder =d outer_left / d outer_right =d1 / d2

[0142] For shoulder area index calculation, Figure 4 As shown, the height h of the armpit point on the higher side higher_armpit As the starting height, sample the left side of the human body contour points upward along the human body contour:

[0143]

[0144] And the human body contour points on the right:

[0145]

[0146] Calculate the left shoulder area:

[0147]

[0148] Calculate the right shoulder area:

[0149]

[0150] The calculation formula of shoulder area index is:

[0151] I shoulder_area =S left_shoulder / S right_shoulder

[0152] For waist depth index calculation, the maximum distance d between the left and right sides measured by finding the waist depth points on the left and right sides is used. left and d right ;

[0153] The calculation formula of waist depth index is:

[0154] I waist_depth =d left / d right

[0155] For waist area index calculation, the left and right waistline sampling points scanned by finding the left and right waist depth points are used:

[0156]

[0157] and

[0158]

[0159] Among them, h waist Refers to the height of the waist area base point, h lower_armpit Refers to the height of the lower axillary point;

[0160] Calculate the left waist area:

[0161]

[0162] Calculate the right waist area:

[0163]

[0164] Waist area index

[0165] I waist_area =S left_waist / S right_waist .

[0166] Step 104: input the human body posture characteristic parameters into a preset human body posture detection model to obtain a human body posture detection result of the detection object based on the calculation of the human body posture detection model.

[0167] Among them, the human posture detection model is obtained by training based on preset human posture feature parameter samples.

[0168] Next, based on the human body posture feature parameters obtained in step 103, the human body posture feature parameters are input into a human body posture detection model trained based on a preset human body posture feature parameter sample, so as to perform calculations and judgments using the prior knowledge formed by the human body posture detection model training, thereby obtaining the human body posture detection result of the detection object.

[0169] The calculated axillary angle, shoulder angle, inner shoulder index, outer shoulder index, shoulder area index, waist depth index and waist area index are represented by a vector, and the vector is used as an input feature and input into the trained discriminant model;

[0170] The vector expression can be seen in the following example:

[0171] (∠ armpit ,∠ shoulder ,I inner_shoulder ,I outer_shoulder ,I shoulder_area ,I waist_depth ,I waist_area )

[0172] Based on a pre-set judgment threshold, the preferred value range is 0.5 to 0.6. If the output value of the discrimination model is greater than or equal to the judgment threshold, it is judged that the posture is abnormal, otherwise it is judged that the posture is normal.

[0173] The above is a detailed description of an embodiment of a method for detecting abnormal human spine posture provided by the present application. The following is a detailed description of an embodiment of a device for detecting abnormal human spine posture provided by the present application.

[0174] See also Figure 5 The present application provides an embodiment of a human spine abnormality detection device corresponding to the above-mentioned human spine abnormality detection method embodiment, including:

[0175] An image acquisition unit 201 is used to acquire a human body posture detection image of a detection object, wherein the human body posture detection image is an image of a human back of the detection object in a static standing state taken by a camera device;

[0176] The image processing unit 202 is used to perform image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object;

[0177] A characteristic parameter calculation unit 203 is used to determine the human body posture detection points of the detection object according to the human body characteristic image, and calculate the human body posture characteristic parameters based on the human body posture detection points;

[0178] The posture detection and determination unit 204 is used to input the human posture characteristic parameters into a preset human posture detection model to obtain the human posture detection result of the detection object based on the operation of the human posture detection model, wherein the human posture detection model is obtained by training based on the preset human posture characteristic parameter samples.

[0179] In addition to the above-mentioned embodiment of a human spine abnormality detection device, the present application also provides a detailed description of an embodiment of a human spine abnormality detection terminal and a computer storage medium, which are as follows:

[0180] See also Figure 6 , the present application also provides an embodiment of a human spine posture abnormality detection terminal, the types of the terminal are not limited to personal computers, industrial computers, servers and embedded intelligent devices, the main components of the terminal include: a memory 33 and a processor 31, the memory 33 and the processor 31 can be connected via a communication bus 34;

[0181] The memory 33 is used to store program codes corresponding to a method for detecting abnormal human spine posture as provided in the first aspect of the present application;

[0182] The processor 31 is used to execute program codes.

[0183] The present application also provides a computer-readable storage medium, in which is stored a program code corresponding to a method for detecting abnormal human spine posture as provided in the first aspect of the present application.

[0184] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0185] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0186] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0187] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0191] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting abnormal posture of human spine, characterized in that: include: Acquire a human body posture detection image of the detection object, wherein the human body posture detection image is an image of the back of the detection object in a static standing state taken by a camera device; Performing image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object; Determine a human body posture detection point of the detection object according to the human body feature image, and calculate a human body posture feature parameter based on the human body posture detection point; The human body posture characteristic parameters are input into a preset human body posture detection model to obtain a human body posture detection result of the detection object based on the operation of the human body posture detection model, wherein the human body posture detection model is obtained by training based on a preset human body posture characteristic parameter sample.

2. A method for detecting abnormal human spine posture according to claim 1, characterized in that: The human body feature image specifically includes: a human body area indication image, a background-free human body image, and a human body high-frequency edge image.

3. A method for detecting abnormal human spine posture according to claim 2, characterized in that: The performing image segmentation and edge extraction processing on the human posture detection image to obtain the human feature image of the detection object specifically comprises: Segmenting the human body posture detection image using a preset image segmentation model to obtain a binary human body region indication map; Applying the human body region indication map to the human body posture detection image to obtain a background-free human body map; The high-frequency edge of the human body image without background is extracted by an edge extraction algorithm to obtain a high-frequency edge image of the human body.

4. A method for detecting abnormal human spine posture according to claim 2, characterized in that: After performing image segmentation and edge extraction processing on the human posture detection image to obtain the human feature image of the detection object, the following further comprises: Determine the coordinates of four endpoints of the human body region according to the human body region indication map, and determine a rectangular region according to the four endpoint coordinates; According to preset image size parameters, size normalization processing is performed on the range images corresponding to the rectangular areas in the human body area indication map, the background-free human body map and the human body high-frequency edge map, respectively, to obtain standardized human body area indication map, background-free human body map and human body high-frequency edge map.

5. The method for detecting abnormal human spine posture according to claim 1, characterized in that: The human body posture detection points specifically include: left and right armpit points, left and right shoulder turning points, neck midpoint, waist area base point and left and right waist depth points.

6. A method for detecting abnormal human spine posture according to claim 5, characterized in that: The human body posture characteristic parameters specifically include: armpit angle, shoulder angle, inner shoulder index, outer shoulder index, shoulder area index, waist depth index and waist area index.

7. A method for detecting abnormal human spine posture according to claim 6, characterized in that: The calculation method of the axillary angle is specifically as follows: ∠ armpit =arctan[(h left_armpit -h right_armpit ) / (w left_armpit -w right_armpit )] In the formula, ∠ armpit is the axillary angle, h left_armpit 、w left_armpit The ordinate and abscissa of the left axillary point, h right_armpit 、w right_armpit The ordinate and abscissa of the right axillary point, respectively; The shoulder angle is calculated as follows: ∠ shoulder =arctan[(h left_shoulder -h right_shoulder ) / (w left_shoulder -w right_shoulder )] In the formula, ∠ shoulder is the shoulder angle, h left_shoulder 、w left_shoulder The ordinate and abscissa of the left shoulder inflection point, respectively, h right_shoulder h right_armpit 、w right_armpit The ordinate and abscissa of the right shoulder inflection point respectively; The medial shoulder index is calculated as: I inner_shoulder =d inner_left / d inner_right In the formula, I inner_shoulder is the medial shoulder index, d inner_left is the height of the left inner shoulder, d inner_right is the height of the right inner shoulder; The lateral shoulder index is calculated as follows: I outer_shoulder =d outer_left / d outer_right In the formula, I outer_shoulder is the lateral shoulder index, d outer_left is the height of the left outer shoulder, d outer_right is the height of the right outer shoulder; The shoulder area index is calculated as follows: I shoulder_area =S left_shoulder / S right_shoulder In the formula, I shoulder_area is the shoulder area index, S left_shoulder is the left shoulder area, S right_shoulder is the right shoulder area; The waist depth index is calculated as follows: I waist_depth =d left / d right In the formula, I waist_depth is the waist depth index, d left is the waist depth value of the left waist, d right It is the waist depth value of the right waist; The waist area index is calculated as follows: I waist_area =S left_waist / S right_waist In the formula, I waist_area is the waist area index, S left_waist is the left waist area, S right_waist It is the right waist area.

8. A device for detecting abnormal posture of human spine, characterized in that: include: An image acquisition unit, used for acquiring a human body posture detection image of a detection object, wherein the human body posture detection image is an image of a human back of the detection object in a static standing state taken by a camera device; An image processing unit, used for performing image segmentation and edge extraction processing on the human posture detection image to obtain a human feature image of the detection object; A characteristic parameter calculation unit, used to determine the human body posture detection points of the detection object according to the human body characteristic image, and calculate the human body posture characteristic parameters based on the human body posture detection points; The posture detection and determination unit is used to input the human posture characteristic parameters into a preset human posture detection model to obtain the human posture detection result of the detection object based on the operation of the human posture detection model, wherein the human posture detection model is obtained by training based on preset human posture characteristic parameter samples.

9. A human spine posture abnormality detection terminal, characterized in that: include: Memory and processor; The memory is used to store a program code corresponding to a method for detecting abnormal human spine posture according to any one of claims 1 to 7; The processor is configured to execute the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes corresponding to the method for detecting abnormal human spine posture as described in any one of claims 1 to 7.