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!