read_image Error #5200 in read_image: HALCON error #5200: File not found


在这里插入图片描述

报错

read_image Error #5200 in read_image: HALCON error #5200: File not found

原因

文件默认编码格式编码中文出错

解决方式1

路径中包含中文 把中文换成英文字符

解决方式2

read_image 前加一句

SetHcppInterfaceStringEncodingIsUtf8(false);

保证编码中文正常。

猜你喜欢

转载自blog.csdn.net/weixin_42483745/article/details/128787787