<p>Sorry to say but if the face recognition is good it should not recognize cartoon faces, it's designed to recognize human faces and therefore should only tell you how many human faces it is on the image, otherwise it's a bad designed algorithm. If you want a machine-learning algorithm to recognize cartoon faces you would have to train it your self for that specific test.</p>
<p>I did a quick search on google and the first things I found was an article named &quot;Cartoon Face Recognition: A Benchmark Dataset&quot; at <a href="https://arxiv.org/pdf/1907.13394.pdf" rel="nofollow noreferrer">https://arxiv.org/pdf/1907.13394.pdf</a> . Maybe you can find an already existing machine-learning algorithm that have been trained to recognize cartoon faces.</p>
<p>Hope this helped and I hope you find what you're looking for.</p>
<p>--------------------------------EDIT--------------------------------</p>
<p>I found these two git repositories, could be worth looking into more</p>
<p><a href="https://github.com/srvCodes/Cartoon-Face-Detection-and-Recognition" rel="nofollow noreferrer">https://github.com/srvCodes/Cartoon-Face-Detection-and-Recognition</a>
<a href="https://github.com/hako/dissertation" rel="nofollow noreferrer">https://github.com/hako/dissertation</a></p>
<p>The last link is a link for emotions of cartoon character.</p>
Python face_recognition why not recognise cartoon image?
<p>I am trying to face recognise by python <a href="https://pypi.org/project/face-recognition/" rel="nofollow noreferrer">Face-recognition</a> library</p>
<p>I have tried below code for below image</p>
<p>Code :</p>
<pre><code>import face_recognition

image = face_recognition.load_image_file(&quot;img/bill.jpeg&quot;)
property(image)
face_locations = face_recognition.face_locations(image)

print(len(face_locations))
</code></pre>
<p>For below image I am getting output for total face : 6</p>
<p>Image :</p>
<p><a href="https://i.stack.imgur.com/AUVbn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AUVbn.jpg" alt="enter image description here" /></a></p>
<p>But When I am trying by a cartoon image</p>
<p><a href="https://i.stack.imgur.com/oaY5v.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaY5v.jpg" alt="enter image description here" /></a></p>
<p>I am getting output : 0</p>
<p>How can I recognise cartoon face by face-recognition?</p>