• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Kiloblargh · Oct 06, 2013 at 09:41 PM · videovuforiaaugmented-realityplanedetection

How should I detect horizontal and vertical surfaces for AR?

I just got the Vuforia plugin, which looked like a good place to start but it seems to not be exactly what I am trying to do. I don't want to recognize pictures and things from the video and place them in 3d, I just want to recognize any solid surface that is parallel or perpendicular to the ground by the distinctive way it moves.

I have a fuzzy idea in my head that starts with tracking 2d motion of lots of points in the camera view that are recognized as being the same from one frame to the next, and their screen space movement vector ( streaming video compression does this, doesn't it?) and then finding if any group of points are moving in the same way they would if they were on a level floor surface or 90º vertical flat surface. Then extend the planes to the corners where they all meet and eventually make some kind of voxel octree of the walkable volume of your house, that would get more accurate and filled-in each time you walk through it...

Is there already something I can find for free or cheap that does that- just the first part about plane detection from video? If not, what do I even start reading to understand how to code such a thing myself? I can already tell it's not going to be pretty.

Comment
jzq740176597
pnkapadia6

People who like this

2 Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kiloblargh · Oct 06, 2013 at 10:00 PM 0
Share

After searching some more, it looks like OpenCV or EmguCV is more what I want than Vuforia, but all of what I found about OpenCV in Unity is "I can't get it to work."

avatar image tanoshimi · Oct 06, 2013 at 10:06 PM 0
Share

As you're talking about AR, is this for a mobile device? I have worked with OpenCV before but only in a desktop build - not sure if it could do what you're suggesting in realtime on a mobile.

avatar image Kiloblargh · Oct 06, 2013 at 11:31 PM 0
Share

Yes, I think I want to use a WebcamTexture and hopefully find some open-source code to get structure-from-motion points from an image sequence; I've just found some heavy-reading research papers with no code available and existing tricky-to-integrate packages that try to do a lot more than the one thing I need.

avatar image jzq740176597 · Aug 22, 2016 at 08:53 AM 0
Share

Hello! Kiloblargh!

Have you solved your question or find a viable solution ??

I just face the same problem here .

Any hint!?

Regards!

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Cloud recognition in Vuforia 0 Answers

how can i save a video from project folder (ASSETS) to android internal or external storage? 1 Answer

Face detection using dynamic image target. 1 Answer

Have both canvas' buttons and Vuforia video canvas' button working in the same scene? 0 Answers

Unity and Vuforia 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges