Solution on the vscode error “The terminal will be reused by the task, and the any key is closed”

2023-01-14   ES  

1. Refer to installation or compile OPENCV
https://aipro.blog.csdn.net/article/details/112538453
2, configure codelite

I:\opencv\opencv\build\include
I:\opencv\opencv\build\include\opencv2\highgui
#include <iostream>
#include "highgui.hpp"
using namespace std;
int main(int argc, char **argv)
{
    
	IplImage* img=cvLoadImage("i:\\pro\\1.png");
    cvNamedWindow("show",CV_WINDOW_AUTOSIZE);
    cvShowImage("show",img);
    cvWaitKey(0);
    cvReleaseImage(&img);
    cvDestroyWindow("show");
	return 0;
}

source

Related Posts

Non -initial warning warning

【Network IO】 (2) Multi -path reuse -kernel level introduction

SDUTACM Data Structure Experiment Stack 2: General arithmetic expression converts to suffix KEY

c ++ stack stack usage brief description

Solution on the vscode error “The terminal will be reused by the task, and the any key is closed”

Random Posts

[Linux] IMX6ULL Audio Drive-Power Management

Blue Bridge Cup Algorithm Training the shortest circuit (chain front star, spfa)

A cool effect of HTML played PPT BAIDU

leetcode 119. Yang Hui triangle II

How to upgrade the old Nuget package (2.x, packages.config) to the fastest way into a new Nuget package (4.x, PackageReference)