optimeyes icon indicating copy to clipboard operation
optimeyes copied to clipboard

TypeError: integer argument expected, got float

Open khaldon opened this issue 7 years ago • 4 comments

what's this error ? image

khaldon avatar Oct 01 '18 16:10 khaldon

You must convert to int This is because of recent updates to OpenCV Where the value would be so for example

(900.70, 40.33)

The correct conversion is so And I hope that will benefit

y = int(pupilXYList[eyeIndex][0])
x = int(pupilXYList[eyeIndex][1])
cv2.circle(output, (y,x), 3, (255,0,0),thickness=1)
>>>print(y,x)
(900, 40)

Thank you!

mohammed-Emad avatar Oct 02 '18 20:10 mohammed-Emad

where is the theory paper?

yangqin92 avatar Dec 23 '19 01:12 yangqin92

@yangqin92 Do you mean this research paper is here! https://github.com/LukeAllen/optimeyes/blob/master/Optimeyes%20Theory%20Paper.pdf

And it has been published in several places as well.. see: https://www.scribd.com/document/411880354/Optimeyes-Theory-Paper

mohammed-Emad avatar Dec 23 '19 01:12 mohammed-Emad

thank you !

发自我的 iPhone

在 2019年12月23日,上午9:38,mohammed-Emad [email protected] 写道:

@yangqin92 Do you mean this research paper is here! https://github.com/LukeAllen/optimeyes/blob/master/Optimeyes%20Theory%20Paper.pdf

And it has been published in several places as well.. see: https://www.scribd.com/document/411880354/Optimeyes-Theory-Paper

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

yangqin92 avatar Dec 23 '19 01:12 yangqin92