object nameArray = new object();
object valueArray;
int num = rr.GetAllVariables(ref nameArray, out valueArray);
if (num > 0)
{
object[] names = (object[])nameArray;
object[] values = (object[])valueArray;
int i;
for (i = 0; i < num; i++)
Console.WriteLine(names[i] + "=" + values[i]);
}
rr.Disconnect();
rr.Close();
}
}
[/code]
This runs fine when using test.jpg, GetAllVariables() returns 109 variable objects.
According to RR runtime is 384ms and 10 blobs are found.
It fails though when I input test2.bmp
GetAllVariables() returns 0 objects.
But RR shows (and also debug output is written to files) all the variable objects.
According to RR runtime is 551ms and 282 blobs are found.
My gut feeling tells me "rr.Run("once");"is not a blocking operation.
But "rr.WaitImage();" doesnt change the outcome.
Does anybody have an idea why GetAllVariables() doesnt return anything in this case?
If more information is needed please let me know.
Cheers,
Marco
If you have any questions/issues about RoboRealm or image processing this is your chance to ask a question.
Your question and any responses will be posted to the forum section of the website for others to read and learn from.
Note that any submission will be considered property of RoboRealm. If you do not wish your images to be
displayed as part of the RoboRealm site please do not submit those images.
Any submission may be removed from the website at the discretion of RoboRealm personnel.