这个有两种方法;
1、使用深度学习工具生成https://www.mvtec.com/download/deep-learning-tool/
2,使用第一个程序,自己生成
create_dict (WindowHandleDict)
for Index := 0 to |DLSampleBatchDisplay| - 1 by 1
* Loop over samples in DLSampleBatchDisplay.
dev_display_dl_data (DLSampleBatchDisplay[Index], [], DLDataset, ['image','segmentation_image_ground_truth'], [], WindowHandleDict)
get_dict_tuple (WindowHandleDict, 'segmentation_image_ground_truth', WindowHandleImage)
dev_set_window (WindowHandleImage[1])
Text := 'Press Run (F5) to continue'
dev_disp_text (Text, 'window', 400, 40, 'black', [], [])
stop ()
endfor
*
这里就是生成hdict的地方,bmp图片 先自己处理成png图片,然后自己标注图片的好坏区域。
好料区域是0坏料区域是1、2、3,根据你的缺陷种类分类。
|