OCR in web app

Hello!

I was just wondering if is possible to do OCR in Web core. I would like to read small words only with a mobile phone. Like registration numbers (but on boats) and don't know how to add this.

I found some articles about this (also a TMS Blog post that AI can do the OCR :) ), but only for "classic" Delphi apps.

For web applications with TMS WEB Core you might consider TTMSFNCWXOCR for TMS FNC WX Pack:https://www.tmssoftware.com/site/tmsfncwxpack.asp
See:
TTMSFNCWXOCR - TMS FNC WX Pack

1 Like

Technically, it works. But the OCR from the camera is quite innacurate. It's very difficult to get a correct reading.

Is there any possibility to tweak the OCR to get better results?

Hi,

Are you usingTWebCamera to capture the image? If yes, you could try to modify the constraints to get a higher resolution which typically results in better reading results. In the OnBeforeStart event:

procedure TForm4.WebCamera1BeforeStart(Sender: TObject;
  var AConstraints: TJSObjectRecord);
begin
  AConstraints.jsobject.Properties['width'] := new(['ideal', 1920]);
  AConstraints.jsobject.Properties['height'] := new(['ideal', 1080]);
end;

Thank you, I willtry it