Capture Information with Vision API

55 views
Skip to first unread message

Oluwafemi Balogun

unread,
Feb 15, 2019, 11:34:46 PM2/15/19
to Google App Engine
Attached is a screenshot from Vision API. The intent is to be able to select a single block to capture the content of that selected block. We are avoiding to read directly from the accompanying json file since it gives information for all the blocks/image but be able to generate appropriate json for the selected box only. Currently, the accompanying json gives output for the entire image, block by block, but we need only have the json for the block selected by user. Would appreciate feedback on how best to go about achieving this. Thanks.

image0000001.png

Suman Jha

unread,
Feb 16, 2019, 9:25:29 AM2/16/19
to google-a...@googlegroups.com
Hi,
Can you please send the original picture?

Regards!

On Sat, Feb 16, 2019 at 10:04 AM Oluwafemi Balogun <femib...@gmail.com> wrote:
Attached is a screenshot from Vision API. The intent is to be able to select a single block to capture the content of that selected block. We are avoiding to read directly from the accompanying json file since it gives information for all the blocks/image but be able to generate appropriate json for the selected box only. Currently, the accompanying json gives output for the entire image, block by block, but we need only have the json for the block selected by user. Would appreciate feedback on how best to go about achieving this. Thanks.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b977ddfa-e661-41db-b9d7-1d71f3e9b14d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

руслан мирзиеев

unread,
Feb 16, 2019, 10:09:43 AM2/16/19
to google-a...@googlegroups.com
Это Вы мне?

сб, 16 февр. 2019 г. в 20:25, Suman Jha <jhasu...@gmail.com>:

Oluwafemi Balogun

unread,
Feb 17, 2019, 9:43:54 PM2/17/19
to Google App Engine
Hi,

Pls find attached the original picture

Kind Regards
PHOTO-2018-12-16-19-47-17.jpg

руслан мирзиеев

unread,
Feb 18, 2019, 12:15:08 AM2/18/19
to google-a...@googlegroups.com
Пиши по- русски, ни чего не понятно?

пн, 18 февр. 2019 г. в 08:44, Oluwafemi Balogun <femib...@gmail.com>:

Patrick Poon

unread,
Feb 18, 2019, 4:26:50 PM2/18/19
to google-a...@googlegroups.com
According to the Vision API docs, each response block has a set of related vertices, like the following:

        {
          "description": "ABBEY",
          "boundingPoly": {
            "vertices": [
              {
                "x": 45,
                "y": 50
              },
              {
                "x": 181,
                "y": 43
              },
              {
                "x": 183,
                "y": 80
              },
              {
                "x": 47,
                "y": 87
              }
            ]
          }
        },

You'll need to capture the point that the user clicks and cycle through each block to see whether the point is within the block's boundaries.

Reply all
Reply to author
Forward
0 new messages