摘要: 图像显示窗口名支持中文 使用cv2.imshow()显示图像默认是不支持中文名称的窗口的,如果你的窗口名参数中包含中文将会显示为乱码。这是由于在OpenCV-Python包中,imshow函数的窗口标题是gbk编码,而Python3默认UTF-8编码。因而窗口标题包含中文时,会显示乱码。 解决这个问 阅读全文
posted @ 2024-02-03 17:47 atom_lxh 阅读(185) 评论(0) 推荐(0) 编辑
摘要: import fitz def pdf2img(pdf_path, img_dir): doc = fitz.open(pdf_path) # 打开pdf for page in doc: # 遍历pdf的每一页 zoom_x = 2.0 # 设置每页的水平缩放因子 zoom_y = 2.0 # 设 阅读全文
posted @ 2024-02-03 16:15 atom_lxh 阅读(6) 评论(0) 推荐(0) 编辑
摘要: import os os.system("say --voice=\"Sin-ji\" 您好,我叫 Sin-ji 。我講廣東話") os.system("say --voice=\"Mei-Jia\" 您好,我叫美佳。我說國語") os.system("say --voice=\"Ting-Ting 阅读全文
posted @ 2024-01-26 09:27 atom_lxh 阅读(16) 评论(0) 推荐(0) 编辑
摘要: macbook 下,要绑定 80 端口的话。一种方式是用 root 权限启动,即 sudo 启动服务进程。但 sudo 指令存在一定的安全问题,能不使用的情况下我们都尽量不要使用。所以这里给出另外一种解决方法 端口映射 在 /etc/pf.anchors/ 目录下创建一份 xxx.forwardin 阅读全文
posted @ 2023-11-22 23:47 atom_lxh 阅读(18) 评论(0) 推荐(0) 编辑
摘要: macos 关闭防火墙、windows关闭防火墙,macos 与 windows10之间互ping不通、以及TCP通信也不通。 Macos 关闭防火墙、windows(工作组模式)打开防火墙,在高级设置里边增加流入流出规则,可以解决以上问题。 阅读全文
posted @ 2023-11-21 22:31 atom_lxh 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) a 阅读全文
posted @ 2023-11-20 19:19 atom_lxh 阅读(34) 评论(0) 推荐(0) 编辑
摘要: node .\node_modules\esbuild\install.js 阅读全文
posted @ 2023-11-06 22:29 atom_lxh 阅读(44) 评论(1) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/baidu_20313315/article/details/128538221 阅读全文
posted @ 2023-11-05 18:28 atom_lxh 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pan.baidu.com/s/17oqMaP7Wq_y8jwga1X5lmg?pwd=m363 提取码:m363 阅读全文
posted @ 2022-01-14 16:41 atom_lxh 阅读(103) 评论(0) 推荐(0) 编辑