harthur / kittydar Goto Github PK
View Code? Open in Web Editor NEWFace detection for cats in JavaScript - demo for TXJS 2012 talk
Home Page: http://harthur.github.com/kittydar
License: MIT License
Face detection for cats in JavaScript - demo for TXJS 2012 talk
Home Page: http://harthur.github.com/kittydar
License: MIT License
First of all, very cool project!
Cartoon Pikachu not detected as cat. RL Pikachu = cat.
Original here: https://dl.dropbox.com/u/38059294/0115112240.jpg
My node version is 0.12.6, running on Raspbian.
The version of node-canvas specified in the package.json fails to build, so I manually install the latest node-canvas and works just fine.
(But I need to make a work-around with the version of node-canvas. See Automattic/node-canvas#487 and
#20)
Hello!
Is there a way or an API where given an URL of some image (jpg, png, etc.) I can use kittydar to get the coordinates of cat's face, or an array of face coords, if there are several cats?
hi @harthur could you publish the latest version 0.12 to NPM? thanks in advance :)
I've discovered this software very seldom works with Sphynx cats (the only cat I would use this with). https://edgodanimal.files.wordpress.com/2012/05/0ad03169fae0a08c6ff7001f20c5fe46.jpg
Don't think it likes lots of cats facing forward
http://cl.ly/JmnM
I feel excluded
Maybe I've missed it, but I can't seem to find what this project is licensed under. I'm guessing it's open source, but would you mind adding that info to the readme?
There is many false negatives and false positives with the demo.
We need something for easy tuning.
https://github.com/maxogden/cats
hand photographed by me! all images contain cats and all images are the same dimensions and taken with the same camera
The two right cats are looking straight forward and are not detected.
Also I found this similar issue, that should be moved to this repo. BrainJS/kittydar#1
nice work!
is this implementation follow the ECCV08 paper, Cat Head Detection - How to Effectively Exploit Shape and Texture Features by Weiwei Zhang, Jian Sun, and Xiaoou Tang? with fusion of texture and shape detectors?
I gothrough and find neural network things.
https://github.com/maxogden/cats
hand photographed by me! all images contain cats and all images are the same dimensions and taken with the same camera
Honestly, thank you for creating this project. It is more or less a learning experience for me. I read about neural network and svm in the past, but never fully grasp the ideas for me to successfully apply these concepts.
With the README, I followed the instructions. The train_network seems to finish the training within an hour or two, but I still need to play with it further (plus study the code).
As for train_svm, well, it has been running for almost 39 hours straight with no results
svm antony$ node train-svm.js -p ../POSITIVES -n ../NEGATIVES
training on 18867
feature size 3388
From my end, I can see node is using about 598Mb of memory with 101% of CPU (I guess it takes over one of the dual core). I can't tel if it is stuck in an infinite loop or it is actually doing something.
So has anyone tried train_svm? How long did it take for train-svm to finish?
I put a github octocat (original) but the program fails to detect as a cat!
Hi by executing:
node test.js
on a raspberry Pi with kittydar 1.6
where test.js contains the following JS:
var http = require('http'), fs = require('fs'),
Canvas = require('canvas');
kittyDar = require('kittydar');
fs.readFile('/var/www/kittenpush/web/images/userData/kittenimage.jpg', function(err, squid){
if (err) throw err;
img = new Canvas.Image;
img.src = squid;
var canvas = new Canvas(img.width, img.height);
var ctxxxx = canvas.getContext('2d');
ctxxxx.drawImage(img, 0, 0, img.width, img.height,0,0,img.width,img.height);
console.log(canvas);
var cats = kittyDar.detectCats(canvas);
console.log("there are", cats.length, "cats in this photo");
});
I'm ending up with an error insite the kittydar:
[Canvas 1600x1200]
/home/pi/node_modules/kittydar/kittydar.js:151
ctx.drawImage(canvas, 0, 0, canvas.width, canvas.height,
^
TypeError: Image or Canvas expected
at resizeCanvas (/home/pi/node_modules/kittydar/kittydar.js:151:7)
at Object.kittydar.scaleCanvas (/home/pi/node_modules/kittydar/kittydar.js:96:14)
at Object.kittydar.getAllSizes (/home/pi/node_modules/kittydar/kittydar.js:81:28)
at Object.kittydar.detectCats (/home/pi/node_modules/kittydar/kittydar.js:56:24)
at /home/pi/test.js:19:23
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
Im not sure maybe im just missing something on creating my canvas, but it seems like the kittydar package looses the canvas during execution?
Has anyone else this issue? Would be glad if someone could help.
Interesting result for this image: http://twitpic.com/ayxztc
This is the cropped version of the positive image in the demo website. http://www1.picturepush.com/photo/a/11348659/220/11348659.jpg
It was recognized when I tested it with test-network.js but the JavaScript detector wasn't able to detect it. I'm really curious about the reason behind this.
The error is:
ReferenceError: Can't find variable: FileReader
It's the same for any image.
Safari 5.1.7/Mac, no Adobe Flash on the system (if that's relevant)
Hi - the link http://137.189.35.203/WebUI/CatDatabase/catData.html
is dead.
can't detect cat on this image
http://sphotos-h.ak.fbcdn.net/hphotos-ak-ash3/550542_367679083310929_604435675_n.jpg
Has anyone tried - what would be the route to take.
To identify a specific cat once the coordinates are returned?
Would be great for TNR purposes in tracking the individuals within a colony, and when a new cat has entered.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.