how do i use matlab to track an object which is clicked on screen by the user???
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vivek Dharmarajan
am 12 Mär. 2015
Beantwortet: Aaron T. Becker's Robot Swarm Lab
am 8 Apr. 2015
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 Kommentare
Antworten (1)
Aaron Becker
am 8 Apr. 2015
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 Kommentare
Siehe auch
Kategorien
Mehr zu Robotics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!