You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
360 B

2 weeks ago
import subprocess
docx_file='./Docx/《动能定理》巩固练习.docx'
temp_markdown='./Res/《动能定理》巩固练习.md'
2 weeks ago
# 1、先用Pandoc转换得到图片
2 weeks ago
subprocess.run(['pandoc', docx_file, '-f', 'docx', '-t', 'markdown', '-o', temp_markdown,
2 weeks ago
'--extract-media=./Res/Images/'])
# 2、把docx转为图片然后OCR