浙江农业学报

• 生物系统工程 • 上一篇    下一篇

基于双椭圆变化参数的香蕉形状描述方法

  

  1. (1. 湖北工程学院 物理与电子信息工程学院,湖北 孝感 432000;2.湖北工程学院 计算机与信息科学学院, 湖北 孝感 432000)
  • 出版日期:2016-03-25 发布日期:2016-04-07

Banana shape description method based on change parameters for double ellipses

  1. (1.School of Physics and Electronic Information Engineering, Hubei Engineering University, Xiaogan 432000, China; 2.School of Computer and Information Science, Hubei Engineering University, Xiaogan 432000, China)
  • Online:2016-03-25 Published:2016-04-07

摘要: 为实现香蕉外部形状的描述,提出一种基于双椭圆变化参数的香蕉形状描述方法。首先通过图像预处理获得对象物体的二值化图像,结合开源计算机视觉库(OPENCV)提供的库函数cv.fitEllipse进行二维点集的椭圆曲线拟合,并筛选出外接椭圆轮廓作为初始轮廓;然后在此基础上构造可变参数的外接椭圆和内接椭圆,以双椭圆叠合面积的大小为准则进行香蕉形状的拟合描述;最后提取描述香蕉形状的双椭圆参数作为特征参数,并运用该类参数对其他类型果蔬形状进行描述,判断该类特征参数的有效性。试验结果表明,所提出的方法简便易行,在AMD FX6300处理器平台上运算速度约0.1 s。算法采用C++语言编写,能够应用于水果分类包装自动化生产线。

关键词: 椭圆轮廓, 香蕉形状, 参数化描述, 水果分类

Abstract: In order to realize the external shape description for banana, a banana shape description method based on change parameters for double ellipses has been proposed. First of all, the binary image of the object was obtained by image processing. The ellipse curve fitting of the two dimensional point set was provided by the library function cv.fitEllipse in Open Source Computer Vision Library (OPENCV), and the external outline of ellipse was selected as the initial contour. Then, based on the first step, the external ellipse and inscribed ellipse with variable parameters was constructed, and the banana shape fitting was described based on the areas of double ellipses overlap. Finally, the double ellipses parameters describing the banana shape were extracted as characteristic parameter, which was used to describe the shape for the other types of fruits and vegetables, and to determine the effectiveness of the characteristic parameters. Experimental results showed that the proposed method was simple, fast and efficient. The operation speed was about 0.1 s on the FX6300 AMD processor platform. The algorithm was written in C++ language, which can be used in automatic production line for fruit sorting and packing.

Key words: outline of ellipse, banana shape, parameterized description, fruit classification