Ask Your Question

How to use Text Detection Advanced_EAST with OpenCV DNN

asked 2019-03-26 05:29:16 -0500

Hi, Advanced_EAST is an algorithm used for Scene image text detect, which is primarily based on EAST, and the significant improvement was also made, which make long text predictions more accurate . I want to call Advanced_EAST with OpenCV DNN just like EAST. I tried many ways but I failed. Can you help me? You can find Advanced_EAST here: , and my .pb model is here: Thanks!

edit retag flag offensive close merge delete


Have you solved it?

louzhu gravatar imagelouzhu ( 2019-08-27 06:20:41 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2019-03-27 04:21:50 -0500

dkurt gravatar image

updated 2019-03-27 04:22:16 -0500

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 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)
out = net.forward()
print(out.shape)  # (1, 7, 80, 80)
edit flag offensive delete link more



Thank you for your replay. I do't know how to get "inside_score"、"side_vertex_code" and "side_vertex_coord" separately from the "out" and how to use "inside_score"、"side_vertex_code" and "side_vertex_coord" to detect text from an image.Can you give me a more detailed demo to show me how to use this .pb file to detect text from an image.

jack.he gravatar imagejack.he ( 2019-03-27 04:47:38 -0500 )edit

@jack.he, please read the documentation or use help(net) in python. There is a method which produces multiple outputs.

dkurt gravatar imagedkurt ( 2019-03-27 05:23:54 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-03-26 05:29:16 -0500

Seen: 180 times

Last updated: Mar 27