资源简介
初学的典范,可以看下,导出C# Delphi 等都可以 所用版本halcon 11 12 13 32bit
代码片段和文件信息
//
// File generated by HDevelop for HALCON/.NET (C#) Version 13.0
//
using HalconDotNet;
public partial class HDevelopExport
{
#if !(NO_EXPORT_MAIN || NO_EXPORT_APP_MAIN)
public HDevelopExport()
{
// Default settings used in HDevelop
HOperatorSet.SetSystem(“width“ 512);
HOperatorSet.SetSystem(“height“ 512);
if (HalconAPI.isWindows)
HOperatorSet.SetSystem(“use_window_thread““true“);
action();
}
#endif
#if !NO_EXPORT_MAIN
// Main procedure
private void action()
{
// Local iconic variables
Hobject ho_Image ho_Rectangle ho_ImageReduced;
Hobject ho_Regions ho_RegionDilation ho_ConnectedRegions1;
Hobject ho_RegionIntersection ho_SelectedRegions ho_SortedRegions;
// Local control variables
HTuple hv_WindowHandle = null hv_Class = null;
HTuple hv_CharacterNames = null hv_CharacterCount = null;
HTuple hv_OCRHandle2 = null hv_Error = null hv_ErrorLog = null;
HTuple hv_OCRHandle1 = null hv_Results = null hv_Confidence = null;
// Initialize local and output iconic variables
HOperatorSet.GenEmptyObj(out ho_Image);
HOperatorSet.GenEmptyObj(out ho_Rectangle);
HOperatorSet.GenEmptyObj(out ho_ImageReduced);
HOperatorSet.GenEmptyObj(out ho_Regions);
HOperatorSet.GenEmptyObj(out ho_RegionDilation);
HOperatorSet.GenEmptyObj(out ho_ConnectedRegions1);
HOperatorSet.GenEmptyObj(out ho_RegionIntersection);
HOperatorSet.GenEmptyObj(out ho_SelectedRegions);
HOperatorSet.GenEmptyObj(out ho_SortedRegions);
ho_Image.Dispose();
HOperatorSet.ReadImage(out ho_Image “e:/mymemo/Halcon/chebai.jpg“);
HOperatorSet.SetWindowAttr(“background_color““black“);
HOperatorSet.OpenWindow(005125120“visible“““out hv_WindowHandle);
HDevWindowStack.Push(hv_WindowHandle);
if (HDevWindowStack.IsOpen())
{
HOperatorSet.DispObj(ho_Image HDevWindowStack.GetActive());
}
//gen_rectangle1 (Rectangle 1390 995 2349 4235)
ho_Rectangle.Dispose();
HOperatorSet.GenRectangle1(out ho_Rectangle 1377 455 2349 4235);
ho_ImageReduced.Dispose();
HOperatorSet.ReduceDomain(ho_Image ho_Rectangle out ho_ImageReduced);
ho_Regions.Dispose();
HOperatorSet.Threshold(ho_ImageReduced out ho_Regions 173 223);
ho_RegionDilation.Dispose();
HOperatorSet.DilationRectangle1(ho_Regions out ho_RegionDilation 70 30);
ho_ConnectedRegions1.Dispose();
HOperatorSet.Connection(ho_RegionDilation out ho_ConnectedRegions1);
ho_RegionIntersection.Dispose();
HOperatorSet.Intersection(ho_ConnectedRegions1 ho_Regions out ho_RegionIntersection
);
ho_SelectedRegions.Dispose();
HOperatorSet.SelectShape(ho_RegionIntersection out ho_SelectedRegions “area“
“and“ 47967.1 179315);
ho_SortedRegions.Dispose();
HOperatorSet.SortRegion(ho_SelectedRegions out ho_SortedRegions “first_point“
“true“ “column“);
hv_Class = new HTuple();
hv_Class[0]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1991 2018-04-12 21:06 ChenPaiShiBei.hdev
文件 3256484 2018-03-06 21:22 chebai.jpg
文件 64247 2018-04-12 21:05 cp_ocr.omc
文件 4446 2018-04-10 22:21 ChenPaiShiBei.cs
- 上一篇:基于C#的酒店管理系统
- 下一篇:大华海康宇视卡口超速闯红灯抓拍系统破解版
相关资源
- C#矢量图形开发范例
- c#车牌识别系统完整实现
- c#联合halcon编程,鼠标获取图像灰度值
- Halcon的HWindowControl控件在WinForm程序中
- 《Visual C# 2008 从入门到精通》配套范
- Halcon结合C#二次开发读取图片并处理图
- halcon联合C#实现实时显示源码
- C#与halcon窗体控件交互
- Visual C#通用范例开发金典源代码1-10章
- halcon联合c#实现放大缩小移动图片
- Basler_Gige面阵相机C#基于Halcon显示的
- VisualC#2008控件使用范例详解--PDF+源码
- Halcon与C#混合窗体控件源代码
- C#程序开发范例宝典光盘内容.part2
- C#车牌识别源码
- C# 程序开发范例宝典(第二版)源码
- C#程序开发范例宝典(第3版).(配套
- halcon 与C#之HWindow鼠标控制图片缩放,
- Lucene.NET v3.0.3 DEMO范例程序(含PanGu分
- 包含了halcon,C#编程,联合开发,机器
- C# 相对可用的车牌识别系统
- C#联合halcon利用halcon控件实现鼠标拖拽
- ASP.NET范例开发大全95058
- C#结合Halcon,对图像也可以拍照进行轮
- C#基于Halcon实现Basler相机采图SDK
- Halcon生成的计算圆心C#代码
- C#车牌识别
- Halcon C#实现图像的灰度化鼠标放大缩
- halcon联合C#车牌识别
- Galil C#通讯链接范例
评论
共有 条评论