That'd be really hard to do though... you need a lot of pictures...
When I was searching to implement cap that I found botdetect which is open source but then you'd still need a lot of images (or tamper with all the images they give you).
The real problem is there really isn't anything a human can do online that you can't program a computer to do.