You could possibly do it server side. I would personally implement it as a Flask server that took an image, ran it through either Pytesseract (quick, got to manually preprocess, needs tesseract installed) or Easyocr (slower but works out the box) then send back the if and only if it was a valid tire-info-string to avoid people abusing it for other purposes.