Browse our Products

Aspose.OCR for .NET 22.2 - Release Notes

All Features

KeySummaryCategory
OCRNET-385Craft text detector integrationEnhancement
OCRNET-474Create the combine mode for DSR/CRAFT areas recognitionEnhancement
OCRNET-471Test opimized modelsEnhancement
OCRNET-470Fix image extraction from PDFBug

Enhancements

  • reduced package size
  • added ability to choose mode of areas detection
  • increased recognition speed

Public API and Backwards Incompatible Changes

New API

  • added new enum DetectAreasMode with fields: DOCUMENT, PHOTO, COMBINED, NONE
  • added property DetectAreasMode to the RecognitionSettings class

Removed APIs

All methods of the previous release are supported.

Will be deprecated

Usage Example

using Aspose.OCR;

namespace ProgramOCR
{
    class Program
    {
        static void Main(string[] args)
        {
            // Get API
            AsposeOcr api = new AsposeOcr();

            // Create license
            License lic = new License();

            // Set license
            lic.SetLicense("Aspose.Total.lic");

            // Get image for recognize
            string image = "D://img.png";

            // Recognize image           
            RecognitionSettings set = new RecognitionSettings{ DetectAreasMode = DetectAreasMode.PHOTO }; // DOCUMENT / COMBINE / NONE
            RecognitionResult result = api.RecognizeImage(imgPath, set);

            // Print result
            Console.WriteLine(result.RecognitionText);
        }
    }
}