Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using OpenCV for localization. #442

Open
AhmedSamara opened this issue Jan 18, 2016 · 6 comments
Open

Using OpenCV for localization. #442

AhmedSamara opened this issue Jan 18, 2016 · 6 comments

Comments

@AhmedSamara
Copy link
Member

After much struggling, it seems that we won't be able to use the modified QRCodeStateEstimation library on the final robot, due to the ZBAR library being incompatible with the BeagleBone, as well as our struggling to get BOOST library working to work.

Looking at the source code for that library though, it's not that complicated and we should be easily recreated in python.
All you really need is a set of (known) points, and to be able to identify them in the images captured by the webcam.

This is the part that made Zbar really simple. When it finds a QR code, it also tells you where the vertices are, and this is the part that I'm running into problems with now.

I was hoping to solve this problem using SURF points

The change in how we're approaching this is explained in my senior design presentation:

opencv

Basically the problem I'm running into is that even though I can now identify a bunch of known points on the QR code, there's still a few problems:

  • Not all of the SURF points are unique to each QR code.
  • When we find SURF points on the cameras captured frames, there are points on everything.
    How do we isolate the points just on the QR code?
  • Is there something better than surf points to use?
@AhmedSamara
Copy link
Member Author

@AhmedSamara
Copy link
Member Author

This looks promising now

https://gist.github.com/AhmedSamara/0ce6a836dd45e16b68ba

@AhmedSamara
Copy link
Member Author

matches

It looks pretty promising.

@PaladinEng
Copy link
Contributor

Is this running on the BBB?

On Sun, Jan 24, 2016 at 5:43 PM, Ahmed Samara notifications@github.com
wrote:

[image: matches]
https://cloud.githubusercontent.com/assets/2405319/12539494/ebbd985c-c2c1-11e5-92b3-af8da39d49a5.png

It looks pretty promising.


Reply to this email directly or view it on GitHub
#442 (comment).

@AhmedSamara
Copy link
Member Author

http://stackoverflow.com/questions/7263621/how-to-find-corners-on-a-image-using-opencv

Here's another strategy for generic objects.

@AhmedSamara
Copy link
Member Author

Two cameras might help, here are instructions for setting up the second:

http://ubuntuforums.org/showthread.php?t=168221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants