-
Notifications
You must be signed in to change notification settings - Fork 12
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
CV.imread( ) does not get Mat #150
Comments
I think assets are not easy to handle specially on mobile I recommend copying the file to tmp dir and use the new path |
yes,it works. a more elegant way is reading assets to bytes and use imdecode. but for APIs without the support of loading from bytes it will be the only solution for now. |
And I don't think including the asset reader will work with native assets since the asset reader is from flutter So people should manage that in their own app, maybe we can add an example? |
agree, it's out of the scope of this package. maybe we can develop another package to extend this package and provide some helper functions but not for now, this package is still in heavy development and APIs are not stable enough.
actually the example under this repo has shown how to load image from assets, but we can make another one to show this clearer and add more solutions, e.g., copy to tmp folder and load models. |
Ok let's open an issue with it I may check when I have time, no promises since I have been busy for a while now |
Sounds good, just do it when you are free. |
Refer rainyl/awesome-opencv_dart#1 for further development. As for the answer of this issue, please take a look at the example of this repo. opencv_dart/example/lib/main.dart Lines 86 to 95 in 9168144
|
How to load an image under the assets path to generate mat ,if using CV.imread("assets/ material_wood.jpg ") does not get the correct Mat
The text was updated successfully, but these errors were encountered: