AayushG159 / Plant-Leaf-Identification

Identification of plants through plant leaves on the basis of their shape, color and texture features using digital image processing techniques
MIT License
107 stars 58 forks source link

hello i m running this code in jupyter notebook bt it is giving error plz can u tell me how i shld debug this i tried all ways for this #3

Closed bilkarpooja closed 4 years ago

bilkarpooja commented 4 years ago

error Traceback (most recent call last)

in 1 main_img = cv2.imread(test_img_path) ----> 2 img = cv2.cvtColor(main_img, cv2.COLOR_BGR2RGB) 3 plt.imshow(img) error: OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\imgproc\src\color.cpp:11115: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
AayushG159 commented 4 years ago

Hi, Can you provide a proper documentation of the exact problem along with a supporting picture. Also do check if you are able to load main_img (ie, line 1). If not, then there is an issue with test img path