All Projects → lifei6671 → Gocaptcha

lifei6671 / Gocaptcha

Licence: apache-2.0
A captcha library written in golang

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Gocaptcha

Imageocr
PHP验证码识别[PHP CAPTCHA Recognition]
Stars: ✭ 241 (+56.49%)
Mutual labels:  image, captcha
Hltool
Go 开发常用工具库, Google2步验证客户端,AES加密解密,RSA加密解密,钉钉机器人,邮件发送,JWT生成解析,Log,BoltDB操作,图片操作,json操作,struct序列化
Stars: ✭ 151 (-1.95%)
Mutual labels:  image
React Native Story
React native instagram story
Stars: ✭ 144 (-6.49%)
Mutual labels:  image
Og Image
Open Graph Image as a Service - generate cards for Twitter, Facebook, Slack, etc
Stars: ✭ 2,706 (+1657.14%)
Mutual labels:  image
Flowiz
Converts Optical Flow files to images and optionally compiles them to a video. Flow viewer GUI is also available. Check out mockup right from Github Pages:
Stars: ✭ 144 (-6.49%)
Mutual labels:  image
Openmicroscopy
OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.
Stars: ✭ 148 (-3.9%)
Mutual labels:  image
React Avatar Editor
Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
Stars: ✭ 1,846 (+1098.7%)
Mutual labels:  image
Decryptr
An extensible API for breaking captchas
Stars: ✭ 154 (+0%)
Mutual labels:  captcha
Dezoomify Rs
Zoomable image downloader for Google Arts & Culture, Zoomify, IIIF, and others
Stars: ✭ 150 (-2.6%)
Mutual labels:  image
Recaptcha
ReCaptcha helpers for ruby apps
Stars: ✭ 1,819 (+1081.17%)
Mutual labels:  captcha
Hephotopicker
自由定制支持视频,图片的相册选择器
Stars: ✭ 146 (-5.19%)
Mutual labels:  image
Pictureselectorlight
Picture Selector Library for Android or 图片选择器
Stars: ✭ 145 (-5.84%)
Mutual labels:  image
Github link creator
GitHub Link Card Creator lets you generate GitHub images has links to repositories.
Stars: ✭ 149 (-3.25%)
Mutual labels:  image
Recaptcha Module
🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
Stars: ✭ 143 (-7.14%)
Mutual labels:  captcha
Captcha solver
Universal python API to captcha solving services
Stars: ✭ 152 (-1.3%)
Mutual labels:  captcha
Doctron
Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel, add watermarks to pdf, convert pdf to images etc.
Stars: ✭ 141 (-8.44%)
Mutual labels:  image
Hub Tool
🧪 Docker Hub experimental CLI tool
Stars: ✭ 147 (-4.55%)
Mutual labels:  image
Gimage
A PHP library for easy image handling. 🖼
Stars: ✭ 148 (-3.9%)
Mutual labels:  image
Gpuimage X
A Cross-platform (for both Android & iOS) Framework for GPU-based Filters, Video and Image Processing.
Stars: ✭ 154 (+0%)
Mutual labels:  image
Captcha
Captcha image generator server in Go
Stars: ✭ 152 (-1.3%)
Mutual labels:  captcha

gocaptcha

一个简单的Go语言实现的验证码

图片实例

image image image image

简介

基于Golang实现的图片验证码生成库,可以实现随机字母个数,随机直线,随机噪点等。可以设置任意多字体,每个验证码随机选一种字体展示。

实例

使用:

	go get github.com/lifei6671/gocaptcha/

使用的类库

	go get github.com/golang/freetype
	go get github.com/golang/freetype/truetype
	go get golang.org/x/image

天朝可以去 http://www.golangtc.com/download/packagehttps://gopm.io 下载

代码

具体实例可以查看example目录,有生成的验证码图片。

	
  func Get(w http.ResponseWriter, r *http.Request) {
      //初始化一个验证码对象
		captchaImage,err := gocaptcha.NewCaptchaImage(dx,dy,gocaptcha.RandLightColor());

  	  //画上三条随机直线
  	  captchaImage.Drawline(3);

  	  //画边框
  	  captchaImage.DrawBorder(gocaptcha.ColorToRGB(0x17A7A7A));
      
  	  //画随机噪点
  	  captchaImage.DrawNoise(gocaptcha.CaptchaComplexHigh);
  
  	  //画随机文字噪点
  	  captchaImage.DrawTextNoise(gocaptcha.CaptchaComplexLower);
      //画验证码文字,可以预先保持到Session种或其他储存容器种
  	  captchaImage.DrawText(gocaptcha.RandText(4));
    	if err != nil {
    		  fmt.Println(err)
    	}
  	  //将验证码保持到输出流种,可以是文件或HTTP流等
		  captchaImage.SaveImage(w,gocaptcha.ImageFormatJpeg);
	}

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].