cv::imwrite could not find a writer for the specified extension
I have also faced this issue and I have observed that this issue will come when I use the image without any extension. like abc.jpg
but I rename it abc
only.
You must use an image name with extension.
Just mention the format in which you like to save your image like image.jpg, image.jpeg
cv2.imwrite('image.jpg',image)
it sounds as if you were using a different execution environment than the one you are compiling. Can you try the following? Download dependency walker and go to the executable directory and drag and drop the .exe file over dependency walker (http://www.dependencywalker.com/). It will show you which runtime libraries it is using. Now, make sure you are calling the program with the right environment. If you can, use a command line interface to call the program, it will make you feel safer to know where the code is being called from, so you can be sure your copied .dlls are being called.
Kind regards, Daniel