Use Baidu OCR API to recognize verification code
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.
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
GET API path /hdsky/captcha/{image_hash}
and return will be like
{
"status": 0,
"code": "RESULT_CODE"
}
✅ Update Dockerfile to take .env
vars