The following command causes an exception.
cv::imwrite(\"test.jpg\", diffImg);
I also tried numerous variations on this, including absolute
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.
abc.jpg
abc
You must use an image name with extension.