f427368dc042ade0b12459935014ce9dd4e626a5,vision/cloud-client/detect/detect.py,,detect_document_uri,#Any#,531

Before Change



    for page in document.pages:
        for block in page.blocks:
            block_words = []
            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 def_detect_document_uri]

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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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_uri


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: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: tally