from darkflow.net.build import TFNet
import cv2
import numpy as np
options ={'model':'cfg/yolo.cfg','load':'bin/yolo.weights','threshold':0.1}
tfnet = TFNet(options)
img = cv2.imread('/Users/qyk/Desktop/2.jpg')
img = cv2.cvtColor(img,cv2.COLOR_RGB2BGR)
result = tfnet.return_predict(img)
print(result)