Comments (3)
The third parameter of the colorRegions
method will help keep letters together when they're made up of separate lines which aren't touching, and the exact_characters
setting can be used whenever a CAPTCHA system always has exactly the same number of characters.
These settings seem to work well.
var cbl = new CBL({
preprocess: function(img) {
img.debugImage("debugPreprocessed");
img.binarize(200);
img.debugImage("debugPreprocessed");
img.colorRegions(50, true, 3);
img.debugImage("debugPreprocessed");
},
character_set: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
exact_characters: 5,
pattern_width: 25,
pattern_height: 25,
blob_min_pixels: 10,
blob_max_pixels: 1000,
allow_console_log: true,
blob_console_debug: true,
perceptive_colorspace: true,
blob_debug: "debugSegmented"
});
cbl.train("3jrH5.png");
cbl.train("bHaGR.png");
cbl.train("GCXKa.png");
cbl.train("gSBTt.png");
cbl.train("mXTtA.png");
cbl.train("PWRSX.png");
var saveModel = function() {
cbl.condenseModel();
cbl.sortModel();
cbl.visualizeModel("visualizeModel");
cbl.saveModel();
}
from cbl-js.
Captchas.zip
I tried with this captchas but It's not working always
from cbl-js.
Did you train a model? What's your solver look like? You can check out the quick start for help in getting started.
I ran through the training for the images above and generated this model:
You may want to train on more samples or play around with the segmentation settings, but it performs decently.
<div class="main">
<img id="captcha" src="mXTtA.png" />
<br />
<input type="text" id="solution">
<br />
<a href="javascript: void(0)" id="solve" onclick="solve()" style="display: none">Solve!</a>
</div>
<script>
var cbl = new CBL({
preprocess: function(img) {
img.binarize(200);
img.colorRegions(50, true, 3);
},
/* Load the model we saved during training. */
model_file: "condensed-30.txt",
character_set: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
exact_characters: 5,
pattern_width: 25,
pattern_height: 25,
blob_min_pixels: 10,
blob_max_pixels: 1000,
//allow_console_log: true,
//blob_console_debug: true,
perceptive_colorspace: true,
//blob_debug: "debugSegmented",
/* Define a method that fires immediately after successfully loading a saved model. */
model_loaded: function() {
// Don't enable the solve button until the model is loaded.
document.getElementById('solve').style.display = "block";
}
});
var solve = function() {
// Using the saved model, attempt to find a solution to a specific image.
cbl.solve("captcha").done(function (solution) {
// Upon finding a solution, fill the solution textbox with the answer.
document.getElementById('solution').value = solution;
});
}
</script>
from cbl-js.
Related Issues (20)
- Please help to solve that 6 digits HOT 5
- Can you help implement on node.js HOT 1
- Captcha Solve Help HOT 1
- Can't seem to solve this captcha HOT 2
- I can't make a trainer HOT 5
- need help with solving a simple captcha HOT 1
- Help with this one? HOT 2
- Need help with captcha HOT 1
- Help for this kind of CAPTCHA HOT 2
- Help solving SVG based captcha. HOT 8
- Solve a simple SVG captcha HOT 2
- Do you think that this captcha is breakable? HOT 2
- Help for this kind of CAPTCHA HOT 1
- What about this kind? HOT 1
- need help in image segmentation
- Hello, need advice in solving this type of captcha
- Help solving PNG based captcha (Not SVG, but PNG) HOT 1
- Help solving this captcha HOT 1
- Help solving this captcha
- Can you help me to solve this captcha? HOT 1
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 cbl-js.