samples_findFileOrKeep
import { samples_findFileOrKeep } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSrelative_path, silentMode
FUNCTIONsamples_findFileOrKeep
RETURN TYPEstring
Look for a sample file and return its resolved path, or keep the original filename if no match is found.
samples_findFileOrKeep(relative_path: EmbindString, silentMode: boolean): string;2 available overloads
samples_findFileOrKeep(relative_path: EmbindString): string;samples_findFileOrKeep(relative_path: EmbindString, silentMode: boolean): string;relative_pathrelative path argument (EmbindString).
silentModesilent mode argument (boolean).
Returns
The string result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.