mludowise / arkitrectangledetection Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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.
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
Would you adopt vertical plane detection for this code at any point, since ARKit now provides vertical plane detection in beta?
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!
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.
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?
I facing the same issue like #4. is the solution for this issue?
Great work, i have tested on iPhone X and not detection fully width of object, can you please help to fix this issue?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.