hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.7k stars 866 forks source link

Any denoising function available? #346

Closed CloudTsang closed 5 years ago

CloudTsang commented 6 years ago

Hello , I'm developing an book-OCR project with golang using opencv to preprocess the paper photos.

In python , function fastNlMeansDenoising can denoise an image , very simple and works well for most photos.

im = cv2.imread(path, cv2.IMREAD_GRAYSCALE)
cv2.fastNlMeansDenoising(im, im,10, 7, 21)

In gocv , I can't see such function or any function to denoise img provided. Fcuntion fastNlMeansDenoising is in opencv_photoXXX.dll

void __cdecl cv::fastNlMeansDenoising(class cv::_InputArray const & __ptr64,class cv::_OutputArray const & __ptr64,float,int,int)

How can I modify my code to use this function ? Or you will add it in the following release?

Sorry for my poor English and waiting for your reponse!

deadprogram commented 6 years ago

Hi @CloudTsang your English is perfectly understandable. :+1:

OK, to your question. There is not yet support in GocV for the photo module. It is on the roadmap https://github.com/hybridgroup/gocv/blob/master/ROADMAP.md

If you would be willing to contribute this functionality, please take a look at our contribution guidelines here: https://github.com/hybridgroup/gocv/blob/master/CONTRIBUTING.md#how-to-add-a-function-from-opencv-to-gocv

I have also tagged this issue as "enhancement".

Thanks!

dacrypt commented 3 years ago

Hi. I was looking for denoising options and found this. Are there any alternatives since this was published?

kyeno commented 9 months ago

Surprisingly this is the first result on Google, but I also found this: https://pkg.go.dev/gocv.io/x/gocv@v0.35.0#FastNlMeansDenoising

Seems like it's implemented now.

deadprogram commented 9 months ago

Thanks for updating this issue @kyeno