ZXing.PDF417.PDF417Reader.getMaxCodewordWidth(ResultPoint[])

Here are the examples of the csharp api class ZXing.PDF417.PDF417Reader.getMaxCodewordWidth(ResultPoint[]) 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: PDF417Reader.cs
View license
private static Result[] decode(BinaryBitmap image, IDictionary<DecodeHintType, object> hints, bool multiple)
      {
         var results = new List<Result>();
         var detectorResult = Detector.detect(image, hints, multiple);
         if (detectorResult != null)
         {
            foreach (var points in detectorResult.Points)
            {
               var decoderResult = PDF417ScanningDecoder.decode(detectorResult.Bits, points[4], points[5],
                                                                points[6], points[7], getMinCodewordWidth(points), getMaxCodewordWidth(points));
               if (decoderResult == null)
               {
                  continue;
               }
               var result = new Result(decoderResult.Text, decoderResult.RawBytes, points, BarcodeFormat.PDF_417);
               result.putMetadata(ResultMetadataType.ERROR_CORRECTION_LEVEL, decoderResult.ECLevel);
               var pdf417ResultMetadata = (PDF417ResultMetadata) decoderResult.Other;
               if (pdf417ResultMetadata != null)
               {
                  result.putMetadata(ResultMetadataType.PDF417_EXTRA_METADATA, pdf417ResultMetadata);
               }
               results.Add(result);
            }
         }
         return results.ToArray();
      }

2. Example

Project: zxing-core
Source File: PDF417Reader.cs
View license
private static Result[] decode(BinaryBitmap image, IDictionary<DecodeHintType, object> hints, bool multiple)
      {
         var results = new List<Result>();
         var detectorResult = Detector.detect(image, hints, multiple);
         if (detectorResult != null)
         {
            foreach (var points in detectorResult.Points)
            {
               var decoderResult = PDF417ScanningDecoder.decode(detectorResult.Bits, points[4], points[5],
                                                                points[6], points[7], getMinCodewordWidth(points), getMaxCodewordWidth(points));
               if (decoderResult == null)
               {
                  continue;
               }
               var result = new Result(decoderResult.Text, decoderResult.RawBytes, points, BarcodeFormat.PDF_417);
               result.putMetadata(ResultMetadataType.ERROR_CORRECTION_LEVEL, decoderResult.ECLevel);
               var pdf417ResultMetadata = (PDF417ResultMetadata) decoderResult.Other;
               if (pdf417ResultMetadata != null)
               {
                  result.putMetadata(ResultMetadataType.PDF417_EXTRA_METADATA, pdf417ResultMetadata);
               }
               results.Add(result);
            }
         }
         return results.ToArray();
      }