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

img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' #3

Open
dreamitpossible1 opened this issue Oct 19, 2021 · 1 comment

Comments

@dreamitpossible1
Copy link

0
1
2
3
4
5
6
7
8
Traceback (most recent call last):
File "D:/360极速浏览器下载/Data_Augmentation_Zoo_for_Object_Detection-master/Data_Augmentation_Zoo_for_Object_Detection-master/test_augmentation.py", line 32, in
sample = voc_train[i]
File "D:\360极速浏览器下载\Data_Augmentation_Zoo_for_Object_Detection-master\Data_Augmentation_Zoo_for_Object_Detection-master\prepare_data.py", line 147, in getitem
img = self.load_image(image_index)
File "D:\360极速浏览器下载\Data_Augmentation_Zoo_for_Object_Detection-master\Data_Augmentation_Zoo_for_Object_Detection-master\prepare_data.py", line 167, in load_image
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

@dinhanhx
Copy link

dinhanhx commented Oct 23, 2021

Uhm can you share the source code instead of showing error logs? Or at least, describe the way how it happened?

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