Hello everyone Maybe someone has already encountered the construction of the Laplace variance for a specific image. Specifically, I want to make a program for recognizing blurred images obtained from the camera.
Found information on my topic: Blur detection with OpenCV - PyImageSearch
I found the necessary nodes, but I don’t have enough experience, I can’t add Kernel: Input Array [OpenCvSharp]
And in general, am I moving in that direction?
convolution.vl (4.9 KB)
But there seems to be a bug with Enum in there.
OpencvCompute.vl (10.4 KB)
I don’t see how Filter2D can be used in this context, as the structures required for it to work just don’t seem to be implemented.
You could try OpenCvSharp and add the necessary stuff if you feel confident enough.
My friendly advice: add informative, explanatory screenshots, it will be easier to understand what we are talking about.
I also had a good idea: why don’t you use chunks of C# code via *.cs files? Sometimes it’s easier to do something in code than to try to patch it.
OpencvComputeSebl.vl (22.5 KB)
a bitt fiddly to find a replacement for the variance calculation and smth. is at least unconventional with that enum.
but the value changes when you change the blur, so i guess it works somewhat.
edit: the kernel size should be 3, which is alreadty updated in the patch but not in the screenshot.
I think it’s worth noting that you have to hook DLL to be able to fiddle around with an enum and access things like the MeanStdDev
Thanks for the help. Does it turn out that the lower the value, the greater the blurriness?
yes, the lower the value, the blurrier.
did you open the patch?
Yes, I did. Now I’m figuring out what’s what. The Blur node simulates the blurring of an image, right?
yes. it’s always a good idea to make yourself some test setup in the first place so you can verify if you patch is doing what it should.
everything below the blur could eventually end up in a process patch, so you can use it as a single node.
Thank you so much for your help, you are the best