我正在构建一个程序,通过扫描其书名页并使用OCR来获取本书的出版商...因为出版商总是处于标题页的底部,所以我认为由空间分隔的检测线是解决方案,但我不知道如何测试。这里是我的代码:如何检查字符串中的行是否由空格分隔?
Dim builder As New StringBuilder()
Dim reader As New StringReader(txtOCR.Text)
Dim iCounter As Integer = 0
While True
Dim line As String = reader.ReadLine()
If line Is Nothing Then Exit While
'i want to put the condition here
End While
txtPublisher.Text = builder.ToString()
@Konrad鲁道夫感谢编辑我的问题我很抱歉,如果我不能解释清楚.. :) – user2107624 2013-02-26 10:00:43