關於TypeError: integer argument expected, got float錯誤如何解決

今天在運行一個小代碼關於人臉識別識別的時候出現了以下情況。 TypeError: integer argument expected, got floa 再來看看源代碼 附上錯誤截圖 其實主要的錯誤是因爲 因爲cv2.resize內的參數是要求爲整數 所以把上面圖中的「/」改爲「//」運算,最後成功
相關文章
相關標籤/搜索