The DarkHelp library also comes with a command-line tool that uses the DarkHelp C++ API to show the results on the screen, or outputs the findings in JSON format.
You can load a neural network and browse through a large set of images as you examine the results of calling DarkHelp::NN::predict() and DarkHelp::NN::annotate() on each image. Images can be resized, apply different thresholds to the predictions, and get details on the predicted results.
Here is an example of how to use it:
Note the parameters:
.cfg file used to originally train the neural network. .weights file that was created as part of the neural network training. .names file which contains the names of the various classes in the network. .jpg, but could be any type of image) against which you want to run the network. This can be left out if you instead use the -l parameter to read in a list of image filenames from a text file.There are at least a dozen possible command-line arguments. run DarkHelp --help for the full list or see Parameters. Some examples:
In addition to command-line arguments, there are several keys you can use in the viewer. Some of which are:
q or ESC to exit from the viewer. t to toggle image tiling (see Image Tiling) w to write the current image to disk in the current working directory (see "output.png") HOME to return to the first image in the data set END to skip to the last image in the data set LEFT go to the previous image UP increase the rate at which images are processed during the slideshow DOWN decrease the rate at which images are processed during the slideshow PAGE-UP increase the threshold PAGE-DOWN decrease the threshold g to toggle greyscale images p to pause or play the slideshowPress h in DarkHelp to show the help page with all the keyboard shortcuts.
Also see: