CRAFT-pytorch
CRAFT-pytorch copied to clipboard
[FIXED] Output array img is incompatible
Was getting this error before: cv2.polylines(img, [poly.reshape((-1, 1, 2))], True, color=(0, 0, 255), thickness=2) TypeError: Layout of the output array img is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels)
Fixed by changing line 43 of file_utils.py, as suggested by @gvdsand in an issue post.