Skip to content

MetrodataTeam/rapidocr-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate pb

# use betterproto, don't use pydantic before it's compatible with v2
# move to multi stage docker build to avoid submit it to git
python -m grpc_tools.protoc -I ./pb --python_betterproto_out=rapidocr/pb/ pb/rapidocr.proto
python -m grpc_tools.protoc -I ./pb --python_betterproto_out=pb/ pb/rapidocr.proto

local test

cd rapidocr
RAPIDOCR_GPU=false pytest -vv tests/server_test.py

model download

configuration

environment default comment
RAPIDOCR_config None config for paddle model, default using config with package installed
RAPIDOCR_HOST 0.0.0.0 listen host
RAPIDOCR_PORT 18910 listen port
RAPIDOCR_TIMEOUT None timeout int getting image content if link provided
RAPIDOCR_GPU true enable gpu or not

About

grpc server for rapidocr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors