-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
Finlay Maroney edited this page Jan 28, 2020
·
7 revisions
MergeVision has an integrated graphical configuration editor that can be accessed by running the program in development mode, see Development for information on how to do this.
The configuration has a wide variety of parameters that it takes, this file is in a non standard format that is name: which defines a profile, then every line after that starts with 2 spaces will be considered part of that profile until another one is defined.
-
minSaturationThe minimum saturation for the colour threshold -
maxSaturationThe maximum saturation for the colour threshold -
minValueThe minimum value for the colour threshold -
maxValueThe maximum value for the colour threshold -
minHueThe minimum hue for the colour threshold -
maxHueThe maximum hue for the colour threshold -
typeThe type of device to read the image from (WIP and only currently supportsusb) -
identifierThe identifier for the device to be read from (usb device number forusb) -
erodeDilateIterationsThe number of erode dilate iterations to run on the image to reduce noise (note: very slow operation so don't increase this too much) -
distToCentreImportanceThe importance between 0 and 1 that the preferred target is closest to the centre instead of the largest target (adjust this to be closer to 1 if your robot cannot turn well, but if it can turn easily then closer to 0 is good) -
imgDumpPathThe path to save vision images to (should be on removable media that is mounted on a pi because the sd card has limited writes) -
imgDumpTimeThe number of seconds between saving vision images (note that this can contain decimals up to double precision) -
slopeThe slope used to calculate the distance from vision objects (MergeVision takes the height of the object and treats it like a point on a line to find the distance) -
yInterceptThe y intercept used to calculate the distance from vision objects -
resolutionThe resolution to scale images to before MergeVision processes them (smaller makes it much faster, note that around 160x120 or 80x60 is recommended for raspberry pis) -
imageFileThe file to load a static image from (for debugging stuff) -
group1 or 0 which represents if MergeVision should try to group objects based on angles (1=yes 0=no) -
groupAngleThe angle that the objects are at (1 object at this angle and the other 1 at negative this angle) -
minAreaThe minimum percentage of the image (in decimal) that any object needs to be in order to be recognized