Open AlexeyAB opened 5 years ago
Hey, @AlexeyAB do you need any help with this? I am trying to use your code as a library and would love if the C++ API was wrapped in a namespace.
You may also want to look at one of the newer C++ APIs for darknet: https://github.com/stephanecharette/DarkHelp#what-is-darkhelp
@stephanecharette How is DarkHelp different from this? It doesn't look like you're putting things in namespaces either? Moreover, is there any particular reason you don't use darknet as a git submodule?
I wanted a single class, something easy to use in commercial projects where I didn't want to deal with having darknet itself as a dependency as the darknet code is a bit of a mess.
As for namespace, since it is a single class I didn't see a need to have a DarkHelp ns with a single DarkHelp class within it, but go ahead and declare a namespace prior to #including darkhelp.hpp if that is what you'd like. Note that DarkHelp is used by many commercial projects already. You can find us on the darknet/yolo discord where both DarkHelp and DarkMark have a dedicated channel if you want more help.
Thanks a tonne @stephanecharette
On 10.03.2021 22:25, Stéphane Charette wrote:
I wanted a single class, something easy to use in commercial projects where I didn't want to deal with having darknet itself as a dependency as the darknet code is a bit of a mess.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AlexeyAB/darknet/issues/3053#issuecomment-796140087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4OCQ23GDALF5IHRG3VF5LTC7IT3ANCNFSM4HI2FADQ.
Try using the dnn module of opencv. You can even compile opencv dnn module with cuda support if desired.
-- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com
@holger-prause I think the point of using Darknet is for the out-of-the-box support for YOLO.
Improve API compatibility with other software (applications, libraries, ...)
Remove unnecessary API functions, which:
Add API function for each feature: Detector (yolo), Classifier, RNN (text generation), RNN_vid, ... from examples: https://github.com/pjreddie/darknet/tree/master/examples
Change names of API-functions, based on the best practice:
dark_
before each exported functions (as it is done for cuDNN functions prefixcudnn
)namespace dark
for all exported functions (as it is done for OpenCV functions, namespacecv::
)May be move some c-files from
/src/
folder to/example/
folder as in original repository: https://github.com/pjreddie/darknet/tree/master/examples