Skip to content

Commit c35f6f9

Browse files
dizcologyJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
remove unicode (#1246)
1 parent d847c2e commit c35f6f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vision/cloud-client/detect/beta_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'\tSymbol 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'\tSymbol text: {} (confidence: {})'.format(
9999
symbol.text, symbol.confidence))
100100
print(u'Word text: {} (confidence: {})\n'.format(

0 commit comments

Comments
 (0)