Object detection - AR.Drone [closed]

asked 2018-07-19 15:56:17 -0500

Dylan gravatar image

Hello everyone,

In Gazebo, I have an AR.Drone 2.0 and a map, and I can see with both cameras, and print them using OpenCV with the code provided here:

http://wiki.ros.org/cv_bridge/Tutoria...

In that code, a red circle is added to the original image. Now I want the camera to detect a predefined tag, for example:

image description

I understand that I have to modify the code above (the part where it draws the circle) with an algorithm that searches for that specific tag in the image and prints its result, but I don't know how to write that. One algorithm that I found is the TLD Predator (Tracking, Learning and Detection).

Thanks :D

edit retag flag offensive reopen merge delete

Closed for the following reason OpenCV Question: THe OpenCV community prefers to answer questions at: http://answers.opencv.org/questions/ by jayess
close date 2019-04-16 15:13:15.019753

Comments

What is your question?

jayess gravatar image jayess  ( 2018-07-19 18:55:46 -0500 )edit

The question is: how can I modify that code to do what I said previously?

Dylan gravatar image Dylan  ( 2018-07-19 20:35:43 -0500 )edit

This may not be, but it sounds like a homework problem.

jayess gravatar image jayess  ( 2018-07-19 20:45:39 -0500 )edit

What have you tried so far?

jayess gravatar image jayess  ( 2018-07-19 20:48:16 -0500 )edit

Nope. I’m working on a project (not for money!) and this is just part of it, but I’ve been reading about this the last 2 days and couldn’t find out exactly how to write it. I know how to read code in C++ but I have beginner level writing it. And writing a ROS code is even more difficult

Dylan gravatar image Dylan  ( 2018-07-19 20:57:13 -0500 )edit

I read about some algorithms (for example, TLD Predator) and also saw some thesis (for example one named visual control for an ardrone, or something like that). I need to have a code that detect patterns so I can modify it and do what I need. This is just a starting point

Dylan gravatar image Dylan  ( 2018-07-19 21:00:01 -0500 )edit

This is rather off-topic for this site. I'd say that you should ask on OpenCV Answers instead. Then, when you're ready ask about any issues that you're having with ROS on this site.

jayess gravatar image jayess  ( 2018-07-19 21:24:06 -0500 )edit

But I think that OpenCV people would say the same. The ROS part is more difficult, I can do (or investigate and study) the corresponding algorithm

Dylan gravatar image Dylan  ( 2018-07-19 22:00:40 -0500 )edit