Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is typo error square bracket and also some missing blobFromImage:

r = model.forward("63_64"])

to

r = model.forward()

snippet:

model = cv2.dnn.readNetFromCaffe("model.prototxt", "model.caffemodel")
blob = cv2.dnn.blobFromImages(images, 1, (62, 63), (104, 117, 123))
model.setInput(blob)
r = model.forward()

Btw, I am using VideoCapture not image.

There is typo error square bracket and also some missing blobFromImage:

r = model.forward("63_64"])

to

r = model.forward()

snippet:

model = cv2.dnn.readNetFromCaffe("model.prototxt", "model.caffemodel")
blob = cv2.dnn.blobFromImages(images, 1, (62, 63), (104, 117, 123))
model.setInput(blob)
r = model.forward()

Btw, I am using VideoCapture not image.image. The (62, 63), (x, x, x). X denoted of your choice.

There is typo error square bracket and also some missing blobFromImage:

r = model.forward("63_64"])

to

r = model.forward()

Or:

r = model.forward("63_64")

snippet:

model = cv2.dnn.readNetFromCaffe("model.prototxt", "model.caffemodel")
blob = cv2.dnn.blobFromImages(images, 1, (62, 63), (104, 117, 123))
model.setInput(blob)
r = model.forward()

Btw, I am using VideoCapture not image. The (62, 63), (x, x, x). X denoted of your choice.