C++ Halcon12 HTuple 转字符串输出示例

Halcon 多用于工业视觉处理,机器学习等,经常要和其他库联合使用。此例说明字符串数组如何转换输出。

for (int i = 0;i < codeLen;i++) {
    HString str = hv_DecodedDataStrings[i].S();
    char* code = const_cast<char*>(str.Text());
    printf("%s",code);
}

 

posted @ 2020-10-28 10:31  sunyheart  阅读(2527)  评论(0编辑  收藏  举报