The embodiment of the present invention provides a method and device for jujube quality detection and polarization detection model generation. The method includes: obtaining the multi-angle polarization spectrum image of jujube to be detected; recognizing the physical and chemical characteristics of the multi-angle polarization spectrum image by the pre-generated jujube polarization detection model, obtaining the physical and chemical characteristics of the jujube to be detected, in which the jujube is described. The polarization detection model is pre-generated based on the multi-angle polarization spectrum image of jujube and the physical and chemical characteristics of jujube, and the quality of the jujube to be detected is determined based on the physical and chemical characteristics of the jujube to be detected. Thus, even in complex scenes, the physical and chemical characteristics of jujube to be detected can be accurately obtained through the multi-angle polarization spectrum image and the polarization detection model of jujube to be detected, and then the quality of jujube to be detected can be accurately determined by the physical and chemical characteristics of jujube to be detected.
【技术实现步骤摘要】
一种红枣品质检测、红枣偏振检测模型生成方法及装置
本专利技术实施例涉及农产品品质检测领域,尤其涉及一种红枣品质检测、红枣偏振检测模型生成方法及装置。
技术介绍
现在,对红枣品质进行检测,主要采用的是近红外检测模型。首先,采集红枣样品,并对红枣样品进行预处理(例如:将红枣样品粉碎);然后,获得红枣样品的近红外光谱图像,并通过红枣样品的近红外光谱图像获得红枣样品的光谱强度信息;最后,将红枣样品的光谱强度信息与近红外检测模型进行匹配,以获得红枣样品的组分信息,进而通过红枣样品的组分信息确定红枣品质。但是,在采用近红外检测模型对红枣品质进行检测时,由于近红外波段对场景亮度变化的灵敏度较低,在诸如场景亮度过高、场景亮度过低等复杂场景下,红枣的近红外光谱图像中红枣和环境背景的光谱差异并不明显,容易出现同物异谱或同谱异物的现象,导致获得的红枣的组分信息并不准确,进而导致红枣品质的检测结果不准确。
技术实现思路
鉴于上述问题,本专利技术实施例的目的是提供一种红枣品质检测、红枣偏振检测模型生成方法及装置,以解决在复杂场景下导致红枣品质的检测结果不准确的问题。为解决上述技术问题,本专利技术实施例提供如下技术方案:第一方面,本专利技术实施例提供一种红枣品质检测方法,所述方法包括:获得待检测红枣的多角度偏振光谱图像;通过预先生成的红枣偏振检测模型对所述多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征,其中,所述红枣偏振检测模型是基于红枣的多角度偏振光谱图像和红枣的理化特征预先生成的;基于所述待检测红枣的理化特征,确定所述待检测红枣的品质。第二方面,本专利技术实施例提供 ...
【技术保护点】
1.一种红枣品质检测方法,其特征在于,所述方法包括:获得待检测红枣的多角度偏振光谱图像;通过预先生成的红枣偏振检测模型对所述多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征,其中,所述红枣偏振检测模型是基于红枣的多角度偏振光谱图像和红枣的理化特征预先生成的;基于所述待检测红枣的理化特征,确定所述待检测红枣的品质。
【技术特征摘要】
1.一种红枣品质检测方法,其特征在于,所述方法包括:获得待检测红枣的多角度偏振光谱图像;通过预先生成的红枣偏振检测模型对所述多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征,其中,所述红枣偏振检测模型是基于红枣的多角度偏振光谱图像和红枣的理化特征预先生成的;基于所述待检测红枣的理化特征,确定所述待检测红枣的品质。2.根据权利要求1所述的方法,其特征在于,所述通过预先生成的红枣偏振检测模型对所述多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征,包括:从所述多角度偏振光谱图像中提取出偏振特征;将所述偏振特征输入所述红枣偏振检测模型进行理化特征识别,获得所述待检测红枣的理化特征。3.根据权利要求1所述的方法,其特征在于,所述通过预先生成的红枣偏振检测模型对所述多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征,包括:基于预先生成的枣叶偏振检测模型,将所述待检测红枣的多角度偏振光谱图像中的枣叶去除,其中,所述枣叶偏振检测模型是基于多尺度的枣叶的多角度偏振光谱图像预先生成的;通过预先生成的红枣偏振检测模型对去除枣叶后的待检测红枣的多角度偏振光谱图像进行理化特征识别,获得所述待检测红枣的理化特征。4.根据权利要求1所述的方法,其特征在于,所述基于所述待检测红枣的理化特征,确定所述待检测红枣的品质,包括:基于所述待检测红枣的理化特征,通过预先建立的理化特征与颜色值的对应关系,确定所述待检测红枣的理化特征所对应的颜色值;根据所述待检测红枣所对应的颜色值,对所述多角度偏振光谱图像进行图像填充颜色;基于图像填充颜色后的多角度偏振光谱图像,确定所述待检测红枣的品质。5.根据权利要求1所述的方法,其特征在于,在所述获得待检测红枣的多角度偏振光谱图像之前,所述方...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。