1 | initial version |
hello MR @StevenPuttemans i can Coordinate mouse move & pupil move...it very easy..!!! just i change this code:
sstr<<1.2*x_pos;
xcord = sstr.str();
sstr2<<0.9*y_pos;
ycord = sstr2.str();
1.2 & 0.9 is Multiple desktop to start the coordinate . (google translate!!!) before it this Multiple is 5, As a result of moving the mouse was missing. with my code i dont need calibration!!! just use this code for control mouse move:
int xx=(circles[i][1])-x;
x=(circles[i][1]);
xx=abs(xx);
int yy=(circles[i][1])-y;
y=(circles[i][1]);
yy=abs(yy);
if(circles.size()!=0 ){ //اگر دایره ای در تصویر تشخیص داده شد شرط اجرا شود
if (xx>20 || yy>20){
(circles[i][0])=(circles[i][0])*(2);
(circles[i][1])=(circles[i][1])*(2);
mousemove((circles[i][0]),(circles[i][1]));}}
Unfortunately, my English is not good otherwise I wrote a fuller explanation. As well as the comments related to face detection and iris the detection of eye and then move the mouse.
Can I add after additional clarification on this page? Or an article ...
very thanks mr@StevenPuttemans
2 | No.2 Revision |
hello MR @StevenPuttemans i can Coordinate mouse move & pupil move...it very easy..!!! just i change this code:
sstr<<1.2*x_pos;
xcord = sstr.str();
sstr2<<0.9*y_pos;
ycord = sstr2.str();
1.2 & 0.9 is Multiple desktop to start the coordinate . (google translate!!!)
before it this Multiple is 5, As a result of moving the mouse was missing.
with my code i dont need calibration!!! just use this code for control mouse move:
int xx=(circles[i][1])-x;
x=(circles[i][1]);
xx=abs(xx);
int yy=(circles[i][1])-y;
y=(circles[i][1]);
yy=abs(yy);
if(circles.size()!=0 ){ //اگر دایره ای در تصویر تشخیص داده شد شرط اجرا شود
if (xx>20 || yy>20){
(circles[i][0])=(circles[i][0])*(2);
(circles[i][1])=(circles[i][1])*(2);
mousemove((circles[i][0]),(circles[i][1]));}}
Unfortunately, my English is not good otherwise I wrote a fuller explanation. As well as the comments related to face detection and iris the detection of eye and then move the mouse.
Can I add after additional clarification on this page? Or an article ...
very thanks mr@StevenPuttemans
3 | No.3 Revision |
hello MR @StevenPuttemans i can Coordinate mouse move & pupil move...it very easy..!!! just i change this code:
sstr<<1.2*x_pos;
xcord = sstr.str();
sstr2<<0.9*y_pos;
ycord = sstr2.str();
1.2 & 0.9 is Multiple desktop to start the coordinate . (google translate!!!) before this Multiple is 5, As a result of moving the mouse was missing. with my code i dont need calibration!!! just use this code for control mouse move:
int xx=(circles[i][1])-x;
x=(circles[i][1]);
xx=abs(xx);
int yy=(circles[i][1])-y;
y=(circles[i][1]);
yy=abs(yy);
if(circles.size()!=0 ){ //اگر دایره ای در تصویر تشخیص داده شد شرط اجرا شود
if (xx>20 || yy>20){
(circles[i][0])=(circles[i][0])*(2);
(circles[i][1])=(circles[i][1])*(2);
mousemove((circles[i][0]),(circles[i][1]));}}
Unfortunately, my English is not good otherwise I wrote a fuller explanation. As well as the comments related to face detection and iris the detection of eye and then move the mouse.
Can I add after additional clarification on this page? Or an article ...
my project code ; https://github.com/Ehsan-Shahnazi/ video of my project: https://www.youtube.com/user/eshahnazi very thanks mr@StevenPuttemans
4 | No.4 Revision |
hello MR @StevenPuttemans i can Coordinate mouse move & pupil move...it very easy..!!! just i change this code:
sstr<<1.2*x_pos;
xcord = sstr.str();
sstr2<<0.9*y_pos;
ycord = sstr2.str();
1.2 & 0.9 is Multiple desktop to start the coordinate . (google translate!!!) before this Multiple is 5, As a result of moving the mouse was missing. with my code i dont need calibration!!! just use this code for control mouse move:
int xx=(circles[i][1])-x;
x=(circles[i][1]);
xx=abs(xx);
int yy=(circles[i][1])-y;
y=(circles[i][1]);
yy=abs(yy);
if(circles.size()!=0 ){ //اگر دایره ای در تصویر تشخیص داده شد شرط اجرا شود
if (xx>20 || yy>20){
(circles[i][0])=(circles[i][0])*(2);
(circles[i][1])=(circles[i][1])*(2);
mousemove((circles[i][0]),(circles[i][1]));}}
Unfortunately, my English is not good otherwise I wrote a fuller explanation.
As well as the comments related to face detection and iris the detection of eye and then move the mouse.
Can I add after additional clarification on this page? Or an article ...explanation.
my project code ; https://github.com/Ehsan-Shahnazi/ video of my project: https://www.youtube.com/user/eshahnazi very thanks mr@StevenPuttemans