CN108648229B - Human back feature point extraction method based on Kinect camera - Google Patents

Human back feature point extraction method based on Kinect camera Download PDF

Info

Publication number
CN108648229B
CN108648229B CN201810479306.8A CN201810479306A CN108648229B CN 108648229 B CN108648229 B CN 108648229B CN 201810479306 A CN201810479306 A CN 201810479306A CN 108648229 B CN108648229 B CN 108648229B
Authority
CN
China
Prior art keywords
human body
coordinate
point
contour
human
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810479306.8A
Other languages
Chinese (zh)
Other versions
CN108648229A (en
Inventor
杨浩
张静
许真达
曹越
林文韬
李圳浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lingdong Medical Technology Co ltd
Original Assignee
Sichuan Efficiency Future Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Efficiency Future Technology Co ltd filed Critical Sichuan Efficiency Future Technology Co ltd
Priority to CN201810479306.8A priority Critical patent/CN108648229B/en
Publication of CN108648229A publication Critical patent/CN108648229A/en
Application granted granted Critical
Publication of CN108648229B publication Critical patent/CN108648229B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30008Bone
    • G06T2207/30012Spine; Backbone
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a human back feature point extraction method based on a Kinect camera, which comprises the steps of obtaining a human back image, graying, contrast stretching, binaryzation, connected domain marking, traversing and searching for human back armpit, shoulder, waist and crotch feature points, and marking in the human back image. According to the invention, by extracting the outline image of the human back image and traversing the outline image, the characteristic points of the human back image can be efficiently and accurately extracted, and accurate data is provided for the subsequent calculation of the scoliosis degree of the human body.

Description

基于Kinect相机的人体背部特征点提取方法Human back feature point extraction method based on Kinect camera

技术领域technical field

本发明属于数字图像处理领域,具体涉及一种基于Kinect相机的人体背部特征点提取方法。The invention belongs to the field of digital image processing, in particular to a method for extracting feature points of the back of a human body based on a Kinect camera.

背景技术Background technique

脊柱侧弯也可以称之为脊柱侧凸,具有多发性的特点,近年来青少年出现脊柱侧凸的情况正在逐年增加,对青少年的生活以及以后工作造成一定程度的影响,因此脊柱侧弯检测有着相当广泛的应用。脊柱侧弯目前常用的方法是脊柱侧凸尺,Adams向前弯腰试验,但是这些检测方法都不够精确,且靠人工检测不仅费力,得到的结果精度也不够,容易导致误检和漏检,而基于数字图像处理的特征自动提取能保证精度的同时节约大量的人力物力。Scoliosis can also be called scoliosis, which has multiple characteristics. In recent years, the incidence of scoliosis in adolescents is increasing year by year, which has a certain degree of impact on adolescents' lives and future work. Therefore, scoliosis detection has quite a wide range of applications. The commonly used methods for scoliosis are the scoliosis ruler and the Adams forward bending test, but these detection methods are not accurate enough, and relying on manual detection is not only laborious, but also the results obtained are not accurate enough, which may easily lead to false detection and missed detection. The automatic feature extraction based on digital image processing can ensure the accuracy and save a lot of manpower and material resources.

发明内容SUMMARY OF THE INVENTION

本发明的发明目的是:为了解决现有技术中存在的以上问题,本发明提出了一种基于Kinect相机的人体背部特征点提取方法。The purpose of the present invention is to: in order to solve the above problems existing in the prior art, the present invention proposes a method for extracting feature points of the back of a human body based on a Kinect camera.

本发明的技术方案是:一种基于Kinect相机的人体背部特征点提取方法,包括以下步骤:The technical scheme of the present invention is: a method for extracting feature points on the back of a human body based on a Kinect camera, comprising the following steps:

A、获取人体背部图像,并对人体背部图像进行灰度化处理;A. Obtain the image of the back of the human body, and perform grayscale processing on the image of the back of the human body;

B、对步骤A得到的灰度图像进行对比度拉伸处理;B. Contrast stretching is performed on the grayscale image obtained in step A;

C、对步骤B处理后的图像采用大津阈值二值化方法进行处理,得到二值图像;C, adopt the Otsu threshold binarization method to process the image processed in step B to obtain a binary image;

D、采用连通域方法对步骤C得到的二值图像进行处理,得到人体背部二值图像;D, using the connected domain method to process the binary image obtained in step C to obtain a binary image of the back of the human body;

E、采用canny算子方法对步骤D得到的人体背部二值图像进行处理,得到人体背部外轮廓图;E, adopt the canny operator method to process the binary image of the back of the human body obtained in step D, and obtain the outline of the back of the human body;

F、对步骤E得到的人体背部外轮廓图进行遍历,分别得到人体背部左侧腋下坐标点、右侧腋下坐标点、左侧肩坐标点、右侧肩坐标点、腰部坐标点和胯骨坐标点;F. Traverse the outer contour map of the back of the human body obtained in step E, and obtain the left armpit coordinate point, right armpit coordinate point, left shoulder coordinate point, right shoulder coordinate point, waist coordinate point and hip bone of the back of the human body respectively. Coordinate points;

G、根据步骤F得到的多个坐标点在步骤A的人体背部图像中进行标注。G. Mark the multiple coordinate points obtained in step F in the image of the back of the human body in step A.

进一步地,所述步骤D采用连通域方法对步骤C得到的二值图像进行处理,得到人体背部二值图像,具体为:对步骤C得到的二值图像进行连通域标记,并统计连通区域的个数;再对得到的连通区域计算每一个连通区域的面积,将小于最大连通区域面积的连通域置零,得到人体背部二值图像。Further, the step D uses the connected domain method to process the binary image obtained in step C to obtain a binary image of the back of the human body. Specifically, the connected domain is marked on the binary image obtained in step C, and the statistics of the connected regions are calculated. Then calculate the area of each connected area for the obtained connected area, set the connected area smaller than the maximum connected area area to zero, and obtain a binary image of the back of the human body.

进一步地,所述步骤D还包括对得到的人体背部二值图像进行孔洞填充处理。Further, the step D further includes performing hole filling processing on the obtained binary image of the back of the human body.

进一步地,所述步骤F包括对步骤E得到的人体背部外轮廓图计算中心坐标和轮廓图第i行左右两侧的背部轮廓坐标(i1,k1)及(i2,k2)。Further, the step F includes calculating the center coordinates and the back contour coordinates (i 1 , k 1 ) and (i 2 , k 2 ) on the left and right sides of the i-th row of the human body back outline obtained in the step E.

进一步地,所述步骤F对人体背部外轮廓图进行遍历,得到人体背部左侧腋下坐标点具体为:对人体背部外轮廓图从第i1-1行的第j列开始遍历,找到人体背部左侧轮廓的列坐标k′1,判断列坐标k′1与列坐标的差值k1是否大于设定阈值;若是,则将第i1行的左侧轮廓坐标作为人体背部左侧腋下坐标点(m1,n1);若否,则继续遍历第i1-2行。Further, the step F traverses the outline of the back of the human body, and obtains the coordinates of the left armpit of the back of the human body. Specifically: traverse the outline of the back of the human body from the jth column of the i 1-1 row to find the human body. The column coordinate k′ 1 of the left contour of the back is used to determine whether the difference k 1 between the column coordinate k′ 1 and the column coordinate is greater than the set threshold ; The lower coordinate point (m 1 , n 1 ); if not, continue to traverse the i 1 -2 row.

进一步地,所述步骤F对人体背部外轮廓图进行遍历,得到人体背部右侧腋下坐标点具体为:对人体背部外轮廓图从第i2-1行的第j列开始遍历,找到人体背部右侧轮廓的列坐标k′2,判断列坐标k′2与列坐标的差值k2是否大于设定阈值;若是,则将第i2行的右侧轮廓坐标作为人体背部右侧腋下坐标点(m2,n2);若否,则继续遍历第i2-2行。Further, the step F traverses the outline of the back of the human body, and obtains the right armpit coordinate point of the back of the human body. Specifically, the outline of the back of the human body is traversed from the jth column of the i2-1 row to find the human body. The column coordinate k' 2 of the right contour of the back is used to determine whether the difference k 2 between the column coordinate k' 2 and the column coordinate is greater than the set threshold ; The lower coordinate point (m 2 , n 2 ); if not, continue to traverse the i 2 -2th row.

进一步地,所述步骤F对人体背部外轮廓图进行遍历,得到人体背部左侧肩坐标点具体为:根据对人体背部外轮廓图从第m1-1行开始遍历n1列,找到不为零的点,作为人体背部左侧肩坐标点。Further, the step F traverses the outline of the back of the human body, and obtains the left shoulder coordinate point of the back of the human body. Specifically: according to the outline of the back of the human body, traverse n 1 columns starting from the m 1 -1 row, and find a The zero point is used as the coordinate point of the left shoulder of the back of the human body.

进一步地,所述步骤F对人体背部外轮廓图进行遍历,得到人体背部右侧肩坐标点具体为:根据对人体背部外轮廓图从第m2-1行开始遍历n2列,找到不为零的点,作为人体背部右侧肩坐标点。Further, the step F traverses the outline of the back of the human body, and obtains the right shoulder coordinate point of the back of the human body. Specifically: according to the outline of the back of the human body, traverse n 2 columns starting from the m 2 -1 row, and find the The zero point is taken as the coordinate point of the right shoulder of the back of the human body.

进一步地,所述步骤F对人体背部外轮廓图进行遍历,得到人体背部腰部坐标点和胯骨坐标点具体为采用基于曲率的角点检测算法对人体背部外轮廓图进行角点检测,包括以下分步骤:Further, the step F traverses the outline of the back of the human body, and obtains the coordinates of the waist and the crotch of the back of the human body. Specifically, the corner detection algorithm based on the curvature is used to detect the outline of the back of the human body, including the following parts: step:

S1、从人体背部外轮廓图的中心行坐标开始,分别获取人体背部左右两侧轮廓坐标;S1. Starting from the center row coordinates of the outer contour map of the back of the human body, obtain the contour coordinates of the left and right sides of the back of the human body respectively;

S2、从人体背部左右两侧轮廓坐标的第N个轮廓点开始,依次选取该点为当前轮廓点pi,与当前轮廓点间隔N-1个点的轮廓点为前轮廓点pi-(N-1)和后轮廓点pi+(N-1)S2. Starting from the Nth contour point of the contour coordinates on the left and right sides of the back of the human body, select this point as the current contour point p i in turn, and the contour point separated from the current contour point by N-1 points is the front contour point p i-( N-1) and back contour point p i+(N-1) ;

S3、根据曲率公式计算当前轮廓点pi的曲率;S3. Calculate the curvature of the current contour point p i according to the curvature formula;

S4、从人体背部左右两侧轮廓点的曲率中找到曲率最大值和最小值对应的轮廓点,即为人体背部胯骨坐标点和腰部坐标点。S4. Find the contour points corresponding to the maximum and minimum curvatures from the curvatures of the contour points on the left and right sides of the back of the human body, which are the coordinate points of the crotch and the waist of the back of the human body.

进一步地,所述步骤S3中曲率公式具体为:Further, the curvature formula in the step S3 is specifically:

Figure BDA0001665244100000021
Figure BDA0001665244100000021

其中,k(i)为第i个轮廓点的曲率,|pipi-k|为当前轮廓点与其间隔k个点的前轮廓点的距离,|pipi+k|为当前轮廓点与其间隔k个点的后轮廓点的距离,|pi-kpi+k|为前轮廓点pi-k与后轮廓点pi+k的距离。Among them, k(i) is the curvature of the ith contour point, |pi p ik | is the distance between the current contour point and the previous contour point at k points, |pi p i +k | is the current contour point and its distance The distance between the back contour points separated by k points, |p ik p i+k | is the distance between the front contour point p ik and the back contour point p i+k .

本发明的有益效果是:本发明通过提取人体背部图像的外轮廓图,并对外轮廓图进行遍历,能够高效、精确的提取出人体背部图像的特征点,为后续计算人体脊柱侧弯程度提供精确的数据。The beneficial effects of the present invention are as follows: the present invention can extract the feature points of the back image of the human body efficiently and accurately by extracting the outer contour of the image of the back of the human body and traversing the outer contour, thereby providing accurate and accurate results for the subsequent calculation of the degree of scoliosis of the human body The data.

附图说明Description of drawings

图1是本发明的基于Kinect相机的人体背部特征点提取方法的流程示意图;1 is a schematic flowchart of a method for extracting feature points on the back of a human body based on a Kinect camera of the present invention;

图2是本发明实施例中灰度化处理后的灰度图像;2 is a grayscale image after grayscale processing in an embodiment of the present invention;

图3是本发明实施例中采用大津阈值二值化后的二值图像;Fig. 3 is the binary image after adopting Otsu threshold binarization in the embodiment of the present invention;

图4是本发明实施例中人体背部外轮廓示意图;4 is a schematic diagram of the outer contour of the back of the human body in the embodiment of the present invention;

图5是本发明实施例中人体背部图像标注结果示意图。FIG. 5 is a schematic diagram of an image labeling result of the back of a human body in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

如图1所示,为本发明的基于Kinect相机的人体背部特征点提取方法的流程示意图。一种基于Kinect相机的人体背部特征点提取方法,包括以下步骤:As shown in FIG. 1 , it is a schematic flowchart of the method for extracting feature points of human back based on the Kinect camera of the present invention. A method for extracting human back feature points based on a Kinect camera, comprising the following steps:

A、获取人体背部图像,并对人体背部图像进行灰度化处理;A. Obtain the image of the back of the human body, and perform grayscale processing on the image of the back of the human body;

B、对步骤A得到的灰度图像进行对比度拉伸处理;B. Contrast stretching is performed on the grayscale image obtained in step A;

C、对步骤B处理后的图像采用大津阈值二值化方法进行处理,得到二值图像;C, adopt the Otsu threshold binarization method to process the image processed in step B to obtain a binary image;

D、采用连通域方法对步骤C得到的二值图像进行处理,得到人体背部二值图像;D, using the connected domain method to process the binary image obtained in step C to obtain a binary image of the back of the human body;

E、采用canny算子方法对步骤D得到的人体背部二值图像进行处理,得到人体背部外轮廓图;E, adopt the canny operator method to process the binary image of the back of the human body obtained in step D, and obtain the outline of the back of the human body;

F、对步骤E得到的人体背部外轮廓图进行遍历,分别得到人体背部左侧腋下坐标点、右侧腋下坐标点、左侧肩坐标点、右侧肩坐标点、腰部坐标点和胯骨坐标点;F. Traverse the outer contour map of the back of the human body obtained in step E, and obtain the left armpit coordinate point, right armpit coordinate point, left shoulder coordinate point, right shoulder coordinate point, waist coordinate point and hip bone of the back of the human body respectively. Coordinate points;

G、根据步骤F得到的多个坐标点在步骤A的人体背部图像中进行标注。G. Mark the multiple coordinate points obtained in step F in the image of the back of the human body in step A.

在本发明的一个可选实施例中,上述步骤A采用Kinect相机拍摄得到人体背部图像,图像的大小为1920X1080;并对得到的人体背部图像进行灰度化处理。如图2所示,为本发明实施例中灰度化处理后的灰度图像;如图3所示,为本发明实施例中采用大津阈值二值化后的二值图像;如图4所示,为本发明实施例中人体背部外轮廓示意图。In an optional embodiment of the present invention, in the above step A, a Kinect camera is used to obtain an image of the back of the human body, and the size of the image is 1920×1080; and grayscale processing is performed on the obtained image of the back of the human body. As shown in FIG. 2, it is a grayscale image after grayscale processing in the embodiment of the present invention; as shown in FIG. 3, it is a binary image after binarization using Otsu threshold in the embodiment of the present invention; as shown in FIG. 4 It is a schematic diagram of the outer contour of the back of the human body in the embodiment of the present invention.

在本发明的一个可选实施例中,上述步骤D采用连通域方法对步骤C得到的二值图像进行处理,得到人体背部二值图像,具体为:对步骤C得到的二值图像进行连通域标记,并统计连通区域的个数;再对得到的连通区域计算每一个连通区域的面积,进行筛选,将小于最大连通区域面积的连通域置零,得到人体背部二值图像。In an optional embodiment of the present invention, the above-mentioned step D adopts the connected domain method to process the binary image obtained in step C to obtain a binary image of the back of the human body. Specifically, the connected domain is performed on the binary image obtained in step C. Mark, and count the number of connected regions; then calculate the area of each connected region for the obtained connected regions, filter, and set the connected regions smaller than the largest connected region to zero to obtain a binary image of the back of the human body.

由于人体背部图像颜色有可能有差异,二值化后会产生一些孔洞,因此对得到的人体背部二值图像进行孔洞填充处理。Since the color of the back image of the human body may be different, some holes will be generated after binarization, so the hole filling process is performed on the obtained binary image of the back of the human body.

在本发明的一个可选实施例中,上述步骤F首先对步骤E得到的人体背部外轮廓图计算中心坐标(i,j)和轮廓图第i行左右两侧的背部轮廓坐标(i1,k1)及(i2,k2)。In an optional embodiment of the present invention, the above-mentioned step F first calculates the center coordinates (i,j) and the back contour coordinates (i 1 , k 1 ) and (i 2 , k 2 ).

对人体背部外轮廓图进行遍历,得到人体背部左侧腋下坐标点具体为:对人体背部外轮廓图从第i1-1行开始往上遍历,从第i1-1行的第j列开始往第0列遍历,找到人体背部左侧轮廓的列坐标k′1,判断列坐标k′1与列坐标k1的差值是否大于设定阈值,这里的阈值设置为10;若是,则将第i1行的左侧轮廓坐标作为人体背部左侧腋下坐标点(m1,n1);若否,则继续遍历第i1-2行,找到新的人体背部左侧轮廓的列坐标,判断该列坐标与列坐标k′1的差值是否大于设定阈值;若是,则将第i1-1行的左侧轮廓坐标作为人体背部左侧腋下坐标点;按照该方法迭代执行,直至找到人体背部左侧腋下坐标点。Traverse the outline of the back of the human body, and obtain the coordinates of the left armpit of the back of the human body. Specifically, the outline of the back of the human body is traversed from the i 1 -1 row upwards, and the jth column of the i 1 -1 row is traversed. Start to traverse to the 0th column, find the column coordinate k' 1 of the left contour of the back of the human body, and judge whether the difference between the column coordinate k' 1 and the column coordinate k 1 is greater than the set threshold, and the threshold here is set to 10; if so, then Take the coordinates of the left contour of row i 1 as the coordinate point (m 1 , n 1 ) of the left armpit of the back of the human body; if not, continue to traverse rows i 1 -2 to find the new column of the left contour of the back of the human body coordinate, and determine whether the difference between the column coordinate and the column coordinate k′ 1 is greater than the set threshold; if so, take the left contour coordinate of the i 1 -1 row as the coordinate point of the left armpit of the back of the human body; iterate according to this method Execute until the coordinate point of the armpit on the left side of the back of the human body is found.

对人体背部外轮廓图进行遍历,得到人体背部右侧腋下坐标点具体为:对人体背部外轮廓图从第i2-1行的第j列开始遍历,找到人体背部右侧轮廓的列坐标k′2,判断列坐标k′2与列坐标k2的差值是否大于设定阈值;若是,则将第i2行的右侧轮廓坐标作为人体背部右侧腋下坐标点(m2,n2);若否,则继续遍历第i2-2行,找到新的人体背部左侧轮廓的列坐标,判断该列坐标与列坐标k′2的差值是否大于设定阈值;若是,则将第i2-1行的右侧轮廓坐标作为人体背部右侧腋下坐标点;按照该方法迭代执行,直至找到人体背部右侧腋下坐标点。Traverse the outer contour map of the back of the human body to obtain the coordinate points of the right armpit of the back of the human body. Specifically: traverse the outer contour map of the back of the human body from the jth column of row i 2 -1 to find the column coordinates of the outline of the right side of the human back. k' 2 , judge whether the difference between the column coordinate k' 2 and the column coordinate k 2 is greater than the set threshold ; n 2 ); if not, then continue to traverse the i 2 -2 row, find the column coordinates of the left contour of the new back of the human body, and judge whether the difference between the column coordinates and the column coordinates k′ 2 is greater than the set threshold; if so, Then, the coordinates of the right contour of the i 2 -1 line are taken as the coordinate point of the right armpit on the back of the human body; the method is iteratively executed until the coordinate point of the right armpit on the back of the human body is found.

对人体背部外轮廓图进行遍历,得到人体背部左侧肩坐标点具体为:根据对人体背部外轮廓图从第m1-1行开始往上遍历人体背部外轮廓图的n1列,找到不为零的点,作为人体背部左侧肩坐标点。Traverse the outer contour map of the back of the human body, and obtain the coordinate point of the left shoulder of the back of the human body. Specifically: according to the outer contour map of the human back, traverse the n 1 columns of the outer contour map of the human back from the m 1 -1 row upwards, and find no The zero point is used as the coordinate point of the left shoulder of the back of the human body.

对人体背部外轮廓图进行遍历,得到人体背部右侧肩坐标点具体为:根据对人体背部外轮廓图从第m2-1行开始往上遍历人体背部外轮廓图的n2列,找到不为零的点,作为人体背部右侧肩坐标点。Traverse the contour map of the back of the human body, and obtain the coordinate point of the shoulder on the right side of the back of the human body. Specifically: according to the contour map of the back of the human body, traverse n2 columns of the contour map of the back of the human body from the m 2 -1 row upwards, and find no The zero point is used as the shoulder coordinate point on the right side of the back of the human body.

对人体背部外轮廓图进行遍历,得到人体背部腰部坐标点和胯骨坐标点具体为采用基于曲率的角点检测算法对人体背部外轮廓图进行角点检测,包括以下分步骤:Traverse the outer contour map of the back of the human body to obtain the waist coordinate points and the coordinate points of the hip bone on the back of the human body. Specifically, the corner detection algorithm based on the curvature of the human body is used to detect the outer contour of the back of the human body, including the following sub-steps:

S1、从人体背部外轮廓图的中心行坐标开始,分别获取人体背部左右两侧轮廓坐标;S1. Starting from the center row coordinates of the outer contour map of the back of the human body, obtain the contour coordinates of the left and right sides of the back of the human body respectively;

S2、从人体背部左右两侧轮廓坐标的第N个轮廓点开始,依次选取该点为当前轮廓点pi,与当前轮廓点间隔N-1个点的轮廓点为前轮廓点pi-(N-1)和后轮廓点pi+(N-1)S2. Starting from the Nth contour point of the contour coordinates on the left and right sides of the back of the human body, select this point as the current contour point p i in turn, and the contour point separated from the current contour point by N-1 points is the front contour point p i-( N-1) and back contour point p i+(N-1) ;

本发明分别从人体背部左右两侧轮廓坐标的第5个轮廓点开始,依次选取该点为当前轮廓点pi,与当前轮廓点间隔4个点的轮廓点为前轮廓点pi-4和后轮廓点pi+4The present invention starts from the 5th contour point of the contour coordinates on the left and right sides of the back of the human body, and sequentially selects this point as the current contour point p i , and the contour points separated from the current contour point by 4 points are the front contour points p i-4 and Back contour point p i+4 .

S3、根据曲率公式计算当前轮廓点pi的曲率,曲率公式具体为:S3. Calculate the curvature of the current contour point p i according to the curvature formula, and the curvature formula is specifically:

Figure BDA0001665244100000051
Figure BDA0001665244100000051

其中,k(i)为第i个轮廓点的曲率,|pipi-k|为当前轮廓点与其间隔k个点的前轮廓点的距离,|pipi+k|为当前轮廓点与其间隔k个点的后轮廓点的距离,|pi-kpi+k|为前轮廓点pi-k与后轮廓点pi+k的距离。Among them, k(i) is the curvature of the ith contour point, |pi p ik | is the distance between the current contour point and the previous contour point at k points, |pi p i +k | is the current contour point and its distance The distance between the back contour points separated by k points, |p ik p i+k | is the distance between the front contour point p ik and the back contour point p i+k .

S4、从人体背部左右两侧轮廓点的曲率中找到曲率最大值和最小值对应的轮廓点,即为人体背部胯骨坐标点和腰部坐标点。如图5所示,为本发明实施例中人体背部图像标注结果示意图。S4. Find the contour points corresponding to the maximum and minimum curvatures from the curvatures of the contour points on the left and right sides of the back of the human body, which are the coordinate points of the crotch and the waist of the back of the human body. As shown in FIG. 5 , it is a schematic diagram of an image labeling result of the back of the human body in the embodiment of the present invention.

本领域的普通技术人员将会意识到,这里所述的实施例是为了帮助读者理解本发明的原理,应被理解为本发明的保护范围并不局限于这样的特别陈述和实施例。本领域的普通技术人员可以根据本发明公开的这些技术启示做出各种不脱离本发明实质的其它各种具体变形和组合,这些变形和组合仍然在本发明的保护范围内。Those of ordinary skill in the art will appreciate that the embodiments described herein are intended to assist readers in understanding the principles of the present invention, and it should be understood that the scope of protection of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations without departing from the essence of the present invention according to the technical teaching disclosed in the present invention, and these modifications and combinations still fall within the protection scope of the present invention.

Claims (4)

1. A human back feature point extraction method based on a Kinect camera is characterized by comprising the following steps:
A. acquiring a back image of a human body, and carrying out gray processing on the back image of the human body;
B. b, performing contrast stretching treatment on the gray level image obtained in the step A;
C. b, processing the image processed in the step B by adopting an Otsu threshold binarization method to obtain a binary image;
D. c, processing the binary image obtained in the step C by adopting a connected domain method to obtain a human back binary image;
E. d, processing the human body back binary image obtained in the step D by adopting a canny operator method to obtain a human body back outline image;
F. e, traversing the human back outline diagram obtained in the step E, and respectively obtaining a left-side axillary coordinate point, a right-side axillary coordinate point, a left-side shoulder coordinate point, a right-side shoulder coordinate point, a waist coordinate point and a crotch coordinate point of the human back, specifically:
calculating the center coordinates of the human body back outline drawing obtained in the step E and the back outline coordinates (i) at the left side and the right side of the ith row of the outline drawing1,k1) And (i)2,k2);
From the ith to the human back outline1Starting to traverse the jth column of the-1 row, and finding the column coordinate k of the left outline of the back of the human body1', judging the column coordinate k1' and column coordinate k1Whether the difference is greater than a set threshold value; if yes, the ith1The left contour coordinate of the row is taken as the left axillary coordinate point (m) of the back of the human body1,n1) (ii) a If not, continue traversing ith1-2 rows;
from the ith to the human back outline2Starting to traverse the jth column of the 1 row, and finding the column coordinate k of the contour of the right side of the back of the human body2', judging the column coordinate k2' and column coordinate k2Whether the difference is greater than a set threshold value; if yes, the ith2The right contour coordinate of the line is taken as the coordinate point (m) of the right armpit of the back of the human body2,n2) (ii) a If not, continue traversing ith2-2 rows;
according to the outline diagram of the back of the human bodyM th11 line starts traversing n1Column, finding out a point which is not zero as a coordinate point of the left shoulder of the back of the human body;
according to the outer contour diagram of the back of the human body from the m-th21 line starts traversing n2Column, finding out a point which is not zero as a coordinate point of the right shoulder of the back of the human body;
the method for detecting the corners of the human body back outline by adopting the corner detection algorithm based on curvature comprises the following steps:
s1, respectively acquiring contour coordinates of the left side and the right side of the back of the human body from the center line coordinate of the outline drawing of the back of the human body;
s2, sequentially selecting the Nth contour point of the contour coordinates of the left side and the right side of the back of the human body as the current contour point piThe contour point spaced from the current contour point by N-1 points is a front contour point pi-(N-1)And back contour point pi+(N-1)
S3, calculating the current contour point p according to the curvature formulaiThe curvature of (a);
s4, finding out contour points corresponding to the maximum value and the minimum value of curvature from the curvatures of the contour points on the left side and the right side of the back of the human body, namely the hip coordinate points and the waist coordinate points of the back of the human body;
G. and D, marking the human back image in the step A according to the plurality of coordinate points obtained in the step F.
2. The method for extracting human back feature points based on the Kinect camera as claimed in claim 1, wherein the step D adopts a connected domain method to process the binary image obtained in the step C to obtain a human back binary image, specifically: c, carrying out connected domain marking on the binary image obtained in the step C, and counting the number of connected domains; and calculating the area of each connected region for the obtained connected regions, and setting the connected region smaller than the area of the maximum connected region to zero to obtain a binary image of the back of the human body.
3. The method as claimed in claim 2, wherein the step D further comprises performing hole filling processing on the obtained binary image of the back of the human body.
4. The method for extracting human back feature points based on a Kinect camera as claimed in claim 1, wherein the curvature formula in the step S3 is specifically:
Figure FDA0002222585270000021
where k (i) is the curvature of the ith contour point, | pipi-kI is the distance between the current contour point and the front contour point spaced by k points, | pipi+kI is the distance between the current contour point and the back contour point separated by k points, | pi-kpi+kI is the front contour point pi-kAnd the back contour point pi+kThe distance of (c).
CN201810479306.8A 2018-05-18 2018-05-18 Human back feature point extraction method based on Kinect camera Expired - Fee Related CN108648229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810479306.8A CN108648229B (en) 2018-05-18 2018-05-18 Human back feature point extraction method based on Kinect camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810479306.8A CN108648229B (en) 2018-05-18 2018-05-18 Human back feature point extraction method based on Kinect camera

Publications (2)

Publication Number Publication Date
CN108648229A CN108648229A (en) 2018-10-12
CN108648229B true CN108648229B (en) 2020-07-28

Family

ID=63756830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810479306.8A Expired - Fee Related CN108648229B (en) 2018-05-18 2018-05-18 Human back feature point extraction method based on Kinect camera

Country Status (1)

Country Link
CN (1) CN108648229B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309787B (en) * 2019-07-03 2022-07-29 电子科技大学 A human sitting posture detection method based on depth camera
CN112750143B (en) * 2020-12-02 2024-04-26 上海海洋大学 Method for extracting morphological characteristics of stem flexible fish based on extremum method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578004A (en) * 2013-11-15 2014-02-12 西安工程大学 Method for displaying virtual fitting effect
CN105469113A (en) * 2015-11-19 2016-04-06 广州新节奏智能科技有限公司 Human body bone point tracking method and system in two-dimensional video stream
CN106384126A (en) * 2016-09-07 2017-02-08 东华大学 Garment Style Recognition Method Based on Contour Curvature Feature Points and Support Vector Machine
CN107481228A (en) * 2017-07-28 2017-12-15 电子科技大学 Human body back scoliosis angle measurement method based on computer vision

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60113046T2 (en) * 2000-01-14 2006-06-14 Koninkl Philips Electronics Nv PROCESSING METHOD AND SYSTEM FOR GEOMETRIC 3D MODELING OF THE SPINE
US8900146B2 (en) * 2009-07-27 2014-12-02 The Hong Kong Polytechnic University Three-dimensional (3D) ultrasound imaging system for assessing scoliosis
CN102930534B (en) * 2012-10-15 2015-05-13 北京工业大学 Method for automatically positioning acupuncture points on back of human body

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578004A (en) * 2013-11-15 2014-02-12 西安工程大学 Method for displaying virtual fitting effect
CN105469113A (en) * 2015-11-19 2016-04-06 广州新节奏智能科技有限公司 Human body bone point tracking method and system in two-dimensional video stream
CN106384126A (en) * 2016-09-07 2017-02-08 东华大学 Garment Style Recognition Method Based on Contour Curvature Feature Points and Support Vector Machine
CN107481228A (en) * 2017-07-28 2017-12-15 电子科技大学 Human body back scoliosis angle measurement method based on computer vision

Also Published As

Publication number Publication date
CN108648229A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
US11551341B2 (en) Method and device for automatically drawing structural cracks and precisely measuring widths thereof
CN105654507B (en) A kind of vehicle overall dimension measurement method based on the tracking of image behavioral characteristics
CN112818813A (en) Method and device for identifying table information in image, electronic equipment and storage medium
CN114081471B (en) Scoliosis cobb angle measuring method based on three-dimensional image and multilayer perception
CN105427324B (en) The magneto-optic image defects detection method searched for automatically based on binary-state threshold
RU2014112237A (en) ENTERING DATA FROM IMAGES OF DOCUMENTS WITH FIXED STRUCTURE
CN111932568A (en) Human body image segmentation method, and training method and device of human body image segmentation model
CN105675626A (en) Character defect detecting method of tire mold
CN107389693A (en) A kind of printed matter defect automatic testing method based on machine vision
CN103913149B (en) A kind of binocular range-measurement system and distance-finding method thereof based on STM32 single-chip microcomputer
CN111145205A (en) Pig body temperature detection method based on infrared image under multiple pig scenes
CN111275040A (en) Positioning method and apparatus, electronic device, computer-readable storage medium
CN102184544A (en) Method for correcting deformity and identifying image of go notation
CN108648229B (en) Human back feature point extraction method based on Kinect camera
CN104077775A (en) Shape matching method and device combining skeleton feature points and shape context
CN103500323B (en) Based on the template matching method of self-adaptation gray level image filtering
TWI543117B (en) Method for recognizing and locating object
CN103822932B (en) Based on the X ray realtime graphic weld defect method for detecting of multi-scale filtering operator
CN104036514A (en) Circle detection method based on histogram peak value search
CN104848917B (en) A kind of image measuring method for water level analysis in glass flume
CN114612410A (en) Novel clothing detects device
JP5772675B2 (en) Gray image edge extraction method, edge extraction device, and gray image edge extraction program
CN106529548A (en) Sub-pixel level multi-scale Harris corner detection algorithm
Xu et al. A deep learning framework for real-time multi-task recognition and measurement of concrete cracks
CN105718929A (en) All-weather unknown environment high precision rapid circular object positioning method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211110

Address after: 518057 314, industry university research building, Hong Kong Polytechnic University, 18 Yuexing 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Lingdong Medical Technology Co.,Ltd.

Address before: 610041 No. 1602, floor 16, building 1, No. 138, Tianfu Second Street, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan

Patentee before: SICHUAN EFFICIENCY FUTURE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200728

CF01 Termination of patent right due to non-payment of annual fee