ZebraRecNBase

Inheritance: java.lang.Object

public class ZebraRecNBase

Constructors

Constructor Description
ZebraRecNBase()

Methods

Method Description
equals(Object arg0)
getClass()
getFilteredByNotMasterList(List aMasterList, List aCheckedList, float MaxDiff) Filters zebra segments from aCheckedList which start2start distance less then MaxDiff from aMasterList segments
hashCode()
notify()
notifyAll()
packNBaseZebraToInt(byte[] aZebra, int Width) Packs array to int.
recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest) Recognizes zebra patterns into ZebraSegments from aZebra by ZebraMatrix matching
recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest) Recognizes zebra patterns into ZebraSegments from aZebra by ZebraMatrix matching
recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest) Recognizes zebra patterns into ZebraSegments from aZebra by packed pattern dictionary search
recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest) Recognizes zebra patterns into ZebraSegments from aZebra by packed pattern dictionary search
toString()
unpackNBaseZebraFromInt(int Zebra, int Width) Unpacks int to array.
unpackNBaseZebraFromIntAuto(int Zebra) Unpacks int to array with Width calculation.
wait()
wait(long arg0)
wait(long arg0, int arg1)

ZebraRecNBase()

public ZebraRecNBase()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFilteredByNotMasterList(List aMasterList, List aCheckedList, float MaxDiff)

public static List<ZebraSegment> getFilteredByNotMasterList(List<ZebraSegment> aMasterList, List<ZebraSegment> aCheckedList, float MaxDiff)

Filters zebra segments from aCheckedList which start2start distance less then MaxDiff from aMasterList segments

Parameters:

Parameter Type Description
aMasterList java.util.List<com.aspose.barcode.barcoderecognition.common.zebraxd.ZebraSegment> list of already exists segments
aCheckedList java.util.List<com.aspose.barcode.barcoderecognition.common.zebraxd.ZebraSegment> recognized segments with new restoration
MaxDiff float max distance between checked ZebraSegment and any ZebraSegment from aMasterList

Returns: List - filtered zebra segments from aCheckedList

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

packNBaseZebraToInt(byte[] aZebra, int Width)

public static int packNBaseZebraToInt(byte[] aZebra, int Width)

Packs array to int. Width(sum) maust be less then 31

Parameters:

Parameter Type Description
aZebra byte[] zebra pattern
Width int summ of zebra pattern segments

Returns: int - packed zebra

recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

public static List<ZebraSegment> recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

Recognizes zebra patterns into ZebraSegments from aZebra by ZebraMatrix matching

Parameters:

Parameter Type Description
aZebra java.util.List<com.aspose.barcode.barcoderecognition.common.algorithms.ZebraScan.ZebraBar> zebra segments with color, position and size from binarized bitmap line
aKeeper ZebraNBaseKeeper patterns storage
aZebraColour int starting color of the pattern black/white
aSingleTolerance float maximal distance between pattern segment and aZebra segment normalized to pattern width
aMinQualityTolerance float quality of matching between zebra segments and pattern values. 0 - 1
MaxQualityDistFromBest float which segments also need to add to result instead best by quality. in most cases is 0. sometimes we can add -0.02, add also segments which is on 2% worse then the best

Returns: List - recognized patterns into ZebraSegment with value in position

recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

public static List<ZebraSegment> recognizeNBaseZebraSegment(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBaseKeeper aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

Recognizes zebra patterns into ZebraSegments from aZebra by ZebraMatrix matching

Parameters:

Parameter Type Description
aZebra java.util.List<com.aspose.barcode.barcoderecognition.common.algorithms.ZebraScan.ZebraBar> zebra segments with color, position and size from binarized bitmap line
aIndex int index of starting segment in aZebra
aKeeper ZebraNBaseKeeper patterns storage
aZebraColour int starting color of the pattern black/white
aSingleTolerance float maximal distance between pattern segment and aZebra segment normalized to pattern width
aMinQualityTolerance float quality of matching between zebra segments and pattern values. 0 - 1
MaxQualityDistFromBest float which segments also need to add to result instead best by quality. in nost cases is 0. sometimes we can add -0.02, add also segments which is on 2% worse then the best

Returns: List - recognized patterns into ZebraSegment with value in position

recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

public static List<ZebraSegment> recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

Recognizes zebra patterns into ZebraSegments from aZebra by packed pattern dictionary search

Parameters:

Parameter Type Description
aZebra java.util.List<com.aspose.barcode.barcoderecognition.common.algorithms.ZebraScan.ZebraBar> zebra segments with color, position and size from binarized bitmap line
aKeeper com.aspose.barcode.barcoderecognition.common.zebraxd.ZebraNBasePackedKeeperBase patterns storage
aZebraColour int starting color of the pattern black/white
aSingleTolerance float maximal distance between pattern segment and aZebra segment normalized to pattern width
aMinQualityTolerance float quality of matching between zebra segments and pattern values. 0 - 1
MaxQualityDistFromBest float which segments also need to add to result instead best by quality. in nost cases is 0. sometimes we can add -0.02, add also segments which is on 2% worse then the best

Returns: List - recognized patterns into ZebraSegment with value in position

recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

public static List<ZebraSegment> recognizeNBaseZebraSegmentByPickup(List<ZebraScan.ZebraBar> aZebra, int aIndex, ZebraNBasePackedKeeperBase aKeeper, int aZebraColour, float aSingleTolerance, float aMinQualityTolerance, float MaxQualityDistFromBest)

Recognizes zebra patterns into ZebraSegments from aZebra by packed pattern dictionary search

Parameters:

Parameter Type Description
aZebra java.util.List<com.aspose.barcode.barcoderecognition.common.algorithms.ZebraScan.ZebraBar> zebra segments with color, position and size from binarized bitmap line
aIndex int index of starting segment in aZebra
aKeeper com.aspose.barcode.barcoderecognition.common.zebraxd.ZebraNBasePackedKeeperBase patterns storage
aZebraColour int starting color of the pattern black/white
aSingleTolerance float maximal distance between pattern segment and aZebra segment normalized to pattern width
aMinQualityTolerance float quality of matching between zebra segments and pattern values. 0 - 1
MaxQualityDistFromBest float which segments also need to add to result instead best by quality. in nost cases is 0. sometimes we can add -0.02, add also segments which is on 2% worse then the best

Returns: List - recognized patterns into ZebraSegment with value in position

toString()

public String toString()

Returns: java.lang.String

unpackNBaseZebraFromInt(int Zebra, int Width)

public static Byte[] unpackNBaseZebraFromInt(int Zebra, int Width)

Unpacks int to array. Width(sum) must be less then 31

Parameters:

Parameter Type Description
Zebra int packed zebra pattern
Width int summ of zebra pattern segments

Returns: java.lang.Byte[] - unpacked zebra

unpackNBaseZebraFromIntAuto(int Zebra)

public static Byte[] unpackNBaseZebraFromIntAuto(int Zebra)

Unpacks int to array with Width calculation. Width(sum) must be less then 31

Parameters:

Parameter Type Description
Zebra int packed zebra pattern

Returns: java.lang.Byte[] - unpacked zebra

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int