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...
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_next_socket_data_type 功能:决定下一个插口(接口)数据的HALCON数据类型。 get_socket_timeout 功能:获取一个插口(接口)的超时。 open_socket_accept 功能:打开一个接受连接请求的插口(接口)。 open_socket_connect 功能:打开一个插口到一个已存在的插口。 receive_image 功能:通...
'system_time_base': Determines how the system time is read. The system time can be read using get_system_time. Value: 'UTC' (Coordinated Universal Time), 'localtime' (local time configured on the used system) Default: 'localtime' 'max_connection': Determines the maximum number of regio...
The access to the system time, e.g., via get_system_time, can now be switched between local time and Coordinated Universal Time (UTC) using the new argument 'system_time_base' for set_system. system_call has been improved. Now, it uses the POSIX Spawn API for Linux and macOS, whic...
'system_time_base': Determines how the system time is read. The system time can be read using get_system_time. Value: 'UTC' (Coordinated Universal Time), 'localtime' (local time configured on the used system) Default: 'localtime' 'max_connection': Determines the maximum number of regio...
即没有加速并行处理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的默认值是...
get_system ('parallelize_operators', AOP) *这个修饰符用于把函数定义为可重入函数,默认值是true;所谓可重入函数就是允许被递归调用的函数 get_system ('reentrant', Reentrant) *故意关掉测试性能 *set_system('parallelize_operators','false') 1.
get_next_socket_data_type功能:决定下一个插口(接口)数据的HALCON数据类型。get_socket_timeout功能:获取一个插口(接口)的超时。open_socket_accept功能:打开一个接受连接请求的插口(接口)。open_socket_connect功能:打开一个插口到一个已存在的插口。receive_image功能:通过插口连接接收一副图像。receive_region功能...
(Image, ImageGray)endifalpha:=5low:=10high:=20*测试1:去掉AOP,即没有加速并行处理set_system ('parallelize_operators', 'false')get_system ('parallelize_operators', AOP)count_seconds(T0)edges_sub_pix (ImageGray, Edges1, 'canny', alpha, low, high)count_seconds(T1)Time0:=(T1-T0)*1000...