-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add ML module #62
Comments
If you just need CascadeClassifier, it is included in objdetect module, and has been implemented, https://docs.opencv.org/4.x/d1/de5/classcv_1_1CascadeClassifier.html
opencv_dart/test/objdetect_test.dart Line 6 in 4af53ea
It seems training machine learning models using python and other tools is a more common and fashion way nowadays, and I have no much free time, so ML module was not implemented and not planned recently, maybe it will be added several months later when I have some time. Anyway, it is true that some people need ML module, I(and other users) will be grateful if you can implement it. |
Thank you very much for the links and the awesome package, I will check what needs to be implemented and try to do it |
😄 |
i am trying to make some guide lines so that i follow if its okay
Questions:
note: this is my package where i had the problem https://github.com/abdelaziz-mahdy/pytorch_lite/blob/latest-ffi/ios/pytorch_lite.podspec but i see that you created .framework which should not have this problem so ignore this question, |
wow, you are the author of pytorch_lite, cool 👍 For the questions:
I have edited your checklist, hope you won't mind it. BTW, you can find more build instructions in workflow file, thanks for your efforts in advance. |
One more thing, to speedup the build of opencv_dart, opencv itself is built in another repo with ML disabled, I have enabled it but the workflow has not finished yet, generally it will take about 40 min, once finished, the published tag will be Line 10 in 4af53ea
|
Oh thank you for that, is there is a guide you follow of what the headers are and the implementation for the functions? I checked gocv but looks like there is no ml module or I can't find it, If there is something I can take a reference that will make it much easier edit: also i see that the build finished but the release doesnt have the files https://github.com/rainyl/opencv.full/releases/tag/4.9.0%2B3 |
Yes, this project was originally developed based on gocv, but now nearly every API has been refactored to cache exceptions, the most important guide is the documentation of opencv, i.e., wrap the classes and functions with C-style functions. You can take a look at cv.Subdiv2D in this PR: #60 headers: opencv_dart/src/imgproc/imgproc.h Lines 168 to 187 in d469061
implementation: opencv_dart/src/imgproc/imgproc.cpp Lines 751 to 888 in d469061
Edit: Now published |
nice i like how clean this is done, i will check what i can do tomorrow and open a pr if i was able to implement it. thank again for your help, this info will hopefully make it much easier for me to make the pr <3 |
Well, I developed on windows and it worked normally, maybe macos needs stddef.h, feel free to add it. |
I have published a new branch ml with some data structures wrapped, but they were not tested, just for some detailed instructions and methods to provide some help, but forgive me that I have no more time to finish it, take a look and hoping it can help you~ |
Nice, thank you it helps, also now I know that you would prefer if each class has separate files, since I was implementing them in one file And the cmake change, I forgot that part Anyway I will try to implement it and let's see if I achieve something good ❤️ |
Question
i know that
ML module
is not supported yet, any way i could help with that since i want to use CascadeClassifier i think its in the ml module (i didnt check )if i cant help with it, any time plan for it?
The text was updated successfully, but these errors were encountered: