CVDnn - matt-s-clark/godot-gdextension-opencv GitHub Wiki
Deep neural networks module. More information here.
blobFromImage
Prototype: static CVMat blobFromImage(CVMat image, Dictionary additional_parameters)
Creates 4-dimensional blob from image. Optionally resizes and crops image from center, subtract mean values, scales values by scalefactor, swap Blue and Red channels.
- Additional parameters: scale_factor: Float, size: Vector2, mean: Vector3, swap_rb: Bool, crop: Bool, ddepth: Int
readNet
Prototype: static CVNet readNet(const String model, Dictionary additional_parameters)
Read deep learning network represented in one of the supported formats:
Caffe, TensorFlow, Torch, Darknet, OpenVINO, ONNX
Returns a CVNet object.
- Additional parameters: config: String, framework: String