Neural network library for true-false based image recognition
<p>I'm in need of an artificial neural network library (preferably in python) for one (simple) task. I want to train it so that it can tell wether <strong><em>a thing</em></strong> is in an image. I would train it by feeding it lots of pictures and telling it wether it contains the thing I'm looking for or not:</p>

<p>These images contain <strong><em>this thing</em></strong>, return True <em>(or probability of it containing the thing)</em></p>

<p>These images do not contain <strong><em>this thing</em></strong>, return False <em>(or probability of it containing the thing)</em></p>

<p>Does such a library already exist? I'm fairly new to ANNs and image recognition; although I understand how they both work in principle I find it quite hard to find an adequate library for this task, and even research in this field has proven to be kind of a frustration - any advice towards the right direction is greatly appreciated.</p>

<p>I am unaware of any library which can do this for you. I use a lot of <a href="http://caffe.berkeleyvision.org/" rel="nofollow">Caffe</a> and can give you a solution till you find a single library which can do it for you.</p>

<p>I hope you know about <a href="http://www.image-net.org/" rel="nofollow">ImageNet</a> and that Caffe has a <a href="http://caffe.berkeleyvision.org/gathered/examples/imagenet.html" rel="nofollow">trained model</a> based on ImageNet.</p>

<p>Here is the idea:</p>

<ul>
<li>Define what <code>the object</code> is. Say <code>object = "laptop"</code>.</li>
<li>Use Caffe's ImageNet trained model, change the code to display the required output you want (you mentioned <code>TRUE</code> or <code>FALSE</code>) when the <code>object</code> is in the <code>output labels</code>.</li>
</ul>

<p>Here is a link to the <a href="https://github.com/arundasan91/Deep-Learning-in-Caffe/blob/master/Deep-Neural-Network-with-Caffe/Deep%20Neural%20Network%20with%20Caffe.md" rel="nofollow">ImageNet tutorial</a> which I wrote.</p>

<p>Here is what you might try:</p>

<ul>
<li>Take a look <a href="https://github.com/arundasan91/classifyME/blob/master/src/caffeClassification.py" rel="nofollow">here</a>. It is a stripped down version of the ImageNet program which I used in a prediction engine.</li>
<li>In line 80 you'll get the top-1 predicted output label. In line 86 you'll get the top-5 predicted labels. Write a line of code to check whether <code>object</code> is in the <code>output_label</code> and return <code>TRUE</code> or <code>FALSE</code> according to it.</li>
</ul>

<p>I understand that you are looking for a specific library, I will look for it, but this is something I would try out in the beginning.</p>

python python-3.x boolean neural-network image-recognition