How to initialize an object detector (detector.tflite) Kotlin for my android application?

I need to set up an Tensorflow-lite detector using Kotlin. Can someone show how to get the detector working on frames from camera feed. I created the preview added an analyzer but I don’t know how to process the frames and initialize the detector. I need to get as output the objects class name and the coordinates in an array.