Skip to content

samples_findFileOrKeep

Core and matricesfunctionOpenCV 5.0.0
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
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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_path

relative path argument (EmbindString).

silentMode

silent 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.