CN104392240A - Parasite egg identification method based on multi-feature fusion - Google Patents

Parasite egg identification method based on multi-feature fusion Download PDF

Info

Publication number
CN104392240A
CN104392240A CN201410587222.8A CN201410587222A CN104392240A CN 104392240 A CN104392240 A CN 104392240A CN 201410587222 A CN201410587222 A CN 201410587222A CN 104392240 A CN104392240 A CN 104392240A
Authority
CN
China
Prior art keywords
area
image
egg
color
target
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
Application number
CN201410587222.8A
Other languages
Chinese (zh)
Inventor
沈海默
陈韶红
陈家旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National Institute of Parasitic Diseases of Chinese Center for Disease Control and Prevention
Original Assignee
National Institute of Parasitic Diseases of Chinese Center for Disease Control and Prevention
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Institute of Parasitic Diseases of Chinese Center for Disease Control and Prevention filed Critical National Institute of Parasitic Diseases of Chinese Center for Disease Control and Prevention
Priority to CN201410587222.8A priority Critical patent/CN104392240A/en
Publication of CN104392240A publication Critical patent/CN104392240A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/752Contour matching
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/757Matching configurations of points or features

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

一种基于多特征融合的寄生虫虫卵的识别方法,包括一个对图像预处理的步骤,将显微照相设备获取的图像信息进行亮度归一化处理、基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;使用均值移位算法来对目标图片进行分割处理,获得判断为虫卵的区域;依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;截取虫卵图像的指定特征值,存入预设特征数据库的;采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入总数据库,基于KNN算法判断虫卵类别。本发明对虫卵的识别准确度超过90%,达到较理想的结果。

A method for identifying parasite eggs based on multi-feature fusion, including a step of image preprocessing, performing brightness normalization processing on the image information obtained by the micrographic equipment, sharpening processing based on Gaussian filtering, and obtaining the The image of the sharpened egg edge; use the mean shift algorithm to segment the target image to obtain the area judged as an egg; Carry out binarization processing, use the boundary tracking algorithm to acquire the target according to the boundary of the egg area, and obtain the segmented egg image; intercept the specified feature value of the egg image, and store it in the preset feature database; use the relative distance based The KNN (k=3) algorithm substitutes the obtained eigenvalues into the total database, and judges the egg category based on the KNN algorithm. The invention has an accuracy of more than 90% in identifying the eggs, achieving a relatively ideal result.

Description

一种基于多特征融合的寄生虫虫卵识别方法A method for identifying parasite eggs based on multi-feature fusion

技术领域: Technical field:

本发明属于图像识别技术领域,尤其涉及一种虫卵识别方法,具体来说是一种基于多特征融合的寄生虫虫卵的识别方法。  The invention belongs to the technical field of image recognition, and in particular relates to a method for identifying eggs, in particular to a method for identifying parasite eggs based on multi-feature fusion. the

背景技术: Background technique:

寄生虫病仍然是全球性的公共卫生问题之一,虫卵镜检是关键的防治技术之一,也是寄生虫形态特征分析和后续生物学研究的一个基础环节。寄生虫虫卵的识别无法象血细胞分析一样用自动化仪器进行,长期以来只能依赖人眼在显微镜下进行观察分辨。但在众多的寄生虫样本中对不同的虫卵进行鉴别是一项既繁琐的工作,同时还需要对技术人员进行专门的培训。目前采用标本人工涂片后在显微镜下肉眼辨别的方法,不仅操作繁琐、识别误差随检验人员的经验和状态而异,而且缺乏客观性和精确性,检验标本图像、数据和结果不便于存储、重现和检索,不能适应现代医疗信息化发展的需求。因此,有必要借助计算机技术来协助进行寄生虫虫卵的识别。  Parasitic diseases are still one of the global public health problems. Microscopic examination of worm eggs is one of the key control techniques, and it is also a basic link in the analysis of parasite morphological characteristics and subsequent biological research. The identification of parasite eggs cannot be carried out with automated instruments like blood cell analysis. For a long time, it has only relied on human eyes to observe and distinguish under a microscope. However, identifying different eggs among numerous parasite samples is a cumbersome task and requires specialized training for technicians. At present, the method of manually smearing specimens and visually identifying them under a microscope is not only cumbersome to operate, and the recognition error varies with the experience and status of the inspectors, but also lacks objectivity and accuracy, and the images, data and results of the inspection specimens are not easy to store. Reproduction and retrieval cannot meet the needs of the development of modern medical information. Therefore, it is necessary to use computer technology to assist in the identification of parasite eggs. the

1995年大连理工大学电子系的孔祥维开展了显微镜下蠕虫卵微机检测与识别系统的研究,正确识别率接近92.3%。1997年赵亚娥也开展了针对10种寄生虫虫卵图像的自动识别研究,提取了虫卵区域的周长、面积、圆形度和密度四个特征进行了识别,识别正确率达到了92%。中山大学傅承彬等2002年开发出对7种吸虫成虫标本并提取相应的13个形态学特征进行识别分类,识别准确率达89.04%。但图像需要用利用Photoshop、AutoCAD、等进行预处理。2004年郭晓敏利用小波分类提取了虫卵图像的小波变化系数特征,并选用了概率神经网络来对虫卵进行了分类。2005年李俊峰利用树型分层原理结合最小距离分类原则、Bayes判别准则和人工神经网络等构建分类器进行识别,正确率达到94.91%。2005年湖南大学的彭社欣开发寄生虫识别系统,识别率可达到93.0%。2007年罗泽举、宋丽红等人提出一种新型图像特征提取方法并且采用SVM对血吸虫等九种寄生虫虫卵图片实现自动识别和分类,识别率达到93.9%。  In 1995, Kong Xiangwei from the Department of Electronics of Dalian University of Technology carried out research on the microcomputer detection and recognition system of worm eggs under a microscope, and the correct recognition rate was close to 92.3%. In 1997, Zhao Ya'e also carried out research on the automatic recognition of 10 parasite egg images, extracted four features of the egg area's perimeter, area, circularity and density for recognition, and the recognition accuracy rate reached 92%. In 2002, Fu Chengbin of Sun Yat-Sen University and others developed a method to identify and classify 7 kinds of trematode adult specimens and extract corresponding 13 morphological features, with an identification accuracy rate of 89.04%. But the image needs to be preprocessed by using Photoshop, AutoCAD, etc. In 2004, Guo Xiaomin used wavelet classification to extract the wavelet variation coefficient feature of insect egg images, and selected probabilistic neural network to classify insect eggs. In 2005, Li Junfeng used the principle of tree layering combined with the principle of minimum distance classification, Bayes discriminant criterion and artificial neural network to build a classifier for identification, and the correct rate reached 94.91%. In 2005, Peng Shexin of Hunan University developed a parasite identification system, and the identification rate can reach 93.0%. In 2007, Luo Zeju, Song Lihong and others proposed a new image feature extraction method and used SVM to automatically recognize and classify nine kinds of parasite egg pictures such as schistosomiasis, and the recognition rate reached 93.9%. the

在国外,1996年丹麦哥本哈根兽医实验室Sommer C.利用计算其傅里叶变换的振幅进行分类,准确识别率为81.5%;Sommer C.于1998年提取了三种牛线虫虫卵图像的大小、纹理和形状特征用于分类识别,使得平均正确识别率达到91.2%;1999年韩国首尔国立大学Yang ySll31等人采用7种共52张人体寄生虫虫卵图像,并利用人工神经网络识别方法对提取的4种形态学特征进行分类检测和识别,识别准确率达到86 %。Yang等于2001年增加了虫卵的种类和图片数量,并利用上述方法进行分类检测和识别后得到的正确识别率提高到90.3%。2000年希腊雅典国家科技大学的G.Theodoropoulos[141等人对寄生于家畜中的五种线虫幼虫图像进行数字图像识别处理,提取的7个有效特征参数进行分类,正确识别率为91.9%。2007年巴西圣保罗大学的Jane S.Fraga等人利用Bayes分类器实现了对家禽感染寄生虫的识别,识别率达到85.75%。同年苏丹的S.Raviraja运用统计学的方法来分类感染疟疾病原体的血液图片的分类。  In foreign countries, in 1996, Sommer C. of Copenhagen Veterinary Laboratory in Denmark used to calculate the amplitude of its Fourier transform to classify, and the accurate recognition rate was 81.5%; Sommer C. extracted the size, Texture and shape features are used for classification and recognition, making the average correct recognition rate reach 91.2%. In 1999, Yang ySll31 of Seoul National University in Korea and others used 7 kinds of 52 human parasite egg images, and used artificial neural network recognition method to extract The four morphological features are classified, detected and recognized, and the recognition accuracy rate reaches 86%. Yang et al. increased the types of eggs and the number of pictures in 2001, and used the above method to classify, detect and identify, and the correct recognition rate was increased to 90.3%. In 2000, G. Theodoropoulos[141] of the National University of Science and Technology in Athens, Greece carried out digital image recognition processing on the images of five kinds of nematode larvae parasitizing in domestic animals, extracted 7 effective feature parameters for classification, and the correct recognition rate was 91.9%. In 2007, Jane S. Fraga and others at the University of Sao Paulo in Brazil used a Bayes classifier to realize the identification of poultry infection parasites, and the identification rate reached 85.75%. In the same year, Sudan's S. Raviraja used statistical methods to classify the classification of blood pictures infected with malaria pathogens. the

虽然国内外有关研究人员都在尝试利用计算机进行寄生虫病原体的自动识别研究,但利用计算机对寄生虫卵图像进行自动识别仍有不少困难,主要体现在以下几方面:  Although relevant researchers at home and abroad are trying to use computers to automatically identify parasite pathogens, there are still many difficulties in using computers to automatically identify parasite egg images, which are mainly reflected in the following aspects:

a)寄生虫的种类多,使得在图像预处理时很难找到能适合所有虫卵的方法,寄生虫卵的形态颜色各异,使得选取区分各种虫卵的特征很困难;  a) There are many types of parasites, making it difficult to find a method suitable for all eggs during image preprocessing, and the shapes and colors of parasite eggs are different, making it difficult to select the characteristics to distinguish various eggs;

b)由于图像拍摄装置的差异、拍摄环境的不同,即使是同一种虫卵,拍摄出来的图像在背景和虫卵本身的颜色等方面也可能存在差异,这也会影响识别效果;  b) Due to differences in image capture devices and shooting environments, even if it is the same kind of eggs, the captured images may have differences in the background and the color of the eggs themselves, which will also affect the recognition effect;

c)寄生虫卵本身在不同的时期也会有不同的形态,有的甚至相差很大,如蛔虫卵在未受精未脱蛋白膜时期和已受精已脱蛋白膜时期就明显不同。  c) The parasite eggs themselves have different shapes at different stages, and some even have great differences. For example, roundworm eggs are obviously different in the stage of unfertilized and non-deproteinized membranes and the stage of fertilized and deproteinized membranes. the

从现有研究资料看,我国外开展寄生虫虫卵数字图像自动识别研究不到十五年,远未达到临床应用或自动化仪器识别的程度,带有浓厚的“纯研究”色彩,问题主要表现在以下三个方面:  Judging from the existing research data, it has been less than fifteen years since the research on the automatic recognition of digital images of parasite eggs has been carried out in China, and it is far from reaching the level of clinical application or automatic instrument recognition. It has a strong color of "pure research". in the following three areas:

a)能够识别的种类较少,往往局限于某几种、某类虫卵或成虫的实验室研究,适应面太窄的系统在临床上应用价值不高。  a) There are few species that can be identified, and they are often limited to laboratory research on certain types, eggs or adults of a certain type, and systems with too narrow a scope of application are not of high clinical application value. the

b)识别系统处理过程中需要人工干预的部分多,如有的识别系统需要先用通用软件测量出特征参数并录入数据库后再调用出来进行分类识别,并非一体化的识别系统;有的系统需要用鼠标选定目标或确定边界跟踪分割的起始点,离声称的“自动”识别距离甚远。  b) There are many parts that require manual intervention in the processing of the recognition system. For example, some recognition systems need to use general-purpose software to measure characteristic parameters and enter them into the database before calling them for classification and recognition. It is not an integrated recognition system; some systems require Using the mouse to select the target or determine the starting point of the boundary tracking segmentation is far from the claimed "automatic" recognition. the

c)提取的图像特征不能准确的反映图像特点,使各种识别对象的特征值范围重叠较多,不得不采用复杂度很大的分类算法来提高识别率,与目前医院使用的五分类血细胞分析仪的高效运行相比,国外最快识别处理时间为15s的系统还是有待于提高。  c) The extracted image features cannot accurately reflect the image characteristics, so that the feature value ranges of various recognition objects overlap more, and a complex classification algorithm has to be used to improve the recognition rate, which is different from the five-class blood cell analysis currently used in hospitals. Compared with the high-efficiency operation of the instrument, the fastest recognition processing time of 15s in foreign systems still needs to be improved. the

所以,开发研究一种能适应常见人体寄生虫虫卵识别分类、各种识别处理步骤一体化及处理速度较快的虫卵图像自动识别系统是很有必要的,可以适应未来自动化仪器中的临床应用。  Therefore, it is necessary to develop an automatic egg image recognition system that can adapt to the identification and classification of common human parasite eggs, integrate various identification processing steps, and have a faster processing speed, and can adapt to clinical applications in future automated instruments. application. the

发明内容: Invention content:

本发明提供了一种基于多特征融合的寄生虫虫卵的识别方法,所述的这种基于多特征融合的寄生虫虫卵的识别方法要解决现有技术中的寄生虫虫卵的识别率低,识别种类少,鉴别时间长的技术问题。  The present invention provides a method for identifying parasite eggs based on multi-feature fusion. The method for identifying parasite eggs based on multi-feature fusion needs to solve the problem of the identification rate of parasite eggs in the prior art. Low, few identification types, and long identification time technical problems. the

本发明一种基于多特征融合的寄生虫虫卵的识别方法,包括如下步骤:  A method for identifying parasite eggs based on multi-feature fusion of the present invention comprises the following steps:

a)一个对图像预处理的步骤,在所述的对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;  a) a step of preprocessing the image, in the step of preprocessing the image, performing brightness normalization processing on the image information acquired by the photomicrograph equipment, and performing grayscale processing on the normalized image, Generate a normalized grayscale image, and then perform sharpening processing on the entire image based on Gaussian filtering to obtain an image with sharpened edges of eggs;

b)一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤,在一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤中,使用均值移位算法来对目标图片进行分割处理,得到上述图像的颜色特征向量,基于颜色特征向量规划并找到最佳目标区域,获得判断为虫卵的区域;  b) A step of performing mean shift on an image with a sharpened edge of eggs to find eggs, in a step of performing mean shift on an image with sharpened edges of eggs to find eggs, using the mean shift algorithm Segment the image to obtain the color feature vector of the above image, plan and find the best target area based on the color feature vector, and obtain the area judged as an egg;

c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤,在所述的目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;  c) A step of target acquisition of the egg image based on the above-mentioned area identified as an egg, in the step of target acquisition, according to the established edge area information of the shape of the parasite egg to be identified, for each candidate Binarize the edge area of the area, use the boundary tracking algorithm to acquire the target according to the boundary of the egg area, and obtain the segmented egg image;

d)一个对分割后的虫卵图像截取指定特征值,存入预设特征数据库的步骤;  d) a step of intercepting a specified feature value from the segmented egg image and storing it in a preset feature database;

e)一个基于多种算法的分类识别的步骤,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入总数据库,基于KNN算法判断虫卵类别。  e) a step of classification recognition based on multiple algorithms, in a step of classification recognition based on multiple algorithms, using the KNN (k=3) algorithm based on relative distance, the acquired feature values are substituted into the total database, based on The KNN algorithm judges the type of eggs. the

进一步的,在一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤中,使用均值移位算法来对目标进行分割处理,在使用均值移位算法来对目标进行分割处理的过程中,先对原图像进行X×Y的划分,得到X×Y个交点,并对这些交点进行合并处理,即某两个点对应的颜色值之间的欧氏距离小于某个阈值,所述的阈值为图像亮度最高的5%像素与亮度最低的5%像素的颜色平均值,则把它们合为一个点,这样得到m个点作为初始点集合,m代表图片上X×Y共n个像素点的集合,每个像素点可以表示为自变量Xi{i=1…n},样本点平均值位移M的计算方法为:  Further, in a step of performing mean shift on an image with sharpened egg edges to find eggs, the mean shift algorithm is used to segment the target, and the mean shift algorithm is used to segment the target. In this method, the original image is first divided by X×Y to obtain X×Y intersection points, and these intersection points are merged, that is, the Euclidean distance between the color values corresponding to two points is less than a certain threshold, and the The threshold is the color average value of the 5% pixels with the highest brightness and the 5% pixels with the lowest brightness in the image, and then they are combined into one point, so that m points are obtained as the initial point set, and m represents a total of n X×Y points on the picture A collection of pixel points, each pixel point can be expressed as an independent variable Xi {i=1...n}, the calculation method of the average displacement M of the sample point is:

Mm hh ,, Uu (( xx )) == hh 22 dd ++ 22 ▿▿ ‾‾ ff EE. (( xx )) ff ‾‾ Uu (( xx ))

在图片中心选择一个初始点,在以此点为中心的窗口Sh(x)内计算平均值位移Mh,U(x),如果该值不小于某个阈值,就把窗口Sh(x)平移Mh,U(x),然后重复在新的 窗口中计算平均值位移,得到新的中心值,直到Mh,U(x)小于某个阈值,停止平移,得到一个最大局部密度位置;重复上述步骤,得到m个对应最大局部密度位置的点,并对这些点进行合并处理,得到n个聚类的中心点,即原图像的主色,针对原图像中的每个像素点,根据欧氏距离判断归到哪个聚类中,用一维直方图表示主色信息,横坐标表示各主色,纵坐标表示各主色包含的像素数的比例,这样就得到该图像的颜色特征向量:  Select an initial point in the center of the picture, calculate the average displacement M h , U (x) in the window Sh (x) centered on this point, if the value is not less than a certain threshold, put the window Sh (x ) to translate M h, U (x), and then repeatedly calculate the average displacement in a new window to obtain a new central value, until M h, U (x) is less than a certain threshold, stop the translation, and obtain a maximum local density position ; Repeat the above steps to obtain m points corresponding to the maximum local density position, and merge these points to obtain the center points of n clusters, that is, the main color of the original image. For each pixel in the original image, According to the Euclidean distance to determine which cluster to belong to, use a one-dimensional histogram to represent the main color information, the abscissa indicates each main color, and the ordinate indicates the proportion of the number of pixels contained in each main color, so that the color characteristics of the image can be obtained vector:

Q={(Pi,Wi)i=1,…,n},其中Pi=(L* i,a* i,b* i),Wi∈(0,1],上述公式中,W为比例,Pi为颜色值,与传统RGB分量表示法不同,此处颜色值用LSH分量表示法来表示,分别记为Li、ai、bi。基于颜色特征向量Q使用传统EMD算法即可规划最佳目标区域,EMD函数的公式一般形式为  Q={(P i ,W i )i=1,…,n}, where P i =(L * i ,a * i ,b * i ),W i ∈(0,1], in the above formula, W is the ratio, and P i is the color value, which is different from the traditional RGB component notation. Here, the color value is represented by the LSH component notation, which is recorded as L i , a i , and bi respectively. Based on the color feature vector Q, the traditional EMD The algorithm can plan the optimal target area, and the general form of the EMD function formula is

EMDEMD (( PP ,, QQ )) == minmin ΣΣ ii == 11 mm ΣΣ jj == 11 nno dd (( pp ii ,, qq jj )) ff ijij ΣΣ ii == 11 mm ΣΣ jj == 11 nno ff ijij

其中与预期中心点相似度EMD最高的区域就是目标区;  Among them, the area with the highest EMD similarity with the expected center point is the target area;

进一步的,在一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤中,基于上述EMD函数计算得到的目标区,即依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内。  Further, in a step of acquiring the target of the egg image based on the area identified as an egg, based on the target area calculated by the above EMD function, that is, according to the established edge area information of the shape of the parasite egg to be identified, Binarize each candidate edge area, and use the boundary tracking algorithm to acquire the target. At the beginning of the algorithm, each pixel is searched in order from top to bottom. Set the sequence array as K, and first search for the first pixel from the upper left. target pixel, set it as k0, then the pixel k0 is the boundary pixel in the upper left corner of the area, that is, the starting point of the search, set the search direction counterclockwise, search in the eight-neighborhood direction, set k0 as the tracking flag, and set k0 is inserted as the first element of the sequence array, search for the next target pixel counterclockwise, and set it to k, if not found, then k is the isolated pixel area; if k is equal to the search start boundary pixel k0, then Continue to judge in order whether there are untracked boundary pixels in other adjacent directions, if not, return to the starting point, the algorithm ends, the boundary pixels in the sequence K form a closed area, enclosing the target area. the

进一步的,在一个对分割后的虫卵图像截取指定特征值,存入预设特征数据库的步骤中,先获取虫卵图像的特征值:  Further, in a step of intercepting the specified eigenvalues of the segmented worm egg images and storing them in the preset feature database, the eigenvalues of the worm egg images are first obtained:

1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度(length)、宽度(width),长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;  1) Find the smallest square area circumscribed by the edge area, and count the number of pixels to obtain the length (length) and width (width). The length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object;

2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度(ovality),椭圆度是指目标物面积与外接椭圆的面积之比;  2) Count the pixels of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of the area to the smallest circumscribed square is the ovality. The ellipticity refers to the ratio of the area of the target to the area of the circumscribed ellipse ;

3)面积(area)是指目标物面积,周长(perimeter)是指目标物周长;  3) Area refers to the area of the target object, and perimeter refers to the perimeter of the target object;

4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度(grey)是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量(red)是指R部分的平均值;平均绿色分量(green)是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量(blue)是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度(color)是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均饱和度(saturation)是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度(bright)是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差(greyscale)是指目标物各个局部颜色的差异;颜色权重(weighted)是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;  4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale (grey) refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, and the average red component (red) refers to the average value of the R part; The average green component (green) means that the computer uses RGB combination to express the color, and the average green component refers to the average value of the G part; the average blue component (blue) refers to the computer that uses RGB combination to express the color. The average blue component refers to the average value of part B; the average chroma (color) refers to the average value of part H after converting the RGB color model to the HSL color model; the average saturation (saturation) refers to the RGB color model After the model is converted to the HSL color model, the average value of the S part; the average brightness (bright) refers to the average value of the L part after the RGB color model is converted to the HSL color model; the statistical histogram of the gray value refers to the gray value The distribution of 0 to 255 is a vector obtained by staged statistics; the grayscale standard deviation (greyscale) refers to the difference of each local color of the target object; the color weight (weighted) refers to the color expression of the computer using the RGB combination method. The ratio of the average chromaticity to the position coordinates automatically generated by the pixel position, this value is only used for error correction and does not participate in the calculation;

5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法。  5) After obtaining the feature values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. the

进一步的,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN算法,所述的KNN算法的步骤如下:  Further, in a step of classification recognition based on multiple algorithms, the KNN algorithm based on relative distance is adopted, and the steps of the KNN algorithm are as follows:

首先为避免由于属性值域不同而影响样本距离的计算,特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i]-Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪Cr;  First of all, in order to avoid the calculation of sample distance due to different attribute value ranges, each sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], Then use the formula X[i]=(X[i]-Mini[i])/(Max[i]-Min[i]) to carry out the normalization operation. After the normalization of each attribute of the sample, its value range is [0 ,1], and then construct a data set D={X1,…,XL} according to the eigenvalue database, where X i ∈ R n , i=1…L; let the samples have ClassNum classes in total; let C i represent the i-th class The set of all samples of , and C i ∩C j =Ф(i, j=1,...,ClassNum), the sample set can also be expressed as: D=C 1 ∪C 2 ∪…∪C r ;

设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:  Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is:

DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22

测试样本中第i类的K-最近邻距离均值为:  The average K-nearest neighbor distance of the i-th class in the test sample is:

AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum

Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈Ci;  K i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ;

在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);  When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n);

此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。  Here the s function is constructed as follows: Let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be taken to the maximum value, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. the

进一步的,在使用均值移位算法对目标进行分割处理之前,图片需要预先计算彩色直方图。  Furthermore, before using the mean shift algorithm to segment the target, the picture needs to pre-calculate the color histogram. the

进一步的,如因过度归一化等问题造成图像出现断点,导致遗失边界点无法构建区域框或区域像素集合,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。  Further, if there are breakpoints in the image due to problems such as over-normalization, resulting in the loss of boundary points and the inability to construct a region frame or a region pixel set, the region growing algorithm is used to make up for it. The specific steps of the region growing algorithm are: first For each region that needs to be segmented, find a seed pixel as the starting point of growth, and then merge the pixels with the same or similar properties as the seed pixel in the neighborhood around the seed pixel into this region, and use these new pixels as a new seed Pixels continue the above process until no more pixels satisfying the condition can be included. the

进一步的,所述的寄生虫为华支睾吸虫、带绦虫、鞭虫、蛲虫、蛔虫、钩虫、阔节裂头绦虫、日本血吸虫、布氏姜片吸虫、肺吸虫、或者曼氏迭宫绦虫。  Further, the parasite is Clonorchis sinensis, Taenia solium, whipworm, pinworm, roundworm, hookworm, Schizocephalon lacunae, Schistosoma japonicum, Fasciola brucei, Lung fluke, or Streptomyces mansoni tapeworm. the

进一步的,所述的待识别图具有旋转不变性、对光照无差异、对个体无差异。  Further, the image to be recognized has rotation invariance, no difference in illumination, and no difference in individuals. the

具体的,所述的特征数据库是指图像虫卵部分的特征值,如长度(length)、宽度(width)、椭圆度(ovality)、面积(area)、周长(perimeter)、平均灰度(grey)、平均红色分量(red)、平均绿色分量(green)、平均蓝色分量(blue)、平均色度(color)、 平均饱和度(saturation)、平均亮度(bright)、灰度标准差(greyscale)、颜色权重(weighted),数据库格式参见附表。  Specifically, the feature database refers to feature values of the egg part of the image, such as length (length), width (width), ellipticity (ovality), area (area), perimeter (perimeter), average gray scale ( gray), average red component (red), average green component (green), average blue component (blue), average chroma (color), average saturation (saturation), average brightness (bright), gray standard deviation ( greyscale), color weights (weighted), see the attached table for the database format. the

具体的,所述的总数据库是指由已知参数的寄生虫特征数据库组成的总库。  Specifically, the total database refers to a total database composed of parasite characteristic databases with known parameters. the

本发明还提供了一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于包括如下步骤:  The present invention also provides a method for identifying parasite eggs based on multi-feature fusion, which is characterized in that it comprises the following steps:

a)一个对图像预处理的步骤,在一个对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;  a) A step of image preprocessing, in which the image information obtained by the photomicrograph equipment is subjected to brightness normalization processing, and the normalized image is grayscaled to generate a normalized image. First convert the grayscale image, and then perform sharpening processing based on Gaussian filtering on the entire image to obtain an image with sharpened edges of eggs;

b)一个采用人工辅助识别寻找虫卵的步骤,在一个采用人工辅助识别寻找虫卵的步骤中,采用增强Grab Cut法对虫卵边缘锐化的图像进行分割,用户提供限定方框进行人工支持,得到虫卵图像的颜色特征向量,基于颜色特征向量规划并找到最佳目标区域,得到判断为虫卵的区域;  b) A step of finding eggs using artificially assisted recognition. In a step of finding eggs using artificially assisted recognition, the enhanced Grab Cut method is used to segment the edge-sharpened images of eggs, and the user provides a limited box for manual support. , get the color feature vector of the egg image, plan and find the best target area based on the color feature vector, and get the area judged as the egg;

c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤,在进行目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;  c) A step of performing target acquisition on the egg image based on the above-mentioned area identified as an egg, in the step of target acquisition, according to the established edge area information of the shape of the parasite egg to be identified, for each candidate edge The area is binarized, and the boundary tracking algorithm is used to obtain the target according to the boundary of the egg area, and the segmented egg image is obtained;

d)一个对分割后的虫卵图像截取指定特征值并存入预设特征数据库的步骤;  d) a step of intercepting a specified feature value from the segmented egg image and storing it in a preset feature database;

e)一个基于多种算法的分类识别的步骤,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入由11种寄生虫特征数据库组成的总数据库,基于KNN算法判断虫卵类别。  e) A step of classification and recognition based on multiple algorithms, in a step of classification and recognition based on multiple algorithms, using the KNN (k=3) algorithm based on relative distance, and substituting the acquired eigenvalues into the 11 kinds of parasitic The total database composed of the insect characteristic database is based on the KNN algorithm to judge the type of insect eggs. the

进一步的,在一个采用人工辅助识别寻找虫卵的步骤中,采用增强Grab Cut法对虫卵边缘锐化的图像进行分割,用户提供限定方框进行人工支持,方框以外的部分不处理,用户通过设置背景区域TB来初始化三分图T,前景区域TF设置为空,未知区域TU设置为背景区域TB的补集,对于所有背景区域的像素,将它们的Alpha值设置为0,即a=0;对于未知区域的像素点,将它们的Alpha值设置为1,即a=1,分别用a=0和a=1这两个集合来初始化创建前景与背景的高斯混合模型,为未知区域中的每个像素点n设置高斯混合模型参数:  Further, in a step of using artificially assisted recognition to find eggs, the enhanced Grab Cut method is used to segment the image with edge sharpening of eggs, and the user provides a limited box for manual support, and the parts outside the box are not processed, and the user The trimap T is initialized by setting the background area TB, the foreground area TF is set to be empty, and the unknown area TU is set as the complement of the background area TB. For all pixels in the background area, their Alpha values are set to 0, that is, a = 0; for the pixels in the unknown area, set their Alpha value to 1, that is, a=1, and use the two sets of a=0 and a=1 to initialize the Gaussian mixture model of creating the foreground and background, for the unknown area Set the parameters of the Gaussian mixture model for each pixel n in:

kn=arg min Dn(an,kn,θ,Zn),  kn=arg min Dn(a n , k n , θ, Z n ),

由图像中各个像素的数据求得高斯混和模型参数  Gaussian mixture model parameters are obtained from the data of each pixel in the image

θ=arg min U(a,kn,θ,Zn),  θ = arg min U(a, k n , θ, Z n ),

利用最小化能量公式来得到初始分割:  Use the minimized energy formula to get the initial split:

mink E(a,kn,θ,Zn),  min k E(a, k n , θ, Z n ),

重复执行3次,进行边界优化。  Repeat 3 times for boundary optimization. the

进一步的,基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内。  Further, in the step of acquiring the target of the egg image based on the above-mentioned area identified as an egg, according to the established edge area information of the shape of the parasite egg to be identified, binarization is performed on each candidate edge area, The boundary tracking algorithm is used for target acquisition. At the beginning of the algorithm, each pixel is searched in order from top to bottom, and the sequence array is set to K. First, the first target pixel is searched from the upper left, which is set to k0, and the pixel k0 is The boundary pixel in the upper left corner of the area is the starting point of the search. Set the search direction to counterclockwise, search in the eight-neighborhood direction, set k0 as the tracking flag, and insert k0 as the first element of the sequence array, press Search the next target pixel counterclockwise and set it to k. If it cannot be found, then k is an isolated pixel area; if k is equal to the search start boundary pixel k0, continue to judge whether there are untracked in other adjacent directions in order If there is no border pixel, it has returned to the starting point, and the algorithm ends, and the border pixels in the sequence K form a closed area, enclosing the target area. the

进一步的,在一个对获取目标截取指定特征值存入特征数据库的步骤中,先获取虫卵图像的特征值:  Further, in a step of storing the specified eigenvalues of the obtained target interception into the feature database, the eigenvalues of the worm egg image are obtained first:

1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度(length)、宽度(width),长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;  1) Find the smallest square area circumscribed by the edge area, and count the number of pixels to obtain the length (length) and width (width). The length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object;

2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度(ovality),椭圆度是指目标物面积与外接椭圆的面积之比;  2) Count the pixels of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of the area to the smallest circumscribed square is the ovality. The ellipticity refers to the ratio of the area of the target to the area of the circumscribed ellipse ;

3)面积(area)是指目标物面积,周长(perimeter)是指目标物周长;  3) Area (area) refers to the area of the target object, and perimeter (perimeter) refers to the circumference of the target object;

4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度(grey)是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量(red)是指R部分的平均值;平均绿色分量(green)是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量(blue)是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度(color)是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均 饱和度(saturation)是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度(bright)是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差(greyscale)是指目标物各个局部颜色的差异;颜色权重(weighted)是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;  4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale (grey) refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, and the average red component (red) refers to the average value of the R part; The average green component (green) means that the computer uses RGB combination to express the color, and the average green component refers to the average value of the G part; the average blue component (blue) refers to the computer that uses RGB combination to express the color. The average blue component refers to the average value of part B; the average chroma (color) refers to the average value of part H after converting the RGB color model to the HSL color model; the average saturation (saturation) refers to the RGB color model After the model is converted to the HSL color model, the average value of the S part; the average brightness (bright) refers to the average value of the L part after the RGB color model is converted to the HSL color model; the statistical histogram of the gray value refers to the gray value The distribution of 0 to 255 is a vector obtained by staged statistics; the grayscale standard deviation (greyscale) refers to the difference of each local color of the target object; the color weight (weighted) refers to the color expression of the computer using the RGB combination method. The ratio of the average chromaticity automatically generated by the pixel position to the position coordinates, this value is only used for error correction and does not participate in the calculation;

5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法。  5) After obtaining the feature values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. the

进一步的,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN算法,KNN算法的步骤如下:  Further, in a step of classification recognition based on multiple algorithms, a KNN algorithm based on relative distance is adopted, and the steps of the KNN algorithm are as follows:

首先为避免由于属性值域不同而影响样本距离的计算,特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i]-Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪Cr;  First of all, in order to avoid the calculation of sample distance due to different attribute value ranges, each sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], Then use the formula X[i]=(X[i]-Mini[i])/(Max[i]-Min[i]) to carry out the normalization operation. After the normalization of each attribute of the sample, its value range is [0 ,1], and then construct a data set D={X1,…,XL} according to the eigenvalue database, where X i ∈ R n , i=1…L; let the samples have ClassNum classes in total; let C i represent the i-th class The set of all samples of , and C i ∩C j =Ф(i, j=1,...,ClassNum), the sample set can also be expressed as: D=C 1 ∪C 2 ∪…∪C r ;

设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:  Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is:

DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22

测试样本中第i类的K-最近邻距离均值为:  The average K-nearest neighbor distance of the i-th class in the test sample is:

AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum

Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈Ci;  K i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ;

在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);  When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n);

此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。  Here the s function is constructed as follows: Let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be taken to the maximum value, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. the

进一步的,如因过度归一化等问题造成图像出现断点,导致遗失边界点,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。  Further, if there are breakpoints in the image due to problems such as over-normalization, resulting in the loss of boundary points, the region growing algorithm is used to make up for it. The specific steps of the region growing algorithm are: first find each region that needs to be segmented. A seed pixel is used as the starting point of growth, and then the pixels with the same or similar properties as the seed pixel in the neighborhood around the seed pixel are merged into this area, and these new pixels are regarded as new seed pixels to continue the above process until No more pixels satisfying the condition can be included. the

进一步的,所述的寄生虫为华支睾吸虫、带绦虫、鞭虫、蛲虫、蛔虫、钩虫、阔节裂头绦虫、日本血吸虫、布氏姜片吸虫、肺吸虫、或者曼氏迭宫绦虫。  Further, the parasite is Clonorchis sinensis, Taenia solium, whipworm, pinworm, roundworm, hookworm, Schizocephalon lacunae, Schistosoma japonicum, Fasciola brucei, Lung fluke, or Streptomyces mansoni tapeworm. the

进一步的,所述的待识别图具有有旋转不变性、对光照无差异、对个体无差异。  Further, the image to be recognized has rotation invariance, no difference to illumination, and no difference to individuals. the

本发明提供一个全自动将虫卵从待识别图像中分割出来的技术来获取特征值。由于寄生虫虫卵的不规则的形态结构、空间方位和标本杂质较多等原因,全自动识别难度大,本发明同时提供了基于Grab Cut数字抠图方法的人工辅助手段。由于本发明的难点在于自动从虫卵图片中分割出目标物,所以要求系统对输入图像具有旋转不变性(即对拍摄角度不敏感),对光照差异、个体差异具有较强的适应性,对虫卵种类具有可扩展性。  The present invention provides a fully automatic technology for segmenting insect eggs from images to be identified to obtain feature values. Due to the irregular morphological structure, spatial orientation, and many impurities in the specimens of the parasite eggs, it is difficult to fully automatically identify them. The present invention also provides artificial assistance means based on the Grab Cut digital map-matching method. Since the difficulty of the present invention is to automatically segment the target object from the egg picture, the system is required to have rotation invariance to the input image (that is, it is not sensitive to the shooting angle), and it has strong adaptability to illumination differences and individual differences. Egg types are scalable. the

人体寄生虫可分为单细胞的原虫(protozoon)、多细胞的蠕虫(helminth)和节肢动物(arthorpod)三大类,而我国常见的主要是十多种蠕虫,又主要分为线虫(nematode)、I吸虫(trematode)和绦虫(eestode)和棘头虫(aeanthocphala)四类。本发明以华支睾吸虫、带绦虫、鞭虫、蛲虫、蛔虫、钩虫、阔节裂头绦虫、日本血吸虫、布氏姜片吸虫、肺吸虫、曼氏迭宫绦虫等11种我国常见人体寄生虫虫卵为预定的识别对象。  Human parasites can be divided into three categories: single-celled protozoons, multicellular worms (helminth) and arthropods (arthorpods). In my country, there are mainly more than ten kinds of worms, which are mainly divided into nematodes. , I fluke (trematode) and tapeworm (eestode) and acanthocphala (aeanthocphala) four categories. The present invention uses 11 kinds of common human body such as Clonorchis sinensis, tapeworm, whipworm, pinworm, roundworm, hookworm, Schizophrenia ladenum, Schistosoma japonicum, Fasciola brucei, Paragonimia, and Diagonal mansoni. The eggs of parasites are the intended identification objects. the

本发明提供了一个基于KNN算法的虫卵分类器,利用特征值分类。随着计算机视觉与各种先进医疗成像设备的不断发展,单一的图像特征很难全面、精确地表达医学图像的内容,多特征融合已成为提取医学图像有效特征的必然途径。在尽量保留原始信息的基础上,克服了原始数据量大而不稳定的特点,提取的融合特征可以有效地用于图像识别。人体寄生虫的识别取决于虫卵的形状、大小、内含物、颜色和特殊结构(如卵壳厚薄、特异形态)等特征。本发明将上述视觉特征转化为可通过相关算法定量提取的周长、面积、圆形度、颜色和纹理15个分类特征。  The invention provides a KNN algorithm-based insect egg classifier, which utilizes feature values to classify. With the continuous development of computer vision and various advanced medical imaging equipment, a single image feature is difficult to fully and accurately express the content of medical images, and multi-feature fusion has become an inevitable way to extract effective features of medical images. On the basis of retaining the original information as much as possible, it overcomes the large and unstable characteristics of the original data, and the extracted fusion features can be effectively used for image recognition. The identification of human parasites depends on the shape, size, content, color and special structure (such as egg shell thickness, specific shape) and other characteristics of eggs. The present invention converts the above-mentioned visual features into 15 classification features of perimeter, area, circularity, color and texture that can be quantitatively extracted by correlation algorithms. the

本发明和已有技术相比,其技术效果是明显的。(1)本系统能够对图片的旋转不敏感(即对拍摄角度不仅敏感),对光照差异、虫卵个体差异有一定的容忍度;(2)在数学 特征提取阶段,本系统紧密结合了虫卵的生物学特征,具有很强的针对性,较高的区分度,从而识别更加准确;(3)本系统提供了全自动分割和半自动分割两种选择,其中半自动分割算法对复杂背景的虫卵图像具有很好的适应性;全自动分割具有很高的自动化程度,对后续的自动测试、统计、分析等工作提供了便捷。(4)本系统目前对11中虫卵的识别准确度超过90%,达到较理想的结果。  Compared with the prior art, the present invention has obvious technical effects. (1) The system is not sensitive to the rotation of the picture (that is, it is not only sensitive to the shooting angle), but also has a certain tolerance to the difference in illumination and the individual difference of eggs; (2) In the stage of mathematical feature extraction, the system closely combines the The biological characteristics of the eggs are highly targeted and highly differentiated, so that the identification is more accurate; (3) The system provides two options: automatic segmentation and semi-automatic segmentation, and the semi-automatic segmentation algorithm is more accurate for insects with complex backgrounds. Egg images have good adaptability; fully automatic segmentation has a high degree of automation, which provides convenience for subsequent automatic testing, statistics, analysis and other work. (4) The recognition accuracy of 11 kinds of insect eggs by this system is more than 90%, achieving a relatively ideal result. the

附图说明: Description of drawings:

图1是基于全自动分割的虫卵图像识别流程。  Figure 1 is the process of egg image recognition based on automatic segmentation. the

图2是边缘锐化后的图片。  Figure 2 is the picture after edge sharpening. the

图3是基于均值位移算法找到目标区域并计算区域框。  Figure 3 is based on the mean shift algorithm to find the target area and calculate the area box. the

图4是基于目标区域和边界跟踪算法提取目标。  Figure 4 is based on the target area and boundary tracking algorithm to extract the target. the

图5是特征值数据库结构和采集用例。  Figure 5 is the feature value database structure and collection use case. the

图6是基于人工辅助的虫卵图像识别流程。  Fig. 6 is the flow chart of insect egg image recognition based on artificial assistance. the

图7是边缘锐化后的图片。  Figure 7 is a picture after edge sharpening. the

图8是基于Grab Cut法的人工画框辅助分割。  Figure 8 is an artificial frame-assisted segmentation based on the Grab Cut method. the

图9是基于人工辅助和边界跟踪算法提取目标。  Figure 9 is based on artificial assistance and boundary tracking algorithm to extract the target. the

图10是特征值数据库结构和采集用例。  Figure 10 is the feature value database structure and collection use case. the

具体实施方式: Detailed ways:

下述实施例采用的是一个血吸虫卵的血液涂片的显微照片。  The following examples use photomicrographs of a blood smear of Schistosoma japonicum eggs. the

实施例1  Example 1

一种基于多特征融合的寄生虫虫卵的全自动识别方法,包括如下流程(流程图见图1):  A fully automatic identification method based on multi-feature fusion of parasite eggs, including the following process (see Figure 1 for the flow chart):

a)一个对图像预处理的步骤,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;  a) A step of image preprocessing, which is to normalize the brightness of the image information obtained by the photomicrograph equipment, and to grayscale the normalized image to generate a normalized grayscale image, and then to normalize the whole The sharpening process based on Gaussian filtering is performed on the picture to obtain the sharpened image of the egg edge;

b)一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤,使用均值移位算法来对目标图片进行分割处理,得到该图像的颜色特征向量,基于颜色向量规划并找到最佳目标区域,得到判断为虫卵的区域;  b) A step of performing mean shift on the image with sharpened egg edges to find the eggs, using the mean shift algorithm to segment the target image, obtaining the color feature vector of the image, planning and finding the best color vector based on the color vector The target area is the area judged to be an egg;

c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤。基于上述形状分割信息,即依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候 选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;  c) A step of performing target acquisition on the egg image based on the region identified as the egg. Based on the above shape segmentation information, that is, according to the established edge area information of the shape of parasite eggs to be identified, binary processing is performed on each candidate edge area, and the boundary tracking algorithm is used to obtain the target according to the boundary of the egg area. Obtain the segmented worm egg image;

d)一个对分割后的虫卵图像截取指定特征值,存入预设特征数据库的步骤;  d) a step of intercepting a specified feature value from the segmented egg image and storing it in a preset feature database;

e)一个基于多种算法的分类识别的步骤,在本发明所述的一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入包含11种寄生虫特征数据库的总数据库,基于KNN算法判断虫卵类别;  e) a step of classification recognition based on multiple algorithms, in the step of classification recognition based on multiple algorithms according to the present invention, the KNN (k=3) algorithm based on relative distance is adopted to convert the acquired eigenvalues Substitute into the total database containing 11 kinds of parasite characteristic databases, and judge the type of eggs based on the KNN algorithm;

进一步的,在所述的对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像(用例图见图2);  Further, in the step of preprocessing the image, the image information acquired by the photomicrograph equipment is subjected to brightness normalization processing, and the normalized image is grayscaled to generate a normalized grayscale image , and then perform sharpening processing based on Gaussian filtering on the entire picture to obtain an image with sharpened edges of eggs (see Figure 2 for the use case diagram);

进一步的,一个对虫卵边缘锐化的图像进行均值移位的步骤,在一个对虫卵边缘锐化的图像进行均值移位的步骤中,使用均值移位算法来对目标进行分割处理,在使用均值移位算法来对目标进行分割处理的过程中,先对原图像进行X×Y的划分,得到X×Y个交点,并对这些交点进行合并处理,即某两个点对应的颜色值之间的欧氏距离小于某个阈值(为保证软件运行速度,本发明中此阈值定义为图像亮度最高的5%像素与亮度最低的5%像素的颜色平均值),则把它们合为一个点,这样得到m个点作为初始点集合,m代表图片上X×Y共n个像素点的集合,每个像素点可以表示为自变量Xi{i=1…n},样本点平均值位移M的计算方法为:  Further, a step of performing mean shift on the image with edge sharpening of worm egg, in a step of performing mean shift on the image with edge sharpening of worm egg, using mean shift algorithm to segment the target, in In the process of using the mean shift algorithm to segment the target, the original image is first divided into X×Y to obtain X×Y intersection points, and these intersection points are merged, that is, the color values corresponding to two points The Euclidean distance between them is less than a certain threshold (in order to ensure the software running speed, this threshold is defined as the color average value of the 5% pixels with the highest image brightness and the 5% pixels with the lowest brightness in the present invention), then they are combined into one Points, so that m points are obtained as the initial point set, m represents the set of n pixels X×Y on the picture, and each pixel point can be expressed as an independent variable X i {i=1...n}, the average value of the sample points The calculation method of displacement M is:

Mm hh ,, Uu (( xx )) == hh 22 dd ++ 22 ▿▿ ‾‾ ff EE. (( xx )) ff ‾‾ Uu (( xx ))

在图片中心选择一个初始点,在以此点为中心的窗口Sh(x)内计算平均值位移Mh,U(x),如果该值不小于某个阈值,就把窗口Sh(x)平移Mh,U(x),然后重复在新的窗口中计算平均值位移,得到新的中心值,直到Mh,U(x)小于某个阈值,停止平移,得到一个最大局部密度位置;重复上述步骤,得到m个对应最大局部密度位置的点,并对这些点进行合并处理,得到n个聚类的中心点,即原图像的主色,针对原图像中的每个像素点,根据欧氏距离判断归到哪个聚类中,用一维直方图表示主色信息,横坐标表示各主色,纵坐标表示各主色包含的像素数的比例,这样就得到该图像的颜色特征向量:  Select an initial point in the center of the picture, calculate the average displacement M h , U (x) in the window Sh (x) centered on this point, if the value is not less than a certain threshold, put the window Sh (x ) to translate M h, U (x), and then repeatedly calculate the average displacement in a new window to obtain a new center value, until M h, U (x) is less than a certain threshold, stop the translation, and obtain a maximum local density position ; Repeat the above steps to obtain m points corresponding to the maximum local density position, and merge these points to obtain the center points of n clusters, that is, the main color of the original image. For each pixel in the original image, According to the Euclidean distance to determine which cluster to belong to, use a one-dimensional histogram to represent the main color information, the abscissa indicates each main color, and the ordinate indicates the proportion of the number of pixels contained in each main color, so that the color characteristics of the image can be obtained vector:

P={(Pi,Wi)i=1,…,n},其中Pi=(L* i,a* i,b* i),Wi∈(0,1]。  P={(P i ,W i )i=1,...,n}, where P i =(L * i ,a * i ,b * i ),W i ∈(0,1].

基于颜色向量p和q规划最佳目标区域,公式为  Plan the optimal target area based on the color vectors p and q, the formula is

EMDEMD (( PP ,, QQ )) == minmin ΣΣ ii == 11 mm ΣΣ jj == 11 nno dd (( pp ii ,, qq jj )) ff ijij ΣΣ ii == 11 mm ΣΣ jj == 11 nno ff ijij

其中与预期中心点相似度EMD最高的区域就是目标区(用例图见图3)。  Among them, the area with the highest EMD similarity with the expected central point is the target area (see Figure 3 for the use case diagram). the

传统上图像分割主要包括并行边界分割、串行边界分割、并行区域分割和串行区域分割四类。过往研究指出并行边界分割对于灰度均匀变化的图像不适用,而串行区域分割算法(主要有区域生长法和松弛迭代法)虽然很热门,但一般认为其计算量较大,不符合本发明的限定条件。闭值分割的需要先设置一个阈值,然后把图像中的像素点和闽值相比较,把像素划分为目标和背景并加以分割。但在寄生虫虫卵检测照片中,由于杂质的污染,目标与背景之间由自然形成的灰度差不能满足分割的要求。  Traditionally, image segmentation mainly includes four categories: parallel boundary segmentation, serial boundary segmentation, parallel region segmentation and serial region segmentation. Previous studies have pointed out that parallel boundary segmentation is not suitable for images with uniform grayscale changes, while serial region segmentation algorithms (mainly region growing method and relaxation iteration method) are very popular, but it is generally considered that the calculation amount is large, which is not in line with the present invention the limiting conditions. Closed value segmentation needs to set a threshold first, then compare the pixels in the image with the threshold, divide the pixels into target and background and segment them. However, in the detection photos of parasite eggs, due to the pollution of impurities, the naturally formed gray level difference between the target and the background cannot meet the segmentation requirements. the

而均值移位算法能够在寄生虫虫卵图片这类复杂概率分布中,沿着最短路径使得每一个像素点找到密度函数的局部极大值点。经测试,利用均值移位算法的统计鲁棒性和沿着密度梯度方向快速收敛的特性以及彩色直方图算法对目标形状的匹配,可以解决了非刚性目标形态多变、跟踪复杂程度高的问题。  The mean shift algorithm can find the local maximum point of the density function for each pixel along the shortest path in complex probability distributions such as parasite egg pictures. After testing, using the statistical robustness of the mean shift algorithm and the characteristics of fast convergence along the density gradient direction and the matching of the color histogram algorithm to the target shape can solve the problem of non-rigid target shape change and high tracking complexity . the

本发明中均值移位是指:一种基于非参数的核密度估计理论,是利用梯度法迭代计算概率密度函数的极值点的方法。该算法具有无参数、快速模式匹配的特点,是一种有效的目标跟踪算法。  The mean shift in the present invention refers to: a non-parameter-based kernel density estimation theory, which is a method for iteratively calculating the extreme point of the probability density function by using the gradient method. The algorithm has the characteristics of no parameters and fast pattern matching, and is an effective target tracking algorithm. the

本发明中区域生长(region growing)是指:将具有相似性质的像素集合起来构成区域。具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中。将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。  In the present invention, region growing refers to: combining pixels with similar properties to form a region. The specific steps are: first find a seed pixel for each region that needs to be segmented as the starting point of growth, and then merge pixels with the same or similar properties as the seed pixel in the neighborhood around the seed pixel into this region. The above process continues with these new pixels as new seed pixels until no more pixels satisfying the condition can be included. the

进一步的,基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤,基于上述形状分割信息,即依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边 界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内(用例图见图4);  Further, based on the step of acquiring the target of the egg image based on the above-mentioned area identified as an egg, based on the above-mentioned shape segmentation information, that is, according to the established edge area information of the shape of the parasite egg to be identified, for each candidate edge area Carry out binarization processing, and use the boundary tracking algorithm to acquire the target. At the beginning of the algorithm, each pixel is searched in order from top to bottom, and the sequence array is set to K. First, the first target pixel is searched from the upper left, which is set to k0, then the pixel k0 is the boundary pixel in the upper left corner of the area, that is, the starting point of the search, set the search direction counterclockwise, search in the direction of the eight neighbors, set k0 as the tracking flag, and use k0 as the first sequence array Insert an element, search for the next target pixel counterclockwise, and set it to k, if not found, then k is an isolated pixel area; if k is equal to the search start boundary pixel k0, continue to judge other adjacent directions in order Whether there are any boundary pixels that have not been tracked, if not, it has returned to the starting point, and the algorithm ends, and the boundary pixels in the sequence K form a closed area, enclosing the target area (see Figure 4 for the use case diagram) ;

进一步的,在一个对获取目标截取指定特征值并存入特征数据库的步骤中,在所述的对获取目标截取指定特征值,存入特征数据库的步骤中,先获取虫卵图像的特征值(参见附表):  Further, in a step of intercepting the specified feature value for the acquisition target and storing it in the feature database, in the step of intercepting the specified feature value for the acquisition target and storing it in the feature database, first obtain the feature value of the egg image ( See attached table):

1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度(length)、宽度(width),长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;  1) Find the smallest square area circumscribed by the edge area, and count the number of pixels to obtain the length (length) and width (width). The length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object;

2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度(ovality),椭圆度是指目标物面积与外接椭圆的面积之比;  2) Count the pixels of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of the area to the smallest circumscribed square is the ovality. The ellipticity refers to the ratio of the area of the target to the area of the circumscribed ellipse ;

3)面积(area)是指目标物面积,周长(perimeter)是指目标物周长;  3) Area (area) refers to the area of the target object, and perimeter (perimeter) refers to the circumference of the target object;

4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度(grey)是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量(red)是指R部分的平均值;平均绿色分量(green)是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量(blue)是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度(color)是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均饱和度(saturation)是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度(bright)是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差(greyscale)是指目标物各个局部颜色的差异;颜色权重(weighted)是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;  4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale (grey) refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, and the average red component (red) refers to the average value of the R part; The average green component (green) means that the computer uses RGB combination to express the color, and the average green component refers to the average value of the G part; the average blue component (blue) refers to the computer that uses RGB combination to express the color. The average blue component refers to the average value of part B; the average chroma (color) refers to the average value of part H after converting the RGB color model to the HSL color model; the average saturation (saturation) refers to the RGB color model After the model is converted to the HSL color model, the average value of the S part; the average brightness (bright) refers to the average value of the L part after the RGB color model is converted to the HSL color model; the statistical histogram of the gray value refers to the gray value The distribution of 0 to 255 is a vector obtained by staged statistics; the grayscale standard deviation (greyscale) refers to the difference of each local color of the target object; the color weight (weighted) refers to the color expression of the computer using the RGB combination method. The ratio of the average chromaticity automatically generated by the pixel position to the position coordinates, this value is only used for error correction and does not participate in the calculation;

5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法,数据库结构如下表所示。  5) After obtaining the characteristic values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. The database structure is shown in the table below. the

进一步的,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN算法,具体KNN算法的步骤如下:  Further, in a step of classification and recognition based on multiple algorithms, the KNN algorithm based on relative distance is adopted, and the specific steps of the KNN algorithm are as follows:

首先为避免由于属性值域不同而影响样本距离的计算,特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i] -Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪Cr;  First of all, in order to avoid the calculation of sample distance due to different attribute value ranges, each sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], Then use the formula X[i]=(X[i] -Mini[i])/(Max[i]–Min[i]) to perform the normalization operation. After the normalization of each attribute of the sample, its value range is [0 ,1], and then construct a data set D={X1,…,XL} according to the eigenvalue database, where X i ∈ R n , i=1…L; let the samples have ClassNum classes in total; let C i represent the i-th class The set of all samples of , and C i ∩C j =Ф(i, j=1,...,ClassNum), the sample set can also be expressed as: D=C 1 ∪C 2 ∪…∪C r ;

设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:  Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is:

DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22

测试样本中第i类的K-最近邻距离均值为:  The average K-nearest neighbor distance of the i-th class in the test sample is:

AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum

Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈Ci;  K i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ;

在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);  When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n);

此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。  Here the s function is constructed as follows: Let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be taken to the maximum value, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. the

进一步的,在使用均值移位算法对目标进行分割处理之前,图片需要预先计算彩色直方图。此处使用VC++自带的彩色直方计算标准算法模块,使用默认参数。  Furthermore, before using the mean shift algorithm to segment the target, the picture needs to pre-calculate the color histogram. Here, the color histogram calculation standard algorithm module that comes with VC++ is used, and the default parameters are used. the

进一步的,如因过度归一化等问题造成图像出现断点,导致遗失边界点无法构建区域框或区域像素集合,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。  Further, if there are breakpoints in the image due to problems such as over-normalization, resulting in the loss of boundary points and the inability to construct a region frame or a region pixel set, the region growing algorithm is used to make up for it. The specific steps of the region growing algorithm are: first For each region that needs to be segmented, find a seed pixel as the starting point of growth, and then merge the pixels with the same or similar properties as the seed pixel in the neighborhood around the seed pixel into this region, and use these new pixels as a new seed Pixels continue the above process until no more pixels satisfying the condition can be included. the

实施例2  Example 2

一种基于多特征融合的寄生虫虫卵的人工辅助识别方法,其特征在于包括如下流程(流程图见图6):  A kind of artificial assisted identification method of the parasite egg based on multi-feature fusion, it is characterized in that comprising following flow process (flow chart is shown in Fig. 6):

a)一个对图像预处理的步骤。将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;  a) A step of image preprocessing. Normalize the brightness of the image information acquired by the micrographic equipment, grayscale the normalized image, generate a normalized grayscale image, and then perform sharpening processing on the entire image based on Gaussian filtering , to obtain the image of the sharpened edge of the egg;

b)一个采用增强Grab Cut法对虫卵边缘锐化的图像进行人工辅助识别寻找虫卵的步骤。在目标分割的步骤中,采用增强Grab Cut法,即用户提供限定方框进行人工支持,更精确的划分前景和背景,得到该图像的颜色特征向量,基于颜色向量规划并找到最佳目标区域,得到判断为虫卵的区域;  b) A step of using the enhanced Grab Cut method to artificially assist the identification of the edge-sharpened image of the eggs to find the eggs. In the step of target segmentation, the enhanced Grab Cut method is adopted, that is, the user provides a limited box for manual support, more accurately divides the foreground and background, obtains the color feature vector of the image, plans and finds the best target area based on the color vector, Obtain the area judged as insect eggs;

c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤。基于上述形状分割信息,即依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;  c) A step of performing target acquisition on the egg image based on the region identified as the egg. Based on the above shape segmentation information, that is, according to the established edge area information of the parasite egg shape to be identified, binary processing is performed on each candidate edge area, and the boundary tracking algorithm is used to obtain the target according to the boundary of the egg area. The segmented egg image;

d)一套对分割后的虫卵图像截取指定特征值并存入预设特征数据库的步骤;  d) a set of steps for intercepting the specified feature value of the segmented egg image and storing it in the preset feature database;

e)一个基于多种算法的分类识别的步骤,在本发明所述的一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入总数据库,基于KNN算法判断虫卵类别;  e) a step of classification recognition based on multiple algorithms, in the step of classification recognition based on multiple algorithms according to the present invention, the KNN (k=3) algorithm based on relative distance is adopted to convert the acquired eigenvalues Substitute into the general database, and judge the type of eggs based on the KNN algorithm;

进一步的,在所述的对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像(用例图见图7);  Further, in the step of preprocessing the image, the image information acquired by the photomicrograph equipment is subjected to brightness normalization processing, and the normalized image is grayscaled to generate a normalized grayscale image , and then perform sharpening processing based on Gaussian filtering on the entire picture to obtain an image with sharpened edges of eggs (see Figure 7 for a use case diagram);

进一步的,一个采用增强Grab Cut法对虫卵边缘锐化的图像进行人工辅助识别寻找虫卵的步骤。用户提供限定方框进行人工支持,方框以外的部分不处理,所以比全自动计算均值位移算法更快更精准。用户需要通过设置背景区域TB来初始化三分图T,前景区域TF设置为空,未知区域TU设置为背景区域TB的补集,对于所有背景区域的像素,将它们的Alpha(透明度)值设置为0,即a=0;对于未知区域的像素点,将它们的Alpha值设置为1,即a=1,分别用a=0和a=1这两个集合来初始化创建前景与背景的高斯混合模型,为未知区域中的每个像素点n设置高斯混合模型参数:  Further, a step of using the enhanced Grab Cut method to artificially assist the identification of the edge-sharpened image of the eggs to find the eggs. The user provides a limited box for manual support, and the parts outside the box are not processed, so it is faster and more accurate than the fully automatic calculation of the mean displacement algorithm. The user needs to initialize the tripartite map T by setting the background area TB, the foreground area TF is set to be empty, and the unknown area TU is set as the complement of the background area TB. For all pixels in the background area, their Alpha (transparency) values are set to 0, that is, a=0; for the pixels in the unknown area, set their Alpha value to 1, that is, a=1, and use the two sets of a=0 and a=1 to initialize the Gaussian mixture of the foreground and background Model, set Gaussian mixture model parameters for each pixel n in the unknown area:

kn=arg min Dn(an,kn,θ,Zn),  kn=arg min Dn(a n , k n , θ, Z n ),

由图像中各个像素的数据求得高斯混和模型参数  Gaussian mixture model parameters are obtained from the data of each pixel in the image

θ=arg min U(a,kn,θ,Zn),  θ = arg min U(a, k n , θ, Z n ),

利用最小化能量公式来得到初始分割:  Use the minimized energy formula to get the initial split:

mink E(a,kn,θ,Zn),  min k E(a, k n , θ, Z n ),

重复执行3次,进行边界优化(用例图见图8);  Repeat the execution 3 times to perform boundary optimization (see Figure 8 for the use case diagram);

一些杂质较多的图片用边界跟踪算法不能保证产生闭合的边界,并且算法也可能失控而偏离图像边界,特别是对某些边界较薄、多重边界且边界轮廓线附近灰度变化不太明显的图像更是如此。所以本发明提供人工干预作为辅助手段。前景背景提取的集合被分别初始化为三分图的未知区域部分和背景区域部分。初始化中的用户交互部分将影响到最终的分割结果。根据所给定的初始信息,来为初始的前景抠图区域与背景抠图区域分别创建高斯混合模型的K个组件。  For some images with a lot of impurities, the boundary tracking algorithm cannot guarantee to generate a closed boundary, and the algorithm may also get out of control and deviate from the image boundary, especially for some thin boundaries, multiple boundaries, and gray changes near the boundary contour line are not obvious Images are even more so. So the present invention provides manual intervention as an aid. The sets of foreground and background extractions are initialized as the unknown region part and the background region part of the trimap, respectively. The user interaction part in the initialization will affect the final segmentation result. According to the given initial information, K components of the Gaussian mixture model are respectively created for the initial foreground matting area and the background matting area. the

本发明中增强Grab Cut方法是指基于限定寄生虫虫卵图片,在Graph Cuts方法的基础上对算法适应性作了以下3方面的增强:第一,利用高斯混合模型(Gaussian Mixture Model,GMM)取代直方图来描述前景与背景像素的分布,由对灰度图像的处理上升到对彩色图像的处理;第二,利用迭代方法求取高斯混合模型中的各个参数替代了一次最小化估计来完成能量最小化的计算过程;第三,通过非完全标记方法,减少了用户在交互过程中的工作量,用户只需利用矩形框标记出背景区域即可。  Enhancing the Grab Cut method in the present invention refers to that based on the limited parasite worm egg picture, on the basis of the Graph Cuts method, the enhancement of the algorithm adaptability has been done in the following three aspects: the first, using the Gaussian Mixture Model (Gaussian Mixture Model, GMM) Instead of histograms to describe the distribution of foreground and background pixels, the processing of grayscale images rises to the processing of color images; second, the iterative method is used to obtain the parameters in the Gaussian mixture model instead of a minimum estimate to complete The calculation process of energy minimization; thirdly, through the incomplete marking method, the workload of the user in the interaction process is reduced, and the user only needs to use the rectangular frame to mark the background area. the

进一步的,基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤。基于上述形状分割信息,即依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内(用例图见图9);  Further, the step of performing target acquisition on the insect egg image based on the above-mentioned region identified as the insect egg. Based on the above shape segmentation information, that is, according to the established edge area information of the parasite egg shape to be identified, each candidate edge area is binarized, and the boundary tracking algorithm is used for target acquisition. The algorithm starts from top to bottom. Search each pixel in the following order, set the sequence array as K, first search for the first target pixel point from the upper left, set it as k0, then pixel k0 is the boundary pixel in the upper left corner of the area, that is, the starting point of the search, Set the search direction counterclockwise, search in the eight-neighborhood direction, set k0 as the tracking flag, and insert k0 as the first element of the sequence array, search the next target pixel counterclockwise, and set it to k, if If not found, then k is an isolated pixel area; if k is equal to the search start boundary pixel k0, continue to judge in order whether there are untracked boundary pixels in other adjacent directions, if not, return to the starting point, At the end of the algorithm, the boundary pixels in the sequence K form a closed area, enclosing the target area (see Figure 9 for the use case diagram);

进一步的,一个对获取目标截取指定特征值,存入特征数据库的步骤,在所述的对获取目标截取指定特征值,存入特征数据库的步骤中,先需要获取的特征值名称、获取方法:  Further, a step of intercepting the specified characteristic value of the acquisition target and storing it in the characteristic database. In the step of intercepting the specified characteristic value of the acquisition target and storing it in the characteristic database, the name and acquisition method of the acquired characteristic value are first required:

1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度(length)、宽度(width),长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;  1) Find the smallest square area circumscribed by the edge area, and count the number of pixels to obtain the length (length) and width (width). The length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object;

2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度(ovality),椭圆度是指目标物面积与外接椭圆的面积之比;  2) Count the pixels of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of the area to the smallest circumscribed square is the ovality. The ellipticity refers to the ratio of the area of the target to the area of the circumscribed ellipse ;

3)面积(area)是指目标物面积,周长(perimeter)是指目标物周长;  3) Area (area) refers to the area of the target object, and perimeter (perimeter) refers to the circumference of the target object;

4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度(grey)是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量(red)是指R部分的平均值;平均绿色分量(green)是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量(blue)是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度(color)是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均饱和度(saturation)是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度(bright)是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差(greyscale)是指目标物各个局部颜色的差异;颜色权重(weighted)是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;  4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale (grey) refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, and the average red component (red) refers to the average value of the R part; The average green component (green) means that the computer uses RGB combination to express the color, and the average green component refers to the average value of the G part; the average blue component (blue) refers to the computer that uses RGB combination to express the color. The average blue component refers to the average value of part B; the average chroma (color) refers to the average value of part H after converting the RGB color model to the HSL color model; the average saturation (saturation) refers to the RGB color model After the model is converted to the HSL color model, the average value of the S part; the average brightness (bright) refers to the average value of the L part after the RGB color model is converted to the HSL color model; the statistical histogram of the gray value refers to the gray value The distribution of 0 to 255 is a vector obtained by staged statistics; the grayscale standard deviation (greyscale) refers to the difference of each local color of the target object; the color weight (weighted) refers to the color expression of the computer using the RGB combination method. The ratio of the average chromaticity automatically generated by the pixel position to the position coordinates, this value is only used for error correction and does not participate in the calculation;

5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法,数据库范例如下表。  5) After obtaining the feature values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. The database example is shown in the table below. the

特征值采集的运行用例见图10;  See Figure 10 for the running use case of feature value collection;

进一步的,在一个基于多种算法的分类识别的步骤中,采用基于相对距离的KNN算法,KNN算法的步骤如下:  Further, in a step of classification recognition based on multiple algorithms, a KNN algorithm based on relative distance is adopted, and the steps of the KNN algorithm are as follows:

首先为避免由于属性值域不同而影响样本距离的计算,特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i]-Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪Cr;  First of all, in order to avoid the calculation of sample distance due to different attribute value ranges, each sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], Then use the formula X[i]=(X[i]-Mini[i])/(Max[i]-Min[i]) to carry out the normalization operation. After the normalization of each attribute of the sample, its value range is [0 ,1], and then construct a data set D={X1,…,XL} according to the eigenvalue database, where X i ∈ R n , i=1…L; let the samples have ClassNum classes in total; let C i represent the i-th class The set of all samples of , and C i ∩C j =Ф(i, j=1,...,ClassNum), the sample set can also be expressed as: D=C 1 ∪C 2 ∪…∪C r ;

设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:  Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is:

DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22

测试样本中第i类的K-最近邻距离均值为:  The average K-nearest neighbor distance of the i-th class in the test sample is:

AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum

Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈Ci;  K i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ;

在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);  When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n);

此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。  Here the s function is constructed as: let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be maximized, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. the

进一步的,如因过度归一化等问题造成图像出现断点,导致遗失边界点,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。  Further, if there are breakpoints in the image due to problems such as over-normalization, resulting in the loss of boundary points, the region growing algorithm is used to make up for it. The specific steps of the region growing algorithm are: first find each region that needs to be segmented. A seed pixel is used as the starting point of growth, and then the pixels with the same or similar properties as the seed pixel in the neighborhood around the seed pixel are merged into this area, and these new pixels are regarded as new seed pixels to continue the above process until No more pixels satisfying the condition can be included. the

本发明中多个特征通过相乘的方式组合。由于两个虫卵可能其他方面相似,但是在某一特征方面差异非常大(实际镜检中往往根据一个特征就否定了同类的可能性),相乘可以把这个极大差异更好的表现出来,去影响总score的值。  Multiple features in the present invention are combined in a multiplicative manner. Since two eggs may be similar in other aspects, but have a very large difference in a certain characteristic (in actual microscopic examination, the possibility of the same kind is often denied based on one characteristic), multiplication can better express this great difference , to affect the value of the total score. the

Claims (17)

1.一种基于多特征融合的寄生虫虫卵的识别方法,包括一个利用显微照相设备获取寄生虫虫卵的图像的过程,其特征在于:所述的过程还包括如下步骤:1. a kind of identification method based on the parasite ovum of multi-feature fusion, comprise a process that utilizes photomicrograph equipment to obtain the image of parasite ovum, it is characterized in that: described process also comprises the steps: a)一个对图像预处理的步骤,在所述的对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;a) a step of preprocessing the image, in the step of preprocessing the image, performing brightness normalization processing on the image information acquired by the photomicrograph equipment, and performing grayscale processing on the normalized image, Generate a normalized grayscale image, and then perform sharpening processing on the entire image based on Gaussian filtering to obtain an image with edge sharpening of eggs; b)一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤,在所述的对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤中,使用均值移位算法来对目标图片进行分割处理,得到上述图像的颜色特征向量,基于颜色特征向量规划并找到最佳目标区域,获得判断为虫卵的区域;b) A step of performing mean shift on an image with a sharpened edge of eggs to find eggs, in the step of performing mean shift on an image with sharpened edges of eggs to find eggs, using a mean shift algorithm to Segment the target image to obtain the color feature vector of the above image, plan and find the best target area based on the color feature vector, and obtain the area judged as an egg; c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤,在所述的目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;c) A step of target acquisition of the egg image based on the above-mentioned area identified as an egg, in the step of target acquisition, according to the established edge area information of the shape of the parasite egg to be identified, for each candidate Binary processing is performed on the edge area of the egg, and the boundary tracking algorithm is used to obtain the target according to the boundary of the egg area, and the segmented egg image is obtained; d)一个对分割后的虫卵图像截取指定特征值,存入预设特征值数据库的步骤;d) a step of intercepting specified eigenvalues from the segmented egg images and storing them in a preset eigenvalue database; e)一个分类识别的步骤,在一个分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入总数据库,基于KNN算法判断虫卵类别。e) A step of classifying and identifying. In a step of classifying and identifying, the relative distance-based KNN (k=3) algorithm is used to substitute the obtained feature values into the total database, and the egg category is judged based on the KNN algorithm. 2.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在一个对虫卵边缘锐化的图像进行均值移位寻找虫卵的步骤中,使用均值移位算法来对目标进行分割处理,在使用均值移位算法来对目标进行分割处理的过程中,先对原图像进行X×Y的划分,得到X×Y个交点,并对这些交点进行合并处理,即某两个点对应的颜色值之间的欧氏距离小于某个阈值,所述的阈值为图像亮度最高的5%像素与亮度最低的5%像素的颜色平均值,则把它们合为一个点,这样得到m个点作为初始点集合,m代表图片上X×Y共n个像素点的集合,每个像素点可以表示为自变量Xi{i=1…n},样本点平均值位移M的计算方法为:2. the identification method of the parasite egg based on multi-feature fusion as claimed in claim 1, is characterized in that: in a step that carries out mean value shift to search for egg to the image of egg edge sharpening, uses mean value shift In the process of using the mean shift algorithm to segment the target, the original image is first divided into X×Y to obtain X×Y intersection points, and these intersection points are merged. , that is, the Euclidean distance between the color values corresponding to two points is less than a certain threshold, and the threshold is the color average value of the 5% pixels with the highest brightness and the 5% pixels with the lowest brightness in the image, then they are combined into One point, so m points are obtained as the initial point set, m represents the set of n pixels in X×Y on the picture, each pixel can be expressed as an independent variable X i {i=1...n}, the average of the sample points The calculation method of value displacement M is: Mm hh ,, Uu (( xx )) == hh 22 dd ++ 22 ▿▿ ‾‾ ff EE. (( xx )) ff ‾‾ Uu (( xx )) 在图片中心选择一个初始点,在以此点为中心的窗口Sh(x)内计算平均值位移Mh,U(x),如果该值不小于某个阈值,就把窗口Sh(x)平移Mh,U(x),然后重复在新的窗口中计算平均值位移,得到新的中心值,直到Mh,U(x)小于某个阈值,停止平移,得到一个最大局部密度位置;重复上述步骤,得到m个对应最大局部密度位置的点,并对这些点进行合并处理,得到n个聚类的中心点,即原图像的主色,针对原图像中的每个像素点,根据欧氏距离判断归到哪个聚类中,用一维直方图表示主色信息,横坐标表示各主色,纵坐标表示各主色包含的像素数的比例,这样就得到该图像的颜色特征向量:Select an initial point in the center of the picture, calculate the average displacement M h , U (x) in the window Sh (x) centered on this point, if the value is not less than a certain threshold, put the window Sh (x ) translate M h, U (x), and then repeatedly calculate the average displacement in a new window to obtain a new center value, until M h, U (x) is less than a certain threshold, stop the translation, and obtain a maximum local density position ; Repeat the above steps to obtain m points corresponding to the maximum local density position, and merge these points to obtain the center points of n clusters, that is, the main color of the original image. For each pixel in the original image, According to the Euclidean distance to determine which cluster to belong to, use a one-dimensional histogram to represent the main color information, the abscissa indicates each main color, and the ordinate indicates the proportion of the number of pixels contained in each main color, so that the color characteristics of the image can be obtained vector: Q={(Pi,Wi)i=1,…,n},其中Pi=(L* i,a* i,b* i),Wi∈(0,1],Q={(P i ,W i )i=1,...,n}, where P i =(L * i ,a * i ,b * i ),W i ∈(0,1], 上述公式中,W为比例,Pi为颜色值,颜色值用LSH分量表示法来表示,分别记为Li、ai、bi,颜色特征向量Q使用EMD算法规划最佳目标区域,EMD函数的公式一般形式为In the above formula, W is the ratio, P i is the color value, and the color value is represented by LSH component notation, which is recorded as L i , a i , and bi respectively. The color feature vector Q uses the EMD algorithm to plan the best target area, and EMD The general form of the function formula is EMDEMD (( PP ,, QQ )) == minmin ΣΣ ii == 11 mm ΣΣ jj == 11 nno dd (( pp ii ,, qq jj )) ff ijij ΣΣ ii == 11 mm ΣΣ jj == 11 nno ff ijij 其中与预期中心点相似度EMD最高的区域就是目标区。Among them, the area with the highest EMD similarity with the expected center point is the target area. 3.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内。3. the identification method of the parasite egg based on multi-feature fusion as claimed in claim 1, is characterized in that: in a step of carrying out target acquisition to the egg image based on the region of above-mentioned discrimination as egg, according to the established To identify the edge area information of the parasite egg shape, binarize each candidate edge area, and use the boundary tracking algorithm to obtain the target. At the beginning of the algorithm, each pixel is searched in order from top to bottom, and the sequence is set The array is K, first search for the first target pixel point from the upper left, set it to k0, then the pixel k0 is the boundary pixel in the upper left corner of the area, that is, the starting point of the search, set the search direction counterclockwise, eight neighbors Domain direction search, k0 is set as the tracking flag, and k0 is inserted as the first element of the sequence array, the next target pixel is searched counterclockwise, and set to k, if not found, then k is the isolated pixel area ; If k is equal to the search start boundary pixel k0, continue to judge in order whether there are boundary pixels that have not been tracked in other adjacent directions, if not, return to the starting point, the algorithm ends, and the boundary pixel points in the sequence K Form a closed area to enclose the target area. 4.如权利要求1所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在对分割后的虫卵图像截取指定特征值、存入预设特征数据库的步骤中,先获取虫卵图像的特征值:4. A kind of identification method based on the multi-feature fusion of parasite worm eggs as claimed in claim 1, is characterized in that: in the step of intercepting the specified feature value to the segmented worm egg image, storing it in the preset feature database , first obtain the eigenvalues of the egg image: 1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度、宽度,长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;1) Find the smallest square area circumscribed by the edge area, count the number of pixels to obtain the length and width, the length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object; 2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度,椭圆度是指目标物面积与外接椭圆的面积之比;2) Count the pixel points of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of its area to the smallest circumscribed square is the ellipticity, and the ellipticity refers to the ratio of the area of the target object to the area of the circumscribed ellipse; 3)面积是指目标物面积,周长是指目标物周长;3) Area refers to the area of the target object, and perimeter refers to the circumference of the target object; 4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量是指R部分的平均值;平均绿色分量是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均饱和度是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差是指目标物各个局部颜色的差异;颜色权重是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, the average red component refers to the average value of the R part; the average green component refers to the computer The expression of color adopts the way of RGB combination, the average green component refers to the average value of G part; value; the average chromaticity refers to the average value of the H part after the RGB color model is converted to the HSL color model; the average saturation refers to the average value of the S part after the RGB color model is converted to the HSL color model; the average brightness refers to The average value of the L part after converting the RGB color model to the HSL color model; the statistical histogram of the gray value refers to the vector obtained by staging the distribution of the gray value 0 to 255; the gray standard deviation refers to the target object The difference of each local color; the color weight refers to the ratio of the average chromaticity to the position coordinate automatically generated according to the position of the pixel when the computer adopts the RGB combination method for the expression of the color. This value is only used for error correction and does not participate in the calculation; 5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法。5) After obtaining the feature values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. 5.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在分类识别的步骤中,采用基于相对距离的KNN算法,所述的KNN算法的步骤如下:5. the identification method based on the parasite ovum of multi-feature fusion as claimed in claim 1, is characterized in that: in the step of classification identification, adopts the KNN algorithm based on relative distance, the step of described KNN algorithm is as follows: 特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i]-Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪CrEach sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], and then use the formula X[i]=(X[i]-Mini [i])/(Max[i]–Min[i]) for normalization operation, the value range of each attribute of the sample is [0,1] after normalization, and then construct the data set D={ X1,...,XL}, where Xi i ∈ R n , i=1...L; Let the samples have a total of ClassNum classes; Let C i represent the set of all samples in the i-th class, and C i ∩C j =Ф( i, j=1,...,ClassNum), the sample set can also be expressed as: D=C 1 ∪C 2 ∪...∪C r ; 设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is: DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22 测试样本中第i类的K-最近邻距离均值为:The average K-nearest neighbor distance of the i-th class in the test sample is: AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈CiK i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ; 在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n); 此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。Here the s function is constructed as follows: Let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be taken to the maximum value, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. 6.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在使用均值移位算法对目标进行分割处理之前,图片需要预先计算彩色直方图。6. The method for identifying parasite eggs based on multi-feature fusion as claimed in claim 1, characterized in that: before using the mean shift algorithm to segment the target, the picture needs to pre-calculate the color histogram. 7.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:如因过度归一化等问题造成图像出现断点,导致遗失边界点无法构建区域框或区域像素集合,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。7. The method for identifying parasite worm eggs based on multi-feature fusion as claimed in claim 1, characterized in that: such as problems such as excessive normalization cause breakpoints in the image, resulting in loss of boundary points and unable to construct a region frame or region The pixel set is supplemented by a region growing algorithm. The specific steps of the region growing algorithm are: first find a seed pixel for each region that needs to be segmented as the starting point of growth, and then combine the seed pixel with the seed pixel in the neighborhood around the seed pixel Pixels with the same or similar properties are merged into this region, and these new pixels are used as new seed pixels to continue the above process until no more pixels satisfying the condition can be included. 8.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:所述的寄生虫为华支睾吸虫、带绦虫、鞭虫、蛲虫、蛔虫、钩虫、阔节裂头绦虫、日本血吸虫、布氏姜片吸虫、肺吸虫、或者曼氏迭宫绦虫。8. the identification method of the parasite egg based on multi-feature fusion as claimed in claim 1, is characterized in that: described parasite is clonorchis sinensis, tapeworm, whipworm, pinworm, roundworm, hookworm, Schistocephalus lacunae, Schistosoma japonicum, Fasciola brucei, Paragonimia, or D. mansoni. 9.如权利要求1所述的基于多特征融合的寄生虫虫卵的识别方法,其特征在于:所述的待识别图具有旋转不变性、对光照无差异、对个体无差异。9. The method for identifying parasite eggs based on multi-feature fusion as claimed in claim 1, characterized in that: the image to be identified has rotation invariance, no difference to light, and no difference to individuals. 10.一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于包括如下步骤:10. A method for identifying parasite eggs based on multi-feature fusion, characterized in that it comprises the following steps: a)一个对图像预处理的步骤,在一个对图像预处理的步骤中,将显微照相设备获取的图像信息进行亮度归一化处理,对归一化的图像进行灰度化处理,生成归一化灰度图像,然后再对整张图片进行基于高斯滤波的锐化处理,得到虫卵边缘锐化的图像;a) A step of image preprocessing, in which the image information obtained by the photomicrograph equipment is subjected to brightness normalization processing, and the normalized image is grayscaled to generate a normalized image. Firstly convert the grayscale image, and then perform sharpening processing based on Gaussian filtering on the entire image to obtain an image with sharpened edges of eggs; b)一个采用人工辅助识别寻找虫卵的步骤,在一个采用人工辅助识别寻找虫卵的步骤中,采用增强Grab Cut法对虫卵边缘锐化的图像进行分割,用户提供限定方框进行人工支持,得到虫卵图像的颜色特征向量,基于颜色特征向量规划并找到最佳目标区域,得到判断为虫卵的区域;b) A step of finding eggs using artificially assisted recognition. In a step of finding eggs using artificially assisted recognition, the enhanced Grab Cut method is used to segment the edge-sharpened images of eggs, and the user provides a limited box for manual support. , get the color feature vector of the egg image, plan and find the best target area based on the color feature vector, and get the area judged as the egg; c)一个基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤,在进行目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法按照虫卵区域的边界进行目标获取,得到分割后的虫卵图像;c) A step of performing target acquisition on the egg image based on the above-mentioned area identified as an egg, in the step of target acquisition, according to the established edge area information of the shape of the parasite egg to be identified, for each candidate edge The area is binarized, and the boundary tracking algorithm is used to obtain the target according to the boundary of the egg area, and the segmented egg image is obtained; d)一个对分割后的虫卵图像截取指定特征值并存入预设特征数据库的步骤;d) a step of intercepting a specified feature value from the segmented egg image and storing it in a preset feature database; e)一个分类识别的步骤,在一个分类识别的步骤中,采用基于相对距离的KNN(k=3)算法,将所获取的特征值代入总数据库,基于KNN算法判断虫卵类别。e) A step of classifying and identifying. In a step of classifying and identifying, the relative distance-based KNN (k=3) algorithm is used to substitute the obtained feature values into the total database, and the egg category is judged based on the KNN algorithm. 11.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:11. a kind of identification method based on the multi-feature fusion of parasite eggs as claimed in claim 10, is characterized in that: a)在一个采用人工辅助识别寻找虫卵的步骤中,采用增强Grab Cut法对虫卵边缘锐化的图像进行分割,用户提供限定方框进行人工支持,方框以外的部分不处理,用户通过设置背景区域TB来初始化三分图T,前景区域TF设置为空,未知区域TU设置为背景区域TB的补集,对于所有背景区域的像素,将它们的Alpha值设置为0,即a=0;对于未知区域的像素点,将它们的Alpha值设置为1,即a=1,分别用a=0和a=1这两个集合来初始化创建前景与背景的高斯混合模型,为未知区域中的每个像素点n设置高斯混合模型参数:a) In a step of using artificial aided recognition to find eggs, the enhanced Grab Cut method is used to segment the image with edge sharpening of eggs, and the user provides a limited box for manual support. The part outside the box is not processed, and the user passes Set the background area TB to initialize the trimap T, set the foreground area TF to be empty, set the unknown area TU as the complement of the background area TB, and set their Alpha values to 0 for all pixels in the background area, that is, a=0 ;For the pixels in the unknown area, their Alpha values are set to 1, that is, a=1, and the two sets of a=0 and a=1 are used to initialize the Gaussian mixture model of creating the foreground and background, for the unknown area Set the parameters of the Gaussian mixture model for each pixel n: kn=arg min Dn(an,kn,θ,Zn),kn=arg min Dn(a n , k n , θ, Z n ), 由图像中各个像素的数据求得高斯混和模型参数Obtain the Gaussian mixture model parameters from the data of each pixel in the image θ=arg min U(a,kn,θ,Zn),θ = arg min U(a, k n , θ, Z n ), 利用最小化能量公式来得到初始分割:Use the minimized energy formula to get the initial split: mink E(a,kn,θ,Zn),min k E(a, k n , θ, Z n ), 重复执行3次,进行边界优化。Repeat 3 times for boundary optimization. 12.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:基于上述判别为虫卵的区域对虫卵图像进行目标获取的步骤中,依据所建立的要识别寄生虫虫卵形状边缘区域信息,对每个候选的边缘区域进行二值化处理,采用边界跟踪算法进行目标获取,算法开始时按照从上到下的顺序搜索每个像素,设序列数组为K,首先从左上方开始搜索第一个目标像素点,设为k0,则像素k0是该区域最左上角的边界像素,也就是搜索的起点,设定搜索方向按逆时针,八邻域方向搜索,k0设置为跟踪标志,并将k0做为序列数组的第一个元素插入,按逆时针方向搜索下一个目标像素,并设为k,如果找不到,则k为孤立像素区域;若k等于搜索起始边界像素k0,则按顺序继续判断其它邻近方向上是否还有未跟踪到的边界像素,若没有,则已回到起始点,算法结束,序列K中的边界像素点组成一条封闭区域,将目标区域包围在内。12. A method for identifying parasite eggs based on multi-feature fusion as claimed in claim 10, characterized in that: in the step of target acquisition of the eggs image based on the region identified as eggs, according to the established To identify the edge area information of the parasite egg shape, binarize each candidate edge area, and use the boundary tracking algorithm to obtain the target. At the beginning of the algorithm, each pixel is searched in order from top to bottom, and the sequence is set The array is K, first search for the first target pixel from the upper left, set it to k0, then the pixel k0 is the boundary pixel in the upper left corner of the area, which is the starting point of the search, set the search direction counterclockwise, eight neighbors Domain direction search, k0 is set as the tracking flag, and k0 is inserted as the first element of the sequence array, the next target pixel is searched counterclockwise, and set to k, if not found, then k is the isolated pixel area ; If k is equal to the search start boundary pixel k0, continue to judge in order whether there are boundary pixels that have not been tracked in other adjacent directions, if not, return to the starting point, the algorithm ends, and the boundary pixel points in the sequence K Form a closed area to enclose the target area. 13.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在一个对获取目标截取指定特征值存入特征数据库的步骤中,先获取虫卵图像的特征值:13. A method for identifying parasite eggs based on multi-feature fusion as claimed in claim 10, characterized in that: in a step of intercepting the specified feature value of the acquisition target and storing it in the feature database, the egg image is first acquired The eigenvalues of 1)求出边缘区域外接最小正方形区域,计数像素数即可得到长度、宽度,长度是指目标物外接矩形的长度,宽度是指目标物外接矩形的长度;1) Find the smallest square area circumscribed by the edge area, count the number of pixels to obtain the length and width, the length refers to the length of the rectangle circumscribed by the target object, and the width refers to the length of the rectangle circumscribed by the target object; 2)计数目标区域、目标周边区域的像素点,可得面积和周长,其面积与最小外接正方形之比值即为椭圆度,椭圆度是指目标物面积与外接椭圆的面积之比;2) Count the pixel points of the target area and the surrounding area of the target to obtain the area and perimeter. The ratio of its area to the smallest circumscribed square is the ellipticity, and the ellipticity refers to the ratio of the area of the target object to the area of the circumscribed ellipse; 3)面积是指目标物面积,周长是指目标物周长;3) Area refers to the area of the target object, and perimeter refers to the circumference of the target object; 4)基于目标区域颜色构成信息,获取RGB分量;将图片转化为灰度即可获取灰度值的统计直方,其均值为灰度值;将目标转化为HSV空间,即可获取HSL分量;平均灰度是指灰度化后的目标物的颜色平均值;平均红色分量是指计算机对彩色的表达采用了RGB组合的方式,平均红色分量是指R部分的平均值;平均绿色分量是指计算机对彩色的表达采用了RGB组合的方式,平均绿色分量是指G部分的平均值;平均蓝色分量是指计算机对彩色的表达采用了RGB组合的方式,平均蓝色分量是指B部分的平均值;平均色度是指将RGB颜色模型转换成HSL颜色模型之后,H部分的平均值;平均饱和度是指将RGB颜色模型转换成HSL颜色模型之后,S部分的平均值;平均亮度是指将RGB颜色模型转换成HSL颜色模型之后L部分的平均值;灰度值的统计直方图是指对灰度值0~255的分布进行分阶段统计得到的向量;灰度标准差是指目标物各个局部颜色的差异;颜色权重是指计算机对彩色的表达采用了RGB组合的方式时根据像素点位置自动生成的平均色度与位置坐标的比值,该值仅用于纠错,不参与运算;4) Obtain RGB components based on the color composition information of the target area; convert the image into grayscale to obtain the statistical histogram of grayscale values, and its mean value is the grayscale value; convert the target into HSV space to obtain HSL components; average Grayscale refers to the average color of the target object after grayscale; the average red component refers to the computer's expression of color using RGB combination, the average red component refers to the average value of the R part; the average green component refers to the computer The expression of color adopts the way of RGB combination, the average green component refers to the average value of G part; value; the average chromaticity refers to the average value of the H part after the RGB color model is converted to the HSL color model; the average saturation refers to the average value of the S part after the RGB color model is converted to the HSL color model; the average brightness refers to The average value of the L part after converting the RGB color model to the HSL color model; the statistical histogram of the gray value refers to the vector obtained by staging the distribution of the gray value 0 to 255; the gray standard deviation refers to the target object The difference of each local color; the color weight refers to the ratio of the average chromaticity to the position coordinate automatically generated according to the position of the pixel when the computer adopts the RGB combination method for the expression of the color. This value is only used for error correction and does not participate in the calculation; 5)获取特征值后,输入预设的文本格式数据库,以表格的形式加载后续的分类识别算法。5) After obtaining the feature values, input the preset text format database, and load the subsequent classification recognition algorithm in the form of a table. 14.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:在一个分类识别的步骤中,采用基于相对距离的KNN算法,KNN算法的步骤如下:14. a kind of identification method based on the parasite egg of multi-feature fusion as claimed in claim 10, it is characterized in that: in the step of a classification identification, adopt the KNN algorithm based on relative distance, the step of KNN algorithm is as follows: 首先为避免由于属性值域不同而影响样本距离的计算,特征值数据库的每个样本应该对第i维属性值为X[i],计算最大值Max[i]、最小值Min[i],再利用公式X[i]=(X[i]-Mini[i])/(Max[i]–Min[i])进行归一化操作,样品各属性归一化后其值域为[0,1],然后根据特征值数据库构建数据集D={X1,…,XL},其中Xi∈Rn,i=1…L;设样本共有ClassNum个类;设Ci表示第i类中的所有样本的集合,且Ci∩Cj=Ф(i,j=1,…,ClassNum),样本集也可表示为:D=C1∪C2∪…∪CrFirst of all, in order to avoid the calculation of sample distance due to different attribute value ranges, each sample in the eigenvalue database should calculate the maximum value Max[i] and minimum value Min[i] for the i-th dimension attribute value X[i], Then use the formula X[i]=(X[i]-Mini[i])/(Max[i]-Min[i]) to carry out the normalization operation. After the normalization of each attribute of the sample, its value range is [0 ,1], and then construct a data set D={X1,…,XL} according to the eigenvalue database, where X i ∈ R n , i=1…L; let the samples have ClassNum classes in total; let C i represent the i-th class The set of all samples of , and Ci∩C j = Ф(i, j = 1, ..., ClassNum), the sample set can also be expressed as: D = C 1 ∪C 2 ∪...∪C r ; 设两个虫卵样本间的距离为Dist,数据集D有m个属性,其数据集构成为R(A1,A2,…,Am),X和Y分别为数据集D中的两个样本,则X与Y的距离度量公式为:Suppose the distance between two insect egg samples is Dist, the data set D has m attributes, and its data set composition is R(A 1 , A 2 ,...,A m ), X and Y are two attributes in data set D respectively. samples, then the distance measure formula between X and Y is: DistDist (( Xx ,, YY )) == ΣΣ ii == 11 mm (( Xx .. xx ii -- YY .. ythe y ii )) 22 测试样本中第i类的K-最近邻距离均值为:The average K-nearest neighbor distance of the i-th class in the test sample is: AvgdisAvgdis (( ii )) == ΣΣ jj == 11 kk ii DistDist (( Xx jj ,, YY )) kk ii ,, Xx jj ∈∈ CC ii ,, ii == 11 ,, .. .. .. ,, ClassNumClassNum Ki为Ci中的样本个数,Y为Xj的最近邻,测试样本X和训练样本Y之间的相对距离即为:D=Dist(X,Y)/Avgdis(i),Y∈CiK i is the number of samples in C i , Y is the nearest neighbor of Xj, the relative distance between the test sample X and the training sample Y is: D=Dist(X,Y)/Avgdis(i),Y∈C i ; 在N=3时,只要计算数据集各样本到测算样本的距离,比较选取测试样本的3个最近邻,即可判别它的类别,分类结果由score来体现,设输入图片的特征为(f1,f2,...,fn),数据库中某样本的特征是(x11,x12,...,x1n),则score=s(f1,x11)*s(f2,x12)*.....*s(fn,x1n);When N=3, as long as the distance between each sample in the data set and the measured sample is calculated, and the three nearest neighbors of the selected test sample are compared, its category can be identified. The classification result is reflected by the score, and the feature of the input image is set as (f1 ,f2,...,fn), the feature of a sample in the database is (x11,x12,...,x1n), then score=s(f1,x11)*s(f2,x12)*.... .*s(fn,x1n); 此处s函数构造为:令maxV=max(f1,x11);minV=min(f1,x11),则diff=(maxV-minV)/maxV;s=X*(pow(e,-diff)-1/e)+B,其中e是自然数,X=(A-B)*e/(e-1),即可令A取到最大值,如果diff=0,则s是最大值A;如果diff=1,则s是最小值B。Here the s function is constructed as: let maxV=max(f1,x11); minV=min(f1,x11), then diff=(maxV-minV)/maxV; s=X*(pow(e,-diff)- 1/e)+B, where e is a natural number, X=(A-B)*e/(e-1), that is, A can be maximized, if diff=0, then s is the maximum value A; if diff= 1, then s is the minimum value B. 15.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:如因过度归一化等问题造成图像出现断点,导致遗失边界点,则用区域生长算法加以弥补,所述的区域生长算法的具体步骤是:先对每个需要分割的区域找一个种子像素作为生长的起点,然后将种子像素周围邻域中与种子像素具有相同或相似性质的像素合并到这一区域中,将这些新像素当作新的种子像素继续进行上面的过程,直到再没有满足条件的像素可被包括进来。15. A method for identifying parasite eggs based on multi-feature fusion as claimed in claim 10, characterized in that: if a breakpoint occurs in the image due to problems such as over-normalization, resulting in the loss of boundary points, then use the region The specific steps of the region growing algorithm are: first find a seed pixel for each region that needs to be segmented as the starting point of growth, and then use the same or similar properties as the seed pixel in the neighborhood around the seed pixel Pixels are merged into this region, and these new pixels are used as new seed pixels to continue the above process until no more pixels satisfying the condition can be included. 16.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:所述的寄生虫为华支睾吸虫、带绦虫、鞭虫、蛲虫、蛔虫、钩虫、阔节裂头绦虫、日本血吸虫、布氏姜片吸虫、肺吸虫、或者曼氏迭宫绦虫。16. A method for identifying parasite eggs based on multi-feature fusion as claimed in claim 10, wherein said parasites are Clonorchis sinensis, tapeworm, whipworm, pinworm, roundworm, Hookworm, Schistocephalus lacunae, Schistosoma japonicum, Fasciola brucei, Paragonimiasis, or D. mansoni. 17.如权利要求10所述的一种基于多特征融合的寄生虫虫卵的识别方法,其特征在于:所述的待识别图具有有旋转不变性、对光照无差异、对个体无差异。17. A method for identifying parasite eggs based on multi-feature fusion as claimed in claim 10, characterized in that: the image to be identified has rotation invariance, no difference to light, and no difference to individuals.
CN201410587222.8A 2014-10-28 2014-10-28 Parasite egg identification method based on multi-feature fusion Pending CN104392240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410587222.8A CN104392240A (en) 2014-10-28 2014-10-28 Parasite egg identification method based on multi-feature fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410587222.8A CN104392240A (en) 2014-10-28 2014-10-28 Parasite egg identification method based on multi-feature fusion

Publications (1)

Publication Number Publication Date
CN104392240A true CN104392240A (en) 2015-03-04

Family

ID=52610141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410587222.8A Pending CN104392240A (en) 2014-10-28 2014-10-28 Parasite egg identification method based on multi-feature fusion

Country Status (1)

Country Link
CN (1) CN104392240A (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243390A (en) * 2015-09-25 2016-01-13 河南科技学院 Insect image detection method and insect classification method
CN105551027A (en) * 2015-12-08 2016-05-04 沈阳东软医疗系统有限公司 Boundary tracking method and device
CN106203528A (en) * 2016-07-19 2016-12-07 华侨大学 A kind of feature based merges and the 3D of KNN draws intelligent classification algorithm
CN107220673A (en) * 2017-06-06 2017-09-29 滁州市天达汽车部件有限公司 A kind of bamboo cane method for sorting colors based on KNN algorithms
CN108376402A (en) * 2018-04-27 2018-08-07 安徽农业大学 Trialeurodes vaporariorum community growth state analysis device and method under a kind of off-line state
CN108596891A (en) * 2018-04-23 2018-09-28 中国计量大学 A kind of method of counting towards multiple types mixing silk cocoon
CN108805101A (en) * 2018-06-28 2018-11-13 陈静飞 A kind of recognition methods of the parasite egg based on deep learning
CN109145848A (en) * 2018-08-30 2019-01-04 西京学院 A kind of wheat head method of counting
CN109325499A (en) * 2018-08-02 2019-02-12 浙江中农在线电子商务有限公司 Pest identification method and device
CN109359576A (en) * 2018-10-08 2019-02-19 北京理工大学 A method for estimating the number of animals based on image local feature recognition
CN110020654A (en) * 2019-04-08 2019-07-16 中南大学 The recognition methods of foamed zones in expansion fire-proof layer of charcoal SEM image
CN110084821A (en) * 2019-04-17 2019-08-02 杭州晓图科技有限公司 A kind of more example interactive image segmentation methods
CN110136078A (en) * 2019-04-29 2019-08-16 天津大学 Semi-automatic repair and completion method for single maize image leaf fracture
CN110263608A (en) * 2019-01-25 2019-09-20 天津职业技术师范大学(中国职业培训指导教师进修中心) Electronic component automatic identifying method based on image feature space variable threshold value metric
CN110321896A (en) * 2019-04-30 2019-10-11 深圳市四季宏胜科技有限公司 Blackhead recognition methods, device and computer readable storage medium
CN110807426A (en) * 2019-11-05 2020-02-18 北京罗玛壹科技有限公司 Parasite detection system and method based on deep learning
CN111507177A (en) * 2020-02-19 2020-08-07 广西云涌科技有限公司 Identification method and device for metering turnover cabinet
CN111582276A (en) * 2020-05-29 2020-08-25 北京语言大学 Parasite egg identification method and system based on multi-feature fusion
CN111612824A (en) * 2020-05-26 2020-09-01 天津市微卡科技有限公司 Consciousness tracking recognition algorithm for robot control
CN111753706A (en) * 2020-06-19 2020-10-09 西安工业大学 A Clustering Extraction Method for Intersections of Complex Tables Based on Image Statistics
CN111797706A (en) * 2020-06-11 2020-10-20 昭苏县西域马业有限责任公司 Image-based parasite egg shape recognition system and method
CN111795986A (en) * 2020-05-20 2020-10-20 万秋花 Virus clinical examination detection platform applying shape search
CN111815614A (en) * 2020-07-17 2020-10-23 中国人民解放军军事科学院军事医学研究院 Artificial intelligence-based parasite detection method, system and terminal equipment
CN112258545A (en) * 2020-11-27 2021-01-22 云南省烟草农业科学研究院 An online background processing system and online background processing method for tobacco leaf images
CN114299494A (en) * 2022-01-20 2022-04-08 广东省农业科学院动物科学研究所 Method and system for detecting worm oval characteristics of aquatic product image
CN115311625A (en) * 2022-08-17 2022-11-08 国网四川省电力公司电力科学研究院 Monitoring method for judging whether target contacts power transmission line
CN116485701A (en) * 2022-01-12 2023-07-25 中国科学院微电子研究所 Tongue color classification method and device based on color coding
CN116758024A (en) * 2023-06-13 2023-09-15 山东省农业科学院 A method for identifying the direction of peanut seeds
CN118468919A (en) * 2024-07-11 2024-08-09 青岛海兴智能装备有限公司 Egg counter based on intelligent vision and counting method
CN118962097A (en) * 2024-10-12 2024-11-15 中国科学院生态环境研究中心 Efficient protozoan identification method and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007038137A1 (en) * 2007-08-13 2009-02-19 Robert Bosch Gmbh Image processing method for driver assistance system for e.g. lane recognition, involves computing radial and/or tangential derivatives of brightness values and/or gray scale values of image for generating image information
CN102073872A (en) * 2011-01-20 2011-05-25 中国疾病预防控制中心寄生虫病预防控制所 Image-based method for identifying shape of parasite egg
CN104036523A (en) * 2014-06-18 2014-09-10 哈尔滨工程大学 Improved mean shift target tracking method based on surf features

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007038137A1 (en) * 2007-08-13 2009-02-19 Robert Bosch Gmbh Image processing method for driver assistance system for e.g. lane recognition, involves computing radial and/or tangential derivatives of brightness values and/or gray scale values of image for generating image information
CN102073872A (en) * 2011-01-20 2011-05-25 中国疾病预防控制中心寄生虫病预防控制所 Image-based method for identifying shape of parasite egg
CN104036523A (en) * 2014-06-18 2014-09-10 哈尔滨工程大学 Improved mean shift target tracking method based on surf features

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘峨: "基于meanshift和EMD的图像检索系统研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
崔鑫: "计算机辅助孤立肺结节检测与医学征象识别算法研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243390A (en) * 2015-09-25 2016-01-13 河南科技学院 Insect image detection method and insect classification method
CN105243390B (en) * 2015-09-25 2018-09-25 河南科技学院 Insect image identification detection method and classification of insect method
CN105551027B (en) * 2015-12-08 2018-08-03 沈阳东软医疗系统有限公司 A kind of frontier tracing method and device
CN105551027A (en) * 2015-12-08 2016-05-04 沈阳东软医疗系统有限公司 Boundary tracking method and device
CN106203528B (en) * 2016-07-19 2019-07-09 华侨大学 It is a kind of that intelligent classification algorithm is drawn based on the 3D of Fusion Features and KNN
CN106203528A (en) * 2016-07-19 2016-12-07 华侨大学 A kind of feature based merges and the 3D of KNN draws intelligent classification algorithm
CN107220673B (en) * 2017-06-06 2020-05-01 安徽天达汽车制造有限公司 KNN algorithm-based bamboo strip color classification method
CN107220673A (en) * 2017-06-06 2017-09-29 滁州市天达汽车部件有限公司 A kind of bamboo cane method for sorting colors based on KNN algorithms
CN108596891A (en) * 2018-04-23 2018-09-28 中国计量大学 A kind of method of counting towards multiple types mixing silk cocoon
CN108376402A (en) * 2018-04-27 2018-08-07 安徽农业大学 Trialeurodes vaporariorum community growth state analysis device and method under a kind of off-line state
CN108805101A (en) * 2018-06-28 2018-11-13 陈静飞 A kind of recognition methods of the parasite egg based on deep learning
CN109325499A (en) * 2018-08-02 2019-02-12 浙江中农在线电子商务有限公司 Pest identification method and device
CN109145848A (en) * 2018-08-30 2019-01-04 西京学院 A kind of wheat head method of counting
CN109359576A (en) * 2018-10-08 2019-02-19 北京理工大学 A method for estimating the number of animals based on image local feature recognition
CN109359576B (en) * 2018-10-08 2021-09-03 北京理工大学 Animal quantity estimation method based on image local feature recognition
CN110263608B (en) * 2019-01-25 2023-07-07 天津职业技术师范大学(中国职业培训指导教师进修中心) Automatic electronic component identification method based on image feature space variable threshold measurement
CN110263608A (en) * 2019-01-25 2019-09-20 天津职业技术师范大学(中国职业培训指导教师进修中心) Electronic component automatic identifying method based on image feature space variable threshold value metric
CN110020654A (en) * 2019-04-08 2019-07-16 中南大学 The recognition methods of foamed zones in expansion fire-proof layer of charcoal SEM image
CN110084821A (en) * 2019-04-17 2019-08-02 杭州晓图科技有限公司 A kind of more example interactive image segmentation methods
CN110084821B (en) * 2019-04-17 2021-01-12 杭州晓图科技有限公司 Multi-instance interactive image segmentation method
CN110136078A (en) * 2019-04-29 2019-08-16 天津大学 Semi-automatic repair and completion method for single maize image leaf fracture
CN110321896A (en) * 2019-04-30 2019-10-11 深圳市四季宏胜科技有限公司 Blackhead recognition methods, device and computer readable storage medium
CN110807426A (en) * 2019-11-05 2020-02-18 北京罗玛壹科技有限公司 Parasite detection system and method based on deep learning
CN110807426B (en) * 2019-11-05 2023-11-21 苏州华文海智能科技有限公司 Deep learning-based parasite detection system and method
CN111507177A (en) * 2020-02-19 2020-08-07 广西云涌科技有限公司 Identification method and device for metering turnover cabinet
CN111795986A (en) * 2020-05-20 2020-10-20 万秋花 Virus clinical examination detection platform applying shape search
CN111612824A (en) * 2020-05-26 2020-09-01 天津市微卡科技有限公司 Consciousness tracking recognition algorithm for robot control
CN111582276A (en) * 2020-05-29 2020-08-25 北京语言大学 Parasite egg identification method and system based on multi-feature fusion
CN111582276B (en) * 2020-05-29 2023-09-29 北京语言大学 Recognition method and system for parasite eggs based on multi-feature fusion
CN111797706A (en) * 2020-06-11 2020-10-20 昭苏县西域马业有限责任公司 Image-based parasite egg shape recognition system and method
CN111753706A (en) * 2020-06-19 2020-10-09 西安工业大学 A Clustering Extraction Method for Intersections of Complex Tables Based on Image Statistics
CN111753706B (en) * 2020-06-19 2024-02-02 西安工业大学 A clustering extraction method for complex table intersections based on image statistics
CN111815614A (en) * 2020-07-17 2020-10-23 中国人民解放军军事科学院军事医学研究院 Artificial intelligence-based parasite detection method, system and terminal equipment
CN112258545A (en) * 2020-11-27 2021-01-22 云南省烟草农业科学研究院 An online background processing system and online background processing method for tobacco leaf images
CN116485701A (en) * 2022-01-12 2023-07-25 中国科学院微电子研究所 Tongue color classification method and device based on color coding
CN116485701B (en) * 2022-01-12 2026-02-24 中国科学院微电子研究所 Tongue picture and tongue color classification method and device based on color coding
CN114299494B (en) * 2022-01-20 2022-07-22 广东省农业科学院动物科学研究所 Method and system for detecting worm-egg-shaped characteristics of aquatic product image
CN114299494A (en) * 2022-01-20 2022-04-08 广东省农业科学院动物科学研究所 Method and system for detecting worm oval characteristics of aquatic product image
CN115311625A (en) * 2022-08-17 2022-11-08 国网四川省电力公司电力科学研究院 Monitoring method for judging whether target contacts power transmission line
CN116758024A (en) * 2023-06-13 2023-09-15 山东省农业科学院 A method for identifying the direction of peanut seeds
CN116758024B (en) * 2023-06-13 2024-02-23 山东省农业科学院 A method for identifying the direction of peanut seeds
CN118468919A (en) * 2024-07-11 2024-08-09 青岛海兴智能装备有限公司 Egg counter based on intelligent vision and counting method
CN118962097A (en) * 2024-10-12 2024-11-15 中国科学院生态环境研究中心 Efficient protozoan identification method and electronic device

Similar Documents

Publication Publication Date Title
CN104392240A (en) Parasite egg identification method based on multi-feature fusion
Jahanifar et al. Supervised saliency map driven segmentation of lesions in dermoscopic images
Quelhas et al. Cell nuclei and cytoplasm joint segmentation using the sliding band filter
CN107274386B (en) artificial intelligent auxiliary cervical cell fluid-based smear reading system
Khan et al. A nonlinear mapping approach to stain normalization in digital histopathology images using image-specific color deconvolution
CN108388874B (en) Automatic measurement method of shrimp morphological parameters based on image recognition and cascade classifier
CN103345617B (en) Chinese medicine knows method for distinguishing and system thereof
CN107464249B (en) A kind of non-contact body measurement method of sheep
Beevi et al. Automatic segmentation of cell nuclei using Krill Herd optimization based multi-thresholding and localized active contour model
CN114782948B (en) Global interpretation method and system for cervical fluid-based cytological smear
CN102760228B (en) Specimen-based automatic lepidoptera insect species identification method
CN107977682A (en) Lymph class cell sorting method and its device based on the enhancing of polar coordinate transform data
CN107194937A (en) Tongue image partition method under a kind of open environment
Sridhar et al. Content-based image retrieval of digitized histopathology in boosted spectrally embedded spaces
WO2024174511A1 (en) Feature complementary image processing method for infrared-visible light image under low illumination
Mohammadpoor et al. An intelligent technique for grape fanleaf virus detection
CN108537751A (en) A kind of Thyroid ultrasound image automatic segmentation method based on radial base neural net
CN109165658B (en) A strong negative sample underwater target detection method based on Faster-RCNN
Santamaria-Pang et al. Cell segmentation and classification by hierarchical supervised shape ranking
CN110648312A (en) Method for identifying wool and cashmere fibers based on scale morphological characteristic analysis
CN117496276B (en) Lung cancer cell morphology analysis and identification method and computer readable storage medium
Sima et al. Bottom-up merging segmentation for color images with complex areas
CN108960042A (en) The echinococcus protoscolex survival rate detection method of vision significance and SIFT feature
Mete et al. Statistical comparison of color model-classifier pairs in hematoxylin and eosin stained histological images
Hossain et al. Overlapping cell nuclei segmentation in digital histology images using intensity-based contours

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150304