Time to extract text from images: RaspberryPi, Pi2B, Laptop and VM in cloud

26 May

Summary: If Raspberry Pi computing power is 1, then Pi 2B computing power is 2, laptop with i5-3320M (in this simple experiment) is ~20 (all for a single core).

For a task to extract text from image file, I tried it on four different devices I have at hand: Raspberry Pi, Pi2B, a laptop (with intel CPU i5-3320M), and a virtual machine in cloud. Below is the result:

Raspberry Pi:

$ time tesseract testpng/en1.png stdout
Tesseract Open Source OCR Engine v3.02 with Leptonica

real 0m5.355s
user 0m5.160s
sys 0m0.170s

Raspberry Pi 2B:

$ time tesseract en1.png stdout
Tesseract Open Source OCR Engine v3.02 with Leptonica

real 0m2.618s
user 0m2.510s
sys 0m0.100s

Laptop:

$ time tesseract testpng/en1.png stdout.txt
Tesseract Open Source OCR Engine v3.03 with Leptonica

real 0m0.316s
user 0m0.304s
sys 0m0.012s

a virtual machine (VM) in bandwagon:

$ time tesseract testpng/en1.png stdout.txt
Tesseract Open Source OCR Engine v3.03 with Leptonica

real 0m0.352s
user 0m0.320s
sys 0m0.028s

Advertisements
%d bloggers like this: