Funcaptcha solver server
Model uses funcaptcha-challenger
Currently supports the following models:
3d_rollball_animals
3d_rollball_objects
# Run
fcsrv run
# Start Daemon (Run in the background), must use sudo
fcsrv start
# Restart Daemon, must use sudo
fcsrv restart
# Stop Daemon, must use sudo
fcsrv stop
# Show Daemon log
fcsrv log
# Show Daemon status
fcsrv status
# Online Update
fcsrv update
--debug
, Debug mode--bind
, Http service listening address, default 0.0.0.0:8000--tls-cert
, TLS certificate file--tls-key
, TLS private key file--api-key
, API key--model-dir
, Funcaptcha model directory--num-threads
, Number of threads (ONNX Runtime session), default 1
$ fcsrv -h
Funcaptcha solver server
Usage: fcsrv
fcsrv <COMMAND>
Commands:
run Run server
start Start server daemon
restart Restart server daemon
stop Stop server daemon
status Show the server daemon process
log Show the server daemon log
update Update the application
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
$ fcsrv run -h
Run server
Usage: fcsrv run [OPTIONS]
Options:
-d, --debug Debug mode
-b, --bind <BIND> Bind address [default: 0.0.0.0:8000]
--tls-cert <TLS_CERT> TLS certificate file
--tls-key <TLS_KEY> TLS private key file
-A, --api-key <API_KEY> API key
--model-dir <MODEL_DIR> Funcaptcha model directory
--num-threads <NUM_THREADS> Number of threads (ONNX Runtime session) [default: 1]
-h, --help Print help
curl --location 'http://127.0.0.1:8000/task' \
--header 'Content-Type: application/json' \
--data '{
"type": "3d_rollball_animals",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMWFhUXGBgYGBgYGBgYGBgYGBgYGBgYGBgYHSggGBolHRgXITEhJSkrLi4uGB8zODMsNygtLisBCgoKDg0OGxAQGy0"
}'
- Linux compile, Ubuntu machine for example:
git clone https://github.com/gngpp/fcsrv.git && cd fcsrv
cargo build --release
If you would like to submit your contribution, please open a Pull Request.
Your question might already be answered on the issues