We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e723255 commit 3ae5f46Copy full SHA for 3ae5f46
vision/cloud-client/detect.py
@@ -415,6 +415,20 @@ def detect_fulltext_uri(uri):
415
image = vision_client.image(source_uri=uri)
416
417
fulltext = image.detect_full_text()
418
+
419
+ for b, page in enumerate(fulltext.pages):
420
+ print(page.width)
421
+ for bb, block in enumerate(page.blocks):
422
+ print('Block: {}'.format(block.bounding_box))
423
+ print('Type: {}'.format(dir(block)))
424
+ print('Type: {}'.format(block.block_type))
425
+ for p, paragraph in enumerate(block.paragraphs):
426
+ print('\tParagraph: ({})'.format(paragraph.bounding_box))
427
+ print('\twords: ({})'.format((paragraph.words)))
428
+ for w, word in enumerate(paragraph.words):
429
+ for s, symbol in enumerate(word.symbols):
430
+ print('\t\t\t$:{}'.format(symbol.text))
431
432
print(fulltext.text)
433
434
0 commit comments