1.安装环境

在这里插入图片描述

1.1 halcon

https://www.mvtec.com/downloads
在这里插入图片描述

在这里插入图片描述
下载步骤:


 1. Full Version 1.9 GB---Halcon安装包
 2. Deep Learning Data 1.2 GB
 3. Deep Learning Core 1.6 GB

1.2.Deep learning tool

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.使用案例

2.1 Deep learning tool案例

新建项目-导入图片-调整图片-数据集分割-训练-评估

在这里插入图片描述

2.2 Halcon参考案例

在这里插入图片描述

* Read in the retrained model.
read_dl_model (RetrainedModelFileName, DLModelHandle)

read_image (ImageBatch, Batch)

* Generate the DLSampleBatch.
gen_dl_samples_from_images (ImageBatch, DLSampleBatch)

* Preprocess the DLSampleBatch.
preprocess_dl_samples (DLSampleBatch, DLPreprocessParam)

* Apply the DL model on the DLSampleBatch.
apply_dl_model (DLModelHandle, DLSampleBatch, [], DLResultBatch)
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐