Comments (7)
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.
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.
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.
Worked like a charm... captcha_params and amount of images on data folder was the problem.
Thanks, you're amazing!
from cnn_keras_captcha.
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.
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.
Well, If you add another way, I'll be right here to test it. 👍
from cnn_keras_captcha.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn_keras_captcha.