sumit
2/19/2020 - 9:56 AM

caffe opencv

import cv2
net = cv2.dnn.readNetFromCaffe("/content/resnet10.prototxt", "/content/resnet10.caffemodel")
model_input_width = 640
model_input_height = 368
frame = cv2.imread("/content/img00010.jpg")
blob = cv2.dnn.blobFromImage(frame, 0.0039215697906911373,
	(model_input_width, model_input_height), 0)

# pass the blob through the network and obtain the detections and
# predictions
print("[INFO] computing object detections...")
net.setInput(blob)
detections = net.forward()