How to hide the cmd window [closed]
I have a code to show the local image
#include "stdafx.h"
#include "highgui.h"
int main(int argc, char** argv)
{
IplImage* img = cvLoadImage("a.png");
cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE);
cvShowImage("Example1", img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
}
It will show the image of course,but it will show a black cmd window.Could we hide the cmd window?
opencv's c-api is no more maintained since 2010, you're no more allowed to use code like that.
please have a look at the tutorials , and try again.
@berak Could you tell me why it will tag with a relevant or outdated
btw, assuming you're on win, getting rid of the console window would require to use WinMain instead of main() and a subsystem:windows flag while linking, all of it entirely off-topic here.