How can I access the device camera data in Unity? (pixel color information)

0 votes
asked Jul 12, 2017 by wiljunior (120 points)
When I try to access the device camera Input with WebCamTexture the tracking stop working. It seems to be some kind of conflict between EasyAR and the WebCamTexture. Is it possible to access the camera feed directly through the RealityPlane Texture?

1 Answer

0 votes
answered Jul 21, 2017 by kenn (18,790 points)
Android or iOS do not allow two instances accessing the same camera at the same time.

You can get camera raw image, from https://www.easyar.com/doc/EasyAR%20SDK/Unity%20Plugin%20Reference/2.0/ARCameraBaseBehaviour.html#event-action-arcamerabasebehaviour-frame-frameupdate

You can also use RealityPlane in the scene, use another camera to capture the plane. You can also use the RealityPlane texture directly, but I;m not sure what will happen, because EasyAR do not set the texture size in Unity, but directly in the c++ code. Unity did not provide a standard way to do this.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...