"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Error on Image.PIXEL_FORMAT

Unity 2019.1.5f1 with Vuforia

Trying To Access the Camera Image in Unity using 

CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.RGB888, true);

but have error "error CS0426: The type name 'PIXEL_FORMAT' does not exist in the type 'Image'"

i try   Vuforia.Image.PIXEL_FORMAT mPixelFormat = Vuforia.Image.PIXEL_FORMAT.RGB888;

but have same error.

 

what i am doing wrong?

Hello,

Here's an article that may help: https://library.vuforia.com/articles/Solution/Working-with-the-Camera#How-To-Obtain-HD-Camera-Frames

Thanks,

Vuforia Engine Support

superzuman

Mon, 06/24/2019 - 09:49

Instead of Image.PIXEL_FORMAT, delete Image or something like this: PIXEL_FORMAT

using UnityEngine;
using System.Collections;

using Vuforia;

public class CameraImageAccess : MonoBehaviour
{

travelhawk

Wed, 09/04/2019 - 13:42

I encoutered the same problem after upgrading a Vuforia.project and it's easy to fix. Image.PIXEL_FORMAT moved now to Vuforia.PIXEL_FORMAT. Just remove the Image and it will be fine (s.b.)