Hello Mat

 找回密码
 立即注册
查看: 6093|回复: 0

读取txt数据(替代读取excel数据)

[复制链接]

1294

主题

1520

帖子

110

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22633
发表于 2016-12-24 21:44:26 | 显示全部楼层 |阅读模式
halcon读取txt数据还是很方便的,但是读取excel数据就显得棘手了。
建议将excel数据复制到 txt文本文件里面
open_file ('area.dat', 'input', FileHandle)
fread_string (FileHandle, Number, IsEOF)
Number := number(Number)
IsEOF := 0
while (IsEOF == 0)
  fread_string (FileHandle, Index, IsEOF)
  fread_string (FileHandle, Area, IsEOF)
endwhile
close_file (FileHandle)
halcon11.0读取excel,我还没调试过,我用的就是txt文本文件来读取数据的。



算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-4-20 18:48 , Processed in 0.213935 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表