Skip to content

parallel_setParallelForBackend

Core and matricesfunctionOpenCV 5.0.0
import { parallel_setParallelForBackend } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSbackendName, propagateNumThreads
FUNCTIONparallel_setParallelForBackend
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
backendName

backend name argument (EmbindString).

propagateNumThreads

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