我正在構建一個程序,通過掃描其書名頁並使用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