Skip to content

CaptainDuke/image-classify-server

 
 

Repository files navigation

An Online Captcha Recognition Server

This HKU MSc CS final project, a cloud service of captcha recognition system based on deep learning. We provide both Web API and UI, as well as Chrome Extension support for convience. You may refer to our project homepage and more details from script

We have uploaded our docker image into Dockerhub, which has been downloaded for 10k+ times. Have a try:

docker pull taylorliang/mycaptcha

Sample captchas:
captcha

It's is written in Django along with Tensorflow.
We choose LSTM + CTC model to recognize captchas with variable length.
The web interface is made using materializecss and jQuery
The Chrome Exetension interface is made using screenshot-capture, sending post via Ajax.

Drag and Drop !

  • Chrome Extension interface, the result will be copied to the user clipboard automatically
    chrome
  • Web UI interface
    webuiwebui

Usage

To run the server on localhost:

$ pip3 install -r requirements.txt
$ python3 manage.py collectstatic
$ python3 manage.py runserver

Using Retrained Model

  • Retrain the model using your images. Refer here.
  • Replace the generated graph and label files in /classify_image/inception_model/
  • Deploy the Django project

Cloud Deployment

Aiming at effectively development and clearness of work assignment, we separate our system into two main parts. The first part is frontend, including user interface and Ajax engine, while another part is backend, which consists of Django and recognition model.
arc

In order to improve the availability, throughput and scalability of our captcha recognition service, we deploy our captcha recognition server on a distributed computation cluster and choose Kubernetes to manage our captcha recognition application.
arc

Reference:

About

Captcha recognition using Tensorflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.0%
  • HTML 4.3%
  • CSS 1.9%
  • JavaScript 1.8%