CN117115899A - Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment - Google Patents
Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment Download PDFInfo
- Publication number
- CN117115899A CN117115899A CN202311103068.8A CN202311103068A CN117115899A CN 117115899 A CN117115899 A CN 117115899A CN 202311103068 A CN202311103068 A CN 202311103068A CN 117115899 A CN117115899 A CN 117115899A
- Authority
- CN
- China
- Prior art keywords
- human eye
- vein
- feature point
- image
- white
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 241001469893 Oxyzygonectes dovii Species 0.000 title claims abstract description 57
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 210000003462 vein Anatomy 0.000 claims abstract description 139
- 210000004204 blood vessel Anatomy 0.000 claims abstract description 18
- 210000001835 viscera Anatomy 0.000 claims abstract description 18
- 238000000638 solvent extraction Methods 0.000 claims abstract description 17
- 238000004422 calculation algorithm Methods 0.000 claims description 34
- 238000004364 calculation method Methods 0.000 claims description 19
- 238000012549 training Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 238000003708 edge detection Methods 0.000 claims description 8
- 239000003086 colorant Substances 0.000 claims description 4
- 230000008676 import Effects 0.000 claims description 4
- 230000008439 repair process Effects 0.000 claims description 4
- 238000012706 support-vector machine Methods 0.000 claims description 4
- GNFTZDOKVXKIBK-UHFFFAOYSA-N 3-(2-methoxyethoxy)benzohydrazide Chemical compound COCCOC1=CC=CC(C(=O)NN)=C1 GNFTZDOKVXKIBK-UHFFFAOYSA-N 0.000 claims description 3
- 241001504424 Zosteropidae Species 0.000 claims description 3
- 238000005192 partition Methods 0.000 claims description 3
- 230000000149 penetrating effect Effects 0.000 claims description 3
- 210000001747 pupil Anatomy 0.000 claims description 3
- SWGJCIMEBVHMTA-UHFFFAOYSA-K trisodium;6-oxido-4-sulfo-5-[(4-sulfonatonaphthalen-1-yl)diazenyl]naphthalene-2-sulfonate Chemical compound [Na+].[Na+].[Na+].C1=CC=C2C(N=NC3=C4C(=CC(=CC4=CC=C3O)S([O-])(=O)=O)S([O-])(=O)=O)=CC=C(S([O-])(=O)=O)C2=C1 SWGJCIMEBVHMTA-UHFFFAOYSA-K 0.000 claims description 3
- 206010046996 Varicose vein Diseases 0.000 claims description 2
- 208000027185 varicose disease Diseases 0.000 claims description 2
- 239000011159 matrix material Substances 0.000 claims 3
- MCSXGCZMEPXKIW-UHFFFAOYSA-N 3-hydroxy-4-[(4-methyl-2-nitrophenyl)diazenyl]-N-(3-nitrophenyl)naphthalene-2-carboxamide Chemical compound Cc1ccc(N=Nc2c(O)c(cc3ccccc23)C(=O)Nc2cccc(c2)[N+]([O-])=O)c(c1)[N+]([O-])=O MCSXGCZMEPXKIW-UHFFFAOYSA-N 0.000 claims 1
- 239000011800 void material Substances 0.000 claims 1
- 238000004519 manufacturing process Methods 0.000 abstract description 12
- 230000006978 adaptation Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 15
- 239000003814 drug Substances 0.000 description 9
- 238000004458 analytical method Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000013135 deep learning Methods 0.000 description 4
- 238000003745 diagnosis Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 210000005036 nerve Anatomy 0.000 description 4
- 210000000056 organ Anatomy 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000009826 distribution Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000001467 acupuncture Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- 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/18—Eye characteristics, e.g. of the iris
-
- 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/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- 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/14—Vascular patterns
-
- 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/18—Eye characteristics, e.g. of the iris
- G06V40/193—Preprocessing; Feature extraction
-
- 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/18—Eye characteristics, e.g. of the iris
- G06V40/197—Matching; Classification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Ophthalmology & Optometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Vascular Medicine (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本发明公开了一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法、装置、计算机存储介质及电子设备。所述方法包括,获取待识别的人眼图像;将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。本发明提供的一种人眼白睛脉络特征识别方法,具有识别精度高、适配数据量小和实际使用快速迭代,通用性更好,便于快速投产的优势。
The invention discloses a method, device, computer storage medium and electronic equipment for identifying the vein characteristics of the white eye based on the viscera partitioning method of the white eye of the human eye. The method includes: acquiring a human eye image to be recognized; inputting the human eye image to be recognized into a first network structure model, calculating feature point coordinate information of vein shape , color and direction in the human eye image; The feature point coordinate information is classified and sorted to generate a feature point data unit, and the classification and sorting is based on the corresponding relationship between the feature point and the vein; the human eye vein characteristics corresponding to the feature point data unit are calculated through the second network structure model , the human eye vein characteristics include blood vessel image information of color, thickness, and spots; based on the feature point data unit and the human eye vein characteristics, a first image including at least the human eye vein characteristic information is generated. The invention provides a method for identifying the vein characteristics of the white of the human eye, which has the advantages of high recognition accuracy, small amount of adaptation data, rapid iteration in actual use, better versatility, and easy to be put into production quickly.
Description
技术领域Technical field
本发明涉及人眼图像识别领域,尤其涉及一种白睛脉络特征识别方法、装置、计算机存储介质及电子设备。The present invention relates to the field of human eye image recognition, and in particular to a method, device, computer storage medium and electronic equipment for identifying white eye vein characteristics.
背景技术Background technique
近年来基于眼部辅助信息处理中,如何基于图像,自动准确地提取眼像的有效特征进行比对,一直以来都是这个领域研究的难点,也是限制眼部分析相关仪器设备应用的一个主要方面,如何从眼像图像中提取中医脉络特征,是当前眼部分析仪器设备识别技术领域一个普遍的技术难题。目前的中医眼部信息分析系统识别方法是基于全眼图像的所有像素进行深度学习,构建基于AI的分析模型,虽然实现起来相对容易,但是图像所具有的无关要素信息太多,未经处理直接进行机器学习会对最终结果产生很大的干扰、导致准确性不佳;同时,这种模式由于输入的要素过多,需要庞大的样本数量,导致投产周期长,稳定性差,由于样本数量量庞大,每次修改样本后重新进行机器学习的时间也很长,无法对出现的问题进行快速响应,因此造成实际应用上困难重重,无法实现形成可商业化使用的设备。In recent years, based on eye auxiliary information processing, how to automatically and accurately extract effective features of eye images for comparison based on images has always been a difficulty in this field of research, and is also a major aspect that limits the application of eye analysis-related instruments and equipment. , How to extract traditional Chinese medicine context features from eye images is a common technical problem in the current field of eye analysis instrument and equipment identification technology. The current TCM eye information analysis system recognition method is based on deep learning of all pixels of the whole eye image to build an AI-based analysis model. Although it is relatively easy to implement, the image has too much irrelevant element information and cannot be directly processed without processing. Machine learning will cause great interference to the final results and lead to poor accuracy; at the same time, this model requires a large number of samples due to too many input elements, resulting in a long production cycle and poor stability. Due to the large number of samples , it takes a long time to re-learn machine learning after each sample modification, and it is impossible to respond quickly to problems that arise. Therefore, it is difficult to implement in practical applications and it is impossible to form a device that can be used commercially.
因此,如何提供一种稳定性好、识别精度高、同时能够快速响应并给出人眼脉络特征识别的方法和装置,是本领域亟需突破的技术难题。Therefore, how to provide a method and device that has good stability, high recognition accuracy, and can respond quickly and identify human eye vein characteristics is a technical problem that urgently needs to be broken through in this field.
发明内容Contents of the invention
基于以上现有技术的不足,本发明提供一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法。能够改善上述不足。Based on the above deficiencies in the prior art, the present invention provides a method for identifying the vein characteristics of the white eye based on the organ partitioning method of the white eye of the human eye. can improve the above shortcomings.
作为本发明的一方面,本发明提供一种一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法,其中,所述识别方法包括,As one aspect of the present invention, the present invention provides a method for identifying the vein characteristics of the white eye based on the viscera partitioning method of the white eye of the human eye, wherein the identification method includes:
获取待识别的人眼图像;Obtain the human eye image to be recognized;
将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;Input the human eye image to be recognized into the first network structure model, and calculate the feature point coordinate information of vein shape , color and direction in the human eye image;
对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;Classify and sort the feature point coordinate information to generate feature point data units, where the classification and sorting is based on the corresponding relationship between the feature points and the context;
通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The human eye vein characteristics corresponding to the feature point data unit are calculated through the second network structure model, and the human eye vein characteristics include blood vessel image information of color, thickness, and spots;
基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。Based on the feature point data unit and human eye vein characteristics, a first image including at least human eye vein characteristic information is generated.
优选的,本发明第一方面提供的一种白睛脉络特征识别方法中,所述方法还包括,根据所述人眼脉络特征计算得到人眼脉络类型,所述人眼脉络类型为与人体脏腑存在对应关系的脉络形态、脉络颜色和特殊脉络的信息,所述人眼脉络类型包括分区信息。Preferably, in the method for identifying the characteristics of veins in the eyes provided by the first aspect of the present invention, the method further includes calculating a type of veins in the human eye based on the characteristics of the veins in the human eye, and the type of veins in the human eye is the same as that of human organs. There is corresponding relationship between vein shape, vein color and special vein information, and the human eye vein type includes partition information.
优选的,本发明第一方面提供的所述的白睛脉络特征识别方法,其特征在于,所述人眼脉络类型至少包括:根部粗大、曲张、延伸、离断、分叉、隆起一条、模糊一片、垂露、黑圈、贯瞳十种形态,Preferably, the method for identifying the characteristics of veins in the white eye provided by the first aspect of the present invention is characterized in that the types of veins in the human eye at least include: thick roots, varicose, extended, disconnected, bifurcated, raised, blurred There are ten forms: a piece, a dew, a black circle, and a penetrating pupil.
和/或鲜红、紫红、深红、红中带黑、红中带黄、淡黄、灰、暗灰八种颜色,and/or eight colors: bright red, purple red, dark red, red with black, red with yellow, light yellow, gray, and dark gray,
和/或直线、根虚、网格状、黑斑、黄斑、青斑六种特殊脉络。And/or there are six special veins: straight line, root deficiency, grid, dark spots, yellow spots, and livedo.
优选的,本发明第一方面提供的一种白睛脉络特征识别方法中,所述第二网状结构模型采用支持向量机算法训练而成,通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,具体包括:将所述特征点数据单元输入所述第二网状结构模型,计算所述人眼图像中所述特征点数据单元对应的人眼脉络特征。Preferably, in the method for identifying the characteristics of white eye veins provided by the first aspect of the present invention, the second network structure model is trained using a support vector machine algorithm, and the feature point data is calculated through the second network structure model. The human eye context feature corresponding to the unit specifically includes: inputting the feature point data unit into the second network structure model, and calculating the human eye context feature corresponding to the feature point data unit in the human eye image.
优选的,本发明第一方面提供的一种白睛脉络特征识别方法,所述第一网状结构模型由如下方法训练而成:Preferably, the first aspect of the present invention provides a method for identifying the characteristics of white eye veins, and the first network structure model is trained by the following method:
步骤a、随机生成一个或多个简单图形,所述简单图形包括四边形、三角形、线段、立方体的一种或多种,将所述简单图形的顶点标记为特征点,将所述简单图形和对应的特征点坐标,作为输入,使用MagicPoint算法训练初始模型,Step a. Randomly generate one or more simple graphics. The simple graphics include one or more types of quadrilaterals, triangles, line segments, and cubes. Mark the vertices of the simple graphics as feature points, and compare the simple graphics with the corresponding The coordinates of the feature points are used as input to train the initial model using the MagicPoint algorithm.
步骤b、输入所述待识别的人眼图像至所述MagicPoint算法训练后的初始模型,进行第二轮训练,得到进阶模型,Step b. Input the human eye image to be recognized into the initial model trained by the MagicPoint algorithm, conduct a second round of training, and obtain an advanced model.
步骤c、将所述待识别的人眼图像和基于所述待识别的人眼图像所述进阶模型计算得到的特征点坐标,作为输入,使用MagicPoint算法进行第三轮训练,得到高阶模型;Step c. Use the human eye image to be recognized and the feature point coordinates calculated by the advanced model based on the human eye image to be recognized as input, and use the MagicPoint algorithm to perform a third round of training to obtain a high-order model. ;
步骤d、以所述待识别的人眼图像作为输入,使用所述高阶模型计算所述待识别的人眼图像对应的特征点坐标;Step d. Taking the human eye image to be recognized as input, using the high-order model to calculate the coordinates of the feature points corresponding to the human eye image to be recognized;
步骤e、人工检查d步骤提取出的特征点的准确性,如果准确则进行g,如果不准确则则重复c步骤对所述高阶模型进行迭代;Step e. Manually check the accuracy of the feature points extracted in step d. If accurate, proceed to g. If inaccurate, repeat step c to iterate the high-order model;
步骤g、将所述待识别的人眼图像和对应的特征点坐标,作为输入,用SuperPoint算法训练生成最终模型。Step g. Use the human eye image to be recognized and the corresponding feature point coordinates as input, and use the SuperPoint algorithm to train and generate the final model.
优选的,本发明第一方面提供的一种白睛脉络特征识别方法,所述第二网状模型由如下步骤训练而成:Preferably, the first aspect of the present invention provides a method for identifying white eye vein characteristics, and the second network model is trained by the following steps:
步骤A、将训练集中每个特征点数据单元进行归一化处理,转换为4x32二维矩阵,矩阵中每一列对应特征点数据单元的每条线段,每一列的4个数据依次为特征点数据单元一条线段的向量角度、向量长度、宽度、颜色,32行数据单元最多可存储32条线段的数据,所述二维矩阵中舍弃超过32条线段的多余数据,不足32条线段用0进行填充;Step A. Normalize each feature point data unit in the training set and convert it into a 4x32 two-dimensional matrix. Each column in the matrix corresponds to each line segment of the feature point data unit, and the 4 data in each column are feature point data in turn. The vector angle, vector length, width, and color of a unit line segment. A 32-line data unit can store up to 32 line segment data. The redundant data exceeding 32 line segments is discarded in the two-dimensional matrix, and less than 32 line segments are filled with 0s. ;
步骤B、接收人工为特征点数据单元标记的人眼脉络特征;Step B. Receive human eye context features manually marked for feature point data units;
步骤C、将复数的经过步骤A归一化处理过的特征点数据单元数据,以及步骤B标记过的每个脉络特征数据单元的人眼脉络类型,作为输入,使用支持向量机算法训练模型。Step C: Use the complex feature point data unit data normalized in step A and the human eye vein type of each vein feature data unit marked in step B as input, and use the support vector machine algorithm to train the model.
优选的,本发明第一方面提供的一种白睛脉络特征识别方法,所述获取待识别的人眼图像,具体包括:Preferably, the first aspect of the present invention provides a method for identifying the characteristics of white eye veins. The method of obtaining the human eye image to be identified specifically includes:
导入人眼图像,所述人眼图像由摄像机拍摄获得,Import the human eye image, which is captured by the camera,
去除所述人眼图像的背景,保留眼部图像,Remove the background of the human eye image and retain the eye image,
去除人眼图像上因反射照明光源形成的高亮区域,采用膨胀算法对被去除区域进行修复,Remove the highlight areas caused by reflected lighting sources on the human eye image, and use the expansion algorithm to repair the removed areas.
采用Canny边缘检测算法、SOBEL边缘检测算法、膨胀算法对图像进行识别并裁剪,只保留白睛区域,The Canny edge detection algorithm, SOBEL edge detection algorithm, and expansion algorithm are used to identify and crop the image, leaving only the white eye area.
将裁剪后只保留白睛区域的人眼图像作为待识别的人眼图像。The human eye image that retains only the white eye area after cropping is used as the human eye image to be recognized.
在本发明的另外一个实施例中,本发明还提供了一种基于人眼白睛脏腑分区法的白睛脉络特征识别装置,具体包括:In another embodiment of the present invention, the present invention also provides a device for identifying the vein characteristics of the white eye based on the organ partitioning method of the white eye of the human eye, which specifically includes:
获取单元,获取待识别的人眼图像;The acquisition unit acquires the human eye image to be recognized;
第一计算单元,将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;The first calculation unit inputs the human eye image to be recognized into the first network structure model and calculates the feature point coordinate information of the vein shape , color and direction in the human eye image;
第一生成单元,对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;A first generation unit is configured to classify and sort the feature point coordinate information and generate a feature point data unit, where the classification and sorting is based on the corresponding relationship between the feature point and the context;
第二计算单元,通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The second calculation unit calculates the human eye vein characteristics corresponding to the feature point data unit through the second network structure model. The human eye vein characteristics include blood vessel image information of color, thickness, and spots;
第二生成单元,基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。The second generation unit generates a first image including at least human eye vein feature information based on the feature point data unit and human eye vein characteristics.
在本发明的另外一个实施例中还提供了一种计算机存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如上述任一项基于人眼白睛脏腑分区法的白睛脉络特征识别方法步骤。。In another embodiment of the present invention, a computer storage medium is also provided. The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by the processor and executed as any one of the above based on the white eyes and internal organs of the human eye. Method steps for identifying the characteristics of white eye veins by partitioning method. .
在本发明的另外一个实施例中,本发明还提供了一种电子设备,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由处理器加载并执行如上述任一项基于人眼白睛脏腑分区法的白睛脉络特征识别方法步骤。In another embodiment of the present invention, the present invention also provides an electronic device, including: a processor and a memory; wherein the memory stores a computer program, and the computer program is adapted to be loaded by the processor and executed as follows: Any of the above method steps are based on the viscera partitioning method of the white eye of the human eye.
本发明提供的基于人眼白睛脏腑分区法的白睛脉络特征识别方法,具有识别精度高、适配数据量小和实际使用快速迭代,通用性更好,便于快速投产的优势,为中医眼部分析设备的应用提供了可靠稳定的人眼脉白睛脉络特征识别方法。The method for identifying the characteristics of the white eye veins based on the viscera partitioning method of the white eye of the human eye provided by the present invention has the advantages of high recognition accuracy, small amount of adaptation data, rapid iteration in actual use, better versatility, and easy to be put into production quickly. The application of analysis equipment provides a reliable and stable method for identifying the characteristics of human eye pulses and white eye veins.
本发明通过将人眼白睛脉络特征识别分解为特征点坐标信息计算、基于特征点与脉络对应关系的分类排序、以及人眼脉络特征计算、人眼脉络特征归类与匹配的方式,将复杂多变的人眼脉络特征相关信息就行了有序分类,通过分两个模型分别完成不同阶段的计算识别,保证了数据的单纯,进而实现了数据处理的稳定性,模块化的思路也实现了样本可控、便于自适应更新、快速识别及方便投产,解决了当前人眼图像处理的端到端深度学习的识别精度不高、样本数量要求高、样本训练缓慢导致投产和迭代周期长的问题,为中医眼诊的准确识别、广泛应用提供了基础保障。The present invention decomposes the identification of the vein characteristics of the white eye of the human eye into the calculation of feature point coordinate information, the classification and sorting based on the corresponding relationship between the characteristic points and veins, the calculation of the human eye vein characteristics, and the classification and matching of the human eye vein characteristics. The information related to the changing human eye vein characteristics can be classified in an orderly manner. By dividing the calculation and identification into two models to complete different stages, the simplicity of the data is ensured, thereby achieving the stability of data processing. The modular idea also realizes the sample processing It is controllable, easy to adaptively update, fast to identify and easy to put into production. It solves the current problems of end-to-end deep learning for human eye image processing, such as low recognition accuracy, high sample number requirements, and slow sample training, resulting in long production and iteration cycles. It provides a basic guarantee for the accurate identification and widespread application of traditional Chinese medicine eye diagnosis.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:
图1为本发明实施例1一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法流程图Figure 1 is a flow chart of a method for identifying vein characteristics of the white eye based on the viscera partitioning method of the white eye of the present invention according to Embodiment 1 of the present invention.
图2为本发明实施例1中第一网状模型训练方法流程图Figure 2 is a flow chart of the first mesh model training method in Embodiment 1 of the present invention.
图3为本发明实施例1中第二网状模型训练方法流程图Figure 3 is a flow chart of the second network model training method in Embodiment 1 of the present invention.
图4为本发明实施例2中人眼白睛脉络特征识别装置示意图Figure 4 is a schematic diagram of the device for identifying vein characteristics of the white of human eyes in Embodiment 2 of the present invention.
图5为本发明实施例3中电子设备结构示意图Figure 5 is a schematic structural diagram of electronic equipment in Embodiment 3 of the present invention.
具体实施方式Detailed ways
以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention. In the case of no conflict, the present invention The embodiments and features of the embodiments may be combined with each other.
针对人眼图像识别领域存在的数据干扰大,准确性不佳,稳定性差,无法根据实际使用及时自适应更新,响应不及时、投产周期长的问题,本发明实施1提供了一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法,具有识别精度高、适配数据量小和实际使用快速迭代,通用性更好,便于快速投产的优势,为中医眼部分析设备的应用提供了可靠稳定的人眼白睛脉络特征识别方法。In view of the problems existing in the field of human eye image recognition such as large data interference, poor accuracy, poor stability, inability to timely adaptive update according to actual use, untimely response, and long production cycle, Implementation 1 of the present invention provides a method based on human eye white The white eye vein feature identification method based on the eye viscera partition method has the advantages of high recognition accuracy, small amount of adaptation data, rapid iteration in actual use, better versatility, and easy to put into production quickly. It provides a reliable solution for the application of traditional Chinese medicine eye analysis equipment. A stable method for identifying vein features in the white of human eyes.
具体地,本发明实施例1中一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法,具体包括:Specifically, in Embodiment 1 of the present invention, a method for identifying the vein characteristics of the white eye based on the organ partitioning method of the white eye of the human eye specifically includes:
步骤101:获取待识别的人眼图像,Step 101: Obtain the human eye image to be recognized,
具体地、人眼图像可以为通过辅助装置对不同人的眼睛进行固定和预设人眼状态的辅助支撑,使用拍照装置对人体眼睛目标区域拍照,获得人眼图像,为了能够支持后续图像处理以及算法模型识别,本发明实施例中优选能够实现清晰拍到眼睛周边包括眼睛本体内细节及颜色的相机,具备对应的高像素和分辨率的拍照装置,如单反相机、智能手机相机或工业相机等均可作为选择。Specifically, the human eye image can be an auxiliary support for fixing different people's eyes and presetting the human eye state through an auxiliary device, using a camera device to take pictures of the target area of the human eye to obtain the human eye image, in order to support subsequent image processing and Algorithm model recognition, in the embodiment of the present invention, it is preferred to use a camera that can clearly capture the details and colors around the eyes, including the eyes themselves, and a camera with corresponding high pixels and resolution, such as a SLR camera, a smartphone camera, or an industrial camera, etc. All are available as options.
本发明实施例中待识别的人眼图像为对相机拍照获得人眼图像进行图像数据处理后的人眼图像。具体地,所述获取待识别的人眼图像具体包括:The human eye image to be recognized in the embodiment of the present invention is the human eye image obtained by taking a picture with a camera and performing image data processing. Specifically, the obtaining the human eye image to be recognized specifically includes:
导入人眼图像,所述人眼图像由摄像机拍摄获得,Import the human eye image, which is captured by the camera,
去除所述人眼图像的背景,只保留眼部图像,Remove the background of the human eye image and retain only the eye image,
去除人眼图像上因反射照明光源形成的高亮区域,采用改进的膨胀算法对被去除区域进行修复,Remove the highlight areas caused by reflected lighting sources on the human eye image, and use an improved expansion algorithm to repair the removed areas.
采用Canny边缘检测算法、SOBEL边缘检测算法、改进的膨胀算法对图像进行识别并裁剪,只保留白睛区域,The Canny edge detection algorithm, SOBEL edge detection algorithm, and improved expansion algorithm are used to identify and crop the image, leaving only the white eye area.
将裁剪后只保留白睛区域的人眼图像作为待识别的人眼图像。The human eye image that retains only the white eye area after cropping is used as the human eye image to be recognized.
通过上述步骤对相机拍摄的人眼图像进行处理后,能够通过裁剪到周边区域,聚焦后续待识别的眼睛区域,同时将因反射光、背景、边缘模糊等因素对后续待识别眼睛区域造成的图像影响因素消除,能够为后续的精准处理提供高质量人眼图像,进而提高后整体人眼脉络特征识别的精准度。After the human eye image captured by the camera is processed through the above steps, it can be cropped to the surrounding area to focus on the eye area to be identified later, and at the same time, the image caused by factors such as reflected light, background, edge blur, etc. Eliminating influencing factors can provide high-quality human eye images for subsequent precise processing, thereby improving the accuracy of overall human eye vein feature recognition.
步骤102:将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息。Step 102: Input the human eye image to be recognized into the first network structure model, and calculate the feature point coordinate information of vein shape , color and direction in the human eye image.
具体地,本发明实施例中特征点为可以表示图像形状特点的点,具体选取上比如正方形的4个顶点,三角形的3个顶点,正方体的8个顶点,折线的拐点,交叉线的交叉点,将这些点连起来就能得到图形的轮廓。由于人眼脉络形状与走向均是与图像形状特点关联的,可以使用关键点的方式进行精准表达。Specifically, in the embodiment of the present invention, the feature points are points that can represent the shape characteristics of the image. For example, 4 vertices of a square, 3 vertices of a triangle, 8 vertices of a cube, the inflection point of a polyline, and the intersection of a cross line are specifically selected. , connect these points to get the outline of the graph. Since the shape and direction of human eye veins are related to the shape characteristics of the image, they can be accurately expressed using key points.
本发明实施例1中计算得到的所述特征点坐标信息可以为并未对应到所述脉络状态下的零散的特征点坐标。The feature point coordinate information calculated in Embodiment 1 of the present invention may be scattered feature point coordinates that do not correspond to the context state.
具体地,如附图2所述,本发明实施例中所述第一网状结构模型由如下方法训练而成:Specifically, as shown in Figure 2, the first mesh structure model in the embodiment of the present invention is trained by the following method:
步骤a、随机生成一个或多个简单图形,所述简单图形包括四边形、三角形、线段、立方体的一种或多种,将所述简单图形的顶点标记为特征点,将所述简单图形和对应的特征点坐标,作为输入,使用MagicPoint算法训练初始模型,Step a. Randomly generate one or more simple graphics. The simple graphics include one or more types of quadrilaterals, triangles, line segments, and cubes. Mark the vertices of the simple graphics as feature points, and compare the simple graphics with the corresponding The coordinates of the feature points are used as input to train the initial model using the MagicPoint algorithm.
步骤b、输入所述待识别的人眼图像至所述MagicPoint算法训练后的初始模型,进行第二轮训练,得到进阶模型,Step b. Input the human eye image to be recognized into the initial model trained by the MagicPoint algorithm, conduct a second round of training, and obtain an advanced model.
步骤c、将所述待识别的人眼图像和基于所述待识别的人眼图像所述进阶模型计算得到的特征点坐标,作为输入,使用MagicPoint算法进行第三轮训练,得到高阶模型;Step c. Use the human eye image to be recognized and the feature point coordinates calculated by the advanced model based on the human eye image to be recognized as input, and use the MagicPoint algorithm to perform a third round of training to obtain a high-order model. ;
步骤d、以所述待识别的人眼图像作为输入,使用所述高阶模型计算所述待识别的人眼图像对应的特征点坐标;Step d. Taking the human eye image to be recognized as input, using the high-order model to calculate the coordinates of the feature points corresponding to the human eye image to be recognized;
步骤e、人工检查d步骤提取出的特征点的准确性,如果准确则进行g,如果不准确则则重复c步骤对所述高阶模型进行迭代;Step e. Manually check the accuracy of the feature points extracted in step d. If accurate, proceed to g. If inaccurate, repeat step c to iterate the high-order model;
步骤g、将所述待识别的人眼图像和对应的特征点坐标,作为输入,用SuperPoint算法训练生成最终模型。Step g. Use the human eye image to be recognized and the corresponding feature point coordinates as input, and use the SuperPoint algorithm to train and generate the final model.
本发明单独设置特征点坐标信息计算模型,通过第一步先快速准确的将输入待识别的人眼图像信息中的特征点计算提取出来,以特征点坐标信息的形式为后续的快速准确地处理提供了基础,同时基于待识别人眼图像对特征点的计算过程相较于直接计算完整脉络特征或脉络类型,需要计算的数据类型及规则简单,数据量小,具备计算快速、准确等优势。The present invention sets a separate calculation model for feature point coordinate information, and quickly and accurately calculates and extracts the feature points in the human eye image information input to be recognized through the first step, and uses the feature point coordinate information for subsequent rapid and accurate processing. It provides a foundation. At the same time, the calculation process of feature points based on the human eye image to be recognized is compared with directly calculating the complete context features or context types. The data types and rules that need to be calculated are simple, the data volume is small, and it has the advantages of fast and accurate calculation.
步骤103:对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系。Step 103: Classify and sort the feature point coordinate information to generate feature point data units, and the classification and sorting is based on the corresponding relationship between the feature points and the context.
需要说明的是本发明实施例中,所述脉络为包括人眼白睛中血管、神经纹路在内的能够进行人体生物信号传递的人体组织信息,通常通过图像信息的形式进行表征。It should be noted that in the embodiment of the present invention, the veins are human tissue information that can transmit human biological signals, including blood vessels and nerve patterns in the whites of human eyes, and are usually represented in the form of image information.
在计算得到能够表征所述脉络形状与走向的特征点坐标信息后,得到的特征点坐标信息为并未与各自对应的所述脉络形状和走向关联的的零散的特征点坐标。由第一网状结构模型计算得到的特征点坐标信息为零散的特征点,并没有与所述脉络进行关联,但实质上零散的特征点是代表了所有的脉络所含有的信息的,因此,步骤103通过分类排序,将零散的特征点按照与各个所述脉络进行对应排序,能够实现后续对脉络特征计算的高效率。After calculating the feature point coordinate information that can characterize the vein shape and direction, the obtained feature point coordinate information is scattered feature point coordinates that are not associated with the corresponding vein shape and direction. The feature point coordinate information calculated from the first network structure model is scattered feature points and is not associated with the context. However, the scattered feature points actually represent the information contained in all contexts. Therefore, Step 103 sorts the scattered feature points according to the corresponding contexts through classification and sorting, which can achieve high efficiency in subsequent calculation of context features.
因此,本发明实施例中步骤103用于进一步基于特征点与所述脉络对应关系进行分类排序,将能够与所述脉络关联的特征点筛选出来,排除与图片中实际血管位置、形状走向不关联的特征点,这些不关联的特征点在过程中通常称之为误算特征点,在去除了误算特征点后,步骤103还完成将与所述脉络位置、形状走向关联的特征点进行排序,所述排序根据待识别图像中每个脉络所在区域进行划分成数据组,每个数据组对应一个待识别图像中各个脉络的位置。Therefore, step 103 in the embodiment of the present invention is used to further classify and sort based on the corresponding relationship between the feature points and the veins, filter out the feature points that can be associated with the veins, and exclude those that are not related to the actual blood vessel position and shape direction in the picture. These uncorrelated feature points are usually called miscalculated feature points in the process. After removing the miscalculated feature points, step 103 also completes sorting the feature points associated with the vein position and shape direction. , the sorting is divided into data groups according to the area where each context in the image to be identified is located, and each data group corresponds to the position of each context in the image to be identified.
本发明实施例中所述步骤103中对所述特征点坐标信息进行分类排序可以采用现有技术中诸如基于血管图形的拓扑结构通过自适应图形探测器进行探测识别分类算法,也可以通过大数据训练的机器学习进行识别,具体分类排序方法是本领域技术人员基于人眼血管、神经分布规律,以及计算得到的特征点坐标集合可以自行选择优化的。In step 103 in the embodiment of the present invention, the classification and sorting of the feature point coordinate information can be performed by using existing technologies such as topological structures based on blood vessel graphics through adaptive graphics detectors, or by using big data. The trained machine learning is used for identification. The specific classification and sorting method can be selected and optimized by those skilled in the art based on the distribution rules of human eye blood vessels and nerves, as well as the calculated feature point coordinate set.
步骤104:通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息。本发明实施例中步骤104,所述第二网状结构模型采用支持向量机算法训练而成,通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,具体包括:将所述特征点数据单元输入所述第二网状结构模型,计算所述人眼图像中所述特征点数据单元对应的人眼脉络特征。Step 104: Calculate the human eye vein characteristics corresponding to the feature point data unit through the second network structure model. The human eye vein characteristics include blood vessel image information of color, thickness, and spots. In step 104 of the embodiment of the present invention, the second network structure model is trained using a support vector machine algorithm, and the human eye context characteristics corresponding to the feature point data units are calculated through the second network structure model, which specifically includes: The feature point data unit inputs the second network structure model and calculates the human eye context characteristics corresponding to the feature point data unit in the human eye image.
具体地,如附图2所示,本发明中第二网状模型由如下步骤训练而成:Specifically, as shown in Figure 2, the second network model in the present invention is trained by the following steps:
步骤A、将训练集中每个特征点数据单元进行归一化处理,转换为4x32二维矩阵,矩阵中每一列对应特征点数据单元的每条线段,每一列的4个数据依次为特征点数据单元一条线段的向量角度、向量长度、宽度、颜色,32行数据单元最多可存储32条线段的数据,所述二维矩阵中舍弃超过32条线段的多余数据,不足32条线段用0进行填充;Step A. Normalize each feature point data unit in the training set and convert it into a 4x32 two-dimensional matrix. Each column in the matrix corresponds to each line segment of the feature point data unit, and the 4 data in each column are feature point data in turn. The vector angle, vector length, width, and color of a unit line segment. A 32-line data unit can store up to 32 line segment data. The redundant data exceeding 32 line segments is discarded in the two-dimensional matrix, and less than 32 line segments are filled with 0s. ;
步骤B、接收人工为特征点数据单元标记的人眼脉络特征;Step B. Receive human eye context features manually marked for feature point data units;
步骤C、将复数的经过步骤A归一化处理过的特征点数据单元数据,以及步骤B标记过的每个脉络特征数据单元的人眼脉络类型,作为输入,使用支持向量机算法训练模型。Step C: Use the complex feature point data unit data normalized in step A and the human eye vein type of each vein feature data unit marked in step B as input, and use the support vector machine algorithm to train the model.
本发明实施例中所述人眼脉络特征至少包括颜色、粗细、斑点的血管图像信息。除了上述信息外,其他能够反映人眼脉络的血管、神经图像信息均可包含在本发明中。The human eye vein characteristics in the embodiment of the present invention at least include blood vessel image information of color, thickness, and spots. In addition to the above information, other blood vessel and nerve image information that can reflect the veins of the human eye can be included in the present invention.
本发明实施例1经过步骤102-步骤104,将待识别人眼图像经过模型、算法处理,得到了至少包括了血管、神经信息的人眼脉络特征,人眼脉络特征包括人眼血管的形状、走向、颜色、粗细等特征,能够反映人眼中血管分布,同时为了能够与人眼不同状态的关联和显示,具体的,本发明中所述人眼脉络类型至少包括:根部粗大、曲张、延伸、离断、分叉、隆起一条、模糊一片、垂露、黑圈、贯瞳十种形态,In Embodiment 1 of the present invention, through steps 102 to 104, the human eye image to be recognized is processed by models and algorithms to obtain human eye venation features that at least include blood vessel and nerve information. The human eye venation features include the shape of human eye blood vessels, Characteristics such as direction, color, and thickness can reflect the distribution of blood vessels in the human eye, and at the same time, in order to be able to correlate and display different states of the human eye, specifically, the types of human eye veins described in the present invention include at least: thick roots, varicose veins, extensions, There are ten forms: disconnection, bifurcation, bulge, blur, dew, black circle, and penetrating pupils.
和/或鲜红、紫红、深红、红中带黑、红中带黄、淡黄、灰、暗灰八种颜色,and/or eight colors: bright red, purple red, dark red, red with black, red with yellow, light yellow, gray, and dark gray,
和/或直线、根虚、网格状、黑斑、黄斑、青斑六种特殊脉络。And/or there are six special veins: straight line, root deficiency, grid, dark spots, yellow spots, and livedo.
步骤105:基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。Step 105: Generate a first image including at least human eye vein feature information based on the feature point data unit and human eye vein characteristics.
通过基于中医对人眼状态分类理论,根据人眼脉络特征与人眼脉络类型对应关系,将人眼脉络特征得到人眼脉络类型,对于机器自动化计算后的人眼图像信息转化为人眼状态信息,并自动化提供人眼状态分析提供了保障,在机器自动、高效率、准确上得到了突破,进而在眼诊仪的应用及推广中起到十分重要的作用。Based on the classification theory of human eye status based on traditional Chinese medicine, and based on the corresponding relationship between human eye vein characteristics and human eye vein types, the human eye vein characteristics are obtained into human eye vein types. The human eye image information after automatic calculation by the machine is converted into human eye status information. It also provides a guarantee for automatically providing analysis of human eye status. It has achieved breakthroughs in machine automation, high efficiency and accuracy, and has played a very important role in the application and promotion of eye diagnostic instruments.
需要说明的是,人眼白睛脏腑分区法来自著名中医老前辈彭静山教授眼针的理论,为中医药领域国家重点基础研究发展计划(973计划)课题的一部分,课题编号2007CB512707,通过对左右眼进行分为八区十三穴的理论通过眼部分区,脉络特征与脏腑对应关系进行眼部信息识别。本发明实施例中白睛脉络特征识别方法为基于人眼白睛脏腑分区法在计算机图像处理中的应用。It should be noted that the division method of the internal organs of the white eye of the human eye comes from the eye acupuncture theory of Professor Peng Jingshan, a famous veteran of traditional Chinese medicine. It is part of the national key basic research and development plan (973 plan) in the field of traditional Chinese medicine, project number 2007CB512707, through the left and right eyes. The theory of eight zones and thirteen acupoints is used to identify eye information through eye divisions, vein characteristics and the correspondence between internal organs. The method for identifying the vein characteristics of the white eye in the embodiment of the present invention is based on the application of the viscera partitioning method of the white eye of the human eye in computer image processing.
本发明实施例1提供的一种人眼白睛脉络特征识别方法,具有识别精度高、适配数据量和实际使用快速迭代,通用性更好,便于快速投产的优势,为中医眼诊领域的应用提供了可靠稳定的人眼白睛脉络特征识别方法。Embodiment 1 of the present invention provides a method for identifying vein characteristics of the white eye of the human eye, which has the advantages of high recognition accuracy, adaptable data volume and rapid iteration in actual use, better versatility, and ease of rapid production, and is widely used in the field of traditional Chinese medicine eye diagnosis. Provides a reliable and stable method for identifying the vein characteristics of the white of human eyes.
本发明通过将人眼白睛脉络特征识别分解为特征点坐标信息计算、基于特征点与脉络对应关系的分类排序、以及人眼脉络特征计算、人眼脉络特征归类与匹配的方式,将复杂多变的人眼脉络特征相关信息就行了有序分类,通过分两个模型分别完成不同阶段的计算识别,保证了数据的单一准确,进而实现了数据处理的稳定性,模块化的思路也实现了样本可控、便于自适应更新、快速识别及方便投产,解决了当前人眼图像处理中的端到端深度学习的识别精度不高、样本数量要求高、样本训练缓慢导致投产和迭代周期长的问题,为中医眼诊的准确识别、广泛应用提供了基础保障。The present invention decomposes the identification of the vein characteristics of the white eye of the human eye into the calculation of feature point coordinate information, the classification and sorting based on the corresponding relationship between the characteristic points and veins, the calculation of the human eye vein characteristics, and the classification and matching of the human eye vein characteristics. The information related to the changing human eye vein characteristics can be classified in an orderly manner. By dividing the calculation and identification at different stages into two models, the single accuracy of the data is ensured, thereby achieving the stability of data processing, and the modular idea is also realized. Samples are controllable, easy to adaptively update, fast to identify and easy to put into production. It solves the current problems of end-to-end deep learning in human eye image processing, such as low recognition accuracy, high sample number requirements, and slow sample training, which lead to long production and iteration cycles. This provides a basic guarantee for the accurate identification and widespread application of traditional Chinese medicine eye diagnosis.
如附图4所示,本发明第二实施例提供一种人眼白睛脉络类型的识别装置,具体包括,获取单元401,获取待识别的人眼图像;As shown in Figure 4, the second embodiment of the present invention provides a device for identifying the vein type of the white of the human eye, which specifically includes an acquisition unit 401 to acquire the human eye image to be recognized;
第一计算单元403,将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;The first calculation unit 403 inputs the human eye image to be recognized into the first network structure model, and calculates the feature point coordinate information of the vein shape , color and direction in the human eye image;
第一生成单元405,对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;The first generation unit 405 classifies and sorts the feature point coordinate information and generates a feature point data unit, where the classification and sorting is based on the corresponding relationship between the feature point and the context;
第二计算单元407,通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The second calculation unit 407 calculates the human eye vein characteristics corresponding to the feature point data unit through the second network structure model. The human eye vein characteristics include blood vessel image information of color, thickness, and spots;
第二生成单元409,基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。The second generation unit 409 generates a first image including at least human eye context feature information based on the feature point data unit and human eye context characteristics.
本发明实施例中待识别的人眼图像为对相机拍照获得人眼图像进行图像数据处理后的人眼图像。具体地,所述获取待识别的人眼图像具体包括:The human eye image to be recognized in the embodiment of the present invention is the human eye image obtained by taking a picture with a camera and performing image data processing. Specifically, the obtaining the human eye image to be recognized specifically includes:
导入人眼图像,所述人眼图像由摄像机拍摄获得,Import the human eye image, which is captured by the camera,
去除所述人眼图像的背景,只保留眼部图像,Remove the background of the human eye image and retain only the eye image,
去除人眼图像上因反射照明光源形成的高亮区域,采用改进的膨胀算法对被去除区域进行修复,Remove the highlight areas caused by reflected lighting sources on the human eye image, and use an improved expansion algorithm to repair the removed areas.
采用Canny边缘检测算法、SOBEL边缘检测算法、改进的膨胀算法对图像进行识别并裁剪,只保留白睛区域,The Canny edge detection algorithm, SOBEL edge detection algorithm, and improved expansion algorithm are used to identify and crop the image, leaving only the white eye area.
将裁剪后只保留白睛区域的人眼图像作为待识别的人眼图像。The human eye image that retains only the white eye area after cropping is used as the human eye image to be recognized.
通过上述步骤对相机拍摄的人眼图像进行处理后,能够通过裁剪到周边区域,聚焦后续待识别的眼睛区域,同时将因反射光、背景、边缘模糊等因素对后续待识别眼睛区域造成的图像影响因素消除,能够为后续的精准处理提供高质量人眼图像,进而提高后整体人眼白睛脉络特征识别的精准度。After the human eye image captured by the camera is processed through the above steps, it can be cropped to the surrounding area to focus on the eye area to be identified later, and at the same time, the image caused by factors such as reflected light, background, edge blur, etc. The elimination of influencing factors can provide high-quality human eye images for subsequent precise processing, thereby improving the accuracy of the overall human eye white eye vein feature recognition.
本发明实施例中关于第一网状结构模型与第二网状结构模型组成以及训练方式为实施例1中已经全面的公开的内容部分,此处不再重复描述。The composition of the first network structure model and the second network structure model and the training method in the embodiment of the present invention are the contents that have been fully disclosed in Embodiment 1, and will not be described again here.
附图4所示的本发明实施例2一种人眼白睛脉络特征的识别装置与实施例1中人眼白睛脉络特征识别方法对应,通过将人眼白睛脉络特征识别分解为特征点坐标信息计算、基于特征点与脉络对应关系的分类排序、以及人眼脉络特征计算、人眼脉络特征归类与匹配的方式,将复杂多变的人眼脉络特征相关信息就行了有序分类,通过分两个模型分别完成不同阶段的计算识别,保证了数据的单纯,进而实现了数据处理的稳定性,模块化的思路也实现了样本可控、便于自适应更新、快速识别及方便投产,解决了当前人眼图像处理中的端到端深度学习的识别精度不高、样本数量要求高、样本训练缓慢导致投产和迭代周期长的问题,为中医眼诊的准确识别、广泛应用提供了创新支持。A device for identifying the vein characteristics of the white of the human eye in Embodiment 2 of the present invention shown in Figure 4 corresponds to the method for identifying the vein characteristics of the white of the human eye in Embodiment 1, and is calculated by decomposing the vein characteristic recognition of the white of the human eye into feature point coordinate information. , based on the classification and sorting of the corresponding relationship between feature points and veins, as well as the calculation of human eye vein characteristics, the classification and matching of human eye vein characteristics, the complex and changeable human eye vein feature related information can be classified in an orderly manner, by dividing it into two Each model completes different stages of calculation and identification respectively, ensuring the simplicity of the data, thereby achieving the stability of data processing. The modular idea also achieves controllable samples, facilitates adaptive updates, rapid identification, and facilitates production, solving the current problem. End-to-end deep learning in human eye image processing has low recognition accuracy, high sample number requirements, and slow sample training, resulting in long production and iteration cycles. It provides innovative support for the accurate recognition and widespread application of traditional Chinese medicine eye diagnosis.
附图5示例了一种本发明实施例3中电子设备结构示意图,如图5所示,该电子设备可以包括:处理器(processor)510、通信接口(Communications Interface)520、存储器(memory)530和通信总线540,其中,处理器510,通信接口520,存储器530通过通信总线540完成相互间的通信。处理器510可以调用存储器530中的逻辑指令,以执行本发明一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法,该方法包括:获取待识别的人眼图像;Figure 5 illustrates a schematic structural diagram of an electronic device in Embodiment 3 of the present invention. As shown in Figure 5, the electronic device may include: a processor (processor) 510, a communications interface (Communications Interface) 520, and a memory (memory) 530 and the communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 complete communication with each other through the communication bus 540. The processor 510 can call the logical instructions in the memory 530 to execute the present invention's white eye vein feature recognition method based on the white eye viscera partitioning method. The method includes: acquiring the human eye image to be recognized;
将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;Input the human eye image to be recognized into the first network structure model, and calculate the feature point coordinate information of vein shape , color and direction in the human eye image;
对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;Classify and sort the feature point coordinate information to generate feature point data units, where the classification and sorting is based on the corresponding relationship between the feature points and the context;
通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The human eye vein characteristics corresponding to the feature point data unit are calculated through the second network structure model, and the human eye vein characteristics include blood vessel image information of color, thickness, and spots;
基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。Based on the feature point data unit and human eye vein characteristics, a first image including at least human eye vein characteristic information is generated.
此外,上述的存储器530中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logical instructions in the memory 530 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当程序指令被计算机执行时,计算机能够执行上述各实施方式中所提供的基于人眼白睛脏腑分区法的白睛脉络特征识别方法,该方法包括:获取待识别的人眼图像;On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , the computer can execute the white eye vein feature recognition method based on the viscera partitioning method of the white eye of the human eye provided in the above embodiments, the method includes: obtaining the human eye image to be recognized;
将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;Input the human eye image to be recognized into the first network structure model, and calculate the feature point coordinate information of vein shape, color and direction in the human eye image;
对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;Classify and sort the feature point coordinate information to generate feature point data units, where the classification and sorting is based on the corresponding relationship between the feature points and the context;
通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The human eye vein characteristics corresponding to the feature point data unit are calculated through the second network structure model, and the human eye vein characteristics include blood vessel image information of color, thickness, and spots;
基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。Based on the feature point data unit and human eye vein characteristics, a first image including at least human eye vein characteristic information is generated.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各提供的一种基于人眼白睛脏腑分区法的白睛脉络特征识别方法,该方法包括:获取待识别的人眼图像;On the other hand, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. The computer program is implemented when executed by a processor to execute the above-mentioned one based on the human eye white eye viscera partitioning method. A method for identifying the characteristics of white eye veins, which method includes: obtaining a human eye image to be recognized;
将所述待识别的人眼图像输入第一网状结构模型,计算人眼图像中的脉络形态、颜色与走向的特征点坐标信息;Input the human eye image to be recognized into the first network structure model, and calculate the feature point coordinate information of vein shape , color and direction in the human eye image;
对所述特征点坐标信息进行分类排序,生成特征点数据单元,所述分类排序基于特征点与所述脉络的对应关系;Classify and sort the feature point coordinate information to generate feature point data units, where the classification and sorting is based on the corresponding relationship between the feature points and the context;
通过第二网状结构模型计算所述特征点数据单元对应的人眼脉络特征,所述人眼脉络特征包括颜色、粗细、斑点的血管图像信息;The human eye vein characteristics corresponding to the feature point data unit are calculated through the second network structure model, and the human eye vein characteristics include blood vessel image information of color, thickness, and spots;
基于所述特征点数据单元及人眼脉络特征,生成至少包括人眼脉络特征信息的第一图像。Based on the feature point data unit and human eye vein characteristics, a first image including at least human eye vein characteristic information is generated.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in One location, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the part of the above technical solution that essentially contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be used Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311103068.8A CN117115899A (en) | 2023-08-28 | 2023-08-28 | Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311103068.8A CN117115899A (en) | 2023-08-28 | 2023-08-28 | Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117115899A true CN117115899A (en) | 2023-11-24 |
Family
ID=88801785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311103068.8A Pending CN117115899A (en) | 2023-08-28 | 2023-08-28 | Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117115899A (en) |
-
2023
- 2023-08-28 CN CN202311103068.8A patent/CN117115899A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113822982B (en) | Human body three-dimensional model construction method and device, electronic equipment and storage medium | |
CN108734673B (en) | Descreening systematic training method, descreening method, apparatus, equipment and medium | |
TWI786330B (en) | Image processing method, electronic device, and storage medium | |
CN109214298B (en) | Asian female color value scoring model method based on deep convolutional network | |
CN108647634A (en) | Framing mask lookup method, device, computer equipment and storage medium | |
WO2020211242A1 (en) | Behavior recognition-based method, apparatus and storage medium | |
CN110232326A (en) | A kind of D object recognition method, device and storage medium | |
CN109741268A (en) | A broken image completion method for murals | |
CN109559362B (en) | Image subject face replacing method and device | |
CN109410168A (en) | For determining the modeling method of the convolutional neural networks model of the classification of the subgraph block in image | |
CN110399888A (en) | A Go Referee System Based on MLP Neural Network and Computer Vision | |
CN108520204A (en) | A face recognition method | |
CN108022251A (en) | A kind of extracting method and system of the center line of tubular structure | |
CN112836625A (en) | Face living body detection method and device and electronic equipment | |
CN106855996A (en) | A kind of gray scale image color method and its device based on convolutional neural networks | |
CN109977832A (en) | A kind of image processing method, device and storage medium | |
CN111783593A (en) | Human face recognition method and device based on artificial intelligence, electronic equipment and medium | |
CN110008912A (en) | A social platform matching method and system based on plant identification | |
CN115880111B (en) | Image-based virtual simulation training classroom teaching management method and system | |
CN105335685A (en) | Image identification method and apparatus | |
CN109815793A (en) | Micro-expression description method, device, computer device and readable storage medium | |
CN112464924A (en) | Method and device for constructing training set | |
CN117115899A (en) | Method and device for identifying white-eye venation characteristics, computer storage medium and electronic equipment | |
CN113436125A (en) | Side-scan sonar simulation image generation method, device and equipment based on style migration | |
CN110991223B (en) | Pupil identification method and system based on transfer learning |
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 |