필터 지우기
필터 지우기

How eye tracking controlled mouse?

조회 수: 1 (최근 30일)
JongJin Kwag
JongJin Kwag 2017년 5월 26일
댓글: MathReallyWorks 2017년 5월 26일
We are now in the process of tracking the eyes and moving the mouse. but mouse not move why? please teach mouse moving! Help me please uu

채택된 답변

MathReallyWorks
MathReallyWorks 2017년 5월 26일
Hello Jongjin,
If you are able to track the eyes and get the co-ordinates of a point where your eyes are looking, use
set(0, 'PointerLocation', [x, y])
in a loop for all [x,y] co-ordinates that you are tracking.
It works according to your requirement.
If you want to test the above code, copy and paste this line:
set(0, 'PointerLocation', [100,100])
in your command window. You can see pointer location clearly.
  댓글 수: 2
JongJin Kwag
JongJin Kwag 2017년 5월 26일
Thank you! I owe you but my mouse's not move. could you more teach details me?
MathReallyWorks
MathReallyWorks 2017년 5월 26일
Your "mouse" won't move JongJin. Your "cursor' will move on the screen. To see the movement clearly, run this code:
for x=1:100
for y=1:100
set(0, 'PointerLocation', [x, y])
pause(0.001); %Delay is introduced for clarity of movement.
end
end
If you want your mouse to move on mouse pad. You will have to introduce a hardware interfacing on your mouse with the help of servo or stepper motor. Further you can code these motors for proper movement of your mouse on mouse pad.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GUIDE 앱 마이그레이션하기에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!