Open yushulx opened 2 years ago
Heavily interested in this issue too, I can't upload any image with blazor webassembly and draw it in canvas :(
I too am having trouble with this issue 🤔 I am not familiar with (blazor) wasm. The sample program here is experimental.
I tried to use
InputFile
to load an image, but failed to load PNG and JPEG files.Here is the code that I have added to
OpenCvSharpSample.razor
:The
Mandrill.bmp
file can be loaded successfully. However, after converting the image to PNG, I got an emptyMat
.Does
OpenCVSharp
for blazor only support bmp format?