arcore

Providing video recording functionality with ARCore

痴心易碎 提交于 2019-11-27 14:26:15
问题 I'm working with this sample (https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java), and I want to provide the functionality to record a video with the AR objects placed. I tried multiple things but to no avail, is there a recommended way to do it? 回答1: Creating a video from an OpenGL surface is a little involved, but is doable. The easiest way to understand I think is to use two EGL surfaces, one for the UI and one for the media encoder. There is a good example

Accessing Image Data Bytes in ARCore

一世执手 提交于 2019-11-27 12:32:49
问题 I've created an ARCore Session and attached an OpenGL texture id through the Session#setCameraTextureName method to display my camera data. I'd like to have access to the camera image data bytes displayed on the texture. ARKit and Tango provide access to the image bytes for each frame but there doesn't seem to be anything that easily provides that in the ARCore API. Is there any other way I can access the image bytes when using ARCore? 回答1: Maybe that could help you I wanted to obtain the

ARKit vs. ARCore vs. Vuforia vs. D'Fusion Mobile vs. Layar SDK [closed]

爷,独闯天下 提交于 2019-11-27 08:59:45
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I would be interested to know, where are the advantages and disadvantages of each vision-based mobile Augmented Reality Frameworks? For what should be decide in which case? Would you choose Vuforia in any case, because it is free and without branding? What are important

Save AcquireCameraImageBytes() from Unity ARCore to storage as an image

你离开我真会死。 提交于 2019-11-27 07:05:10
问题 Using unity, and the new 1.1 version of ARCore, the API exposes some new ways of getting the camera information. However, I can't find any good examples of saving this as a file to local storage as a jpg, for example. The ARCore examples have a nice example of retrieving the camera data and then doing something with it here: https://github.com/google-ar/arcore-unity-sdk/blob/master/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs#L212 and there are a few

How to take picture with camera using ARCore

我只是一个虾纸丫 提交于 2019-11-26 23:11:17
问题 ARCore camera doesn't seem to support takePicture. https://developers.google.com/ar/reference/java/com/google/ar/core/Camera Anyone know how I can take pictures with ARCore? 回答1: I am assuming you mean a picture of what the camera is seeing and the AR objects. At a high level you need to get permission to write to external storage to save the picture, copy the frame from OpenGL and then save it as a png (for example). Here are the specifics: Add the WRITE_EXTERNAL_STORAGE permission to the

How to measure distance using ARCore?

风格不统一 提交于 2019-11-26 22:37:40
问题 Is it possible to calculate distance between two HitResult `s ? Or how we can calculate real distance (e.g. meters) using ARCore? 回答1: In Java ARCore world units are meters (I just realized we might not document this... aaaand looks like nope. Oops , bug filed). By subtracting the translation component of two Pose s you can get the distance between them. Your code would look something like this: On first hit as hitResult : startAnchor = session.addAnchor(hitResult.getHitPose()); On second hit