Vidu VDS
Vidu VDS

Reputation: 72

How to extract texts from customized blocks in a image using Google Vision API(OCR)?

Upvotes: 0

Views: 792

Answers (2)

Vidu VDS
Vidu VDS

Reputation: 72

I found a better way to do this. First I merge each block vertically and between every block it is possible to include textual separator. It mean after every block there is a line of text. So then we can provide this image with merged blocks as the input for Google vision API. Is the response we can get full text for our input and we also have the text that we previously set between the blocks. So we can split the whole text using that. Then we can have block-wise text

Upvotes: 1

Vidu VDS
Vidu VDS

Reputation: 72

For now, I decided to filter symbols for given block's vertices. It is better, if there is a way to simply find intersected symbols. For, now I'm going to loop through every symbol.

Upvotes: 0

Related Questions