【发布时间】:2021-04-18 20:19:18
【问题描述】:
我在运行 resize 函数行后遇到了这个错误:
import cv2
import numpy as np
import matplotlib.pyplot as plt
net = cv2.dnn.readNetFromDarknet('yolov3_custom.cfg', 'yolov3_custom_last.weights')
cap = cv2.VideoCapture(0)
while 1:
_, img = cap.read()
img = cv2.resize(img,(1280,720))
hight,width,_ = img.shape
blob = cv2.dnn.blobFromImage(img, 1/255,(416,416), (0,0,0), swapRB = True,crop= False)
【问题讨论】:
-
亲爱的 Maham,请清理问题;他们有很多“在这里输入代码”。谢谢
标签: python tensorflow opencv