I am currently working on an object detection application (written in
Java) on Android that uses
Google ML Kit to detect objects within a live streamed camera preview. My issue today lies with WHY exactly the code needed to display a boundingBox around the detected object isn't appearing within my display.
The application successfully launches and I see camera preview stream is visible, the only issue is that it is unable to display boundingBox Rectangle around the detected objects, despite code being put in place to implement this. The application itself is able to detect objects, it's merely the visual display that is missing. My code displayed below states the box, and I understand that I must draw the boundingBox myself, and my question is specifically aimed at how I would go about trying to draw it. It is a single activity application:
Any information needed to supplement this question will be provided upon request.