QT & imRead() & UTF-8 [closed]

asked 2014-09-29 23:47:07 -0500

leo150 gravatar image

updated 2014-09-30 08:06:18 -0500

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2014-09-30 09:04:30.421679