GEV_DEVICE_INTERFACE  pCamera[MAX_CAMERAS] = {0};

int numCamera = 0;

int camIndex = 0;

int type;

GEV_CAMERA_HANDLE handle = NULL;

char xmlFileName[MAX_PATH] = {0};

UINT32 height, width;

UINT64 size;

char pixelfmt[64] = {0};

 

// Get camera list.

GevGetCameraList( pCamera, MAX_CAMERAS, &numCamera);

 

// Open the camera you want

GevOpenCamera( &pCamera[camIndex], GevExclusiveMode, &handle);

 

// Get the image dimensions, payload size, and format.

GevGetFeatureValue( handle, “Height”, &type, sizeof(height), &height);

GevGetFeatureValue( handle, “Width”, &type, sizeof(width), &width);

GevGetFeatureValue( handle, “PayloadSize”, &type, sizeof(size), &size);

 

GevGetFeatureValueAsString( handle, “PixelFormat”, &type, sizeof(pixelfmt), pixelfmt);

 

 

Related Topics

Camera GenICam Feature Access