-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access device storage and returning values #38
Comments
[Answer moved to the FAQ]
There are several options:
|
Hi @mhsmith, I am facing issue while reading a file using cv2.imread directory = str(Environment.getExternalStorageDirectory()) Error : (-215:Assertion failed) !_src.empty() in function 'cvtColor' |
Have you requested the READ_EXTERNAL_STORAGE permission, as described here? If your app targets API level 29 or later, then "scoped storage" adds more complications. Once I've had a chance to learn about this, I'll edit my comment above with some recommendations. Meanwhile, you can probably work around it by reducing your target API level to 28 or lower, or using the |
A solution which works with scoped storage is now given in the FAQ. |
Hi,
I need your assistance to know:
Thanks
The text was updated successfully, but these errors were encountered: