Opencv4 dnn调用Darknet yolov4-tiny模型
1.下载yolov4-tiny.cfg和yolov4-tiny.cfg
地址:https://github.com/AlexeyAB/darknet
2.opencv dnn调用代码
import cv2 as cv
import numpy as np
yolo_tiny_model = "yolov4-tiny.weights";
yolo_tiny_cfg = "yolov4-tiny.cfg";
# Load names of classes
classes = None
with op
原创
2020-09-14 10:48:09 ·
911 阅读 ·
0 评论