0
TypeError: expected string or Unicode object, QString foundPython/Pyqt預期的字符串或Unicode
我也試過face_img
沒有0
但是是相同的結果。我試圖宣佈像這樣face_img=[]
這樣的upfron,但仍然是相同的錯誤。 我該如何解決它?
TypeError: expected string or Unicode object, QString foundPython/Pyqt預期的字符串或Unicode
我也試過face_img
沒有0
但是是相同的結果。我試圖宣佈像這樣face_img=[]
這樣的upfron,但仍然是相同的錯誤。 我該如何解決它?
看來get_images
正在調用某種對話框,返回QString
。如果將其轉換爲str
,則應該沒問題,例如
cv2.imwrite(folder +'/' + str(counter) +'.jpg',str(face_img[0]))