摘要:
#pyttsx3文字轉語音import pyttsx3engine2 = pyttsx3.init()while True: content = input('請輸入播放內容:') engine2.say(content) engine2.runAndWait() #文字轉語音from win32c
閱讀全文
摘要:
import osimport cv2,reimport timeimport pyttsx3import ffmpegimport subprocessfrom PIL import Imageimport numpy as npimport imageioimageio.plugins.free
閱讀全文
摘要:
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
閱讀全文
摘要:
import cv2import numpyimport pyzbarfrom pyzbar.pyzbar import decode#靜態碼識別# path = 'aa.jpg '# img = cv2.imread(path)# # from PIL import Image# # img =
閱讀全文
摘要:
import cv2import pytesseractpytesseract.pytesseract.tesseract_cmd=r'E:\tesseract\tesseract.exe'#字符識別(英文,數字)# img = cv2.imread('img_1.png')# img = cv2.
閱讀全文
摘要:
""" 從視頻讀取幀保存為圖片"""import cv2import numpy as np# cap = cv2.VideoCapture('people.mp4')#讀取文件cap = cv2.VideoCapture(0)#讀取攝像頭#皮膚檢測def A(img): YCrCb = cv2.c
閱讀全文
摘要:
import cv2img = cv2.imread('img.png')def click_info(event, x, y, flags, param): # 只處理雙擊事件 if event == cv2.EVENT_LBUTTONDBLCLK: print('坐標', x, y) b, g,
閱讀全文
摘要:
invalid literal for int() with base 10 原因時因為int()不能將帶有小數點的字符串轉化為整數類型。
閱讀全文