【发布时间】:2021-12-10 07:17:03
【问题描述】:
enter image description hereRan 进入“参数类型'字符串?'不能在下面的代码中赋值给参数类型'String'”
静态提取文本(VisionText visionText){ 字符串文本 = '';
for (TextBlock block in visionText.blocks) {
for (TextLine line in block.lines) {
for (TextElement word in line.elements) {
text = text + word.text + ' ';
}
text = text + '\n';
}
}
return text;
}
【问题讨论】: