随笔分类 -  项目

摘要:#pyttsx3文字转语音import pyttsx3engine2 = pyttsx3.init()while True: content = input('请输入播放内容:') engine2.say(content) engine2.runAndWait() #文字转语音from win32c 阅读全文
posted @ 2022-10-08 15:58 记录——去繁就简 阅读(466) 评论(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 记录——去繁就简 阅读(190) 评论(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 记录——去繁就简 阅读(36) 评论(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 记录——去繁就简 阅读(138) 评论(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 记录——去繁就简 阅读(76) 评论(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 记录——去繁就简 阅读(54) 评论(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 记录——去繁就简 阅读(51) 评论(0) 推荐(0) 编辑
摘要:import tkinterimport cv2 #from PIL import Image,ImageTkfrom tkinter import filedialog #打开文件需要import imutilsimport osimport numpyroot = tkinter.Tk()roo 阅读全文
posted @ 2022-09-21 22:44 记录——去繁就简 阅读(288) 评论(0) 推荐(0) 编辑
摘要:百度: import requestsfrom lxml import etreeSearch_term = input('请输入需要搜索的关键词')page = input('请输入要爬取多少页(一页30章图片):')page = int(page) + 1header = { 'User-Age 阅读全文
posted @ 2022-07-26 21:54 记录——去繁就简 阅读(91) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示