CN116797778A - Region of interest acquisition method, electronic device and storage medium - Google Patents
Region of interest acquisition method, electronic device and storage medium Download PDFInfo
- Publication number
- CN116797778A CN116797778A CN202310288043.3A CN202310288043A CN116797778A CN 116797778 A CN116797778 A CN 116797778A CN 202310288043 A CN202310288043 A CN 202310288043A CN 116797778 A CN116797778 A CN 116797778A
- Authority
- CN
- China
- Prior art keywords
- line
- acupoint
- interest
- coordinates
- point
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000001467 acupuncture Methods 0.000 claims description 36
- 239000002131 composite material Substances 0.000 claims description 17
- 210000003414 extremity Anatomy 0.000 description 24
- 238000004458 analytical method Methods 0.000 description 7
- 239000003814 drug Substances 0.000 description 5
- 230000036760 body temperature Effects 0.000 description 4
- 230000003187 abdominal effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 210000002414 leg Anatomy 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000746 body region Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 210000002310 elbow joint Anatomy 0.000 description 1
- 210000000629 knee joint Anatomy 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 208000011580 syndromic disease Diseases 0.000 description 1
- 238000001931 thermography Methods 0.000 description 1
- 210000003857 wrist joint Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/103—Static body considered as a whole, e.g. static pedestrian or occupant recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical field
本发明涉及计算机应用技术领域,特别是涉及一种感兴趣区域获取方法、电子设备和存储介质。The present invention relates to the field of computer application technology, and in particular to a method for obtaining a region of interest, an electronic device and a storage medium.
背景技术Background technique
人体经络、穴位的阴阳平衡理论是中医核心理论之一,人体体表红外热成像可以清晰地反映出人体各穴位温度及各经络的热秩序,通过对人体体表各穴位温度和各经络热秩序的分析,可以得出人体的体质、证候特征。例如,根据中医理论,将人体躯干区域划分为设定的多个区域,通过对这些区域的温度分析来对人体身体机能状态进行检测。然而,现有的区域划分并没有包括人体轮廓线内的所有区域,例如,划分的区域和人体轮廓线之间会存在没有使用的区域,如图1所示。这样,会存在分析结果不准确的问题。The theory of yin and yang balance of human body meridians and acupuncture points is one of the core theories of traditional Chinese medicine. Infrared thermal imaging of the human body surface can clearly reflect the temperature of each acupoint on the human body and the thermal order of each meridians. Through analysis, the body's constitution and syndrome characteristics can be obtained. For example, according to the theory of traditional Chinese medicine, the human trunk area is divided into multiple set areas, and the functional status of the human body is detected through temperature analysis of these areas. However, the existing area division does not include all areas within the human body contour line. For example, there will be unused areas between the divided areas and the human body contour line, as shown in Figure 1. In this way, there will be a problem of inaccurate analysis results.
发明内容Contents of the invention
针对上述技术问题,本发明采用的技术方案为:In view of the above technical problems, the technical solutions adopted by the present invention are:
本发明实施例提供一种感兴趣区域获取方法,所述方法包括如下步骤:An embodiment of the present invention provides a method for obtaining a region of interest, which method includes the following steps:
本发明实施例提供一种感兴趣区域获取方法,所述方法包括如下步骤:An embodiment of the present invention provides a method for obtaining a region of interest, which method includes the following steps:
S100,对目标红外图像中的人体轮廓线进行识别,得到对应的人体轮廓线像素点集PL=(PL1,PL2,…,PLr,…,PLM),PLr为PL中的第r个像素点,r的取值为1到M,M为PL中的像素点数量,PLr的坐标为(xLr,yLr);S100, identify the human body contour line in the target infrared image, and obtain the corresponding human body contour line pixel point set PL = (PL 1 , PL 2 , ..., PL r , ..., PL M ), PL r is the PL th r pixels, r ranges from 1 to M, M is the number of pixels in PL, and the coordinates of PL r are (x Lr , y Lr );
S200,对目标红外图像中的四肢中的m个感兴趣区域以及躯干中的第一特征穴位CA1和第二特征穴位CA2分别进行识别,分别得到m个感兴趣区域像素点集、第一特征像素点PA1和第二特征像素点PA2;其中,第k个感兴趣区域像素点集为PROIk=(PROIk1,PROIk2,…,PROIkg,…,PROIkf(k)),PROIkg为PROIk中的第g个像素点,g的取值为1到f(k),f(k)PROIk中的像素点数量,k的取值为1到m;CA1和CA2分别为躯干中的n个设定穴位中的穴位,并且,CA1和CA2位于人体的中轴线上,CA2位于CA1的下方,PA1和PA2的像素点坐标分别为(xA1,yA1)和(xA2,yA2);S200, identify m regions of interest in the limbs in the target infrared image and the first characteristic acupuncture point CA1 and the second characteristic acupoint CA2 in the trunk, respectively, and obtain m regions of interest pixel point sets and first characteristic pixels respectively. Point PA1 and the second feature pixel point PA2; among them, the k-th region of interest pixel point set is PROI k = (PROI k1 , PROI k2 ,..., PROI kg ,..., PROI kf(k) ), PROI kg is PROI The g-th pixel in k , the value of g ranges from 1 to f(k), f(k) PROI The number of pixels in k , the value of k ranges from 1 to m; CA1 and CA2 are respectively the Among the n set acupuncture points, CA1 and CA2 are located on the central axis of the human body, CA2 is located below CA1, and the pixel coordinates of PA1 and PA2 are (x A1 , y A1 ) and (x A2 , y A2) respectively. );
S300,基于CA1和CA2以及设定划分规则将头部和颈部的轮廓线围成的复合区域划分为H个感兴趣区域,其中,位于复合区域最外侧的感兴趣区域包括对应的复合区域的轮廓线;S300, based on CA1 and CA2 and the set division rules, divide the composite area surrounded by the contour lines of the head and neck into H areas of interest, where the area of interest located at the outermost side of the composite area includes the corresponding composite area. contour line;
S400,基于识别得到的CA1和CA2,在所述目标红外图像中获取n个设定穴位中的剩余穴位;S400, based on the identified CA1 and CA2, obtain the remaining acupoints among the n set acupoints in the target infrared image;
S500,基于获取的n个设定穴位将所述躯干的轮廓线围成的躯干区域划分为F个感兴趣区域,其中,位于躯干区域最外侧的感兴趣区域包括对应的躯干轮廓线。S500: Divide the trunk area surrounded by the contour line of the trunk into F regions of interest based on the acquired n set acupuncture points, wherein the area of interest located at the outermost side of the trunk area includes the corresponding trunk contour line.
本发明实施例还一种非瞬时性计算机可读存储介质,所述存储介质中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由处理器加载并执行以实现如前述方法。An embodiment of the present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement As mentioned above.
本发明实施例还提供一种电子设备,包括处理器和前述的非瞬时性计算机可读存储介质。本发明至少具有以下有益效果:An embodiment of the present invention also provides an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium. The present invention has at least the following beneficial effects:
本发明实施例提供的感兴趣区域获取方法,能够至少将人体的感兴趣区域延伸至人体轮廓线,从而能够获得尽可能多的感兴趣区域,进而能够使得分析更加准确。The method of obtaining the region of interest provided by the embodiment of the present invention can at least extend the region of interest of the human body to the human body contour, thereby obtaining as many regions of interest as possible, thereby making the analysis more accurate.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1为现有的躯干感兴趣区域划分示意图。Figure 1 is a schematic diagram of the existing trunk area of interest division.
图2为本发明实施例提供的感兴趣区域获取方法的流程图。Figure 2 is a flow chart of a method for obtaining a region of interest provided by an embodiment of the present invention.
图3为本发明一实施例提供的复合区域的感兴趣区域的划分示意图。FIG. 3 is a schematic diagram of the division of regions of interest in a composite region provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of the present invention.
本发明实施例提供一种感兴趣区域获取方法,如图2所示,所述方法可包括如下步骤:An embodiment of the present invention provides a method for obtaining a region of interest, as shown in Figure 2. The method may include the following steps:
S100,对目标红外图像中的人体轮廓线进行识别,得到对应的人体轮廓线像素点集PL=(PL1,PL2,…,PLr,…,PLM),PLr为PL中的第r个像素点,r的取值为1到M,M为PL中的像素点数量,PLr的坐标为(xLr,yLr)。S100, identify the human body contour line in the target infrared image, and obtain the corresponding human body contour line pixel point set PL = (PL 1 , PL 2 , ..., PL r , ..., PL M ), PL r is the PL th There are r pixels, the value of r is 1 to M, M is the number of pixels in PL, and the coordinates of PL r are (x Lr , y Lr ).
在本发明实施例中,目标外红图像所在坐标系的x轴为人体的横向方向,y轴为人体的纵向方向,坐标原点可为图像的左下角。In the embodiment of the present invention, the x-axis of the coordinate system where the target infrared image is located is the transverse direction of the human body, the y-axis is the longitudinal direction of the human body, and the origin of the coordinates can be the lower left corner of the image.
在本发明实施例中,可从图像库中获取目标红外图像,也可通过红外摄像装置实时获取目标红外图像。In the embodiment of the present invention, the target infrared image can be obtained from the image library, or the target infrared image can be obtained in real time through an infrared camera device.
进一步地,在本发明实施例中,PL可基于如下步骤获取:Further, in the embodiment of the present invention, PL can be obtained based on the following steps:
S101,识别目标红外图像中的人体轮廓线,得到对应的人体轮廓线初始像素点集PLI=(PLI1,PLI2,…,PLIr,…,PLIM)。S101, identify the human body contour in the target infrared image, and obtain the corresponding human body contour initial pixel point set PLI = (PLI 1 , PLI 2 , ..., PLI r , ..., PLI M ).
S102,获取PLI对应的温度集TCI=(TLI1,TLI2,…,TLIr,…,TLIM),TLIr为PLIr对应的温度。S102, obtain the temperature set corresponding to PLI TCI = (TLI 1 , TLI 2 , ..., TLI r , ..., TLI M ), where TLI r is the temperature corresponding to PLI r .
本领域技术人员知晓,任何从红外图像中获取每个像素点的温度均属于本发明的保护范围。Those skilled in the art know that any acquisition of the temperature of each pixel point from an infrared image falls within the scope of the present invention.
S103,如果TLIr<T0,执行S104;T0为预设温度值;否则,执行S107。S103, if TLI r <T0, execute S104; T0 is the preset temperature value; otherwise, execute S107.
在本发明一示意性实施例中,T0为预设的人体平均温度阈值,可为经验值,例如,36.5°。具体地,可通过如下方式获取T0:In an exemplary embodiment of the present invention, T0 is a preset average human body temperature threshold, which can be an empirical value, for example, 36.5°. Specifically, T0 can be obtained as follows:
T0=Avg(T1,T2,…,Tz,…,TG),Tz为第z个用户的体温,z的取值为1到G,G为用户数量。G个用户可通过随机方式获取,每个用户的体温可通过温度测量装置测量得到。T0=Avg(T1, T2, ..., Tz, ..., TG), Tz is the body temperature of the z-th user, z ranges from 1 to G, and G is the number of users. G users can be obtained randomly, and the body temperature of each user can be measured by a temperature measuring device.
在本发明另一示意性实施例中,T0=Avg(t1,t2,…,tw,…,tN),其中,tw为S101中识别的人体轮廓线所围成的区域内的第w个像素点对应的温度,N为S101中识别的人体轮廓线所围成的区域内的像素点数量。与前述实施例相比,本实施例中的T0由于采用目标红外图像对应的用户的体温作为参考温度,能够提高准确性。In another illustrative embodiment of the present invention, T0=Avg(t 1 , t 2 ,..., tw ,..., t N ), where tw is the area enclosed by the human body outline identified in S101 The temperature corresponding to the w-th pixel, N is the number of pixels in the area enclosed by the human body contour identified in S101. Compared with the previous embodiment, T0 in this embodiment can improve accuracy because the user's body temperature corresponding to the target infrared image is used as the reference temperature.
S104,如果xLIr<x0,设置xLIr=xLIr+b,如果xLIr>x0,设置xLIr=xLIr-b;x0为目标红外图像对应的人体中轴线在目标红外图像中的横坐标,xLIr为TLIr对应的像素点的横坐标,b为预设像素点数量;执行S105。S104, if x LIr <x 0 , set x LIr = x LIr + b; if x LIr > x 0 , set x LIr = x LIr -b; The abscissa of , x LIr is the abscissa of the pixel corresponding to TLI r , and b is the preset number of pixels; execute S105.
在一个示意性实施例中,b被设置为不影响穴位识别准确性的值,例如,b=1。In an exemplary embodiment, b is set to a value that does not affect the accuracy of acupuncture point recognition, for example, b=1.
S105,如果像素点(xLIr,yLIr)对应的温度小于T0,执行S104,即继续调整该像素点的横坐标,直到对应的温度大于T0或者等于T0;否则,执行S106。S105, if the temperature corresponding to the pixel point (x LIr , y LIr ) is less than T0, execute S104, that is, continue to adjust the abscissa of the pixel point until the corresponding temperature is greater than T0 or equal to T0; otherwise, execute S106.
S106,设置r=r+1,如果r≤M,执行S103;否则,退出控制程序。S106, set r=r+1, if r≤M, execute S103; otherwise, exit the control program.
S101至S106的技术效果在于:由于每个用户的身体结构不同,经经训练的图像识别模型识别的人体轮廓线可能会存在偏差,通过S101~S106,能够对识别的人体轮廓线进行调整,使得人体轮廓线更加准确。The technical effect of S101 to S106 is that due to the different body structure of each user, the human body contour line recognized by the trained image recognition model may be biased. Through S101 to S106, the recognized human body contour line can be adjusted so that Human body contours are more accurate.
S200,对目标红外图像中的四肢中的m个感兴趣区域以及躯干中的第一特征穴位CA1和第二特征穴位CA2分别进行识别,分别得到m个感兴趣区域像素点集、第一特征像素点PA1和第二特征像素点PA2;其中,第k个感兴趣区域像素点集为PROIk=(PROIk1,PROIk2,…,PROIkg,…,PROIkf(k)),PROIkg为PROIk中的第g个像素点,g的取值为1到f(k),f(k)PROIk中的像素点数量,k的取值为1到m;CA1和CA2分别为躯干中的n个设定穴位中的穴位,并且,CA1和CA2位于人体的中轴线上,CA2位于CA1的下方,PA1和PA2的像素点坐标分别为(xA1,yA1)和(xA2,yA2)。S200, identify m regions of interest in the limbs in the target infrared image and the first characteristic acupuncture point CA1 and the second characteristic acupoint CA2 in the trunk, respectively, and obtain m regions of interest pixel point sets and first characteristic pixels respectively. Point PA1 and the second feature pixel point PA2; among them, the k-th region of interest pixel point set is PROI k = (PROI k1 , PROI k2 ,..., PROI kg ,..., PROI kf(k) ), PROI kg is PROI The g-th pixel in k , the value of g ranges from 1 to f(k), f(k) PROI The number of pixels in k , the value of k ranges from 1 to m; CA1 and CA2 are respectively the Among the n set acupuncture points, CA1 and CA2 are located on the central axis of the human body, CA2 is located below CA1, and the pixel coordinates of PA1 and PA2 are (x A1 , y A1 ) and (x A2 , y A2) respectively. ).
在本发明实施例中,可通过经训练的图像识别模型识别目标红外图像中的人体轮廓线和特征穴位。具体地,经训练的图像识别模型可通过将标注了人体轮廓线、四肢中的感兴趣区域、CA1和CA2的样本图像输入到神经网络模型中进行训练得到,具体训练方式可为现有技术。在本发明实施例中,四肢中的感兴趣区域可为腕关节、肘关节、膝关节等关节区域。由于四肢的对称性,可采用分类算法对四肢中的感兴趣区域进行识别,即当识别到四肢中的感兴趣区域时,可通过识别的感兴趣区域的横坐标和特征穴位的横坐标之间的关系来确定是左边肢体还是右边肢体。In embodiments of the present invention, the human body contours and characteristic acupuncture points in the target infrared image can be identified through the trained image recognition model. Specifically, the trained image recognition model can be obtained by inputting sample images marked with human body contours, regions of interest in limbs, CA1 and CA2 into the neural network model for training. The specific training method can be based on existing technologies. In this embodiment of the present invention, the areas of interest in the limbs may be joint areas such as wrist joints, elbow joints, and knee joints. Due to the symmetry of the limbs, a classification algorithm can be used to identify the area of interest in the limbs. That is, when the area of interest in the limbs is identified, the relationship between the abscissa of the identified area of interest and the abscissa of the characteristic acupoint can be relationship to determine whether it is the left limb or the right limb.
在n个设定穴位为正面躯干区域的穴位的情况下,目标红外图像为人体正面图像,CA1可为容易识别的天突穴,CA2可为容易识别的神阙穴。在n个设定穴位为背面躯干区域的穴位的情况下,目标红外图像为人体背面图像,CA1可为容易识别的大椎穴,CA2可为容易识别的长强穴。In the case where the n set acupuncture points are acupoints in the frontal trunk area, the target infrared image is a frontal image of the human body, CA1 can be the easily identified Tiantu point, and CA2 can be the easily identified Shenque point. In the case where the n set acupuncture points are acupuncture points in the back torso area, the target infrared image is the back image of the human body, CA1 can be the easily identified Dazhui point, and CA2 can be the easily identified Changqiang point.
在本发明实施例中,感兴趣区域为基于分析需要将人体区域划分的区域,可基于分析需要和中医理论进行划分。In the embodiment of the present invention, the region of interest is a region divided into human body regions based on analysis needs, and can be divided based on analysis needs and traditional Chinese medicine theory.
S300,基于CA1和CA2以及设定划分规则将头部和颈部的轮廓线围成的复合区域划分为H个感兴趣区域,其中,位于复合区域最外侧的感兴趣区域包括对应的复合区域的轮廓线。S300, based on CA1 and CA2 and the set division rules, divide the composite area surrounded by the contour lines of the head and neck into H areas of interest, where the area of interest located at the outermost side of the composite area includes the corresponding composite area. contour line.
S400,基于识别得到的CA1和CA2,在所述目标红外图像中获取n个设定穴位中的剩余穴位。S400: Based on the identified CA1 and CA2, obtain the remaining acupoints among the n set acupoints in the target infrared image.
进一步地,S400具体包括:Further, S400 specifically includes:
S402,从PL中获取纵坐标为yA1的两个对称像素点坐标(x01,yA1)和(x02,yA1),即第一直线和人体轮廓线的两个交点,第一直线为通过第一特征穴位并与人体中轴线垂直的直线,以及从PL中获取纵坐标为yA2的两个对称像素点坐标(x03,yA2)和(x04,yA2),即第二直线和人体轮廓线的两个交点,第二直线为通过第二特征穴位并与人体中轴线垂直的直线;其中,x01<xA1<x02,x03<xA2<x04。S402, obtain the two symmetrical pixel coordinates (x 01 , y A1 ) and (x 02 , y A1 ) with the ordinate y A1 from PL, that is, the two intersection points of the first straight line and the human body contour line, the first The straight line is a straight line that passes through the first characteristic acupuncture point and is perpendicular to the central axis of the human body, and the two symmetrical pixel point coordinates (x 03 , y A2 ) and (x 04 , y A2 ) whose ordinate is y A2 are obtained from PL, That is, the two intersection points of the second straight line and the human body contour line. The second straight line is a straight line that passes through the second characteristic acupoint and is perpendicular to the central axis of the human body; among them, x 01 <x A1 <x 02 , x 03 <x A2 <x 04 .
S404,获取(min(x01,x03),yA1)或者(min(x02,x04),yA1)对应的像素点坐标作为参考特征点CA3的坐标(xA3,yA3),即选择第一交线和第二交线中的最短的交线对应的坐标作为CA3的坐标,第一交线为第一直线和人体轮廓线之间的交线,第二交线为第二直线和人体轮廓线之间的交线。S404, obtain the pixel coordinates corresponding to (min (x 01 , x 03 ), y A1 ) or (min (x 02 , x 04 ), y A1 ) as the coordinates (x A3 , y A3 ) of the reference feature point CA3, That is, the coordinates corresponding to the shortest intersection line among the first intersection line and the second intersection line are selected as the coordinates of CA3. The first intersection line is the intersection line between the first straight line and the human body contour line, and the second intersection line is the intersection line of the first straight line and the human body contour line. The intersection between two straight lines and the human body contour.
在本发明实施例中,CA3可为肩峰点。In the embodiment of the present invention, CA3 may be the shoulder point.
S406,获取横寸长度△x=∣xA3-xA1∣/W13,以及获取直寸长度△y=∣yA2-yA1∣/V12,W13为CA1和CA3之间的横寸数量,V12为CA1和CA2之间的直寸数量。W13和V12可基于中医学理论确定。S406, obtain the horizontal length △x=∣x A3 -x A1 ∣/W 13 , and obtain the vertical length △y=∣y A2 -y A1 ∣/V 12 , W 13 is the horizontal length between CA1 and CA3 Quantity, V 12 is the number of inches between CA1 and CA2. W 13 and V 12 can be determined based on traditional Chinese medicine theory.
S408,以CA1或者CA2为参考穴位,基于△x和△y以及n个设定穴位之间的位置关系表,在所述目标红外图像中获取n个设定穴位中的剩余穴位。S408: Using CA1 or CA2 as the reference acupoint, based on Δx and Δy and the position relationship table between the n set acupuncture points, obtain the remaining acupoints among the n set acupuncture points in the target infrared image.
在本发明实施例中,穴位之间的位置关联关系可基于中医学理论确定,例如针灸学进行确定。In embodiments of the present invention, the positional relationship between acupoints can be determined based on traditional Chinese medicine theory, such as acupuncture.
具体地,所述n个设定穴位可包括位于人体中轴线上的n1个第一穴位和位于人体中轴线两侧的n2个第二穴位,所述n个设定穴位之间的位置关系表包括第一穴位位置关系表和第二穴位位置关系表,其中,第一穴位位置关系表的第i行包括(C1i,h1,Pci),C1i为n1个第一穴位中的第i个第一穴位的ID,i的取值为1到n1,h1的取值为1或2,其中,h1=1表示C1i位于参考穴位的上侧,h1=2表示C1i位于参考穴位的下侧,Pci表示第i个第一穴位和参考穴位之间的直寸数量。第二穴位位置关系表的第j行包括(C2j,C1je,(h1,PXje),(h2,PYje)),C2j为n2个第二穴位中的第j个第二穴位的ID,C1je为与C2j关联的第一穴位的ID,h2的取值为3或者4,h2=3表示C2j位于C1je对应的第一穴位的左侧,h2=4表示C2j位于C1je对应的第一穴位的右侧,PXje为C2j和C1je对应的第一穴位的第h1侧之间的横寸数量,PYje为C2j和C1je对应的第一穴位的第h2侧之间的直寸数量,e的取值为1到n1,j的取值为1到n2。在本发明实施例中,穴位的ID可为穴位名称或者其它任何能够知晓穴位名称的标识。Specifically, the n set acupoints may include n1 first acupoints located on the central axis of the human body and n2 second acupoints located on both sides of the central axis of the human body. The positional relationship between the n set acupoints is as follows: It includes a first acupoint location relationship table and a second acupoint location relationship table, where the i-th row of the first acupoint location relationship table includes (C1 i , h1, P ci ), and C1 i is the i-th row among the n1 first acupoints. The ID of the first acupoint, i ranges from 1 to n1, and h1 takes a value of 1 or 2. Among them, h1=1 means that C1 i is located on the upper side of the reference acupoint, and h1=2 means that C1 i is located on the upper side of the reference acupoint. On the lower side, P ci represents the number of straight inches between the i-th first acupoint and the reference acupoint. The j-th row of the second acupoint position relationship table includes (C2 j , C1 je , (h1, PX je ), (h2, PY je )), and C2 j is the j-th second acupoint among the n2 second acupoints. ID, C1 je is the ID of the first acupoint associated with C2 j , the value of h2 is 3 or 4, h2=3 means that C2 j is located on the left side of the first acupoint corresponding to C1 je , h2=4 means that C2 j is located The right side of the first acupoint corresponding to C1 je , PX je is the number of horizontal inches between the h1 side of the first acupoint corresponding to C2 j and C1 je , PY je is the h1th side of the first acupoint corresponding to C2 j and C1 je The number of inches between sides h2, e ranges from 1 to n1, and j ranges from 1 to n2. In this embodiment of the present invention, the ID of an acupoint may be the name of the acupoint or any other identifier capable of knowing the name of the acupoint.
在本发明实施例中,横寸是指位于人体横向方向上的穴位之间的度量单位,例如,穴位A位于穴位B的左侧或者右侧的X个横寸的位置处。直寸是指位于人体纵向方向上的穴位之间的度量单位,例如,穴位A位于穴位B的上侧或者下侧的X个直寸的位置处。In the embodiment of the present invention, a horizontal inch refers to a measurement unit between acupuncture points located in the transverse direction of the human body. For example, acupoint A is located X horizontal inches to the left or right of acupuncture point B. A straight cun refers to a unit of measurement between acupuncture points located in the longitudinal direction of the human body. For example, acupoint A is located X straight cun above or below acupoint B.
在本发明实施例中,与C2j关联的第一穴位可为与C2j之间的距离最短的第一穴位,例如,胸部区域内的第二穴位关联的第一穴位位于胸部段,腹部区域内的第二关联穴位的第一第一穴位位于腹部段,可基于现有的人体穴位图确定。In the embodiment of the present invention, the first acupoint associated with C2 j may be the first acupoint with the shortest distance from C2 j . For example, the first acupoint associated with the second acupoint in the chest area is located in the chest section and the abdominal area. The first of the second associated acupoints is located in the abdominal segment and can be determined based on the existing human acupoint map.
本领域技术人员知晓,可通过第一穴位位置关系表和第二穴位位置关系表在目标红外图像中获取到n个设定穴位。在实际应用中,在目标红外图像为人体正面图像时,可首先基于天突或者神阙,通过第一穴位位置关系表获取到位于任脉上的所有穴位,然后根据任脉和第二穴位位置关系表,获取到其它穴位即腹部经脉穴位。在目标红外图像为人体背面图像时,可首先基于大椎或者长强,通过第一穴位位置关系表获取到位于督脉上的所有穴位,然后根据督脉和第二穴位位置关系表,获取到其它穴位即背部经脉穴位。Those skilled in the art know that n set acupoints can be obtained in the target infrared image through the first acupoint position relationship table and the second acupoint position relationship table. In practical applications, when the target infrared image is a frontal image of the human body, all the acupoints located on the Ren meridian can be obtained through the first acupoint position relationship table based on Tiantu or Shenque, and then based on the positions of the Ren meridian and the second acupoint. Through the relationship table, other acupoints, namely abdominal meridian acupoints, are obtained. When the target infrared image is an image of the back of the human body, all the acupoints located on the Du meridian can be obtained through the first acupoint position relationship table based on Dazhui or Changqiang, and then other acupoints can be obtained based on the Du meridian and the second acupoint position relationship table. The acupuncture points are the acupoints on the meridians on the back.
在一些特殊情况例如人体腰线过细的情况下,靠近人体轮廓线的穴位在计算时可能会落入人体轮廓线外部,因此,需要对此情况下计算的横坐标进行调整,以使得计算的穴位位置位于人体轮廓线内。In some special circumstances, such as when the waistline of the human body is too thin, acupuncture points close to the human body contour may fall outside the human body contour during calculation. Therefore, the abscissa calculated in this case needs to be adjusted so that the calculated acupoints The location is within the contours of the human body.
具体地,在S408中,在获取任一第二穴位C2j时,如果h2=3,如果(xje-Pje*△x)<xc1,则将坐标(xc1+a,yje)作为C2j对应的穴位的坐标;如果h2=4,如果(xje+Pje*△x)>xc2,则将坐标(xc2-a,yje)作为C2j对应的穴位的坐标;其中,xje和yje分别为C1je对应的第一穴位的横坐标和纵坐标,xc1为PL中纵坐标为yje并且位于参考穴位左侧的像素点的横坐标,xc2为PL中纵坐标为yje并且位于参考穴位右侧的像素点的横坐标,a为预设像素点数量,在一个示例中,a=1。Specifically, in S408, when acquiring any second acupuncture point C2 j , if h2=3, if (x je -P je *△x)<x c1 , then the coordinates (x c1 +a, y je ) As the coordinates of the acupuncture point corresponding to C2 j ; if h2=4, if (x je +P je *△x)>x c2 , then use the coordinates (x c2 -a, y je ) as the coordinates of the acupoint corresponding to C2 j ; Among them, x je and y je are the abscissa and ordinate of the first acupoint corresponding to C1 je respectively, x c1 is the abscissa of the pixel point in PL whose ordinate is y je and is located on the left side of the reference acupoint, x c2 is PL The middle ordinate is y je and the abscissa of the pixel point located on the right side of the reference acupuncture point. a is the preset number of pixel points. In one example, a=1.
S500,基于获取的n个设定穴位将所述躯干的轮廓线围成的躯干区域划分为F个感兴趣区域,其中,位于躯干区域最外侧的感兴趣区域包括对应的躯干轮廓线,即R1∩R2∩…∩Rp∩…∩RF=Null,R1∪R2∪…∪Rp∪…∪RF=R,Rp为F个感兴趣区域中的第p个感兴趣区域,R为目标红外图像中躯干对应的区域。S500, based on the obtained n set acupuncture points, divide the trunk area surrounded by the contour line of the trunk into F regions of interest, wherein the area of interest located at the outermost side of the trunk area includes the corresponding trunk contour line, that is, R1 ∩R2∩…∩Rp∩…∩RF=Null, R1∪R2∪…∪Rp∪…∪RF=R, Rp is the p-th region of interest among the F regions of interest, and R is the torso in the target infrared image corresponding area.
在本发明实施例中,F个感兴趣区域可基于实际需要进行设置。每个区域可包括1个穴位,也可包括多个穴位,本发明不做特别限制,只要使得F个感兴趣区域能够覆盖整个躯干区域即可,即位于躯干两侧的感兴趣区域的边界为人体轮廓线。In the embodiment of the present invention, the F regions of interest can be set based on actual needs. Each region may include one acupuncture point or multiple acupoints. The present invention is not particularly limited as long as the F regions of interest can cover the entire trunk area, that is, the boundaries of the regions of interest located on both sides of the trunk are Human body contour lines.
本发明实施例提供的感兴趣区域获取方法,能够至少将躯干部分的感兴趣区域延伸至人体轮廓线,从而能够获得尽可能多的感兴趣区域,进而能够使得分析更加准确。The method of obtaining the region of interest provided by the embodiment of the present invention can extend at least the region of interest of the trunk part to the human body contour line, so that as many regions of interest as possible can be obtained, thereby making the analysis more accurate.
进一步地,在本发明实施例中,在S200之后还包括如下步骤:Further, in this embodiment of the present invention, the following steps are included after S200:
S210,对m个感兴趣区域进行修正。S210, correct m regions of interest.
在本发明实施例中,m个感兴趣区域中的每个感兴趣区域由两条直线和位于两条直线之间的两条肢体轮廓线形成,即在样本图像的标注过程中,可在四肢的感兴趣区域对应的位置处上下标注两条直线,两条直线可以是平行线也可以不是平行线,基于实际需要进行设置。In the embodiment of the present invention, each of the m regions of interest is formed by two straight lines and two limb contour lines located between the two straight lines. That is, during the annotation process of the sample image, the limbs can be Mark two straight lines up and down at the position corresponding to the area of interest. The two straight lines can be parallel lines or not. They can be set based on actual needs.
进一步地,在本发明实施例中,S210具体包括:Further, in this embodiment of the present invention, S210 specifically includes:
S211,对于第k个感兴趣区域,获取第k个感兴趣区域的中心Ok=(xk,yk)以及获取第k个感兴趣区域对应的两条平行线与对应的肢体轮廓线之间的4个交点PLk1,PLk2,PLk3,PLk4,PLk1,PLk2,PLk3,PLk4的坐标分别为(xc Lk1,yc Lk1)、(xc Lk2,yc Lk2)、(xc Lk3,yc Lk3)、(xc Lk4,yc Lk4),其中,如果xk>xA1,即为左边肢体,左手或者左腿,则xc Lk1≤xc Lk2<xk,yc Lk1>yc Lk2>yk,xc Lk4≤xc Lk3<xk,yc Lk3>yc Lk4>yk;如果xk<xA1,即为右边肢体,右手或者右腿,则xc Lk2≤xc Lk1<xk,yc Lk1>yc Lk2>yk,xc Lk3≤xc Lk4<xk,yc Lk3>yc Lk4>yk。S211, for the k-th region of interest, obtain the center O k = (x k , y k ) of the k-th region of interest and obtain the relationship between the two parallel lines corresponding to the k-th region of interest and the corresponding limb outline. The coordinates of the four intersection points P Lk1 , P Lk2 , P Lk3 , P Lk4 , P Lk1 , P Lk2 , P Lk3 , and P Lk4 are respectively (x c Lk1 , y c Lk1 ), (x c Lk2 , y c Lk2 ), (x c Lk3 , y c Lk3 ), (x c Lk4 , y c Lk4 ), among them, if x k > x A1 , that is, the left limb, left hand or left leg, then x c Lk1 ≤ x c Lk2 < x k , y c Lk1 > y c Lk2 > y k , x c Lk4 ≤ x c Lk3 < x k , y c Lk3 > y c Lk4 > y k ; if x k < x A1 , it is the right limb, the right hand or Right leg, then x c Lk2 ≤ x c Lk1 < x k , y c Lk1 > y c Lk2 > y k , x c Lk3 ≤ x c Lk4 < x k , y c Lk3 > y c Lk4 > y k .
在本发明实施例中,Ok可基于现有方式获取。例如,xk=Avg(xk1,xk2,…,xkg,…,xkf(k)),yk=Avg(yk1,yk2,…,ykg,…,ykf(k)),(xkg,ykg)为PROIkg的坐标。In the embodiment of the present invention, Ok can be obtained based on existing methods. For example, x k =Avg (x k1 , x k2 , ..., x kg , ..., x kf (k) ), y k =Avg (y k1 , y k2 , ..., y kg , ..., y kf (k) ), (x kg , y kg ) are the coordinates of PROI kg .
在本发明实施例中,PLk1,PLk2,PLk3,PLk4可通过经训练的图像识别模型识别得到。In the embodiment of the present invention, P Lk1 , P Lk2 , P Lk3 , and P Lk4 can be recognized through a trained image recognition model.
S212,如果通过PLk1和PLk2的直线L1和通过PLk3和PLk4的直线L2均位于第k个感兴趣区域的外部,获取xk1=max(x1 Lk,x2 Lk,…,xu1 Lk,…,xW1 Lk,)和xk2=min(x1 Lk,x2 Lk,…,xu2 Lk,…,xW2 Lk),执行S213;如果L1和L2均位于第k个感兴趣区域的内部,执行S214;xu1 Lk为位于PLk1和PLk2之间的肢体轮廓线对应的坐标中的第u1个横坐标,W1为位于PLk1和PLk2之间的肢体轮廓线对应的坐标中的横坐标的数量;xu2 Lk为位于PLk3和PLk4之间的肢体轮廓线对应的坐标中的第u2个横坐标,W2为位于PLk3和PLk4之间的肢体轮廓线对应的坐标中的横坐标的数量。S212, if the straight line L1 passing through P Lk1 and P Lk2 and the straight line L2 passing through P Lk3 and P Lk4 are both located outside the k-th area of interest, obtain x k1 =max (x 1 Lk , x 2 Lk ,..., x u1 Lk ,..., x W1 Lk ,) and x k2 =min (x 1 Lk , x 2 Lk ,..., x u2 Lk ,..., x W2 Lk ), execute S213; if L1 and L2 are both located in the kth sense Inside the area of interest , execute S214 ; The number of abscissas in the coordinates ; The number of abscissas in the corresponding coordinates.
在本发明实施例中,位于PLk1和PLk2之间的肢体轮廓线对应的坐标和位于PLk3和PLk4之间的肢体轮廓线对应的坐标可通过PROI∩PL得到。In the embodiment of the present invention, the coordinates corresponding to the limb contour line between P Lk1 and P Lk2 and the coordinates corresponding to the limb contour line between P Lk3 and P Lk4 can be obtained by PROI∩PL.
在本发明实施例中,由于已知PLk1和PLk2的坐标,所以L1的直线方程可以获取得到,接着将通过位于PLk1和PLk2之间的肢体轮廓线对应的坐标中的所有纵坐标代入到L1的直线方程中,可得到L1上的所有横坐标,从而能够获取到L1上的所有像素点对应的坐标。同理,可获得L2上的所有像素点的坐标。In the embodiment of the present invention, since the coordinates of P Lk1 and P Lk2 are known, the straight line equation of L1 can be obtained, and then all ordinates in the coordinates corresponding to the limb contour line between P Lk1 and P Lk2 are By substituting into the straight line equation of L1, all abscissas on L1 can be obtained, so that the coordinates corresponding to all pixels on L1 can be obtained. In the same way, the coordinates of all pixels on L2 can be obtained.
对于L1上的任一像素点,如果该像素点的横坐标小于对应肢体轮廓线上的对应的横坐标,则说明L1位于对应的肢体轮廓线的外部,否则,则位于对应的肢体轮廓线的内部。同理,对于L2上的任一像素点,如果该像素点的横坐标大于对应肢体轮廓线上的对应的横坐标,则说明L2位于对应的肢体轮廓线的外部,否则,则位于对应的肢体轮廓线的内部。For any pixel point on L1, if the abscissa coordinate of the pixel point is smaller than the corresponding abscissa coordinate on the corresponding limb contour line, it means that L1 is located outside the corresponding limb contour line; otherwise, it is located on the corresponding limb contour line. internal. In the same way, for any pixel on L2, if the abscissa of the pixel is greater than the corresponding abscissa on the corresponding limb contour, it means that L2 is located outside the corresponding limb contour, otherwise, it is located on the corresponding limb. Inside the outline.
S213,获取xk1和xk2对应的像素点Pk1和Pk2,并获取以通过Pk1和Pk2的直线L0为对称轴的第一矩形区域,所述第一矩形区域的高为H0,H0为设定高度,单位为像素;执行S215。H0可为经验值。S213, obtain the pixel points P k1 and P k2 corresponding to x k1 and x k2 , and obtain the first rectangular area with the straight line L0 passing through P k1 and P k2 as the axis of symmetry. The height of the first rectangular area is H0, H0 is the set height, the unit is pixels; execute S215. H0 can be an experience value.
本领域技术人员知晓,任何获取以通过Pk1和Pk2的直线L0为对称轴的第一矩形区域的方法均属于本发明的保护范围。Those skilled in the art know that any method of obtaining the first rectangular area with the straight line L0 passing through P k1 and P k2 as the axis of symmetry falls within the protection scope of the present invention.
S214,获取L=min(L1,L2,L3,L4),其中,L3为通过PLk2和PLk3的直线,L4为通过PLk1和PLk4的直线,并获取以L为底边的第二矩形区域,所述第二矩形区域的高为H0;执行S215。S214, obtain L = min (L1, L2, L3, L4), where L3 is a straight line passing through P Lk2 and P Lk3 , L4 is a straight line passing through P Lk1 and P Lk4 , and obtain the second line with L as the base. A rectangular area, the height of the second rectangular area is H0; execute S215.
本领域技术人员知晓,任何获取以L为底边的第二矩形区域的方法均属于本发明的保护范围。例如,基于L对应的两个端点的坐标和H0,可以得到第二矩形区域的四个顶点坐标,具体地,例如,如果L为L1,则第二矩形区域的两个顶点的坐标可分别为(xc Lk1,yc Lk1)、(xc Lk2,yc Lk2),另外两个顶点的坐标分别为(xc Lk1+H0,yc Lk1)、(xc Lk2+H0,yc Lk2),如果L为L2或者L3或者L4,可按照与L=L1类似的方法获取第二矩形区域的四个顶点坐标。Those skilled in the art know that any method of obtaining the second rectangular area with L as the base falls within the protection scope of the present invention. For example, based on the coordinates of the two endpoints corresponding to L and H0, the four vertex coordinates of the second rectangular area can be obtained. Specifically, for example, if L is L1, the coordinates of the two vertices of the second rectangular area can be respectively (x c Lk1 , y c Lk1 ), (x c Lk2 , y c Lk2 ), the coordinates of the other two vertices are (x c Lk1 +H0, y c Lk1 ), (x c Lk2 +H0, y c Lk2 ), if L is L2, L3, or L4, the four vertex coordinates of the second rectangular area can be obtained in a similar way to L=L1.
S215,将所述矩形区域作为修正后的第k个感兴趣区域。S215: Use the rectangular area as the modified k-th area of interest.
本领域技术人员知晓,矩形区域内的所有像素点可基于现有技术获取得到,例如,通过矩形区域的四个顶点坐标得到矩形的宽和高,然后通过两个嵌套循环进行每个像素坐标点的获取,覆盖整个矩形区域,从而获取到矩形区域内的所有像素点。Those skilled in the art know that all pixels in a rectangular area can be obtained based on existing technologies. For example, the width and height of the rectangle are obtained through the four vertex coordinates of the rectangular area, and then each pixel coordinate is obtained through two nested loops. Point acquisition covers the entire rectangular area, thereby obtaining all pixels in the rectangular area.
S210的技术效果在于,能够使得四肢中的感兴趣区域更加准确,进而在实际应用中,在通过温度进行分析时,使得感兴趣区域的温度更加准确。The technical effect of S210 is that it can make the area of interest in the limbs more accurate, and in practical applications, when analyzing through temperature, the temperature of the area of interest is more accurate.
进一步地,在本发明另一实施例中,S402被替换为:Further, in another embodiment of the present invention, S402 is replaced with:
S403,从PL中获取纵坐标为yA1的两个对称像素点坐标(x01,yA1)和(x02,yA1),即第一交线和人体轮廓线的两个交点;其中,x01<xA1<x02,x03<xA2<x04。S403, obtain the two symmetrical pixel point coordinates (x 01 , y A1 ) and (x 02 , y A1 ) with the ordinate y A1 from PL, that is, the two intersection points of the first intersection line and the human body contour line; where, x 01 <x A1 <x 02 , x 03 <x A2 <x 04 .
S404被替换为:S404 is replaced with:
S405,将(x01,yA1)或者(x02,yA1)作为参考特征点CA3的坐标(xA3,yA3),即将第一交线和人体轮廓线的两个交点作为CA3的坐标。S405, use (x 01 , y A1 ) or (x 02 , y A1 ) as the coordinates (x A3 , y A3 ) of the reference feature point CA3, that is, the two intersection points of the first intersection line and the human body contour line are used as the coordinates of CA3 .
S403和S405的技术效果在于,能够避免目标红外图像中的腰线过细而导致得到的肩峰点的位置不准确。The technical effect of S403 and S405 is to prevent the waistline in the target infrared image from being too thin, resulting in inaccurate position of the shoulder point.
进一步地,在本发明实施例中,在S200之后,还包括如下步骤:Further, in this embodiment of the present invention, after S200, the following steps are also included:
S220,如果xA1≠xA2,则设置xA1=xA2=x0,即如果由于误差等原因导致CA1和CA2不在中轴线上,则需要将它们调整至中轴线上,以提高穴位识别准确性。S220, if x A1 ≠ x A2 , set x A1 = x A2 = x 0 , that is, if CA1 and CA2 are not on the central axis due to errors and other reasons, they need to be adjusted to the central axis to improve the accuracy of acupoint identification. sex.
进一步地,在本发明实施例中,复合区域的感兴趣区域可基于实际需要进行划分,只要划分的感兴趣区域包含对应的轮廓线即可。在一个示意性实施例中,在目标红外图像为人体正面图像的情况下,S300可具体包括:Furthermore, in the embodiment of the present invention, the area of interest of the composite area can be divided based on actual needs, as long as the divided area of interest includes corresponding contour lines. In an illustrative embodiment, when the target infrared image is a frontal image of a human body, S300 may specifically include:
S301,在目标红外图像中获取第一固定点b1=(xb1,yb1)和第二固定点b2=(xb2,yb2),如图3所示,xb1=xA1,yb1=yA1+△V,xb2=xA1,yb2=yA1+△V/2,△V为预设直寸数量,优选,△V为3个预设直寸,即天突穴往上3寸。在本发明实施例中,1个预设直寸为天突穴和神阙穴之间的高度的十七分之一,即为(yA1-yA2)/17。S301, obtain the first fixed point b1=(x b1 , y b1 ) and the second fixed point b2=(x b2 , y b2 ) in the target infrared image, as shown in Figure 3, x b1 =x A1 , y b1 =y A1 + △V, x b2 = x A1 , y b2 = y A1 + △V/2, △V is the number of preset straight inches, preferably, △V is 3 preset straight inches, that is, the Tiantu point 3 inches above. In the embodiment of the present invention, a preset vertical inch is one-seventeenth of the height between the Tiantu point and the Shenque point, which is (y A1 - y A2 )/17.
S302,分别获取第一水平线h1和第二水平线h2。如图3所示,第一水平线为通过第一固定点并且两端与两侧轮廓线相交的直线,第二水平线为通过第二固定点并且两端与两侧轮廓线相交的直线。S302: Obtain the first horizontal line h1 and the second horizontal line h2 respectively. As shown in Figure 3, the first horizontal line is a straight line that passes through the first fixed point and has both ends intersecting the contour lines on both sides. The second horizontal line is a straight line that passes through the second fixed point and has both ends intersecting the contour lines on both sides.
S303,获取第一垂直线v1和第四水平线h4。如图3所示,第一垂直线v1为通过基准点b并且两端分别与第三水平线h3和头顶轮廓线相交的直线,基准点b为第一水平线的终点,第三水平线为通过(xA1,yA1)并与两侧轮廓线相交的直线;第四水平线为通过第一垂直线和头顶轮廓线的交点的直线。S303, obtain the first vertical line v1 and the fourth horizontal line h4. As shown in Figure 3, the first vertical line v1 is a straight line that passes through the reference point b and intersects the third horizontal line h3 and the top of the head contour line at both ends respectively. The reference point b is the end point of the first horizontal line, and the third horizontal line passes through (x A1 , y A1 ) and intersects the contour lines on both sides; the fourth horizontal line is the straight line passing through the intersection of the first vertical line and the contour line of the top of the head.
S304,分别获取与复合区域的轮廓线相交的第五至第七水平线,并且第五水平线h5和第四水平线h4之间的距离、第五水平线h5和第六水平线h6之间的距离、第六水平线h6和第七水平线h7之间的距离以及第七水平线h7和第一水平线h1之间的距离相等,即将第一垂直线等分为4份,以均分点分别画水平线得到第五至第七水平线。S304, respectively obtain the fifth to seventh horizontal lines that intersect with the contour line of the composite area, and the distance between the fifth horizontal line h5 and the fourth horizontal line h4, the distance between the fifth horizontal line h5 and the sixth horizontal line h6, the distance between the sixth horizontal line h5 and the sixth horizontal line h6. The distance between the horizontal line h6 and the seventh horizontal line h7 and the distance between the seventh horizontal line h7 and the first horizontal line h1 are equal, that is, the first vertical line is divided into four equal parts, and horizontal lines are drawn respectively at the equal dividing points to obtain the fifth to fifth Seven horizontal lines.
S305,分别获取第二垂直线和第三垂直线,第二垂直线和第三垂直线的两端分别与第四水平线和第一水平线连接,并且,第二垂直线和第一垂直线之间的距离与第二垂直线和对应的第六水平线的端点之间的距离相等,第三垂直线和第一垂直线之间的距离与第三垂直线和对应的第六水平线的端点之间的距离相等,即将第六水平线均分为4份,以两侧均分点画垂直线得到第二垂直线和第三垂直线。S305, obtain the second vertical line and the third vertical line respectively, the two ends of the second vertical line and the third vertical line are connected to the fourth horizontal line and the first horizontal line respectively, and between the second vertical line and the first vertical line The distance is equal to the distance between the end points of the second vertical line and the corresponding sixth horizontal line, and the distance between the third vertical line and the first vertical line is equal to the distance between the end points of the third vertical line and the corresponding sixth horizontal line. The distance is equal, that is, the sixth horizontal line is divided into four equal parts, and vertical lines are drawn at equally divided points on both sides to obtain the second vertical line and the third vertical line.
S306,基于第一至第七水平线以及第一至第三垂直线得到所述H个感兴趣区域,如图3所示出的网格区域。S306: Obtain the H regions of interest based on the first to seventh horizontal lines and the first to third vertical lines, such as the grid regions shown in Figure 3.
进一步地,在本发明另一实施例中,在目标红外图像为人体背面图像的情况下,Further, in another embodiment of the present invention, when the target infrared image is the back image of the human body,
S300可被替换为:S300 can be replaced with:
S310,对目标红外图像中的陶道穴和至阳穴进行识别,并基于识别的陶道穴和至阳穴以及设定划分规则将头部和颈部的轮廓线围成的复合区域划分为H个感兴趣区域,其中,位于复合区域最外侧的感兴趣区域包括对应的复合区域的轮廓线。S310, identify the Taodao point and Zhiyang point in the target infrared image, and divide the composite area surrounded by the contour lines of the head and neck into H regions of interest, wherein the region of interest located at the outermost side of the composite region includes the contour line of the corresponding composite region.
本实施例中,复合区域的感兴趣区域划分与S301至S306基本相同,不同的是,本实施例中获取固定点的穴位为陶道穴,并且,预设直寸为陶道穴和至阳穴之间的高度的十分之一。In this embodiment, the interest area division of the composite area is basically the same as S301 to S306. The difference is that in this embodiment, the acupoint for obtaining the fixed point is Taodao point, and the preset dimensions are Taodao point and Zhiyang point. One-tenth of the height between holes.
进一步地,还包括以下步骤:Further, the following steps are included:
S600,对获取到的(F+m)个感兴趣区域的目标红外图像进行可视化显示。S600: Visually display the acquired target infrared images of (F+m) regions of interest.
本领域技术人员知晓,任何对获取到的(F+m)个感兴趣区域的目标红外图像进行可视化显示的方式均属于本发明的保护范围。本发明的实施例还提供了一种非瞬时性计算机可读存储介质,该存储介质可设置于电子设备之中以保存用于实现方法实施例中一种方法相关的至少一条指令或至少一段程序,该至少一条指令或该至少一段程序由该处理器加载并执行以实现上述实施例提供的方法。Those skilled in the art know that any method of visually displaying the acquired target infrared images of (F+m) regions of interest falls within the protection scope of the present invention. Embodiments of the present invention also provide a non-transitory computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least a program related to implementing a method in the method embodiments. , the at least one instruction or the at least one program section is loaded and executed by the processor to implement the method provided by the above embodiment.
本发明的实施例还提供了一种电子设备,包括处理器和前述的非瞬时性计算机可读存储介质。An embodiment of the present invention also provides an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
本发明的实施例还提供一种计算机程序产品,其包括程序代码,当所述程序产品在电子设备上运行时,所述程序代码用于使该电子设备执行本说明书上述描述的根据本发明各种示例性实施方式的方法中的步骤。Embodiments of the present invention also provide a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to cause the electronic device to execute the steps described above in this specification according to the present invention. steps in the method of an exemplary embodiment.
虽然已经通过示例对本发明的一些特定实施例进行了详细说明,但是本领域的技术人员应该理解,以上示例仅是为了进行说明,而不是为了限制本发明的范围。本领域的技术人员还应理解,可以对实施例进行多种修改而不脱离本发明的范围和精神。本发明公开的范围由所附权利要求来限定。Although some specific embodiments of the invention have been described in detail by way of examples, those skilled in the art will understand that the above examples are for illustration only and are not intended to limit the scope of the invention. It will also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the invention. The scope of the present disclosure is defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310288043.3A CN116797778B (en) | 2023-03-23 | 2023-03-23 | Region of interest acquisition method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310288043.3A CN116797778B (en) | 2023-03-23 | 2023-03-23 | Region of interest acquisition method, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116797778A true CN116797778A (en) | 2023-09-22 |
CN116797778B CN116797778B (en) | 2024-03-22 |
Family
ID=88039304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310288043.3A Active CN116797778B (en) | 2023-03-23 | 2023-03-23 | Region of interest acquisition method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116797778B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090020347A (en) * | 2007-08-23 | 2009-02-26 | (주)메쉬 | Infrared body heat detection and analysis method |
CN108334879A (en) * | 2018-02-11 | 2018-07-27 | 深圳市朗驰欣创科技股份有限公司 | A kind of method for extracting region, system and terminal device |
US20210295517A1 (en) * | 2020-03-17 | 2021-09-23 | Seek Thermal, Inc. | Cost effective, mass producible system for rapid detection of fever conditions based on thermal imaging |
CN115393578A (en) * | 2022-10-13 | 2022-11-25 | 北京鹰之眼智能健康科技有限公司 | Composite region data processing system for acquiring metabolic state |
CN115497123A (en) * | 2022-10-21 | 2022-12-20 | 北京鹰之眼智能健康科技有限公司 | Method for obtaining the state parameters of the region of interest |
CN115588099A (en) * | 2022-11-02 | 2023-01-10 | 北京鹰之眼智能健康科技有限公司 | Method for displaying region of interest, electronic device and storage medium |
CN115690400A (en) * | 2022-11-02 | 2023-02-03 | 北京鹰之眼智能健康科技有限公司 | Infrared image display method |
CN115761212A (en) * | 2022-11-02 | 2023-03-07 | 北京鹰之眼智能健康科技有限公司 | Human body state early warning system based on infrared image |
CN115778333A (en) * | 2022-11-10 | 2023-03-14 | 北京悬丝医疗科技有限公司 | Method and device for visually positioning cun, guan and chi pulse acupuncture points |
-
2023
- 2023-03-23 CN CN202310288043.3A patent/CN116797778B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090020347A (en) * | 2007-08-23 | 2009-02-26 | (주)메쉬 | Infrared body heat detection and analysis method |
CN108334879A (en) * | 2018-02-11 | 2018-07-27 | 深圳市朗驰欣创科技股份有限公司 | A kind of method for extracting region, system and terminal device |
US20210295517A1 (en) * | 2020-03-17 | 2021-09-23 | Seek Thermal, Inc. | Cost effective, mass producible system for rapid detection of fever conditions based on thermal imaging |
CN115393578A (en) * | 2022-10-13 | 2022-11-25 | 北京鹰之眼智能健康科技有限公司 | Composite region data processing system for acquiring metabolic state |
CN115497123A (en) * | 2022-10-21 | 2022-12-20 | 北京鹰之眼智能健康科技有限公司 | Method for obtaining the state parameters of the region of interest |
CN115588099A (en) * | 2022-11-02 | 2023-01-10 | 北京鹰之眼智能健康科技有限公司 | Method for displaying region of interest, electronic device and storage medium |
CN115690400A (en) * | 2022-11-02 | 2023-02-03 | 北京鹰之眼智能健康科技有限公司 | Infrared image display method |
CN115761212A (en) * | 2022-11-02 | 2023-03-07 | 北京鹰之眼智能健康科技有限公司 | Human body state early warning system based on infrared image |
CN115778333A (en) * | 2022-11-10 | 2023-03-14 | 北京悬丝医疗科技有限公司 | Method and device for visually positioning cun, guan and chi pulse acupuncture points |
Non-Patent Citations (3)
Title |
---|
云廷进;郭永彩;高潮;: "基于图像局部区域梯度特征描述的红外人体识别算法", 光学技术, no. 03, 15 May 2008 (2008-05-15) * |
李明睿;张弛;丁宁: "基于特征点的人体红外图像自动分割技术", 北京生物医学工程, no. 06, 15 December 2017 (2017-12-15) * |
闫勇刚;邓小玲;马祥;欧阳健飞;: "人体皮肤彩色视频误差分析及一致性提高", 红外与激光工程, no. 1, 25 May 2016 (2016-05-25) * |
Also Published As
Publication number | Publication date |
---|---|
CN116797778B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200268339A1 (en) | System and method for patient positioning | |
CN103340632B (en) | Human joint angle measuring method based on feature point space position | |
CN116469519B (en) | Human body acupuncture point acquisition method based on infrared images | |
WO2019109575A1 (en) | Transcranial map generation method based on individual features, and navigation method and system therefor | |
WO2021073120A1 (en) | Method and device for marking lung area shadows in medical image, server, and storage medium | |
CN108109170A (en) | Medical image scan method and medical imaging device | |
CN107025627B (en) | Calibration and Quantification of Bone Motion and Approach Parameters in CT Images | |
CN114092634A (en) | Meridian point positioning method, device, electronic device and storage medium | |
CN116797778B (en) | Region of interest acquisition method, electronic device and storage medium | |
CN116407093B (en) | An automatic acquisition system for infrared image temperature | |
CN110477921A (en) | The height measurement method returned based on skeleton broken line Ridge | |
CN112950600B (en) | Brain identification extraction method, device, computer equipment and storage medium | |
US20210068695A1 (en) | Method Providing ECG Analysis Interface and System | |
CN115101431A (en) | An online intelligent detection and analysis system for semiconductor chip manufacturing based on machine vision | |
CN115083581A (en) | Acupoint positioning method and equipment | |
CN116313057B (en) | Abnormal area detection system based on infrared images | |
CN209032409U (en) | A kind of collecting device for outline | |
CN112434639B (en) | Action matching method, device, equipment and storage medium | |
CN110533638A (en) | A kind of method and device of measurement object size | |
CN110123348A (en) | Rebuild scan protocols formulating method, device and equipment | |
Fialho et al. | Can computer vision be used for anthropometry? A feasibility study of a smart mobile application | |
Wang et al. | A heat kernel based cortical thickness estimation algorithm | |
CN114092862A (en) | An Action Evaluation Method Based on Optimal Frame Selection | |
CN105678794A (en) | Image-processing-based evaluation method for scar treatment effect | |
CN111724901A (en) | A vision-based structure parameter prediction method, system, device and storage medium |
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: 20250124 Address after: 100000 Beijing Haidian District Shuguang Street Banjing Road Century Jinyuan Business Center East Area 16C Patentee after: Sanliwu Wisdom (Beijing) Medical Technology Co.,Ltd. Country or region after: China Address before: 100097 No.3, 1st floor, building 1, West District, No.10 zhengfusi Road, Haidian District, Beijing Patentee before: Beijing Eagle Eye Intelligent Health Technology Co.,Ltd. Country or region before: China |