while(1) get_framegrabber_param(AcqHandle,'device',CurrentFileName)//设置图像设备对应的文件目录 grab_image(Image,AcqHandle)//读取文件 endwhile close_framegrabber(AcqHandle)//关闭设备 1. 2. 3. 4. 5. 6. open_framegrabber 函数介绍 open_framegrabber( : : Name, HorizontalResolution, VerticalResolu...
get_dl_device_param( : : DLDeviceHandle, GenParamName : GenParamValue) get_dl_device_param() 获取设备参数 set_dl_device_param( : : DLDeviceHandle, GenParamName, GenParamValue : ) set_dl_device_param()设置设备参数 set_dl_model_param( : : DLModelHandle, GenParamName, GenParamValue :...
结果 If the parameters are valid, the operatorquery_available_dl_devicesreturns the value2(H_MSG_TRUE) . If necessary, an exception is raised. 可能的后置算子 get_dl_device_param 模块 Foundation 算子列表
DLDevice := DLDeviceHandles[0] get_dl_device_param (DLDevice, 'type', DLDeviceType) if (DLDeviceType == 'cpu') * The number of used threads may have an impact * on the training duration. NumThreadsTraining := 4 set_system ('thread_num', NumThreadsTraining) endif * * *** * *...
Devices that are supported through the AI 2-interface can also be set to a deep learning model using set_dl_model_param. In this case the inference is not executed by HALCON but by the device itself. query_available_dl_devices returns a handle for each deep-learning-capable device ...
优化深度学习模型进行推理,`optimize_dl_model_for_inference`函数通过AI2接口完成。建议使用的`DLSamples`样本应具有代表性,通常每个类别提供10-20个样本即可达到良好的结果。获取设备参数使用`get_dl_device_param`函数,反之,`set_dl_device_param`用于设置设备参数。深度学习模型参数的设置与获取,`...
'device': Handle of the device on which the deep learning operators will be executed. To get a tuple of handles of all available potentially deep-learning capable hardware devices use query_available_dl_devices. Default: Handle of the default device, thus the GPU with index 0. If not availa...
#define H_ERR_CNN_INVALID_BATCH_SIZE 7726 /* Device batch size larger than batch size. */ #define H_ERR_CNN_INVALID_PARAM_SPEC 7727 /* Invalid specification of a parameter. */ #define H_ERR_CNN_EXCEEDS_MAX_MEM 7728 /* Memory size exceeds maximal allowed value. */ #define H_ER...
1、set_dl_model_param(DLModelHandle, 'gpu', GpuId) GpuId=0 选中第一块显卡做深度学习训练。 GpuId=1 选中第二块显卡做深度学习训练。 类推 查询可用多显卡信息 query_available_compute_devices(DeviceIdentifier) //一块显卡输出[0],两块是[0,1],依次类推 ...
27、Param, PoseCamRef, 0.01)根据内参和外参显示3D坐标系concat_obj (Lines, Contour, Lines)将对象合并,可以分类时将属性相同的人为合并成一类。gen_parallels_xld (Polygon, ParallelLines, 50, 100, rad(10), 'true')找到平行的轮廓线get_parallels_xld (ParallelLines, Row1, Col1, Length1, Phi1, Ro...