上一页 1 ··· 143 144 145 146 147 148 149 150 151 ··· 198 下一页
摘要: 一,得到图片的base64 1,打开页面后,在当前页面打开 开发者工具 菜单->更多工具->开发者工具 2,在elements页面,找到目标canvas,给它加一个id,如图: 3,在console标签页,输入: document.getElementById('dest').toDataURL(" 阅读全文
posted @ 2022-11-19 10:12 刘宏缔的架构森林 阅读(1402) 评论(0) 推荐(0)
摘要: 一,安装html2canvas 1,官网: https://html2canvas.hertzen.com/ 如图: 代码站: https://github.com/niklasvh/html2canvas 2,通过npm安装 liuhongdi@lhdpc:/data/vue/touch$ npm 阅读全文
posted @ 2022-11-13 08:09 刘宏缔的架构森林 阅读(1693) 评论(0) 推荐(0)
摘要: 一,js代码: <template> <div> <div style="width:800px;margin: auto;display: flex;flex-direction: column;"> <div>请选择上传图片: <input type="file" id="back" ref=" 阅读全文
posted @ 2022-11-10 18:24 刘宏缔的架构森林 阅读(1768) 评论(0) 推荐(0)
摘要: 一,js代码: <template> <div> <div style="width:800px;margin: auto;display: flex;flex-direction: column;"> <div>请选择上传图片: <input type="file" id="back" ref=" 阅读全文
posted @ 2022-11-08 15:51 刘宏缔的架构森林 阅读(936) 评论(0) 推荐(0)
摘要: 一,php中查看当前用户: php代码: public function ocr() { $daemon_user = getenv('USERNAME') ?: getenv('USER'); $script_user = get_current_user(); return Result::Su 阅读全文
posted @ 2022-11-05 18:41 刘宏缔的架构森林 阅读(400) 评论(0) 推荐(0)
摘要: 一,安装easyocr: 1,官网: https://www.jaided.ai/ 项目代码地址: https://github.com/JaidedAI/EasyOCR 通过pip安装: [root@blog ~]# pip3 install easyocr 查看已安装的easyocr的版本: [ 阅读全文
posted @ 2022-11-01 17:35 刘宏缔的架构森林 阅读(5616) 评论(0) 推荐(0)
摘要: 一,命令: 1,文档: https://legacy.imagemagick.org/Usage/transform/ 2,执行命令: #-charcoal radius: simulate a charcoal drawing:模拟炭笔画的半径 [lhdop@blog img2]$ convert 阅读全文
posted @ 2022-10-31 16:15 刘宏缔的架构森林 阅读(130) 评论(0) 推荐(0)
摘要: 一,命令: 1,相关的文档地址: https://legacy.imagemagick.org/Usage/transform/ 2,执行命令: #-paint radius: simulate an oil painting 指定模拟油画效果的半径 [lhdop@blog img2]$ conve 阅读全文
posted @ 2022-10-31 15:14 刘宏缔的架构森林 阅读(114) 评论(0) 推荐(0)
摘要: 一,js代码: <html> <head> <meta charset="utf-8"/> <title>测试</title> </head> <body> <div style="width:50%;height:100%;float:left;margin-left:-0.3px;positio 阅读全文
posted @ 2022-10-30 10:35 刘宏缔的架构森林 阅读(567) 评论(0) 推荐(0)
摘要: 一,查看当前python和pip的版本: 查看python的版本: [lhdop@blog ~]$ python3 --version Python 3.6.8 查看pip的版本: [lhdop@blog ~]$ pip3 -V pip 21.3.1 from /usr/local/lib/pyth 阅读全文
posted @ 2022-10-29 16:59 刘宏缔的架构森林 阅读(4166) 评论(0) 推荐(1)
上一页 1 ··· 143 144 145 146 147 148 149 150 151 ··· 198 下一页