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)