Accessors
url
- get url(): string
Returns string
Constructors
constructor
- new RestRecognizer(serverConfig, recognitionConfig): RestRecognizer
Methods
Protected
buildData
- buildData(model): TRestPostData
convert
- convert(model, conversionState?, requestedMimeTypes?): Promise<Model>
Parameters
Optional
requestedMimeTypes: string[]
Returns Promise<Model>
export
- export(model, requestedMimeTypes?): Promise<Model>
Parameters
Optional
requestedMimeTypes: string[]
Returns Promise<Model>
Protected
getMimeTypes
- getMimeTypes(requestedMimeTypes?): string[]
Parameters
Optional
requestedMimeTypes: string[]
Returns string[]
Protected
post
- post(data, mimeType): Promise<unknown>
Parameters
data: unknown
mimeType: string
Returns Promise<unknown>
resize
- resize(model): Promise<Model>
Returns Promise<Model>
Protected
tryFetch
- tryFetch(data, mimeType): Promise<TExport>
Returns Promise<TExport>
Properties
Private
#logger
Protected
recognitionConfiguration
Protected
serverConfiguration