mouse control by color detection methods using java robot class....
4 次查看(过去 30 天)
显示 更早的评论
i used a code to detect color where i can only detec red,green or blue color using "imsubtract(data(:,:,1),rgb2grey(data))" command... then i applied robaot java class for mouse pointer movement relative to cordinates of the color.... the mouse pointer moves and also clicks, but the problems i faced are..... 1) i dont know how the clicking operation is being executed.... does it executes when pointer is stable on a folder for some specified time or when another color is detected by the system?...... 2) if i move my hand to right , the pointer moves left and vice versa..... how to reverse that....... 3)if the camera resolution is less than the resolution of the screen, whole screen is not covered with this system.... how to eliminate this?..... 4)if i want to detect two different colors and execute clicking operations by manipulating the distance between the colors, how can i do that..?? please help...
1 个评论
Walter Roberson
2013-2-21
Is this not the same topic as http://www.mathworks.co.uk/matlabcentral/answers/64131-mouse-control-by-color-detection-methods ?
回答(1 个)
vidit virmani
2013-2-21
1 个评论
Jan
2013-2-21
编辑:Jan
2013-2-21
Without a proper formatting, this code is not readable. Didn't you see this by your own? Please read http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup. In addition information, which is essential to understand the question, should be seen inside the question and not in the section for answers. Therefore editing the questions is possible in this forum.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!