parallel_setParallelForBackend
import { parallel_setParallelForBackend } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSbackendName, propagateNumThreads
FUNCTIONparallel_setParallelForBackend
RETURN TYPEboolean
Change OpenCV parallel_for backend
Note: This call is not thread-safe. Consider calling this function from the main() before any other OpenCV processing functions (and without any other created threads).
parallel_setParallelForBackend(backendName: EmbindString, propagateNumThreads: boolean): boolean;2 available overloads
parallel_setParallelForBackend(backendName: EmbindString): boolean;parallel_setParallelForBackend(backendName: EmbindString, propagateNumThreads: boolean): boolean;backendNamebackend name argument (EmbindString).
propagateNumThreadspropagate num threads argument (boolean).
Returns
The boolean 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.