digitalbrain79 / darknet-nnpack

Darknet with NNPACK
Other
305 stars 75 forks source link

How to use libdarknet so library #24

Open phongnhhn92 opened 6 years ago

phongnhhn92 commented 6 years ago

Hello guys, I managed to compile and run the tiny YOLO weights with 1.3s / img like the instruction. I see that there are 2 library files: libdarknet.so and libdarknet.a. I would like to use them in C++, how can I use it ? Please help !

doraemon96 commented 5 years ago

You might need to link it through your compiler. You can use this project for inspiration (it's not mine), it's for plain darknet and it should work for darknet-nnpack as well (I seem to have a bug with the pthreads symbol resolution, but maybe you won't).

Nonetheless here it is: https://bitbucket.org/ChernyshovYuriy/darknetapp/src/master/ There you can check it's CMakeLists.txt file and find what you need from it.