(中文/EN)
Darknetlib is a C library for wrapping darknet, It mainly provides object detection support for LC-Finder, you can find the relevant code in the src/lib/detector.c file.
- Provides simple exception handling
- Redefining the interface with a new naming style
- Suitable for compilation into a dynamic library to use
Install with lcpkg:
lcpkg install github.com/lc-soft/darknetlib
Darknetlib installed in this way is the pure CPU computing version, If you need gpu-accelerated version, please go to Release page to download.
If you want to build from source code:
- Download and install CUDA
- Download cuDNN and unpack files to hte
3rdparty
directory - Open
build/darknet.sln
whith Visual Studio 2017 - Set Release and x64
- build darknet_gpu and test project
- Download the yolov3-tiny.weights file to the
test
directory - Run the test
git clone https://github.com/lc-soft/darknetlib.git
git submodule init
git submodule update
make
cd test
make
- Let
darknet_detector_train()
work fine. - Friendly and standardized log output.
- Remove command line interaction code, like:
getchar()
. - Remove the strange
system()
call, like:system("echo ...")
- Refactor source code of the darknet, make it more suitable for use as a library, not a command line program. (very low priority)
Code released under the MIT License.