'Dynamic Text Overlay over Camera View (live camera feed)

I am working on developing a feature which needs to access camera and dynamically overlay text which will change as per the camera view or focus shift.

For eg. I would like to focus my camera on an object which will be automatically detected and identified with name of the object overlayed in the live fee. This view should change as soon as the camera moves to focus on another object after confirming with the user.



Sources

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

Source: Stack Overflow

Solution Source