augmented-reality

OpenCV rotation (Rodrigues) and translation vectors for positioning 3D object in Unity3D

我是研究僧i 提交于 2019-12-30 06:44:12
问题 I'm using "OpenCV for Unity3d" asset (it's the same OpenCV package for Java but translated to C# for Unity3d) in order to create an Augmented Reality application for my MSc Thesis (Computer Science). So far, I'm able to detect an object from video frames using ORB feature detector and also I can find the 3D-to-2D relation using OpenCV's SolvePnP method (I did the camera calibration as well). From that method I'm getting the Translation and Rotation vectors. The problem occurs at the

Get screen coordinates by specific location and longitude (android)

我与影子孤独终老i 提交于 2019-12-30 04:32:29
问题 I have an application of augmented reality in which I have stored information such us metro, gas stations, places of interest, etc. with the corresponding latitude and longitude. Now, according to the orientation of the device, I would show a marker for each site in the camera view of the device. Similar to Layar and Wikitude. It takes three days searching without stopping and have not found anyone to explain how to solve this problem. 回答1: Since information on this topic is very sparse, and

Radar View like LOVOO [closed]

Deadly 提交于 2019-12-30 00:04:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Hi I am developing a location based iOS application. In which there is a feature to find user's friends in a radar view. I am getting friends latitude and longitude from backend. Now I tried so many thing to show them in a radar view like a compass (means when I rotate the friend

Scaling AR pictures based on the distance from the camera

只愿长相守 提交于 2019-12-29 09:34:15
问题 I’m developing an augmented reality iPhone app. What it should basically do is display pictures assigned to geographical locations when you look at them by the camera. Each such picture may be understood as a billboard which has its geographical position and a heading (understood as an angle between its plane and the north direction axis). The goal is to make these billboards display more or less like they were physical objects. They should be larger if you are close to them and smaller when

ARKit – Drag a node along a specific axis (not on a plane)

China☆狼群 提交于 2019-12-29 04:57:11
问题 I am trying to drag a node exactly where my finger is on the screen on the Y -axis. But I don't find any way to do it, here is my current code. Do you have any idea? var movedObject:SCNNode? @objc func handlePan(_ recognizer: UIPanGestureRecognizer) { if recognizer.state == .began { let tapPoint: CGPoint = recognizer.location(in: sceneView) let result = sceneView.hitTest(tapPoint, options: nil) if result.count == 0 { return } let hitResult: SCNHitTestResult? = result.first movedObject =

What is the best way to record a video with augmented reality

亡梦爱人 提交于 2019-12-28 18:39:11
问题 What is the best way to record a video with augmented reality? (adding text, images logo to frames from iPhone/iPad camera) Previously I was trying to figure out how to draw into CIImage (How to draw text into CIImage?) and convert CIImage back to CMSampleBuffer (CIImage back to CMSampleBuffer) I almost did everything, only have problem with recording video using new CMSampleBuffer in AVAssetWriterInput But this solution anyway isn't good at all, it eats a lot of CPU while converting CIImage

vuforia sdk + android failed to initialize Vuforia with permission exception

本秂侑毒 提交于 2019-12-25 04:48:09
问题 App crashes after running the program with failed to initialize Vuforia with permission exception Android version is <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> testing on device 4.1.1 (api level 16) with front camera only. Permission included in manifest file: <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.INERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses

Not able to load .dae file while creating a SCNScene object in ARKit

梦想的初衷 提交于 2019-12-25 01:45:50
问题 I am trying to load a .dae file with the help of the following line of code: let scene = SCNScene(named: "art.scnassets/bench.dae") But, when I run my project, the app is crashing because the variable scene is nil. What am I doing wrong? 回答1: It seems that the problem was with the .dae file's size/orientation. I rotated it by 90 degrees and scaled the image down and it seems to work now. 回答2: I know this is pretty old, but in case anyone faces this issue like i had yesterday, here is what I

How to change Color of ModelRenderable?

邮差的信 提交于 2019-12-24 21:58:44
问题 i have a ModelRenderable attached to a Node and rendered in an ArFragment. I would like to highlight this element to the user for 0.5 sec in a prominent color. I tried to change the material, but it didn't work out. The rendering freezes without throwing an error. Here is what I tried: private void addHighlightToNode(Node node) { CompletableFuture<Material> materialCompletableFuture = MaterialFactory.makeOpaqueWithColor(this, new Color(0, 255, 244)); ModelRenderable highlightedRenderable =

Mapbox Ar does not work in all directions

故事扮演 提交于 2019-12-24 21:23:57
问题 I have built an augmented reality application in Unity through Mapbox. Also, I geolocated some points through Mapbox. Points seems in AR in the application. But, I realized that when application is initialized the direction of the phone is important. It just shows the truth when phone follows the north. I have some searched on internet, but I couldn't find any exact information. I prefer to work application independently from phone direction. Can somebody explain that or are there any