Training a CNN with openCv using C++

asked 2018-11-14 06:45:18 -0500

updated 2018-11-14 06:45:41 -0500

Hi,

I have basically a set of 2D Points. So, lets say, I consider a big 200x200 Matrix and initialise it with Zeros. Now,I scale all of my 2D Points such that its x,y coordinates lie in the range of [0,200] (ofcourse,Integers). So, now,I fill my 200x200 Matrix with One's,wherever I have my point coordinates. So,My matrix is a collection of Zero's and One's.

Now,I would like to train a very simple Convolution neural network.

Input: Matrix of size 200x200
Output: Labels as Integers (0,1,2,3).

Once CNN is modelled and trained, I would like to use it for classification. Please help!

edit retag flag offensive close merge delete

Comments

@berak: Please do help!

Programming_Enthusiast gravatar imageProgramming_Enthusiast ( 2018-11-14 06:45:51 -0500 )edit
1

"Training a CNN with openCv" it is not possible with opencv

LBerger gravatar imageLBerger ( 2018-11-14 06:50:57 -0500 )edit

@Programming_Enthusiast -- you heard it ;(

but if you want to play with cnn's there's e.g. tiny-dnn , darknet or even google's colab, on the web

berak gravatar imageberak ( 2018-11-14 07:04:43 -0500 )edit

@berak: Do you recommend using tensorflow? I tried a lot, but I did not find any kind of help,for implementing CNN in C++.Please do help for my case.

Programming_Enthusiast gravatar imageProgramming_Enthusiast ( 2018-11-14 07:08:03 -0500 )edit

well if you want tf, i'd recommend the python version on colab (at least there's docs/tutorials for that)

berak gravatar imageberak ( 2018-11-14 07:14:54 -0500 )edit

Ok :(..Please atleast provide some sample code for python please! I would try out with my data..

Programming_Enthusiast gravatar imageProgramming_Enthusiast ( 2018-11-14 07:17:33 -0500 )edit
LBerger gravatar imageLBerger ( 2018-11-14 07:25:38 -0500 )edit

@LBerger: Thanks Mate! I guess,they are considering training the data directly from Images right?

Programming_Enthusiast gravatar imageProgramming_Enthusiast ( 2018-11-14 07:54:12 -0500 )edit

Lenet might be indeed an easy start for your problrm

berak gravatar imageberak ( 2018-11-14 07:59:20 -0500 )edit

@berak: Please do provide some sample code for Lenet. I would be glad,if you can clearly explain,how I can use !

Programming_Enthusiast gravatar imageProgramming_Enthusiast ( 2018-11-14 08:03:37 -0500 )edit