Even with the broadFileSystemAccess
capability you won't be able to access an arbitrary path on the file system with ordinary APIs, you have to use the StorageFile
/StorageFolder
APIs instead. From the screenshot I see you are trying to read the image using OpenCV, so instead of using a path, you will need to read the image using a StorageFile
and use a different imread
overload which accepts a byte array or stream. Alternatively, you could copy the file from the given path to ApplicationData.Current.LocalFolder
which is accessible using any API, including imread
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…