'Running tensorflow lite as an API on android

I want to run a tensorflow lite model on android but as an API which is callable from other apps. For example, I have an app which grabs a frame from the camera, then passes that to this API and the inference is then performed. The result is then passed back and displayed in the app.

I know on linux/windows I can just do this with the use of a HTTP service, which is a workflow I'm very familiar with. But as I'm a novice Android developer I would like to know how I can do this on android.



Sources

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

Source: Stack Overflow

Solution Source