QString fileName = QFileDialog::getOpenFileName(this,
tr("Open Image"),".",
tr("Image Files(*.png *.jpg *.jpeg *.bmp)"));
image = cv::imread(fileName.toUtf8().data());
if(!image.data){
qDebug()<< "Could not open or find the image";
return ;
}
QString status = QString::number(image.rows) + "x" + QString::number(image.cols);
ui->label_2->setText(status);
//show
cv::namedWindow("Original Image");
cv::imshow("Original Image",image);
```