Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Please add more details about

I tried many ways but I failed. Can you help me?

What kind of problem you have? I tried to run this mode using the latest state of OpenCV and I it runs fine:

import cv2 as cv
import numpy as np

net = cv.dnn.readNet('east_model_3T256.pb')
inp = np.random.standard_normal([1, 3, 320, 320]).astype(np.float32)
net.setInput(inp)
out = net.forward()
print(out.shape)  # (1, 7, 80, 80)

Please add more details about

I tried many ways but I failed. Can you help me?

What kind of problem you have? I tried to run this mode using the latest state of OpenCV and I it runs fine:

import cv2 as cv
import numpy as np

net = cv.dnn.readNet('east_model_3T256.pb')
inp = np.random.standard_normal([1, 3, 320, 320]).astype(np.float32)
net.setInput(inp)
out = net.forward()
print(out.shape)  # (1, 7, 80, 80)