blavsth
2018-11-07 04:11
采纳率: 66.7%
浏览 1.8k
已采纳

halcon 创建ncc模板失败

open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', 8, 'rgb', -1, 'false', 'default', '[0] Integrated Webcam', 0, -1, AcqHandle)
grab_image_start (AcqHandle, -1)
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
grab_image_async (Image, AcqHandle, -1)
*创建模板
draw_rectangle1 (WindowHandle, Row1, Column1, Row2, Column2)
gen_rectangle1 (Rectangle, Row1, Column1, Row2, Column2)
area_center (Rectangle, Area, Row, Column)
orientation_region (Rectangle, Phi)
reduce_domain (Image, Rectangle, ImageReduced)
create_ncc_model (ImageReduced, 'auto', -0.39, 0.79, 'auto', 'use_polarity', ModelID)

运行到create_ncc_model就弹出错误
图片说明
哪里有问题

2条回答 默认 最新

相关推荐 更多相似问题