#define H_ERR_WHDL 2450 /* Wrong (unknown) HALCON handle */ #define H_ERR_WID 2451 /* Wrong HALCON id, no data available */ #define H_ERR_IDOOR 2452 /* HALCON id out of range */ #define H_ERR_HANDLE_NULL 2453 /* Handle is NULL */ #define H_ERR_HANDLE_CLEARED 2454 ...
Window handle. Example (HDevelop) * Output of a gray image: read_image(Image1,'monkey') disp_obj(Image1,WindowHandle) threshold(Image,Region,0,128) disp_obj(Region,WindowHandle) Result If the used object is valid and a correct output mode is set,disp_objreturns 2 (H_MSG_TRUE). Other...
(Operator) Namedisp_line— Draws lines in a window.Signaturedisp_line( : : WindowHandle, Row1, Column1, Row2, Column2 : ) Descriptiondisp_line displays one or several lines in the output window. A line is described by the coordinates of the start (Row1,Column1) and the coordinates of...
private HTuple hv_WindowHandle = null; #endif // Main procedure public void action() { // Initialize local and output iconic variables HOperatorSet.GenEmptyObj(out ho_Image); //读取图片 ho_Image.Dispose(); HOperatorSet.ReadImage(out ho_Image, "C:/Users/admin/Desktop/halcondemo1/claudia...
1. 使用算子处理图像基本流程 *关闭当前窗体dev_close_window()*读取图像read_image(Image,'test.jpg')*图像尺寸get_image_size(Image,Width,Height)*打开窗体dev_open_window(0,0,Width,Height,'black',WindowHandle)*绘制轮廓不填充dev_set_draw('margin')*线宽dev_set_line_width(1)*字体set_display_font...
, out hv_Height);HOperatorSet.SetPart(hWindowControl1.HalconWindow, 0, 0, hv_Height, hv_Width);HOperatorSet.DispObj(ho_image,hWindowControl1.HalconWindow);HOperatorSet.SetPart(hv_WindowHandle, 0, 0 Halcon联合C#编程配置及简单示例程序 ...
HOperatorSet.GenRectangle1(out rect, row1, col1, row2, col2); HOperatorSet.DispObj(rect, WindowHandle); } private void btn_DrawPolyn_Click(object sender, EventArgs e) { HObject polygon; HOperatorSet.DrawPolygon(out polygon, WindowHandle); HOperatorSet.DispObj(polygon, WindowHandle); }...
def GetImage(self): if self.OpenCarmerFlag == True: try: self.ho_Image = HOperatorSet.GrabImageAsync(self.ho_Image, self.hv_AcqHandle, HTuple(-1)) HOperatorSet.DispObj(self.ho_Image, self.hv_WindowHandle) self.workerThread.FinishFlag = False except Exception as e: pass 1. 2. 3....
Halcon是一种计算机视觉软件工具,用于图像处理、分析和机器视觉应用。它由德国MVTec公司开发,是一种功能强大的视觉软件工具,可用于解决各种计算机视觉问题,包括目标检测、图像识别、三维视觉等。Halcon支持多种编程语言,包括C++、C#、Python等,用户可以使用自己熟悉的编程语言进行开发和应用。
HObject ho_Image=null; // Local control variables HTuple hv_AcqHandle, hv_Width=new HTuple(); HTuple hv_Height=new HTuple(); // Initialize local and output iconic variables HOperatorSet.GenEmptyObj(out ho_Image); //Close all image acquisition devices: ...