augmented-reality

Get Started with Open CV image recognition

巧了我就是萌 提交于 2019-12-06 16:28:17
问题 I am trying to make an app for image recognition with Open CV, i want to implement something like this but i don't know how should i do it can any one give me any help where should i begin from i have downloaded Opencv for iOS from here, I have a hardcopy of image as an example which i want to scan through the camera and the images(markers) i have imported in project now when i scan the image through camera then it should overlay the markers on the image and when i tap/select the marker it

Set text programmatically of an Entity in Reality Composer - iOS 13

别说谁变了你拦得住时间么 提交于 2019-12-06 16:05:18
In my iOS app I want to introduce a part of AR using the new Reality Composer. In my project I load a scene with this code: let arView = ARView.init(frame: frame) // Configure the AR session for horizontal plane tracking. let arConfiguration = ARWorldTrackingConfiguration() arConfiguration.planeDetection = .horizontal arView.session.run(arConfiguration) arView.session.delegate = self self.view.addSubview(arView) Experience.loadSceneAsync{ [weak self] scene, error in print("Error \(String(describing: error))") guard let scene = scene else { return } arView.scene.addAnchor(scene) // THIS IS THE

Opengl Augmented Reality in Android from solvepnp

安稳与你 提交于 2019-12-06 15:32:05
I am trying to project a 3D surface in opengl on top of a camera view in Android. I am using opencv function solvepnp in native code to get the rotation and translation vectors of the device camera. I use these vectors to calculate the modelView matrix and modelViewProjection matrix as given in the following link: http://spottrlabs.blogspot.com/2012/07/opencv-and-opengl-not-always-friends.html Finally, I pass these matrices to the java code in a float array but when I use these matrices in my renderer I don't get the surface projection on the screen. I am sure that my 3D surface is generated

Not able to add texture image to a cube in ARKit

限于喜欢 提交于 2019-12-06 15:30:34
问题 I am not able to add an image to the cube in ARKit using the "Material" object. Here is the code: import UIKit import SceneKit import ARKit class SimpleBoxViewController: UIViewController, ARSCNViewDelegate { var sceneView: ARSCNView! override func viewDidLoad() { super.viewDidLoad() self.sceneView = ARSCNView(frame: self.view.frame) self.view.addSubview(self.sceneView) sceneView.delegate = self sceneView.showsStatistics = true let scene = SCNScene() let box = SCNBox(width: 0.2, height: 0.2,

Painting over JMF component

落花浮王杯 提交于 2019-12-06 13:57:36
问题 I'm capturing the Stream from a webcam and would like to draw something on top of the video image. I try that in the example below, the problem is that the other component is always in the background no matter how I arrange the components. Is there a way do solve this? public class SwingCapture extends JPanel { private static final long serialVersionUID = -1284686239737730338L; private static Player player = null; public static final int WIDTH = 640; public static final int HEIGHT = 480;

How to change Vuforia AR camera focus mode?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 13:16:47
I am using Vuforia 6.2 AR SDK for in Unity. But while I test the application in Android phone the camera seems like blurry . I searched in Vuforia's developer website and found some camera focus mode but I can't implement because that guideline was for older Vuforia SDK, I can't find the script they mentioned in their website. Here is their code sample but it's not working. I created different script and run this line on Start() function, but still not working. CameraDevice.Instance.SetFocusMode( CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO); try this void Start () { VuforiaBehaviour

Drawing a line given the angle and a point on the line

柔情痞子 提交于 2019-12-06 07:56:04
In my image I have a triangle (representing an arrow). This arrow defines the direction and area under consideration for further search in same image. For example if I have a triangle rotated at 30 degree w.r.t x-axis and it's tip is located at (250,150) in the image. I would want to find and draw a line normal the tip of triangle, as shown in the image below. In the image above, I have the angle of blue line in the triangle, to which the normal is to be drawn. Also the tip of the triangle is known which is the only point known on the normal line. My code for the python function is given below

How to use environment map in ARKit?

和自甴很熟 提交于 2019-12-06 06:20:12
问题 ARKit 2.0 added a new class named AREnvironmentProbeAnchor. Reading it's instructions, it seems that ARKit can automatically collect environment texture (cubemap?). I believe that we can now create some virtual objects reflecting the real environment. But I am still not clear how this work, particularly how the environment texture is generated. Does anyone have simple sample code demonstrating this cool feature? 回答1: Its pretty simple to implement environmentTexturing in your AR project. Set

augmented reality — Android [closed]

限于喜欢 提交于 2019-12-06 05:54:06
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 6 years ago . I am new and blank to augmented reality framework for android. Can anyone guide me on how to integrate this with android applications. And any other framework for augmented reality which could be used to our application. please guide me. Nirali You can refer to below link AndAR - Android Augmented Reality can be

Need to play Video in ARCORE

£可爱£侵袭症+ 提交于 2019-12-06 05:06:06
问题 As we know in ARCore, we can detect 3d object while click on the horizontal plane surfaces. Instead of 3d object, I need to show Video when User is going to click the PLane Surfaces . The Look and feel should be same like 3d object is displaying. Instead of 3d object, the video should be displayed in preview mode. In ARcore they are currently using one Relativelayout with Surfaceview. So for displaying Video, I am using the Surfaceview and attaching with mediaplayer. public void