lifei6671 / gocaptcha Goto Github PK
View Code? Open in Web Editor NEWA captcha library written in golang
License: Apache License 2.0
A captcha library written in golang
License: Apache License 2.0
直线的算法应该改一下吗,现在的直线太长了,画少了感觉没啥用,画多了全部叠在一起
c467a25#diff-80924c2e51d094cf70dd1a89bf530c18
80行定义
func NewCaptchaImage(width int, height int, bgColor color.RGBA) *CaptchaImage {
https://github.com/lifei6671/mindoc/blob/master/controllers/AccountController.go
446行调用
captchaImage.DrawNoise(gocaptcha.CaptchaComplexLower)
# github.com/golang/freetype/truetype
..\..\golang\freetype\truetype\face.go:254: undefined: font.Metrics
..\..\golang\freetype\truetype\face.go:257: undefined: font.Metrics
golang.org/x/image/font
这个已经拉取最新的了
见title
open fonts: no such file or directory
go run main.go,返回这个
fs.go:55: 读取文件失败 -> fonts\DeborahFancyDress.ttf - open fonts\DeborahFancyDress.ttf: The system cannot find the path specified.
package golang.org/x/image: unrecognized import path "golang.org/x/image" (https fetch: Get https://golang.org/x/image?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.