Hello @g0gcd What I would do is to append your image to an image with a similar text pattern so that the OCR engine can get a better result.
So you will end up with a joined image like this one:
then process it with the OCR.
Test Code:
#include <ScreenCapture.au3>
#include <GDIPlus.au3>
#include "..\UWPOCR.au3"
_Example()
Func _Example()
_GDIPlus_Startup()
;hImage/hBitmap GDI
Local $hTimer = TimerInit()
Local $sImageFilePath = @ScriptDir & "\JoinedImage.jpg"
Local $sImageTIM2FilePath = @ScriptDir & "\TIM2.bmp"
Local $sText = "0123456789"
Local Const $iW = 270, $iH = 40
Local $hImageToProcess = _GDIPlus_ImageLoadFromFile($sImageTIM2FilePath)
Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iW, $iH) ;create an empty bitmap
Local $hBmpCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap) ;get the graphics context of the bitmap
_GDIPlus_GraphicsSetSmoothingMode($hBmpCtxt, $GDIP_SMOOTHINGMODE_HIGHQUALITY)
_GDIPlus_GraphicsClear($hBmpCtxt, 0xFFFFFFFF) ;clear bitmap with color white
_GDIPlus_GraphicsDrawString($hBmpCtxt, $sText, 0, 0, "Arial", 18) ;draw some text to the bitmap
_GDIPlus_GraphicsDrawImage($hBmpCtxt, $hImageToProcess,140, -16)
_GDIPlus_ImageSaveToFile($hBitmap, $sImageFilePath) ;save bitmap to disk
Local $sOCRTextResult = _UWPOCR_GetText($sImageFilePath)
MsgBox(0, "Time Elapsed: " & TimerDiff($hTimer),StringStripWS(StringReplace( $sOCRTextResult,$sText,""), $STR_STRIPALL))
_GDIPlus_GraphicsDispose($hBmpCtxt)
_GDIPlus_ImageDispose($hImageToProcess)
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_Shutdown()
EndFunc ;==>_Example
Saludos