Sen descrición

Zhang Li 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
bank_cls_infer a29331f881 bank card update %!s(int64=2) %!d(string=hai) anos
bank_det_infer a29331f881 bank card update %!s(int64=2) %!d(string=hai) anos
bank_rec_infer a29331f881 bank card update %!s(int64=2) %!d(string=hai) anos
core 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
images 7666d6893d add images all and all_test.py %!s(int64=2) %!d(string=hai) anos
sx_utils 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
testing 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
.gitignore 5f33ee857f 180 %!s(int64=2) %!d(string=hai) anos
Dockerfile 5370100b42 refactor add lineparser %!s(int64=2) %!d(string=hai) anos
Makefile d4a2676d0f update deploy %!s(int64=2) %!d(string=hai) anos
README.md 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
cpu.Dockerfile 2d7258b0b2 change gunicorn %!s(int64=2) %!d(string=hai) anos
docker-compose.yml 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
environment.yml 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos
logo.png f906a85b8b add angledetector %!s(int64=2) %!d(string=hai) anos
ppocr_keys_bank.txt 5bf4157fe6 init commit %!s(int64=2) %!d(string=hai) anos
ppocr_keys_v1.txt a29331f881 bank card update %!s(int64=2) %!d(string=hai) anos
run.py e1daf403e8 update direction %!s(int64=2) %!d(string=hai) anos
server.py 60b8ec9de5 refactor anchor %!s(int64=2) %!d(string=hai) anos

README.md

银行卡识别

基于paddleocr v2, 用于识别银行卡号。

环境

  • python >= 3.7
  • paddleocr
  • paddlepaddle
  • cv2
conda env create -f environment.yml

demo

python main.py

服务端

# port 8080
python server.py --port 8080

单元测试

python -m unittest discover testing '*_test.py' -v
 
# pytest
cd testing
python -m pytest test_bank.py -vv
# test group convex
python -m pytest test_bank.py -m convex -vv