Please have a look at the following opencv
code
void ImageWriter::writeImage(Mat image)
{
number++;
String name="D:/OpenCV Final Year/Images/intruder";
name+=number;
name+=".bmp";
//imwrite("D:/OpenCV Final Year/Images/intruder.bmp",image);
imwrite(name,image);
}
Here, all I can say is that imwrite()
is not writing anything! There is no errors but no outputs as well. If I use the commented version of the imwrite()
it works as expected . But I can't use it because I need to write number of images, so the name change done by number
integer variable is important. I believe the issue is with the name
string.
However this name
is in type of C#
and that is because std:string
conflicted.
How can I make this dynamic name creation success and make the get the imwrite()
to work?