[go: up one dir, main page]

CN118038449B - Breeding method and application of edible fungus strain - Google Patents

Breeding method and application of edible fungus strain Download PDF

Info

Publication number
CN118038449B
CN118038449B CN202410225185.XA CN202410225185A CN118038449B CN 118038449 B CN118038449 B CN 118038449B CN 202410225185 A CN202410225185 A CN 202410225185A CN 118038449 B CN118038449 B CN 118038449B
Authority
CN
China
Prior art keywords
colony
grid
edible fungus
edible
shape
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.)
Active
Application number
CN202410225185.XA
Other languages
Chinese (zh)
Other versions
CN118038449A (en
Inventor
许忠
许腾龙
金媛媛
李娟�
朱芸
赵明文
蒋宁
林群英
赵立艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Kangzhichun Biological Technology Co ltd
Original Assignee
Nanjing Kangzhichun Biological Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Kangzhichun Biological Technology Co ltd filed Critical Nanjing Kangzhichun Biological Technology Co ltd
Priority to CN202410225185.XA priority Critical patent/CN118038449B/en
Publication of CN118038449A publication Critical patent/CN118038449A/en
Application granted granted Critical
Publication of CN118038449B publication Critical patent/CN118038449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/68Food, e.g. fruit or vegetables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Measuring Or Testing Involving Enzymes Or Micro-Organisms (AREA)

Abstract

The invention claims a breeding method and application of edible fungus strains, which comprises the steps of dividing a colony growth image of edible fungus to be selected into grids, outputting a plurality of colony outline pixels of the edible fungus to form a colony outline pixel grid set of the edible fungus; training an edible fungus colony integrity recognition model, detecting metadata of a plurality of edible fungus colony contour pixels, and outputting attribute metadata sets of grids; matching degree comparison is carried out on the attribute metadata sets of the target edible fungus colonies between two grids in the outline pixels of the plurality of edible fungus colonies by using a comparison algorithm, and a first colony shape of the target edible fungus colonies is output; and carrying out superposition treatment and interruption monitoring treatment on the first colony shape, and outputting a second colony shape of the target edible fungus colony. According to the invention, the loss rate caused by errors and shielding overlapping is reduced, the edible fungus colony is predicted, interrupted and monitored by utilizing color calculation and historical appearance information, the robustness of the appearance graph is improved, and the dependence on hardware is reduced.

Description

一种食用菌菌种的选育方法与应用A method for breeding edible fungi and its application

技术领域Technical Field

本发明属于计算机辅助食用菌菌落分析技术领域,尤其地,涉及一种食用菌菌种的选育方法与应用。The invention belongs to the technical field of computer-aided edible fungus colony analysis, and in particular, relates to a breeding method and application of edible fungus strains.

背景技术Background technique

食用菌的种类较多,常用的食用菌包括香菇、草菇、蘑菇、木耳、银耳、猴头、竹荪等,食用菌的形状各种各样,其中伞状食用菌子实体的各部分自上而下分别称为菌盖、菌褶、菌柄和菌环,菌盖是伞状食用菌最主要的可食部分,而菌盖完整度反映了伞状食用菌的开伞程度和鲜嫩程度,菌盖完整度即食用菌完整度,因此食用菌完整度是评价食用菌品质的最重要指标。There are many types of edible fungi. Commonly used edible fungi include shiitake mushrooms, straw mushrooms, button mushrooms, black fungus, white fungus, hericium, bamboo fungus, etc. Edible fungi have various shapes. The parts of the fruiting body of umbrella-shaped edible fungi are called cap, gills, stipe and ring from top to bottom. The cap is the most important edible part of the umbrella-shaped edible fungi, and the integrity of the cap reflects the degree of opening and freshness of the umbrella-shaped edible fungi. The integrity of the cap is the integrity of the edible fungi. Therefore, the integrity of edible fungi is the most important indicator for evaluating the quality of edible fungi.

食用菌完整度不同对应的食用菌分级也不相同,但是现有技术中并不能准确的快速计算出食用菌的完整度,主要由于食用菌的内完整边缘在未全开伞之前只能识别出部分的完整轮廓边缘,而不能识别出完整的完整轮廓边缘,而根据部分完整轮廓边缘不能准确的计算出食用菌的完整度,因此就对食用菌的准确分级造成了困难,也就不能实现根据食用菌完整度对食用菌进行准确分级。Different degrees of integrity of edible fungi correspond to different edible fungi grading, but the prior art cannot accurately and quickly calculate the integrity of edible fungi, mainly because the inner complete edge of the edible fungi can only identify a partial complete outline edge before the umbrella is fully opened, but cannot identify a complete complete outline edge, and the integrity of the edible fungi cannot be accurately calculated based on the partial complete outline edge, which makes it difficult to accurately grade the edible fungi, and it is impossible to accurately grade the edible fungi according to their integrity.

发明内容Summary of the invention

鉴于上述缺陷,本发明的目的在于提供食用菌菌种的选育方法和装置,旨在提出数据引擎降低数据集制作成本,提高对比准确率,降低遮挡和重叠对目标监测的影响并降低漏检和误检导致的误差,减少算法对硬件的依赖性。In view of the above-mentioned defects, the purpose of the present invention is to provide a method and device for breeding edible fungi species, aiming to propose a data engine to reduce the cost of data set production, improve comparison accuracy, reduce the impact of occlusion and overlap on target monitoring, reduce errors caused by missed detection and false detection, and reduce the algorithm's dependence on hardware.

根据本发明第一方面,本发明请求保护一种食用菌菌种的选育方法,其特征在于,包括:According to the first aspect of the present invention, the present invention claims protection for a method for breeding edible fungi, characterized in that it comprises:

将待选种食用菌菌落生长图像进行网格划分,输出多个食用菌菌落轮廓像素,构成食用菌菌落轮廓像素网格集;Divide the growth image of the edible fungus colony to be selected into a grid, output a plurality of edible fungus colony outline pixels, and form an edible fungus colony outline pixel grid set;

训练食用菌菌落完整性识别模型,对所述多个食用菌菌落轮廓像素进行元数据检测,输出各网格的属性元数据集;Training an edible mushroom colony integrity recognition model, performing metadata detection on the plurality of edible mushroom colony outline pixels, and outputting an attribute metadata data set of each grid;

使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形;Using a comparison algorithm, a matching comparison is performed on the attribute metadata data set of the target edible fungus colony between two grids in the plurality of edible fungus colony outline pixels, and a first colony shape of the target edible fungus colony is output;

对所述第一菌落外形进行叠加处理和中断监测处理,输出所述目标食用菌菌落的第二菌落外形;Performing superposition processing and interruption monitoring processing on the first colony shape, and outputting a second colony shape of the target edible fungus colony;

将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌。The target edible fungus colony with the second colony appearance that meets the preset conditions is used as the edible fungus for breeding.

进一步地,对所述第一菌落外形进行叠加处理,还包括:Furthermore, the first bacterial colony shape is subjected to superposition processing, and further includes:

从所述第一菌落外形中获取外形内廓出现在非第一网格的区域中间处的局部外形,输出局部外形网格集Obtain the local shape where the inner contour of the shape appears in the middle of the area other than the first grid from the first colony shape, and output the local shape grid set ;

检测,若外形/>存在网格不全的场景则在网格不全处中断输出新外形加入网格集/>Detection , if the appearance/> In scenes where there is an incomplete mesh, the new shape will be output at the incomplete mesh and added to the mesh set/> ;

的内廓像素的邻域内查询中断部分网格的外形和外形终止的外形输出网格集/>,对于网格集中中断网格的外形,比较中断位置与/>内廓像素是否连续以及中断网格数和/>特征值是否相同,当均连续且相同时选育在/>中,否则清除;exist The neighborhood of the inner contour pixel is used to query the outer shape of the interrupted part of the grid and the outer shape of the terminated grid set. , for the appearance of the interrupted grid in the grid set, compare the interruption position with /> Whether the inner outline pixels are continuous and the number of interrupted grids and/> Whether the characteristic values are the same, if they are continuous and the same, breeding is carried out in/> In, otherwise clear;

对网格集中的外形按照生长曲线姿态最相似以及内外距离最近的策略输出理想叠加外形,将叠加到理想叠加外形之上,输出的新外形记为叠加外形/>For the shapes in the grid set, the ideal superimposed shape is output according to the strategy of the most similar growth curve posture and the closest inner and outer distance. Superimposed on the ideal superimposed shape, the output new shape is recorded as the superimposed shape/> ;

检测外形的外廓,若外廓靠近边缘或外廓所在网格为生长图像的最后一网格则将/>外形从网格集/>中清除,否则在/>的外廓像素所处在的网格的下一网格中查询是否存在内廓像素在外廓像素相邻位置处的外形,若存在外形则按照生长曲线姿态最相似、内外距离最近的策略输出理想叠加外形,将/>局部外形与理想叠加外形叠加,将叠加的外形记为叠加外形/>Detection The outline of the shape. If the outline is close to the edge or the grid where the outline is located is the last grid of the growth image, then / > Shape from mesh set/> in the clear, otherwise in /> In the next grid of the grid where the outer contour pixel is located, check whether there is an outer contour pixel at the adjacent position of the outer contour pixel. If there is an outer contour, output the ideal superimposed outer contour according to the strategy of the most similar growth curve posture and the closest inner and outer distance. The local shape is superimposed on the ideal superimposed shape, and the superimposed shape is recorded as the superimposed shape/> ;

循环直到为空或者网格集长度不再变化时清除/>中的外形。Loop until Cleared when empty or the grid set length no longer changes /> The appearance of the .

进一步地,所述训练食用菌菌落完整性识别模型前,还包括:Furthermore, before training the edible fungus colony integrity recognition model, the method further includes:

模型预处理,包括:Model preprocessing, including:

对食用菌菌落完整性识别模型的表面网格进行分析处理,提取所需的食用菌菌落信息;Analyze and process the surface grid of the edible fungus colony integrity recognition model to extract the required edible fungus colony information;

计算菌落节点之间的网格与所附着菌落节点的生长重要度以及菌落的几何特征值;Calculate the growth importance of the grid between the colony nodes and the attached colony nodes as well as the geometric characteristic values of the colony;

将处理过的食用菌菌落信息保存在菌落树状机构中,剔除与菌落捕捉无关的多余信息。The processed edible fungus colony information is stored in a colony tree structure, and redundant information irrelevant to colony capture is eliminated.

进一步地,所述训练食用菌菌落完整性识别模型,还包括:Furthermore, the training of the edible fungus colony integrity recognition model further includes:

获取包括圆形状物分割结果的样本食用菌菌落图像作为训练数据;Acquire a sample edible mushroom colony image including a circular object segmentation result as training data;

提取所述样本食用菌菌落图像中的圆形状物的外接矩形;Extracting the circumscribed rectangle of the circular object in the sample edible fungus colony image;

对所述外接矩形提取步骤提取的外接矩形进行去噪,输出去噪后的外接矩形;De-noising the bounding rectangle extracted in the bounding rectangle extraction step, and outputting the de-noised bounding rectangle;

设定将包含所述去噪后的外接矩形的像素矩阵作为重要度矩阵的损失函数;A loss function is set to use a pixel matrix containing the denoised circumscribed rectangle as an importance matrix;

使用所述损失函数设定步骤设定的所述损失函数,对所述训练数据进行学习,从而输出用于分割所述食用菌菌落图像中的所述圆形状物的分割模型。The training data is learned using the loss function set in the loss function setting step, thereby outputting a segmentation model for segmenting the circular object in the edible mushroom colony image.

进一步地,所述使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形,还包括:Furthermore, the method of using a comparison algorithm to compare the matching degree of the attribute metadata data set of the target edible fungus colony between two grids in the plurality of edible fungus colony outline pixels and outputting a first colony shape of the target edible fungus colony also includes:

所述对比算法为使用多策略对比方法,包括独立元数据最相似策略、平均生长曲线自稳策略;The comparison algorithm uses a multi-strategy comparison method, including the most similar independent metadata strategy and the average growth curve self-stabilization strategy;

所述独立元数据最相似策略为食用菌菌落从第k-1网格生长到第k网格通过食用菌菌落识别模型中输出的特征匹配度最高;The independent metadata most similar strategy is that the edible fungus colony grows from the k-1th grid to the kth grid through the edible fungus colony recognition model output with the highest feature matching degree;

所述平均生长曲线自稳策略指食用菌菌落从第k-1网格生长到第k网格的位移平均生长曲线长度和姿态特征匹配度最高;The average growth curve self-stabilization strategy refers to the highest matching degree between the average growth curve length of the displacement of the edible fungus colony growing from the k-1 grid to the k grid and the posture characteristics;

所述独立元数据最相似策略、平均生长曲线自稳策略的所占重要度不同,其中所述独立元数据最相似策略所占重要度大于所述平均生长曲线自稳策略所占重要度。The importance of the independent metadata most similar strategy and the average growth curve self-stabilizing strategy is different, wherein the importance of the independent metadata most similar strategy is greater than the importance of the average growth curve self-stabilizing strategy.

进一步地,该方法还包括:Furthermore, the method further comprises:

计算第k-1网格的食用菌菌落与第k网格的/>食用菌菌落的特征匹配度/>,输出对应的对比度/>,根据生长曲线自稳策略输出对应的对比度/>,按照预设重要度加和输出最终的对比度/>Calculate the edible mushroom colony in the k-1th grid With the kth grid/> Characteristic matching degree of edible fungus colonies/> , output the corresponding contrast/> , output the corresponding contrast according to the growth curve self-stabilization strategy/> , sum up and output the final contrast according to the preset importance/> ;

结合当存在选育监测的网格缺失对比场景,计算出第k-1网格中所有食用菌菌落与第k网格中食用菌菌落的输出对比度矩阵;使用所述对比算法对第k-1网格和第k网格中食用菌菌落进行对比;循环对比直到所有相邻网格完成对比,输出目标食用菌菌落的第一菌落外形。Combined with the grid missing comparison scenario when there is breeding monitoring, the ratio of all edible fungi colonies in the k-1th grid to the edible fungi colonies in the kth grid is calculated. Output a contrast matrix; use the contrast algorithm to compare the edible fungus colonies in the k-1th grid and the kth grid; perform a cyclic comparison until all adjacent grids are compared, and output a first colony shape of the target edible fungus colony.

进一步地,计算食用菌菌落的特征匹配度,还包括:距离计算公式如下: Furthermore, the characteristic matching degree of the edible fungus colony is calculated, and the distance Calculated as follows:

其中,、/>为k网格中的食用菌菌落/>的定位,/>、/>为k-1网格中的食用菌菌落m的定位;in, 、/> is the edible mushroom colony in the k grid/> Positioning, /> 、/> is the location of the edible mushroom colony m in the k-1 grid;

特征匹配度使用公式:The feature matching formula is: ;

其中为第k-1网格中的食用菌菌落/>特征的向量描述,为第i网格中的食用菌菌落/>特征,对结果进行修正输出/>in is the edible fungus colony in the k-1th grid/> A vector description of the feature, is the edible fungus colony in the i-th grid/> Features, correct the results and output /> ;

平均生长曲线自稳策略在判断k-1网格的食用菌菌落在第k网格出现在与点(/>)相距/>处同时考虑/>的姿态方向向量值/>不在下一网格出现异常变化,使用公式:/>其中/>为双曲余弦函数,/>为相关系数,/>为第k-1网格的食用菌菌落l的生长曲线长度,为第k网格食用菌菌落l和第k-1网格食用菌菌落k的夹角,/>为第k-1网格的食用菌菌落l的生长曲线姿态方向向量值;The average growth curve self-stabilization strategy is used to determine the edible fungus colony in the k-1 grid The kth grid appears at the point (/> )distance/> Consider at the same time/> The attitude direction vector value/> No abnormal changes will occur in the next grid. Use the formula: /> Where/> is the hyperbolic cosine function,/> is the correlation coefficient, /> is the growth curve length of the edible fungus colony l in the k-1th grid, is the angle between the kth grid edible fungus colony l and the k-1th grid edible fungus colony k, /> is the growth curve attitude direction vector value of the edible fungus colony l in the k-1th grid;

按照重要度加和输出总对比度/>According to importance Add and output total contrast /> ;

进一步的,对所述第一菌落外形进行中断监测处理,还包括:Further, interrupting monitoring of the first bacterial colony shape also includes:

获取所述叠加外形中间有中断的外形,如果中断第k网格,则计算食用菌菌落的色泽信息,输出色泽RGB均值/>和色泽边界长度/>以及食用菌菌落的生长曲线姿态方向向量值/>和生长曲线长度/>Get the shape with interruption in the middle of the superimposed shape. If the kth grid is interrupted, calculate the edible fungus colony Color information, output color RGB mean /> and color boundary length/> And the growth curve attitude direction vector value of the edible fungus colony/> and growth curve length/> ;

按照预设重要度加和色泽和生长曲线输出像素评价姿态得分为,像素评价长度为According to the preset importance, color and growth curve, the pixel evaluation posture score is output as follows: , the pixel evaluation length is ;

和/>为权重系数; and/> is the weight coefficient;

将评价像素作为外形加入到所述叠加外形中,循环直到整个外形图形完整,输出所述目标食用菌菌落的第二菌落外形。The evaluation pixels are added as the outline to the superimposed outline, and the cycle is repeated until the entire outline graphic is complete, and the second colony outline of the target edible fungus colony is output.

进一步地,将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌,还包括:Further, the target edible fungus colony with the second colony shape that meets the preset conditions is used as the edible fungus for breeding, and further includes:

检测所述第二菌落外形的目标食用菌菌落的组成品质,所述组成品质包括微生物含量、污染物含量和有害化学品含量中的至少一种;Detecting the composition quality of the target edible fungus colony of the second colony shape, wherein the composition quality includes at least one of a microbial content, a pollutant content, and a harmful chemical content;

基于所述待选种食用菌的所述组成品质,确定选育食用菌。Based on the component qualities of the edible fungi to be selected, the edible fungi to be bred are determined.

进一步地,根据本发明第二方面,本发明请求保护所述的方法在食用菌菌种选育中的应用。Furthermore, according to the second aspect of the present invention, the present invention seeks to protect the application of the method described in the breeding of edible fungi strains.

本发明的方案通过训练食用菌菌落目标识别模型,利用该模型自动的检测出图片序列中每一网格中的食用菌菌落目标,同时将每个食用菌菌落目标的特征描述向量保存用于对比,在对比时使用多策略对比,提高了配准率,使用选育监测网格缺失对比的方法降低了由于误差以及遮挡重叠导致的丢失率,使用叠加处理优化外形图形,利用色泽计算和历史外形信息对食用菌菌落进行预测中断监测,提高了外形图形的鲁棒性降低对硬件的依赖。The scheme of the present invention trains an edible fungus colony target recognition model, uses the model to automatically detect the edible fungus colony targets in each grid in the image sequence, and saves the feature description vector of each edible fungus colony target for comparison. During the comparison, multi-strategy comparison is used to improve the registration rate, and the loss rate due to errors and occlusion overlap is reduced by using a breeding monitoring grid missing comparison method. The shape graphics are optimized by using overlay processing, and the edible fungus colony is predicted and interrupted for monitoring by using color calculation and historical shape information, thereby improving the robustness of the shape graphics and reducing the dependence on hardware.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明实施例涉及的一种食用菌菌种的选育方法的工作流程图。FIG. 1 is a flowchart of a method for selecting and breeding edible fungi according to an embodiment of the present invention.

图2为本发明实施例涉及的一种食用菌菌种的选育方法的第二工作流程图。FIG. 2 is a second workflow diagram of a method for breeding edible fungi species according to an embodiment of the present invention.

图3为本发明实施例涉及的一种食用菌菌种的选育方法的第三工作流程图。FIG. 3 is a third workflow diagram of a method for selecting and breeding edible fungi according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图对本发明中的实例进行清楚详尽的阐述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the accompanying drawings to clearly and thoroughly describe the examples in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

根据本发明第一实施例,参照附图1,本发明请求保护一种食用菌菌种的选育方法,包括:According to the first embodiment of the present invention, referring to FIG1 , the present invention claims protection for a method for breeding edible fungi, comprising:

将待选种食用菌菌落生长图像进行网格划分,输出多个食用菌菌落轮廓像素,构成食用菌菌落轮廓像素网格集;Divide the growth image of the edible fungus colony to be selected into a grid, output a plurality of edible fungus colony outline pixels, and form an edible fungus colony outline pixel grid set;

训练食用菌菌落完整性识别模型,对所述多个食用菌菌落轮廓像素进行元数据检测,输出各网格的属性元数据集;Training an edible mushroom colony integrity recognition model, performing metadata detection on the plurality of edible mushroom colony outline pixels, and outputting an attribute metadata data set of each grid;

使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形;Using a comparison algorithm, a matching comparison is performed on the attribute metadata data set of the target edible fungus colony between two grids in the plurality of edible fungus colony outline pixels, and a first colony shape of the target edible fungus colony is output;

对所述第一菌落外形进行叠加处理和中断监测处理,输出所述目标食用菌菌落的第二菌落外形;Performing superposition processing and interruption monitoring processing on the first colony shape, and outputting a second colony shape of the target edible fungus colony;

将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌。The target edible fungus colony with the second colony appearance that meets the preset conditions is used as the edible fungus for breeding.

进一步地,对所述第一菌落外形进行叠加处理,还包括:Furthermore, the first bacterial colony shape is subjected to superposition processing, and further includes:

从所述第一菌落外形中获取外形内廓出现在非第一网格的区域中间处的局部外形,输出局部外形网格集Obtain the local shape where the inner contour of the shape appears in the middle of the area other than the first grid from the first colony shape, and output the local shape grid set ;

检测,若外形/>存在网格不全的场景则在网格不全处中断输出新外形加入网格集/>Detection , if the appearance/> In scenes where there is an incomplete mesh, the new shape will be output at the incomplete mesh and added to the mesh set/> ;

的内廓像素的邻域内查询中断部分网格的外形和外形终止的外形输出网格集/>,对于网格集中中断网格的外形,比较中断位置与/>内廓像素是否连续以及中断网格数和/>特征值是否相同,当均连续且相同时选育在/>中,否则清除;exist The neighborhood of the inner contour pixel is used to query the outer shape of the interrupted part of the grid and the outer shape of the terminated grid set. , for the appearance of the interrupted grid in the grid set, compare the interruption position with /> Whether the inner outline pixels are continuous and the number of interrupted grids and/> Whether the characteristic values are the same, if they are continuous and the same, breeding is carried out in/> In, otherwise clear;

对网格集中的外形按照生长曲线姿态最相似以及内外距离最近的策略输出理想叠加外形,将叠加到理想叠加外形之上,输出的新外形记为叠加外形/>For the shapes in the grid set, the ideal superimposed shape is output according to the strategy of the most similar growth curve posture and the closest inner and outer distance. Superimposed on the ideal superimposed shape, the output new shape is recorded as the superimposed shape/> ;

检测外形的外廓,若外廓靠近边缘或外廓所在网格为生长图像的最后一网格则将/>外形从网格集/>中清除,否则在/>的外廓像素所处在的网格的下一网格中查询是否存在内廓像素在外廓像素相邻位置处的外形,若存在外形则按照生长曲线姿态最相似、内外距离最近的策略输出理想叠加外形,将/>局部外形与理想叠加外形叠加,将叠加的外形记为叠加外形/>Detection The outline of the shape. If the outline is close to the edge or the grid where the outline is located is the last grid of the growth image, then / > Shape from mesh set/> in the clear, otherwise in /> In the next grid of the grid where the outer contour pixel is located, check whether there is an outer contour pixel at the adjacent position of the outer contour pixel. If there is an outer contour, output the ideal superimposed outer contour according to the strategy of the most similar growth curve posture and the closest inner and outer distance. The local shape is superimposed on the ideal superimposed shape, and the superimposed shape is recorded as the superimposed shape/> ;

循环直到为空或者网格集长度不再变化时清除/>中的外形。Loop until Cleared when empty or the grid set length no longer changes /> The appearance of the .

进一步地,所述训练食用菌菌落完整性识别模型前,还包括:Furthermore, before training the edible fungus colony integrity recognition model, the method further includes:

参照图2,模型预处理,包括:Referring to Figure 2, model preprocessing includes:

对食用菌菌落完整性识别模型的表面网格进行分析处理,提取所需的食用菌菌落信息;Analyze and process the surface grid of the edible fungus colony integrity recognition model to extract the required edible fungus colony information;

计算菌落节点之间的网格与所附着菌落节点的生长重要度以及菌落的几何特征值;Calculate the growth importance of the grid between the colony nodes and the attached colony nodes as well as the geometric characteristic values of the colony;

将处理过的食用菌菌落信息保存在菌落树状机构中,剔除与菌落捕捉无关的多余信息。The processed edible fungus colony information is stored in a colony tree structure, and redundant information irrelevant to colony capture is eliminated.

进一步地,参照图3,所述训练食用菌菌落完整性识别模型,还包括:Further, referring to FIG. 3 , the training edible fungus colony integrity recognition model further includes:

获取包括圆形状物分割结果的样本食用菌菌落图像作为训练数据;Acquire a sample edible mushroom colony image including a circular object segmentation result as training data;

提取所述样本食用菌菌落图像中的圆形状物的外接矩形;Extracting the circumscribed rectangle of the circular object in the sample edible fungus colony image;

对所述外接矩形提取步骤提取的外接矩形进行去噪,输出去噪后的外接矩形;De-noising the bounding rectangle extracted in the bounding rectangle extraction step, and outputting the de-noised bounding rectangle;

设定将包含所述去噪后的外接矩形的像素矩阵作为重要度矩阵的损失函数;A loss function is set to use a pixel matrix containing the denoised circumscribed rectangle as an importance matrix;

使用所述损失函数设定步骤设定的所述损失函数,对所述训练数据进行学习,从而输出用于分割所述食用菌菌落图像中的所述圆形状物的分割模型。The training data is learned using the loss function set in the loss function setting step, thereby outputting a segmentation model for segmenting the circular object in the edible mushroom colony image.

进一步地,所述使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形,还包括:Furthermore, the method of using a comparison algorithm to compare the matching degree of the attribute metadata data set of the target edible fungus colony between two grids in the plurality of edible fungus colony outline pixels and outputting a first colony shape of the target edible fungus colony also includes:

所述对比算法为使用多策略对比方法,包括独立元数据最相似策略、平均生长曲线自稳策略;The comparison algorithm uses a multi-strategy comparison method, including the most similar independent metadata strategy and the average growth curve self-stabilization strategy;

所述独立元数据最相似策略为食用菌菌落从第k-1网格生长到第k网格通过食用菌菌落识别模型中输出的特征匹配度最高;The independent metadata most similar strategy is that the edible fungus colony grows from the k-1th grid to the kth grid through the edible fungus colony recognition model output with the highest feature matching degree;

所述平均生长曲线自稳策略指食用菌菌落从第k-1网格生长到第k网格的位移平均生长曲线长度和姿态特征匹配度最高;The average growth curve self-stabilization strategy refers to the highest matching degree between the average growth curve length of the displacement of the edible fungus colony growing from the k-1 grid to the k grid and the posture characteristics;

所述独立元数据最相似策略、平均生长曲线自稳策略的所占重要度不同,其中所述独立元数据最相似策略所占重要度大于所述平均生长曲线自稳策略所占重要度。The importance of the independent metadata most similar strategy and the average growth curve self-stabilizing strategy is different, wherein the importance of the independent metadata most similar strategy is greater than the importance of the average growth curve self-stabilizing strategy.

进一步地,该方法还包括:Furthermore, the method further comprises:

计算第k-1网格的食用菌菌落与第k网格的/>食用菌菌落的特征匹配度/>,输出对应的对比度/>,根据生长曲线自稳策略输出对应的对比度/>,按照预设重要度加和输出最终的对比度/>Calculate the edible mushroom colony in the k-1th grid With the kth grid/> Characteristic matching degree of edible fungus colonies/> , output the corresponding contrast/> , output the corresponding contrast according to the growth curve self-stabilization strategy/> , sum up and output the final contrast according to the preset importance/> ;

结合当存在选育监测的网格缺失对比场景,计算出第k-1网格中所有食用菌菌落与第k网格中食用菌菌落的输出对比度矩阵;使用所述对比算法对第k-1网格和第k网格中食用菌菌落进行对比;循环对比直到所有相邻网格完成对比,输出目标食用菌菌落的第一菌落外形。Combined with the grid missing comparison scenario when there is breeding monitoring, the ratio of all edible fungi colonies in the k-1th grid to the edible fungi colonies in the kth grid is calculated. Output a contrast matrix; use the contrast algorithm to compare the edible fungus colonies in the k-1th grid and the kth grid; perform a cyclic comparison until all adjacent grids are compared, and output a first colony shape of the target edible fungus colony.

进一步地,计算食用菌菌落的特征匹配度,还包括:距离计算公式如下:Furthermore, the characteristic matching degree of the edible fungus colony is calculated, and the distance Calculated as follows: ;

其中,、/>为k网格中的食用菌菌落/>的定位,/>、/>为k-1网格中的食用菌菌落m的定位;in, 、/> is the edible mushroom colony in the k grid/> Positioning, /> 、/> is the location of the edible mushroom colony m in the k-1 grid;

特征匹配度使用公式:The feature matching formula is: ;

其中为第k-1网格中的食用菌菌落/>特征的向量描述,为第i网格中的食用菌菌落/>特征,对结果进行修正输出/>in is the edible fungus colony in the k-1th grid/> A vector description of the feature, is the edible fungus colony in the i-th grid/> Features, correct the results and output /> ;

平均生长曲线自稳策略在判断k-1网格的食用菌菌落在第k网格出现在与点(/>)相距/>处同时考虑/>的姿态方向向量值/>不在下一网格出现异常变化,使用公式:/>,其中/>为双曲余弦函数,/>为相关系数,/>为第k-1网格的食用菌菌落l的生长曲线长度,为第k网格食用菌菌落l和第k-1网格食用菌菌落k的夹角,/>为第k-1网格的食用菌菌落l的生长曲线姿态方向向量值;The average growth curve self-stabilization strategy is used to determine the edible fungus colony in the k-1 grid The kth grid appears at the point (/> ) is at a distance of/> Consider at the same time/> The attitude direction vector value/> No abnormal changes will occur in the next grid. Use the formula: /> , where/> is the hyperbolic cosine function,/> is the correlation coefficient, /> is the growth curve length of the edible fungus colony l in the k-1th grid, is the angle between the kth grid edible fungus colony l and the k-1th grid edible fungus colony k, /> is the growth curve attitude direction vector value of the edible fungus colony l in the k-1th grid;

按照重要度加和输出总对比度/>According to importance Add and output total contrast /> .

进一步的,对所述第一菌落外形进行中断监测处理,还包括:Further, interrupting monitoring of the first bacterial colony shape also includes:

获取所述叠加外形中间有中断的外形,如果中断第k网格,则计算食用菌菌落的色泽信息,输出色泽RGB均值/>和色泽边界长度/>以及食用菌菌落的生长曲线姿态方向向量值/>和生长曲线长度/>Get the shape with interruption in the middle of the superimposed shape. If the kth grid is interrupted, calculate the edible fungus colony Color information, output color RGB mean /> and color boundary length/> And the growth curve attitude direction vector value of the edible fungus colony/> and growth curve length/> ;

按照预设重要度加和色泽和生长曲线输出像素评价姿态得分为,像素评价长度为According to the preset importance, color and growth curve, the pixel evaluation posture score is output as follows: , the pixel evaluation length is ;

和/>为权重系数; and/> is the weight coefficient;

将评价像素作为外形加入到所述叠加外形中,循环直到整个外形图形完整,输出所述目标食用菌菌落的第二菌落外形。The evaluation pixels are added as the outline to the superimposed outline, and the cycle is repeated until the entire outline graphic is complete, and the second colony outline of the target edible fungus colony is output.

进一步地,将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌,还包括:检测所述第二菌落外形的目标食用菌菌落的组成品质,所述组成品质包括微生物含量、污染物含量和有害化学品含量中的至少一种;基于所述待选种食用菌的所述组成品质,确定选育食用菌。Furthermore, taking the target edible fungi colony with the second colony appearance that meets the preset conditions as the edible fungi for breeding also includes: detecting the composition quality of the target edible fungi colony with the second colony appearance, the composition quality including at least one of the microbial content, pollutant content and harmful chemical content; and determining the edible fungi for breeding based on the composition quality of the edible fungi to be selected.

其中,在该实施例中,使用对比算法对第k-1网格和第k网格中食用菌菌落进行对比时,包括:In this embodiment, when the comparison algorithm is used to compare the edible fungus colonies in the k-1th grid and the kth grid, it includes:

根据对比度矩阵,为每个食用菌菌落对比理想的对比对象,将食用菌菌落与其理想对比对象/>的对比度与门限值Q比较,大于门限值Q时,将/>加入到/>的监测的外形中,小于门限值Q则无法对比。According to the contrast matrix, each edible fungus colony is compared with an ideal contrast object. Its ideal comparison object/> The contrast is compared with the threshold value Q. When it is greater than the threshold value Q, / > Add to /> In the monitored appearance, if the value is less than the threshold value Q, it cannot be compared.

若出现无法对比的场景:If there is a scene that cannot be compared:

场景一,对于k-1网格中的食用菌菌落没有与之相对比的第k网格的食用菌菌落,此时由于现实食用菌菌落场景中食用菌菌落脱离区域导致无法对比,此时检测该食用菌菌落的位置是否出现在区域的边缘若是则不再监测该食用菌菌落。Scenario 1: For a colony of edible mushrooms in a k-1 grid There is no edible mushroom colony in the kth grid for comparison. At this time, the edible mushroom colony in the actual edible mushroom colony scene is out of the area and cannot be compared. At this time, it is detected whether the position of the edible mushroom colony appears at the edge of the area. If so, the edible mushroom colony is no longer monitored.

场景二,对于k网格中多出的未对比到的食用菌菌落,将其设置为新的监测对象,如果在接下来的网格中没有输出与之对比的食用菌菌落则不在监测该对象。Scenario 2: For the extra edible fungus colonies in the k grid that have not been compared, set them as new monitoring objects. If there is no edible mushroom colony in the grid for comparison, the object is not being monitored.

循环步骤直到对k-1网格中所有食用菌菌落完成对比步骤。The steps are repeated until the comparison step is completed for all edible fungi colonies in the k-1 grid.

假设生长图像共有F网格,每一网格都经过识别后输出每一网格的食用菌菌落网格集;/> Assume that there are F grids in the growth image, and each grid is identified and then the grid set of edible fungi colonies is output. ; />

其中,,监测就是将/>与/>,/>与/>,……,/>与/>中食用菌菌落进行对比的过程,/>是检测出的食用菌菌落个数每网格可能不同。in, , monitoring is to / > With/> ,/> With/> ,……,/> With/> The process of comparing edible fungi colonies in the The number of edible fungi colonies detected in each grid may be different.

设选育监测网格集为 Assume that the breeding monitoring grid set is

为进行与/>的对比时没有输出对比对象的所有食用菌菌落网格集。其中c为当前将要进行/>与/>的对比,/>为第x网格中的第a个食用菌菌落到目前为止没有输出任何对比对象,并且/>,/>当进行/>与/>的对比时会将/>中的所有食用菌菌落与/>进行对比,此时由于网格,失对比所有需要在对比时考虑食用菌菌落实际生长了多少个网格,其对比度/>应该为:To carry out With/> When comparing, all the edible fungus colony grid sets of the comparison object are not output. Where c is the current grid set to be compared. With/> The comparison, /> For the a-th edible mushroom colony in the x-th grid, no comparison object has been output so far, and/> ,/> When conducting/> With/> When comparing the All edible fungi colonies in/> For comparison, due to the loss of contrast in the grid, it is necessary to consider how many grids the edible fungus colony actually grows in the comparison, and its contrast /> Should be: ;

例如:假设没有与/>中任何一个网格集的食用菌菌落对比成功,则将其加入到选育监测网格集/>中,在/>与/>对比时同样会将/>与/>进行对比;因此在对比时计算匹配度时/>需要考虑实际上生长了6个网格间隔,所以For example: Assume No with/> If the comparison of edible fungi colonies in any grid set is successful, it will be added to the breeding monitoring grid set/> In/> With/> When comparing, the same With/> Compare; therefore, when calculating the matching degree during the comparison/> Need to consider Actually it grows 6 grid intervals, so .

在该实施例中,首先需要计算总对比度矩阵,本发明中并未显式的使用距离策略,该策略包含在生长曲线自稳策略中,当平均生长曲线很小时就相当于距离最小策略。这可以避免食用菌菌落在区域中交汇时距离策略对对比度的干扰。In this embodiment, the total contrast matrix needs to be calculated first. The distance strategy is not explicitly used in the present invention. This strategy is included in the growth curve self-stabilization strategy. When the average growth curve is very small, it is equivalent to the minimum distance strategy. This can avoid the interference of the distance strategy on the contrast when the edible fungus colonies intersect in the area.

实例以第10网格与第11网格为例,为第9网格中与/>相关联的食用菌菌落,此时对比/>与/>,他们的位置分别为/>,属性元数据为/>,计算其距离,通过/>修正其值到0-1之间,通常/>取0.2,计算其匹配度/>通过修正得/>,通常/>取0.1,按照如上的距离公式计算食用菌菌落从第9网格到第10网格的位移作为其生长曲线/>,计算其生长曲线姿态/>,计算/>与/>的姿态,计算/>,计算总的对比度/>,继续循环计算直到计算出所有被监测的食用菌菌落与第11网格中食用菌菌落的总对比度输出对比度矩阵。这种选育监测,固定食用菌菌落在原位的网格缺失对比方法,可以降低由于预测算法带来的误差累积问题,使得配准率提高。Take the 10th and 11th grids as examples. For the 9th grid with /> The associated edible fungus colonies, at this time, are compared/> With/> , their positions are respectively/> , the attribute metadata is/> , calculate the distance , through/> Correct its value to between 0 and 1, usually/> Take 0.2 and calculate its matching degree/> By correcting /> , usually/> Take 0.1, and calculate the displacement of the edible fungus colony from the 9th grid to the 10th grid according to the above distance formula as its growth curve/> , calculate its growth curve posture/> , calculate/> With/> Posture , calculate/> , calculate the total contrast/> , continue the cycle calculation Until the total contrast between all monitored edible fungi colonies and the edible fungi colonies in the 11th grid is calculated, the contrast matrix is output. This breeding monitoring and fixed edible fungi colonies in situ grid missing contrast method can reduce the error accumulation problem caused by the prediction algorithm and improve the registration rate.

计算完对比度矩阵后经过对比流程,首先获取出被监测食用菌菌落在第11网格中最相关的食用菌菌落,食用菌菌落是获取出的与食用菌菌落/>最对比的对象,将与门限值Q比较,小于该值时则说明/>不是/>食用菌菌落,这也意味着第11网格中没有相对比的食用菌菌落,通常门限值Q取0.6。由于生长曲线姿态/>落以图像左上角为原点的第一象限中所以图像的右侧和下侧是食用菌菌落可能游出区域的边缘,计算/>和/>并于/>比较,当小于生长曲线时则说明在边缘,则不再监测该食用菌菌落,否则固定在第10网格的位置并选育监测。循环对所有待监测的对象进行检测。在该对比算法可以兼顾全局,输出整个对比过程中两个最相似的,不会出现非最大值抑制方法中更偏好先检测的食用菌菌落,使得先检测的食用菌菌落更容易获得对比对象的场景。并且考虑到食用菌菌落是否靠近区域边缘,减少了选育监测的对象降低了计算的复杂度。After calculating the contrast matrix, the most relevant edible fungus colony in the 11th grid is obtained through the comparison process. It is obtained from the edible fungus colony/> The most contrasting object will be Compared with the threshold value Q, if it is less than this value, it means /> No/> Edible mushroom colonies, which also means There is no contrasting edible fungus colony in the 11th grid, and the threshold value Q is usually 0.6. It falls in the first quadrant with the upper left corner of the image as the origin. So the right and bottom sides of the image are the edges of the area where the edible fungus colony may swim out. Calculate/> and/> And in/> When the comparison is less than the growth curve, it means that it is at the edge, and the edible fungus colony will no longer be monitored. Otherwise, it will be fixed at the position of the 10th grid and selected for monitoring. All objects to be monitored are detected in a loop. In this comparison algorithm, the overall situation can be taken into account, and the two most similar ones are output in the entire comparison process. There will be no preference for the first detected edible fungus colony in the non-maximum suppression method, making it easier for the first detected edible fungus colony to obtain the comparison object. And considering whether the edible fungus colony is close to the edge of the area, the objects of selective monitoring are reduced, which reduces the complexity of calculation.

进一步的,对第一菌落外形进行叠加处理,还包括:Furthermore, the first bacterial colony shape is subjected to superposition processing, and further includes:

根据输出的食用菌菌落外形图形后,可用于食用菌菌落分析,首先通过食用菌菌落识别模型输出的食用菌菌落可以输出生长图像时间内区域中平均的食用菌菌落个数,辅助检测人员进行计数,其次可以根据外形图形对食用菌菌落的生长参数进行计算,可以检测食用菌菌落的生长类别,以及食用菌菌落的生长生长曲线。According to the output shape graphics of edible fungi colonies, it can be used for edible fungi colony analysis. Firstly, the edible fungi colonies output by the edible fungi colony recognition model can output the average number of edible fungi colonies in the area within the growth image time to assist detection personnel in counting. Secondly, the growth parameters of the edible fungi colonies can be calculated according to the shape graphics, and the growth category of the edible fungi colony and the growth curve of the edible fungi colony can be detected.

进一步地,根据本发明第二实施例,本发明请求保护所述的方法在食用菌菌种选育中的应用。Further, according to the second embodiment of the present invention, the present invention seeks to protect the application of the method described in the breeding of edible fungi strains.

本领域技术人员能够理解,本公开所披露的内容可以出现多种变型和改进。例如,以上所描述的各种设备或组件可以通过硬件实现,也可以通过软件、固件、或者三者中的一些或全部的组合实现。Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various variations and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.

本公开中使用了流程图用来说明根据本公开的实施例的方法的步骤。应当理解的是,前面或后面的步骤不一定按照顺序来精确的进行。相反,可以按照倒序或同时处理各种步骤。同时,也可以将其他处理添加到这些过程中。Flowcharts are used in this disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other processing may also be added to these processes.

本领域普通技术人员可以理解上述方法中的全部或部分的步骤可通过计算机程序来指令相关硬件完成,程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以使用硬件的形式实现,也可以使用软件功能模块的形式实现。本公开并不限制于任何特定形式的硬件和软件的结合。Those skilled in the art will appreciate that all or part of the steps in the above method may be completed by instructing the relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. Optionally, all or part of the steps in the above embodiment may also be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.

除非另有定义,这里使用的所有术语具有与本公开所属领域的普通技术人员共同理解的相同含义。还应当理解,诸如在通常字典里定义的那些术语应当被解释为具有与它们在相关技术的上下文中的含义相一致的含义,而不应用理想化或极度形式化的意义来解释,除非这里明确地这样定义。Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.

以上是对本公开的说明,而不应被认为是对其的限制。尽管描述了本公开的若干示例性实施例,但本领域技术人员将容易地理解,在不背离本公开的新颖教学和优点的前提下可以对示例性实施例进行许多修改。因此,所有这些修改都意图包含在权利要求书所限定的本公开范围内。应当理解,上面是对本公开的说明,而不应被认为是限于所公开的特定实施例,并且对所公开的实施例以及其他实施例的修改意图包含在所附权利要求书的范围内。本公开由权利要求书及其等效物限定。The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的场景下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although embodiments of the present invention have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims (8)

1.一种食用菌菌种的选育方法,其特征在于,包括:1. A method for breeding edible fungi, comprising: 将待选种食用菌菌落生长图像进行网格划分,输出多个食用菌菌落轮廓像素,构成食用菌菌落轮廓像素网格集;Divide the growth image of the edible fungus colony to be selected into a grid, output a plurality of edible fungus colony outline pixels, and form an edible fungus colony outline pixel grid set; 训练食用菌菌落完整性识别模型,对所述多个食用菌菌落轮廓像素进行元数据检测,输出各网格的属性元数据集;Training an edible mushroom colony integrity recognition model, performing metadata detection on the plurality of edible mushroom colony outline pixels, and outputting an attribute metadata data set of each grid; 使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形;Using a comparison algorithm, a matching comparison is performed on the attribute metadata data set of the target edible fungus colony between two grids in the plurality of edible fungus colony outline pixels, and a first colony shape of the target edible fungus colony is output; 对所述第一菌落外形进行叠加处理和中断监测处理,输出所述目标食用菌菌落的第二菌落外形;Performing superposition processing and interruption monitoring processing on the first colony shape, and outputting a second colony shape of the target edible fungus colony; 将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌;The target edible fungus colony with the second colony shape that meets the preset conditions is used as the edible fungus for breeding; 对所述第一菌落外形进行叠加处理,还包括:The first bacterial colony shape is subjected to superposition processing, further comprising: 从所述第一菌落外形中获取外形内廓出现在非第一网格的区域中间处的局部外形,输出局部外形网格集Obtain the local shape where the inner contour of the shape appears in the middle of the area other than the first grid from the first colony shape, and output the local shape grid set ; 检测,若外形/>存在网格不全的场景则在网格不全处中断输出新外形加入网格集/>Detection , if the appearance/> In scenes where there is an incomplete mesh, the new shape will be output at the incomplete mesh and added to the mesh set/> ; 的内廓像素的邻域内查询中断部分网格的外形和外形终止的外形输出网格集,对于网格集中中断网格的外形,比较中断位置与/>内廓像素是否连续以及中断网格数和/>特征值是否相同,当均连续且相同时选育在/>中否则清除;exist The neighborhood of the inner contour pixel is used to query the shape of the interrupted part of the grid and the shape of the terminated shape to output the grid set , for the appearance of the interrupted grid in the grid set, compare the interruption position with /> Whether the inner outline pixels are continuous and the number of interrupted grids and/> Whether the characteristic values are the same, if they are continuous and the same, breeding is carried out in/> Otherwise clear; 对网格集中的外形按照生长曲线姿态最相似以及内外距离最近的策略输出理想叠加外形,将叠加到理想叠加外形之上,输出的新外形记为叠加外形/>For the shapes in the grid set, the ideal superimposed shape is output according to the strategy of the most similar growth curve posture and the closest inner and outer distance. Superimposed on the ideal superimposed shape, the output new shape is recorded as the superimposed shape/> ; 检测外形的外廓,若外廓靠近边缘或外廓所在网格为生长图像的最后一网格则将/>外形从网格集/>中清除,否则在/>的外廓像素所处在的网格的下一网格中查询是否存在内廓像素在外廓像素相邻位置处的外形,若存在外形则按照生长曲线姿态最相似、内外距离最近的策略输出理想叠加外形,将/>局部外形与理想叠加外形叠加,将叠加的外形记为叠加外形/>Detection The outline of the shape. If the outline is close to the edge or the grid where the outline is located is the last grid of the growth image, then / > Shape from mesh set/> in the clear, otherwise in /> In the next grid of the grid where the outer contour pixel is located, check whether there is an outer contour pixel at the adjacent position of the outer contour pixel. If there is an outer contour, output the ideal superimposed outer contour according to the strategy of the most similar growth curve posture and the closest inner and outer distance. The local shape is superimposed on the ideal superimposed shape, and the superimposed shape is recorded as the superimposed shape/> ; 循环直到为空或者网格集长度不再变化时清除/>中的外形;Loop until Cleared when empty or the grid set length no longer changes /> The appearance of 对所述第一菌落外形进行中断监测处理,还包括:The interruption monitoring process of the first bacterial colony shape also includes: 获取所述叠加外形中间有中断的外形,如果中断第k网格,则计算食用菌菌落的色泽信息,输出色泽RGB均值/>和色泽边界长度/>以及食用菌菌落的生长曲线姿态方向向量值/>和生长曲线长度/>Get the shape with interruption in the middle of the superimposed shape. If the kth grid is interrupted, calculate the edible fungus colony Color information, output color RGB mean /> and color boundary length/> And the growth curve attitude direction vector value of the edible fungus colony/> and growth curve length/> ; 按照预设重要度加和色泽和生长曲线输出像素评价姿态得分为According to the preset importance, color and growth curve, the pixel evaluation posture score is output as follows: ; 像素评价长度为The pixel evaluation length is ; 和/>为权重系数; and/> is the weight coefficient; 将评价像素作为外形加入到所述叠加外形中,循环直到整个外形图形完整,输出所述目标食用菌菌落的第二菌落外形。The evaluation pixels are added as the outline to the superimposed outline, and the cycle is repeated until the entire outline graphic is complete, and the second colony outline of the target edible fungus colony is output. 2.根据权利要求1所述的一种食用菌菌种的选育方法,其特征在于,所述训练食用菌菌落完整性识别模型前,还包括:模型预处理,包括:对食用菌菌落完整性识别模型的表面网格进行分析处理,提取所需的食用菌菌落信息;2. The method for selecting and breeding edible fungi according to claim 1, characterized in that before the training of the edible fungi colony integrity recognition model, it also includes: model preprocessing, including: analyzing and processing the surface grid of the edible fungi colony integrity recognition model to extract the required edible fungi colony information; 计算菌落节点之间的网格与所附着菌落节点的生长重要度以及菌落的几何特征值;Calculate the growth importance of the grid between the colony nodes and the attached colony nodes as well as the geometric characteristic values of the colony; 将处理过的食用菌菌落信息保存在菌落树状结构中,剔除与菌落捕捉无关的多余信息。The processed edible fungus colony information is stored in a colony tree structure, and redundant information irrelevant to colony capture is removed. 3.根据权利要求2所述的一种食用菌菌种的选育方法,其特征在于,所述训练食用菌菌落完整性识别模型,还包括:3. The method for selecting and breeding edible fungi according to claim 2, characterized in that the training edible fungi colony integrity recognition model further comprises: 获取包括圆形状物分割结果的样本食用菌菌落图像作为训练数据;Acquire a sample edible mushroom colony image including a circular object segmentation result as training data; 提取所述样本食用菌菌落图像中的圆形状物的外接矩形;Extracting the circumscribed rectangle of the circular object in the sample edible fungus colony image; 对所述外接矩形提取步骤提取的外接矩形进行去噪,输出去噪后的外接矩形;De-noising the bounding rectangle extracted in the bounding rectangle extraction step, and outputting the de-noised bounding rectangle; 设定将包含所述去噪后的外接矩形的像素矩阵作为重要度矩阵的损失函数;A loss function is set to use a pixel matrix containing the denoised circumscribed rectangle as an importance matrix; 使用所述损失函数设定步骤设定的所述损失函数,对所述训练数据进行学习,从而输出用于分割所述食用菌菌落图像中的所述圆形状物的分割模型。The training data is learned using the loss function set in the loss function setting step, thereby outputting a segmentation model for segmenting the circular object in the edible mushroom colony image. 4.根据权利要求3所述的一种食用菌菌种的选育方法,其特征在于,所述使用对比算法对所述多个食用菌菌落轮廓像素中两网格之间的目标食用菌菌落的属性元数据集进行匹配度对比,输出目标食用菌菌落的第一菌落外形,还包括:所述对比算法为使用多策略对比方法,包括独立元数据最相似策略、平均生长曲线自稳策略;4. The method for selecting and breeding edible fungi according to claim 3 is characterized in that the comparison algorithm is used to compare the matching degree of the attribute metadata data set of the target edible fungi colony between two grids in the plurality of edible fungi colony contour pixels, and output the first colony shape of the target edible fungi colony, and further comprises: the comparison algorithm is a multi-strategy comparison method, including the independent metadata most similarity strategy and the average growth curve self-stabilization strategy; 所述独立元数据最相似策略为食用菌菌落从第k-1网格生长到第k网格通过食用菌菌落识别模型中输出的特征匹配度最高;The independent metadata most similar strategy is that the edible fungus colony grows from the k-1th grid to the kth grid through the edible fungus colony recognition model output with the highest feature matching degree; 所述平均生长曲线自稳策略指食用菌菌落从第k-1网格生长到第k网格的位移平均生长曲线长度和姿态特征匹配度最高;The average growth curve self-stabilization strategy refers to the highest matching degree between the average growth curve length of the displacement of the edible fungus colony growing from the k-1 grid to the k grid and the posture characteristics; 所述独立元数据最相似策略、平均生长曲线自稳策略的所占重要度不同,其中所述独立元数据最相似策略所占重要度大于所述平均生长曲线自稳策略所占重要度。The importance of the independent metadata most similar strategy and the average growth curve self-stabilizing strategy is different, wherein the importance of the independent metadata most similar strategy is greater than the importance of the average growth curve self-stabilizing strategy. 5.根据权利要求4所述的一种食用菌菌种的选育方法,其特征在于,还包括:5. The method for breeding edible fungi according to claim 4, further comprising: 计算第k-1网格的食用菌菌落与第k网格的/>食用菌菌落的特征匹配度/>,输出对应的对比度/>,根据生长曲线自稳策略输出对应的对比度/>,按照预设重要度加和输出最终的对比度/>Calculate the edible mushroom colony in the k-1th grid With the kth grid/> Characteristic matching degree of edible fungus colonies/> , output the corresponding contrast/> , output the corresponding contrast according to the growth curve self-stabilization strategy/> , sum up and output the final contrast according to the preset importance/> ; 结合当存在选育监测的网格缺失对比场景,计算出第k-1网格中所有食用菌菌落与第k网格中食用菌菌落的输出对比度矩阵;Combined with the grid missing comparison scenario when there is breeding monitoring, the ratio of all edible fungi colonies in the k-1th grid to the edible fungi colonies in the kth grid is calculated. Output contrast matrix; 使用所述对比算法对第k-1网格和第k网格中食用菌菌落进行对比;Using the comparison algorithm to compare the edible fungus colonies in the k-1th grid and the kth grid; 循环对比直到所有相邻网格完成对比,输出目标食用菌菌落的第一菌落外形。The comparison is repeated until all adjacent grids have been compared, and the first colony shape of the target edible fungus colony is output. 6.根据权利要求5所述的一种食用菌菌种的选育方法,其特征在于,计算食用菌菌落的特征匹配度,还包括:6. The method for selecting and breeding edible fungi according to claim 5, characterized in that the step of calculating the characteristic matching degree of the edible fungi colony further comprises: 距离计算公式如下:distance Calculated as follows: ; 其中,、/>分别为k网格中的食用菌菌落/>的定位,/>,/>为k-1网格中的食用菌菌落m的定位;in, 、/> are the edible fungus colonies in the k grids respectively/> Positioning, /> ,/> is the location of the edible mushroom colony m in the k-1 grid; 特征匹配度使用公式:The feature matching formula is: ; 其中为第k-1网格中的食用菌菌落/>特征的向量描述,/>为第i网格中的食用菌菌落/>特征,对结果进行修正输出/>in is the edible fungus colony in the k-1th grid/> Vector description of features, /> is the edible fungus colony in the i-th grid/> Features, correct the results and output /> ; 平均生长曲线自稳策略在判断k-1网格的食用菌菌落在第k网格出现在与点()相距/>处同时考虑/>的姿态方向向量值/>不在下一网格出现异常变化,使用公式:/>The average growth curve self-stabilization strategy is used to determine the edible fungus colony in the k-1 grid The kth grid appears at the point ( )distance/> Consider at the same time/> The attitude direction vector value/> No abnormal changes will occur in the next grid. Use the formula: /> ; 其中为双曲余弦函数,/>为相关系数,/>为第k-1网格的食用菌菌落l的生长曲线长度,/>为第k网格食用菌菌落l和第k-1网格食用菌菌落k的夹角,为第k-1网格的食用菌菌落l的生长曲线姿态方向向量值;in is the hyperbolic cosine function,/> is the correlation coefficient, /> is the growth curve length of the edible fungus colony l in the k-1th grid, /> is the angle between the kth grid edible fungus colony l and the k-1th grid edible fungus colony k, is the growth curve attitude direction vector value of the edible fungus colony l in the k-1th grid; 按照重要度加和输出总对比度/>According to importance Add and output total contrast /> . 7.根据权利要求6所述的一种食用菌菌种的选育方法,其特征在于,将满足预设条件的第二菌落外形的目标食用菌菌落作为选育食用菌,还包括:7. The method for selecting edible fungi according to claim 6, characterized in that the target edible fungi colonies with the second colony shape that meets the preset conditions are used as the selected edible fungi, and further comprising: 检测所述第二菌落外形的目标食用菌菌落的组成品质,所述组成品质包括微生物含量、污染物含量和有害化学品含量中的至少一种;Detecting the composition quality of the target edible fungus colony of the second colony shape, wherein the composition quality includes at least one of a microbial content, a pollutant content, and a harmful chemical content; 基于所述待选种食用菌的所述组成品质,确定选育食用菌。Based on the component qualities of the edible fungi to be selected, the edible fungi to be selected are determined. 8.根据权利要求1-7任一项所述的方法在食用菌菌种选育中的应用。8. Use of the method according to any one of claims 1 to 7 in the breeding of edible fungi strains.
CN202410225185.XA 2024-02-29 2024-02-29 Breeding method and application of edible fungus strain Active CN118038449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410225185.XA CN118038449B (en) 2024-02-29 2024-02-29 Breeding method and application of edible fungus strain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410225185.XA CN118038449B (en) 2024-02-29 2024-02-29 Breeding method and application of edible fungus strain

Publications (2)

Publication Number Publication Date
CN118038449A CN118038449A (en) 2024-05-14
CN118038449B true CN118038449B (en) 2024-06-14

Family

ID=91000164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410225185.XA Active CN118038449B (en) 2024-02-29 2024-02-29 Breeding method and application of edible fungus strain

Country Status (1)

Country Link
CN (1) CN118038449B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015107770A1 (en) * 2014-01-14 2015-07-23 株式会社Screenホールディングス Cell colony region identification device, cell colony region identification method, and recording medium
CN108376403B (en) * 2018-01-30 2020-02-07 西安电子科技大学 Grid colony image segmentation method based on Hough circle transformation
WO2020012318A1 (en) * 2018-07-10 2020-01-16 Alma Mater Studiorum - Universita' Di Bologna Yeast strain usable against fungal infections in edible fungi
CN111414995B (en) * 2020-03-16 2023-05-19 北京君立康生物科技有限公司 Detection processing method and device for micro-target colony, electronic equipment and medium
CN113256580A (en) * 2021-05-20 2021-08-13 北京朴清科技有限公司 Automatic identification method for target colony characteristics
CN114066924A (en) * 2021-09-24 2022-02-18 中国科学院深圳先进技术研究院 Classification method of bacterial colonies

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Isolation, identification, and pathogenic effects of Trichoderma spp. from Auricularia auricula;Hui Dang 等;《Advanced Composites and Hybrid Materials》;20230508;第6卷(第2023期);1-22 *
产谷氨酰胺转胺酶的茂原链霉菌的发酵优化及诱变育种;田沛霖;《中国优秀硕士学位论文全文数据库 基础科学辑》;20131215(第(2013)12期);A006-57 *

Also Published As

Publication number Publication date
CN118038449A (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN111325764B (en) A method of fruit image contour recognition
CN107944427B (en) Dynamic face recognition method and computer readable storage medium
CN105046252B (en) A kind of RMB prefix code recognition methods
CN111079518B (en) Ground-falling abnormal behavior identification method based on law enforcement and case handling area scene
CN110415208A (en) An adaptive target detection method and its device, equipment, and storage medium
CN112164030A (en) Rapid detection method, device, computer equipment and storage medium for rice ear grains
CN115082780A (en) Multi-source heterogeneous image change detection method based on incremental difference learning network
CN114119437A (en) GMS-based image stitching method for improving moving object distortion
CN113723314A (en) Sugarcane stem node identification method based on YOLOv3 algorithm
CN111881803A (en) Livestock face recognition method based on improved YOLOv3
CN118038449B (en) Breeding method and application of edible fungus strain
CN113298808B (en) Method for repairing building shielding information in tilt-oriented remote sensing image
CN107944393B (en) The method of positioning the nose tip of the face
CN110084810A (en) A kind of Lung neoplasm image detecting method, model training method, device and storage medium
CN114677525A (en) Edge detection method based on binary image processing
CN109615610A (en) A defect detection method for medical band-aids based on YOLO v2-tiny
CN107832732A (en) Method for detecting lane lines based on ternary tree traversal
JP2005346222A (en) Sweat gland pore removing device, sweat gland pore removing method and sweat gland pore removing program
CN116309780A (en) Water gauge water level identification method based on target detection
CN108967246A (en) Shrimp seedling localization method
CN115131387A (en) Gasoline engine spray wall collision parameter automatic extraction method and system based on image processing
CN115063603A (en) Wood annual ring line accurate extraction and restoration method based on edge information
CN114140428A (en) Method and system for detection and identification of larch caterpillar pests based on YOLOv5
CN114283293A (en) A False Alarm Suppression Method for Infrared Target Detection
CN113361503B (en) An intelligent detection method and system for the number of garden trees based on UAV aerial photography

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Breeding method and application of an edible mushroom strain

Granted publication date: 20240614

Pledgee: Bank of China Limited by Share Ltd. Nanjing Xuanwu sub branch

Pledgor: NANJING KANGZHICHUN BIOLOGICAL TECHNOLOGY CO.,LTD.

Registration number: Y2024980043397