Track Eye Pupil Position with Webcam, OpenCV, and Python

前端 未结 2 1953
迷失自我
迷失自我 2021-02-15 17:21

I am trying to build a robot that I can control with basic eye movements. I am pointing a webcam at my face, and depending on the position of my pupil, the robot would move a ce

2条回答
  •  时光说笑
    2021-02-15 17:43

    Just replace line where you created HoughCircles by this:

    circles = cv2.HoughCircles(roi_gray2,cv2.HOUGH_GRADIENT,1,200,param1=200,param2=1,minRadius=0,maxRadius=0)
    

    I just changed a couple of parameters and it gives me more accuracy.

    Detailed information about parameters here.

提交回复
热议问题