[][src]Function opencv::dnn::read_net_from_onnx_str

pub fn read_net_from_onnx_str(buffer: &str, size_buffer: size_t) -> Result<Net>

Reads a network model from ONNX in-memory buffer.

Parameters

  • buffer: memory address of the first byte of the buffer.
  • sizeBuffer: size of the buffer.

Returns

Network object that ready to do forward, throw an exception in failure cases.