I am working on a project involving a face tracker able to follow my face, printing the X-axis coordinate wherever I am on the screen. I have figured out how to get the bounding box to follow my face but have been struggling, with being able to print the X-axis coordinate. So far I haven't gotten anything to work, I thought this might be a good place to ask. If anyone knows how I would approach this problem that would be much appreciated thank you.
import cv2
from cvzone.FaceDetectionModule import FaceDetector
cap=cv2.VideoCapture(0)
detector=FaceDetector()
while True:
ret,img=cap.read()
img, bboxs=detector.findFaces(img)
cv2.imshow('webcam',img)
k=cv2.waitKey(1)
if k==27:
break;