融合Open CASCADE与OpenCV的注塑件通孔特征识别算法

    A Recognition Algorithm for Injection Molded Parts Integrating Open CASCADE and OpenCV

    • 摘要: 针对基于属性邻接图(AAG)与神经网络的注塑零件通孔特征识别中的复杂几何结构的适应性较差、计算效率较低以及准确率不足等问题,提出了一种结合Open CASCADE(OCC)拓扑分析与图像识别的混合识别方法。该方法首先利用OCC几何拓扑信息,通过面—面与边—面特征匹配筛选候选特征区域;随后将其渲染为二维灰度图像,并采用OpenCV的边缘检测与轮廓分析等图像识别算法精确提取孔的形状和位置;最后结合空间映射算法,将二维识别结果与三维模型进行映射,从而获取特征参数。对比AAG和OCC拓扑分析识别算法,所提算法平均识别时间分别缩短了67.21 % 和8.52 %,平均准确率分别提升了39.39 % 和12.88 %,验证了该算法的有效性,为注塑零件的自动化检测提供了新的解决方案。

       

      Abstract: Addressing the issues of poor adaptabilities to complex geometric structures, low computational efficiencies, and insufficient accuracies in through-hole feature recognition of injection molded parts based on attributed adjacency graph (AAG) and neural network, a hybrid recognition method combining Open CASCADE (OCC) topological analysis and image recognition is proposed. In the proposed method, firstly OCC geometric topological information is utilized, and candidate feature regions are filtered through face-to-face and edge-to-face feature matching. Subsequently, these regions are rendered into two-dimensional grayscale images, and the shapes and positions of holes are precisely extracted using image recognition algorithms such as edge detection and contour analysis from OpenCV. Finally, combining a spatial mapping algorithm, the two-dimensional recognition results are mapped to the three-dimensional model to obtain feature parameters. Compared with AAG and OCC topological analysis recognition algorithms, the average recognition times of the proposed algorithm are shortened by 67. 21 % and 8. 52 % respectively, and the average accuracies are improved by 39. 39 % and 12. 88 % respectively, which verifies the effectiveness of the proposed algorithm. The proposed algorithm provides a new solution for the automated inspection of injection molded parts.

       

    /

    返回文章
    返回