dnn_readNet1
import { dnn_readNet1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Read deep learning network represented in one of the supported formats. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
dnn_readNet1(framework: EmbindString, bufferModel: ucharVector, bufferConfig: ucharVector, engine: number): dnn_Net;3 available overloads
dnn_readNet1(framework: EmbindString, bufferModel: ucharVector): dnn_Net;dnn_readNet1(framework: EmbindString, bufferModel: ucharVector, bufferConfig: ucharVector): dnn_Net;dnn_readNet1(framework: EmbindString, bufferModel: ucharVector, bufferConfig: ucharVector, engine: number): dnn_Net;frameworkName of origin framework.
bufferModelA buffer with a content of binary file with weights
bufferConfigA buffer with a content of text file contains network configuration.
engineselect DNN engine to be used. With auto selection the new engine is used first and falls back to classic. Please pay attention that the new DNN does not support non-CPU back-ends for now. Use ENGINE_CLASSIC if you want to use other back-ends.
Net object.
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.