I am using ML Kit to do face detection on live frames from camera. When i tried to Log
the Rect()
from the Face().boundingBox
it returns negative coordinates if the face is in the right side of the picture.
Face detected on left side will return something like Rect(319, 83 - 558, 266)
Face detected on right side will return something like Rect(-73, 81 - 175, 241)
Rect is drawn from top-left to bottom-right, right? Then why are Rect().left
and Rect().right
become lower in value?