public void getpoint() { ...... .... for (int i = 0; i < eyes.Total; i++) { CvRect r = eyes[i].Value.Rect; CvPoint center = new CvPoint { X = Cv.Round((r.X + r.Width * 0.45) * Scale), Y = Cv.Round((r.Y + r.Height * 0.45) * Scale) }; cursorpos = center; } }
public CvPoint GetCursorPos() { return cursorpos; }
private void BtnPowerUrEyes_Click(object sender, EventArgs e) { CvPoint newcurpos = pupilobj.GetCursorPos(); int x = newcurpos.X; int y = newcurpos.Y; Cursor.Position = new Point(x , y); }
Cursor.Position = new Point(x, y);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)