APP下载

石油套管图像的Halcon分割及计数方法

2016-01-19,,

机械与电子 2015年3期

,,

(1.大庆油田钻探集团钻井三公司,黑龙江 大庆 163412;

2.河北联合大学电气工程学院,河北 唐山 063009)

Image Segmentation and Counting Method of Oil Casing Based on Halcon

WANG Fuping1, WANG Fubin2,WANG Yi1

(1.Third Company of Drilling and Exploration Group of Daqing Oilfield, Daqing 163412,China;

2.School of Electrical Engineering, Hebei United University, Tangshan 063009,China)

石油套管图像的Halcon分割及计数方法

王福平1,王福斌2,王一2

(1.大庆油田钻探集团钻井三公司,黑龙江 大庆 163412;

2.河北联合大学电气工程学院,河北 唐山 063009)

Image Segmentation and Counting Method of Oil Casing Based on Halcon

WANG Fuping1, WANG Fubin2,WANG Yi1

(1.Third Company of Drilling and Exploration Group of Daqing Oilfield, Daqing 163412,China;

2.School of Electrical Engineering, Hebei United University, Tangshan 063009,China)

摘要:成捆石油套管在入库前要对套管个数进行统计,为克服人工统计产生的误差,采用视觉的方法实现对成捆套管个数的计数。首先,采集成捆套管端面图像,进而采用Halcon软件对图像进行裁剪、处理和分割,最后实现套管计数。

关键词:成捆套管;图像分割;Halcon;计数

中图分类号:TP242.3

文献标识码:A

文章编号:1001-2257(2015)03-0003-02

收稿日期:2014-11-18

基金项目:河北省自然科学基金资助项目(E2013209266)

Abstract:The number of oil casing needs to be statistics before bundles of casing storage, To overcome the error produced by artificial statistic, using visual method to count the number of bundles of casing. First, acquire end face image of bundles of casing, then using Halcon software to crop, process and segment image, finally, counting casing.

作者简介:王福平(1970-),男,山东定陶人,工程师,研究方向为采油工程。

Key words:bundles of casing;image segmentation; Halcon; count

0引言

油田钻井生产中要消耗大量的套管,套管入库前需对成捆套管数量进行统计。采用人工计数的方法往往由于视觉疲劳产生计数误差。对于大量的库存套管,如何实现高效的数量统计是具有实际工程意义的课题。在此,采用视觉的方法实现套管计数,搭建成捆套管端面图像采集系统,实时采集每捆套管端面的图像,进而对图像进行裁剪,去掉图像背景的影响。基于Halcon软件对图像进行形态学处理、分割,将粘连后的套管图像分离开,最后得到成捆套管的个数。

1Halcon软件

Halcon机器视觉算法软件包由德国MVtec公司开发,包含了众多独立的图像处理、机器视觉函数,极大地方便了机器视觉的应用。Halcon与Linux、Windows、Unix等兼容,通过HDevelop工具可以用C、C++、C#和VB等多种普通编程语言访问Halcon函数库。……

登录APP查看全文