File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
vision/cloud-client/detect Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def detect_document(path):
5757 block_symbols .extend (word .symbols )
5858 word_text = ''
5959 for symbol in word .symbols :
60- word_text = unicode ( word_text ) + unicode ( symbol .text )
60+ word_text = word_text + symbol .text
6161 print (u'\t Symbol text: {} (confidence: {})' .format (
6262 symbol .text , symbol .confidence ))
6363 print (u'Word text: {} (confidence: {})\n ' .format (
@@ -94,7 +94,7 @@ def detect_document_uri(uri):
9494 block_symbols .extend (word .symbols )
9595 word_text = ''
9696 for symbol in word .symbols :
97- word_text = unicode ( word_text ) + unicode ( symbol .text )
97+ word_text = word_text + symbol .text
9898 print (u'\t Symbol text: {} (confidence: {})' .format (
9999 symbol .text , symbol .confidence ))
100100 print (u'Word text: {} (confidence: {})\n ' .format (
You can’t perform that action at this time.
0 commit comments