Log in or register to post comments

Packup the UnityProject to UWP,can not set the camera's format and pixel

December 14, 2017 - 10:41pm #1

In unity Editor ,I can use CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.RGBA8888, true); to register FrameFormat Successfully.And ,to update profiles.xml files(Vuforia\Editor\WebcamProfiles, i use with Logitech HD Webcam 920),the Vuforia' API Vuforia.Image image = CameraDevice.Instance.GetCameraImage(Image.PIXEL_FORMAT.RGBA8888); can return a image.The Image is not null,and its width and heigth is 1920 and 1080.

But when I pack up the project to UWP platform,

CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.RGBA8888, true)

return false;

Vuforia.Image image = CameraDevice.Instance.GetCameraImage(Image.PIXEL_FORMAT.RGBA8888);

return NULL;

the address of project:https://pan.baidu.com/s/1o81LcAe

Log in or register to post comments