April 2020
Intermediate to advanced
438 pages
12h 2m
English
First, download the pretrained YOLO v3 model files (for example, the .cfg and .weights files for YOLOv3-416, with input image sizes 416 x 416) from https://pjreddie.com/darknet/yolo/ and save the files inside the models folder. Let's now import all of the required libraries using the following code snippet:
import cv2import numpy as npimport matplotlib.pylab as pltfrom PIL import Image, ImageDraw, ImageFontimport colorsysfrom random import shuffle
Read now
Unlock full access