Skip to content

Commit

Permalink
remove unicode (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology authored and Jon Wayne Parrott committed Dec 5, 2017
1 parent d847c2e commit c35f6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/cloud-client/detect/beta_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def detect_document(path):
block_symbols.extend(word.symbols)
word_text = ''
for symbol in word.symbols:
word_text = unicode(word_text) + unicode(symbol.text)
word_text = word_text + symbol.text
print(u'\tSymbol text: {} (confidence: {})'.format(
symbol.text, symbol.confidence))
print(u'Word text: {} (confidence: {})\n'.format(
Expand Down Expand Up @@ -94,7 +94,7 @@ def detect_document_uri(uri):
block_symbols.extend(word.symbols)
word_text = ''
for symbol in word.symbols:
word_text = unicode(word_text) + unicode(symbol.text)
word_text = word_text + symbol.text
print(u'\tSymbol text: {} (confidence: {})'.format(
symbol.text, symbol.confidence))
print(u'Word text: {} (confidence: {})\n'.format(
Expand Down

0 comments on commit c35f6f9

Please sign in to comment.