c# sdk - setting camera options
Posted: Tue Mar 10, 2009 9:13 am
hi, i'm a newbie to the sdk and i'm trying to build a very simple application that does single point tracking in c#.
I have succesfully built the app to check for the camera and start it. And output the top ranked objects x and y position.
I have succesfully built in the ability to change the threshold and exposure on the camera. But now i would like to set the options to do with object mass (min,max ,out of range). i have looked at the API documentation and the VB samples as well as the c# samples.
In the c# samples you get a set of declarations such as:
could some one please point me in the direction of where i might find out what the values being assigned are reffrenced to, I.E. .... why is video type set to 48?
or could someone please tell me what values i need to assign when declaring the :
NP_OPTION_OBJECT_MASS_MIN, NP_OPTION_OBJECT_MASS_MAX, NP_OPTION_OBJECT_MASS_IDEAL, NP_OPTION_OBJECT_MASS_WEIGHT.
I know in VB there is an enumeration call but i dont code in VB and never have and have just started in c# and cant see the equivilant call in any of the c# samples. so assumed it was taken care of in a diffrent manner I.E. with the declaration of an "int".
any help would be greatly appreciated.
I have succesfully built the app to check for the camera and start it. And output the top ranked objects x and y position.
I have succesfully built in the ability to change the threshold and exposure on the camera. But now i would like to set the options to do with object mass (min,max ,out of range). i have looked at the API documentation and the VB samples as well as the c# samples.
In the c# samples you get a set of declarations such as:
Code: Select all
private const int NP_OPTION_VIDEO_TYPE = 48;
private const int NP_OPTION_NUMERIC_DISPLAY_ON = 71;
private const int NP_OPTION_NUMERIC_DISPLAY_OFF = 72;
private const int NP_OPTION_FETCH_RLE = 73;
private const int NP_OPTION_FETCH_GRAYSCALE = 74;
private const int NP_OPTION_FRAME_DECIMATION = 52;
Code: Select all
private const int NP_OPTION_VIDEO_TYPE = 48;
or could someone please tell me what values i need to assign when declaring the :
NP_OPTION_OBJECT_MASS_MIN, NP_OPTION_OBJECT_MASS_MAX, NP_OPTION_OBJECT_MASS_IDEAL, NP_OPTION_OBJECT_MASS_WEIGHT.
I know in VB there is an enumeration call but i dont code in VB and never have and have just started in c# and cant see the equivilant call in any of the c# samples. so assumed it was taken care of in a diffrent manner I.E. with the declaration of an "int".
any help would be greatly appreciated.