Skip to content

luopeixiong/font_ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

font_ocr

css字体反混淆一键部署方案

git图片显示有问题 可以看这 链接

提供api - url 反混淆文本使用的woff 链接 - content 需要反混淆的文本

api
curl -X POST \
  http://119.29.27.234:8088/ocr \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: a4bb25a3-15a1-50d0-612a-8f804df49c14' \
  -d '{"url": "https://vfile.meituan.net/colorstone/f0a30a4dda64b4f8f344858115f54fc92296.woff", "content": ""}'

配置阿里镜像源

sudo mkdir -p /etc/docker

sudo tee /etc/docker/daemon.json <<-'EOF'

{

  "registry-mirrors": ["https://uxk0ognt.mirror.aliyuncs.com"]

}

EOF

sudo systemctl daemon-reload

sudo systemctl restart docker

本地部署

# 安装docker 
# 安装docker-compose
# pip3 install docker-compose
# 进入docker-compose.yaml所在目录
# 本地化部署
docker-compose up -d

案例

提取混淆文字  猫眼电影 提取字体url //vfile.meituan.net/colorstone/f0a30a4dda64b4f8f344858115f54fc92296.woff 猫眼字体

测试

url : http://119.29.27.234:8088/ocr
jsonData:
    - content: 
    - url: https://vfile.meituan.net/colorstone/f0a30a4dda64b4f8f344858115f54fc92296.woff

curl 测试

curl -X POST \
  http://119.29.27.234:8088/ocr \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: a4bb25a3-15a1-50d0-612a-8f804df49c14' \
  -d '{"url": "https://vfile.meituan.net/colorstone/f0a30a4dda64b4f8f344858115f54fc92296.woff", "content": ""}'

识别结果

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published