【发布时间】:2022-07-27 16:08:15
【问题描述】:
height, width, channels = img.shape
scale = ROBOFLOW_SIZE / max(height, width)
img = cv2.resize(img, (round(scale * width), round(scale * height)))
我一直在尝试让 Roboflow 代码在我的 Picam 上运行,但似乎无法绕过此错误。我已将 ROBOFLOW_SIZE 定义为“416”。任何帮助将不胜感激。
【问题讨论】: