shimat

Results 28 comments of shimat

I recommend ImageSharp as a replacement for System.Drawing. https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only#recommended-action

I don't see this as an issue because I have no trouble with this specification myself. Please build your own custom-made OpenCvSharpExtern.dll.

Could you tell me the depth/channels of `bitmap` and `mm2` ? My expectation is that `bitmap.PixelFormat` is `PixelFormat.Format32bppRgb` and `mm2.Type` is `8UC4`. `new Bitmap(file)` will usually create a PixelFormat.Format32bppRgb Bitmap....

The test code below may help you. https://github.com/shimat/opencvsharp/blob/master/test/OpenCvSharp.Tests/img_hash/ColorMomentHashTest.cs ```c# using Mat mat = new Mat(@"2022-06-19-10-09-8176.jpg"); using Mat mat2 = new Mat(); using var hashfun = ColorMomentHash.Create(); hashfun.Compute(mat, mat2); mat2.GetArray(out double[]...

You should not use ToBytes, since ToBytes is an alias for ImEncode, which returns the PNG-encoded result of its Mat data.

After adding wechat_qrcode, one GitHub Action is not working properly, and I cannot publish the new NuGet package without fixing it. https://github.com/shimat/opencvsharp/runs/4988054483?check_suite_focus=true Frankly speaking, I think that some pure C#...

Sorry, I forgot to create a Git(Hub) release tag for 4.5.5. Only the NuGet package for version 4.5.5 was released.

I understand the problem, but OpenCvSharp's implementation of RotatedRect.Points is no different than the original OpenCV implementation. I do not believe this is an issue I should address. https://github.com/opencv/opencv/blob/0052d46b8e33c7bfe0e1450e4bff28b88f455570/modules/core/src/types.cpp#L173

Thank you for providing a clear example. However, since OpenCvSharp has the highest priority to make the specification the same as the original OpenCV, this is still not an issue...

The implicit conversion from Mat to InputArray allocates a small amount of memory space that is difficult to free by GC. (I believe this is a design error in the...