Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Initializes tesseract.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
OCR | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The path to the folder where to find tessdata folder. | $path |
Lang | The language to use. | "eng" |
Returns OK on success.
Initialize with tessdata folder in same folder as database for english:
set variable $databasePath to Get(FilePath)
set variable $databasePath to MBS("Path.FileMakerPathToNativePath"; $databasePath)
set variable $databasePath to Substitute ( $databasePath ; ".fp7" ; ".fmp12")
set variable $databaseName to Get(FileName) & ".fmp12"
set variable $path to Substitute ( $databasePath ; $databaseName ; "" )
set variable $r to MBS( "OCR.Initialize"; $path; "eng")
Initialize on Server with tessdata in Server folder:
MBS( "OCR.Initialize"; "/Library/FileMaker Server/"; "eng")
Initialize on demand:
If [MBS("OCR.IsInitialized") ≠ 1]
Set Variable [$r; Value:MBS( "OCR.Initialize"; "/Library/FileMaker Server/"; "eng")]
End If
Created 18th August 2014, last changed 11st May 2021
OCR.GetVariable - OCR.IsInitialized
Feedback: Report problem or ask question.