'Find coordinates of text in image

I am trying to develop an android automation project. So i wanted to get position of some text in android phone screen.

My phone screen. I trying to get position of the search box dynamically to click on the box using adb shell. Can i find the coordinates of the text "Search or type web address"? How can i do it?

I already tried tesseract.js . That is returning the extracted text only

sorry for bad English



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source