←Select platform

ProcessedImage Property

Summary

Gets a binarized version of the processed frame used to extract ID card fields.

Syntax

C#
C++/CLI
Python
public RasterImage ProcessedImage { get; } 
public:  
   property RasterImage^ ProcessedImage 
   { 
      RasterImage^ get() 
   } 
ProcessedImage # get  (IDFrameReader) 

Example

C#
Java
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Forms.Common; 
using Leadtools.Ocr; 
using Leadtools.Forms.Commands; 
 
 
void IDCardParse2(RasterImage image) 
{ 
   IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD); 
   ocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir); 
 
   var path = Path.Combine(LEAD_VARS.OcrLEADRuntimeDir ?? String.Empty, "LEAD.Binarize.bin"); 
 
   IDFrameReader idFrameReader = new IDFrameReader(File.ReadAllBytes(path), ocrEngine); 
 
   var ready = idFrameReader.ParallelProcess(image); 
 
   if (ready.Ready) 
   { 
      new RasterCodecs().Save(idFrameReader.ProcessedImage, "", RasterImageFormat.Jpeg, 24); 
 
      if (idFrameReader.Results != null) 
      { 
         foreach (var res in idFrameReader.Results) 
         { 
            Console.WriteLine("Field name : " + res.Key + "Value : " + res.Value); 
         } 
      } 
   } 
 
   ocrEngine.Shutdown(); 
   ocrEngine.Dispose(); 
} 
 
 
static class LEAD_VARS 
{ 
   public const string OcrLEADRuntimeDir = @"C:\LEADTOOLS23\Bin\Common\OcrLEADRuntime"; 
} 
 
import java.io.File; 
import java.io.IOException; 
import java.time.LocalDateTime; 
 
import org.junit.*; 
import org.junit.Test; 
import org.junit.runner.JUnitCore; 
import org.junit.runner.Result; 
import org.junit.runner.notification.Failure; 
import static org.junit.Assert.*; 
 
import leadtools.*; 
import leadtools.barcode.*; 
import leadtools.codecs.*; 
 
 
void IDCardParse2(RasterImage image) 
{ 
   IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD); 
   ocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir); 
 
   var path = Path.Combine(LEAD_VARS.OcrLEADRuntimeDir ?? String.Empty, "LEAD.Binarize.bin"); 
 
   IDFrameReader idFrameReader = new IDFrameReader(File.ReadAllBytes(path), ocrEngine); 
 
   var ready = idFrameReader.ParallelProcess(image); 
 
   if (ready.Ready) 
   { 
      new RasterCodecs().Save(idFrameReader.ProcessedImage, "", RasterImageFormat.Jpeg, 24); 
 
      if (idFrameReader.Results != null) 
      { 
         foreach (var res in idFrameReader.Results) 
         { 
            Console.WriteLine("Field name : " + res.Key + "Value : " + res.Value); 
         } 
      } 
   } 
 
   ocrEngine.Shutdown(); 
   ocrEngine.Dispose(); 
} 
 
 
public class LEAD_VARS 
{ 
   public final static String OcrLEADRuntimeDir = "C:\LEADTOOLS23\Bin\Common\OcrLEADRuntime"; 
} 

Requirements

Target Platforms

See Also

IDFrameReader Class

IDFrameReader Members

Leadtools.Forms.Commands Namespace

Help Version 23.0.2024.2.14
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Commands Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.