GithubHelp home page GithubHelp logo

Comments (7)

scnuhealthy avatar scnuhealthy commented on August 28, 2024

As README illustrate, you should run the porgram "get_train_set.py" and generate the dataset first. The neural network will do nothing until you feed it with great data.

from cnn_keras_captcha.

robertveloso avatar robertveloso commented on August 28, 2024

So I ran the get_train_set.py, and the folder data now has 19.216 images.
From the readme the next step would be captcha_train.py, but I can go any futher. I'm having this error: ValueError: Input 0 is incompatible with layer conv2d_1: expected ndim=4, found ndim=1
My guess is that I need to fill the params when running the py script but i don't which flags to use
I'm sorry about my english, not native language.
Thanks anyway...

from cnn_keras_captcha.

scnuhealthy avatar scnuhealthy commented on August 28, 2024

Firstly I am sorry about a miss in "capthcha_params.py". The WIDTH should be 160 and the HEIGHT should be 60. You can change them and make sure the size are identical to the size of your captcha that you generate.
However, I don't think the miss induces your problem. When you have run "get_train_set.py" exactly, the num of images should be 24000, if you have not altered the code. I guess there is something wrong with your environment. Maybe your backend of keras choose tensorflow. Theano is ok but I have not tested the code with tensorflow. Or you try upgrade your packages(e.g theano,keras) and make sure your keras can run normally.

from cnn_keras_captcha.

robertveloso avatar robertveloso commented on August 28, 2024

Worked like a charm... captcha_params and amount of images on data folder was the problem.
Thanks, you're amazing!
Uploading Sem título.png…

from cnn_keras_captcha.

robertveloso avatar robertveloso commented on August 28, 2024

So, You can set the issue as closed. But could you give me some hints of how to use this project with
PHP Captcha library: https://github.com/Gregwar/Captcha

from cnn_keras_captcha.

scnuhealthy avatar scnuhealthy commented on August 28, 2024

Maybe I propose an another way to generate the captcha. Seriously, my code is mainly to recognize the captchas which are composed of letters and numbers.

from cnn_keras_captcha.

robertveloso avatar robertveloso commented on August 28, 2024

Well, If you add another way, I'll be right here to test it. 👍

from cnn_keras_captcha.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.