CRAFT-pytorch icon indicating copy to clipboard operation
CRAFT-pytorch copied to clipboard

[FIXED] Output array img is incompatible

Open AzwadAbid opened this issue 6 years ago • 0 comments

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.

AzwadAbid avatar Jan 16 '20 03:01 AzwadAbid