I am trying to use textdetection`algorithm. But I'm getting an error in line 27 of the code
AttributeError: module 'cv2.cv2' has no attribute 'text'
I have looked up but couldn't find a solution for this. Any help will be appreciated. I'm using OpenCV 3.4.1