InoTec M03 Activate PatchCode ExtendedImageInfos
Posted: Wed Dec 01, 2010 7:56 pm
Hello,
I am trying to receive the PatchCode that has been detected, but the extended image infos are always empty.
EndOfJob Detection is working fine but I can't get any extended infos.
This is how I configure the scanner.
//init Scanner
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.PatchCode));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeCount));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeType));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeTextLength));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeText));
//patch code seperator
Scanner.JobControl = JobControl.DetectAndIncludeJobSeparatorAndContinueScanning;
This is how I try to receive the extended image infos in the ImageAcquiredEventHandler.
if (Scanner.EndOfJob) //This works
{
var patchcodes = Scanner.ExtendedImageInfo[0]; //Scanner.ExtendedImageInfo.Count is also working, but all collections are empty
if (patchcodes != null && patchcodes.Items != null && patchcodes.Items.Length > 0)
{
string patchcode = patchcodes.Items[CurrentImage].ToString();
switch (patchcode)
{
case "1":
//todo: load settings/profile for patch code 1
break;
case "2":
//todo: load settings/profile for patch code 2
break;
}
}
}
The extended image info collection hat 5 collections, but these collections are allways empty.
My question is do I have to make something different? Do I have to set Capability[36] (IPatchCodeDetectionEnabled;4415) to true? And how could I do that?
Another Questions is about e.Image.IsBlank(noiseLevel). How does this work? Which noise level do I have to set? Where can I see the noise level of the current image?
Thanks for your help.
Martin
I am trying to receive the PatchCode that has been detected, but the extended image infos are always empty.
EndOfJob Detection is working fine but I can't get any extended infos.
This is how I configure the scanner.
//init Scanner
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.PatchCode));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeCount));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeType));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeTextLength));
this.Scanner.ExtendedImageInfo.Add(new ExtendedImageInfo(ExtendedImageInfoId.BarcodeText));
//patch code seperator
Scanner.JobControl = JobControl.DetectAndIncludeJobSeparatorAndContinueScanning;
This is how I try to receive the extended image infos in the ImageAcquiredEventHandler.
if (Scanner.EndOfJob) //This works
{
var patchcodes = Scanner.ExtendedImageInfo[0]; //Scanner.ExtendedImageInfo.Count is also working, but all collections are empty
if (patchcodes != null && patchcodes.Items != null && patchcodes.Items.Length > 0)
{
string patchcode = patchcodes.Items[CurrentImage].ToString();
switch (patchcode)
{
case "1":
//todo: load settings/profile for patch code 1
break;
case "2":
//todo: load settings/profile for patch code 2
break;
}
}
}
The extended image info collection hat 5 collections, but these collections are allways empty.
My question is do I have to make something different? Do I have to set Capability[36] (IPatchCodeDetectionEnabled;4415) to true? And how could I do that?
Another Questions is about e.Image.IsBlank(noiseLevel). How does this work? Which noise level do I have to set? Where can I see the noise level of the current image?
Thanks for your help.
Martin