BIAS JSON configuration¶
BIAS’ configuration data (GUI + camera settings) can be serialized to the json format for saving/loading from configurations files, transmitting via http requests, etc. A typical example of a serialize BIAS configuration is given below BIAS JSON Configuration Example. Note, the exact details of the serialized data will depend on the users specific setup i.e., camera type, GUI, settings etc. The easiest way to get an example JSON configuration, for your specific setup, is generate a configuretion file via the “File -> Save Configuration” menu item.
BIAS JSON Configuration Example¶
{
"camera" : {
"format7Settings" : {
"mode" : "0",
"pixelFormat" : "RAW8",
"roi" : {
"height" : 1024,
"offsetX" : 0,
"offsetY" : 0,
"width" : 1280
}
},
"frameRate" : "Format7",
"guid" : "50218ef09467a47866390a571aff7677",
"model" : "Flea3 FL3-U3-13Y3M",
"properties" : {
"autoExposure" : {
"absoluteControl" : false,
"absoluteValue" : 1.32196044921875,
"autoActive" : true,
"on" : true,
"onePush" : false,
"present" : true,
"value" : 480
},
"brightness" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : true,
"onePush" : false,
"present" : true,
"value" : 16
},
"focus" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"frameRate" : {
"absoluteControl" : false,
"absoluteValue" : 150.0,
"autoActive" : true,
"on" : true,
"onePush" : false,
"present" : true,
"value" : 480
},
"gain" : {
"absoluteControl" : false,
"absoluteValue" : 18.06179046630859375,
"autoActive" : true,
"on" : true,
"onePush" : false,
"present" : true,
"value" : 275
},
"gamma" : {
"absoluteControl" : false,
"absoluteValue" : 1.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : true,
"value" : 1024
},
"hue" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"iris" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"pan" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"saturation" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"sharpness" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : true,
"value" : 1024
},
"shutter" : {
"absoluteControl" : false,
"absoluteValue" : 3.3347010612487792969,
"autoActive" : false,
"on" : true,
"onePush" : false,
"present" : true,
"value" : 522
},
"temperature" : {
"absoluteControl" : false,
"absoluteValue" : 3.2047250270843505859,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : true,
"value" : 3205
},
"tilt" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
},
"triggerDelay" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : true,
"value" : 0
},
"triggerMode" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : true,
"value" : 0
},
"whiteBalance" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"valueBlue" : 0,
"valueRed" : 0
},
"zoom" : {
"absoluteControl" : false,
"absoluteValue" : 0.0,
"autoActive" : false,
"on" : false,
"onePush" : false,
"present" : false,
"value" : 0
}
},
"triggerType" : "Internal",
"vendor" : "Point Grey Research",
"videoMode" : "Format7"
},
"configuration" : {
"directory" : "C:/Users/Will/Documents",
"fileName" : "bias_config"
},
"display" : {
"colorMap" : "None",
"orientation" : {
"flipHorizontal" : false,
"flipVertical" : false
},
"rotation" : 0,
"updateFrequency" : 15.0
},
"logging" : {
"autoNamingOptions" : {
"cameraIdentifier" : "CameraNumber",
"includeCameraIdentifier" : true,
"includeTimeAndDate" : true,
"includeVersionNumber" : true,
"timeAndDateFormat" : "'date'_yyyy_MM_dd_'time'_hh_mm_ss"
},
"directory" : "C:/Users/Will/Videos",
"enabled" : false,
"fileName" : "bias_video",
"format" : "ufmf",
"settings" : {
"avi" : {
"codec" : "XVID",
"frameSkip" : 1
},
"bmp" : {
"frameSkip" : 1
},
"fmf" : {
"frameSkip" : 1
},
"ufmf" : {
"backgroundThreshold" : 40,
"boxLength" : 30,
"compressionThreads" : 15,
"dilate" : {
"on" : false,
"windowSize" : 2
},
"frameSkip" : 1,
"medianUpdateCount" : 100,
"medianUpdateInterval" : 50
}
}
},
"plugin" : {
"config" : {
"detectBox" : {
"color" : "ff0000",
"height" : 100,
"width" : 100,
"xPos" : 0,
"yPos" : 0
},
"device" : {
"autoConnect" : false,
"portName" : "ttyUSB0",
"pulseDuration" : 0.2000000000000000111
},
"trigger" : {
"armedState" : false,
"enabled" : true,
"medianFilter" : 3,
"threshold" : 100
}
},
"name" : "grabDetector"
},
"server" : {
"enabled" : true,
"port" : 5010
},
"timer" : {
"enabled" : false,
"settings" : {
"duration" : 30
}
}
}