摘要:
#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)