- 博客(3)
- 收藏
- 关注
原创 使用python调用系统截图工具 snip&sketch
参考自Snip-Sketch-OCR/cpocr.py at master · vishvaluke/Snip-Sketch-OCR (github.com)删除了ocr部分。剩余功能:调用系统截图工具并且保存在本地from multiprocessing import Processfrom pyperclip import copydef mino(): import ctypes ctypes.windll.user32.ShowWindow(ctypes.wind
2021-07-31 14:54:40
1161
原创 google OCR post调用
使用python调用google OCR apidef 参数:(文件目录)proxies改成自己的,若不需要可删除难点在于google 不希望你用paikey去验证,文档写的很不详细有没有示例代码。作者不知道json密钥怎么封装exe,研究了好几天,希望能帮到有需要的人。# https://cloud.google.com/vision/docs/authimport jsonkey = '你的KEY'def encode_image(path): impor.
2021-07-31 10:23:33
512
原创 google translate api post调用
使用python调用google 翻译apidef 参数:(要翻译的文字,目标语言默认中文)proxies改成自己的,若不需要可删除key= '你的KEY'def googleTranslate(text, target='zh'): import requests url = 'https://translation.googleapis.com/language/translate/v2' data = { 'target': target.
2021-07-31 10:18:21
891
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅