L
L
Limons2021-11-12 17:36:31
OpenCV
Limons, 2021-11-12 17:36:31

What if imshow("Image", image); Exception not handled?

What is the problem?
618e7bc60c4b7606736994.png
And:
618e7bd8a80fa663428770.png

Here's what opens up:
618e7beba2d71129294180.png

Here's what Visual Studio 2019 doesn't like

#include<opencv2\highgui\highgui.hpp>
#include<opencv2\core\core.hpp>
#include<opencv2\opencv.hpp>
#include<stdio.h>

using namespace cv;
using namespace std;

double minval, maxval; // не обращайте внимание

int main(int argc, const char** argv)
{
    setlocale(LC_ALL, "Russian");

    string ishod_im = "C:\\png\\screen.png";
    Mat image = imread(ishod_im);
    imshow("Image", image);
    waitKey(0);
    return 0;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question