Giter Site home page Giter Site logo

arkitrectangledetection's People

Contributors

choas avatar mludowise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arkitrectangledetection's Issues

Non-horizontal planes

Great work; any thoughts on how to make this work with non-horizontal planes? For example, a picture on the wall or a computer screen?

I know ARKit only does horizontal plane detection. But trying to figure out if this might be possible to deduce from the 4 corners, the position of the camera, and the distance to an ARHitTestResult.featurePoint at the midpoint of the rectangle.

Retrieve 2d locations in camera frame image of the 3D rectangle?

You have a way to find the 3D position given the VNRectableObservation.

But once the 3D rectangle is created and tracked by ARKit, I would like to know (at every frame) the 2d positions of the 4 corners.

(I want to perspective correct this area to send to a remote person).

Is there a method that I could use?

Laurent

Vertical Plane Detection

Would you adopt vertical plane detection for this code at any point, since ARKit now provides vertical plane detection in beta?

Raycasting equivalent?

Has anyone had any luck using this technique for raycasting? I'm pretty sure "allowing: .estimatedPlane, alignment: .any" for the raycastQuery is supposed to be the equivalent for .existingPlaneUsingExtent, but the anchors don't seem to match up the same way. BTW thanks for posting this Mel, this sample is awesome!

Sometimes the placed rectangle is upside down

You can't tell in the code with the white squares since they're symmetrical but I've noticed when adapting this code that sometimes it gets placed upside down relative to the viewer. You can easily notice if you put text in the SceneKit node, for example.

Haven't been able to pin down exactly when this happens. I think it has to do with where you are relative to the ARKit world's origin when the node is placed into the world.

Detected Rectangle is never accurate

Hello,
I am running the code as it is but the detected rectangles are no where close to the actual size of the rectangle. Could you please help?

License clarification

Hello,

I found this project from here, and I just had a quick question about the license. The License.txt file says that it is MIT, but the source files (eg) say Copyright © 2017 Mel Ludowise. All rights reserved. Which license is the project under?

Thanks,
-tlf

add an object on the detected plane

hello
how can I add an object in the center of the detected plane
in RectangleNode.swift i tried for example to add a simple sphere

let sphereGeometry = SCNSphere(radius: 20)
let sphereNode = SCNNode(geometry: sphereGeometry)
self.addChildNode(sphereNode)
sphereNode.position = position

but the sphere doesn't appears ...

thanks for your help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.