Comments (1)
- 设置英文字符集
chars := "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
_ = capt.SetRangChars(strings.Split(chars, ""))
capt = captcha.GetCaptcha()
dots, b64, tb64, key, err := capt.Generate()
- 前端点选结果
{"dot":"110,198,48,88,197,72","key":"c39190357e6e59043729c59a8fa99a71"}
- 实际点选结果
{"0":{"Index":0,"Dx":105,"Dy":227,"Size":38,"Width":38,"Height":38,"Text":"N","Angle":330,"Color":"#fcb08e","Color2":"#6e3700"},"1":{"Index":1,"Dx":50,"Dy":111,"Size":31,"Width":31,"Height":31,"Text":"A","Angle":20,"Color":"#60c1ff","Color2":"#6e3700"},"2":{"Index":2,"Dx":193,"Dy":96,"Size":37,"Width":37,"Height":37,"Text":"F","Angle":325,"Color":"#b4fed4","Color2":"#660033"}}期望和汉字的验证效果一致
嘿嘿,v2 的位置计算将更精准了,即将发布,可关注一下!
from go-captcha.
Related Issues (13)
- 大佬,求教一下校验的方法,文档中貌似少了怎么校验? HOT 1
- capt.SetRangCheckTextLen 判断条件与变量名存在误导 HOT 2
- 怎么设置字段出现概率,现在刷新好几次都没有出现缩略图内字段 HOT 5
- 是否考虑加入更多验证方式 HOT 3
- 我做了一个Angular版本的示例代码 HOT 2
- 文档再完善些,示例再精简些 HOT 1
- 给诸位提个醒,关系文字的坐标的 HOT 1
- go-captcha-example 启动后验证失败 HOT 1
- There is a problem with the order of return variables in the comment HOT 1
- 文档网站无法访问 HOT 1
- v2 正式版好久推出啊 HOT 1
- 能不能出个flutter的前端
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 go-captcha.