Ask Your Question

Revision history [back]

i have got this (-215:Assertion failed) Error, and i can't find any solution for this

the error message is ""OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::set&lt;3,4,-1="">,struct cv::Set<3,4,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'""

and the code is ...

path = "F:/New folder"

hand_picturs = [] for i in range(6): hands_pic = cv2.cvtColor(cv2.imread(path + str(i) + ".jpg"), cv2.COLOR_BGR2RGB) hand_picturs.append(hands_pic)

i have got this (-215:Assertion failed) Error, and i can't find any solution for this

the error message is ""OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::set&lt;3,4,-1="">,struct cv::Set<3,4,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'""

and the code is ...

path = "F:/New folder"

hand_picturs = [] for i in range(6): hands_pic = cv2.cvtColor(cv2.imread(path + str(i) + ".jpg"), cv2.COLOR_BGR2RGB) hand_picturs.append(hands_pic)

i I have got this (-215:Assertion failed) Error, and i can't find any solution for thisthis, please help

the error message is ""OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::set&lt;3,4,-1="">,struct cv::Set<3,4,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'""

and the code is ...

path = "F:/New folder"

hand_picturs = [] for i in range(6): hands_pic = cv2.cvtColor(cv2.imread(path + str(i) + ".jpg"), cv2.COLOR_BGR2RGB) hand_picturs.append(hands_pic)

I have got this (-215:Assertion failed) Error, and i can't couldn't find any solution for this, please help

the error message is ""OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::set&lt;3,4,-1="">,struct cv::Set<3,4,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'""

and the code is ...

path = "F:/New folder"

hand_picturs = [] for i in range(6): hands_pic = cv2.cvtColor(cv2.imread(path + str(i) + ".jpg"), cv2.COLOR_BGR2RGB) hand_picturs.append(hands_pic)

I have got this (-215:Assertion failed) Error, and i couldn't find any solution for this, please help

the error message is ""OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::set&lt;3,4,-1="">,struct cv::Set<3,4,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'""

and the code is ......:

path = "F:/New folder"

folder"

hand_picturs = [] for i in range(6): hands_pic = cv2.cvtColor(cv2.imread(path + str(i) + ".jpg"), cv2.COLOR_BGR2RGB) hand_picturs.append(hands_pic)

hand_picturs.append(hands_pic)