augmented-reality

Best way to count number of “White Blobs” in a Thresholded IplImage in OpenCV 2.3.0

强颜欢笑 提交于 2019-12-13 02:52:37
问题 I need to count the number of white blobs in a Thresholded image. I'm counting small squares on a marker. But due to the poor image quality of the webcam, these squares don't appear as squares. This is why I decided to use Blob detection. This is for an Augmented reality application. Is my decision right? Camera placed near the marker Camera placed far from the marker 回答1: What about the cvFindContours function? It's been a while since I use it but I think you can then iterate in the CvSeq of

Reduce Application Lag while using shadows in SceneKit

不打扰是莪最后的温柔 提交于 2019-12-13 02:15:50
问题 I am working on a 3D map in SceneKit. When I enable the Cast Shadow Property of a directional light in SceneKit, the shadows appear, but the application becomes very slow. How do I reduce the lag while still maintaining shadows in the scene? 回答1: Use Fake Shadows (shadows generated and baked as a texture in 3D authoring tool) rather than True Shadow Map . To apply fake shadows as a texture for 3D plane use PNG file format with premultiplied alpha channel ( RGB * A ). It helps you get rid of

How to I get more reliable Y position tracking for the Google Tango in Unity?

此生再无相见时 提交于 2019-12-13 00:55:13
问题 We have a unity scene that uses arealearning which has been extremely reliable and consistent about XZ position. However we are noticing that sometimes the tango delta camera’s Y position will "jump up" very high in the scene. When we force the tango to relocalize (by covering the sensors for a few seconds), the Y position remains very off. At other times, the Y position varies a 0.5 - 1.5 unity units when we first start up our Unity app on the tango and are holding it in the exact same

How can we show a layout instead of tea pot model in vuforia sdk ImageTarget after image recognition

一世执手 提交于 2019-12-12 19:03:59
问题 How can we show a simple text i.e. "Hello" in a layout, if the the image is recognized in qualcomm vuforia sdk. i am using qualcomm vuforia sdk sample of ImageTarget, now it is showing a teapot after image is recognized. I am new in augmented reality. please help me. 回答1: in JNI folder go to imagetarget.cpp file comment the Following things #include "Teapot.h" this is the file that is loading a 3d Texture after that // Draw object: glBindTexture(GL_TEXTURE_2D, thisTexture->mTextureID);

I Want To Load Entity To Animate

孤街醉人 提交于 2019-12-12 16:38:18
问题 I am using AFrame 0.8.2 . I Want to load an animated model using like FBX Format. I tried all formats but its not working . I Imported JSON model with animation ,It Worked But its Hard to get JSON Model. So I want to Load FBX Model . Here My Cod eIn GLITCH . Please Edit The Code In Glitch And Provide A Solution . <a-scene embedded arjs='sourceType: webcam;'> <a-marker preset='hiro'> <a-entity fbx-model=”src: url(https://cdn.glitch.com/c7db968f-5d83-44e4-a392-a5c98687035a%2FNeck_Mech_Walker_by

ARCore – Cloud Anchors for more than 24 hours or Feature Points for more than 7 days

喜你入骨 提交于 2019-12-12 15:13:35
问题 Is it possible to have Cloud Anchors be accessed after 24 hours and/or the feature points re-activated? 回答1: Cloud Anchors stored at Google ARCore Cloud Anchor Service expire after 24 hours . At this time it's still impossible to access Cloud Anchors after 24 hours. Also Point Cloud is discarded after 7 days. It's potentially possible to use your own hosting service for Cloud Anchors, but in that case you'll be unable to use an ARCore Cloud Anchor API. Once an Anchor is hosted successfully,

valid way to calculate angle between 2 CLLocations?

牧云@^-^@ 提交于 2019-12-12 14:22:56
问题 Is this a valid way to calculate an angle (in radians) from one CLLocation to another? -(float)angleFromLocation:(CLLocationCoordinate2D)start toLocation:(CLLocationCoordinate2D)end { float deltaX = start.latitude - end.latitude; float deltaY = start.longitude - end.longitude; float ang = atan2(deltaY, deltaX); return ang;} Please advise! Any help will be much appreciated. 回答1: I used a variant of this question and answer and it works well: double DegreesToRadians(double degrees) {return

ARCore – How to place/create objects on surfaces like walls without any Feature Points?

冷暖自知 提交于 2019-12-12 12:10:03
问题 For example: I am interested in placing 2D images on a vertical plane (like: white or single solid color walls with no feature points present). What are different workarounds? I am aware that ARCore supports placement of objects with respect to other objects. How can I extend this to fulfill my requirement of placing objects relative to other objects where feature points are not detected? Any ideas or workaround much appreciated. 回答1: You can set an Anchor relative to the camera position - i

Resetting ARKit coordinates

白昼怎懂夜的黑 提交于 2019-12-12 10:49:45
问题 I have a simple question. If I wanted to start a game and place the board right in front of me: gameBoard!.position = SCNVector3(0, 0, -0.6) This works until I leave the game and come back again. Can I show the game board in exact same position in front of camera or 0.6m in front of me? I might have physically moved to another position. 回答1: If you want to reset you ARSession, you have to pause, remove all nodes and rerun your session by resetting tracking and removing anchors. I made a reset

How to find Camera matrix for Augmented Reality?

我只是一个虾纸丫 提交于 2019-12-12 10:38:11
问题 I want to augment a virtual object at x,y,z meters wrt camera. OpenCV has camera calibration functions but I don't understand how exactly I can give coordinates in meters I tried simulating a Camera in Unity but don't get expected result. I set the projection matrix as follows and create a unit cube at z = 2.415 + 0.5 . Where 2.415 is the distance between the eye and the projection plane (Pinhole camera model) Since the cube's face is at the front clipping plane and it's dimension are unit