Access Device Camera in Unity - google-project-tango

I need to get the Android Camera parameters like focal & exposure from Unity.
I'm using the Tango AR Camera in my Project and using the Unity AndroidJavaClass I can get the Camera class, get number of cameras, and open a camera for more options.
However, when I call the Camera.open() method the app camera stops showing the feed, probably since the open() method disconnect the camera from the Tango AR Camera.
Can the Camera shared/accessed both from my code only to get cam. parameters?
Thanks.

You shouldn't use the Tango API and Android Camera API together. Tango occupies the camera hardware, which means that the Camera.open would not get a handle of the camera.
To get intrinsics, you might want to go through the Tango API.
TangoCameraIntrinsics intrinsics = new TangoCameraIntrinsics();
VideoOverlayProvider.GetIntrinsics(TangoEnums.TangoCameraId.TANGO_CAMERA_COLOR, intrinsics);
TangoARScreen is doing something similar, see here.

Related

What kind of UWP app to make for Windows camera filtering app?

The idea is to create an app that can read any local camera device, filter it, then have a new camera "virtual device" other apps can use as input.
How can this be done with UWP?
How can this be done with UWP?
Only the first part of your requirements could be done in UWP apps - can read any local camera device, filter it. UWP could connect to the local camera for capturing photo and video. You could also modify the media content as you want. More information could be known here: Camera - UWP.
But UWP apps are not able to send the camera to other apps as a virtual device. You might need to try other ways like win32 to achieve this.

Unity3D / Vuforia AR Camera not showing camera feed on camera background

I am evaluating Unity3d 2017.4.2f2 with Vuforia and Xcode 9.3 for an AR App and have the problem, that the camera background works in the simulator but not on the iPad pro with iOS 11.3,1.
It seems to be a known problem and I checked nearly every solution including using XCode9.2 and copying the device config, deleting Metal from the Vuforia Settings, creating new AR Cameras, even the latest Unity3D beta and whatnot. The background does not show up and I get the following error:
2018-05-03 14:53:33.396112+0200 ProductName[2340:1694266] ERROR/AR(2340) 2018-05-04 14:53:33: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized.
and
cameraDeviceStartCamera
2018-05-03 14:53:33.460389+0200 ProductName[2340:1694266] ERROR/AR(2340) 2018-05-04 14:53:33: VideoBackgroundConfig with screen size of zero received, skipping config step
If there is anything else I can do or that points me into the right direction is appreciated. many thanks in advance
Just to be sure check if you did all of this:
In player settings enable Vuforia's support
Go to player settings >> Other Settings and check Camera Usage Description field
Then you can try one of the following suggestions:
change the Target resolution to native (default device resolution)
set the graphics to be OpenGLES2.0 instead of automatic
If this doesn't work you can also try to delete the meta data of the camera controller script.
Removing Unity3D completely and reinstalling the latest Unity3D version and the VuforiaSupportInstaller-Mac-7-1-35 solved it. Both accessible via the Vuforia Download page

Google Tango Unity Examples not working

I've tried the codelab and followed the video tutorial and and just can't make it work. In both cases the app loads, but (a) no motion tracking permission is requested and (b) the device motion does not control the camera.
These labs are super simple and don't contain any code, so I am fairly confident I do not have an error.
Unity v5.3.1f1 Personal
Unity Tango SDK FurudUnity5

Activate the back camera on WP8 Device

I'm trying to do something very simple: implement a program that activates the back camera of my WP8 device. Could anyone help me do that?
If so you could try using the PhotoCamera class in order to capture images. I'm not pretty sure whether you'll be able to open the native Camera app of the device.
References:
How to access the camera from my Windows Phone 8 app (XAML and C#) and save the taken picture in a determined folder?
Sample from MSDN
Minimal Camera app in Windows Phone

Is it possible for specify the front camera using QCAR SDK for iOS?

I want to make sure the front camera using QCAR-SDK can be specified?
Or do you have any ideas to specify the camera in Xcode?
QCAR SDK does not currently support the front facing camera.

Resources