Answer the question
In order to leave comments, you need to log in
How to imwrite an image to a subfolder without giving the full path in OpenCV?
Unable to write image to subfolder.
Wrote in different ways, zero sense.
imwrite("../../pat/Gray_Image.jpg", image_source);
imwrite("../pat/Gray_Image.jpg", image_source);
imwrite("/pat/Gray_Image.jpg", image_source);
imwrite("\\pat\\Gray_Image.jpg", image_source);
imwrite("//pat//Gray_Image.jpg", image_source);
imwrite("\pat\Gray_Image.jpg", image_source);
Answer the question
In order to leave comments, you need to log in
It's not my business, of course, but is it possible to take on such a complex software package without knowing how to write to folders? And you have a slash here and a backslash ... what system is worth? Windows or open source what? Is the record obtained with the full path or not? Do it with full first.
Have you read here?
What have you been able to do so far? How was the library installed? Version?
Yes - you specified the section "....MICROSOFT VISUAL C ++" - it means Windows. What about slash then? In Windows, reverse separates directories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question