Skip to content

xphoto_createLearningBasedWB

xphotofunctionOpenCV 5.0.0
import { xphoto_createLearningBasedWB } from '@banou/opencv-wasm'

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

Creates an instance of LearningBasedWB

xphoto_createLearningBasedWB(path_to_model: EmbindString): xphoto_LearningBasedWB | null;
2 available overloads
xphoto_createLearningBasedWB(): xphoto_LearningBasedWB | null;
xphoto_createLearningBasedWB(path_to_model: EmbindString): xphoto_LearningBasedWB | null;
path_to_model

Path to a .yml file with the model. If not specified, the default model is used

Returns

The xphoto_LearningBasedWB | null 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.