Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None type error with shape at get_path function #86

Open
Deepthi-Kairali opened this issue Jun 17, 2021 · 1 comment
Open

None type error with shape at get_path function #86

Deepthi-Kairali opened this issue Jun 17, 2021 · 1 comment

Comments

@Deepthi-Kairali
Copy link

No description provided.

@shankarnagj
Copy link

shankarnagj commented Oct 23, 2021

try this code

import numpy as np
import cv2

img is in BGR format if the underlying image is a color image

img = cv2.imdecode(np.fromfile(im_path, dtype=np.uint8), cv2.IMREAD_UNCHANGED)

inplace of img = cv2.imread(filename)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants