Aspose OCR slow on virtual machine

Hello,

My team noticed that the Aspose OCR engine is much slower on our virtual machine than on my desktop computer when using the Aspose OCR .NET library to extract text content from files. This raises a couple questions we have about the Aspose OCR library for .NET:

  1. Does the OCR engine run faster on a desktop computer compared to a virtual machine?
  2. Are documents OCR’ed faster when using a computer with a GPU compared to one without a GPU? Note that we are only using Aspose.OCR (not Aspose.OCR-GPU).

The specifications for both machines are given below:

Virtual Machine Specs:

  • CPU: AMD EPYC 7282
  • GPU: No GPU
  • RAM: 32GB

Desktop Specs:

  • CPU: Intel Core Ultra 9 285K
  • GPU: NVIDIA GeForce RTX 5080
  • RAM: 96GB

I understand that the desktop has a better CPU and more RAM than the virtual machine. We would like to know if the OCR engine is inherently slower on a virtual machine compared to a desktop computer.

Thank you

@anguyen1

Hello,

Regarding your questions about the performance of the Aspose OCR engine on a virtual machine compared to a desktop:

  1. Performance on Virtual Machines: The OCR engine may run slower on a virtual machine compared to a physical desktop. This can be attributed to factors such as virtualization overhead, resource allocation, and the performance characteristics of the underlying hardware. The desktop you mentioned, with its more powerful CPU and additional RAM, can significantly enhance processing speed.

  2. Impact of GPU: Since you are using Aspose.OCR, which does not utilize GPU acceleration, the absence of a GPU will not directly affect the performance of the OCR engine. For your current setup, the CPU and RAM are the primary factors influencing OCR speed.

To improve performance on your virtual machine, consider the following steps:

  • Resource Allocation: Ensure that your virtual machine has adequate CPU and RAM allocated. Increasing these resources may help improve performance.
  • Optimize Virtualization Settings: Review the settings of your virtualization software to ensure optimal performance configurations.
  • Batch Processing: If processing multiple documents, consider batching them to minimize overhead.

If performance issues persist, you may want to explore running the OCR tasks on a physical machine with better specifications.

For further performance optimization tips, please consult the Aspose documentation or community forums.