Why Opt for Aspose.OCR for Node.js via C++?

Elevate your OCR capabilities with Aspose.OCR for Node.js via C++. This comprehensive library effortlessly integrates OCR into Node.js applications, requiring just a few lines of code. Experience superior speed and accuracy, supporting 27 languages, including Latin, Cyrillic, and Chinese scripts. Recognize diverse images, from scanned images and smartphone photos to screenshots and scanned PDFs. Advanced pre-processing filters tackle challenges like rotated, skewed, and noisy images. Enhance performance by offloading tasks to the GPU.

Illustration ocr

Efficient and Accurate OCR

Achieve high-speed and accurate OCR results with advanced Node.js via C++ technology.

Multilingual Support

Recognize text in 27 languages, including Latin, Cyrillic, and Chinese scripts, ensuring versatility for your Node.js applications via C++ integration.

Versatile Image Support

Process images from scanners, cameras, and smartphones effortlessly with Node.js via C++.

Precision in Chinese Character Recognition

Recognize over 6,000 Chinese characters with precision in your Node.js projects via C++.

Preserve Font Styles and Formatting

Maintain font styles and formatting for accurate representation of recognized text in your Node.js applications via C++.

Easy to Use

Initiate text recognition from images in just three lines of code. Experience the simplicity!

Ready to recognize Ready to recognize Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Recognition result
 

Explore the simplicity of OCR processing with our live sample.

More examples >
fs.readFile("source.png", (err, imageData) => {
  // Save photo to the virtual storage
  const imageBytes = new Uint8Array(imageData);
  let internalFileName = "temp";
  let stream = Module.FS.open(internalFileName, "w+");
  Module.FS.write(stream, imageBytes, 0, imageBytes.length, 0);
  Module.FS.close(stream);

  // Add photo to recognition batch
  let source = Module.WasmAsposeOCRInput();
  source.url = internalFileName;
  let batch = new Module.WasmAsposeOCRInputs();
  batch.push_back(source);

  // Automatically adjust recognition settings to better process photographs
  let recognitionSettings = Module.WasmAsposeOCRRecognitionSettings();
  recognitionSettings.detect_areas_mode = Module.DetectAreasMode.PHOTO;
  recognitionSettings.auto_contrast= true;

  // Send photo for OCR
  var result = Module.AsposeOCRRecognize(batch, recognitionSettings);
  // Output extracted text to the console
  var text = Module.AsposeOCRSerializeResult(result, Module.ExportFormat.text);
  console.log(text);
});

C++ Integration for Node.js Applications

Aspose.OCR for Node.js via C++ seamlessly integrates with any platform supporting C++ - whether on desktop Windows, Windows Server, macOS, Linux, or the cloud.

Microsoft Windows
Linux
MacOS
GitHub
Microsoft Azure
Amazon Web Services
Docker

Supported file formats

Aspose.OCR for Node.js via C++ can work with virtually any file [TBD]

Source files

  • JPEG
  • PNG
  • TIFF
  • BMP

Recognition results

  • ZIP

[TBD]

  • Text
  • JSON
  • XML

Effortless Installation for Node.js via C++

Aspose.OCR for Node.js via C++ is delivered as a lightweight Node.js package or as a downloadable file for C++ backend with minimal dependencies. Easily install it into your project, and you’re ready to recognize texts in multiple supported languages and save recognition results in various formats.

27 Recognition Languages

Our Node.js via C++ OCR API recognizes a plethora of languages and popular writing scripts, including mixed languages:

Leave language detection to the library or define the language yourself for enhanced recognition performance and reliability.

  • Extended Latin alphabet: Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Italian, Latvian, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish.
  • Cyrillic alphabet: Belorussian, Bulgarian, Kazakh, Russian, Serbian, Ukrainian.
  • Chinese: Recognize over 6,000 characters.
  • {index-content-nodejs-cpp.all_texts.text3.b_li_4}

Streamlined Batch Processing for Node.js

Our Node.js via C++ OCR API recognizes a plethora of languages and popular writing scripts, including mixed languages:

  • Recognition of multi-page PDFs, TIFFs, and DjVu files.
  • Recognition of all files in a folder.
  • Recognition of all files in an archive.
  • Recognition of all files from a list.

Features and Capabilities

Aspose.OCR for Node.js via C++ Explore the advanced features of Aspose.OCR for Node.js via C++.

Feature icon

Image and PDF to Text Conversion

Effortlessly convert images and PDFs into editable text using Node.js via C++ OCR.

Feature icon

Support for All Image Formats

Process images in various formats - JPEG, PNG, TIFF, GIF, BMP - ensuring seamless image-to-text conversion with Node.js via C++.

Feature icon

Accurate Reading of Latin and Cyrillic Scripts

Read languages using Latin and Cyrillic scripts with precision, ensuring accurate OCR results via Node.js and C++ integration.

Feature icon

Recognition of Chinese Characters

Achieve precise recognition of over 6,000 Chinese characters with advanced Node.js via C++ OCR.

Feature icon

Identification of Popular Typefaces

Identify and recognize text in various popular typefaces, enhancing versatility in Node.js applications via C++.

Feature icon

Font Styles and Formats Preservation

Retain font styles and formatting for accurate text representation in Node.js projects via C++.

Node.js via C++ Code Samples

Discover code samples to seamlessly integrate Aspose.OCR for Node.js via C++ into your applications.

Simple Installation for Node.js

As a lightweight Node.js package or a downloadable file with minimal dependencies, Aspose.OCR for Node.js via C++ ensures easy distribution. Integrate it into your project directly from Node.js, and you’re prepared to leverage complete OCR capabilities, saving recognition results in various formats.

Post-installation, promptly commence using Aspose.OCR for Node.js via C++, albeit with certain limitations. A temporary license removes all trial version restrictions for 30 days. Utilize this period to initiate the development of a fully functional OCR application, allowing you to make an informed decision on purchasing Aspose.OCR for Node.js via C++ later.

{index-content-nodejs-cpp.code_samples.item1.caption}

const Module = require("aspose-ocr/lib/asposeocr");

Image Recognition with Node.js via C++

The primary challenge in OCR applications is the scarcity of scanners for end users. Our API, seamlessly integrated with Node.js via C++, features robust built-in image pre-processing filters handling rotated, skewed, and noisy images. Combined with support for all image formats, it allows reliable recognition, even from smartphone photos. Most pre-processing and image correction are automated, requiring your intervention only in challenging cases.

Apply automatic image corrections - Node.js via C++

// Load a scan or photo from user input
const fileData = new Uint8Array(e.target.result);
let filename = file.name;
let stream = Module.FS.open(filename, "w+");
Module.FS.write(stream, fileData, 0, fileData.length, 0);
Module.FS.close(stream);
var input = Module.WasmAsposeOCRInput();
input.url = filename;

// Analyze tabular structures
var settings = Module.WasmAsposeOCRRecognitionSettings();
settings.detect_areas_mode = Module.DetectAreasMode.TABLE;

// Limit the subset of characters to improve recognition accuracy and increase performance
settings.alphabet = "1234567890.,;";

// Extract text from a table
var inputs = new Module.WasmAsposeOCRInputs();
inputs.push_back(input);
var result = Module.AsposeOCRRecognize(inputs, settings);
var editableText = Module.AsposeOCRSerializeResult(result, Module.ExportFormat.text);