-
Notifications
You must be signed in to change notification settings - Fork 21
Q&A
yesRabbit edited this page Sep 15, 2022
·
8 revisions
通过终端命令where python3
查询,如果您使用 Homebrew 默认配置安装,那么路径应该为/usr/local/bin/python3
- 修改
config.py
中CNOCR_SERVE = 1
; - 编写启动脚本
# start.bat
set root=C:\Users\XX\anaconda3
call %root%\Scripts\activate.bat %root%
call conda activate ocr
call cnocr serve -p 8501
-
下载 NSSM ( http://nssm.cc/builds ),进入 NSSM 所在文件夹,以管理员模式启动 CMD,输入
./nssm.exe install CNOCR_API
-
选择
start.bat
文件,并安装服务。