I've been trying to use both CameraX and Camera2 to achieve this, looking all over the internet to find some basic workable snippets that could be expanded. This is what Logcat registered during the lag period: In all of the cases: Session 0: Exception while stopping repeating: : CAMERA_ERROR (3): cancelRequest:688: Camera 0: Error clearing streaming request: Function not implemented (-38)Īnd sometimes: CameraAccessException: CAMERA_DISCONNECTED (2): checkPidStatus:2274: The camera device has been disconnected Then I tried using Logcat to see what I might have missed. As this asset basically spawns the camera intent though, it is not usable. When I tried using the NativeCamera asset, there was no lag after a successful capture. I am using Unity and AR Foundation (mostly cross-platform reasons).įor the plugin I am building an Android library (.aar), importing it into Unity and then using the Unity toolset to call the android classes. However, the AR feed then lags for almost 5 seconds, which is too long. I've had some success with this, images look crisp and are of default resolution (as if used by the native app). So I thought I would develop my own android (ios coming next.) plugin that would access the camera in the background, take the picture and save it. The video feed in AR is, by default, of quite a low resolution. Basically, the user's goal is to capture images in some environment, and the app should help with image alignment, show missing spots etc. I've been trying to develop an app, that would guide the user through an environment via AR.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |