Skip to content

Unhandled exception. OpenCvSharp.OpenCVException: kernel_size (or kernel_h and kernel_w) not specified #1868

@Naonao9527

Description

@Naonao9527

Load onnx model filed,following is the message:

Unhandled exception. OpenCvSharp.OpenCVException: kernel_size (or kernel_h and kernel_w) not specified
at OpenCvSharp.Internal.NativeMethods.<>c.<.cctor>b__1703_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
at OpenCvSharp.Internal.NativeMethods.dnn_readNetFromONNX_Windows(String onnxFile, IntPtr& returnValue)
at OpenCvSharp.Internal.NativeMethods.dnn_readNetFromONNX(String onnxFile, IntPtr& returnValue)
at OpenCvSharp.Dnn.Net.ReadNetFromONNX(String onnxFile)
at OpenCvSharp.Dnn.CvDnn.ReadNetFromOnnx(String onnxFile)
at onnx_test.OnnxCvDemo.Main(String[] args) in E:\NewVisionary\Softwares\Operators\onnx_test\Progrom.cs:line 29

belowing is the model information:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions