Skip to content

m8/EmguCV-Caffe-Image-Classifier-EmguCV-Object-Detection-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

EmguCV-Caffe-Image-Classifier

This code translated from C++(OpenCv) to C#(EmguCV), and it allows to classify 80 images.(https://docs.opencv.org/3.4.0/d5/de7/tutorial_dnn_googlenet.html)

image

  1. Firstly, download GoogLeNet model files: bvlc_googlenet.prototxt and bvlc_googlenet.caffemodel

  2. Also you need file with names of ILSVRC2012 classes: synset_words.txt.

Put these files into working directory of this program. Also, you should know that this is not a fully translation of OpenCV code. Some functions can be changed.

Explanation

  1. Add .prototxt and .caffemodel files to program
EgEmgu.CV.Dnn.Importer caffe = Emgu.CV.Dnn.Importer.CreateCaffeImporter("Text.prototxt", "Model.caffemodel");
  1. Create net
Emgu.CV.Dnn.Net net = new Emgu.CV.Dnn.Net()
  1. Pass the blob
 Mat blob = Emgu.CV.Dnn.DnnInvoke.BlobFromImage(resim_Mat, 0.78, size, scalar, true);
 net.SetInput(blob, "data");

This section is under construction.

Dependencies

Resources

https://github.com/opencv/opencv/tree/master/samples/dnn https://docs.opencv.org/3.4.0/d5/de7/tutorial_dnn_googlenet.html

About

This code translated from C++(OpenCv) to C#(EmguCV), and it allows to classify 80 images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages