Ejemplo n.º 1
0
 /// <inheritdoc />
 /// <summary>
 /// Dispose method to close the darknet process
 /// </summary>
 public void Dispose()
 {
     Wrapper.Close();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new Darknet detector with the <paramref name="cfgFile"/> and the <paramref name="weightFile"/>
 /// </summary>
 /// <param name="cfgFile">The *.cfg file</param>
 /// <param name="weightFile">The *.weights file</param>
 /// <param name="gpuId">The index of a CUDA compatible GPU</param>
 public Darknet(string cfgFile, string weightFile, int gpuId = 0)
 {
     Wrapper.Init(cfgFile, weightFile, gpuId);
 }