Converting google OCR coordinates… -- 2
Budget: $30 – $250 USD
The issue I am facing is the conversion of the Google OCR coordinates for the OCRd text the image dimensions within the application that are the same to the device width and height size.
The dimensions required for Google Vision OCR is maximum of 1280 by height:width ratio. This is referred to as a document size.
The image captured on device is equal to device height and width.
The coordinates of the text blocks that I want come as a response of OCR request from Google in the document dimensions described above.
I need to convert the coordinates to the device height and width dimensions to map the texts block so that a user can tap the screen and I can check if there is a book in that screen location. While at the same time drawing an overlay rect to show the region covered by the coordinates the user has clicked on the screen that has the text.
The dimensions required for Google Vision OCR is maximum of 1280 by height:width ratio. This is referred to as a document size.
The image captured on device is equal to device height and width.
The coordinates of the text blocks that I want come as a response of OCR request from Google in the document dimensions described above.
I need to convert the coordinates to the device height and width dimensions to map the texts block so that a user can tap the screen and I can check if there is a book in that screen location. While at the same time drawing an overlay rect to show the region covered by the coordinates the user has clicked on the screen that has the text.