Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

lc-soft/darknetlib

Repository files navigation

DarknetLib

(中文/EN)

Tab of contents

Introduction

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.

Features

  • Provides simple exception handling
  • Redefining the interface with a new naming style
  • Suitable for compilation into a dynamic library to use

Use

Use on Windows

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:

  1. Download and install CUDA
  2. Download cuDNN and unpack files to hte 3rdparty directory
  3. Open build/darknet.sln whith Visual Studio 2017
  4. Set Release and x64
  5. build darknet_gpu and test project
  6. Download the yolov3-tiny.weights file to the test directory
  7. Run the test

Use on Linux

git clone https://github.com/lc-soft/darknetlib.git
git submodule init
git submodule update
make
cd test
make

Todo

  • 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)

Legal

Code released under the MIT License.