title: How to detect custom object using EmguCV
body: <p>I'm working on some object detection code. So, I've made a training and got .pb and graph.pbtxt files from tensorflow. The next thing that I've done, was python code, which performs my object detection based on these 2 files, using opencv for Python.
  Here is my python script, which works well:</p>
  
  <pre><code>import cv2 as cv
  
  cvNet = cv.dnn.readNetFromTensorflow('frozen_inference_graph.pb', 'graph.pbtxt')
  
  img = cv.imread('75.png')
  rows = img.shape[0]
  cols = img.shape[1]
  cvNet.setInput(cv.dnn.blobFromImage(img, size=(300, 300), swapRB=True, crop=False))
  cvOut = cvNet.forward()
  print(rows)
  print(cols)
  
  for detection in cvOut[0,0,:,:]:
      print(type(cvOut[0,0,:,:]))
      score = float(detection[2])
      if score &gt; 0.1:
          left = detection[3] * cols
          top = detection[4] * rows
          right = detection[5] * cols
          bottom = detection[6] * rows
          cv.rectangle(img, (int(left), int(top)), (int(right), int(bottom)), (0, 0, 255), thickness=2)
          print('true')
      print(score)
  
  cv.imshow('img', cv.resize(img, None, fx=0.3, fy=0.3))
  cv.waitKey()
  </code></pre>
  
  <p>However, I need the same code, done with .NET (C#), using EmguCV library, which is a wrapper of conventional OpenCV. </p>
  
  <p>Here is a part of code, that I've managed to write:</p>
  
  <pre><code>private bool RecognizeCO(string fileName)
  {
              Image&lt;Bgr, byte&gt; img = new Image&lt;Bgr, byte&gt;(fileName);
  
              int cols = img.Width;
  
              int rows = img.Height;
  
              imageBox2.Image = img;
  
              Net netcfg = DnnInvoke.ReadNetFromTensorflow("CO.pb", "graph.pbtxt");
  
              netcfg.SetInput(DnnInvoke.BlobFromImage(img));
  
              Mat mat = netcfg.Forward();
  
              return false;
  }
  
  </code></pre>
  
  <p>Unfortunately, I have no idea what to do after that.... Actually, I nedd the same result in this C# code, like in Python one. I know, that I can just to call python scripts from C#, but I really need this code to be done in C# with EmguCV.
  Please, help me!
  Thank you in advance for your help! </p>