0

I was working on a project where I need to measure the distance between two markers.

cap = cv2.VideoCapture(0)
ret, frame = cap.read()

**the "ret" = true the frame =. is also giving values. **

But the thing is I am not getting any output. TMI(if needed) : Yes, this was my usb webcamera ret and frame values

**My expected output is distance = x **

Has anyone faced this issue?

pikachu
  • 3
  • 2
  • What values are you getting in `frame`? Please add more details. Also note that your webcam may need some time to start grabbing frames. – decadenza Jan 21 '23 at 12:43
  • @decadenza Hi, the camera is able to grab the frames but the thing is it's capturing mirror reflection, and not the object itself. Example: It is capturing my reflection from the mirror, but when I move my camera towards me, it is not able to detect me. – pikachu Jan 26 '23 at 03:36

0 Answers0