faithoflifedev / google_vision_workspace

Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
MIT License
20 stars 8 forks source link

Missing Block parameter for FullTextAnnotation -> Page model #22

Closed dondonj closed 4 months ago

dondonj commented 4 months ago

image

In the latest version, we don't have list of block parameter even though the api returns the list of blocks for FullTextAnnotation

faithoflifedev commented 4 months ago

Hi @dondonj ,

Which version are you looking at? The latest version google_vision: ^1.2.1+1 does have Blocks as shown in the source - https://github.com/faithoflifedev/google_vision_workspace/blob/main/packages/google_vision/lib/src/model/page.dart

The code for the Block model can be seen here - https://github.com/faithoflifedev/google_vision_workspace/blob/main/packages/google_vision/lib/src/model/block.dart