disp_message函数用于在Halcon窗口中显示消息,这里用来显示获取到的当前时间。 总结来说,获取Halcon中的当前时间主要通过调用get_system_time函数来实现,然后可以将获取到的时间信息格式化为字符串并进行存储或输出。
OutputString := 'Box label found in ' + (Time * 1000)$'.4' + ' ms (on the side)' elseif (Pose[5] > 135 and Pose[5] < 225) OutputString := 'Box label found in ' + (Time * 1000)$'.4' + ' ms (upside down)' else OutputString := 'Box label found in ' + (Time ...
get_system_time (MSecond, Second, Minute, Hour, Day, YDay, Month, Year) DateTime := Year+'-'+Month$'.2'+'-'+Day$'.2'+' '+Hour$'.2'+':'+Minute$'.2'+':'+Second$'.2'+':'+MSecond$'.3' DirPathFirst := 'D:\\HalconException\\' file_exists (DirPathFirst, bFileExists...
必须先关闭设备dev_close_window ()dev_open_window_fit_size (0, 0, 640, 480, -1, -1, WindowHandle)set_display_font (WindowHandle, 16, 'mono', 'true', 'false')get_system ('processor_num', NumCPUs)get_system ('parallelize_operators...
get_class_box_param 获取关于现在参数的信息 learn_class_box 训练分类器 learn_sampset_box 用数据组训练分类器 read_class_box 从一个文件中读取分类器 12.read_sampset 从一个文件中读取一个训练数据组 set_class_box_param 为分类器设计系统参数 ...
(到达时间间隔后会自动调用)dispatcherTimer.Interval = new TimeSpan(0, 0, 1);//设置时间间隔为1秒dispatcherTimer.Start();//启动定时器//打开窗口HOperatorSet.OpenWindow(0, 0, halconVideo.Width, halconVideo.Height, halconVideo.HalconWindow, "visible", "", out hv_WindowHandle);HDevWindowStack....
get_system('init_new_image', Information) 1. 2. 3. 4. 5. 6. 得到当前halcon系统的参数值(这里执行后得到information的值为' true') set_system('init_new_image', 'false') gen_grid_region(Grid, MinSize,MinSize,'lines',512,512)
Capacity:='medium'TrainingPercent:=75ValidationPercent:=15*默认参数 NormalizationType:='none'DomainHandling:='full_domain'*随机种子 SeedRand:=42set_system('seed_rand',SeedRand)*分割数据集 split_dl_dataset_RS_TECH(DLDataset,TrainingPercent,ValidationPercent,[])*如果输出目录还不存在,请创建它。
即没有加速并行处理23set_system ('parallelize_operators','false')24get_system ('parallelize_operators', AOP)25count_seconds(T0)26edges_sub_pix (ImageGray, Edges1,'canny', alpha, low, high)27count_seconds(T1)28Time0:=(T1-T0)*100029stop()3031*测试2:AOP自动加速并行处理32*Halcon的默认值是...
* Attention: Messages are no error and do not cause runtime errors! * They are always returned. * * H_MSG_TRUE: everything is perfect * H_MSG_FAIL: something failed (try again) * H_MSG_VOID: you can't continue with this result ...