how do i use matlab to track an object which is clicked on screen by the user???
1 回表示 (過去 30 日間)
古いコメントを表示
im making a robot (arduino microcontroller and xbee communication)....the robot has a wireless camera which gives a live video feed which is acquired in matlab....the objective of the robot is to track the clicked object(mouseclick) , design the safest path to the object avoiding obstacles ,and finally reach the object......i need help in localizing the clicked object and obtaining a path to it????.....and should i necesserily use stereo cameras????
0 件のコメント
回答 (1 件)
Aaron Becker
2015 年 4 月 8 日
This problem isn't fully defined. Let's assume that you are trying to track a colored ball visible in the image and on the ground, and that your robot is a wheeled robot moving on a flat floor.
Start with ginput(1) to get the mouse click, then (perhaps) use blob detection matlab-code-for-background-subtraction-and-blob-detection to detect the object near the mouse click. A filter in HSV or RGB colorspace works well for this.
If your robot has range sensors (IR or Ultrasonic or a Kinect), you should design a simple wall-following routine to avoid crashing into obstacles, and switch behaviors from MoveToObject to AvoidWall whenever a wall is detected.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Robotics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!