File tree 1 file changed +2
-2
lines changed
vision/cloud-client/detect
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):
57
57
block_symbols .extend (word .symbols )
58
58
word_text = ''
59
59
for symbol in word .symbols :
60
- word_text = unicode ( word_text ) + unicode ( symbol .text )
60
+ word_text = word_text + symbol .text
61
61
print (u'\t Symbol text: {} (confidence: {})' .format (
62
62
symbol .text , symbol .confidence ))
63
63
print (u'Word text: {} (confidence: {})\n ' .format (
@@ -94,7 +94,7 @@ def detect_document_uri(uri):
94
94
block_symbols .extend (word .symbols )
95
95
word_text = ''
96
96
for symbol in word .symbols :
97
- word_text = unicode ( word_text ) + unicode ( symbol .text )
97
+ word_text = word_text + symbol .text
98
98
print (u'\t Symbol text: {} (confidence: {})' .format (
99
99
symbol .text , symbol .confidence ))
100
100
print (u'Word text: {} (confidence: {})\n ' .format (
You can’t perform that action at this time.
0 commit comments