Skip to content

Docker image that recognizes HDSky captcha using Baidu OCR API

License

Notifications You must be signed in to change notification settings

eric1932/HDSky_captcha_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HDSky Captcha Helper

Use Baidu OCR API to recognize verification code

Example: image = 7D8DA7

Setup

You need to create app/.env and fill in credentials as described below

APP_ID=''
API_KEY=''
SECRET_KEY=''

Then, use build.sh and run.sh to deploy Docker image.

Docker CLI

You may shadow .env file into sysenv

docker run -d \
  --name=HDSky_captcha_helper \
  -e APP_ID=<YOUR_APP_ID> \
  -e API_KEY=<YOUR_API_KEY> \
  -e SECRET_KEY=<YOUR_API_SECRET> \
  -p 80:80 \
  --restart unless-stopped \
  hdsky-captcha:latest

Usage

GET API path /hdsky/captcha/{image_hash} and return will be like

{
  "status": 0,
  "code": "RESULT_CODE"
}

TODOs

✅ Update Dockerfile to take .env vars

About

Docker image that recognizes HDSky captcha using Baidu OCR API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published