ZXing.PDF417.Internal.Detector.detect(bool, BitMatrix)

Here are the examples of the csharp api class ZXing.PDF417.Internal.Detector.detect(bool, BitMatrix) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: ZXing.Net
Source File: Detector.cs
View license
public static PDF417DetectorResult detect(BinaryBitmap image, IDictionary<DecodeHintType, object> hints, bool multiple)
      {
         // TODO detection improvement, tryHarder could try several different luminance thresholds/blackpoints or even 
         // different binarizers (SF: or different Skipped Row Counts/Steps?)
         //boolean tryHarder = hints != null && hints.containsKey(DecodeHintType.TRY_HARDER);

         BitMatrix bitMatrix = image.BlackMatrix;
         if (bitMatrix == null)
            return null;

         List<ResultPoint[]> barcodeCoordinates = detect(multiple, bitMatrix);
         if (barcodeCoordinates == null ||
             barcodeCoordinates.Count == 0)
         {
            bitMatrix = (BitMatrix) bitMatrix.Clone();
            bitMatrix.rotate180();
            barcodeCoordinates = detect(multiple, bitMatrix);
         }
         return new PDF417DetectorResult(bitMatrix, barcodeCoordinates);
      }

2. Example

Project: zxing-core
Source File: Detector.cs
View license
public static PDF417DetectorResult detect(BinaryBitmap image, IDictionary<DecodeHintType, object> hints, bool multiple)
      {
         // TODO detection improvement, tryHarder could try several different luminance thresholds/blackpoints or even 
         // different binarizers (SF: or different Skipped Row Counts/Steps?)
         //boolean tryHarder = hints != null && hints.containsKey(DecodeHintType.TRY_HARDER);

         BitMatrix bitMatrix = image.BlackMatrix;
         if (bitMatrix == null)
            return null;

         List<ResultPoint[]> barcodeCoordinates = detect(multiple, bitMatrix);
         if (barcodeCoordinates == null ||
             barcodeCoordinates.Count == 0)
         {
            bitMatrix = (BitMatrix) bitMatrix.Clone();
            bitMatrix.rotate180();
            barcodeCoordinates = detect(multiple, bitMatrix);
         }
         return new PDF417DetectorResult(bitMatrix, barcodeCoordinates);
      }