What is the DarkHelp C++ API?
masterThe DarkHelp C++ API is a wrapper for the Darknet neural network framework, designed to simplify integration into C++ applications.
Key capabilities include:
- Loading Darknet-style neural networks using
.cfg,.names, and.weightsfiles. - Running inference on images (via filenames or OpenCV
cv::Mat) and video frames. - Returning results as a vector of
PredictionResultobjects. - Optionally annotating images/frames with the inference results (bounding boxes, labels, etc.).
// Example of the core workflow
DarkHelp::NN nn("model.cfg", "model.weights", "model.names");
const auto results = nn.predict("image.jpg");
cv::Mat annotated_image = nn.annotate();