f427368dc042ade0b12459935014ce9dd4e626a5,vision/cloud-client/detect/detect.py,,detect_document,#Any#,497
Before Change
for paragraph in block.paragraphs:
block_words.extend(paragraph.words)
block_symbols = []
for word in block_words:
block_symbols.extend(word.symbols)
block_text = ""
for symbol in block_symbols:
block_text = block_text + symbol.text
print("Block Content: {}".format(block_text))
print("Block Bounds:\n {}".format(block.bounding_box))
// [END migration_document_text_detection]
// [END def_detect_document]
After Change
paragraph.confidence))
for word in paragraph.words:
word_text = "".join([
symbol.text for symbol in word.symbols
])
print("Word text: {} (confidence: {})".format(
word_text, word.confidence))
for symbol in word.symbols:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: f427368dc042ade0b12459935014ce9dd4e626a5
Time: 2018-03-29
Author: dizcology@hotmail.com
File Name: vision/cloud-client/detect/detect.py
Class Name:
Method Name: detect_document
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: f427368dc042ade0b12459935014ce9dd4e626a5
Time: 2018-03-29
Author: dizcology@hotmail.com
File Name: vision/cloud-client/detect/detect.py
Class Name:
Method Name: detect_document_uri
Project Name: scipy/scipy
Commit Name: ee65304775a55bd52f383706fa65be506b8108e5
Time: 2017-10-11
Author: david@drhagen.com
File Name: scipy/sparse/lil.py
Class Name: lil_matrix
Method Name: tocsr
Project Name: gboeing/osmnx
Commit Name: 617ae136d86d8248869d11ac3485f544bc1d0826
Time: 2020-09-04
Author: boeing@usc.edu
File Name: osmnx/geometries.py
Class Name:
Method Name: _create_gdf