tesseractCleanup: Cleanup Aspects of a Tesseract Object

tesseractCleanupR Documentation

Cleanup Aspects of a Tesseract Object

Description

These functions allow one to clean up different memory and results associated with a tesseract object. They are used to release resources when we know we don't need them again. For the most part, we do not need to explicitly invoke these but remove the tesseract object and allow it to be garbage collected by R. However, these functions allow us to cleanup aspects of the tessearct object without throwing it all away. This way, we can reuse the same tesseract object, e.g. , on another image.

Usage

Clear(api)
ClearAdaptiveClassifier(api)
End(api)
ClearPersistentCache(...)

Arguments

api

the instance of the TesseractBaseAPI-class in which to perform the operations.

...

any arguments are ignored. This is to allow a caller specify a Tesseract object eventhough this applies to all of them.

Value

The value of these functions should be ignored as it is the side-effect that is desired.

Author(s)

Duncan Temple Lang

See Also

tesseract


duncantl/Rtesseract documentation built on March 25, 2022, 5:50 a.m.