Open KKyang opened 9 years ago
@mkostin
Hi @KKyang, I'm not on this project now, wouldn't be of much help, sorry. My first guess is you're hitting WindowsRT sandbox barriers when using imread/imwrite
, this is as much as you can do from within opencv. These restrictions on WinRT are there from the very beginning. BTW OCV is using plain fopen
under the hood. With RandomAccessStream
you get admittedly bulky but, at the same time, more runtime friendly approach.
@mkostin Thanks, I'll try to use RandomAccessStream
instead now, sadly I cannot find native codec supporting HDR images.
Is it ok to open a new request with the same content at Itseez/opencv?
@KKyang Sure, please do, you could also reference this ticket to get it tracked. If you manage to come up with a patch, please feel free to submit PR. Thanks for looking into it!
I wrote a code like this and
imread
only works when the path is in the ms-app folder. I've changed the permission of the application in AppXManifest to make it able to access My Photo but doesn't help either.The OpenCV branch I'm using is https://github.com/Microsoft/opencv/tree/vs2015-samples
I'm using Visual Studio ver. 14.0.23107.0 D14REL running on Windows 10.10240.
Update If I load the files in WinRT ways, works.
Update 2 The code I use in the sample of
imwrite
doesn't work either. No file is output. https://github.com/Microsoft/opencv/blob/master/samples/winrt/OcvImageProcessing/OcvImageProcessing/MainPage.xaml.cpp