QT & imRead() & UTF-8 [closed]
Hi everyone,
I use QT
to create some gui and parse file path with QFileDialog
.
My code is:
QString fileName = QFileDialog::getOpenFileName();
Mat imageMat = imread( fileName.toLocal8Bit().constData() );
And this works fine but when I use non-latin characters my imageMat
is empty. How to get image with unicode path?
Regards.
UPD: Imread isn't working with non-ascii directories/paths. http://code.opencv.org/issues/1268