Giter Club home page Giter Club logo

emgucv-caffe-image-classifier-emgucv-object-detection-'s Introduction

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

emgucv-caffe-image-classifier-emgucv-object-detection-'s People

Contributors

xpmsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emgucv-caffe-image-classifier-emgucv-object-detection-'s Issues

Emgu.CV.Dnn.Importer (Emgu.CV 3.4.3)

These three lines:

            Emgu.CV.Dnn.Importer caffe = Emgu.CV.Dnn.Importer.CreateCaffeImporter("Text.prototxt", "Model.caffemodel");
            Emgu.CV.Dnn.Net net = new Emgu.CV.Dnn.Net();
            caffe.PopulateNet(net);

Can (should) be replaced with this one line in later versions of Emgu.CV (3.4.3)

            Emgu.CV.Dnn.Net net = Emgu.CV.Dnn.DnnInvoke.ReadNetFromCaffe("Text.prototxt", "Model.caffemodel");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.