上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: #pyttsx3文字转语音import pyttsx3engine2 = pyttsx3.init()while True: content = input('请输入播放内容:') engine2.say(content) engine2.runAndWait() #文字转语音from win32c 阅读全文
posted @ 2022-10-08 15:58 记录——去繁就简 阅读(471) 评论(0) 推荐(0)
摘要: import osimport cv2,reimport timeimport pyttsx3import ffmpegimport subprocessfrom PIL import Imageimport numpy as npimport imageioimageio.plugins.free 阅读全文
posted @ 2022-10-08 15:58 记录——去繁就简 阅读(206) 评论(0) 推荐(0)
摘要: import cv2import mathpath = 'img_2.png'img = cv2.imread(path)pointList = []def mousePoint(event,x,y,flags,params): print(x,y) if event == cv2.EVENT_LB 阅读全文
posted @ 2022-10-08 15:57 记录——去繁就简 阅读(41) 评论(0) 推荐(0)
摘要: import cv2import numpyimport pyzbarfrom pyzbar.pyzbar import decode#静态码识别# path = 'aa.jpg '# img = cv2.imread(path)# # from PIL import Image# # img = 阅读全文
posted @ 2022-10-08 15:57 记录——去繁就简 阅读(174) 评论(0) 推荐(0)
摘要: import cv2import pytesseractpytesseract.pytesseract.tesseract_cmd=r'E:\tesseract\tesseract.exe'#字符识别(英文,数字)# img = cv2.imread('img_1.png')# img = cv2. 阅读全文
posted @ 2022-10-08 15:57 记录——去繁就简 阅读(119) 评论(0) 推荐(0)
摘要: """ 从视频读取帧保存为图片"""import cv2import numpy as np# cap = cv2.VideoCapture('people.mp4')#读取文件cap = cv2.VideoCapture(0)#读取摄像头#皮肤检测def A(img): YCrCb = cv2.c 阅读全文
posted @ 2022-10-08 15:57 记录——去繁就简 阅读(59) 评论(0) 推荐(0)
摘要: import cv2img = cv2.imread('img.png')def click_info(event, x, y, flags, param): # 只处理双击事件 if event == cv2.EVENT_LBUTTONDBLCLK: print('坐标', x, y) b, g, 阅读全文
posted @ 2022-10-08 15:57 记录——去繁就简 阅读(59) 评论(0) 推荐(0)
摘要: invalid literal for int() with base 10 原因时因为int()不能将带有小数点的字符串转化为整数类型。 阅读全文
posted @ 2022-10-08 11:58 记录——去繁就简 阅读(29) 评论(0) 推荐(0)
摘要: 服务端import sockets = socket.socket()s.bind(('0.0.0.0',1234)) #主机ip,端口号s.listen() #等待连接c,addr = s.accept() #等待连接print(c)print(addr)客户端 import sockets = 阅读全文
posted @ 2022-10-05 10:51 记录——去繁就简 阅读(23) 评论(0) 推荐(0)
摘要: import socket# 第一步 获取域名或ip地址host = 'www.baidu.com'port = 80header = b'GET / HTTP/1.1\r\nHost: www.baidu.com\r\nConnection: close\r\n\r\n'# 第二步 域名解析 将u 阅读全文
posted @ 2022-10-05 10:50 记录——去繁就简 阅读(161) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页