augmented-reality

Android - show processed camera preview

寵の児 提交于 2019-12-07 20:11:02
问题 i´m trying to create some kind of AR (Augmented Reality), but i don´t know how exactly can I get preview from phone camera frame by frame , process each frame as a bitmap and than show it in my SurfaceView . My starting point is CameraPreview SDK example. Can anybody tell me, how to: 1) get frame/bitmap from camera (i guess, i´ll need to decode picture from YUV to RGB like here: Converting preview frame to bitmap) 2) show bitmap (after processing) in a SurfaceView 回答1: Finally, i found what i

Programmatically setting texture in Scene generated by Reality Composer

余生长醉 提交于 2019-12-07 17:28:33
I am creating a cylinder object using Reality Composer. My requirement is to wrap the cylinder with custom image. Image is dynamically created by the app. I have tried following approach and so far it's not working. After loading the anchor from Experience. Fetch model entity from anchor. Fetch model component from model entity. Add or edit material. Code: // Load the "anchor" scene from the "Experience" Reality File let anchor = try! Experience.loadAnchor() // Add the anchor to the scene arView.scene.anchors.append(anchor) let cylinderEntity : Entity = anchor.cylinder! let cylinderModelEntity

Using Google Vision API with ARCore in Android

自作多情 提交于 2019-12-07 13:10:59
问题 I'm looking to build an app that detects certain objects and then overlays something using ARCore. Is it possible to use Google's Vision API for real-time detection of objects? If not, is there another library that I could use that has object detection, landmark detection, and/or OCR? 来源: https://stackoverflow.com/questions/56031856/using-google-vision-api-with-arcore-in-android

Placing an object 30 meters above a person

旧巷老猫 提交于 2019-12-07 07:05:28
问题 Is it possible to place an object right above a person that is 30 or 50 meters higher? When I try to place an object linked to anchor it is visible in 20 meters and not visible in 40 meters? Why this happens and how can I configure this? 回答1: It is frustum culling issue in ARCore – objects that aren't within the viewable area of camera frustum won't be rendered. Typically FoV (field of view) in Android devices is around 60 degrees horizontally (vertical aperture depends on aspect ratio).

Creating Augmented Reality Application for blackberry10

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 06:40:17
问题 I'm a BlackBerry native applications developer. I'm new in BB10 apps development. I'm supposed to create an Augmented Reality based application in BB10. I've no idea whether there's any third party library available for blackberry10 or not. I have googled this thing. Have come to know that Wikitude has provided wikitide-SDK for Android and iOS; using it, android and iPhone developers can develop AR (Augmented Reality) Apps very easily. News says that Wikitude will release SDK for BlackBerry

How to ask webcam to auto focus with Unity3D

为君一笑 提交于 2019-12-07 01:11:06
问题 Currently, I am working on some Augmented Reality mobile app with Unity3D. The performance is impacted by the image quality. Is there some way to ask webcam to auto focus with Unity3D? 回答1: As far as I know it is not possible in pure Unity3D. However, if you are developing this on Android, you can write a plugin in java, which sets autofocus and call it from Unity3D. public void enableAutofocus() { camera = camera.open(); Camera.Parameters parameters = camera.getParameters(); List<String>

Augmented Reality App in Landscape Mode

风流意气都作罢 提交于 2019-12-07 01:00:34
I am trying to build an augmented reality app using the CoreMotion framework. I have tried to go off of Apple's pARk sample code project, but it only works in portrait mode. I need it to work in landscape. When switched to landscape mode the subviews in the overlay view move in the opposite directions and at the wrong rate (they either move too fast or too slow across screen) I have read other postings that provide two solutions: Create a reference attitude and apply the inverse of that attitude to the current attitude, as suggested in the CoreMotion Tea Pot Example. Rotate the quaternion

What is the best way to debug IL2CPP code?

故事扮演 提交于 2019-12-07 00:59:26
With Unity doing away with the .NET scripting backend we have been using the IL2CPP scripting backend so we can get used to it. We have having a very hard time debugging c++ code as the code files created do not use the same method names from the .NET code. More specifically we are developing for the Hololens emulator. I heard that Unity is putting out some sort of debugger that will let you debug managed .NET c# code at runtime even when you use the IL2CPP scripting backend, does anyone know if that is true and, if so, when that will be coming out. Is anyone doing anything to make this

Unity (Vuforia) embedded within Android App

心不动则不痛 提交于 2019-12-07 00:19:29
i have the exact same problem here with the different that when i added vuforia wrapper unity application got crashed before lunching if i didn't add vuforia wrapper the unity app open and behave normally but with black screen instead of camera Unity (Vuforia) project integrated in Android project shows a black screen on startup Unity Version: 2018.3.6f1 Vuforia version: 8.1.7 Android APP Gradle apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.myfit" minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0"

Marker based AR android application using Qualcomm SDK

让人想犯罪 __ 提交于 2019-12-06 16:48:48
I am developing an android application in which a specific video is played when the poster of a specific movie is shown infront of the camera in android. Earlier i was using AndAr project for this stuff and i did some changes in draw() function of customObject and got it working. But now my client wants me to use Qualcomm sdk . I was playing with image targets application but couldnt find anything to get in my head. Ok i got it working. The following is the solution to it which i got from this link https://ar.qualcomm.at/arforums/showthread.php?t=32 The imagetargets.cpp which i had was already